rssany 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/.env.example +52 -52
  2. package/README.md +156 -147
  3. package/app/plugins/builtin/email.rssany.js +84 -84
  4. package/app/plugins/builtin/rss.rssany.js +164 -164
  5. package/app/statics/README.md +7 -7
  6. package/app/webui/build/200.html +36 -36
  7. package/app/webui/build/_app/immutable/assets/10.CmGYYZFR.css +1 -0
  8. package/app/webui/build/_app/immutable/assets/11.Dkz3VS_N.css +1 -0
  9. package/app/webui/build/_app/immutable/assets/14.BCCBoMGj.css +1 -0
  10. package/app/webui/build/_app/immutable/assets/6.Cm_jpHOq.css +1 -0
  11. package/app/webui/build/_app/immutable/assets/7.CJ3BjogD.css +1 -0
  12. package/app/webui/build/_app/immutable/assets/9.CATKVZ-n.css +1 -0
  13. package/app/webui/build/_app/immutable/assets/{SourcesList.D5Lso0bo.css → SourcesList.ke66uOSi.css} +1 -1
  14. package/app/webui/build/_app/immutable/assets/chevron-down.CV-KWLNP.css +1 -0
  15. package/app/webui/build/_app/immutable/chunks/{CGCMIfh3.js → 4TuV_psf.js} +1 -1
  16. package/app/webui/build/_app/immutable/chunks/{DAdOEnFb.js → B0czyjwj.js} +1 -1
  17. package/app/webui/build/_app/immutable/chunks/{CFwxUBGi.js → B553hBXT.js} +1 -1
  18. package/app/webui/build/_app/immutable/chunks/B8StT3Do.js +6 -0
  19. package/app/webui/build/_app/immutable/chunks/BI_ale1m.js +1 -0
  20. package/app/webui/build/_app/immutable/chunks/BK0ygNWX.js +2 -0
  21. package/app/webui/build/_app/immutable/chunks/BKm6QCwp.js +1 -0
  22. package/app/webui/build/_app/immutable/chunks/BT6b4LcZ.js +36 -0
  23. package/app/webui/build/_app/immutable/chunks/{Brun6sCr.js → BZY5aksi.js} +2 -2
  24. package/app/webui/build/_app/immutable/chunks/{C8umpVpB.js → BnqaikL8.js} +1 -1
  25. package/app/webui/build/_app/immutable/chunks/BsQ08Wq_.js +1 -0
  26. package/app/webui/build/_app/immutable/chunks/C9wTDiHH.js +1 -0
  27. package/app/webui/build/_app/immutable/chunks/{B-CeeY89.js → CAKuIoAf.js} +1 -1
  28. package/app/webui/build/_app/immutable/chunks/CEWi_rGa.js +1 -0
  29. package/app/webui/build/_app/immutable/chunks/{ChUctqXA.js → Cc7aBSsN.js} +1 -1
  30. package/app/webui/build/_app/immutable/chunks/{BAJAS8BI.js → D8G961Hm.js} +1 -1
  31. package/app/webui/build/_app/immutable/chunks/{CS53ooo0.js → DIeahUKq.js} +1 -1
  32. package/app/webui/build/_app/immutable/chunks/DO5OXNYS.js +1 -0
  33. package/app/webui/build/_app/immutable/chunks/Dg_D3pjF.js +1 -0
  34. package/app/webui/build/_app/immutable/chunks/{Dyvi1wBH.js → DptdhtA1.js} +1 -1
  35. package/app/webui/build/_app/immutable/chunks/{ClknbeNl.js → FDS7fbwH.js} +1 -1
  36. package/app/webui/build/_app/immutable/chunks/{DXDBlEGf.js → GeNMTUn1.js} +1 -1
  37. package/app/webui/build/_app/immutable/chunks/{DCEayuDt.js → IhDlsCxD.js} +1 -1
  38. package/app/webui/build/_app/immutable/chunks/Nd0ktDhd.js +1 -0
  39. package/app/webui/build/_app/immutable/chunks/{D6kzEN_P.js → SvdgnirT.js} +1 -1
  40. package/app/webui/build/_app/immutable/chunks/WW6La7Nt.js +2 -0
  41. package/app/webui/build/_app/immutable/chunks/{DsxvjlCC.js → pd_p3yYy.js} +5 -5
  42. package/app/webui/build/_app/immutable/chunks/rNwPv4DZ.js +1 -0
  43. package/app/webui/build/_app/immutable/entry/app.BKLBG-4w.js +2 -0
  44. package/app/webui/build/_app/immutable/entry/start.D-X6pVtx.js +1 -0
  45. package/app/webui/build/_app/immutable/nodes/{0.CQDkqUeN.js → 0.CJDC_3s9.js} +3 -3
  46. package/app/webui/build/_app/immutable/nodes/1.DsKocFSb.js +1 -0
  47. package/app/webui/build/_app/immutable/nodes/10.BeejAn8z.js +1 -0
  48. package/app/webui/build/_app/immutable/nodes/11.D--uwkk0.js +3 -0
  49. package/app/webui/build/_app/immutable/nodes/12.BLyQ6rUu.js +1 -0
  50. package/app/webui/build/_app/immutable/nodes/13.Cl0WQK13.js +1 -0
  51. package/app/webui/build/_app/immutable/nodes/14.T9l5Rh19.js +1 -0
  52. package/app/webui/build/_app/immutable/nodes/15.DHfwIlBx.js +1 -0
  53. package/app/webui/build/_app/immutable/nodes/{16.p6WfP435.js → 16.BKDfR-KV.js} +2 -2
  54. package/app/webui/build/_app/immutable/nodes/17.DofB8HQB.js +1 -0
  55. package/app/webui/build/_app/immutable/nodes/2.BOYqXdCa.js +1 -0
  56. package/app/webui/build/_app/immutable/nodes/3.B9ucbp_W.js +1 -0
  57. package/app/webui/build/_app/immutable/nodes/5.9zgwFV6I.js +2 -0
  58. package/app/webui/build/_app/immutable/nodes/6.Bs32Ieii.js +2 -0
  59. package/app/webui/build/_app/immutable/nodes/7.Cigxrk0v.js +1 -0
  60. package/app/webui/build/_app/immutable/nodes/8.pG10rCF0.js +1 -0
  61. package/app/webui/build/_app/immutable/nodes/9.Bzqb3xHY.js +1 -0
  62. package/app/webui/build/_app/version.json +1 -1
  63. package/bin/rssany.js +55 -3
  64. package/dist/index.js +314 -96
  65. package/dist/index.js.map +1 -1
  66. package/package.json +107 -103
  67. package/scripts/postinstall.mjs +44 -0
  68. package/scripts/reset.mjs +137 -135
  69. package/scripts/user-dir.mjs +52 -0
  70. package/app/webui/build/_app/immutable/assets/10.Dj8_pmut.css +0 -1
  71. package/app/webui/build/_app/immutable/assets/13.Qu_tY6H9.css +0 -1
  72. package/app/webui/build/_app/immutable/assets/5.B-dPiwB7.css +0 -1
  73. package/app/webui/build/_app/immutable/assets/6.B27N7pdA.css +0 -1
  74. package/app/webui/build/_app/immutable/assets/8.Cgji2b15.css +0 -1
  75. package/app/webui/build/_app/immutable/assets/9.BsCIAvn3.css +0 -1
  76. package/app/webui/build/_app/immutable/chunks/6prdYIKP.js +0 -1
  77. package/app/webui/build/_app/immutable/chunks/B2cyTHdf.js +0 -2
  78. package/app/webui/build/_app/immutable/chunks/B6WG2Sd3.js +0 -1
  79. package/app/webui/build/_app/immutable/chunks/BA4Gucnq.js +0 -1
  80. package/app/webui/build/_app/immutable/chunks/BXTsojX2.js +0 -36
  81. package/app/webui/build/_app/immutable/chunks/BkD3yAYe.js +0 -1
  82. package/app/webui/build/_app/immutable/chunks/C4uF_YIK.js +0 -1
  83. package/app/webui/build/_app/immutable/chunks/CBY2biv-.js +0 -1
  84. package/app/webui/build/_app/immutable/chunks/DAV9bzjw.js +0 -1
  85. package/app/webui/build/_app/immutable/chunks/DL3Q5sfb.js +0 -1
  86. package/app/webui/build/_app/immutable/chunks/DVa8Y-mQ.js +0 -1
  87. package/app/webui/build/_app/immutable/chunks/DoRPmqLn.js +0 -2
  88. package/app/webui/build/_app/immutable/chunks/Dr67pd7v.js +0 -1
  89. package/app/webui/build/_app/immutable/chunks/vtBo8kBV.js +0 -1
  90. package/app/webui/build/_app/immutable/entry/app.dq7-6soi.js +0 -2
  91. package/app/webui/build/_app/immutable/entry/start.BnoTfBrB.js +0 -1
  92. package/app/webui/build/_app/immutable/nodes/1.BUa24rXB.js +0 -1
  93. package/app/webui/build/_app/immutable/nodes/10.MZgVhpGF.js +0 -1
  94. package/app/webui/build/_app/immutable/nodes/11.B39IbrZ0.js +0 -1
  95. package/app/webui/build/_app/immutable/nodes/12.B5B81dLQ.js +0 -1
  96. package/app/webui/build/_app/immutable/nodes/13.DWWcH27k.js +0 -6
  97. package/app/webui/build/_app/immutable/nodes/14.Db6eOPqq.js +0 -1
  98. package/app/webui/build/_app/immutable/nodes/15.B2jiP2VJ.js +0 -1
  99. package/app/webui/build/_app/immutable/nodes/2.AJd2163d.js +0 -1
  100. package/app/webui/build/_app/immutable/nodes/3.BZQeL-vz.js +0 -1
  101. package/app/webui/build/_app/immutable/nodes/4.BT_N8pCh.js +0 -2
  102. package/app/webui/build/_app/immutable/nodes/5.Bo_ftyqW.js +0 -2
  103. package/app/webui/build/_app/immutable/nodes/6.vOowdQUr.js +0 -1
  104. package/app/webui/build/_app/immutable/nodes/7.BfVbBKZu.js +0 -1
  105. package/app/webui/build/_app/immutable/nodes/8.BslYG5f2.js +0 -1
  106. package/app/webui/build/_app/immutable/nodes/9.DAgT-df2.js +0 -1
  107. /package/app/webui/build/_app/immutable/assets/{11.qYZMiTb0.css → 12.qYZMiTb0.css} +0 -0
  108. /package/app/webui/build/_app/immutable/assets/{12.DfJcfUWl.css → 13.DfJcfUWl.css} +0 -0
  109. /package/app/webui/build/_app/immutable/assets/{14.DfMfOrS3.css → 15.DfMfOrS3.css} +0 -0
  110. /package/app/webui/build/_app/immutable/assets/{15.nNGjXhCQ.css → 17.nNGjXhCQ.css} +0 -0
  111. /package/app/webui/build/_app/immutable/assets/{4.Di6rvlY-.css → 5.Di6rvlY-.css} +0 -0
  112. /package/app/webui/build/_app/immutable/assets/{7.CrNxmd8B.css → 8.CrNxmd8B.css} +0 -0
  113. /package/app/webui/build/_app/immutable/nodes/{17.BtYZF6FM.js → 18.BtYZF6FM.js} +0 -0
  114. /package/app/webui/build/_app/immutable/nodes/{18.BIzqhTqv.js → 4.BIzqhTqv.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{c as q,a as n,f as h,t as xt}from"./CS53ooo0.js";import{f as C,at as mt,b7 as ie,a4 as at,an as Ge,a5 as L,av as c,ax as i,aw as A,i as e,az as w,au as gt,aA as k,U as tt,ay as kt}from"./vtBo8kBV.js";import{d as _t,a as ye,s as O,e as ot,r as it}from"./B2cyTHdf.js";import{i as D}from"./BkD3yAYe.js";import{e as st,i as $t}from"./CFwxUBGi.js";import{c as Ne}from"./C4uF_YIK.js";import{a as We,s as S,c as rt}from"./DoRPmqLn.js";import{l as be,s as ze,p as T}from"./BAJAS8BI.js";import{a as Xe}from"./CBY2biv-.js";import{s as Oe}from"./CGCMIfh3.js";import{w as pt}from"./ClknbeNl.js";import{I as xe,P as Pt}from"./DsxvjlCC.js";import{a as wt,b as St,c as It,d as Mt,D as Dt}from"./DAdOEnFb.js";import"./BA4Gucnq.js";import{s as ke}from"./ChUctqXA.js";function lt(f,r){const d=be(r,["children","$$slots","$$events","$$legacy"]);/**
1
+ import{c as q,a as n,f as h,t as xt}from"./DIeahUKq.js";import{f as C,at as mt,b8 as ie,a4 as at,an as Ge,a5 as L,av as c,ax as i,aw as A,k as e,az as w,au as gt,aA as k,u as tt,ay as kt}from"./BsQ08Wq_.js";import{d as _t,a as ye,s as O,e as ot,r as it}from"./BK0ygNWX.js";import{i as D}from"./rNwPv4DZ.js";import{e as st,i as $t}from"./B553hBXT.js";import{c as Ne}from"./C9wTDiHH.js";import{b as We,s as S,e as rt,a as Xe}from"./WW6La7Nt.js";import{l as be,s as ze,p as T}from"./D8G961Hm.js";import{s as Oe}from"./4TuV_psf.js";import{w as pt}from"./FDS7fbwH.js";import{I as xe,P as Pt}from"./pd_p3yYy.js";import{a as wt,b as St,c as It,d as Mt,D as Dt}from"./B0czyjwj.js";import"./CEWi_rGa.js";import{s as ke}from"./Cc7aBSsN.js";function lt(f,r){const d=be(r,["children","$$slots","$$events","$$legacy"]);/**
2
2
  * @license lucide-svelte v0.460.1 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -33,4 +33,4 @@ import{c as q,a as n,f as h,t as xt}from"./CS53ooo0.js";import{f as C,at as mt,b
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const o=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}],["path",{d:"M20 3v4"}],["path",{d:"M22 5h-4"}],["path",{d:"M4 17v2"}],["path",{d:"M5 18H3"}]];xe(f,ze({name:"sparkles"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}const nt=pt({});function dr(f,r){nt.update(d=>({...d,[f]:r}))}function vr(f){nt.update(r=>{const d={...r};return delete d[f],d})}var ur=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),fr=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),hr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),mr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),gr=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),_r=h('<div class="source-feed-cards svelte-ypseth"></div>'),pr=h('<header class="source-sheet-header svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><!> <div class="source-sheet-header-icons svelte-ypseth"><!> <!></div></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div> <!></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),yr=h("<!> <!>",1),br=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),zr=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),xr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),kr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),$r=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),Pr=h('<div class="source-feed-cards svelte-ypseth"></div>'),wr=h('<header class="source-sheet-header source-sheet-header-inline svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><h2 class="source-sheet-title svelte-ypseth"> </h2> <div class="source-sheet-header-icons svelte-ypseth"><!> <!> <button type="button"><!></button></div></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),Sr=h('<div class="source-sheet-inline-empty svelte-ypseth"><p class="source-sheet-inline-empty-title svelte-ypseth">信源条目</p> <p class="source-sheet-inline-empty-hint svelte-ypseth">在左侧列表中点击某一信源,在此查看已拉取的条目。</p></div>'),Ir=h('<aside class="source-feed-panel-inline svelte-ypseth" aria-label="信源条目列表"><!></aside>');function Jr(f,r){mt(r,!0);let d=T(r,"open",3,!1),o=T(r,"sourceRef",3,""),z=T(r,"sourceLabel",3,""),F=T(r,"sourceDescription",3,""),p=T(r,"sourceProxy",3,""),v=T(r,"sourceParseHint",3,null),G=T(r,"variant",3,"overlay"),he=T(r,"onOpenChange",3,()=>{}),R=ie(at([])),J=ie(!1),U=ie(""),Y=ie(0),te=ie(null),K=ie(at({}));Ge(()=>{const x=nt.subscribe(y=>{L(K,y,!0)});return()=>x()});async function Q(){const x=o().trim();if(!x){L(R,[],!0);return}L(Y,e(Y)+1);const y=e(Y);L(J,!0),L(U,"");try{const $=new URLSearchParams;$.set("ref",x),$.set("limit","100"),$.set("offset","0");const N=await Xe("/api/items?"+$.toString());if(y!==e(Y))return;if(!N.ok)throw new Error(await N.text().catch(()=>`HTTP ${N.status}`));const j=await N.json();L(R,Array.isArray(j.items)?j.items:[],!0)}catch($){if(y!==e(Y))return;L(U,$ instanceof Error?$.message:String($),!0),L(R,[],!0)}finally{y===e(Y)&&L(J,!1)}}Ge(()=>{if(d()&&o()){if(!o().trim()){L(R,[],!0);return}tt(()=>void Q())}else d()||tt(()=>{L(Y,e(Y)+1),L(R,[],!0),L(U,""),L(J,!1)})});function le(x){const y=x.author;if(y!=null&&y.length)return y.join(", ")}function me(x){Ye(x)}async function Ye(x){const y=x.trim();if(!(!y||e(te))){L(te,y,!0);try{const $=await Xe("/api/items/"+encodeURIComponent(y),{method:"DELETE"});if(!$.ok){const N=await $.text().catch(()=>"");throw new Error(N.trim()||`HTTP ${$.status}`)}L(R,e(R).filter(N=>N.id!==y),!0),Oe("已删除该条目","success")}catch($){Oe($ instanceof Error?$.message:String($),"error")}finally{L(te,null)}}}const Be=k(()=>F().trim()?F().trim():"—"),Je=k(()=>[z(),o()].filter(Boolean).join(" · ")||void 0);async function Ke(x){for(let y=0;y<120;y++){const $=await Xe(`/api/tasks/${x}`);if(!$.ok)return{ok:!1,error:"轮询失败"};const N=await $.json();if(N.status==="done")return{ok:!0};if(N.status==="error")return{ok:!1,error:N.error??"拉取失败"};await new Promise(j=>setTimeout(j,800))}return{ok:!1,error:"拉取超时"}}async function $e(x,y){y==null||y.preventDefault(),y==null||y.stopPropagation();const $=x.trim();if(!(!$||$ in e(K)))try{const N=await Xe("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:$})}),j=await N.json();if(!N.ok||!j.taskId){Oe(j.error??"拉取失败","error");return}dr($,j.taskId);const V=await Ke(j.taskId);V.ok?await Q():Oe(V.error??"拉取失败","error")}catch(N){Oe(N instanceof Error?N.message:"拉取失败","error")}finally{vr($)}}const re=k(()=>G()==="inline"&&d()&&o().trim()!==""&&o()in e(K));let Pe=!1;Ge(()=>{const x=e(re);Pe&&!x&&d()&&G()==="inline"&&o().trim()&&tt(()=>void Q()),Pe=x});function ae(x){switch(x){case"rss":return"标准 RSS/Atom/JSON Feed(内置 __rss__)";case"plugin":return"Site 插件(listUrlPattern)或语鲸协议(lingowhale://)";case"llm":return"通用网页列表:LLM 解析(generic)";case"email":return"内置 IMAP 邮件插件(__email__)";default:return""}}function Te(x){switch(x){case"rss":return"解析方式:RSS/Atom";case"plugin":return"解析方式:插件";case"llm":return"解析方式:LLM";case"email":return"解析方式:邮箱";default:return"解析方式"}}var Re=q(),He=C(Re);{var Qe=x=>{var y=q(),$=C(y);Ne($,()=>Dt,(N,j)=>{j(N,{get open(){return d()},onOpenChange:V=>he()(V),children:(V,se)=>{var Z=q(),W=C(Z);Ne(W,()=>Pt,(ge,ne)=>{ne(ge,{children:(we,_e)=>{var Se=yr(),ce=C(Se);Ne(ce,()=>wt,(oe,ve)=>{ve(oe,{class:"source-sheet-overlay"})});var de=A(ce,2);Ne(de,()=>St,(oe,ve)=>{ve(oe,{class:"source-sheet-panel","aria-describedby":void 0,children:(Ce,qe)=>{var X=pr(),ue=C(X),pe=c(ue),ee=c(pe),Ie=c(ee),fe=c(Ie);Ne(fe,()=>It,(g,b)=>{b(g,{class:"source-sheet-title",get title(){return e(Je)},children:(E,H)=>{kt();var Le=xt();w(()=>O(Le,z()||o()||"信源条目")),n(E,Le)},$$slots:{default:!0}})});var Me=A(fe,2),De=c(Me);{var Fe=g=>{var b=ur(),E=c(b);{var H=B=>{lt(B,{size:16,class:"source-sheet-meta-icon-svg"})},Le=B=>{ct(B,{size:16,class:"source-sheet-meta-icon-svg"})},Ve=B=>{ht(B,{size:16,class:"source-sheet-meta-icon-svg"})},Ze=B=>{ft(B,{size:16,class:"source-sheet-meta-icon-svg"})};D(E,B=>{v()==="rss"?B(H):v()==="plugin"?B(Le,1):v()==="llm"?B(Ve,2):v()==="email"&&B(Ze,3)})}i(b),w((B,et)=>{S(b,"title",`解析方式:${B??""}`),S(b,"aria-label",et)},[()=>ae(v()),()=>Te(v())]),n(g,b)};D(De,g=>{v()&&g(Fe)})}var Ue=A(De,2);{var je=g=>{var b=fr(),E=c(b);ut(E,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),i(b),w(H=>S(b,"title",`代理:${H??""}`),[()=>p().trim()]),n(g,b)},I=k(()=>p().trim());D(Ue,g=>{e(I)&&g(je)})}i(Me),i(Ie),i(ee);var t=A(ee,2),a=c(t,!0);i(t),i(pe);var l=A(pe,2);Ne(l,()=>Mt,(g,b)=>{b(g,{class:"source-sheet-close","aria-label":"关闭",children:(E,H)=>{Lt(E,{size:18})},$$slots:{default:!0}})}),i(ue);var P=A(ue,2),M=c(P);{var u=g=>{var b=hr();n(g,b)},s=g=>{var b=mr(),E=c(b,!0);i(b),w(()=>O(E,e(U))),n(g,b)},m=g=>{var b=gr();n(g,b)},_=g=>{var b=_r();st(b,21,()=>e(R),E=>E.id,(E,H)=>{{let Le=k(()=>{var Ee;return((Ee=e(H).title)==null?void 0:Ee.trim())||""}),Ve=k(()=>e(H).summary??void 0),Ze=k(()=>e(H).content??void 0),B=k(()=>le(e(H))),et=k(()=>e(H).pub_date||e(H).fetched_at),bt=k(()=>o().trim()),zt=k(()=>{var Ee;return(Ee=e(H).image_url)!=null&&Ee.trim()?e(H).image_url:void 0});vt(E,{get title(){return e(Le)},get link(){return e(H).url},get summary(){return e(Ve)},get content(){return e(Ze)},get author(){return e(B)},get pubDate(){return e(et)},get sourceRef(){return e(bt)},get coverImg(){return e(zt)},get guid(){return e(H).id},get rawItem(){return e(H)},onDelete:me})}}),i(b),n(g,b)};D(M,g=>{e(J)&&e(R).length===0?g(u):e(U)?g(s,1):e(R).length===0?g(m,2):g(_,-1)})}i(P),w(()=>{S(t,"title",o()),O(a,e(Be))}),n(Ce,X)},$$slots:{default:!0}})}),n(we,Se)},$$slots:{default:!0}})}),n(V,Z)},$$slots:{default:!0}})}),n(x,y)},Ae=x=>{var y=Ir(),$=c(y);{var N=se=>{var Z=wr(),W=C(Z),ge=c(W),ne=c(ge),we=c(ne),_e=c(we),Se=c(_e,!0);i(_e);var ce=A(_e,2),de=c(ce);{var oe=I=>{var t=br(),a=c(t);{var l=s=>{lt(s,{size:16,class:"source-sheet-meta-icon-svg"})},P=s=>{ct(s,{size:16,class:"source-sheet-meta-icon-svg"})},M=s=>{ht(s,{size:16,class:"source-sheet-meta-icon-svg"})},u=s=>{ft(s,{size:16,class:"source-sheet-meta-icon-svg"})};D(a,s=>{v()==="rss"?s(l):v()==="plugin"?s(P,1):v()==="llm"?s(M,2):v()==="email"&&s(u,3)})}i(t),w((s,m)=>{S(t,"title",`解析方式:${s??""}`),S(t,"aria-label",m)},[()=>ae(v()),()=>Te(v())]),n(I,t)};D(de,I=>{v()&&I(oe)})}var ve=A(de,2);{var Ce=I=>{var t=zr(),a=c(t);ut(a,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),i(t),w(l=>S(t,"title",`代理:${l??""}`),[()=>p().trim()]),n(I,t)},qe=k(()=>p().trim());D(ve,I=>{e(qe)&&I(Ce)})}var X=A(ve,2);let ue;var pe=c(X);cr(pe,{size:16}),i(X),i(ce),i(we),i(ne);var ee=A(ne,2),Ie=c(ee,!0);i(ee),i(ge),i(W);var fe=A(W,2),Me=c(fe);{var De=I=>{var t=xr();n(I,t)},Fe=I=>{var t=kr(),a=c(t,!0);i(t),w(()=>O(a,e(U))),n(I,t)},Ue=I=>{var t=$r();n(I,t)},je=I=>{var t=Pr();st(t,21,()=>e(R),a=>a.id,(a,l)=>{{let P=k(()=>{var b;return((b=e(l).title)==null?void 0:b.trim())||""}),M=k(()=>e(l).summary??void 0),u=k(()=>e(l).content??void 0),s=k(()=>le(e(l))),m=k(()=>e(l).pub_date||e(l).fetched_at),_=k(()=>o().trim()),g=k(()=>{var b;return(b=e(l).image_url)!=null&&b.trim()?e(l).image_url:void 0});vt(a,{get title(){return e(P)},get link(){return e(l).url},get summary(){return e(M)},get content(){return e(u)},get author(){return e(s)},get pubDate(){return e(m)},get sourceRef(){return e(_)},get coverImg(){return e(g)},get guid(){return e(l).id},get rawItem(){return e(l)},onDelete:me})}}),i(t),n(I,t)};D(Me,I=>{e(J)&&e(R).length===0?I(De):e(U)?I(Fe,1):e(R).length===0?I(Ue,2):I(je,-1)})}i(fe),w(()=>{S(_e,"title",e(Je)),O(Se,z()||o()||"信源条目"),ue=We(X,1,"source-sheet-pull-status svelte-ypseth",null,ue,{pulling:e(re)}),S(X,"title",e(re)?"拉取中…":"立即拉取"),S(X,"aria-label",e(re)?"拉取中":"立即拉取"),S(X,"aria-busy",e(re)),S(ee,"title",o()),O(Ie,e(Be))}),ye("click",X,I=>$e(o(),I)),n(se,Z)},j=k(()=>d()&&o().trim()),V=se=>{var Z=Sr();n(se,Z)};D($,se=>{e(j)?se(N):se(V,-1)})}i(y),n(x,y)};D(He,x=>{G()==="overlay"?x(Qe):x(Ae,-1)})}n(f,Re),gt()}_t(["click"]);const qr=pt(null);export{ft as M,ct as P,lt as R,Jr as S,ht as a,cr as b,vr as c,qr as h,nt as r,dr as s};
36
+ */const o=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}],["path",{d:"M20 3v4"}],["path",{d:"M22 5h-4"}],["path",{d:"M4 17v2"}],["path",{d:"M5 18H3"}]];xe(f,ze({name:"sparkles"},()=>d,{get iconNode(){return o},children:(z,F)=>{var p=q(),v=C(p);ke(v,r,"default",{}),n(z,p)},$$slots:{default:!0}}))}const nt=pt({});function dr(f,r){nt.update(d=>({...d,[f]:r}))}function vr(f){nt.update(r=>{const d={...r};return delete d[f],d})}var ur=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),fr=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),hr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),mr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),gr=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),_r=h('<div class="source-feed-cards svelte-ypseth"></div>'),pr=h('<header class="source-sheet-header svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><!> <div class="source-sheet-header-icons svelte-ypseth"><!> <!></div></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div> <!></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),yr=h("<!> <!>",1),br=h('<span class="source-sheet-meta-icon svelte-ypseth"><!></span>'),zr=h('<span class="source-sheet-proxy svelte-ypseth" aria-label="已配置代理"><!></span>'),xr=h('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),kr=h('<div class="source-sheet-state err svelte-ypseth"> </div>'),$r=h('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),Pr=h('<div class="source-feed-cards svelte-ypseth"></div>'),wr=h('<header class="source-sheet-header source-sheet-header-inline svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><div class="source-sheet-title-row svelte-ypseth"><div class="source-sheet-title-cluster svelte-ypseth"><h2 class="source-sheet-title svelte-ypseth"> </h2> <div class="source-sheet-header-icons svelte-ypseth"><!> <!> <button type="button"><!></button></div></div></div> <p class="source-sheet-sub source-sheet-sub-desc svelte-ypseth"> </p></div></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),Sr=h('<div class="source-sheet-inline-empty svelte-ypseth"><p class="source-sheet-inline-empty-title svelte-ypseth">信源条目</p> <p class="source-sheet-inline-empty-hint svelte-ypseth">在左侧列表中点击某一信源,在此查看已拉取的条目。</p></div>'),Ir=h('<aside class="source-feed-panel-inline svelte-ypseth" aria-label="信源条目列表"><!></aside>');function Br(f,r){mt(r,!0);let d=T(r,"open",3,!1),o=T(r,"sourceRef",3,""),z=T(r,"sourceLabel",3,""),F=T(r,"sourceDescription",3,""),p=T(r,"sourceProxy",3,""),v=T(r,"sourceParseHint",3,null),G=T(r,"variant",3,"overlay"),he=T(r,"onOpenChange",3,()=>{}),R=ie(at([])),J=ie(!1),U=ie(""),Y=ie(0),te=ie(null),K=ie(at({}));Ge(()=>{const x=nt.subscribe(y=>{L(K,y,!0)});return()=>x()});async function Q(){const x=o().trim();if(!x){L(R,[],!0);return}L(Y,e(Y)+1);const y=e(Y);L(J,!0),L(U,"");try{const $=new URLSearchParams;$.set("ref",x),$.set("limit","100"),$.set("offset","0");const N=await Xe("/api/items?"+$.toString());if(y!==e(Y))return;if(!N.ok)throw new Error(await N.text().catch(()=>`HTTP ${N.status}`));const j=await N.json();L(R,Array.isArray(j.items)?j.items:[],!0)}catch($){if(y!==e(Y))return;L(U,$ instanceof Error?$.message:String($),!0),L(R,[],!0)}finally{y===e(Y)&&L(J,!1)}}Ge(()=>{if(d()&&o()){if(!o().trim()){L(R,[],!0);return}tt(()=>void Q())}else d()||tt(()=>{L(Y,e(Y)+1),L(R,[],!0),L(U,""),L(J,!1)})});function le(x){const y=x.author;if(y!=null&&y.length)return y.join(", ")}function me(x){Ye(x)}async function Ye(x){const y=x.trim();if(!(!y||e(te))){L(te,y,!0);try{const $=await Xe("/api/items/"+encodeURIComponent(y),{method:"DELETE"});if(!$.ok){const N=await $.text().catch(()=>"");throw new Error(N.trim()||`HTTP ${$.status}`)}L(R,e(R).filter(N=>N.id!==y),!0),Oe("已删除该条目","success")}catch($){Oe($ instanceof Error?$.message:String($),"error")}finally{L(te,null)}}}const Be=k(()=>F().trim()?F().trim():"—"),Je=k(()=>[z(),o()].filter(Boolean).join(" · ")||void 0);async function Ke(x){for(let y=0;y<120;y++){const $=await Xe(`/api/tasks/${x}`);if(!$.ok)return{ok:!1,error:"轮询失败"};const N=await $.json();if(N.status==="done")return{ok:!0};if(N.status==="error")return{ok:!1,error:N.error??"拉取失败"};await new Promise(j=>setTimeout(j,800))}return{ok:!1,error:"拉取超时"}}async function $e(x,y){y==null||y.preventDefault(),y==null||y.stopPropagation();const $=x.trim();if(!(!$||$ in e(K)))try{const N=await Xe("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:$})}),j=await N.json();if(!N.ok||!j.taskId){Oe(j.error??"拉取失败","error");return}dr($,j.taskId);const V=await Ke(j.taskId);V.ok?await Q():Oe(V.error??"拉取失败","error")}catch(N){Oe(N instanceof Error?N.message:"拉取失败","error")}finally{vr($)}}const re=k(()=>G()==="inline"&&d()&&o().trim()!==""&&o()in e(K));let Pe=!1;Ge(()=>{const x=e(re);Pe&&!x&&d()&&G()==="inline"&&o().trim()&&tt(()=>void Q()),Pe=x});function ae(x){switch(x){case"rss":return"标准 RSS/Atom/JSON Feed(内置 __rss__)";case"plugin":return"Site 插件(listUrlPattern)或语鲸协议(lingowhale://)";case"llm":return"通用网页列表:LLM 解析(generic)";case"email":return"内置 IMAP 邮件插件(__email__)";default:return""}}function Te(x){switch(x){case"rss":return"解析方式:RSS/Atom";case"plugin":return"解析方式:插件";case"llm":return"解析方式:LLM";case"email":return"解析方式:邮箱";default:return"解析方式"}}var Re=q(),He=C(Re);{var Qe=x=>{var y=q(),$=C(y);Ne($,()=>Dt,(N,j)=>{j(N,{get open(){return d()},onOpenChange:V=>he()(V),children:(V,se)=>{var Z=q(),W=C(Z);Ne(W,()=>Pt,(ge,ne)=>{ne(ge,{children:(we,_e)=>{var Se=yr(),ce=C(Se);Ne(ce,()=>wt,(oe,ve)=>{ve(oe,{class:"source-sheet-overlay"})});var de=A(ce,2);Ne(de,()=>St,(oe,ve)=>{ve(oe,{class:"source-sheet-panel","aria-describedby":void 0,children:(Ce,qe)=>{var X=pr(),ue=C(X),pe=c(ue),ee=c(pe),Ie=c(ee),fe=c(Ie);Ne(fe,()=>It,(g,b)=>{b(g,{class:"source-sheet-title",get title(){return e(Je)},children:(E,H)=>{kt();var Le=xt();w(()=>O(Le,z()||o()||"信源条目")),n(E,Le)},$$slots:{default:!0}})});var Me=A(fe,2),De=c(Me);{var Fe=g=>{var b=ur(),E=c(b);{var H=B=>{lt(B,{size:16,class:"source-sheet-meta-icon-svg"})},Le=B=>{ct(B,{size:16,class:"source-sheet-meta-icon-svg"})},Ve=B=>{ht(B,{size:16,class:"source-sheet-meta-icon-svg"})},Ze=B=>{ft(B,{size:16,class:"source-sheet-meta-icon-svg"})};D(E,B=>{v()==="rss"?B(H):v()==="plugin"?B(Le,1):v()==="llm"?B(Ve,2):v()==="email"&&B(Ze,3)})}i(b),w((B,et)=>{S(b,"title",`解析方式:${B??""}`),S(b,"aria-label",et)},[()=>ae(v()),()=>Te(v())]),n(g,b)};D(De,g=>{v()&&g(Fe)})}var Ue=A(De,2);{var je=g=>{var b=fr(),E=c(b);ut(E,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),i(b),w(H=>S(b,"title",`代理:${H??""}`),[()=>p().trim()]),n(g,b)},I=k(()=>p().trim());D(Ue,g=>{e(I)&&g(je)})}i(Me),i(Ie),i(ee);var t=A(ee,2),a=c(t,!0);i(t),i(pe);var l=A(pe,2);Ne(l,()=>Mt,(g,b)=>{b(g,{class:"source-sheet-close","aria-label":"关闭",children:(E,H)=>{Lt(E,{size:18})},$$slots:{default:!0}})}),i(ue);var P=A(ue,2),M=c(P);{var u=g=>{var b=hr();n(g,b)},s=g=>{var b=mr(),E=c(b,!0);i(b),w(()=>O(E,e(U))),n(g,b)},m=g=>{var b=gr();n(g,b)},_=g=>{var b=_r();st(b,21,()=>e(R),E=>E.id,(E,H)=>{{let Le=k(()=>{var Ee;return((Ee=e(H).title)==null?void 0:Ee.trim())||""}),Ve=k(()=>e(H).summary??void 0),Ze=k(()=>e(H).content??void 0),B=k(()=>le(e(H))),et=k(()=>e(H).pub_date||e(H).fetched_at),bt=k(()=>o().trim()),zt=k(()=>{var Ee;return(Ee=e(H).image_url)!=null&&Ee.trim()?e(H).image_url:void 0});vt(E,{get title(){return e(Le)},get link(){return e(H).url},get summary(){return e(Ve)},get content(){return e(Ze)},get author(){return e(B)},get pubDate(){return e(et)},get sourceRef(){return e(bt)},get coverImg(){return e(zt)},get guid(){return e(H).id},get rawItem(){return e(H)},onDelete:me})}}),i(b),n(g,b)};D(M,g=>{e(J)&&e(R).length===0?g(u):e(U)?g(s,1):e(R).length===0?g(m,2):g(_,-1)})}i(P),w(()=>{S(t,"title",o()),O(a,e(Be))}),n(Ce,X)},$$slots:{default:!0}})}),n(we,Se)},$$slots:{default:!0}})}),n(V,Z)},$$slots:{default:!0}})}),n(x,y)},Ae=x=>{var y=Ir(),$=c(y);{var N=se=>{var Z=wr(),W=C(Z),ge=c(W),ne=c(ge),we=c(ne),_e=c(we),Se=c(_e,!0);i(_e);var ce=A(_e,2),de=c(ce);{var oe=I=>{var t=br(),a=c(t);{var l=s=>{lt(s,{size:16,class:"source-sheet-meta-icon-svg"})},P=s=>{ct(s,{size:16,class:"source-sheet-meta-icon-svg"})},M=s=>{ht(s,{size:16,class:"source-sheet-meta-icon-svg"})},u=s=>{ft(s,{size:16,class:"source-sheet-meta-icon-svg"})};D(a,s=>{v()==="rss"?s(l):v()==="plugin"?s(P,1):v()==="llm"?s(M,2):v()==="email"&&s(u,3)})}i(t),w((s,m)=>{S(t,"title",`解析方式:${s??""}`),S(t,"aria-label",m)},[()=>ae(v()),()=>Te(v())]),n(I,t)};D(de,I=>{v()&&I(oe)})}var ve=A(de,2);{var Ce=I=>{var t=zr(),a=c(t);ut(a,{size:16,class:"source-sheet-proxy-globe","aria-hidden":"true"}),i(t),w(l=>S(t,"title",`代理:${l??""}`),[()=>p().trim()]),n(I,t)},qe=k(()=>p().trim());D(ve,I=>{e(qe)&&I(Ce)})}var X=A(ve,2);let ue;var pe=c(X);cr(pe,{size:16}),i(X),i(ce),i(we),i(ne);var ee=A(ne,2),Ie=c(ee,!0);i(ee),i(ge),i(W);var fe=A(W,2),Me=c(fe);{var De=I=>{var t=xr();n(I,t)},Fe=I=>{var t=kr(),a=c(t,!0);i(t),w(()=>O(a,e(U))),n(I,t)},Ue=I=>{var t=$r();n(I,t)},je=I=>{var t=Pr();st(t,21,()=>e(R),a=>a.id,(a,l)=>{{let P=k(()=>{var b;return((b=e(l).title)==null?void 0:b.trim())||""}),M=k(()=>e(l).summary??void 0),u=k(()=>e(l).content??void 0),s=k(()=>le(e(l))),m=k(()=>e(l).pub_date||e(l).fetched_at),_=k(()=>o().trim()),g=k(()=>{var b;return(b=e(l).image_url)!=null&&b.trim()?e(l).image_url:void 0});vt(a,{get title(){return e(P)},get link(){return e(l).url},get summary(){return e(M)},get content(){return e(u)},get author(){return e(s)},get pubDate(){return e(m)},get sourceRef(){return e(_)},get coverImg(){return e(g)},get guid(){return e(l).id},get rawItem(){return e(l)},onDelete:me})}}),i(t),n(I,t)};D(Me,I=>{e(J)&&e(R).length===0?I(De):e(U)?I(Fe,1):e(R).length===0?I(Ue,2):I(je,-1)})}i(fe),w(()=>{S(_e,"title",e(Je)),O(Se,z()||o()||"信源条目"),ue=We(X,1,"source-sheet-pull-status svelte-ypseth",null,ue,{pulling:e(re)}),S(X,"title",e(re)?"拉取中…":"立即拉取"),S(X,"aria-label",e(re)?"拉取中":"立即拉取"),S(X,"aria-busy",e(re)),S(ee,"title",o()),O(Ie,e(Be))}),ye("click",X,I=>$e(o(),I)),n(se,Z)},j=k(()=>d()&&o().trim()),V=se=>{var Z=Sr();n(se,Z)};D($,se=>{e(j)?se(N):se(V,-1)})}i(y),n(x,y)};D(He,x=>{G()==="overlay"?x(Qe):x(Ae,-1)})}n(f,Re),gt()}_t(["click"]);const Jr=pt(null);export{ft as M,ct as P,lt as R,Br as S,ht as a,cr as b,vr as c,Jr as h,nt as r,dr as s};
@@ -1 +1 @@
1
- import{S as m,m as v,T as _,U as b,V as i,h as y}from"./vtBo8kBV.js";function h(e,l,u=l){var s=new WeakSet;m(e,"input",async r=>{var a=r?e.defaultValue:e.value;if(a=t(e)?o(a):a,u(a),v!==null&&s.add(v),await _(),a!==(a=l())){var d=e.selectionStart,f=e.selectionEnd,n=e.value.length;if(e.value=a??"",f!==null){var c=e.value.length;d===f&&f===n&&c>n?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=d,e.selectionEnd=Math.min(f,c))}}}),(y&&e.defaultValue!==e.value||b(l)==null&&e.value)&&(u(t(e)?o(e.value):e.value),v!==null&&s.add(v)),i(()=>{var r=l();if(e===document.activeElement){var a=v;if(s.has(a))return}t(e)&&r===o(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function t(e){var l=e.type;return l==="number"||l==="range"}function o(e){return e===""?null:+e}export{h as b};
1
+ import{l as i,i as v,t as m,u as _,j as b,h as y}from"./BsQ08Wq_.js";function k(e,l,u=l){var s=new WeakSet;i(e,"input",async r=>{var a=r?e.defaultValue:e.value;if(a=t(e)?o(a):a,u(a),v!==null&&s.add(v),await m(),a!==(a=l())){var d=e.selectionStart,f=e.selectionEnd,n=e.value.length;if(e.value=a??"",f!==null){var c=e.value.length;d===f&&f===n&&c>n?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=d,e.selectionEnd=Math.min(f,c))}}}),(y&&e.defaultValue!==e.value||_(l)==null&&e.value)&&(u(t(e)?o(e.value):e.value),v!==null&&s.add(v)),b(()=>{var r=l();if(e===document.activeElement){var a=v;if(s.has(a))return}t(e)&&r===o(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function t(e){var l=e.type;return l==="number"||l==="range"}function o(e){return e===""?null:+e}export{k as b};
@@ -0,0 +1 @@
1
+ var wt=Object.defineProperty;var Sn=e=>{throw TypeError(e)};var yt=(e,n,t)=>n in e?wt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var ie=(e,n,t)=>yt(e,typeof n!="symbol"?n+"":n,t),We=(e,n,t)=>n.has(e)||Sn("Cannot "+t);var _=(e,n,t)=>(We(e,n,"read from private field"),t?t.call(e):n.get(e)),D=(e,n,t)=>n.has(e)?Sn("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,t),K=(e,n,t,r)=>(We(e,n,"write to private field"),r?r.call(e,t):n.set(e,t),t),q=(e,n,t)=>(We(e,n,"access private method"),t);var Et=Array.isArray,mt=Array.prototype.indexOf,Se=Array.prototype.includes,wr=Array.from,yr=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyDescriptors,bt=Object.prototype,Tt=Array.prototype,Ln=Object.getPrototypeOf,xn=Object.isExtensible;function Er(e){return typeof e=="function"}const At=()=>{};function mr(e){return e()}function St(e){for(var n=0;n<e.length;n++)e[n]()}function jn(){var e,n,t=new Promise((r,s)=>{e=r,n=s});return{promise:t,resolve:e,reject:n}}function gr(e,n){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const t=[];for(const r of e)if(t.push(r),t.length===n)break;return t}const T=2,ve=4,Le=8,cn=1<<24,fe=16,G=32,Q=64,xt=128,M=512,m=1024,R=2048,H=4096,V=8192,B=16384,we=32768,Rn=1<<25,qe=65536,Nn=1<<17,Rt=1<<18,Re=1<<19,Yn=1<<20,br=1<<25,de=65536,en=1<<21,_n=1<<22,W=1<<23,ce=Symbol("$state"),Tr=Symbol("legacy props"),Ar=Symbol(""),$=new class extends Error{constructor(){super(...arguments);ie(this,"name","StaleReactionError");ie(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Fn;const xr=!!((Fn=globalThis.document)!=null&&Fn.contentType)&&globalThis.document.contentType.includes("xml"),Rr=1,ze=3,Hn=8;function Nt(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ot(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Nr(e,n,t){throw new Error("https://svelte.dev/e/each_key_duplicate")}function kt(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ct(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dt(e){throw new Error("https://svelte.dev/e/effect_orphan")}function It(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Or(){throw new Error("https://svelte.dev/e/hydration_failed")}function kr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pt(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mt(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ft(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Cr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Dr=1,Ir=2,Pr=4,Mr=8,Fr=16,Lr=1,jr=2,Yr=4,Hr=8,qr=16,Ur=1,Vr=2,Lt="[",jt="[!",Br="[?",Yt="]",vn={},A=Symbol(),Ht="http://www.w3.org/1999/xhtml",Gr="http://www.w3.org/2000/svg",Kr="@attach";function dn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function $r(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function zr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let ee=!1;function Xr(e){ee=e}let b;function xe(e){if(e===null)throw dn(),vn;return b=e}function Zr(){return xe(ae(b))}function Wr(e){if(ee){if(ae(b)!==null)throw dn(),vn;b=e}}function Jr(e=1){if(ee){for(var n=e,t=b;n--;)t=ae(t);b=t}}function Qr(e=!0){for(var n=0,t=b;;){if(t.nodeType===Hn){var r=t.data;if(r===Yt){if(n===0)return t;n-=1}else(r===Lt||r===jt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(n+=1)}var s=ae(t);e&&t.remove(),t=s}}function es(e){if(!e||e.nodeType!==Hn)throw dn(),vn;return e.data}function qn(e){return e===this.v}function qt(e,n){return e!=e?n==n:e!==n||e!==null&&typeof e=="object"||typeof e=="function"}function Un(e){return!qt(e,this.v)}let Xe=!1;function ns(){Xe=!0}let y=null;function Ue(e){y=e}function ts(e){return Ze().get(e)}function rs(e,n){return Ze().set(e,n),n}function ss(e){return Ze().has(e)}function fs(){return Ze()}function as(e,n=!1,t){y={p:y,i:!1,c:null,e:null,s:e,x:null,r:w,l:Xe&&!n?{s:null,u:null,$:[]}:null}}function is(e){var n=y,t=n.e;if(t!==null){n.e=null;for(var r of t)st(r)}return n.i=!0,y=n.p,{}}function je(){return!Xe||y!==null&&y.l===null}function Ze(e){return y===null&&Nt(),y.c??(y.c=new Map(Ut(y)||void 0))}function Ut(e){let n=e.p;for(;n!==null;){const t=n.c;if(t!==null)return t;n=n.p}return null}let le=[];function Vn(){var e=le;le=[],St(e)}function nn(e){if(le.length===0&&!Pe){var n=le;queueMicrotask(()=>{n===le&&Vn()})}le.push(e)}function Vt(){for(;le.length>0;)Vn()}function Bt(e){var n=w;if(n===null)return d.f|=W,e;if((n.f&we)===0&&(n.f&ve)===0)throw e;Ve(e,n)}function Ve(e,n){for(;n!==null;){if((n.f&xt)!==0){if((n.f&we)===0)throw e;try{n.b.error(e);return}catch(t){e=t}}n=n.parent}throw e}const Gt=-7169;function E(e,n){e.f=e.f&Gt|n}function pn(e){(e.f&M)!==0||e.deps===null?E(e,m):E(e,H)}function Bn(e){if(e!==null)for(const n of e)(n.f&T)===0||(n.f&de)===0||(n.f^=de,Bn(n.deps))}function Kt(e,n,t){(e.f&R)!==0?n.add(e):(e.f&H)!==0&&t.add(e),Bn(e.deps),E(e,m)}const Ce=new Set;let p=null,S=null,tn=null,Pe=!1,Je=!1,ye=null,Ye=null;var On=0;let $t=1;var Ee,me,ge,be,Fe,P,Te,Z,U,Ae,x,rn,sn,fn,an,Gn;const $e=class $e{constructor(){D(this,x);ie(this,"id",$t++);ie(this,"current",new Map);ie(this,"previous",new Map);D(this,Ee,new Set);D(this,me,new Set);D(this,ge,0);D(this,be,0);D(this,Fe,null);D(this,P,[]);D(this,Te,new Set);D(this,Z,new Set);D(this,U,new Map);ie(this,"is_fork",!1);D(this,Ae,!1)}skip_effect(n){_(this,U).has(n)||_(this,U).set(n,{d:[],m:[]})}unskip_effect(n){var t=_(this,U).get(n);if(t){_(this,U).delete(n);for(var r of t.d)E(r,R),this.schedule(r);for(r of t.m)E(r,H),this.schedule(r)}}capture(n,t){t!==A&&!this.previous.has(n)&&this.previous.set(n,t),(n.f&W)===0&&(this.current.set(n,n.v),S==null||S.set(n,n.v))}activate(){p=this}deactivate(){p=null,S=null}flush(){try{if(Je=!0,p=this,!q(this,x,rn).call(this)){for(const n of _(this,Te))_(this,Z).delete(n),E(n,R),this.schedule(n);for(const n of _(this,Z))E(n,H),this.schedule(n)}q(this,x,sn).call(this)}finally{On=0,tn=null,ye=null,Ye=null,Je=!1,p=null,S=null,J.clear()}}discard(){for(const n of _(this,me))n(this);_(this,me).clear()}increment(n){K(this,ge,_(this,ge)+1),n&&K(this,be,_(this,be)+1)}decrement(n,t){K(this,ge,_(this,ge)-1),n&&K(this,be,_(this,be)-1),!(_(this,Ae)||t)&&(K(this,Ae,!0),nn(()=>{K(this,Ae,!1),this.flush()}))}oncommit(n){_(this,Ee).add(n)}ondiscard(n){_(this,me).add(n)}settled(){return(_(this,Fe)??K(this,Fe,jn())).promise}static ensure(){if(p===null){const n=p=new $e;Je||(Ce.add(p),Pe||nn(()=>{p===n&&n.flush()}))}return p}apply(){}schedule(n){var s;if(tn=n,(s=n.b)!=null&&s.is_pending&&(n.f&(ve|Le|cn))!==0&&(n.f&we)===0){n.b.defer_effect(n);return}for(var t=n;t.parent!==null;){t=t.parent;var r=t.f;if(ye!==null&&t===w&&(d===null||(d.f&T)===0))return;if((r&(Q|G))!==0){if((r&m)===0)return;t.f^=m}}_(this,P).push(t)}};Ee=new WeakMap,me=new WeakMap,ge=new WeakMap,be=new WeakMap,Fe=new WeakMap,P=new WeakMap,Te=new WeakMap,Z=new WeakMap,U=new WeakMap,Ae=new WeakMap,x=new WeakSet,rn=function(){return this.is_fork||_(this,be)>0},sn=function(){var l,a;On++>1e3&&Xt();const n=_(this,P);K(this,P,[]),this.apply();var t=ye=[],r=[],s=Ye=[];for(const i of n)q(this,x,fn).call(this,i,t,r);if(p=null,s.length>0){var f=$e.ensure();for(const i of s)f.schedule(i)}if(ye=null,Ye=null,q(this,x,rn).call(this)){q(this,x,an).call(this,r),q(this,x,an).call(this,t);for(const[i,u]of _(this,U))zn(i,u)}else{_(this,Te).clear(),_(this,Z).clear();for(const i of _(this,Ee))i(this);_(this,Ee).clear(),kn(r),kn(t),_(this,ge)===0&&q(this,x,Gn).call(this),(l=_(this,Fe))==null||l.resolve()}var o=p;if(_(this,P).length>0){const i=o??(o=this);_(i,P).push(..._(this,P).filter(u=>!_(i,P).includes(u)))}o!==null&&(Ce.add(o),q(a=o,x,sn).call(a))},fn=function(n,t,r){n.f^=m;for(var s=n.first;s!==null;){var f=s.f,o=(f&(G|Q))!==0,l=o&&(f&m)!==0,a=l||(f&V)!==0||_(this,U).has(s);if(!a&&s.fn!==null){o?s.f^=m:(f&ve)!==0?t.push(s):Ne(s)&&((f&fe)!==0&&_(this,Z).add(s),he(s));var i=s.first;if(i!==null){s=i;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}},an=function(n){for(var t=0;t<n.length;t+=1)Kt(n[t],_(this,Te),_(this,Z))},Gn=function(){var s;if(Ce.size>1){this.previous.clear();var n=p,t=S,r=!0;for(const f of Ce){if(f===this){r=!1;continue}const o=[];for(const[a,i]of this.current){if(f.current.has(a))if(r&&i!==f.current.get(a))f.current.set(a,i);else continue;o.push(a)}if(o.length===0)continue;const l=[...f.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){f.activate();const a=new Set,i=new Map;for(const u of o)Kn(u,l,a,i);if(_(f,P).length>0){f.apply();for(const u of _(f,P))q(s=f,x,fn).call(s,u,[],[])}f.deactivate()}}p=n,S=t}_(this,U).clear(),Ce.delete(this)};let ne=$e;function zt(e){var n=Pe;Pe=!0;try{for(var t;;){if(Vt(),p===null)return t;p.flush()}}finally{Pe=n}}function Xt(){try{It()}catch(e){Ve(e,tn)}}let j=null;function kn(e){var n=e.length;if(n!==0){for(var t=0;t<n;){var r=e[t++];if((r.f&(B|V))===0&&Ne(r)&&(j=new Set,he(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&it(r),(j==null?void 0:j.size)>0)){J.clear();for(const s of j){if((s.f&(B|V))!==0)continue;const f=[s];let o=s.parent;for(;o!==null;)j.has(o)&&(j.delete(o),f.push(o)),o=o.parent;for(let l=f.length-1;l>=0;l--){const a=f[l];(a.f&(B|V))===0&&he(a)}}j.clear()}}j=null}}function Kn(e,n,t,r){if(!t.has(e)&&(t.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&T)!==0?Kn(s,n,t,r):(f&(_n|fe))!==0&&(f&R)===0&&$n(s,n,r)&&(E(s,R),hn(s))}}function $n(e,n,t){const r=t.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Se.call(n,s))return!0;if((s.f&T)!==0&&$n(s,n,t))return t.set(s,!0),!0}return t.set(e,!1),!1}function hn(e){p.schedule(e)}function zn(e,n){if(!((e.f&G)!==0&&(e.f&m)!==0)){(e.f&R)!==0?n.d.push(e):(e.f&H)!==0&&n.m.push(e),E(e,m);for(var t=e.first;t!==null;)zn(t,n),t=t.next}}function Xn(e,n,t,r){const s=je()?yn:Jt;var f=e.filter(c=>!c.settled);if(t.length===0&&f.length===0){r(n.map(s));return}var o=w,l=Zt(),a=f.length===1?f[0].promise:f.length>1?Promise.all(f.map(c=>c.promise)):null;function i(c){l();try{r(c)}catch(g){(o.f&B)===0&&Ve(g,o)}Be()}if(t.length===0){a.then(()=>i(n.map(s)));return}var u=wn();function v(){Promise.all(t.map(c=>Wt(c))).then(c=>i([...n.map(s),...c])).catch(c=>Ve(c,o)).finally(()=>u())}a?a.then(()=>{l(),v(),Be()}):v()}function Zt(){var e=w,n=d,t=y,r=p;return function(f=!0){se(e),re(n),Ue(t),f&&(e.f&B)===0&&(r==null||r.activate(),r==null||r.apply())}}function Be(e=!0){se(null),re(null),Ue(null),e&&(p==null||p.deactivate())}function wn(){var e=w.b,n=p,t=e.is_rendered();return e.update_pending_count(1,n),n.increment(t),(r=!1)=>{e.update_pending_count(-1,n),n.decrement(t,r)}}function yn(e){var n=T|R,t=d!==null&&(d.f&T)!==0?d:null;return w!==null&&(w.f|=Re),{ctx:y,deps:null,effects:null,equals:qn,f:n,fn:e,reactions:null,rv:0,v:A,wv:0,parent:t??w,ac:null}}function Wt(e,n,t){let r=w;r===null&&Ot();var s=void 0,f=mn(A),o=!d,l=new Map;return or(()=>{var g;var a=w,i=jn();s=i.promise;try{Promise.resolve(e()).then(i.resolve,i.reject).finally(Be)}catch(h){i.reject(h),Be()}var u=p;if(o){if((a.f&we)!==0)var v=wn();if(r.b.is_rendered())(g=l.get(u))==null||g.reject($),l.delete(u);else{for(const h of l.values())h.reject($);l.clear()}l.set(u,i)}const c=(h,L=void 0)=>{if(v){var N=L===$;v(N)}if(!(L===$||(a.f&B)!==0)){if(u.activate(),L)f.f|=W,on(f,L);else{(f.f&W)!==0&&(f.f^=W),on(f,h);for(const[Oe,ke]of l){if(l.delete(Oe),Oe===u)break;ke.reject($)}}u.deactivate()}};i.promise.then(c,h=>c(null,h||"unknown"))}),lr(()=>{for(const a of l.values())a.reject($)}),new Promise(a=>{function i(u){function v(){u===s?a(f):i(s)}u.then(v,v)}i(s)})}function ls(e){const n=yn(e);return ut(n),n}function Jt(e){const n=yn(e);return n.equals=Un,n}function Qt(e){var n=e.effects;if(n!==null){e.effects=null;for(var t=0;t<n.length;t+=1)te(n[t])}}function er(e){for(var n=e.parent;n!==null;){if((n.f&T)===0)return(n.f&B)===0?n:null;n=n.parent}return null}function En(e){var n,t=w;se(er(e));try{e.f&=~de,Qt(e),n=dt(e)}finally{se(t)}return n}function Zn(e){var n=En(e);if(!e.equals(n)&&(e.wv=_t(),(!(p!=null&&p.is_fork)||e.deps===null)&&(e.v=n,e.deps===null))){E(e,m);return}pe||(S!==null?(rt()||p!=null&&p.is_fork)&&S.set(e,n):pn(e))}function nr(e){var n,t;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((n=r.teardown)==null||n.call(r),(t=r.ac)==null||t.abort($),r.teardown=At,r.ac=null,Me(r,0),Tn(r))}function Wn(e){if(e.effects!==null)for(const n of e.effects)n.teardown&&he(n)}let ln=new Set;const J=new Map;let Jn=!1;function mn(e,n){var t={f:0,v:e,reactions:null,equals:qn,rv:0,wv:0};return t}function z(e,n){const t=mn(e);return ut(t),t}function os(e,n=!1,t=!0){var s;const r=mn(e);return n||(r.equals=Un),Xe&&t&&y!==null&&y.l!==null&&((s=y.l).s??(s.s=[])).push(r),r}function X(e,n,t=!1){d!==null&&(!Y||(d.f&Nn)!==0)&&je()&&(d.f&(T|fe|_n|Nn))!==0&&(F===null||!Se.call(F,e))&&Ft();let r=t?De(n):n;return on(e,r,Ye)}function on(e,n,t=null){if(!e.equals(n)){var r=e.v;pe?J.set(e,n):J.set(e,r),e.v=n;var s=ne.ensure();if(s.capture(e,r),(e.f&T)!==0){const f=e;(e.f&R)!==0&&En(f),pn(f)}e.wv=_t(),Qn(e,R,t),je()&&w!==null&&(w.f&m)!==0&&(w.f&(G|Q))===0&&(I===null?vr([e]):I.push(e)),!s.is_fork&&ln.size>0&&!Jn&&tr()}return n}function tr(){Jn=!1;for(const e of ln)(e.f&m)!==0&&E(e,H),Ne(e)&&he(e);ln.clear()}function us(e,n=1){var t=ue(e),r=n===1?t++:t--;return X(e,t),r}function Qe(e){X(e,e.v+1)}function Qn(e,n,t){var r=e.reactions;if(r!==null)for(var s=je(),f=r.length,o=0;o<f;o++){var l=r[o],a=l.f;if(!(!s&&l===w)){var i=(a&R)===0;if(i&&E(l,n),(a&T)!==0){var u=l;S==null||S.delete(u),(a&de)===0&&(a&M&&(l.f|=de),Qn(u,H,t))}else if(i){var v=l;(a&fe)!==0&&j!==null&&j.add(v),t!==null?t.push(v):hn(v)}}}}function De(e){if(typeof e!="object"||e===null||ce in e)return e;const n=Ln(e);if(n!==bt&&n!==Tt)return e;var t=new Map,r=Et(e),s=z(0),f=_e,o=l=>{if(_e===f)return l();var a=d,i=_e;re(null),Mn(f);var u=l();return re(a),Mn(i),u};return r&&t.set("length",z(e.length)),new Proxy(e,{defineProperty(l,a,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&Pt();var u=t.get(a);return u===void 0?o(()=>{var v=z(i.value);return t.set(a,v),v}):X(u,i.value,!0),!0},deleteProperty(l,a){var i=t.get(a);if(i===void 0){if(a in l){const u=o(()=>z(A));t.set(a,u),Qe(s)}}else X(i,A),Qe(s);return!0},get(l,a,i){var g;if(a===ce)return e;var u=t.get(a),v=a in l;if(u===void 0&&(!v||(g=Ie(l,a))!=null&&g.writable)&&(u=o(()=>{var h=De(v?l[a]:A),L=z(h);return L}),t.set(a,u)),u!==void 0){var c=ue(u);return c===A?void 0:c}return Reflect.get(l,a,i)},getOwnPropertyDescriptor(l,a){var i=Reflect.getOwnPropertyDescriptor(l,a);if(i&&"value"in i){var u=t.get(a);u&&(i.value=ue(u))}else if(i===void 0){var v=t.get(a),c=v==null?void 0:v.v;if(v!==void 0&&c!==A)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return i},has(l,a){var c;if(a===ce)return!0;var i=t.get(a),u=i!==void 0&&i.v!==A||Reflect.has(l,a);if(i!==void 0||w!==null&&(!u||(c=Ie(l,a))!=null&&c.writable)){i===void 0&&(i=o(()=>{var g=u?De(l[a]):A,h=z(g);return h}),t.set(a,i));var v=ue(i);if(v===A)return!1}return u},set(l,a,i,u){var An;var v=t.get(a),c=a in l;if(r&&a==="length")for(var g=i;g<v.v;g+=1){var h=t.get(g+"");h!==void 0?X(h,A):g in l&&(h=o(()=>z(A)),t.set(g+"",h))}if(v===void 0)(!c||(An=Ie(l,a))!=null&&An.writable)&&(v=o(()=>z(void 0)),X(v,De(i)),t.set(a,v));else{c=v.v!==A;var L=o(()=>De(i));X(v,L)}var N=Reflect.getOwnPropertyDescriptor(l,a);if(N!=null&&N.set&&N.set.call(u,i),!c){if(r&&typeof a=="string"){var Oe=t.get("length"),ke=Number(a);Number.isInteger(ke)&&ke>=Oe.v&&X(Oe,ke+1)}Qe(s)}return!0},ownKeys(l){ue(s);var a=Reflect.ownKeys(l).filter(v=>{var c=t.get(v);return c===void 0||c.v!==A});for(var[i,u]of t)u.v!==A&&!(i in l)&&a.push(i);return a},setPrototypeOf(){Mt()}})}function Cn(e){try{if(e!==null&&typeof e=="object"&&ce in e)return e[ce]}catch{}return e}function cs(e,n){return Object.is(Cn(e),Cn(n))}var Dn,rr,sr,et,nt;function _s(){if(Dn===void 0){Dn=window,rr=document,sr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,n=Node.prototype,t=Text.prototype;et=Ie(n,"firstChild").get,nt=Ie(n,"nextSibling").get,xn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),xn(t)&&(t.__t=void 0)}}function Ge(e=""){return document.createTextNode(e)}function Ke(e){return et.call(e)}function ae(e){return nt.call(e)}function vs(e,n){if(!ee)return Ke(e);var t=Ke(b);if(t===null)t=b.appendChild(Ge());else if(n&&t.nodeType!==ze){var r=Ge();return t==null||t.before(r),xe(r),r}return n&&gn(t),xe(t),t}function ds(e,n=!1){if(!ee){var t=Ke(e);return t instanceof Comment&&t.data===""?ae(t):t}if(n){if((b==null?void 0:b.nodeType)!==ze){var r=Ge();return b==null||b.before(r),xe(r),r}gn(b)}return b}function ps(e,n=1,t=!1){let r=ee?b:e;for(var s;n--;)s=r,r=ae(r);if(!ee)return r;if(t){if((r==null?void 0:r.nodeType)!==ze){var f=Ge();return r===null?s==null||s.after(f):r.before(f),xe(f),f}gn(r)}return xe(r),r}function fr(e){e.textContent=""}function hs(){return!1}function ws(e,n,t){return document.createElementNS(n??Ht,e,void 0)}function gn(e){if(e.nodeValue.length<65536)return;let n=e.nextSibling;for(;n!==null&&n.nodeType===ze;)n.remove(),e.nodeValue+=n.nodeValue,n=e.nextSibling}function ys(e,n){if(n){const t=document.body;e.autofocus=!0,nn(()=>{document.activeElement===t&&e.focus()})}}function Es(e){ee&&Ke(e)!==null&&fr(e)}let In=!1;function ar(){In||(In=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var n;if(!e.defaultPrevented)for(const t of e.target.elements)(n=t.__on_r)==null||n.call(t)})},{capture:!0}))}function bn(e){var n=d,t=w;re(null),se(null);try{return e()}finally{re(n),se(t)}}function ms(e,n,t,r=t){e.addEventListener(n,()=>bn(t));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),ar()}function tt(e){w===null&&(d===null&&Dt(),Ct()),pe&&kt()}function ir(e,n){var t=n.last;t===null?n.last=n.first=e:(t.next=e,e.prev=t,n.last=e)}function C(e,n){var t=w;t!==null&&(t.f&V)!==0&&(e|=V);var r={ctx:y,deps:null,nodes:null,f:e|R|M,first:null,fn:n,last:null,next:null,parent:t,b:t&&t.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&ve)!==0)ye!==null?ye.push(r):ne.ensure().schedule(r);else if(n!==null){try{he(r)}catch(o){throw te(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Re)===0&&(s=s.first,(e&fe)!==0&&(e&qe)!==0&&s!==null&&(s.f|=qe))}if(s!==null&&(s.parent=t,t!==null&&ir(s,t),d!==null&&(d.f&T)!==0&&(e&Q)===0)){var f=d;(f.effects??(f.effects=[])).push(s)}return r}function rt(){return d!==null&&!Y}function lr(e){const n=C(Le,null);return E(n,m),n.teardown=e,n}function gs(e){tt();var n=w.f,t=!d&&(n&G)!==0&&(n&we)===0;if(t){var r=y;(r.e??(r.e=[])).push(e)}else return st(e)}function st(e){return C(ve|Yn,e)}function bs(e){return tt(),C(Le|Yn,e)}function Ts(e){ne.ensure();const n=C(Q|Re,e);return()=>{te(n)}}function As(e){ne.ensure();const n=C(Q|Re,e);return(t={})=>new Promise(r=>{t.outro?_r(n,()=>{te(n),r(void 0)}):(te(n),r(void 0))})}function Ss(e){return C(ve,e)}function xs(e,n){var t=y,r={effect:null,ran:!1,deps:e};t.l.$.push(r),r.effect=ft(()=>{if(e(),!r.ran){r.ran=!0;var s=w;try{se(s.parent),pr(n)}finally{se(s)}}})}function Rs(){var e=y;ft(()=>{for(var n of e.l.$){n.deps();var t=n.effect;(t.f&m)!==0&&t.deps!==null&&E(t,H),Ne(t)&&he(t),n.ran=!1}})}function or(e){return C(_n|Re,e)}function ft(e,n=0){return C(Le|n,e)}function Ns(e,n=[],t=[],r=[]){Xn(r,n,t,s=>{C(Le,()=>e(...s.map(ue)))})}function Os(e,n=[],t=[],r=[]){if(t.length>0||r.length>0)var s=wn();Xn(r,n,t,f=>{C(ve,()=>e(...f.map(ue))),s&&s()})}function ks(e,n=0){var t=C(fe|n,e);return t}function Cs(e,n=0){var t=C(cn|n,e);return t}function Ds(e){return C(G|Re,e)}function at(e){var n=e.teardown;if(n!==null){const t=pe,r=d;Pn(!0),re(null);try{n.call(null)}finally{Pn(t),re(r)}}}function Tn(e,n=!1){var t=e.first;for(e.first=e.last=null;t!==null;){const s=t.ac;s!==null&&bn(()=>{s.abort($)});var r=t.next;(t.f&Q)!==0?t.parent=null:te(t,n),t=r}}function ur(e){for(var n=e.first;n!==null;){var t=n.next;(n.f&G)===0&&te(n),n=t}}function te(e,n=!0){var t=!1;(n||(e.f&Rt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(cr(e.nodes.start,e.nodes.end),t=!0),E(e,Rn),Tn(e,n&&!t),Me(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();at(e),e.f^=Rn,e.f|=B;var s=e.parent;s!==null&&s.first!==null&&it(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function cr(e,n){for(;e!==null;){var t=e===n?null:ae(e);e.remove(),e=t}}function it(e){var n=e.parent,t=e.prev,r=e.next;t!==null&&(t.next=r),r!==null&&(r.prev=t),n!==null&&(n.first===e&&(n.first=r),n.last===e&&(n.last=t))}function _r(e,n,t=!0){var r=[];lt(e,r,!0);var s=()=>{t&&te(e),n&&n()},f=r.length;if(f>0){var o=()=>--f||s();for(var l of r)l.out(o)}else s()}function lt(e,n,t){if((e.f&V)===0){e.f^=V;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||t)&&n.push(l);for(var s=e.first;s!==null;){var f=s.next,o=(s.f&qe)!==0||(s.f&G)!==0&&(e.f&fe)!==0;lt(s,n,o?t:!1),s=f}}}function Is(e){ot(e,!0)}function ot(e,n){if((e.f&V)!==0){e.f^=V,(e.f&m)===0&&(E(e,R),ne.ensure().schedule(e));for(var t=e.first;t!==null;){var r=t.next,s=(t.f&qe)!==0||(t.f&G)!==0;ot(t,s?n:!1),t=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const o of f)(o.is_global||n)&&o.in()}}function Ps(e,n){if(e.nodes)for(var t=e.nodes.start,r=e.nodes.end;t!==null;){var s=t===r?null:ae(t);n.append(t),t=s}}let He=!1,pe=!1;function Pn(e){pe=e}let d=null,Y=!1;function re(e){d=e}let w=null;function se(e){w=e}let F=null;function ut(e){d!==null&&(F===null?F=[e]:F.push(e))}let O=null,k=0,I=null;function vr(e){I=e}let ct=1,oe=0,_e=oe;function Mn(e){_e=e}function _t(){return++ct}function Ne(e){var n=e.f;if((n&R)!==0)return!0;if(n&T&&(e.f&=~de),(n&H)!==0){for(var t=e.deps,r=t.length,s=0;s<r;s++){var f=t[s];if(Ne(f)&&Zn(f),f.wv>e.wv)return!0}(n&M)!==0&&S===null&&E(e,m)}return!1}function vt(e,n,t=!0){var r=e.reactions;if(r!==null&&!(F!==null&&Se.call(F,e)))for(var s=0;s<r.length;s++){var f=r[s];(f.f&T)!==0?vt(f,n,!1):n===f&&(t?E(f,R):(f.f&m)!==0&&E(f,H),hn(f))}}function dt(e){var L;var n=O,t=k,r=I,s=d,f=F,o=y,l=Y,a=_e,i=e.f;O=null,k=0,I=null,d=(i&(G|Q))===0?e:null,F=null,Ue(e.ctx),Y=!1,_e=++oe,e.ac!==null&&(bn(()=>{e.ac.abort($)}),e.ac=null);try{e.f|=en;var u=e.fn,v=u();e.f|=we;var c=e.deps,g=p==null?void 0:p.is_fork;if(O!==null){var h;if(g||Me(e,k),c!==null&&k>0)for(c.length=k+O.length,h=0;h<O.length;h++)c[k+h]=O[h];else e.deps=c=O;if(rt()&&(e.f&M)!==0)for(h=k;h<c.length;h++)((L=c[h]).reactions??(L.reactions=[])).push(e)}else!g&&c!==null&&k<c.length&&(Me(e,k),c.length=k);if(je()&&I!==null&&!Y&&c!==null&&(e.f&(T|H|R))===0)for(h=0;h<I.length;h++)vt(I[h],e);if(s!==null&&s!==e){if(oe++,s.deps!==null)for(let N=0;N<t;N+=1)s.deps[N].rv=oe;if(n!==null)for(const N of n)N.rv=oe;I!==null&&(r===null?r=I:r.push(...I))}return(e.f&W)!==0&&(e.f^=W),v}catch(N){return Bt(N)}finally{e.f^=en,O=n,k=t,I=r,d=s,F=f,Ue(o),Y=l,_e=a}}function dr(e,n){let t=n.reactions;if(t!==null){var r=mt.call(t,e);if(r!==-1){var s=t.length-1;s===0?t=n.reactions=null:(t[r]=t[s],t.pop())}}if(t===null&&(n.f&T)!==0&&(O===null||!Se.call(O,n))){var f=n;(f.f&M)!==0&&(f.f^=M,f.f&=~de),pn(f),nr(f),Me(f,0)}}function Me(e,n){var t=e.deps;if(t!==null)for(var r=n;r<t.length;r++)dr(e,t[r])}function he(e){var n=e.f;if((n&B)===0){E(e,m);var t=w,r=He;w=e,He=!0;try{(n&(fe|cn))!==0?ur(e):Tn(e),at(e);var s=dt(e);e.teardown=typeof s=="function"?s:null,e.wv=ct;var f}finally{He=r,w=t}}}async function Ms(){await Promise.resolve(),zt()}function Fs(){return ne.ensure().settled()}function ue(e){var n=e.f,t=(n&T)!==0;if(d!==null&&!Y){var r=w!==null&&(w.f&B)!==0;if(!r&&(F===null||!Se.call(F,e))){var s=d.deps;if((d.f&en)!==0)e.rv<oe&&(e.rv=oe,O===null&&s!==null&&s[k]===e?k++:O===null?O=[e]:O.push(e));else{(d.deps??(d.deps=[])).push(e);var f=e.reactions;f===null?e.reactions=[d]:Se.call(f,d)||f.push(d)}}}if(pe&&J.has(e))return J.get(e);if(t){var o=e;if(pe){var l=o.v;return((o.f&m)===0&&o.reactions!==null||ht(o))&&(l=En(o)),J.set(o,l),l}var a=(o.f&M)===0&&!Y&&d!==null&&(He||(d.f&M)!==0),i=(o.f&we)===0;Ne(o)&&(a&&(o.f|=M),Zn(o)),a&&!i&&(Wn(o),pt(o))}if(S!=null&&S.has(e))return S.get(e);if((e.f&W)!==0)throw e.v;return e.v}function pt(e){if(e.f|=M,e.deps!==null)for(const n of e.deps)(n.reactions??(n.reactions=[])).push(e),(n.f&T)!==0&&(n.f&M)===0&&(Wn(n),pt(n))}function ht(e){if(e.v===A)return!0;if(e.deps===null)return!1;for(const n of e.deps)if(J.has(n)||(n.f&T)!==0&&ht(n))return!0;return!1}function pr(e){var n=Y;try{return Y=!0,e()}finally{Y=n}}function Ls(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ce in e)un(e);else if(!Array.isArray(e))for(let n in e){const t=e[n];typeof t=="object"&&t&&ce in t&&un(t)}}}function un(e,n=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!n.has(e)){n.add(e),e instanceof Date&&e.getTime();for(let r in e)try{un(e[r],n)}catch{}const t=Ln(e);if(t!==Object.prototype&&t!==Array.prototype&&t!==Map.prototype&&t!==Set.prototype&&t!==Date.prototype){const r=gt(t);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}export{rr as $,wr as A,Dr as B,Hn as C,Fr as D,qe as E,os as F,mn as G,Lt as H,Ir as I,B as J,Is as K,_r as L,V as M,G as N,fr as O,Ps as P,te as Q,Ke as R,nn as S,ae as T,Pr as U,Mr as V,y as W,Ss as X,w as Y,Rn as Z,ce as _,Zr as a,Cr as a$,je as a0,Ie as a1,kr as a2,Yr as a3,De as a4,X as a5,pe as a6,us as a7,se as a8,Hr as a9,ls as aA,gr as aB,xs as aC,Rs as aD,Es as aE,qt as aF,ws as aG,sr as aH,Ur as aI,Vr as aJ,ze as aK,gn as aL,we as aM,rt as aN,Qe as aO,xt as aP,Br as aQ,E as aR,R as aS,H as aT,Kt as aU,re as aV,Ue as aW,ne as aX,Bt as aY,d as aZ,Ve as a_,Xe as aa,jr as ab,Lr as ac,yn as ad,Er as ae,Tr as af,qr as ag,lr as ah,yr as ai,At as aj,Rt as ak,Re as al,bs as am,gs as an,St as ao,mr as ap,Ls as aq,Nt as ar,ns as as,as as at,is as au,vs as av,ps as aw,Wr as ax,Jr as ay,Ns as az,ks as b,zr as b0,bn as b1,_s as b2,vn as b3,Or as b4,As as b5,dn as b6,zt as b7,z as b8,Cs as b9,$r as ba,cs as bb,Xn as bc,Ht as bd,Ln as be,Kr as bf,gt as bg,xr as bh,ys as bi,A as bj,ar as bk,Ar as bl,Rr as bm,Gr as bn,_e as bo,ss as bp,ts as bq,rs as br,fs as bs,Ts as bt,Fs as bu,xe as c,Os as d,Xr as e,ds as f,b as g,ee as h,p as i,ft as j,ue as k,ms as l,jt as m,Yt as n,on as o,Ge as p,br as q,es as r,Qr as s,Ms as t,pr as u,Ds as v,Nr as w,hs as x,Jt as y,Et as z};
@@ -0,0 +1 @@
1
+ import{b as v,E as y,h as o,a as f,r as l,s as m,c as p,e as i,H as T,g}from"./BsQ08Wq_.js";import{B as A}from"./rNwPv4DZ.js";function b(d,_,e){var s;o&&(s=g,f());var r=new A(d);v(()=>{var a=_()??null;if(o){var h=l(s),c=h===T,u=a!==null;if(c!==u){var t=m();p(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},y)}export{b as c};
@@ -1 +1 @@
1
- import{W as S,X as T,V as Y,U as x,Y as E,Z as O,_ as k}from"./vtBo8kBV.js";function n(r,f){return r===f||(r==null?void 0:r[k])===f}function D(r={},f,i,A){var p=S.r,h=E;return T(()=>{var a,t;return Y(()=>{a=t,t=[],x(()=>{r!==i(...t)&&(f(r,...t),a&&n(i(...a),r)&&f(null,...a))})}),()=>{let s=h;for(;s!==p&&s.parent!==null&&s.parent.f&O;)s=s.parent;const w=()=>{t&&n(i(...t),r)&&f(null,...t)},c=s.teardown;s.teardown=()=>{w(),c==null||c()}}}),r}export{D as b};
1
+ import{W as S,X as T,j as Y,u as x,Y as E,Z as O,_ as j}from"./BsQ08Wq_.js";function n(r,f){return r===f||(r==null?void 0:r[j])===f}function B(r={},f,i,k){var p=S.r,h=E;return T(()=>{var a,t;return Y(()=>{a=t,t=[],x(()=>{r!==i(...t)&&(f(r,...t),a&&n(i(...a),r)&&f(null,...a))})}),()=>{let s=h;for(;s!==p&&s.parent!==null&&s.parent.f&O;)s=s.parent;const w=()=>{t&&n(i(...t),r)&&f(null,...t)},c=s.teardown;s.teardown=()=>{w(),c==null||c()}}}),r}export{B as b};
@@ -0,0 +1 @@
1
+ import{as as a}from"./BsQ08Wq_.js";a();
@@ -1 +1 @@
1
- import{h as s,a as l}from"./vtBo8kBV.js";function h(n,a,r,t,d){var i;s&&l();var e=(i=a.$$slots)==null?void 0:i[r],f=!1;e===!0&&(e=a.children,f=!0),e===void 0||e(n,f?()=>t:t)}export{h as s};
1
+ import{h as s,a as l}from"./BsQ08Wq_.js";function h(n,a,r,t,d){var i;s&&l();var e=(i=a.$$slots)==null?void 0:i[r],f=!1;e===!0&&(e=a.children,f=!0),e===void 0||e(n,f?()=>t:t)}export{h as s};
@@ -1 +1 @@
1
- import{Y as w,A as K,a1 as h,a2 as Y,a3 as R,i as _,a4 as y,a5 as B,a6 as U,D as j,a7 as m,a8 as I,a9 as M,U as N,aa as $,ab as q,ac as z,ad as C,u as G,ae as p,_ as D,af as A,ag as Z}from"./vtBo8kBV.js";import{c as F}from"./B6WG2Sd3.js";const H={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function k(e,r,s){return new Proxy({props:e,exclude:r},H)}const J={get(e,r){if(!e.exclude.includes(r))return _(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=w;try{I(e.parent_effect),e.special[r]=V({get[r](){return e.props[r]}},r,R)}finally{I(n)}}return e.special[r](s),m(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),m(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ee(e,r){return new Proxy({props:e,exclude:r,special:{},version:K(0),parent_effect:w},J)}const Q={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let i=e.props[n];p(i)&&(i=i());const t=h(i,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const i=h(n,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===D||r===A)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function re(...e){return new Proxy({props:e},Q)}function V(e,r,s,n){var x;var i=!$||(s&q)!==0,t=(s&M)!==0,E=(s&Z)!==0,f=n,v=!0,S=()=>(v&&(v=!1,f=E?N(n):n),f);let l;if(t){var L=D in e||A in e;l=((x=h(e,r))==null?void 0:x.set)??(L&&r in e?u=>e[r]=u:void 0)}var o,b=!1;t?[o,b]=F(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=S(),l&&(i&&Y(),l(o)));var a;if(i?a=()=>{var u=e[r];return u===void 0?S():(v=!0,u)}:a=()=>{var u=e[r];return u!==void 0&&(f=void 0),u===void 0?f:u},i&&(s&R)===0)return a;if(l){var T=e.$$legacy;return(function(u,d){return arguments.length>0?((!i||!d||T||b)&&l(d?a():u),u):a()})}var P=!1,c=((s&z)!==0?C:G)(()=>(P=!1,a()));t&&_(c);var g=w;return(function(u,d){if(arguments.length>0){const O=d?_(c):i&&t?y(u):u;return B(c,O),P=!0,f!==void 0&&(f=O),u}return U&&P||(g.f&j)!==0?c.v:_(c)})}export{ee as l,V as p,k as r,re as s};
1
+ import{Y as w,G as y,a1 as h,a2 as K,a3 as R,k as _,a4 as Y,a5 as B,a6 as j,J as M,a7 as m,a8 as I,a9 as N,u as U,aa as G,ab as $,ac as q,ad as z,y as C,ae as p,_ as D,af as E,ag as J}from"./BsQ08Wq_.js";import{c as Z}from"./BI_ale1m.js";const F={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function k(e,r,s){return new Proxy({props:e,exclude:r},F)}const H={get(e,r){if(!e.exclude.includes(r))return _(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=w;try{I(e.parent_effect),e.special[r]=V({get[r](){return e.props[r]}},r,R)}finally{I(n)}}return e.special[r](s),m(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),m(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ee(e,r){return new Proxy({props:e,exclude:r,special:{},version:y(0),parent_effect:w},H)}const Q={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let i=e.props[n];p(i)&&(i=i());const t=h(i,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const i=h(n,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===D||r===E)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function re(...e){return new Proxy({props:e},Q)}function V(e,r,s,n){var x;var i=!G||(s&$)!==0,t=(s&N)!==0,A=(s&J)!==0,f=n,v=!0,S=()=>(v&&(v=!1,f=A?U(n):n),f);let l;if(t){var L=D in e||E in e;l=((x=h(e,r))==null?void 0:x.set)??(L&&r in e?u=>e[r]=u:void 0)}var o,b=!1;t?[o,b]=Z(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=S(),l&&(i&&K(),l(o)));var a;if(i?a=()=>{var u=e[r];return u===void 0?S():(v=!0,u)}:a=()=>{var u=e[r];return u!==void 0&&(f=void 0),u===void 0?f:u},i&&(s&R)===0)return a;if(l){var T=e.$$legacy;return(function(u,d){return arguments.length>0?((!i||!d||T||b)&&l(d?a():u),u):a()})}var P=!1,c=((s&q)!==0?z:C)(()=>(P=!1,a()));t&&_(c);var g=w;return(function(u,d){if(arguments.length>0){const O=d?_(c):i&&t?Y(u):u;return B(c,O),P=!0,f!==void 0&&(f=O),u}return j&&P||(g.f&M)!==0?c.v:_(c)})}export{ee as l,V as p,k as r,re as s};
@@ -1 +1 @@
1
- import{aF as w,n as v,N as f,aG as E,Y as T,aH as N,aI as y,h as i,g as n,aJ as M,c as x,aK as C,aL as L,a as h,C as O}from"./vtBo8kBV.js";var m;const c=((m=globalThis==null?void 0:globalThis.window)==null?void 0:m.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function b(e){return(c==null?void 0:c.createHTML(e))??e}function g(e){var r=w("template");return r.innerHTML=b(e.replaceAll("<!>","<!---->")),r.content}function a(e,r){var t=T;t.nodes===null&&(t.nodes={start:e,end:r,a:null,t:null})}function R(e,r){var t=(r&N)!==0,l=(r&y)!==0,s,u=!e.startsWith("<!>");return()=>{if(i)return a(n,null),n;s===void 0&&(s=g(u?e:"<!>"+e),t||(s=f(s)));var o=l||E?document.importNode(s,!0):s.cloneNode(!0);if(t){var _=f(o),d=o.lastChild;a(_,d)}else a(o,o);return o}}function A(e,r,t="svg"){var l=!e.startsWith("<!>"),s=`<${t}>${l?e:"<!>"+e}</${t}>`,u;return()=>{if(i)return a(n,null),n;if(!u){var o=g(s),_=f(o);u=f(_)}var d=u.cloneNode(!0);return a(d,d),d}}function $(e,r){return A(e,r,"svg")}function D(e=""){if(!i){var r=v(e+"");return a(r,r),r}var t=n;return t.nodeType!==M?(t.before(t=v()),x(t)):C(t),a(t,t),t}function H(){if(i)return a(n,null),n;var e=document.createDocumentFragment(),r=document.createComment(""),t=v();return e.append(r,t),a(r,t),e}function F(e,r){if(i){var t=T;((t.f&L)===0||t.nodes.end===null)&&(t.nodes.end=n),h();return}e!==null&&e.before(r)}function S(){var e,r;if(i&&n&&n.nodeType===O&&((e=n.textContent)!=null&&e.startsWith("$"))){const t=n.textContent.substring(1);return h(),t}return(r=window.__svelte??(window.__svelte={})).uid??(r.uid=1),`c${window.__svelte.uid++}`}const I="5";var p;typeof window<"u"&&((p=window.__svelte??(window.__svelte={})).v??(p.v=new Set)).add(I);export{F as a,a as b,H as c,$ as d,R as f,S as p,D as t};
1
+ import{aG as w,p as v,R as f,aH as E,Y as T,aI as N,aJ as M,h as i,g as n,aK as y,c as x,aL as C,aM as L,a as h,C as O}from"./BsQ08Wq_.js";var m;const c=((m=globalThis==null?void 0:globalThis.window)==null?void 0:m.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function b(e){return(c==null?void 0:c.createHTML(e))??e}function g(e){var r=w("template");return r.innerHTML=b(e.replaceAll("<!>","<!---->")),r.content}function a(e,r){var t=T;t.nodes===null&&(t.nodes={start:e,end:r,a:null,t:null})}function P(e,r){var t=(r&N)!==0,l=(r&M)!==0,s,u=!e.startsWith("<!>");return()=>{if(i)return a(n,null),n;s===void 0&&(s=g(u?e:"<!>"+e),t||(s=f(s)));var o=l||E?document.importNode(s,!0):s.cloneNode(!0);if(t){var _=f(o),d=o.lastChild;a(_,d)}else a(o,o);return o}}function A(e,r,t="svg"){var l=!e.startsWith("<!>"),s=`<${t}>${l?e:"<!>"+e}</${t}>`,u;return()=>{if(i)return a(n,null),n;if(!u){var o=g(s),_=f(o);u=f(_)}var d=u.cloneNode(!0);return a(d,d),d}}function $(e,r){return A(e,r,"svg")}function D(e=""){if(!i){var r=v(e+"");return a(r,r),r}var t=n;return t.nodeType!==y?(t.before(t=v()),x(t)):C(t),a(t,t),t}function H(){if(i)return a(n,null),n;var e=document.createDocumentFragment(),r=document.createComment(""),t=v();return e.append(r,t),a(r,t),e}function S(e,r){if(i){var t=T;((t.f&L)===0||t.nodes.end===null)&&(t.nodes.end=n),h();return}e!==null&&e.before(r)}function W(){var e,r;if(i&&n&&n.nodeType===O&&((e=n.textContent)!=null&&e.startsWith("$"))){const t=n.textContent.substring(1);return h(),t}return(r=window.__svelte??(window.__svelte={})).uid??(r.uid=1),`c${window.__svelte.uid++}`}const R="5";var p;typeof window<"u"&&((p=window.__svelte??(window.__svelte={})).v??(p.v=new Set)).add(R);export{S as a,a as b,H as c,$ as d,P as f,W as p,D as t};
@@ -0,0 +1 @@
1
+ import{p as y,b as u,ak as _,al as g,h as t,C as o,T as l,e as i,c as d,g as p,R as m}from"./BsQ08Wq_.js";function C(n,r){let a=null,E=t;var s;if(t){a=p;for(var e=m(document.head);e!==null&&(e.nodeType!==o||e.data!==n);)e=l(e);if(e===null)i(!1);else{var f=l(e);e.remove(),d(f)}}t||(s=document.head.appendChild(y()));try{u(()=>r(s),_|g)}finally{E&&(i(!0),d(a))}}export{C as h};
@@ -0,0 +1 @@
1
+ import{c as _,a as s,f as g}from"./DIeahUKq.js";import"./CEWi_rGa.js";import{at as d,aC as b,aD as h,f as v,au as $,a5 as k,k as n,F as y,az as B}from"./BsQ08Wq_.js";import{s as j,a as x}from"./BI_ale1m.js";import{i as z}from"./rNwPv4DZ.js";import{s as C}from"./WW6La7Nt.js";import{i as D}from"./Nd0ktDhd.js";import{p as F}from"./GeNMTUn1.js";var H=g('<a class="back-to-parent admin-toolbar-btn admin-toolbar-btn--secondary svelte-1md38m6" data-sveltekit-preload-data="hover" aria-label="返回上一层">返回</a>');function I(i,p){d(p,!1);const r=()=>x(F,"$page",f),[f,l]=j(),e=y();function m(t){const a=t.split("/").filter(Boolean);return a.length===0?null:a.length===1?a[0]==="admin"?null:a[0]==="plugins"||a[0]==="logs"?"/":null:(a.pop(),"/"+a.join("/"))}b(()=>r(),()=>{k(e,m(r().url.pathname))}),h(),D();var o=_(),c=v(o);{var u=t=>{var a=H();B(()=>C(a,"href",n(e))),s(t,a)};z(c,t=>{n(e)&&t(u)})}s(i,o),$(),l()}export{I as B};
@@ -1 +1 @@
1
- import{ar as t,an as u,W as o,aa as c,U as e}from"./vtBo8kBV.js";function l(n){o===null&&t(),c&&o.l!==null?s(o).m.push(n):u(()=>{const a=e(n);if(typeof a=="function")return a})}function i(n){o===null&&t(),l(()=>()=>e(n))}function s(n){var a=n.l;return a.u??(a.u={a:[],b:[],m:[]})}export{i as a,l as o};
1
+ import{ar as t,an as u,W as o,aa as c,u as e}from"./BsQ08Wq_.js";function l(n){o===null&&t(),c&&o.l!==null?s(o).m.push(n):u(()=>{const a=e(n);if(typeof a=="function")return a})}function i(n){o===null&&t(),l(()=>()=>e(n))}function s(n){var a=n.l;return a.u??(a.u={a:[],b:[],m:[]})}export{i as a,l as o};
@@ -1 +1 @@
1
- import{aj as o,U as a,aE as d}from"./vtBo8kBV.js";function p(s,u,e){if(s==null)return u(void 0),o;const t=a(()=>s.subscribe(u,e));return t.unsubscribe?()=>t.unsubscribe():t}const i=[];function _(s,u=o){let e=null;const t=new Set;function c(r){if(d(s,r)&&(s=r,e)){const b=!i.length;for(const n of t)n[1](),i.push(n,s);if(b){for(let n=0;n<i.length;n+=2)i[n][0](i[n+1]);i.length=0}}}function f(r){c(r(s))}function l(r,b=o){const n=[r,b];return t.add(n),t.size===1&&(e=u(c,f)||o),r(s),()=>{t.delete(n),t.size===0&&e&&(e(),e=null)}}return{set:c,update:f,subscribe:l}}function h(s){let u;return p(s,e=>u=e)(),u}export{h as g,p as s,_ as w};
1
+ import{aj as o,u as a,aF as d}from"./BsQ08Wq_.js";function p(s,u,e){if(s==null)return u(void 0),o;const t=a(()=>s.subscribe(u,e));return t.unsubscribe?()=>t.unsubscribe():t}const i=[];function _(s,u=o){let e=null;const t=new Set;function c(r){if(d(s,r)&&(s=r,e)){const b=!i.length;for(const n of t)n[1](),i.push(n,s);if(b){for(let n=0;n<i.length;n+=2)i[n][0](i[n+1]);i.length=0}}}function f(r){c(r(s))}function l(r,b=o){const n=[r,b];return t.add(n),t.size===1&&(e=u(c,f)||o),r(s),()=>{t.delete(n),t.size===0&&e&&(e(),e=null)}}return{set:c,update:f,subscribe:l}}function h(s){let u;return p(s,e=>u=e)(),u}export{h as g,p as s,_ as w};
@@ -1 +1 @@
1
- import{s as e}from"./Dr67pd7v.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
1
+ import{s as e}from"./BKm6QCwp.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
@@ -1 +1 @@
1
- import{h as t,a as i,a0 as c,b as f}from"./vtBo8kBV.js";import{B as y}from"./BkD3yAYe.js";const b=Symbol("NaN");function m(r,e,n){t&&i();var o=new y(r),s=!c();f(()=>{var a=e();a!==a&&(a=b),s&&a!==null&&typeof a=="object"&&(a={}),o.ensure(a,n)})}export{m as k};
1
+ import{h as t,a as i,a0 as c,b as f}from"./BsQ08Wq_.js";import{B as y}from"./rNwPv4DZ.js";const b=Symbol("NaN");function m(r,e,n){t&&i();var o=new y(r),s=!c();f(()=>{var a=e();a!==a&&(a=b),s&&a!==null&&typeof a=="object"&&(a={}),o.ensure(a,n)})}export{m as k};
@@ -0,0 +1 @@
1
+ import{W as d,am as m,an as i,u as g,ao as l,ap as b,k as p,aq as k,ad as v}from"./BsQ08Wq_.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let f=()=>k(s.s);if(n){let a=0,t={};const _=v(()=>{let c=!1;const r=s.s;for(const o in r)r[o]!==t[o]&&(t[o]=r[o],c=!0);return c&&a++,a});f=()=>p(_)}e.b.length&&m(()=>{u(s,f),l(e.b)}),i(()=>{const a=g(()=>e.m.map(b));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&i(()=>{u(s,f),l(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}export{x as i};
@@ -1,4 +1,4 @@
1
- import{c as n,a as i}from"./CS53ooo0.js";import"./BA4Gucnq.js";import{f as m}from"./vtBo8kBV.js";import{s as l}from"./ChUctqXA.js";import{l as c,s as d}from"./BAJAS8BI.js";import{I as f}from"./DsxvjlCC.js";function y(t,o){const r=c(o,["children","$$slots","$$events","$$legacy"]);/**
1
+ import{c as n,a as i}from"./DIeahUKq.js";import"./CEWi_rGa.js";import{f as m}from"./BsQ08Wq_.js";import{s as l}from"./Cc7aBSsN.js";import{l as c,s as d}from"./D8G961Hm.js";import{I as f}from"./pd_p3yYy.js";function y(t,o){const r=c(o,["children","$$slots","$$events","$$legacy"]);/**
2
2
  * @license lucide-svelte v0.460.1 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -0,0 +1,2 @@
1
+ import{b9 as F,Q as M,v as K,X as Y,h as w,z as W,ba as m,bb as x,ah as rr,bc as tr,bd as ir,be as fr,k as sr,bf as er,bg as ar,bh as P,e as R,bi as ur,bj as or,S as cr,bk as nr,bl as lr}from"./BsQ08Wq_.js";import{i as vr,a as dr,d as br,c as hr,n as gr,b as Ar}from"./BK0ygNWX.js";function _r(r,i){var t=void 0,f;F(()=>{t!==(t=i())&&(f&&(M(f),f=null),t&&(f=K(()=>{Y(()=>t(r))})))})}function z(r){var i,t,f="";if(typeof r=="string"||typeof r=="number")f+=r;else if(typeof r=="object")if(Array.isArray(r)){var s=r.length;for(i=0;i<s;i++)r[i]&&(t=z(r[i]))&&(f&&(f+=" "),f+=t)}else for(t in r)r[t]&&(f&&(f+=" "),f+=t);return f}function Tr(){for(var r,i,t=0,f="",s=arguments.length;t<s;t++)(r=arguments[t])&&(i=z(r))&&(f&&(f+=" "),f+=i);return f}function wr(r){return typeof r=="object"?Tr(r):r??""}const H=[...`
2
+ \r\f \v\uFEFF`];function Er(r,i,t){var f=r==null?"":""+r;if(i&&(f=f?f+" "+i:i),t){for(var s of Object.keys(t))if(t[s])f=f?f+" "+s:s;else if(f.length)for(var e=s.length,u=0;(u=f.indexOf(s,u))>=0;){var n=u+e;(u===0||H.includes(f[u-1]))&&(n===f.length||H.includes(f[n]))?f=(u===0?"":f.substring(0,u))+f.substring(n+1):u=n}}return f===""?null:f}function V(r,i=!1){var t=i?" !important;":";",f="";for(var s of Object.keys(r)){var e=r[s];e!=null&&e!==""&&(f+=" "+s+": "+e+t)}return f}function k(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function Nr(r,i){if(i){var t="",f,s;if(Array.isArray(i)?(f=i[0],s=i[1]):f=i,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var e=!1,u=0,n=!1,d=[];f&&d.push(...Object.keys(f).map(k)),s&&d.push(...Object.keys(s).map(k));var l=0,g=-1;const N=r.length;for(var v=0;v<N;v++){var a=r[v];if(n?a==="/"&&r[v-1]==="*"&&(n=!1):e?e===a&&(e=!1):a==="/"&&r[v+1]==="*"?n=!0:a==='"'||a==="'"?e=a:a==="("?u++:a===")"&&u--,!n&&e===!1&&u===0){if(a===":"&&g===-1)g=v;else if(a===";"||v===N-1){if(g!==-1){var E=k(r.substring(l,g).trim());if(!d.includes(E)){a!==";"&&v++;var T=r.substring(l,v).trim();t+=" "+T+";"}}l=v+1,g=-1}}}}return f&&(t+=V(f)),s&&(t+=V(s,!0)),t=t.trim(),t===""?null:t}return r==null?null:String(r)}function Sr(r,i,t,f,s,e){var u=r.__className;if(w||u!==t||u===void 0){var n=Er(t,f,e);(!w||n!==r.getAttribute("class"))&&(n==null?r.removeAttribute("class"):i?r.className=n:r.setAttribute("class",n)),r.__className=t}else if(e&&s!==e)for(var d in e){var l=!!e[d];(s==null||l!==!!s[d])&&r.classList.toggle(d,l)}return e}function C(r,i={},t,f){for(var s in t){var e=t[s];i[s]!==e&&(t[s]==null?r.style.removeProperty(s):r.style.setProperty(s,e,f))}}function Ir(r,i,t,f){var s=r.__style;if(w||s!==i){var e=Nr(i,f);(!w||e!==r.getAttribute("style"))&&(e==null?r.removeAttribute("style"):r.style.cssText=e),r.__style=i}else f&&(Array.isArray(f)?(C(r,t==null?void 0:t[0],f[0]),C(r,t==null?void 0:t[1],f[1],"important")):C(r,t,f));return f}function $(r,i,t=!1){if(r.multiple){if(i==null)return;if(!W(i))return m();for(var f of r.options)f.selected=i.includes(B(f));return}for(f of r.options){var s=B(f);if(x(s,i)){f.selected=!0;return}}(!t||i!==void 0)&&(r.selectedIndex=-1)}function pr(r){var i=new MutationObserver(()=>{$(r,r.__value)});i.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),rr(()=>{i.disconnect()})}function B(r){return"__value"in r?r.__value:r.value}const p=Symbol("class"),O=Symbol("style"),J=Symbol("is custom element"),X=Symbol("is html"),Or=P?"link":"LINK",Lr=P?"input":"INPUT",Pr=P?"option":"OPTION",kr=P?"select":"SELECT";function Cr(r){if(w){var i=!1,t=()=>{if(!i){if(i=!0,r.hasAttribute("value")){var f=r.value;L(r,"value",null),r.value=f}if(r.hasAttribute("checked")){var s=r.checked;L(r,"checked",null),r.checked=s}}};r.__on_r=t,cr(t),nr()}}function Ur(r,i){var t=j(r);t.checked!==(t.checked=i??void 0)&&(r.checked=i)}function Mr(r,i){i?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function L(r,i,t,f){var s=j(r);w&&(s[i]=r.getAttribute(i),i==="src"||i==="srcset"||i==="href"&&r.nodeName===Or)||s[i]!==(s[i]=t)&&(i==="loading"&&(r[lr]=t),t==null?r.removeAttribute(i):typeof t!="string"&&q(r).includes(i)?r[i]=t:r.setAttribute(i,t))}function $r(r,i,t,f,s=!1,e=!1){if(w&&s&&r.nodeName===Lr){var u=r,n=u.type==="checkbox"?"defaultChecked":"defaultValue";n in t||Cr(u)}var d=j(r),l=d[J],g=!d[X];let v=w&&l;v&&R(!1);var a=i||{},E=r.nodeName===Pr;for(var T in i)T in t||(t[T]=null);t.class?t.class=wr(t.class):t[p]&&(t.class=null),t[O]&&(t.style??(t.style=null));var N=q(r);for(const o in t){let c=t[o];if(E&&o==="value"&&c==null){r.value=r.__value="",a[o]=c;continue}if(o==="class"){var I=r.namespaceURI==="http://www.w3.org/1999/xhtml";Sr(r,I,c,f,i==null?void 0:i[p],t[p]),a[o]=c,a[p]=t[p];continue}if(o==="style"){Ir(r,c,i==null?void 0:i[O],t[O]),a[o]=c,a[O]=t[O];continue}var A=a[o];if(!(c===A&&!(c===void 0&&r.hasAttribute(o)))){a[o]=c;var y=o[0]+o[1];if(y!=="$$")if(y==="on"){const _={},S="$$"+o;let h=o.slice(2);var U=Ar(h);if(vr(h)&&(h=h.slice(0,-7),_.capture=!0),!U&&A){if(c!=null)continue;r.removeEventListener(h,a[S],_),a[S]=null}if(U)dr(h,r,c),br([h]);else if(c!=null){let Q=function(Z){a[o].call(this,Z)};a[S]=hr(h,r,Q,_)}}else if(o==="style")L(r,o,c);else if(o==="autofocus")ur(r,!!c);else if(!l&&(o==="__value"||o==="value"&&c!=null))r.value=r.__value=c;else if(o==="selected"&&E)Mr(r,c);else{var b=o;g||(b=gr(b));var G=b==="defaultValue"||b==="defaultChecked";if(c==null&&!l&&!G)if(d[o]=null,b==="value"||b==="checked"){let _=r;const S=i===void 0;if(b==="value"){let h=_.defaultValue;_.removeAttribute(b),_.defaultValue=h,_.value=_.__value=S?h:null}else{let h=_.defaultChecked;_.removeAttribute(b),_.defaultChecked=h,_.checked=S?h:!1}}else r.removeAttribute(o);else G||N.includes(b)&&(l||typeof c!="string")?(r[b]=c,b in d&&(d[b]=or)):typeof c!="function"&&L(r,b,c)}}}return v&&R(!0),a}function Gr(r,i,t=[],f=[],s=[],e,u=!1,n=!1){tr(s,t,f,d=>{var l=void 0,g={},v=r.nodeName===kr,a=!1;if(F(()=>{var T=i(...d.map(sr)),N=$r(r,l,T,e,u,n);a&&v&&"value"in T&&$(r,T.value);for(let A of Object.getOwnPropertySymbols(g))T[A]||M(g[A]);for(let A of Object.getOwnPropertySymbols(T)){var I=T[A];A.description===er&&(!l||I!==l[A])&&(g[A]&&M(g[A]),g[A]=K(()=>_r(r,()=>I))),N[A]=I}l=N}),v){var E=r;Y(()=>{$(E,l.value,!0),pr(E)})}a=!0})}function j(r){return r.__attributes??(r.__attributes={[J]:r.nodeName.includes("-"),[X]:r.namespaceURI===ir})}var D=new Map;function q(r){var i=r.getAttribute("is")||r.nodeName,t=D.get(i);if(t)return t;D.set(i,t=[]);for(var f,s=r,e=Element.prototype;e!==s;){f=ar(s);for(var u in f)f[u].set&&t.push(u);s=fr(s)}return t}const Rr="rssany",Hr="https://github.com/joohw/rssany";function Vr(r,i){return fetch(r,i)}async function Br(r,i){const t=await fetch(r,i),s=(await t.text()).trim();if(!t.ok){const e=s.length>100?s.slice(0,100)+"…":s;throw new Error(`请求失败 ${t.status} ${t.statusText}${e?`:${e}`:""}`)}if(!s)throw new Error("API 返回空内容");try{const e=JSON.parse(s);if(e===null&&s==="null")throw new Error("API 返回 null");return e}catch(e){if(e instanceof Error&&e.message==="API 返回 null")throw e;const u=e instanceof SyntaxError?e.message:String(e),n=s.length>80?s.slice(0,80)+"…":s;throw new Error(`API 返回格式异常: ${u}。响应预览: ${n}`)}}export{Hr as G,Rr as P,Vr as a,Sr as b,Br as c,Ur as d,Ir as e,Gr as f,Tr as g,Cr as r,L as s};
@@ -1,13 +1,13 @@
1
- var Kn=Object.defineProperty;var qn=Object.getPrototypeOf;var Hn=Reflect.get;var Ke=n=>{throw TypeError(n)};var Xn=(n,t,e)=>t in n?Kn(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var E=(n,t,e)=>Xn(n,typeof t!="symbol"?t+"":t,e),Ee=(n,t,e)=>t.has(n)||Ke("Cannot "+e);var s=(n,t,e)=>(Ee(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Ke("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),p=(n,t,e,r)=>(Ee(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),v=(n,t,e)=>(Ee(n,t,"access private method"),e);var qe=(n,t,e)=>Hn(qn(n),e,t);import{b as Yn,a as L,d as Zn,c as G}from"./CS53ooo0.js";import"./BA4Gucnq.js";import{be as Jn,b as fn,E as dn,h as M,a as He,g as Te,bl as Qn,aF as $n,bm as tr,N as er,n as nr,e as Xe,c as Se,Y as rr,ah as ir,at as ut,au as ct,aq as St,U as kt,av as sr,f as z,aw as or,ax as ar,i as T,aA as ye,aB as ur,b7 as ot,a4 as cr,a5 as k,bn as Ye,A as lr,aN as At,bo as fr,bp as Ze,bq as dr,am as hr,an as we,T as pr,aj as wt,br,bs as mr}from"./vtBo8kBV.js";import{e as vr,i as gr}from"./CFwxUBGi.js";import{s as yr}from"./ChUctqXA.js";import{g as wr,f as Er,o as R,m as Tr,u as Sr}from"./B2cyTHdf.js";import{B as hn,i as Ar}from"./BkD3yAYe.js";import{d as Je,f as Ae}from"./DoRPmqLn.js";import{i as Cr}from"./DVa8Y-mQ.js";import{l as Qe,p as w}from"./BAJAS8BI.js";import{k as xr}from"./DCEayuDt.js";function Ir(){return Symbol(Jn)}function Et(n,t,...e){var r=new hn(n);fn(()=>{const i=t()??null;r.ensure(i,i&&(a=>i(a,...e)))},dn)}function Or(n,t,e,r,i,a){let o=M;M&&He();var u=null;M&&Te.nodeType===Qn&&(u=Te,He());var f=M?Te:n,l=new hn(f,!1);fn(()=>{const b=t()||null;var h=tr;if(b===null){l.ensure(null,null);return}return l.ensure(b,g=>{if(b){if(u=M?u:$n(b,h),Yn(u,u),r){M&&wr(b)&&u.append(document.createComment(""));var A=M?er(u):u.appendChild(nr());M&&(A===null?Xe(!1):Se(A)),r(u,A)}rr.nodes.end=u,g.before(u)}M&&Se(g)}),()=>{}},dn),ir(()=>{}),o&&(Xe(!0),Se(f))}/**
1
+ var Kn=Object.defineProperty;var qn=Object.getPrototypeOf;var Hn=Reflect.get;var Ke=n=>{throw TypeError(n)};var Xn=(n,t,e)=>t in n?Kn(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var E=(n,t,e)=>Xn(n,typeof t!="symbol"?t+"":t,e),Ee=(n,t,e)=>t.has(n)||Ke("Cannot "+e);var s=(n,t,e)=>(Ee(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Ke("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),p=(n,t,e,r)=>(Ee(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),v=(n,t,e)=>(Ee(n,t,"access private method"),e);var qe=(n,t,e)=>Hn(qn(n),e,t);import{b as Yn,a as L,d as Zn,c as G}from"./DIeahUKq.js";import"./CEWi_rGa.js";import{bf as Jn,b as fn,E as dn,h as M,a as He,g as Se,bm as Qn,aG as $n,bn as tr,R as er,p as nr,e as Xe,c as Te,Y as rr,ah as ir,at as ut,au as ct,aq as Tt,u as kt,av as sr,f as z,aw as or,ax as ar,k as S,aA as ye,aB as ur,b8 as ot,a4 as cr,a5 as k,bo as Ye,G as lr,aO as At,bp as fr,bq as Ze,br as dr,am as hr,an as we,t as pr,aj as wt,bs as br,bt as mr}from"./BsQ08Wq_.js";import{e as vr,i as gr}from"./B553hBXT.js";import{s as yr}from"./Cc7aBSsN.js";import{g as wr,f as Er,o as N,m as Sr,u as Tr}from"./BK0ygNWX.js";import{B as hn,i as Ar}from"./rNwPv4DZ.js";import{f as Je,g as Ae}from"./WW6La7Nt.js";import{i as Cr}from"./Nd0ktDhd.js";import{l as Qe,p as w}from"./D8G961Hm.js";import{k as xr}from"./IhDlsCxD.js";function Ir(){return Symbol(Jn)}function Et(n,t,...e){var r=new hn(n);fn(()=>{const i=t()??null;r.ensure(i,i&&(a=>i(a,...e)))},dn)}function Or(n,t,e,r,i,a){let o=M;M&&He();var u=null;M&&Se.nodeType===Qn&&(u=Se,He());var f=M?Se:n,l=new hn(f,!1);fn(()=>{const b=t()||null;var h=tr;if(b===null){l.ensure(null,null);return}return l.ensure(b,g=>{if(b){if(u=M?u:$n(b,h),Yn(u,u),r){M&&wr(b)&&u.append(document.createComment(""));var A=M?er(u):u.appendChild(nr());M&&(A===null?Xe(!1):Te(A)),r(u,A)}rr.nodes.end=u,g.before(u)}M&&Te(g)}),()=>{}},dn),ir(()=>{}),o&&(Xe(!0),Te(f))}/**
2
2
  * @license lucide-svelte v0.460.1 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const kr={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"};var Nr=Zn("<svg><!><!></svg>");function Ss(n,t){const e=Qe(t,["children","$$slots","$$events","$$legacy"]),r=Qe(e,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);ut(t,!1);let i=w(t,"name",8,void 0),a=w(t,"color",8,"currentColor"),o=w(t,"size",8,24),u=w(t,"strokeWidth",8,2),f=w(t,"absoluteStrokeWidth",8,!1),l=w(t,"iconNode",24,()=>[]);const b=(...m)=>m.filter((d,C,Tt)=>!!d&&Tt.indexOf(d)===C).join(" ");Cr();var h=Nr();Je(h,(m,d)=>({...kr,...r,width:o(),height:o(),stroke:a(),"stroke-width":m,class:d}),[()=>(St(f()),St(u()),St(o()),kt(()=>f()?Number(u())*24/Number(o()):u())),()=>(St(i()),St(e),kt(()=>b("lucide-icon","lucide",i()?`lucide-${i()}`:"",e.class)))]);var g=sr(h);vr(g,1,l,gr,(m,d)=>{var C=ye(()=>ur(T(d),2));let Tt=()=>T(C)[0],jn=()=>T(C)[1];var ze=G(),Gn=z(ze);Or(Gn,Tt,!0,(zn,ls)=>{Je(zn,()=>({...jn()}))}),L(m,ze)});var A=or(g);yr(A,t,"default",{}),ar(h),L(n,h),ct()}function Rr(n){return typeof n=="function"}function Gt(n){return n!==null&&typeof n=="object"}const Pr=["string","number","bigint","boolean"];function xe(n){return n==null||Pr.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>xe(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const Qt=Symbol("box"),pn=Symbol("is-writable");function y(n,t){const e=ye(n);return t?{[Qt]:!0,[pn]:!0,get current(){return T(e)},set current(r){t(r)}}:{[Qt]:!0,get current(){return n()}}}function bn(n){return Gt(n)&&Qt in n}function As(n){return bn(n)?n:Rr(n)?y(n):mn(n)}function mn(n){let t=ot(cr(n));return{[Qt]:!0,[pn]:!0,get current(){return T(t)},set current(e){k(t,e,!0)}}}function vn(...n){return function(t){var e;for(const r of n)if(r){if(t.defaultPrevented)return;typeof r=="function"?r.call(this,t):(e=r.current)==null||e.call(this,t)}}}var $e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,_r=/\n/g,Fr=/^\s*/,Dr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Lr=/^:\s*/,Mr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Br=/^[;\s]*/,Wr=/^\s+|\s+$/g,Vr=`
7
- `,tn="/",en="*",J="",Ur="comment",jr="declaration";function Gr(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function i(m){var d=m.match(_r);d&&(e+=d.length);var C=m.lastIndexOf(Vr);r=~C?m.length-C:r+m.length}function a(){var m={line:e,column:r};return function(d){return d.position=new o(m),l(),d}}function o(m){this.start=m,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function u(m){var d=new Error(t.source+":"+e+":"+r+": "+m);if(d.reason=m,d.filename=t.source,d.line=e,d.column=r,d.source=n,!t.silent)throw d}function f(m){var d=m.exec(n);if(d){var C=d[0];return i(C),n=n.slice(C.length),d}}function l(){f(Fr)}function b(m){var d;for(m=m||[];d=h();)d!==!1&&m.push(d);return m}function h(){var m=a();if(!(tn!=n.charAt(0)||en!=n.charAt(1))){for(var d=2;J!=n.charAt(d)&&(en!=n.charAt(d)||tn!=n.charAt(d+1));)++d;if(d+=2,J===n.charAt(d-1))return u("End of comment missing");var C=n.slice(2,d-2);return r+=2,i(C),n=n.slice(d),r+=2,m({type:Ur,comment:C})}}function g(){var m=a(),d=f(Dr);if(d){if(h(),!f(Lr))return u("property missing ':'");var C=f(Mr),Tt=m({type:jr,property:nn(d[0].replace($e,J)),value:C?nn(C[0].replace($e,J)):J});return f(Br),Tt}}function A(){var m=[];b(m);for(var d;d=g();)d!==!1&&(m.push(d),b(m));return m}return l(),A()}function nn(n){return n?n.replace(Wr,J):J}function zr(n,t){let e=null;if(!n||typeof n!="string")return e;const r=Gr(n),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:o,value:u}=a;i?t(o,u,a):u&&(e=e||{},e[o]=u)}),e}const Kr=/\d/,qr=["-","_","/","."];function Hr(n=""){if(!Kr.test(n))return n!==n.toLowerCase()}function Xr(n){const t=[];let e="",r,i;for(const a of n){const o=qr.includes(a);if(o===!0){t.push(e),e="",r=void 0;continue}const u=Hr(a);if(i===!1){if(r===!1&&u===!0){t.push(e),e=a,r=u;continue}if(r===!0&&u===!1&&e.length>1){const f=e.at(-1);t.push(e.slice(0,Math.max(0,e.length-1))),e=f+a,r=u;continue}}e+=a,r=u,i=o}return t.push(e),t}function gn(n){return n?Xr(n).map(t=>Zr(t)).join(""):""}function Yr(n){return Jr(gn(n||""))}function Zr(n){return n?n[0].toUpperCase()+n.slice(1):""}function Jr(n){return n?n[0].toLowerCase()+n.slice(1):""}function Kt(n){if(!n)return{};const t={};function e(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[gn(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[Yr(r)]=i}return zr(n,e),t}function Ot(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function Qr(n,t){const e=RegExp(n,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,t):r}}const $r=Qr(/[A-Z]/,n=>`-${n.toLowerCase()}`);function ti(n){if(!n||typeof n!="object"||Array.isArray(n))throw new TypeError(`expected an argument of type object, but got ${typeof n}`);return Object.keys(n).map(t=>`${$r(t)}: ${n[t]};`).join(`
6
+ */const kr={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"};var Rr=Zn("<svg><!><!></svg>");function Ts(n,t){const e=Qe(t,["children","$$slots","$$events","$$legacy"]),r=Qe(e,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);ut(t,!1);let i=w(t,"name",8,void 0),a=w(t,"color",8,"currentColor"),o=w(t,"size",8,24),u=w(t,"strokeWidth",8,2),f=w(t,"absoluteStrokeWidth",8,!1),l=w(t,"iconNode",24,()=>[]);const b=(...m)=>m.filter((d,C,St)=>!!d&&St.indexOf(d)===C).join(" ");Cr();var h=Rr();Je(h,(m,d)=>({...kr,...r,width:o(),height:o(),stroke:a(),"stroke-width":m,class:d}),[()=>(Tt(f()),Tt(u()),Tt(o()),kt(()=>f()?Number(u())*24/Number(o()):u())),()=>(Tt(i()),Tt(e),kt(()=>b("lucide-icon","lucide",i()?`lucide-${i()}`:"",e.class)))]);var g=sr(h);vr(g,1,l,gr,(m,d)=>{var C=ye(()=>ur(S(d),2));let St=()=>S(C)[0],jn=()=>S(C)[1];var ze=G(),Gn=z(ze);Or(Gn,St,!0,(zn,ls)=>{Je(zn,()=>({...jn()}))}),L(m,ze)});var A=or(g);yr(A,t,"default",{}),ar(h),L(n,h),ct()}function Nr(n){return typeof n=="function"}function Gt(n){return n!==null&&typeof n=="object"}const Pr=["string","number","bigint","boolean"];function xe(n){return n==null||Pr.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>xe(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const Qt=Symbol("box"),pn=Symbol("is-writable");function y(n,t){const e=ye(n);return t?{[Qt]:!0,[pn]:!0,get current(){return S(e)},set current(r){t(r)}}:{[Qt]:!0,get current(){return n()}}}function bn(n){return Gt(n)&&Qt in n}function As(n){return bn(n)?n:Nr(n)?y(n):mn(n)}function mn(n){let t=ot(cr(n));return{[Qt]:!0,[pn]:!0,get current(){return S(t)},set current(e){k(t,e,!0)}}}function vn(...n){return function(t){var e;for(const r of n)if(r){if(t.defaultPrevented)return;typeof r=="function"?r.call(this,t):(e=r.current)==null||e.call(this,t)}}}var $e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,_r=/\n/g,Fr=/^\s*/,Dr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Lr=/^:\s*/,Mr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Br=/^[;\s]*/,Wr=/^\s+|\s+$/g,Vr=`
7
+ `,tn="/",en="*",J="",Ur="comment",jr="declaration";function Gr(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function i(m){var d=m.match(_r);d&&(e+=d.length);var C=m.lastIndexOf(Vr);r=~C?m.length-C:r+m.length}function a(){var m={line:e,column:r};return function(d){return d.position=new o(m),l(),d}}function o(m){this.start=m,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function u(m){var d=new Error(t.source+":"+e+":"+r+": "+m);if(d.reason=m,d.filename=t.source,d.line=e,d.column=r,d.source=n,!t.silent)throw d}function f(m){var d=m.exec(n);if(d){var C=d[0];return i(C),n=n.slice(C.length),d}}function l(){f(Fr)}function b(m){var d;for(m=m||[];d=h();)d!==!1&&m.push(d);return m}function h(){var m=a();if(!(tn!=n.charAt(0)||en!=n.charAt(1))){for(var d=2;J!=n.charAt(d)&&(en!=n.charAt(d)||tn!=n.charAt(d+1));)++d;if(d+=2,J===n.charAt(d-1))return u("End of comment missing");var C=n.slice(2,d-2);return r+=2,i(C),n=n.slice(d),r+=2,m({type:Ur,comment:C})}}function g(){var m=a(),d=f(Dr);if(d){if(h(),!f(Lr))return u("property missing ':'");var C=f(Mr),St=m({type:jr,property:nn(d[0].replace($e,J)),value:C?nn(C[0].replace($e,J)):J});return f(Br),St}}function A(){var m=[];b(m);for(var d;d=g();)d!==!1&&(m.push(d),b(m));return m}return l(),A()}function nn(n){return n?n.replace(Wr,J):J}function zr(n,t){let e=null;if(!n||typeof n!="string")return e;const r=Gr(n),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:o,value:u}=a;i?t(o,u,a):u&&(e=e||{},e[o]=u)}),e}const Kr=/\d/,qr=["-","_","/","."];function Hr(n=""){if(!Kr.test(n))return n!==n.toLowerCase()}function Xr(n){const t=[];let e="",r,i;for(const a of n){const o=qr.includes(a);if(o===!0){t.push(e),e="",r=void 0;continue}const u=Hr(a);if(i===!1){if(r===!1&&u===!0){t.push(e),e=a,r=u;continue}if(r===!0&&u===!1&&e.length>1){const f=e.at(-1);t.push(e.slice(0,Math.max(0,e.length-1))),e=f+a,r=u;continue}}e+=a,r=u,i=o}return t.push(e),t}function gn(n){return n?Xr(n).map(t=>Zr(t)).join(""):""}function Yr(n){return Jr(gn(n||""))}function Zr(n){return n?n[0].toUpperCase()+n.slice(1):""}function Jr(n){return n?n[0].toLowerCase()+n.slice(1):""}function Kt(n){if(!n)return{};const t={};function e(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[gn(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[Yr(r)]=i}return zr(n,e),t}function Ot(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function Qr(n,t){const e=RegExp(n,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,t):r}}const $r=Qr(/[A-Z]/,n=>`-${n.toLowerCase()}`);function ti(n){if(!n||typeof n!="object"||Array.isArray(n))throw new TypeError(`expected an argument of type object, but got ${typeof n}`);return Object.keys(n).map(t=>`${$r(t)}: ${n[t]};`).join(`
8
8
  `)}function ei(n={}){return ti(n).replace(`
9
9
  `," ")}const ni=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],ri=new Set(ni);function ii(n){return ri.has(n)}function Cs(...n){const t={...n[0]};for(let e=1;e<n.length;e++){const r=n[e];if(r){for(const i of Object.keys(r)){const a=t[i],o=r[i],u=typeof a=="function",f=typeof o=="function";if(u&&ii(i)){const l=a,b=o;t[i]=vn(l,b)}else if(u&&f)t[i]=Ot(a,o);else if(i==="class"){const l=xe(a),b=xe(o);l&&b?t[i]=Ae(a,o):l?t[i]=Ae(a):b&&(t[i]=Ae(o))}else if(i==="style"){const l=typeof a=="object",b=typeof o=="object",h=typeof a=="string",g=typeof o=="string";if(l&&b)t[i]={...a,...o};else if(l&&g){const A=Kt(o);t[i]={...a,...A}}else if(h&&b){const A=Kt(a);t[i]={...A,...o}}else if(h&&g){const A=Kt(a),m=Kt(o);t[i]={...A,...m}}else l?t[i]=a:b?t[i]=o:h?t[i]=a:g&&(t[i]=o)}else t[i]=o!==void 0?o:a}for(const i of Object.getOwnPropertySymbols(r)){const a=t[i],o=r[i];t[i]=o!==void 0?o:a}}}return typeof t.style=="object"&&(t.style=ei(t.style).replaceAll(`
10
- `," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const si=typeof window<"u"?window:void 0;function oi(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var _,F,B,ie,P,It,Xt;const We=class We extends Map{constructor(e){super();c(this,P);c(this,_,new Map);c(this,F,ot(0));c(this,B,ot(0));c(this,ie,Ye||-1);if(e){for(var[r,i]of e)super.set(r,i);s(this,B).v=super.size}}has(e){var r=s(this,_),i=r.get(e);if(i===void 0)if(super.has(e))i=v(this,P,It).call(this,0),r.set(e,i);else return T(s(this,F)),!1;return T(i),!0}forEach(e,r){v(this,P,Xt).call(this),super.forEach(e,r)}get(e){var r=s(this,_),i=r.get(e);if(i===void 0)if(super.has(e))i=v(this,P,It).call(this,0),r.set(e,i);else{T(s(this,F));return}return T(i),super.get(e)}set(e,r){var h;var i=s(this,_),a=i.get(e),o=super.get(e),u=super.set(e,r),f=s(this,F);if(a===void 0)a=v(this,P,It).call(this,0),i.set(e,a),k(s(this,B),super.size),At(f);else if(o!==r){At(a);var l=f.reactions===null?null:new Set(f.reactions),b=l===null||!((h=a.reactions)!=null&&h.every(g=>l.has(g)));b&&At(f)}return u}delete(e){var r=s(this,_),i=r.get(e),a=super.delete(e);return i!==void 0&&(r.delete(e),k(i,-1)),a&&(k(s(this,B),super.size),At(s(this,F))),a}clear(){if(super.size!==0){super.clear();var e=s(this,_);k(s(this,B),0);for(var r of e.values())k(r,-1);At(s(this,F)),e.clear()}}keys(){return T(s(this,F)),super.keys()}values(){return v(this,P,Xt).call(this),super.values()}entries(){return v(this,P,Xt).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return T(s(this,B)),super.size}};_=new WeakMap,F=new WeakMap,B=new WeakMap,ie=new WeakMap,P=new WeakSet,It=function(e){return Ye===s(this,ie)?ot(e):lr(e)},Xt=function(){T(s(this,F));var e=s(this,_);if(s(this,B).v!==e.size){for(var r of qe(We.prototype,this,"keys").call(this))if(!e.has(r)){var i=v(this,P,It).call(this,0);e.set(r,i)}}for([,i]of s(this,_))T(i)};let Ie=We;var lt,Nt;class ai{constructor(t={}){c(this,lt);c(this,Nt);const{window:e=si,document:r=e==null?void 0:e.document}=t;e!==void 0&&(p(this,lt,r),p(this,Nt,Er(i=>{const a=R(e,"focusin",i),o=R(e,"focusout",i);return()=>{a(),o()}})))}get current(){var t;return(t=s(this,Nt))==null||t.call(this),s(this,lt)?oi(s(this,lt)):null}}lt=new WeakMap,Nt=new WeakMap;new ai;var Rt,W;class ui{constructor(t){c(this,Rt);c(this,W);p(this,Rt,t),p(this,W,Symbol(t))}get key(){return s(this,W)}exists(){return fr(s(this,W))}get(){const t=Ze(s(this,W));if(t===void 0)throw new Error(`Context "${s(this,Rt)}" not found`);return t}getOr(t){const e=Ze(s(this,W));return e===void 0?t:e}set(t){return dr(s(this,W),t)}}Rt=new WeakMap,W=new WeakMap;function ci(n,t){switch(n){case"post":we(t);break;case"pre":hr(t);break}}function yn(n,t,e,r={}){const{lazy:i=!1}=r;let a=!i,o=Array.isArray(n)?[]:void 0;ci(t,()=>{const u=Array.isArray(n)?n.map(l=>l()):n();if(!a){a=!0,o=u;return}const f=kt(()=>e(u,o));return o=u,f})}function Y(n,t,e){yn(n,"post",t,e)}function li(n,t,e){yn(n,"pre",t,e)}Y.pre=li;function zt(n){we(()=>()=>{n()})}function fi(n,t){return setTimeout(t,n)}function Be(n){pr().then(n)}const di=1,hi=9,pi=11;function Oe(n){return Gt(n)&&n.nodeType===di&&typeof n.nodeName=="string"}function wn(n){return Gt(n)&&n.nodeType===hi}function bi(n){var t;return Gt(n)&&((t=n.constructor)==null?void 0:t.name)==="VisualViewport"}function mi(n){return Gt(n)&&n.nodeType!==void 0}function En(n){return mi(n)&&n.nodeType===pi&&"host"in n}function vi(n,t){var r;if(!n||!t||!Oe(n)||!Oe(t))return!1;const e=(r=t.getRootNode)==null?void 0:r.call(t);if(n===t||n.contains(t))return!0;if(e&&En(e)){let i=t;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function gi(n){return wn(n)?n:bi(n)?n.document:(n==null?void 0:n.ownerDocument)??document}function yi(n){var t;return En(n)?yi(n.host):wn(n)?n.defaultView??window:Oe(n)?((t=n.ownerDocument)==null?void 0:t.defaultView)??window:window}function wi(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Pt;class Tn{constructor(t){E(this,"element");c(this,Pt,ye(()=>this.element.current?this.element.current.getRootNode()??document:document));E(this,"getDocument",()=>gi(this.root));E(this,"getWindow",()=>this.getDocument().defaultView??window);E(this,"getActiveElement",()=>wi(this.root));E(this,"isActiveElement",t=>t===this.getActiveElement());E(this,"querySelector",t=>this.root?this.root.querySelector(t):null);E(this,"querySelectorAll",t=>this.root?this.root.querySelectorAll(t):[]);E(this,"setTimeout",(t,e)=>this.getWindow().setTimeout(t,e));E(this,"clearTimeout",t=>this.getWindow().clearTimeout(t));typeof t=="function"?this.element=y(t):this.element=t}get root(){return T(s(this,Pt))}set root(t){k(s(this,Pt),t)}getElementById(t){return this.root.getElementById(t)}}Pt=new WeakMap;function xs(n,t){return{[Ir()]:e=>bn(n)?(n.current=e,kt(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n.current=null,t==null||t(null))}):(n(e),kt(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n(null),t==null||t(null))})}}function Is(n){return n?"true":"false"}function Os(n){return n?"":void 0}function ks(n){return n?!0:void 0}function Ns(n){return n?"open":"closed"}var ft,_t;class Ei{constructor(t){c(this,ft);c(this,_t);E(this,"attrs");p(this,ft,t.getVariant?t.getVariant():null),p(this,_t,s(this,ft)?`data-${s(this,ft)}-`:`data-${t.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(e=>[e,this.getAttr(e)]))}getAttr(t,e){return e?`data-${e}-${t}`:`${s(this,_t)}${t}`}selector(t,e){return`[${this.getAttr(t,e)}]`}}ft=new WeakMap,_t=new WeakMap;function Ti(n){const t=new Ei(n);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const Rs="ArrowDown",Ps="ArrowUp",_s="End",Fs="Enter",Si="Escape",Ds="Home",Ls="PageDown",Ms="PageUp",Bs=" ",Ws="Tab",Sn=typeof document<"u",rn=Ai();function Ai(){var n,t;return Sn&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function sn(n){return n instanceof HTMLElement}function Vs(n){return n instanceof Element}function Ci(n){return n instanceof Element||n instanceof SVGElement}function Us(n){return n.pointerType==="touch"}function js(n){return n!==null}var dt,Q,j,ke,Yt;class xi{constructor(t){c(this,j);c(this,dt);c(this,Q,null);p(this,dt,t),zt(()=>v(this,j,ke).call(this))}run(t){v(this,j,ke).call(this);const e=s(this,dt).ref.current;if(e){if(typeof e.getAnimations!="function"){v(this,j,Yt).call(this,t);return}p(this,Q,window.requestAnimationFrame(()=>{const r=e.getAnimations();if(r.length===0){v(this,j,Yt).call(this,t);return}Promise.allSettled(r.map(i=>i.finished)).then(()=>{v(this,j,Yt).call(this,t)})}))}}}dt=new WeakMap,Q=new WeakMap,j=new WeakSet,ke=function(){s(this,Q)&&(window.cancelAnimationFrame(s(this,Q)),p(this,Q,null))},Yt=function(t){const e=()=>{t()};s(this,dt).afterTick?Be(e):e()};var D,Ft,Dt,$;class Gs{constructor(t){c(this,D);c(this,Ft);c(this,Dt);c(this,$,ot(!1));p(this,D,t),k(s(this,$),t.open.current,!0),p(this,Ft,t.enabled??!0),p(this,Dt,new xi({ref:s(this,D).ref,afterTick:s(this,D).open})),Y(()=>s(this,D).open.current,e=>{e&&k(s(this,$),!0),s(this,Ft)&&s(this,Dt).run(()=>{var r,i;e===s(this,D).open.current&&(s(this,D).open.current||k(s(this,$),!1),(i=(r=s(this,D)).onComplete)==null||i.call(r))})})}get shouldRender(){return T(s(this,$))}}D=new WeakMap,Ft=new WeakMap,Dt=new WeakMap,$=new WeakMap;function N(){}function zs(n,t){return`bits-${n}`}function Ii(n,t){var e=G(),r=z(e);xr(r,()=>t.children,i=>{var a=G(),o=z(a);Et(o,()=>t.children??wt),L(i,a)}),L(n,e)}const Oi=new ui("BitsConfig");function ki(){const n=new Ni(null,{});return Oi.getOr(n).opts}class Ni{constructor(t,e){E(this,"opts");const r=Ri(t,e);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function Ri(n,t){return e=>y(()=>{var a,o;const i=(a=e(t))==null?void 0:a.current;if(i!==void 0)return i;if(n!==null)return(o=e(n.opts))==null?void 0:o.current})}function Pi(n,t){return e=>{const r=ki();return y(()=>{const i=e();if(i!==void 0)return i;const a=n(r).current;return a!==void 0?a:t})}}const _i=Pi(n=>n.defaultPortalTo,"body");function Ks(n,t){ut(t,!0);const e=_i(()=>t.to),r=br();let i=ye(a);function a(){if(!Sn||t.disabled)return null;let h=null;return typeof e.current=="string"?h=document.querySelector(e.current):h=e.current,h}let o;function u(){o&&(Sr(o),o=null)}Y([()=>T(i),()=>t.disabled],([h,g])=>{if(!h||g){u();return}return o=Tr(Ii,{target:h,props:{children:t.children},context:r}),()=>{u()}});var f=G(),l=z(f);{var b=h=>{var g=G(),A=z(g);Et(A,()=>t.children??wt),L(h,g)};Ar(l,h=>{t.disabled&&h(b)})}L(n,f),ct()}function on(n,t=500){let e=null;const r=(...i)=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{n(...i)},t)};return r.destroy=()=>{e!==null&&(clearTimeout(e),e=null)},r}function An(n,t){return n===t||n.contains(t)}function Cn(n){return(n==null?void 0:n.ownerDocument)??document}function Fi(n,t){const{clientX:e,clientY:r}=n,i=t.getBoundingClientRect();return e<i.left||e>i.right||r<i.top||r>i.bottom}/*!
10
+ `," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const si=typeof window<"u"?window:void 0;function oi(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var _,F,B,ie,P,It,Xt;const We=class We extends Map{constructor(e){super();c(this,P);c(this,_,new Map);c(this,F,ot(0));c(this,B,ot(0));c(this,ie,Ye||-1);if(e){for(var[r,i]of e)super.set(r,i);s(this,B).v=super.size}}has(e){var r=s(this,_),i=r.get(e);if(i===void 0)if(super.has(e))i=v(this,P,It).call(this,0),r.set(e,i);else return S(s(this,F)),!1;return S(i),!0}forEach(e,r){v(this,P,Xt).call(this),super.forEach(e,r)}get(e){var r=s(this,_),i=r.get(e);if(i===void 0)if(super.has(e))i=v(this,P,It).call(this,0),r.set(e,i);else{S(s(this,F));return}return S(i),super.get(e)}set(e,r){var h;var i=s(this,_),a=i.get(e),o=super.get(e),u=super.set(e,r),f=s(this,F);if(a===void 0)a=v(this,P,It).call(this,0),i.set(e,a),k(s(this,B),super.size),At(f);else if(o!==r){At(a);var l=f.reactions===null?null:new Set(f.reactions),b=l===null||!((h=a.reactions)!=null&&h.every(g=>l.has(g)));b&&At(f)}return u}delete(e){var r=s(this,_),i=r.get(e),a=super.delete(e);return i!==void 0&&(r.delete(e),k(i,-1)),a&&(k(s(this,B),super.size),At(s(this,F))),a}clear(){if(super.size!==0){super.clear();var e=s(this,_);k(s(this,B),0);for(var r of e.values())k(r,-1);At(s(this,F)),e.clear()}}keys(){return S(s(this,F)),super.keys()}values(){return v(this,P,Xt).call(this),super.values()}entries(){return v(this,P,Xt).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return S(s(this,B)),super.size}};_=new WeakMap,F=new WeakMap,B=new WeakMap,ie=new WeakMap,P=new WeakSet,It=function(e){return Ye===s(this,ie)?ot(e):lr(e)},Xt=function(){S(s(this,F));var e=s(this,_);if(s(this,B).v!==e.size){for(var r of qe(We.prototype,this,"keys").call(this))if(!e.has(r)){var i=v(this,P,It).call(this,0);e.set(r,i)}}for([,i]of s(this,_))S(i)};let Ie=We;var lt,Rt;class ai{constructor(t={}){c(this,lt);c(this,Rt);const{window:e=si,document:r=e==null?void 0:e.document}=t;e!==void 0&&(p(this,lt,r),p(this,Rt,Er(i=>{const a=N(e,"focusin",i),o=N(e,"focusout",i);return()=>{a(),o()}})))}get current(){var t;return(t=s(this,Rt))==null||t.call(this),s(this,lt)?oi(s(this,lt)):null}}lt=new WeakMap,Rt=new WeakMap;new ai;var Nt,W;class ui{constructor(t){c(this,Nt);c(this,W);p(this,Nt,t),p(this,W,Symbol(t))}get key(){return s(this,W)}exists(){return fr(s(this,W))}get(){const t=Ze(s(this,W));if(t===void 0)throw new Error(`Context "${s(this,Nt)}" not found`);return t}getOr(t){const e=Ze(s(this,W));return e===void 0?t:e}set(t){return dr(s(this,W),t)}}Nt=new WeakMap,W=new WeakMap;function ci(n,t){switch(n){case"post":we(t);break;case"pre":hr(t);break}}function yn(n,t,e,r={}){const{lazy:i=!1}=r;let a=!i,o=Array.isArray(n)?[]:void 0;ci(t,()=>{const u=Array.isArray(n)?n.map(l=>l()):n();if(!a){a=!0,o=u;return}const f=kt(()=>e(u,o));return o=u,f})}function Y(n,t,e){yn(n,"post",t,e)}function li(n,t,e){yn(n,"pre",t,e)}Y.pre=li;function zt(n){we(()=>()=>{n()})}function fi(n,t){return setTimeout(t,n)}function Be(n){pr().then(n)}const di=1,hi=9,pi=11;function Oe(n){return Gt(n)&&n.nodeType===di&&typeof n.nodeName=="string"}function wn(n){return Gt(n)&&n.nodeType===hi}function bi(n){var t;return Gt(n)&&((t=n.constructor)==null?void 0:t.name)==="VisualViewport"}function mi(n){return Gt(n)&&n.nodeType!==void 0}function En(n){return mi(n)&&n.nodeType===pi&&"host"in n}function vi(n,t){var r;if(!n||!t||!Oe(n)||!Oe(t))return!1;const e=(r=t.getRootNode)==null?void 0:r.call(t);if(n===t||n.contains(t))return!0;if(e&&En(e)){let i=t;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function gi(n){return wn(n)?n:bi(n)?n.document:(n==null?void 0:n.ownerDocument)??document}function yi(n){var t;return En(n)?yi(n.host):wn(n)?n.defaultView??window:Oe(n)?((t=n.ownerDocument)==null?void 0:t.defaultView)??window:window}function wi(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Pt;class Sn{constructor(t){E(this,"element");c(this,Pt,ye(()=>this.element.current?this.element.current.getRootNode()??document:document));E(this,"getDocument",()=>gi(this.root));E(this,"getWindow",()=>this.getDocument().defaultView??window);E(this,"getActiveElement",()=>wi(this.root));E(this,"isActiveElement",t=>t===this.getActiveElement());E(this,"querySelector",t=>this.root?this.root.querySelector(t):null);E(this,"querySelectorAll",t=>this.root?this.root.querySelectorAll(t):[]);E(this,"setTimeout",(t,e)=>this.getWindow().setTimeout(t,e));E(this,"clearTimeout",t=>this.getWindow().clearTimeout(t));typeof t=="function"?this.element=y(t):this.element=t}get root(){return S(s(this,Pt))}set root(t){k(s(this,Pt),t)}getElementById(t){return this.root.getElementById(t)}}Pt=new WeakMap;function xs(n,t){return{[Ir()]:e=>bn(n)?(n.current=e,kt(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n.current=null,t==null||t(null))}):(n(e),kt(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n(null),t==null||t(null))})}}function Is(n){return n?"true":"false"}function Os(n){return n?"":void 0}function ks(n){return n?!0:void 0}function Rs(n){return n?"open":"closed"}var ft,_t;class Ei{constructor(t){c(this,ft);c(this,_t);E(this,"attrs");p(this,ft,t.getVariant?t.getVariant():null),p(this,_t,s(this,ft)?`data-${s(this,ft)}-`:`data-${t.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(e=>[e,this.getAttr(e)]))}getAttr(t,e){return e?`data-${e}-${t}`:`${s(this,_t)}${t}`}selector(t,e){return`[${this.getAttr(t,e)}]`}}ft=new WeakMap,_t=new WeakMap;function Si(n){const t=new Ei(n);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const Ns="ArrowDown",Ps="ArrowUp",_s="End",Fs="Enter",Ti="Escape",Ds="Home",Ls="PageDown",Ms="PageUp",Bs=" ",Ws="Tab",Tn=typeof document<"u",rn=Ai();function Ai(){var n,t;return Tn&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function sn(n){return n instanceof HTMLElement}function Vs(n){return n instanceof Element}function Ci(n){return n instanceof Element||n instanceof SVGElement}function Us(n){return n.pointerType==="touch"}function js(n){return n!==null}var dt,Q,j,ke,Yt;class xi{constructor(t){c(this,j);c(this,dt);c(this,Q,null);p(this,dt,t),zt(()=>v(this,j,ke).call(this))}run(t){v(this,j,ke).call(this);const e=s(this,dt).ref.current;if(e){if(typeof e.getAnimations!="function"){v(this,j,Yt).call(this,t);return}p(this,Q,window.requestAnimationFrame(()=>{const r=e.getAnimations();if(r.length===0){v(this,j,Yt).call(this,t);return}Promise.allSettled(r.map(i=>i.finished)).then(()=>{v(this,j,Yt).call(this,t)})}))}}}dt=new WeakMap,Q=new WeakMap,j=new WeakSet,ke=function(){s(this,Q)&&(window.cancelAnimationFrame(s(this,Q)),p(this,Q,null))},Yt=function(t){const e=()=>{t()};s(this,dt).afterTick?Be(e):e()};var D,Ft,Dt,$;class Gs{constructor(t){c(this,D);c(this,Ft);c(this,Dt);c(this,$,ot(!1));p(this,D,t),k(s(this,$),t.open.current,!0),p(this,Ft,t.enabled??!0),p(this,Dt,new xi({ref:s(this,D).ref,afterTick:s(this,D).open})),Y(()=>s(this,D).open.current,e=>{e&&k(s(this,$),!0),s(this,Ft)&&s(this,Dt).run(()=>{var r,i;e===s(this,D).open.current&&(s(this,D).open.current||k(s(this,$),!1),(i=(r=s(this,D)).onComplete)==null||i.call(r))})})}get shouldRender(){return S(s(this,$))}}D=new WeakMap,Ft=new WeakMap,Dt=new WeakMap,$=new WeakMap;function R(){}function zs(n,t){return`bits-${n}`}function Ii(n,t){var e=G(),r=z(e);xr(r,()=>t.children,i=>{var a=G(),o=z(a);Et(o,()=>t.children??wt),L(i,a)}),L(n,e)}const Oi=new ui("BitsConfig");function ki(){const n=new Ri(null,{});return Oi.getOr(n).opts}class Ri{constructor(t,e){E(this,"opts");const r=Ni(t,e);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function Ni(n,t){return e=>y(()=>{var a,o;const i=(a=e(t))==null?void 0:a.current;if(i!==void 0)return i;if(n!==null)return(o=e(n.opts))==null?void 0:o.current})}function Pi(n,t){return e=>{const r=ki();return y(()=>{const i=e();if(i!==void 0)return i;const a=n(r).current;return a!==void 0?a:t})}}const _i=Pi(n=>n.defaultPortalTo,"body");function Ks(n,t){ut(t,!0);const e=_i(()=>t.to),r=br();let i=ye(a);function a(){if(!Tn||t.disabled)return null;let h=null;return typeof e.current=="string"?h=document.querySelector(e.current):h=e.current,h}let o;function u(){o&&(Tr(o),o=null)}Y([()=>S(i),()=>t.disabled],([h,g])=>{if(!h||g){u();return}return o=Sr(Ii,{target:h,props:{children:t.children},context:r}),()=>{u()}});var f=G(),l=z(f);{var b=h=>{var g=G(),A=z(g);Et(A,()=>t.children??wt),L(h,g)};Ar(l,h=>{t.disabled&&h(b)})}L(n,f),ct()}function on(n,t=500){let e=null;const r=(...i)=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{n(...i)},t)};return r.destroy=()=>{e!==null&&(clearTimeout(e),e=null)},r}function An(n,t){return n===t||n.contains(t)}function Cn(n){return(n==null?void 0:n.ownerDocument)??document}function Fi(n,t){const{clientX:e,clientY:r}=n,i=t.getBoundingClientRect();return e<i.left||e>i.right||r<i.top||r>i.bottom}/*!
11
11
  * tabbable 6.4.0
12
12
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
13
- */var xn=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],$t=xn.join(","),In=typeof Element>"u",at=In?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,te=!In&&Element.prototype.getRootNode?function(n){var t;return n==null||(t=n.getRootNode)===null||t===void 0?void 0:t.call(n)}:function(n){return n==null?void 0:n.ownerDocument},ee=function(t,e){var r;e===void 0&&(e=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):ee(t.parentNode));return o},Di=function(t){var e,r=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return r===""||r==="true"},On=function(t,e,r){if(ee(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll($t));return e&&at.call(t,$t)&&i.unshift(t),i=i.filter(r),i},ne=function(t,e,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!ee(o,!1))if(o.tagName==="SLOT"){var u=o.assignedElements(),f=u.length?u:o.children,l=ne(f,!0,r);r.flatten?i.push.apply(i,l):i.push({scopeParent:o,candidates:l})}else{var b=at.call(o,$t);b&&r.filter(o)&&(e||!t.includes(o))&&i.push(o);var h=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),g=!ee(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(h&&g){var A=ne(h===!0?o.children:h.children,!0,r);r.flatten?i.push.apply(i,A):i.push({scopeParent:o,candidates:A})}else a.unshift.apply(a,o.children)}}return i},kn=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Nn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Di(t))&&!kn(t)?0:t.tabIndex},Li=function(t,e){var r=Nn(t);return r<0&&e&&!kn(t)?0:r},Mi=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Rn=function(t){return t.tagName==="INPUT"},Bi=function(t){return Rn(t)&&t.type==="hidden"},Wi=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return e},Vi=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},Ui=function(t){if(!t.name)return!0;var e=t.form||te(t),r=function(u){return e.querySelectorAll('input[type="radio"][name="'+u+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=Vi(i,t.form);return!a||a===t},ji=function(t){return Rn(t)&&t.type==="radio"},Gi=function(t){return ji(t)&&!Ui(t)},zi=function(t){var e,r=t&&te(t),i=(e=r)===null||e===void 0?void 0:e.host,a=!1;if(r&&r!==t){var o,u,f;for(a=!!((o=i)!==null&&o!==void 0&&(u=o.ownerDocument)!==null&&u!==void 0&&u.contains(i)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!a&&i;){var l,b,h;r=te(i),i=(l=r)===null||l===void 0?void 0:l.host,a=!!((b=i)!==null&&b!==void 0&&(h=b.ownerDocument)!==null&&h!==void 0&&h.contains(i))}}return a},an=function(t){var e=t.getBoundingClientRect(),r=e.width,i=e.height;return r===0&&i===0},Ki=function(t,e){var r=e.displayCheck,i=e.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var a=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!a}if(getComputedStyle(t).visibility==="hidden")return!0;var o=at.call(t,"details>summary:first-of-type"),u=o?t.parentElement:t;if(at.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var f=t;t;){var l=t.parentElement,b=te(t);if(l&&!l.shadowRoot&&i(l)===!0)return an(t);t.assignedSlot?t=t.assignedSlot:!l&&b!==t.ownerDocument?t=b.host:t=l}t=f}if(zi(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return an(t);return!1},qi=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var r=0;r<e.children.length;r++){var i=e.children.item(r);if(i.tagName==="LEGEND")return at.call(e,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}e=e.parentElement}return!1},re=function(t,e){return!(e.disabled||Bi(e)||Ki(e,t)||Wi(e)||qi(e))},Ne=function(t,e){return!(Gi(e)||Nn(e)<0||!re(t,e))},Hi=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Pn=function(t){var e=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,u=o?i.scopeParent:i,f=Li(u,o),l=o?Pn(i.candidates):u;f===0?o?e.push.apply(e,l):e.push(u):r.push({documentOrder:a,tabIndex:f,item:i,isScope:o,content:l})}),r.sort(Mi).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(e)},Xi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=ne([t],e.includeContainer,{filter:Ne.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Hi}):r=On(t,e.includeContainer,Ne.bind(null,e)),Pn(r)},Yi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=ne([t],e.includeContainer,{filter:re.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):r=On(t,e.includeContainer,re.bind(null,e)),r},qs=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return at.call(t,$t)===!1?!1:Ne(e,t)},Zi=xn.concat("iframe:not([inert]):not([inert] *)").join(","),Ji=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return at.call(t,Zi)===!1?!1:re(e,t)};const Qi="data-context-menu-trigger",$i="data-context-menu-content";Ti({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var ht,tt,K,pt,bt,q,Lt,V,se,yt,_n,oe,mt,ae,ue,ce,le,Mt,Fn,fe,de;const Ve=class Ve{constructor(t){c(this,yt);E(this,"opts");c(this,ht);c(this,tt);c(this,K,{pointerdown:!1});c(this,pt,!1);c(this,bt,!1);c(this,q);c(this,Lt);c(this,V,N);c(this,se,t=>{t.defaultPrevented||this.opts.ref.current&&Be(()=>{var e,r;!this.opts.ref.current||s(this,le).call(this,t.target)||t.target&&!s(this,bt)&&((r=(e=s(this,Lt)).current)==null||r.call(e,t))})});c(this,oe,t=>{let e=t;e.defaultPrevented&&(e=un(t)),s(this,ht).current(t)});c(this,mt,on(t=>{if(!this.opts.ref.current){s(this,V).call(this);return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||ns(t,this.opts.ref.current);if(!s(this,pt)||v(this,yt,Fn).call(this)||!e){s(this,V).call(this);return}let r=t;if(r.defaultPrevented&&(r=un(r)),s(this,tt).current!=="close"&&s(this,tt).current!=="defer-otherwise-close"){s(this,V).call(this);return}t.pointerType==="touch"?(s(this,V).call(this),p(this,V,R(s(this,q),"click",s(this,oe),{once:!0}))):s(this,ht).current(r)},10));c(this,ae,t=>{s(this,K)[t.type]=!0});c(this,ue,t=>{s(this,K)[t.type]=!1});c(this,ce,()=>{this.opts.ref.current&&p(this,pt,es(this.opts.ref.current))});c(this,le,t=>this.opts.ref.current?An(this.opts.ref.current,t):!1);c(this,Mt,on(()=>{for(const t in s(this,K))s(this,K)[t]=!1;p(this,pt,!1)},20));c(this,fe,()=>{p(this,bt,!0)});c(this,de,()=>{p(this,bt,!1)});E(this,"props",{onfocuscapture:s(this,fe),onblurcapture:s(this,de)});this.opts=t,p(this,tt,t.interactOutsideBehavior),p(this,ht,t.onInteractOutside),p(this,Lt,t.onFocusOutside),we(()=>{p(this,q,Cn(this.opts.ref.current))});let e=N;const r=()=>{s(this,Mt).call(this),globalThis.bitsDismissableLayers.delete(this),s(this,mt).destroy(),e()};Y([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return fi(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,s(this,tt)),e(),e=v(this,yt,_n).call(this))}),r}),zt(()=>{s(this,Mt).destroy(),globalThis.bitsDismissableLayers.delete(this),s(this,mt).destroy(),s(this,V).call(this),e()})}static create(t){return new Ve(t)}};ht=new WeakMap,tt=new WeakMap,K=new WeakMap,pt=new WeakMap,bt=new WeakMap,q=new WeakMap,Lt=new WeakMap,V=new WeakMap,se=new WeakMap,yt=new WeakSet,_n=function(){return Ot(R(s(this,q),"pointerdown",Ot(s(this,ae),s(this,ce)),{capture:!0}),R(s(this,q),"pointerdown",Ot(s(this,ue),s(this,mt))),R(s(this,q),"focusin",s(this,se)))},oe=new WeakMap,mt=new WeakMap,ae=new WeakMap,ue=new WeakMap,ce=new WeakMap,le=new WeakMap,Mt=new WeakMap,Fn=function(){return Object.values(s(this,K)).some(Boolean)},fe=new WeakMap,de=new WeakMap;let Re=Ve;function ts(n=[...globalThis.bitsDismissableLayers]){return n.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function es(n){const t=[...globalThis.bitsDismissableLayers],e=ts(t);if(e)return e[0].opts.ref.current===n;const[r]=t[0];return r.opts.ref.current===n}function ns(n,t){const e=n.target;if(!Ci(e))return!1;const r=!!e.closest(`[${Qi}]`);if("button"in n&&n.button>0&&!r)return!1;if("button"in n&&n.button===0&&r)return!0;const i=!!t.closest(`[${$i}]`);return r&&i?!1:Cn(e).documentElement.contains(e)&&!An(t,e)&&Fi(n,t)}function un(n){const t=n.currentTarget,e=n.target;let r;n instanceof PointerEvent?r=new PointerEvent(n.type,n):r=new PointerEvent("pointerdown",n);let i=!1;return new Proxy(r,{get:(o,u)=>u==="currentTarget"?t:u==="target"?e:u==="preventDefault"?()=>{i=!0,typeof o.preventDefault=="function"&&o.preventDefault()}:u==="defaultPrevented"?i:u in o?o[u]:n[u]})}function Hs(n,t){ut(t,!0);let e=w(t,"interactOutsideBehavior",3,"close"),r=w(t,"onInteractOutside",3,N),i=w(t,"onFocusOutside",3,N),a=w(t,"isValidEvent",3,()=>!1);const o=Re.create({id:y(()=>t.id),interactOutsideBehavior:y(()=>e()),onInteractOutside:y(()=>r()),enabled:y(()=>t.enabled),onFocusOutside:y(()=>i()),isValidEvent:y(()=>a()),ref:t.ref});var u=G(),f=z(u);Et(f,()=>t.children??wt,()=>({props:o.props})),L(n,u),ct()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var he,pe;const Ue=class Ue{constructor(t){E(this,"opts");E(this,"domContext");c(this,he,()=>R(this.domContext.getDocument(),"keydown",s(this,pe),{passive:!1}));c(this,pe,t=>{if(t.key!==Si||!rs(this))return;const e=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(e)});this.opts=t,this.domContext=new Tn(this.opts.ref);let e=N;Y(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=s(this,he).call(this)),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}static create(t){return new Ue(t)}};he=new WeakMap,pe=new WeakMap;let Pe=Ue;function rs(n){const t=[...globalThis.bitsEscapeLayers],e=t.findLast(([i,{current:a}])=>a==="close"||a==="ignore");if(e)return e[0]===n;const[r]=t[0];return r===n}function Xs(n,t){ut(t,!0);let e=w(t,"escapeKeydownBehavior",3,"close"),r=w(t,"onEscapeKeydown",3,N);Pe.create({escapeKeydownBehavior:y(()=>e()),onEscapeKeydown:y(()=>r()),enabled:y(()=>t.enabled),ref:t.ref});var i=G(),a=z(i);Et(a,()=>t.children??wt),L(n,i),ct()}var U,Bt,et;const be=class be{constructor(){c(this,U,mn([]));c(this,Bt,new WeakMap);c(this,et,new WeakMap)}static getInstance(){return this.instance||(this.instance=new be),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const r=document.activeElement;r&&r!==document.body&&s(this,et).set(t,r),s(this,U).current=s(this,U).current.filter(i=>i!==t),s(this,U).current.unshift(t)}unregister(t){s(this,U).current=s(this,U).current.filter(r=>r!==t);const e=this.getActive();e&&e.resume()}getActive(){return s(this,U).current[0]}setFocusMemory(t,e){s(this,Bt).set(t,e)}getFocusMemory(t){return s(this,Bt).get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){s(this,et).set(t,e)}getPreFocusMemory(t){return s(this,et).get(t)}clearPreFocusMemory(t){s(this,et).delete(t)}};U=new WeakMap,Bt=new WeakMap,et=new WeakMap,E(be,"instance");let _e=be;var H,x,I,nt,X,S,Dn,Ln,Mn,Bn,De,Zt,Le;const je=class je{constructor(t){c(this,S);c(this,H,!1);c(this,x,null);c(this,I,_e.getInstance());c(this,nt,[]);c(this,X);p(this,X,t)}get paused(){return s(this,H)}pause(){p(this,H,!0)}resume(){p(this,H,!1)}mount(t){s(this,x)&&this.unmount(),p(this,x,t),s(this,I).register(this),v(this,S,Bn).call(this),v(this,S,Ln).call(this)}unmount(){s(this,x)&&(v(this,S,Dn).call(this),v(this,S,Mn).call(this),s(this,I).unregister(this),s(this,I).clearPreFocusMemory(this),p(this,x,null))}static use(t){let e=null;return Y([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(e||(e=new je(t)),e.mount(r)):e&&(e.unmount(),e=null)}),zt(()=>{e==null||e.unmount()}),{get props(){return{tabindex:-1}}}}};H=new WeakMap,x=new WeakMap,I=new WeakMap,nt=new WeakMap,X=new WeakMap,S=new WeakSet,Dn=function(){for(const t of s(this,nt))t();p(this,nt,[])},Ln=function(){if(!s(this,x))return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});s(this,X).onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!s(this,x))return;const e=v(this,S,Zt).call(this);e?(e.focus(),s(this,I).setFocusMemory(this,e)):s(this,x).focus()})},Mn=function(){var e,r;const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((r=(e=s(this,X).onCloseAutoFocus).current)==null||r.call(e,t),!t.defaultPrevented){const i=s(this,I).getPreFocusMemory(this);if(i&&document.contains(i))try{i.focus()}catch{document.body.focus()}}},Bn=function(){if(!s(this,x)||!s(this,X).trap.current)return;const t=s(this,x),e=t.ownerDocument,r=o=>{if(s(this,H)||!s(this,I).isActiveScope(this))return;const u=o.target;if(!u)return;if(t.contains(u))s(this,I).setFocusMemory(this,u);else{const l=s(this,I).getFocusMemory(this);if(l&&t.contains(l)&&Ji(l))o.preventDefault(),l.focus();else{const b=v(this,S,Zt).call(this),h=v(this,S,Le).call(this)[0];(b||h||t).focus()}}},i=o=>{if(!s(this,X).loop||s(this,H)||o.key!=="Tab"||!s(this,I).isActiveScope(this))return;const u=v(this,S,De).call(this);if(u.length===0)return;const f=u[0],l=u[u.length-1];!o.shiftKey&&e.activeElement===l?(o.preventDefault(),f.focus()):o.shiftKey&&e.activeElement===f&&(o.preventDefault(),l.focus())};s(this,nt).push(R(e,"focusin",r,{capture:!0}),R(t,"keydown",i));const a=new MutationObserver(()=>{const o=s(this,I).getFocusMemory(this);if(o&&!t.contains(o)){const u=v(this,S,Zt).call(this),f=v(this,S,Le).call(this)[0],l=u||f;l?(l.focus(),s(this,I).setFocusMemory(this,l)):t.focus()}});a.observe(t,{childList:!0,subtree:!0}),s(this,nt).push(()=>a.disconnect())},De=function(){return s(this,x)?Xi(s(this,x),{includeContainer:!1,getShadowRoot:!0}):[]},Zt=function(){return v(this,S,De).call(this)[0]||null},Le=function(){return s(this,x)?Yi(s(this,x),{includeContainer:!1,getShadowRoot:!0}):[]};let Fe=je;function Ys(n,t){ut(t,!0);let e=w(t,"enabled",3,!1),r=w(t,"trapFocus",3,!1),i=w(t,"loop",3,!1),a=w(t,"onCloseAutoFocus",3,N),o=w(t,"onOpenAutoFocus",3,N);const u=Fe.use({enabled:y(()=>e()),trap:y(()=>r()),loop:i(),onCloseAutoFocus:y(()=>a()),onOpenAutoFocus:y(()=>o()),ref:t.ref});var f=G(),l=z(f);Et(l,()=>t.focusScope??wt,()=>({props:u.props})),L(n,f),ct()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var vt,me,Wn,ve,Wt;const Ge=class Ge{constructor(t){c(this,me);E(this,"opts");E(this,"domContext");c(this,vt,N);c(this,ve,t=>{const e=this.opts.ref.current,r=t.target;!sn(e)||!sn(r)||!this.opts.enabled.current||!ss(this)||!vi(e,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&p(this,vt,is(e,this.domContext.getDocument().body)))});c(this,Wt,()=>{s(this,vt).call(this),p(this,vt,N)});this.opts=t,this.domContext=new Tn(t.ref);let e=N;Y(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=v(this,me,Wn).call(this)),()=>{e(),s(this,Wt).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(t){return new Ge(t)}};vt=new WeakMap,me=new WeakSet,Wn=function(){return Ot(R(this.domContext.getDocument(),"pointerdown",s(this,ve)),R(this.domContext.getDocument(),"pointerup",vn(s(this,Wt),this.opts.onPointerUp.current)))},ve=new WeakMap,Wt=new WeakMap;let Me=Ge;const cn=n=>n.style.userSelect||n.style.webkitUserSelect;function is(n,t){const e=cn(t),r=cn(n);return qt(t,"none"),qt(n,"text"),()=>{qt(t,e),qt(n,r)}}function qt(n,t){n.style.userSelect=t,n.style.webkitUserSelect=t}function ss(n){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const e=t.at(-1);return e?e[0]===n:!1}function Zs(n,t){ut(t,!0);let e=w(t,"preventOverflowTextSelection",3,!0),r=w(t,"onPointerDown",3,N),i=w(t,"onPointerUp",3,N);Me.create({id:y(()=>t.id),onPointerDown:y(()=>r()),onPointerUp:y(()=>i()),enabled:y(()=>t.enabled&&e()),ref:t.ref});var a=G(),o=z(a);Et(o,()=>t.children??wt),L(n,a),ct()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function os(n="bits"){return globalThis.bitsIdCounter.current++,`${n}-${globalThis.bitsIdCounter.current}`}var Vt,gt,rt,it,ge,Vn;class as{constructor(t){c(this,ge);c(this,Vt);c(this,gt,0);c(this,rt,ot());c(this,it);p(this,Vt,t)}get(...t){return p(this,gt,s(this,gt)+1),T(s(this,rt))===void 0&&p(this,it,mr(()=>{k(s(this,rt),s(this,Vt).call(this,...t),!0)})),we(()=>()=>{v(this,ge,Vn).call(this)}),T(s(this,rt))}}Vt=new WeakMap,gt=new WeakMap,rt=new WeakMap,it=new WeakMap,ge=new WeakSet,Vn=function(){p(this,gt,s(this,gt)-1),s(this,it)&&s(this,gt)<=0&&(s(this,it).call(this),k(s(this,rt),void 0),p(this,it,void 0))};const Jt=new Ie;let Ht=ot(null),Z=null,Ct=null,xt=!1;const ln=y(()=>{for(const n of Jt.values())if(n)return!0;return!1});let Ce=null;const us=new as(()=>{function n(){document.body.setAttribute("style",T(Ht)??""),document.body.style.removeProperty("--scrollbar-width"),rn&&(Z==null||Z()),k(Ht,null)}function t(){Ct!==null&&(window.clearTimeout(Ct),Ct=null)}function e(i,a){t(),xt=!0,Ce=Date.now();const o=Ce,u=()=>{Ct=null,Ce===o&&(Un(Jt)?xt=!1:(xt=!1,a()))},f=i===null?24:i;Ct=window.setTimeout(u,f)}function r(){T(Ht)===null&&Jt.size===0&&!xt&&k(Ht,document.body.getAttribute("style"),!0)}return Y(()=>ln.current,()=>{var b,h;if(!ln.current)return;r(),xt=!1;const i=getComputedStyle(document.documentElement),a=getComputedStyle(document.body),o=((b=i.scrollbarGutter)==null?void 0:b.includes("stable"))||((h=a.scrollbarGutter)==null?void 0:h.includes("stable")),u=window.innerWidth-document.documentElement.clientWidth,l={padding:Number.parseInt(a.paddingRight??"0",10)+u,margin:Number.parseInt(a.marginRight??"0",10)};u>0&&!o&&(document.body.style.paddingRight=`${l.padding}px`,document.body.style.marginRight=`${l.margin}px`,document.body.style.setProperty("--scrollbar-width",`${u}px`)),document.body.style.overflow="hidden",rn&&(Z=R(document,"touchmove",g=>{g.target===document.documentElement&&(g.touches.length>1||g.preventDefault())},{passive:!1})),Be(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),zt(()=>()=>{Z==null||Z()}),{get lockMap(){return Jt},resetBodyStyle:n,scheduleCleanupIfNoNewLocks:e,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});var st,Ut,jt,O;class cs{constructor(t,e=()=>null){c(this,st,os());c(this,Ut);c(this,jt,()=>null);c(this,O);E(this,"locked");p(this,Ut,t),p(this,jt,e),p(this,O,us.get()),s(this,O)&&(s(this,O).cancelPendingCleanup(),s(this,O).ensureInitialStyleCaptured(),s(this,O).lockMap.set(s(this,st),s(this,Ut)??!1),this.locked=y(()=>s(this,O).lockMap.get(s(this,st))??!1,r=>s(this,O).lockMap.set(s(this,st),r)),zt(()=>{if(s(this,O).lockMap.delete(s(this,st)),Un(s(this,O).lockMap))return;const r=s(this,jt).call(this);s(this,O).scheduleCleanupIfNoNewLocks(r,()=>{s(this,O).resetBodyStyle()})}))}}st=new WeakMap,Ut=new WeakMap,jt=new WeakMap,O=new WeakMap;function Un(n){for(const[t,e]of n)if(e)return!0;return!1}function Js(n,t){ut(t,!0);let e=w(t,"preventScroll",3,!0),r=w(t,"restoreScrollDelay",3,null);e()&&new cs(e(),()=>r()),ct()}export{ei as A,yi as B,ui as C,Hs as D,Fs as E,Ys as F,Be as G,Ps as H,Ss as I,Rs as J,Ws as K,Ms as L,Ds as M,Ls as N,_s as O,Ks as P,rn as Q,ks as R,Bs as S,Zs as T,Gs as a,y as b,Ti as c,xs as d,Os as e,zs as f,Ns as g,Xs as h,Js as i,gi as j,Vs as k,Tn as l,Cs as m,N as n,zt as o,Us as p,Is as q,qs as r,Et as s,si as t,mn as u,As as v,Y as w,os as x,Kt as y,js as z};
13
+ */var xn=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],$t=xn.join(","),In=typeof Element>"u",at=In?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,te=!In&&Element.prototype.getRootNode?function(n){var t;return n==null||(t=n.getRootNode)===null||t===void 0?void 0:t.call(n)}:function(n){return n==null?void 0:n.ownerDocument},ee=function(t,e){var r;e===void 0&&(e=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):ee(t.parentNode));return o},Di=function(t){var e,r=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return r===""||r==="true"},On=function(t,e,r){if(ee(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll($t));return e&&at.call(t,$t)&&i.unshift(t),i=i.filter(r),i},ne=function(t,e,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!ee(o,!1))if(o.tagName==="SLOT"){var u=o.assignedElements(),f=u.length?u:o.children,l=ne(f,!0,r);r.flatten?i.push.apply(i,l):i.push({scopeParent:o,candidates:l})}else{var b=at.call(o,$t);b&&r.filter(o)&&(e||!t.includes(o))&&i.push(o);var h=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),g=!ee(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(h&&g){var A=ne(h===!0?o.children:h.children,!0,r);r.flatten?i.push.apply(i,A):i.push({scopeParent:o,candidates:A})}else a.unshift.apply(a,o.children)}}return i},kn=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Rn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Di(t))&&!kn(t)?0:t.tabIndex},Li=function(t,e){var r=Rn(t);return r<0&&e&&!kn(t)?0:r},Mi=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Nn=function(t){return t.tagName==="INPUT"},Bi=function(t){return Nn(t)&&t.type==="hidden"},Wi=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return e},Vi=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},Ui=function(t){if(!t.name)return!0;var e=t.form||te(t),r=function(u){return e.querySelectorAll('input[type="radio"][name="'+u+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=Vi(i,t.form);return!a||a===t},ji=function(t){return Nn(t)&&t.type==="radio"},Gi=function(t){return ji(t)&&!Ui(t)},zi=function(t){var e,r=t&&te(t),i=(e=r)===null||e===void 0?void 0:e.host,a=!1;if(r&&r!==t){var o,u,f;for(a=!!((o=i)!==null&&o!==void 0&&(u=o.ownerDocument)!==null&&u!==void 0&&u.contains(i)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!a&&i;){var l,b,h;r=te(i),i=(l=r)===null||l===void 0?void 0:l.host,a=!!((b=i)!==null&&b!==void 0&&(h=b.ownerDocument)!==null&&h!==void 0&&h.contains(i))}}return a},an=function(t){var e=t.getBoundingClientRect(),r=e.width,i=e.height;return r===0&&i===0},Ki=function(t,e){var r=e.displayCheck,i=e.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var a=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!a}if(getComputedStyle(t).visibility==="hidden")return!0;var o=at.call(t,"details>summary:first-of-type"),u=o?t.parentElement:t;if(at.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var f=t;t;){var l=t.parentElement,b=te(t);if(l&&!l.shadowRoot&&i(l)===!0)return an(t);t.assignedSlot?t=t.assignedSlot:!l&&b!==t.ownerDocument?t=b.host:t=l}t=f}if(zi(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return an(t);return!1},qi=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var r=0;r<e.children.length;r++){var i=e.children.item(r);if(i.tagName==="LEGEND")return at.call(e,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}e=e.parentElement}return!1},re=function(t,e){return!(e.disabled||Bi(e)||Ki(e,t)||Wi(e)||qi(e))},Re=function(t,e){return!(Gi(e)||Rn(e)<0||!re(t,e))},Hi=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Pn=function(t){var e=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,u=o?i.scopeParent:i,f=Li(u,o),l=o?Pn(i.candidates):u;f===0?o?e.push.apply(e,l):e.push(u):r.push({documentOrder:a,tabIndex:f,item:i,isScope:o,content:l})}),r.sort(Mi).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(e)},Xi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=ne([t],e.includeContainer,{filter:Re.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Hi}):r=On(t,e.includeContainer,Re.bind(null,e)),Pn(r)},Yi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=ne([t],e.includeContainer,{filter:re.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):r=On(t,e.includeContainer,re.bind(null,e)),r},qs=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return at.call(t,$t)===!1?!1:Re(e,t)},Zi=xn.concat("iframe:not([inert]):not([inert] *)").join(","),Ji=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return at.call(t,Zi)===!1?!1:re(e,t)};const Qi="data-context-menu-trigger",$i="data-context-menu-content";Si({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var ht,tt,K,pt,bt,q,Lt,V,se,yt,_n,oe,mt,ae,ue,ce,le,Mt,Fn,fe,de;const Ve=class Ve{constructor(t){c(this,yt);E(this,"opts");c(this,ht);c(this,tt);c(this,K,{pointerdown:!1});c(this,pt,!1);c(this,bt,!1);c(this,q);c(this,Lt);c(this,V,R);c(this,se,t=>{t.defaultPrevented||this.opts.ref.current&&Be(()=>{var e,r;!this.opts.ref.current||s(this,le).call(this,t.target)||t.target&&!s(this,bt)&&((r=(e=s(this,Lt)).current)==null||r.call(e,t))})});c(this,oe,t=>{let e=t;e.defaultPrevented&&(e=un(t)),s(this,ht).current(t)});c(this,mt,on(t=>{if(!this.opts.ref.current){s(this,V).call(this);return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||ns(t,this.opts.ref.current);if(!s(this,pt)||v(this,yt,Fn).call(this)||!e){s(this,V).call(this);return}let r=t;if(r.defaultPrevented&&(r=un(r)),s(this,tt).current!=="close"&&s(this,tt).current!=="defer-otherwise-close"){s(this,V).call(this);return}t.pointerType==="touch"?(s(this,V).call(this),p(this,V,N(s(this,q),"click",s(this,oe),{once:!0}))):s(this,ht).current(r)},10));c(this,ae,t=>{s(this,K)[t.type]=!0});c(this,ue,t=>{s(this,K)[t.type]=!1});c(this,ce,()=>{this.opts.ref.current&&p(this,pt,es(this.opts.ref.current))});c(this,le,t=>this.opts.ref.current?An(this.opts.ref.current,t):!1);c(this,Mt,on(()=>{for(const t in s(this,K))s(this,K)[t]=!1;p(this,pt,!1)},20));c(this,fe,()=>{p(this,bt,!0)});c(this,de,()=>{p(this,bt,!1)});E(this,"props",{onfocuscapture:s(this,fe),onblurcapture:s(this,de)});this.opts=t,p(this,tt,t.interactOutsideBehavior),p(this,ht,t.onInteractOutside),p(this,Lt,t.onFocusOutside),we(()=>{p(this,q,Cn(this.opts.ref.current))});let e=R;const r=()=>{s(this,Mt).call(this),globalThis.bitsDismissableLayers.delete(this),s(this,mt).destroy(),e()};Y([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return fi(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,s(this,tt)),e(),e=v(this,yt,_n).call(this))}),r}),zt(()=>{s(this,Mt).destroy(),globalThis.bitsDismissableLayers.delete(this),s(this,mt).destroy(),s(this,V).call(this),e()})}static create(t){return new Ve(t)}};ht=new WeakMap,tt=new WeakMap,K=new WeakMap,pt=new WeakMap,bt=new WeakMap,q=new WeakMap,Lt=new WeakMap,V=new WeakMap,se=new WeakMap,yt=new WeakSet,_n=function(){return Ot(N(s(this,q),"pointerdown",Ot(s(this,ae),s(this,ce)),{capture:!0}),N(s(this,q),"pointerdown",Ot(s(this,ue),s(this,mt))),N(s(this,q),"focusin",s(this,se)))},oe=new WeakMap,mt=new WeakMap,ae=new WeakMap,ue=new WeakMap,ce=new WeakMap,le=new WeakMap,Mt=new WeakMap,Fn=function(){return Object.values(s(this,K)).some(Boolean)},fe=new WeakMap,de=new WeakMap;let Ne=Ve;function ts(n=[...globalThis.bitsDismissableLayers]){return n.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function es(n){const t=[...globalThis.bitsDismissableLayers],e=ts(t);if(e)return e[0].opts.ref.current===n;const[r]=t[0];return r.opts.ref.current===n}function ns(n,t){const e=n.target;if(!Ci(e))return!1;const r=!!e.closest(`[${Qi}]`);if("button"in n&&n.button>0&&!r)return!1;if("button"in n&&n.button===0&&r)return!0;const i=!!t.closest(`[${$i}]`);return r&&i?!1:Cn(e).documentElement.contains(e)&&!An(t,e)&&Fi(n,t)}function un(n){const t=n.currentTarget,e=n.target;let r;n instanceof PointerEvent?r=new PointerEvent(n.type,n):r=new PointerEvent("pointerdown",n);let i=!1;return new Proxy(r,{get:(o,u)=>u==="currentTarget"?t:u==="target"?e:u==="preventDefault"?()=>{i=!0,typeof o.preventDefault=="function"&&o.preventDefault()}:u==="defaultPrevented"?i:u in o?o[u]:n[u]})}function Hs(n,t){ut(t,!0);let e=w(t,"interactOutsideBehavior",3,"close"),r=w(t,"onInteractOutside",3,R),i=w(t,"onFocusOutside",3,R),a=w(t,"isValidEvent",3,()=>!1);const o=Ne.create({id:y(()=>t.id),interactOutsideBehavior:y(()=>e()),onInteractOutside:y(()=>r()),enabled:y(()=>t.enabled),onFocusOutside:y(()=>i()),isValidEvent:y(()=>a()),ref:t.ref});var u=G(),f=z(u);Et(f,()=>t.children??wt,()=>({props:o.props})),L(n,u),ct()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var he,pe;const Ue=class Ue{constructor(t){E(this,"opts");E(this,"domContext");c(this,he,()=>N(this.domContext.getDocument(),"keydown",s(this,pe),{passive:!1}));c(this,pe,t=>{if(t.key!==Ti||!rs(this))return;const e=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(e)});this.opts=t,this.domContext=new Sn(this.opts.ref);let e=R;Y(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=s(this,he).call(this)),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}static create(t){return new Ue(t)}};he=new WeakMap,pe=new WeakMap;let Pe=Ue;function rs(n){const t=[...globalThis.bitsEscapeLayers],e=t.findLast(([i,{current:a}])=>a==="close"||a==="ignore");if(e)return e[0]===n;const[r]=t[0];return r===n}function Xs(n,t){ut(t,!0);let e=w(t,"escapeKeydownBehavior",3,"close"),r=w(t,"onEscapeKeydown",3,R);Pe.create({escapeKeydownBehavior:y(()=>e()),onEscapeKeydown:y(()=>r()),enabled:y(()=>t.enabled),ref:t.ref});var i=G(),a=z(i);Et(a,()=>t.children??wt),L(n,i),ct()}var U,Bt,et;const be=class be{constructor(){c(this,U,mn([]));c(this,Bt,new WeakMap);c(this,et,new WeakMap)}static getInstance(){return this.instance||(this.instance=new be),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const r=document.activeElement;r&&r!==document.body&&s(this,et).set(t,r),s(this,U).current=s(this,U).current.filter(i=>i!==t),s(this,U).current.unshift(t)}unregister(t){s(this,U).current=s(this,U).current.filter(r=>r!==t);const e=this.getActive();e&&e.resume()}getActive(){return s(this,U).current[0]}setFocusMemory(t,e){s(this,Bt).set(t,e)}getFocusMemory(t){return s(this,Bt).get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){s(this,et).set(t,e)}getPreFocusMemory(t){return s(this,et).get(t)}clearPreFocusMemory(t){s(this,et).delete(t)}};U=new WeakMap,Bt=new WeakMap,et=new WeakMap,E(be,"instance");let _e=be;var H,x,I,nt,X,T,Dn,Ln,Mn,Bn,De,Zt,Le;const je=class je{constructor(t){c(this,T);c(this,H,!1);c(this,x,null);c(this,I,_e.getInstance());c(this,nt,[]);c(this,X);p(this,X,t)}get paused(){return s(this,H)}pause(){p(this,H,!0)}resume(){p(this,H,!1)}mount(t){s(this,x)&&this.unmount(),p(this,x,t),s(this,I).register(this),v(this,T,Bn).call(this),v(this,T,Ln).call(this)}unmount(){s(this,x)&&(v(this,T,Dn).call(this),v(this,T,Mn).call(this),s(this,I).unregister(this),s(this,I).clearPreFocusMemory(this),p(this,x,null))}static use(t){let e=null;return Y([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(e||(e=new je(t)),e.mount(r)):e&&(e.unmount(),e=null)}),zt(()=>{e==null||e.unmount()}),{get props(){return{tabindex:-1}}}}};H=new WeakMap,x=new WeakMap,I=new WeakMap,nt=new WeakMap,X=new WeakMap,T=new WeakSet,Dn=function(){for(const t of s(this,nt))t();p(this,nt,[])},Ln=function(){if(!s(this,x))return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});s(this,X).onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!s(this,x))return;const e=v(this,T,Zt).call(this);e?(e.focus(),s(this,I).setFocusMemory(this,e)):s(this,x).focus()})},Mn=function(){var e,r;const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((r=(e=s(this,X).onCloseAutoFocus).current)==null||r.call(e,t),!t.defaultPrevented){const i=s(this,I).getPreFocusMemory(this);if(i&&document.contains(i))try{i.focus()}catch{document.body.focus()}}},Bn=function(){if(!s(this,x)||!s(this,X).trap.current)return;const t=s(this,x),e=t.ownerDocument,r=o=>{if(s(this,H)||!s(this,I).isActiveScope(this))return;const u=o.target;if(!u)return;if(t.contains(u))s(this,I).setFocusMemory(this,u);else{const l=s(this,I).getFocusMemory(this);if(l&&t.contains(l)&&Ji(l))o.preventDefault(),l.focus();else{const b=v(this,T,Zt).call(this),h=v(this,T,Le).call(this)[0];(b||h||t).focus()}}},i=o=>{if(!s(this,X).loop||s(this,H)||o.key!=="Tab"||!s(this,I).isActiveScope(this))return;const u=v(this,T,De).call(this);if(u.length===0)return;const f=u[0],l=u[u.length-1];!o.shiftKey&&e.activeElement===l?(o.preventDefault(),f.focus()):o.shiftKey&&e.activeElement===f&&(o.preventDefault(),l.focus())};s(this,nt).push(N(e,"focusin",r,{capture:!0}),N(t,"keydown",i));const a=new MutationObserver(()=>{const o=s(this,I).getFocusMemory(this);if(o&&!t.contains(o)){const u=v(this,T,Zt).call(this),f=v(this,T,Le).call(this)[0],l=u||f;l?(l.focus(),s(this,I).setFocusMemory(this,l)):t.focus()}});a.observe(t,{childList:!0,subtree:!0}),s(this,nt).push(()=>a.disconnect())},De=function(){return s(this,x)?Xi(s(this,x),{includeContainer:!1,getShadowRoot:!0}):[]},Zt=function(){return v(this,T,De).call(this)[0]||null},Le=function(){return s(this,x)?Yi(s(this,x),{includeContainer:!1,getShadowRoot:!0}):[]};let Fe=je;function Ys(n,t){ut(t,!0);let e=w(t,"enabled",3,!1),r=w(t,"trapFocus",3,!1),i=w(t,"loop",3,!1),a=w(t,"onCloseAutoFocus",3,R),o=w(t,"onOpenAutoFocus",3,R);const u=Fe.use({enabled:y(()=>e()),trap:y(()=>r()),loop:i(),onCloseAutoFocus:y(()=>a()),onOpenAutoFocus:y(()=>o()),ref:t.ref});var f=G(),l=z(f);Et(l,()=>t.focusScope??wt,()=>({props:u.props})),L(n,f),ct()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var vt,me,Wn,ve,Wt;const Ge=class Ge{constructor(t){c(this,me);E(this,"opts");E(this,"domContext");c(this,vt,R);c(this,ve,t=>{const e=this.opts.ref.current,r=t.target;!sn(e)||!sn(r)||!this.opts.enabled.current||!ss(this)||!vi(e,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&p(this,vt,is(e,this.domContext.getDocument().body)))});c(this,Wt,()=>{s(this,vt).call(this),p(this,vt,R)});this.opts=t,this.domContext=new Sn(t.ref);let e=R;Y(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=v(this,me,Wn).call(this)),()=>{e(),s(this,Wt).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(t){return new Ge(t)}};vt=new WeakMap,me=new WeakSet,Wn=function(){return Ot(N(this.domContext.getDocument(),"pointerdown",s(this,ve)),N(this.domContext.getDocument(),"pointerup",vn(s(this,Wt),this.opts.onPointerUp.current)))},ve=new WeakMap,Wt=new WeakMap;let Me=Ge;const cn=n=>n.style.userSelect||n.style.webkitUserSelect;function is(n,t){const e=cn(t),r=cn(n);return qt(t,"none"),qt(n,"text"),()=>{qt(t,e),qt(n,r)}}function qt(n,t){n.style.userSelect=t,n.style.webkitUserSelect=t}function ss(n){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const e=t.at(-1);return e?e[0]===n:!1}function Zs(n,t){ut(t,!0);let e=w(t,"preventOverflowTextSelection",3,!0),r=w(t,"onPointerDown",3,R),i=w(t,"onPointerUp",3,R);Me.create({id:y(()=>t.id),onPointerDown:y(()=>r()),onPointerUp:y(()=>i()),enabled:y(()=>t.enabled&&e()),ref:t.ref});var a=G(),o=z(a);Et(o,()=>t.children??wt),L(n,a),ct()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function os(n="bits"){return globalThis.bitsIdCounter.current++,`${n}-${globalThis.bitsIdCounter.current}`}var Vt,gt,rt,it,ge,Vn;class as{constructor(t){c(this,ge);c(this,Vt);c(this,gt,0);c(this,rt,ot());c(this,it);p(this,Vt,t)}get(...t){return p(this,gt,s(this,gt)+1),S(s(this,rt))===void 0&&p(this,it,mr(()=>{k(s(this,rt),s(this,Vt).call(this,...t),!0)})),we(()=>()=>{v(this,ge,Vn).call(this)}),S(s(this,rt))}}Vt=new WeakMap,gt=new WeakMap,rt=new WeakMap,it=new WeakMap,ge=new WeakSet,Vn=function(){p(this,gt,s(this,gt)-1),s(this,it)&&s(this,gt)<=0&&(s(this,it).call(this),k(s(this,rt),void 0),p(this,it,void 0))};const Jt=new Ie;let Ht=ot(null),Z=null,Ct=null,xt=!1;const ln=y(()=>{for(const n of Jt.values())if(n)return!0;return!1});let Ce=null;const us=new as(()=>{function n(){document.body.setAttribute("style",S(Ht)??""),document.body.style.removeProperty("--scrollbar-width"),rn&&(Z==null||Z()),k(Ht,null)}function t(){Ct!==null&&(window.clearTimeout(Ct),Ct=null)}function e(i,a){t(),xt=!0,Ce=Date.now();const o=Ce,u=()=>{Ct=null,Ce===o&&(Un(Jt)?xt=!1:(xt=!1,a()))},f=i===null?24:i;Ct=window.setTimeout(u,f)}function r(){S(Ht)===null&&Jt.size===0&&!xt&&k(Ht,document.body.getAttribute("style"),!0)}return Y(()=>ln.current,()=>{var b,h;if(!ln.current)return;r(),xt=!1;const i=getComputedStyle(document.documentElement),a=getComputedStyle(document.body),o=((b=i.scrollbarGutter)==null?void 0:b.includes("stable"))||((h=a.scrollbarGutter)==null?void 0:h.includes("stable")),u=window.innerWidth-document.documentElement.clientWidth,l={padding:Number.parseInt(a.paddingRight??"0",10)+u,margin:Number.parseInt(a.marginRight??"0",10)};u>0&&!o&&(document.body.style.paddingRight=`${l.padding}px`,document.body.style.marginRight=`${l.margin}px`,document.body.style.setProperty("--scrollbar-width",`${u}px`)),document.body.style.overflow="hidden",rn&&(Z=N(document,"touchmove",g=>{g.target===document.documentElement&&(g.touches.length>1||g.preventDefault())},{passive:!1})),Be(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),zt(()=>()=>{Z==null||Z()}),{get lockMap(){return Jt},resetBodyStyle:n,scheduleCleanupIfNoNewLocks:e,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});var st,Ut,jt,O;class cs{constructor(t,e=()=>null){c(this,st,os());c(this,Ut);c(this,jt,()=>null);c(this,O);E(this,"locked");p(this,Ut,t),p(this,jt,e),p(this,O,us.get()),s(this,O)&&(s(this,O).cancelPendingCleanup(),s(this,O).ensureInitialStyleCaptured(),s(this,O).lockMap.set(s(this,st),s(this,Ut)??!1),this.locked=y(()=>s(this,O).lockMap.get(s(this,st))??!1,r=>s(this,O).lockMap.set(s(this,st),r)),zt(()=>{if(s(this,O).lockMap.delete(s(this,st)),Un(s(this,O).lockMap))return;const r=s(this,jt).call(this);s(this,O).scheduleCleanupIfNoNewLocks(r,()=>{s(this,O).resetBodyStyle()})}))}}st=new WeakMap,Ut=new WeakMap,jt=new WeakMap,O=new WeakMap;function Un(n){for(const[t,e]of n)if(e)return!0;return!1}function Js(n,t){ut(t,!0);let e=w(t,"preventScroll",3,!0),r=w(t,"restoreScrollDelay",3,null);e()&&new cs(e(),()=>r()),ct()}export{js as A,yi as B,ui as C,Hs as D,Fs as E,Ys as F,Be as G,Ps as H,Ts as I,Ns as J,Ws as K,Ms as L,Ds as M,Ls as N,_s as O,Ks as P,rn as Q,ks as R,Bs as S,Zs as T,Gs as a,y as b,Si as c,xs as d,Os as e,zs as f,Rs as g,Xs as h,Js as i,gi as j,Vs as k,Sn as l,Cs as m,R as n,zt as o,Us as p,Is as q,qs as r,Et as s,ei as t,si as u,mn as v,Y as w,As as x,os as y,Kt as z};
@@ -0,0 +1 @@
1
+ var C=Object.defineProperty;var w=a=>{throw TypeError(a)};var D=(a,e,s)=>e in a?C(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s;var x=(a,e,s)=>D(a,typeof e!="symbol"?e+"":e,s),A=(a,e,s)=>e.has(a)||w("Cannot "+s);var t=(a,e,s)=>(A(a,e,"read from private field"),s?s.call(a):e.get(a)),u=(a,e,s)=>e.has(a)?w("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,s),E=(a,e,s,i)=>(A(a,e,"write to private field"),i?i.call(a,s):e.set(a,s),s);import{K as N,Q as g,L as P,p as F,v as M,i as R,h as k,g as B,P as S,x as I,b as K,a as L,E as Q,r as j,s as q,c as z,e as T}from"./BsQ08Wq_.js";var d,l,c,p,v,m,b;class G{constructor(e,s=!0){x(this,"anchor");u(this,d,new Map);u(this,l,new Map);u(this,c,new Map);u(this,p,new Set);u(this,v,!0);u(this,m,e=>{if(t(this,d).has(e)){var s=t(this,d).get(e),i=t(this,l).get(s);if(i)N(i),t(this,p).delete(s);else{var n=t(this,c).get(s);n&&(t(this,l).set(s,n.effect),t(this,c).delete(s),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),i=n.effect)}for(const[f,h]of t(this,d)){if(t(this,d).delete(f),f===e)break;const r=t(this,c).get(h);r&&(g(r.effect),t(this,c).delete(h))}for(const[f,h]of t(this,l)){if(f===s||t(this,p).has(f))continue;const r=()=>{if(Array.from(t(this,d).values()).includes(f)){var _=document.createDocumentFragment();S(h,_),_.append(F()),t(this,c).set(f,{effect:h,fragment:_})}else g(h);t(this,p).delete(f),t(this,l).delete(f)};t(this,v)||!i?(t(this,p).add(f),P(h,r,!1)):r()}}});u(this,b,e=>{t(this,d).delete(e);const s=Array.from(t(this,d).values());for(const[i,n]of t(this,c))s.includes(i)||(g(n.effect),t(this,c).delete(i))});this.anchor=e,E(this,v,s)}ensure(e,s){var i=R,n=I();if(s&&!t(this,l).has(e)&&!t(this,c).has(e))if(n){var f=document.createDocumentFragment(),h=F();f.append(h),t(this,c).set(e,{effect:M(()=>s(h)),fragment:f})}else t(this,l).set(e,M(()=>s(this.anchor)));if(t(this,d).set(i,e),n){for(const[r,o]of t(this,l))r===e?i.unskip_effect(o):i.skip_effect(o);for(const[r,o]of t(this,c))r===e?i.unskip_effect(o.effect):i.skip_effect(o.effect);i.oncommit(t(this,m)),i.ondiscard(t(this,b))}else k&&(this.anchor=B),t(this,m).call(this,i)}}d=new WeakMap,l=new WeakMap,c=new WeakMap,p=new WeakMap,v=new WeakMap,m=new WeakMap,b=new WeakMap;function O(a,e,s=!1){var i;k&&(i=B,L());var n=new G(a),f=s?Q:0;function h(r,o){if(k){var _=j(i);if(r!==parseInt(_.substring(1))){var y=q();z(y),n.anchor=y,T(!1),n.ensure(r,o),T(!0);return}}n.ensure(r,o)}K(()=>{var r=!1;e((o,_=0)=>{r=!0,h(_,o)}),r||h(-1,null)},f)}export{G as B,O as i};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CJDC_3s9.js","../chunks/DIeahUKq.js","../chunks/BsQ08Wq_.js","../chunks/CEWi_rGa.js","../chunks/BI_ale1m.js","../chunks/FDS7fbwH.js","../chunks/BK0ygNWX.js","../chunks/rNwPv4DZ.js","../chunks/Cc7aBSsN.js","../chunks/WW6La7Nt.js","../chunks/Nd0ktDhd.js","../chunks/GeNMTUn1.js","../chunks/BKm6QCwp.js","../chunks/BUApaBEI.js","../chunks/DptdhtA1.js","../chunks/4TuV_psf.js","../chunks/BZY5aksi.js","../chunks/B553hBXT.js","../chunks/C9wTDiHH.js","../chunks/D8G961Hm.js","../chunks/pd_p3yYy.js","../chunks/IhDlsCxD.js","../chunks/B0czyjwj.js","../assets/homeFeedPanelStore.CE6xTfsa.css","../assets/0.BLOTwIuF.css","../nodes/1.DsKocFSb.js","../nodes/2.BOYqXdCa.js","../nodes/3.B9ucbp_W.js","../chunks/DO5OXNYS.js","../chunks/BT6b4LcZ.js","../chunks/BnqaikL8.js","../chunks/SvdgnirT.js","../chunks/B8StT3Do.js","../assets/chevron-down.CV-KWLNP.css","../assets/SourcesList.ke66uOSi.css","../nodes/4.BIzqhTqv.js","../chunks/hp4PFHFv.js","../nodes/5.9zgwFV6I.js","../assets/5.Di6rvlY-.css","../nodes/6.Bs32Ieii.js","../chunks/Dg_D3pjF.js","../assets/BackToParentRoute.DGk-X5ow.css","../assets/6.Cm_jpHOq.css","../nodes/7.Cigxrk0v.js","../assets/7.CJ3BjogD.css","../nodes/8.pG10rCF0.js","../assets/8.CrNxmd8B.css","../nodes/9.Bzqb3xHY.js","../chunks/Bfc47y5P.js","../assets/9.CATKVZ-n.css","../nodes/10.BeejAn8z.js","../assets/10.CmGYYZFR.css","../nodes/11.D--uwkk0.js","../assets/11.Dkz3VS_N.css","../nodes/12.BLyQ6rUu.js","../assets/12.qYZMiTb0.css","../nodes/13.Cl0WQK13.js","../assets/13.DfJcfUWl.css","../nodes/14.T9l5Rh19.js","../assets/14.BCCBoMGj.css","../nodes/15.DHfwIlBx.js","../assets/15.DfMfOrS3.css","../nodes/16.BKDfR-KV.js","../chunks/CAKuIoAf.js","../assets/16.Cw9oSkcO.css","../nodes/17.DofB8HQB.js","../assets/17.nNGjXhCQ.css","../nodes/18.BtYZF6FM.js"])))=>i.map(i=>d[i]);
2
+ var Z=r=>{throw TypeError(r)};var M=(r,t,e)=>t.has(r)||Z("Cannot "+e);var l=(r,t,e)=>(M(r,t,"read from private field"),e?e.call(r):t.get(r)),Y=(r,t,e)=>t.has(r)?Z("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),H=(r,t,e,i)=>(M(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);import{a5 as U,af as it,k as v,b7 as mt,ai as ut,F as ct,at as lt,am as _t,an as dt,t as ft,f as A,aw as vt,au as ht,b8 as J,av as gt,ax as Et,aA as k,az as Pt}from"../chunks/BsQ08Wq_.js";import{h as pt,m as Rt,u as yt,s as Ot}from"../chunks/BK0ygNWX.js";import{a as E,c as I,f as $,t as bt}from"../chunks/DIeahUKq.js";import{o as Lt}from"../chunks/DptdhtA1.js";import{i as B}from"../chunks/rNwPv4DZ.js";import{c as x}from"../chunks/C9wTDiHH.js";import{b as S}from"../chunks/CAKuIoAf.js";import{p as q}from"../chunks/D8G961Hm.js";function At(r){return class extends Tt{constructor(t){super({component:r,...t})}}}var P,_;class Tt{constructor(t){Y(this,P);Y(this,_);var p;var e=new Map,i=(o,a)=>{var m=ct(a,!1,!1);return e.set(o,m),m};const u=new Proxy({...t.props||{},$$events:{}},{get(o,a){return v(e.get(a)??i(a,Reflect.get(o,a)))},has(o,a){return a===it?!0:(v(e.get(a)??i(a,Reflect.get(o,a))),Reflect.has(o,a))},set(o,a,m){return U(e.get(a)??i(a,m),m),Reflect.set(o,a,m)}});H(this,_,(t.hydrate?pt:Rt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((p=t==null?void 0:t.props)!=null&&p.$$host)||t.sync===!1)&&mt(),H(this,P,u.$$events);for(const o of Object.keys(l(this,_)))o==="$set"||o==="$destroy"||o==="$on"||ut(this,o,{get(){return l(this,_)[o]},set(a){l(this,_)[o]=a},enumerable:!0});l(this,_).$set=o=>{Object.assign(u,o)},l(this,_).$destroy=()=>{yt(l(this,_))}}$set(t){l(this,_).$set(t)}$on(t,e){l(this,P)[t]=l(this,P)[t]||[];const i=(...u)=>e.call(this,...u);return l(this,P)[t].push(i),()=>{l(this,P)[t]=l(this,P)[t].filter(u=>u!==i)}}$destroy(){l(this,_).$destroy()}}P=new WeakMap,_=new WeakMap;const Dt="modulepreload",It=function(r,t){return new URL(r,t).href},N={},s=function(t,e,i){let u=Promise.resolve();if(e&&e.length>0){let o=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};const a=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),j=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));u=o(e.map(c=>{if(c=It(c,i),c in N)return;N[c]=!0;const h=c.endsWith(".css"),R=h?'[rel="stylesheet"]':"";if(!!i)for(let y=a.length-1;y>=0;y--){const n=a[y];if(n.href===c&&(!h||n.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${R}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":Dt,h||(g.as="script"),g.crossOrigin="",g.href=c,j&&g.setAttribute("nonce",j),document.head.appendChild(g),h)return new Promise((y,n)=>{g.addEventListener("load",y),g.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${c}`)))})}))}function p(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return u.then(o=>{for(const a of o||[])a.status==="rejected"&&p(a.reason);return t().catch(p)})},Ht={};var Vt=$('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),wt=$("<!> <!>",1);function kt(r,t){lt(t,!0);let e=q(t,"components",23,()=>[]),i=q(t,"data_0",3,null),u=q(t,"data_1",3,null),p=q(t,"data_2",3,null);_t(()=>t.stores.page.set(t.page)),dt(()=>{t.stores,t.page,t.constructors,e(),t.form,i(),u(),p(),t.stores.page.notify()});let o=J(!1),a=J(!1),m=J(null);Lt(()=>{const n=t.stores.page.subscribe(()=>{v(o)&&(U(a,!0),ft().then(()=>{U(m,document.title||"untitled page",!0)}))});return U(o,!0),n});const j=k(()=>t.constructors[2]);var c=wt(),h=A(c);{var R=n=>{const O=k(()=>t.constructors[0]);var b=I(),V=A(b);x(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(d,St)=>{var Q=I(),et=A(Q);{var rt=D=>{const z=k(()=>t.constructors[1]);var w=I(),F=A(w);x(F,()=>v(z),(G,W)=>{S(W(G,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(f,jt)=>{var X=I(),ot=A(X);x(ot,()=>v(j),(st,nt)=>{S(nt(st,{get data(){return p()},get form(){return t.form},get params(){return t.page.params}}),C=>e()[2]=C,()=>{var C;return(C=e())==null?void 0:C[2]})}),E(f,X)},$$slots:{default:!0}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)},at=D=>{const z=k(()=>t.constructors[1]);var w=I(),F=A(w);x(F,()=>v(z),(G,W)=>{S(W(G,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)};B(et,D=>{t.constructors[2]?D(rt):D(at,-1)})}E(d,Q)},$$slots:{default:!0}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)},K=n=>{const O=k(()=>t.constructors[0]);var b=I(),V=A(b);x(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)};B(h,n=>{t.constructors[1]?n(R):n(K,-1)})}var g=vt(h,2);{var y=n=>{var O=Vt(),b=gt(O);{var V=L=>{var T=bt();Pt(()=>Ot(T,v(m))),E(L,T)};B(b,L=>{v(a)&&L(V)})}Et(O),E(n,O)};B(g,n=>{v(o)&&n(y)})}E(r,c),ht()}const Jt=At(kt),Kt=[()=>s(()=>import("../nodes/0.CJDC_3s9.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url),()=>s(()=>import("../nodes/1.DsKocFSb.js"),__vite__mapDeps([25,1,2,3,6,10,12,5,13,14]),import.meta.url),()=>s(()=>import("../nodes/2.BOYqXdCa.js"),__vite__mapDeps([26,1,2,3,8]),import.meta.url),()=>s(()=>import("../nodes/3.B9ucbp_W.js"),__vite__mapDeps([27,1,2,3,28,29,14,6,4,5,7,17,9,30,10,11,12,13,15,16,18,19,20,8,21,22,23,31,32,33,34]),import.meta.url),()=>s(()=>import("../nodes/4.BIzqhTqv.js"),__vite__mapDeps([35,36,13]),import.meta.url),()=>s(()=>import("../nodes/5.9zgwFV6I.js"),__vite__mapDeps([37,1,2,3,14,6,7,17,28,9,10,38]),import.meta.url),()=>s(()=>import("../nodes/6.Bs32Ieii.js"),__vite__mapDeps([39,1,2,3,14,6,7,28,9,30,10,40,4,5,11,12,13,41,15,42]),import.meta.url),()=>s(()=>import("../nodes/7.Cigxrk0v.js"),__vite__mapDeps([43,1,2,3,14,6,7,28,9,30,10,40,4,5,11,12,13,41,15,44]),import.meta.url),()=>s(()=>import("../nodes/8.pG10rCF0.js"),__vite__mapDeps([45,1,2,3,14,4,5,10,12,13,11,46]),import.meta.url),()=>s(()=>import("../nodes/9.Bzqb3xHY.js"),__vite__mapDeps([47,1,2,3,14,6,7,17,28,9,30,48,10,40,4,5,11,12,13,41,32,20,8,19,21,18,33,49]),import.meta.url),()=>s(()=>import("../nodes/10.BeejAn8z.js"),__vite__mapDeps([50,1,2,3,14,6,7,17,28,9,10,40,4,5,11,12,13,41,15,51]),import.meta.url),()=>s(()=>import("../nodes/11.D--uwkk0.js"),__vite__mapDeps([52,1,2,3,14,6,7,17,28,30,10,9,40,4,5,11,12,13,41,15,32,20,8,19,21,18,33,53]),import.meta.url),()=>s(()=>import("../nodes/12.BLyQ6rUu.js"),__vite__mapDeps([54,1,2,3,28,29,14,6,4,5,7,17,9,30,10,11,12,13,15,16,18,19,20,8,21,22,23,31,32,33,34,40,41,55]),import.meta.url),()=>s(()=>import("../nodes/13.Cl0WQK13.js"),__vite__mapDeps([56,1,2,3,14,6,7,17,28,9,30,48,10,40,4,5,11,12,13,41,15,57]),import.meta.url),()=>s(()=>import("../nodes/14.T9l5Rh19.js"),__vite__mapDeps([58,1,2,3,14,6,7,17,28,9,30,10,15,5,32,20,8,19,4,21,18,33,59]),import.meta.url),()=>s(()=>import("../nodes/15.DHfwIlBx.js"),__vite__mapDeps([60,1,2,3,14,6,5,7,17,28,9,30,10,11,12,13,15,31,8,19,4,20,21,22,61]),import.meta.url),()=>s(()=>import("../nodes/16.BKDfR-KV.js"),__vite__mapDeps([62,1,2,3,4,5,6,7,21,28,10,9,11,12,13,14,15,63,19,40,41,64]),import.meta.url),()=>s(()=>import("../nodes/17.DofB8HQB.js"),__vite__mapDeps([65,1,2,3,14,28,10,12,5,13,66]),import.meta.url),()=>s(()=>import("../nodes/18.BtYZF6FM.js"),__vite__mapDeps([67,36,13]),import.meta.url)],Qt=[],Xt={"/":[3],"/admin":[5,[2]],"/admin/deliver":[6,[2]],"/admin/llm":[7,[2]],"/admin/logs":[8,[2]],"/admin/parse":[9,[2]],"/admin/pipeline":[10,[2]],"/admin/proxy":[11,[2]],"/admin/sources":[12,[2]],"/admin/tags":[13,[2]],"/logs":[14],"/plugins":[15],"/plugins/new":[17],"/plugins/[id]":[16],"/tags":[18],"/[sub]":[4]},tt={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},xt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.decode])),Zt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.encode])),Mt=!1,Nt=(r,t)=>xt[r](t);export{Nt as decode,xt as decoders,Xt as dictionary,Zt as encoders,Mt as hash,tt as hooks,Ht as matchers,Kt as nodes,Jt as root,Qt as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/BKm6QCwp.js";export{o as load_css,r as start};