rssany 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +1 -1
- package/README.md +5 -1
- package/app/plugins/builtin/rss.rssany.js +107 -24
- package/app/plugins/site.rssany.js +1 -1
- package/dist/index.js +986 -266
- package/dist/index.js.map +1 -1
- package/{config.examples.json → init/config.json} +7 -1
- package/init/sources.json +353 -0
- package/package.json +4 -6
- package/statics/401.html +1 -1
- package/statics/README.md +1 -1
- package/webui/build/200.html +16 -18
- package/webui/build/_app/immutable/assets/0.C6Q_nuW9.css +1 -0
- package/webui/build/_app/immutable/assets/10.Dj8_pmut.css +1 -0
- package/webui/build/_app/immutable/assets/11.qYZMiTb0.css +1 -0
- package/webui/build/_app/immutable/assets/12.Ct59LCqW.css +1 -0
- package/webui/build/_app/immutable/assets/13.BhO9zvFi.css +1 -0
- package/webui/build/_app/immutable/assets/14.CujIhjQK.css +1 -0
- package/webui/build/_app/immutable/assets/15.nNGjXhCQ.css +1 -0
- package/webui/build/_app/immutable/assets/16.PP9XLDf7.css +1 -0
- package/webui/build/_app/immutable/assets/4.9wPHhVwv.css +1 -0
- package/webui/build/_app/immutable/assets/6.DSJfjJwx.css +1 -0
- package/webui/build/_app/immutable/assets/7.CrNxmd8B.css +1 -0
- package/webui/build/_app/immutable/assets/8.Ba5_jYIY.css +1 -0
- package/webui/build/_app/immutable/assets/{9.BZheTlzZ.css → 9.m-LCx_kl.css} +1 -1
- package/webui/build/_app/immutable/assets/BackToParentRoute.DGk-X5ow.css +1 -0
- package/webui/build/_app/immutable/assets/SourcesList.yTBBi3_m.css +1 -0
- package/webui/build/_app/immutable/assets/homeFeedPanelStore.BopJZtHu.css +1 -0
- package/webui/build/_app/immutable/chunks/{V2-VOe88.js → B-OsL1Ct.js} +1 -1
- package/webui/build/_app/immutable/chunks/B2Q1a1-H.js +2 -0
- package/webui/build/_app/immutable/chunks/BK3WtZwv.js +1 -0
- package/webui/build/_app/immutable/chunks/BQqoDzLx.js +1 -0
- package/webui/build/_app/immutable/chunks/BXCWEhUd.js +1 -0
- package/webui/build/_app/immutable/chunks/BbWUOQ_m.js +1 -0
- package/webui/build/_app/immutable/chunks/Bp63qm3L.js +1 -0
- package/webui/build/_app/immutable/chunks/CVzlFH44.js +1 -0
- package/webui/build/_app/immutable/chunks/CWNeClHp.js +6 -0
- package/webui/build/_app/immutable/chunks/Cihqbfi5.js +1 -0
- package/webui/build/_app/immutable/chunks/CkUAV0m0.js +41 -0
- package/webui/build/_app/immutable/chunks/CtijX1u3.js +31 -0
- package/webui/build/_app/immutable/chunks/D5GvRCv7.js +1 -0
- package/webui/build/_app/immutable/chunks/DEDI7Ecm.js +1 -0
- package/webui/build/_app/immutable/chunks/DFuhmi31.js +1 -0
- package/webui/build/_app/immutable/chunks/DMWEh-Ek.js +2 -0
- package/webui/build/_app/immutable/chunks/{CZDFXKiF.js → DcAshVxe.js} +1 -1
- package/webui/build/_app/immutable/chunks/DjNLq3TF.js +1 -0
- package/webui/build/_app/immutable/chunks/Dt2CddFe.js +1 -0
- package/webui/build/_app/immutable/chunks/Dw782Tjs.js +1 -0
- package/webui/build/_app/immutable/chunks/EIZIMsXK.js +1 -0
- package/webui/build/_app/immutable/chunks/Xy_fhzQq.js +1 -0
- package/webui/build/_app/immutable/chunks/lk5LaiqA.js +1 -0
- package/webui/build/_app/immutable/chunks/mW5RwvnK.js +13 -0
- package/webui/build/_app/immutable/chunks/{CtHRh_pJ.js → tB7QMF3U.js} +1 -1
- package/webui/build/_app/immutable/chunks/xtNWTdbD.js +1 -0
- package/webui/build/_app/immutable/entry/app.DdgnooOk.js +2 -0
- package/webui/build/_app/immutable/entry/start.DhJaJZhR.js +1 -0
- package/webui/build/_app/immutable/nodes/0.BE05Cuc4.js +11 -0
- package/webui/build/_app/immutable/nodes/1.5DFDaT4c.js +1 -0
- package/webui/build/_app/immutable/nodes/10.OVK4i9XE.js +1 -0
- package/webui/build/_app/immutable/nodes/11.Dhn_rO4A.js +1 -0
- package/webui/build/_app/immutable/nodes/12.Cg8AeCSH.js +1 -0
- package/webui/build/_app/immutable/nodes/13.nT3SOzEB.js +1 -0
- package/webui/build/_app/immutable/nodes/14.B_KpJLxn.js +1 -0
- package/webui/build/_app/immutable/nodes/15.RaWaA-0I.js +1 -0
- package/webui/build/_app/immutable/nodes/{12.CMcby_lY.js → 16.DSUgqolV.js} +15 -15
- package/webui/build/_app/immutable/nodes/2.BYWOpaxy.js +1 -0
- package/webui/build/_app/immutable/nodes/3.wQvGs9w-.js +1 -0
- package/webui/build/_app/immutable/nodes/4.DTSxpKm7.js +2 -0
- package/webui/build/_app/immutable/nodes/5.CCtn90c0.js +1 -0
- package/webui/build/_app/immutable/nodes/6.C2_mjW1u.js +1 -0
- package/webui/build/_app/immutable/nodes/7.Dwz6W7A1.js +1 -0
- package/webui/build/_app/immutable/nodes/8.DzkEw6rx.js +1 -0
- package/webui/build/_app/immutable/nodes/9.DtlXEwe1.js +1 -0
- package/webui/build/_app/version.json +1 -1
- package/sources.example.json +0 -562
- package/webui/build/_app/immutable/assets/0.BUAXpTm6.css +0 -1
- package/webui/build/_app/immutable/assets/10.I1OuCLrU.css +0 -1
- package/webui/build/_app/immutable/assets/11.CrO9xaki.css +0 -1
- package/webui/build/_app/immutable/assets/12.BEi6fInA.css +0 -1
- package/webui/build/_app/immutable/assets/14.Ctlgn1LZ.css +0 -1
- package/webui/build/_app/immutable/assets/2.eJ80XOGm.css +0 -1
- package/webui/build/_app/immutable/assets/4.B8-jYAVj.css +0 -1
- package/webui/build/_app/immutable/assets/6.Drn-0DON.css +0 -1
- package/webui/build/_app/immutable/assets/7.ms2diq_q.css +0 -1
- package/webui/build/_app/immutable/assets/8.DKymkjjs.css +0 -1
- package/webui/build/_app/immutable/assets/SourcesList.BhtYlRsQ.css +0 -1
- package/webui/build/_app/immutable/chunks/BUngiKFg.js +0 -1
- package/webui/build/_app/immutable/chunks/Bt0fzibd.js +0 -1
- package/webui/build/_app/immutable/chunks/BxHqDcpw.js +0 -1
- package/webui/build/_app/immutable/chunks/ByQRbEUX.js +0 -1
- package/webui/build/_app/immutable/chunks/C12mHcUp.js +0 -6
- package/webui/build/_app/immutable/chunks/C1kQ4pHy.js +0 -1
- package/webui/build/_app/immutable/chunks/C74gbb4Q.js +0 -1
- package/webui/build/_app/immutable/chunks/CAtemnMo.js +0 -1
- package/webui/build/_app/immutable/chunks/CVjCNJia.js +0 -1
- package/webui/build/_app/immutable/chunks/CjQQ9_Q2.js +0 -2
- package/webui/build/_app/immutable/chunks/D-6mYMI1.js +0 -1
- package/webui/build/_app/immutable/chunks/D1Gs8-g3.js +0 -1
- package/webui/build/_app/immutable/chunks/D9dRVKgL.js +0 -1
- package/webui/build/_app/immutable/chunks/DCEY1XiC.js +0 -1
- package/webui/build/_app/immutable/chunks/DI-t-G_K.js +0 -2
- package/webui/build/_app/immutable/chunks/DTUxjyWL.js +0 -1
- package/webui/build/_app/immutable/chunks/DWJZOHke.js +0 -1
- package/webui/build/_app/immutable/chunks/Dgs6d7X5.js +0 -1
- package/webui/build/_app/immutable/chunks/DjpPK99f.js +0 -71
- package/webui/build/_app/immutable/chunks/DjzVVxpy.js +0 -1
- package/webui/build/_app/immutable/chunks/DvtNA-3X.js +0 -1
- package/webui/build/_app/immutable/chunks/LQVMBmDN.js +0 -1
- package/webui/build/_app/immutable/chunks/Qw0Qgx6J.js +0 -1
- package/webui/build/_app/immutable/chunks/bohabpgg.js +0 -1
- package/webui/build/_app/immutable/chunks/c-YfbAB_.js +0 -8
- package/webui/build/_app/immutable/chunks/tpTQfoNn.js +0 -1
- package/webui/build/_app/immutable/entry/app.Cra5Zsz4.js +0 -2
- package/webui/build/_app/immutable/entry/start.ToY0Qh0_.js +0 -1
- package/webui/build/_app/immutable/nodes/0.D2-xzG_8.js +0 -11
- package/webui/build/_app/immutable/nodes/1.CFixzRR6.js +0 -1
- package/webui/build/_app/immutable/nodes/10.ayxWydPr.js +0 -1
- package/webui/build/_app/immutable/nodes/11.B0JS3E2j.js +0 -1
- package/webui/build/_app/immutable/nodes/13.DRpZV72T.js +0 -1
- package/webui/build/_app/immutable/nodes/14.DVeJW6bd.js +0 -1
- package/webui/build/_app/immutable/nodes/2.DIZ4IPNm.js +0 -1
- package/webui/build/_app/immutable/nodes/3.BFSNf0FK.js +0 -1
- package/webui/build/_app/immutable/nodes/4.BSsIjejE.js +0 -2
- package/webui/build/_app/immutable/nodes/5.COxRT9Oe.js +0 -1
- package/webui/build/_app/immutable/nodes/6.CBgQ4YzB.js +0 -1
- package/webui/build/_app/immutable/nodes/7.BbzWOL0V.js +0 -6
- package/webui/build/_app/immutable/nodes/8.C8120200.js +0 -1
- package/webui/build/_app/immutable/nodes/9.BH_BGQQ4.js +0 -1
- /package/webui/build/_app/immutable/nodes/{15.BtYZF6FM.js → 17.BtYZF6FM.js} +0 -0
- /package/webui/build/_app/immutable/nodes/{16.Ba_qJjp6.js → 18.Ba_qJjp6.js} +0 -0
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
var ir=Object.defineProperty;var lo=d=>{throw TypeError(d)};var lr=(d,e,s)=>e in d?ir(d,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[e]=s;var ye=(d,e,s)=>lr(d,typeof e!="symbol"?e+"":e,s),Ls=(d,e,s)=>e.has(d)||lo("Cannot "+s);var m=(d,e,s)=>(Ls(d,e,"read from private field"),s?s.call(d):e.get(d)),L=(d,e,s)=>e.has(d)?lo("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(d):e.set(d,s),I=(d,e,s,u)=>(Ls(d,e,"write to private field"),u?u.call(d,s):e.set(d,s),s),_=(d,e,s)=>(Ls(d,e,"access private method"),s);import{c as j,a as y,p as _o,f as x,t as vs}from"./D1Gs8-g3.js";import"./Dgs6d7X5.js";import{o as ur}from"./C1kQ4pHy.js";import{aB as P,bh as Ze,o as t,t as n,az as Ie,as as Rt,at as es,au as v,N as gs,aw as p,bi as kt,bj as go,ao as uo,ay as ae,av as b,x as cr,ax as ne,u as z,G as fs,bk as dr,O as k}from"./BUngiKFg.js";import{s as Y}from"./CjQQ9_Q2.js";import{s as pr,a as hr}from"./C74gbb4Q.js";import{i as Se}from"./Qw0Qgx6J.js";import{e as ms,i as co}from"./DjzVVxpy.js";import{b as jt,s as at,r as Ct,d as vr}from"./DCEY1XiC.js";import{s as Pt}from"./DI-t-G_K.js";import{o as Vt,d as fr,a as de}from"./DWJZOHke.js";import{b as xt}from"./bohabpgg.js";import{i as wo}from"./CVjCNJia.js";import{w as mr}from"./LQVMBmDN.js";import{a as Xe}from"./CBY2biv-.js";import{l as _e,s as ie,p as W,r as $o}from"./BxHqDcpw.js";import{D as zo,a as Co,b as Po,c as xo,d as Fs}from"./ByQRbEUX.js";import{w as qs,M as yr,N as pt,C as br,a as po,b as pe,c as _r,d as ko,x as gr,O as ws,E as wr,S as $r,g as Mo,J as zr,Q as Cr,f as To,n as Mt,m as ys,s as ht,P as bs}from"./c-YfbAB_.js";import{s as ge}from"./V2-VOe88.js";import{I as we}from"./C12mHcUp.js";import{P as Pr,a as xr,g as ho,b as kr,F as Mr}from"./Bt0fzibd.js";function Tr(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
2
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const u=[["path",{d:"m18 16 4-4-4-4"}],["path",{d:"m6 8-4 4 4 4"}],["path",{d:"m14.5 4-5 16"}]];we(d,ie({name:"code-xml"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function Sr(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
7
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const u=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];we(d,ie({name:"copy"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function Or(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
12
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the ISC license.
|
|
15
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const u=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];we(d,ie({name:"ellipsis"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function So(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
17
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the ISC license.
|
|
20
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const u=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];we(d,ie({name:"external-link"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function Nr(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
22
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const u=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"}]];we(d,ie({name:"mail"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function Lr(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
27
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
28
|
-
*
|
|
29
|
-
* This source code is licensed under the ISC license.
|
|
30
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const u=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];we(d,ie({name:"pencil"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function Ir(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
32
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the ISC license.
|
|
35
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const u=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];we(d,ie({name:"plus"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function Ar(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
37
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the ISC license.
|
|
40
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const u=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"}]];we(d,ie({name:"puzzle"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function Fr(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
42
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the ISC license.
|
|
45
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const u=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]];we(d,ie({name:"refresh-cw"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function Dr(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
47
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the ISC license.
|
|
50
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const u=[["path",{d:"M4 11a9 9 0 0 1 9 9"}],["path",{d:"M4 4a16 16 0 0 1 16 16"}],["circle",{cx:"5",cy:"19",r:"1"}]];we(d,ie({name:"rss"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function Er(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
52
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the ISC license.
|
|
55
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const u=[["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"}]];we(d,ie({name:"sparkles"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function vo(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
57
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
58
|
-
*
|
|
59
|
-
* This source code is licensed under the ISC license.
|
|
60
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const u=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17"}]];we(d,ie({name:"trash-2"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function Hr(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
62
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the ISC license.
|
|
65
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const u=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}]];we(d,ie({name:"trash"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function Wr(d,e){const s=_e(e,["children","$$slots","$$events","$$legacy"]);/**
|
|
67
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const u=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];we(d,ie({name:"x"},()=>s,{get iconNode(){return u},children:(c,h)=>{var i=j(),f=P(i);ge(f,e,"default",{}),y(c,i)},$$slots:{default:!0}}))}function Is(d,e){const[s,u]=d;let c=!1;const h=e.length;for(let i=0,f=h-1;i<h;f=i++){const[U,q]=e[i]??[0,0],[le,Q]=e[f]??[0,0];q>=u!=Q>=u&&s<=(le-U)*(u-q)/(Q-q)+U&&(c=!c)}return c}function As(d,e){return d[0]>=e.left&&d[0]<=e.right&&d[1]>=e.top&&d[1]<=e.bottom}function fo(d,e){const s=d.left+d.width/2,u=d.top+d.height/2,c=e.left+e.width/2,h=e.top+e.height/2,i=c-s,f=h-u;return Math.abs(i)>Math.abs(f)?i>0?"right":"left":f>0?"bottom":"top"}var et,Tt,St,Ve,be,vt,ft,tt,st,C,_s,Ds,Es,Oo,No,We,Hs,Lo,Io;class Vr{constructor(e){L(this,C);L(this,et);L(this,Tt);L(this,St);L(this,Ve,null);L(this,be,null);L(this,vt,[]);L(this,ft,null);L(this,tt,null);L(this,st,null);I(this,et,e),I(this,Tt,e.buffer??1);const s=e.transitIntentTimeout;I(this,St,typeof s=="number"&&s>0?s:null),qs([e.triggerNode,e.contentNode,e.enabled],([u,c,h])=>{if(!u||!c||!h){I(this,ft,null),_(this,C,We).call(this);return}m(this,ft)&&m(this,ft)!==u&&_(this,C,We).call(this),I(this,ft,u);const i=yr(u),f=A=>{_(this,C,No).call(this,[A.clientX,A.clientY],u,c)},U=A=>{var M,V;const g=A.relatedTarget;if(pt(g)&&c.contains(g))return;const S=((V=(M=m(this,et)).ignoredTargets)==null?void 0:V.call(M))??[];pt(g)&&S.some(K=>K===g||K.contains(g))||(I(this,vt,pt(g)&&S.length>0?S.filter(K=>g.contains(K)):[]),I(this,Ve,[A.clientX,A.clientY]),I(this,be,"content"),_(this,C,Ds).call(this))},q=()=>{_(this,C,We).call(this)},le=()=>{_(this,C,We).call(this)},Q=A=>{const g=A.relatedTarget;pt(g)&&u.contains(g)||(I(this,Ve,[A.clientX,A.clientY]),I(this,be,"trigger"),_(this,C,Ds).call(this))};return[Vt(i,"pointermove",f),Vt(u,"pointerleave",U),Vt(u,"pointerenter",q),Vt(c,"pointerenter",le),Vt(c,"pointerleave",Q)].reduce((A,g)=>()=>{A(),g()},()=>{})})}}et=new WeakMap,Tt=new WeakMap,St=new WeakMap,Ve=new WeakMap,be=new WeakMap,vt=new WeakMap,ft=new WeakMap,tt=new WeakMap,st=new WeakMap,C=new WeakSet,_s=function(){m(this,tt)!==null&&(cancelAnimationFrame(m(this,tt)),I(this,tt,null))},Ds=function(){_(this,C,_s).call(this),I(this,tt,requestAnimationFrame(()=>{I(this,tt,null),!(!m(this,Ve)||!m(this,be))&&(_(this,C,We).call(this),m(this,et).onPointerExit())}))},Es=function(){m(this,st)!==null&&(clearTimeout(m(this,st)),I(this,st,null))},Oo=function(){m(this,St)!==null&&(_(this,C,Es).call(this),I(this,st,window.setTimeout(()=>{I(this,st,null),!(!m(this,Ve)||!m(this,be))&&(_(this,C,We).call(this),m(this,et).onPointerExit())},m(this,St))))},No=function(e,s,u){if(!m(this,Ve)||!m(this,be))return;_(this,C,_s).call(this),_(this,C,Oo).call(this);const c=s.getBoundingClientRect(),h=u.getBoundingClientRect();if(m(this,be)==="content"&&As(e,h)){_(this,C,We).call(this);return}if(m(this,be)==="trigger"&&As(e,c)){_(this,C,We).call(this);return}if(m(this,be)==="content"&&m(this,vt).length>0)for(const le of m(this,vt)){const Q=le.getBoundingClientRect();if(As(e,Q))return;const A=fo(c,Q),g=_(this,C,Hs).call(this,c,Q,A);if(g&&Is(e,g))return}const i=fo(c,h),f=_(this,C,Hs).call(this,c,h,i);if(f&&Is(e,f))return;const U=m(this,be)==="content"?h:c,q=_(this,C,Lo).call(this,m(this,Ve),U,i,m(this,be));Is(e,q)||(_(this,C,We).call(this),m(this,et).onPointerExit())},We=function(){I(this,Ve,null),I(this,be,null),I(this,vt,[]),_(this,C,_s).call(this),_(this,C,Es).call(this)},Hs=function(e,s,u){const c=m(this,Tt);switch(u){case"top":return[[Math.min(e.left,s.left)-c,e.top],[Math.min(e.left,s.left)-c,s.bottom],[Math.max(e.right,s.right)+c,s.bottom],[Math.max(e.right,s.right)+c,e.top]];case"bottom":return[[Math.min(e.left,s.left)-c,e.bottom],[Math.min(e.left,s.left)-c,s.top],[Math.max(e.right,s.right)+c,s.top],[Math.max(e.right,s.right)+c,e.bottom]];case"left":return[[e.left,Math.min(e.top,s.top)-c],[s.right,Math.min(e.top,s.top)-c],[s.right,Math.max(e.bottom,s.bottom)+c],[e.left,Math.max(e.bottom,s.bottom)+c]];case"right":return[[e.right,Math.min(e.top,s.top)-c],[s.left,Math.min(e.top,s.top)-c],[s.left,Math.max(e.bottom,s.bottom)+c],[e.right,Math.max(e.bottom,s.bottom)+c]]}},Lo=function(e,s,u,c){const h=m(this,Tt)*4,[i,f]=e;switch(c==="trigger"?_(this,C,Io).call(this,u):u){case"top":return[[i-h,f+h],[i+h,f+h],[s.right+h,s.bottom],[s.right+h,s.top],[s.left-h,s.top],[s.left-h,s.bottom]];case"bottom":return[[i-h,f-h],[i+h,f-h],[s.right+h,s.top],[s.right+h,s.bottom],[s.left-h,s.bottom],[s.left-h,s.top]];case"left":return[[i+h,f-h],[i+h,f+h],[s.right,s.bottom+h],[s.left,s.bottom+h],[s.left,s.top-h],[s.right,s.top-h]];case"right":return[[i-h,f-h],[i-h,f+h],[s.left,s.bottom+h],[s.right,s.bottom+h],[s.right,s.top-h],[s.left,s.top-h]]}},Io=function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const Ws=_r({component:"popover",parts:["root","trigger","content","close","overlay"]}),Xs=new br("Popover.Root");var Ut,Bt,Kt,Jt,qt,Xt,Yt,ot,rt,je,Re;const Qs=class Qs{constructor(e){L(this,je);ye(this,"opts");L(this,Ut,Ze(null));ye(this,"contentPresence");L(this,Bt,Ze(null));L(this,Kt,Ze(null));ye(this,"overlayPresence");L(this,Jt,Ze(!1));L(this,qt,Ze(!1));L(this,Xt,Ze(!1));L(this,Yt,Ze(0));L(this,ot,null);L(this,rt,null);this.opts=e,this.contentPresence=new po({ref:pe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new po({ref:pe(()=>this.overlayNode),open:this.opts.open}),qs(()=>this.opts.open.current,s=>{s||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,_(this,je,Re).call(this))})}static create(e){return Xs.set(new Qs(e))}get contentNode(){return t(m(this,Ut))}set contentNode(e){n(m(this,Ut),e,!0)}get triggerNode(){return t(m(this,Bt))}set triggerNode(e){n(m(this,Bt),e,!0)}get overlayNode(){return t(m(this,Kt))}set overlayNode(e){n(m(this,Kt),e,!0)}get openedViaHover(){return t(m(this,Jt))}set openedViaHover(e){n(m(this,Jt),e,!0)}get hasInteractedWithContent(){return t(m(this,qt))}set hasInteractedWithContent(e){n(m(this,qt),e,!0)}get hoverCooldown(){return t(m(this,Xt))}set hoverCooldown(e){n(m(this,Xt),e,!0)}get closeDelay(){return t(m(this,Yt))}set closeDelay(e){n(m(this,Yt),e,!0)}setDomContext(e){I(this,rt,e)}toggleOpen(){_(this,je,Re).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){_(this,je,Re).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){_(this,je,Re).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(_(this,je,Re).call(this),this.closeDelay<=0?this.opts.open.current=!1:m(this,rt)&&I(this,ot,m(this,rt).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),I(this,ot,null)},this.closeDelay))))}cancelDelayedClose(){_(this,je,Re).call(this)}markInteraction(){this.hasInteractedWithContent=!0,_(this,je,Re).call(this)}};Ut=new WeakMap,Bt=new WeakMap,Kt=new WeakMap,Jt=new WeakMap,qt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,ot=new WeakMap,rt=new WeakMap,je=new WeakSet,Re=function(){m(this,ot)!==null&&m(this,rt)&&(m(this,rt).clearTimeout(m(this,ot)),I(this,ot,null))};let Vs=Qs;var nt,Ot,mt,Ce,Us,Bs,Ks,Ao,Qt;const Gs=class Gs{constructor(e,s){L(this,Ce);ye(this,"opts");ye(this,"root");ye(this,"attachment");ye(this,"domContext");L(this,nt,null);L(this,Ot,null);L(this,mt,Ze(!1));L(this,Qt,Ie(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":zr(this.root.opts.open.current),"data-state":Mo(this.root.opts.open.current),"aria-controls":_(this,Ce,Ao).call(this),[Ws.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=e,this.root=s,this.attachment=ko(this.opts.ref,u=>this.root.triggerNode=u),this.domContext=new gr(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),qs(()=>this.opts.closeDelay.current,u=>{this.root.closeDelay=u})}static create(e){return new Gs(e,Xs.get())}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||ws(e)||(n(m(this,mt),!0),_(this,Ce,Bs).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const s=this.opts.openDelay.current;s<=0?this.root.handleHoverOpen():I(this,nt,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),I(this,nt,null)},s))}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(ws(e)||(n(m(this,mt),!1),_(this,Ce,Us).call(this),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(_(this,Ce,Ks).call(this),t(m(this,mt))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}t(m(this,mt))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===wr||e.key===$r)&&(e.preventDefault(),_(this,Ce,Ks).call(this),this.root.toggleOpen())}get props(){return t(m(this,Qt))}set props(e){n(m(this,Qt),e)}};nt=new WeakMap,Ot=new WeakMap,mt=new WeakMap,Ce=new WeakSet,Us=function(){m(this,nt)!==null&&(this.domContext.clearTimeout(m(this,nt)),I(this,nt,null))},Bs=function(){m(this,Ot)!==null&&(this.domContext.clearTimeout(m(this,Ot)),I(this,Ot,null))},Ks=function(){_(this,Ce,Us).call(this),_(this,Ce,Bs).call(this)},Ao=function(){var e,s;if(this.root.opts.open.current&&((e=this.root.contentNode)!=null&&e.id))return(s=this.root.contentNode)==null?void 0:s.id},Qt=new WeakMap;let js=Gs;var Gt,Zt;const Zs=class Zs{constructor(e,s){ye(this,"opts");ye(this,"root");ye(this,"attachment");ye(this,"onInteractOutside",e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!pt(e.target))return;const s=e.target.closest(Ws.selector("trigger"));if(!(s&&s===this.root.triggerNode)){if(this.opts.customAnchor.current){if(pt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const u=document.querySelector(this.opts.customAnchor.current);if(u&&u.contains(e.target))return}}this.root.handleClose()}});ye(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,Gt,Ie(()=>({open:this.root.opts.open.current})));L(this,Zt,Ie(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Mo(this.root.opts.open.current),[Ws.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));ye(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=e,this.root=s,this.attachment=ko(this.opts.ref,u=>this.root.contentNode=u),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new Vr({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(e){return new Zs(e,Xs.get())}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const s=e.target;pt(s)&&Cr(s)&&this.root.markInteraction()}onpointerenter(e){ws(e)||this.root.cancelDelayedClose()}onpointerleave(e){ws(e)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return t(m(this,Gt))}set snippetProps(e){n(m(this,Gt),e)}get props(){return t(m(this,Zt))}set props(e){n(m(this,Zt),e)}};Gt=new WeakMap,Zt=new WeakMap;let Js=Zs;var jr=x("<div><div><!></div></div>"),Ur=x("<div><div><!></div></div>");function mo(d,e){const s=_o();Rt(e,!0);let u=W(e,"ref",15,null),c=W(e,"id",19,()=>To(s)),h=W(e,"forceMount",3,!1),i=W(e,"onOpenAutoFocus",3,Mt),f=W(e,"onCloseAutoFocus",3,Mt),U=W(e,"onEscapeKeydown",3,Mt),q=W(e,"onInteractOutside",3,Mt),le=W(e,"trapFocus",3,!0),Q=W(e,"preventScroll",3,!1),A=W(e,"customAnchor",3,null),g=$o(e,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const S=Js.create({id:pe(()=>c()),ref:pe(()=>u(),J=>u(J)),onInteractOutside:pe(()=>q()),onEscapeKeydown:pe(()=>U()),customAnchor:pe(()=>A())}),M=Ie(()=>ys(g,S.props)),V=Ie(()=>le()&&S.shouldTrapFocus);function K(J){S.shouldTrapFocus||J.preventDefault(),i()(J)}var he=j(),se=P(he);{var oe=J=>{Pr(J,ie(()=>t(M),()=>S.popperProps,{get ref(){return S.opts.ref},get enabled(){return S.root.opts.open.current},get id(){return c()},get trapFocus(){return t(V)},get preventScroll(){return Q()},loop:!0,forceMount:!0,get customAnchor(){return A()},onOpenAutoFocus:K,get onCloseAutoFocus(){return f()},get shouldRender(){return S.shouldRender},popper:(ee,E)=>{let ue=()=>E==null?void 0:E().props,Pe=()=>E==null?void 0:E().wrapperProps;const re=Ie(()=>ys(ue(),{style:ho("popover")},{style:e.style}));var ve=j(),Ne=P(ve);{var $e=O=>{var H=j(),w=P(H);{let N=Ie(()=>({props:t(re),wrapperProps:Pe(),...S.snippetProps}));ht(w,()=>e.child,()=>t(N))}y(O,H)},te=O=>{var H=jr();jt(H,()=>({...Pe()}));var w=v(H);jt(w,()=>({...t(re)}));var N=v(w);ht(N,()=>e.children??gs),p(w),p(H),y(O,H)};Se(Ne,O=>{e.child?O($e):O(te,-1)})}y(ee,ve)},$$slots:{popper:!0}}))},Oe=J=>{xr(J,ie(()=>t(M),()=>S.popperProps,{get ref(){return S.opts.ref},get open(){return S.root.opts.open.current},get id(){return c()},get trapFocus(){return t(V)},get preventScroll(){return Q()},loop:!0,forceMount:!1,get customAnchor(){return A()},onOpenAutoFocus:K,get onCloseAutoFocus(){return f()},get shouldRender(){return S.shouldRender},popper:(ee,E)=>{let ue=()=>E==null?void 0:E().props,Pe=()=>E==null?void 0:E().wrapperProps;const re=Ie(()=>ys(ue(),{style:ho("popover")},{style:e.style}));var ve=j(),Ne=P(ve);{var $e=O=>{var H=j(),w=P(H);{let N=Ie(()=>({props:t(re),wrapperProps:Pe(),...S.snippetProps}));ht(w,()=>e.child,()=>t(N))}y(O,H)},te=O=>{var H=Ur();jt(H,()=>({...Pe()}));var w=v(H);jt(w,()=>({...t(re)}));var N=v(w);ht(N,()=>e.children??gs),p(w),p(H),y(O,H)};Se(Ne,O=>{e.child?O($e):O(te,-1)})}y(ee,ve)},$$slots:{popper:!0}}))};Se(se,J=>{h()?J(oe):h()||J(Oe,1)})}y(d,he),es()}var Br=x("<button><!></button>");function yo(d,e){const s=_o();Rt(e,!0);let u=W(e,"id",19,()=>To(s)),c=W(e,"ref",15,null),h=W(e,"type",3,"button"),i=W(e,"disabled",3,!1),f=W(e,"openOnHover",3,!1),U=W(e,"openDelay",3,700),q=W(e,"closeDelay",3,300),le=$o(e,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const Q=js.create({id:pe(()=>u()),ref:pe(()=>c(),g=>c(g)),disabled:pe(()=>!!i()),openOnHover:pe(()=>f()),openDelay:pe(()=>U()),closeDelay:pe(()=>q())}),A=Ie(()=>ys(le,Q.props,{type:h()}));kr(d,{get id(){return u()},get ref(){return Q.opts.ref},children:(g,S)=>{var M=j(),V=P(M);{var K=se=>{var oe=j(),Oe=P(oe);ht(Oe,()=>e.child,()=>({props:t(A)})),y(se,oe)},he=se=>{var oe=Br();jt(oe,()=>({...t(A)}));var Oe=v(oe);ht(Oe,()=>e.children??gs),p(oe),y(se,oe)};Se(V,se=>{e.child?se(K):se(he,-1)})}y(g,M)},$$slots:{default:!0}}),es()}function bo(d,e){Rt(e,!0);let s=W(e,"open",15,!1),u=W(e,"onOpenChange",3,Mt),c=W(e,"onOpenChangeComplete",3,Mt);Vs.create({open:pe(()=>s(),h=>{s(h),u()(h)}),onOpenChangeComplete:pe(()=>c())}),Mr(d,{children:(h,i)=>{var f=j(),U=P(f);ht(U,()=>e.children??gs),y(h,f)},$$slots:{default:!0}}),es()}const Ys=mr({});function Kr(d,e){Ys.update(s=>({...s,[d]:e}))}function Jr(d){Ys.update(e=>{const s={...e};return delete s[d],s})}var qr=x('<div class="source-sheet-state svelte-ypseth">加载中…</div>'),Xr=x('<div class="source-sheet-state err svelte-ypseth"> </div>'),Yr=x('<div class="source-sheet-state svelte-ypseth">暂无条目</div>'),Qr=x('<li class="source-feed-row svelte-ypseth"><a class="source-feed-link svelte-ypseth" target="_blank" rel="noopener noreferrer"><span class="source-feed-title svelte-ypseth"> </span> <span class="source-feed-meta svelte-ypseth"><time> </time> <span class="source-feed-ext svelte-ypseth" aria-hidden="true"><!></span></span></a></li>'),Gr=x('<ul class="source-feed-list svelte-ypseth"></ul>'),Zr=x('<header class="source-sheet-header svelte-ypseth"><div class="source-sheet-title-wrap svelte-ypseth"><!> <p class="source-sheet-sub svelte-ypseth"> </p></div> <!></header> <div class="source-sheet-body svelte-ypseth"><!></div>',1),Rr=x("<!> <!>",1);function en(d,e){Rt(e,!1);let s=W(e,"open",8,!1),u=W(e,"sourceRef",8,""),c=W(e,"sourceLabel",8,""),h=W(e,"onOpenChange",8,()=>{}),i=k([]),f=k(!1),U=k(""),q=k(0);async function le(){const g=u().trim();if(!g){n(i,[]);return}const S=dr(q);n(f,!0),n(U,"");try{const M=new URLSearchParams;M.set("ref",g),M.set("limit","100"),M.set("offset","0");const V=await Xe("/api/items?"+M.toString());if(S!==t(q))return;if(!V.ok)throw new Error(await V.text().catch(()=>`HTTP ${V.status}`));const K=await V.json();n(i,Array.isArray(K.items)?K.items:[])}catch(M){if(S!==t(q))return;n(U,M instanceof Error?M.message:String(M)),n(i,[])}finally{S===t(q)&&n(f,!1)}}function Q(g){if(!g)return"—";try{const S=new Date(g);return Number.isNaN(S.getTime())?"—":S.toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}catch{return"—"}}function A(g){return Q(g.pub_date||g.fetched_at)}kt(()=>(uo(s()),uo(u()),t(q)),()=>{s()&&u().trim()?le():s()||(cr(q),n(i,[]),n(U,""),n(f,!1))}),go(),wo(),zo(d,{get open(){return s()},onOpenChange:g=>h()(g),children:(g,S)=>{bs(g,{children:(M,V)=>{var K=Rr(),he=P(K);Co(he,{class:"source-sheet-overlay"});var se=b(he,2);Po(se,{class:"source-sheet-panel","aria-describedby":void 0,children:(oe,Oe)=>{var J=Zr(),Ae=P(J),ee=v(Ae),E=v(ee);{let w=fs(()=>c()||u()||void 0);xo(E,{class:"source-sheet-title",get title(){return t(w)},children:(N,xe)=>{ne();var D=vs();ae(()=>Y(D,c()||u()||"信源条目")),y(N,D)},$$slots:{default:!0}})}var ue=b(E,2),Pe=v(ue,!0);p(ue),p(ee);var re=b(ee,2);Fs(re,{class:"source-sheet-close","aria-label":"关闭",children:(w,N)=>{Wr(w,{size:18})},$$slots:{default:!0}}),p(Ae);var ve=b(Ae,2),Ne=v(ve);{var $e=w=>{var N=qr();y(w,N)},te=w=>{var N=Xr(),xe=v(N,!0);p(N),ae(()=>Y(xe,t(U))),y(w,N)},O=w=>{var N=Yr();y(w,N)},H=w=>{var N=Gr();ms(N,5,()=>t(i),xe=>xe.id,(xe,D)=>{var Fe=Qr(),Ue=v(Fe),Ye=v(Ue),$s=v(Ye,!0);p(Ye);var Nt=b(Ye,2),it=v(Nt),zs=v(it,!0);p(it);var ts=b(it,2),Cs=v(ts);So(Cs,{size:12}),p(ts),p(Nt),p(Ue),p(Fe),ae((fe,Lt,ss)=>{at(Ue,"href",(t(D),z(()=>t(D).url))),at(Ue,"title",fe),Y($s,Lt),at(it,"datetime",(t(D),z(()=>t(D).pub_date||t(D).fetched_at))),Y(zs,ss)},[()=>(t(D),z(()=>{var fe;return((fe=t(D).summary)==null?void 0:fe.trim())||t(D).title||t(D).url})),()=>(t(D),z(()=>{var fe;return(fe=t(D).title)!=null&&fe.trim()?t(D).title:t(D).url})),()=>(t(D),z(()=>A(t(D))))]),y(xe,Fe)}),p(N),y(w,N)};Se(Ne,w=>{t(f),t(i),z(()=>t(f)&&t(i).length===0)?w($e):t(U)?w(te,1):(t(i),z(()=>t(i).length===0)?w(O,2):w(H,-1))})}p(ve),ae(()=>{at(ue,"title",u()),Y(Pe,u())}),y(oe,J)},$$slots:{default:!0}}),y(M,K)},$$slots:{default:!0}})},$$slots:{default:!0}}),es()}var tn=x("<option> </option>"),sn=x('<p class="save-error svelte-1beoyzy"> </p>'),on=x('<span class="confirm-delete-row svelte-1beoyzy"><span class="confirm-delete-text svelte-1beoyzy">确认删除?</span> <button type="button" class="btn-confirm-yes svelte-1beoyzy">删除</button> <button type="button" class="btn-confirm-no svelte-1beoyzy">取消</button></span>'),rn=x('<button type="button" class="btn-delete svelte-1beoyzy"><!> 删除</button>'),nn=x('<div class="modal-header svelte-1beoyzy"><!> <!></div> <div class="modal-body svelte-1beoyzy"><div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">Ref <span class="required svelte-1beoyzy">*</span></span> <div class="ref-input-wrap svelte-1beoyzy"><input class="field-input svelte-1beoyzy" type="text" placeholder="https://example.com/feed"/></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">来源</span> <div class="parse-hints svelte-1beoyzy" role="status" aria-live="polite"><span title="标准 RSS/Atom/JSON Feed(内置 __rss__,rss-parser)"><!> <span>RSS/Atom</span></span> <span title="内置 IMAP 邮件插件(__email__)"><!> <span>邮箱</span></span> <span title="Site 插件(listUrlPattern)或语鲸协议(lingowhale://)"><!> <span>插件</span></span> <span title="通用网页列表:无 Feed 特征且未命中插件时,走 LLM 解析(generic)"><!> <span>LLM</span></span></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">名称</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="显示名称(留空则显示 ref)"/></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">描述</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="简短说明"/></div> <div class="field-row svelte-1beoyzy"><div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">权重(0–1)</span> <input class="field-input field-input--weight svelte-1beoyzy" type="number" min="0" max="1" step="0.01" inputmode="decimal" placeholder="0–1"/></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">刷新间隔</span> <select class="field-input svelte-1beoyzy"></select></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">代理</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="http://127.0.0.1:7890"/></div> <!></div> <div class="modal-footer svelte-1beoyzy"><div class="modal-footer-left svelte-1beoyzy"><!></div> <div class="modal-footer-right svelte-1beoyzy"><!> <button type="button" class="btn-save svelte-1beoyzy"> </button></div></div>',1),an=x("<!> <!>",1),ln=x('<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="6" x2="21" y2="6"></line><line x1="7" y1="12" x2="17" y2="12"></line><line x1="11" y1="18" x2="13" y2="18"></line></svg> <span>排序</span>',1),un=x('<button type="button"> </button>'),cn=x('<div class="sort-options svelte-1beoyzy"></div>'),dn=x("<!> <!>",1),pn=x('<div class="list-head row-grid svelte-1beoyzy" aria-hidden="true"><span class="col-h col-title svelte-1beoyzy">标题</span> <span class="col-h col-desc svelte-1beoyzy">描述</span> <span class="col-h col-parse svelte-1beoyzy">解析</span> <span class="col-h col-latest svelte-1beoyzy">最近拉取</span> <span class="col-h col-count svelte-1beoyzy">数量</span> <span class="col-h col-actions svelte-1beoyzy"></span></div>'),hn=x('<div class="state svelte-1beoyzy">加载中…</div>'),vn=x('<div class="state error svelte-1beoyzy"> </div>'),fn=x('<div class="state svelte-1beoyzy">暂无信源。<button type="button" class="link-btn svelte-1beoyzy">点击添加</button>第一个信源。</div>'),mn=x('<div class="state svelte-1beoyzy">无匹配结果</div>'),yn=x('<span class="card-weight svelte-1beoyzy" title="权重"> </span>'),bn=x('<a class="more-menu-item svelte-1beoyzy" target="_blank" rel="noopener noreferrer"><!> <span>打开链接</span></a> <button type="button" class="more-menu-item svelte-1beoyzy"><!> <span>解析信源</span></button>',1),_n=x('<button type="button" title="强制拉取"><!> <span> </span></button> <button type="button" class="more-menu-item svelte-1beoyzy"><!> <span>编辑</span></button> <button type="button" class="more-menu-item svelte-1beoyzy" title="复制本服务的 RSS 订阅地址(/rss?ref=…)"><!> <span>复制 RSS 地址</span></button> <!> <button type="button" class="more-menu-item more-menu-item-danger svelte-1beoyzy" title="清空该信源下所有已入库条目"><!> <span> </span></button> <button type="button" class="more-menu-item more-menu-item-remove svelte-1beoyzy" title="从订阅列表中移除此信源"><!> <span> </span></button>',1),gn=x("<!> <!>",1),wn=x('<div class="card row-grid svelte-1beoyzy" role="button" tabindex="0"><div class="cell-title svelte-1beoyzy"><div class="title-block svelte-1beoyzy"><span class="title-text svelte-1beoyzy"> </span> <!></div></div> <div class="cell-desc svelte-1beoyzy"> </div> <div class="cell-parse svelte-1beoyzy"><span class="parse-mode svelte-1beoyzy"> </span></div> <div class="cell-latest tabular svelte-1beoyzy"> </div> <div class="cell-count tabular svelte-1beoyzy"> </div> <div class="cell-actions svelte-1beoyzy"><!></div></div>'),$n=x('<div class="list svelte-1beoyzy"></div>'),zn=x('<!> <!> <div class="feed-wrap svelte-1beoyzy"><div class="feed-col svelte-1beoyzy"><div class="feed-toolbar-block svelte-1beoyzy"><div class="feed-header svelte-1beoyzy"><div class="header-left svelte-1beoyzy"><input class="filter-input svelte-1beoyzy" type="search" placeholder="过滤…"/> <!></div> <div class="header-right svelte-1beoyzy"><button type="button" class="btn-add svelte-1beoyzy" title="添加信源"><!> <span>添加信源</span></button></div></div> <!></div> <div class="feed-body-scroll svelte-1beoyzy"><!></div></div></div>',1);function Jn(d,e){Rt(e,!1);const s=()=>hr(Ys,"$refToTaskId",u),[u,c]=pr(),h=k(),i=k(),f=k(),U=k(),q=[{value:"weight",label:"重要性"},{value:"count",label:"文章数量"},{value:"alpha",label:"首字母"}],le="1day",Q=[{value:"10min",label:"10 分钟"},{value:"30min",label:"30 分钟"},{value:"1h",label:"1 小时"},{value:"6h",label:"6 小时"},{value:"12h",label:"12 小时"},{value:"1day",label:"1 天"},{value:"3day",label:"3 天"},{value:"7day",label:"7 天"}];function A(o){const r=(o==null?void 0:o.trim())??"";return Q.some(a=>a.value===r)?r:le}function g(o){return Math.min(1,Math.max(0,o))}function S(o){const r=typeof o=="number"&&!Number.isNaN(o)?o:Number(String(o).trim());return Number.isFinite(r)?r<0||r>1?{ok:!1,message:"权重需在 0–1 之间"}:{ok:!0,value:r}:{ok:!1,message:"权重需为 0–1 之间的数字"}}let M=[],V=k([]),K=k(!0),he=k(""),se=k(""),oe=k("weight"),Oe=k(!1),J=k(!1),Ae="",ee=k(null),E=k(null),ue=k(null),Pe=k(!1),re=k(null),ve=k(!1),Ne=k(!1),$e=k(!1),te=k(""),O=k(""),H=k(""),w=k(""),N=k(0),xe=k(le),D=k(""),Fe=k(null),Ue=null;function Ye(o){const r=(o==null?void 0:o.trim())??"";if(!r)return r;const a=r.toLowerCase();return a.startsWith("http://")||a.startsWith("https://")||a.startsWith("imaps://")||a.startsWith("imap://")||a.startsWith("lingowhale://")?r:"https://"+r}function $s(o){const r=o.toLowerCase();return r.includes("/feed")||r.includes("/rss")||r.includes("/atom")||r.endsWith(".xml")||r.endsWith(".rss")||r.endsWith(".atom")||r.includes("format=rss")||r.includes("format=atom")||r.includes("output=rss")}function Nt(o,r){const a=(o==null?void 0:o.trim())??"";if(!a)return null;const l=a.toLowerCase();if(l.startsWith("imaps://")||l.startsWith("imap://"))return"email";if(l.startsWith("lingowhale://"))return"plugin";const $=Ye(a);return!$.startsWith("http://")&&!$.startsWith("https://")?null:$s($)?"rss":r?"plugin":"llm"}function it(o){return o==="rss"?"RSS/Atom":o==="plugin"?"插件":o==="llm"?"LLM":o==="email"?"邮箱":"—"}function zs(o){return o==="rss"?"标准 RSS/Atom/JSON Feed(内置 __rss__)":o==="plugin"?"Site 插件(listUrlPattern)或语鲸协议(lingowhale://)":o==="llm"?"通用网页列表:LLM 解析(generic)":o==="email"?"内置 IMAP 邮件插件(__email__)":"未识别的 ref 协议"}function ts(o){Ue&&clearTimeout(Ue);const r=o==null?void 0:o.trim();if(!r){n(Fe,null);return}n(Fe,null);const a=Ye(r);Ue=setTimeout(async()=>{Ue=null;try{const l=await Xe("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:[a]})});if(l.ok){const $=await l.json();Ye(t(O).trim())===a&&n(Fe,$[a]??null)}}catch{Ye(t(O).trim())===a&&n(Fe,null)}},400)}function Cs(o,r){return[...o].sort((a,l)=>{if(r==="weight"){const $=l.weight-a.weight;return $!==0?$:a.displayLabel.localeCompare(l.displayLabel)}if(r==="count"){const $=l.count-a.count;return $!==0?$:a.displayLabel.localeCompare(l.displayLabel)}return a.displayLabel.localeCompare(l.displayLabel)})}async function fe(){n(K,!0),n(he,"");try{const[o,r]=await Promise.all([Xe("/api/sources/raw"),Xe("/api/sources/stats")]),a=await o.text(),l=JSON.parse(a||"{}");M=Array.isArray(l.sources)?l.sources:[];const $=r.ok?await r.json():[],ze=new Map($.map(F=>[F.source_url,{count:F.count,latestAt:F.latest_at??null}])),R=M.filter(F=>{var X;return(X=F==null?void 0:F.ref)==null?void 0:X.trim()}).map(F=>F.ref.trim());let ke={};if(R.length>0)try{const F=await Xe("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:R})});F.ok&&(ke=await F.json())}catch{}n(V,M.filter(F=>{var X;return(X=F==null?void 0:F.ref)==null?void 0:X.trim()}).map(F=>{var Me;const X=F.ref.trim(),me=ze.get(X),ce=ke[X]??null;return{ref:X,displayLabel:F.label&&F.label.trim()||X,description:(Me=F.description)==null?void 0:Me.trim(),count:(me==null?void 0:me.count)??0,latestAt:(me==null?void 0:me.latestAt)??null,pluginId:ce,weight:F.weight??0,parseHint:Nt(X,ce)}}))}catch(o){n(he,o instanceof Error?o.message:String(o)),n(V,[])}finally{n(K,!1)}}async function Lt(o){return(await Xe("/api/sources/raw",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({sources:o})})).ok}function ss(){n(Ne,!1),n(O,""),n(H,""),n(w,""),n(N,0),n(xe,le),n(D,""),n(te,""),n(ve,!0)}function Fo(o){const r=M.find(a=>a.ref===o.ref);n(Ne,!0),Ae=o.ref,n(O,o.ref),n(H,(r==null?void 0:r.label)??""),n(w,(r==null?void 0:r.description)??""),n(N,g((r==null?void 0:r.weight)??0)),n(xe,A(r==null?void 0:r.refresh)),n(D,(r==null?void 0:r.proxy)??""),n(te,""),n(J,!1),n(ve,!0)}function Rs(){n(ve,!1),n(J,!1)}async function Do(){const o=t(O).trim();if(!o){n(te,"ref 不能为空");return}const r=S(t(N));if(!r.ok){n(te,r.message);return}n($e,!0),n(te,"");try{const a=r.value,l={ref:o,...t(H).trim()?{label:t(H).trim()}:{},...t(w).trim()?{description:t(w).trim()}:{},refresh:t(xe),...t(D).trim()?{proxy:t(D).trim()}:{},...a!==0?{weight:a}:{}};let $;if(t(Ne)){if(o!==Ae&&M.some(R=>R.ref===o)){n(te,"该 ref 已存在");return}$=M.map(R=>R.ref===Ae?{...R,...l}:R)}else{if(M.some(R=>R.ref===o)){n(te,"该 ref 已存在");return}$=[...M,l]}if(!await Lt($)){n(te,"保存失败,请重试");return}Rs(),await fe()}catch(a){n(te,a instanceof Error?a.message:String(a))}finally{n($e,!1)}}async function Eo(){const o=M.filter(r=>r.ref!==Ae);await Lt(o),Rs(),await fe()}async function Ho(o){for(let r=0;r<120;r++){const a=await Xe(`/api/tasks/${o}`);if(!a.ok)return{ok:!1,error:"轮询失败"};const l=await a.json();if(l.status==="done")return{ok:!0};if(l.status==="error")return{ok:!1,error:l.error??"拉取失败"};await new Promise($=>setTimeout($,800))}return{ok:!1,error:"超时"}}async function Wo(o,r){if(r==null||r.preventDefault(),r==null||r.stopPropagation(),!(o in s()))try{const a=await Xe("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:o})}),l=await a.json();if(!a.ok||!l.taskId)return;Kr(o,l.taskId),(await Ho(l.taskId)).ok&&await fe()}catch{}finally{Jr(o)}}function Vo(o){const r=o.trim().toLowerCase();return r.startsWith("http://")||r.startsWith("https://")}function jo(o){const r=new URL("/rss",typeof window<"u"?window.location.origin:"http://127.0.0.1");return r.searchParams.set("ref",o),r.href}async function Uo(o){const r=jo(o);try{await navigator.clipboard.writeText(r)}catch{try{const a=document.createElement("textarea");a.value=r,a.style.position="fixed",a.style.left="-9999px",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)}catch{}}n(ee,null)}function Bo(o,r){r.preventDefault(),r.stopPropagation();const a=o.startsWith("http")?o:"https://"+o;window.open("/admin/parse/"+encodeURIComponent(a),"_blank")}async function Ko(o){var r;if(!t(ue)&&confirm("确定从订阅列表中移除该信源吗?已入库的条目不会自动删除;若需一并删除条目,可先使用「清空该源条目」。")){n(ue,o),n(ee,null);try{const a=M.filter($=>$.ref!==o);if(!await Lt(a)){alert("移除失败,请重试");return}((r=t(re))==null?void 0:r.ref)===o&&(n(Pe,!1),n(re,null)),await fe()}catch(a){alert(a instanceof Error?a.message:"移除失败")}finally{n(ue,null)}}}async function Jo(o){if(!t(E)&&confirm("确定要清空该信源下的所有条目吗?此操作不可恢复。")){n(E,o),n(ee,null);try{const r=await Xe("/api/items/by-source?source_url="+encodeURIComponent(o),{method:"DELETE"}),a=await r.json();r.ok&&a.ok?await fe():r.ok||alert(a.message??"清空失败")}catch(r){alert(r instanceof Error?r.message:"清空失败")}finally{n(E,null)}}}function eo(o){n(re,o),n(Pe,!0)}function qo(o,r){const a=r.target;a&&(a.closest("a[href], button")||eo(o))}function Xo(o,r){r.key!=="Enter"&&r.key!==" "||(r.preventDefault(),eo(o))}function Yo(o){if(!o)return"—";try{const r=new Date(o);if(Number.isNaN(r.getTime()))return"—";const a=r.getFullYear(),l=String(r.getMonth()+1).padStart(2,"0"),$=String(r.getDate()).padStart(2,"0");return`${a}-${l}-${$}`}catch{return"—"}}ur(fe),kt(()=>t(O),()=>{t(O),ts(t(O))}),kt(()=>(t(O),t(Fe)),()=>{n(h,Nt(t(O),t(Fe)))}),kt(()=>t(h),()=>{n(i,t(h)??"llm")}),kt(()=>(t(se),t(V),t(oe)),()=>{n(f,Cs(t(se).trim()?t(V).filter(o=>{var a;const r=t(se).trim().toLowerCase();return o.displayLabel.toLowerCase().includes(r)||(((a=o.description)==null?void 0:a.toLowerCase().includes(r))??!1)||o.ref.toLowerCase().includes(r)||it(o.parseHint).toLowerCase().includes(r)}):t(V),t(oe)))}),kt(()=>(t(K),t(he),t(V),t(f)),()=>{n(U,!t(K)&&!t(he)&&t(V).length>0&&t(f).length>0)}),go(),wo();var to=zn(),so=P(to);zo(so,{get open(){return t(ve)},onOpenChange:o=>{n(ve,o),o||n(J,!1)},children:(o,r)=>{bs(o,{children:(a,l)=>{var $=an(),ze=P($);Co(ze,{class:"modal-overlay"});var R=b(ze,2);Po(R,{class:"modal","aria-describedby":void 0,children:(ke,F)=>{var X=nn(),me=P(X),ce=v(me);xo(ce,{class:"modal-title",children:(T,B)=>{ne();var Z=vs();ae(()=>Y(Z,t(Ne)?"编辑信源":"添加信源")),y(T,Z)},$$slots:{default:!0}});var Me=b(ce,2);Fs(Me,{class:"modal-close","aria-label":"关闭",children:(T,B)=>{ne();var Z=vs("✕");y(T,Z)},$$slots:{default:!0}}),p(me);var De=b(me,2),Be=v(De),os=b(v(Be),2),yt=v(os);Ct(yt),p(os),p(Be);var It=b(Be,2),bt=b(v(It),2),_t=v(bt);let At;var Ss=v(_t);Dr(Ss,{size:14,class:"parse-hint-icon"}),ne(2),p(_t);var G=b(_t,2);let Te;var gt=v(G);Nr(gt,{size:14,class:"parse-hint-icon"}),ne(2),p(G);var Ke=b(G,2);let Ft;var Os=v(Ke);Ar(Os,{size:14,class:"parse-hint-icon"}),ne(2),p(Ke);var Je=b(Ke,2);let rs;var Dt=v(Je);Er(Dt,{size:14,class:"parse-hint-icon"}),ne(2),p(Je),p(bt),p(It);var ns=b(It,2),Et=b(v(ns),2);Ct(Et),p(ns);var Ee=b(ns,2),Ht=b(v(Ee),2);Ct(Ht),p(Ee);var wt=b(Ee,2),$t=v(wt),as=b(v($t),2);Ct(as),p($t);var lt=b($t,2),Wt=b(v(lt),2);ms(Wt,5,()=>Q,co,(T,B)=>{var Z=tn(),Ge=v(Z,!0);p(Z);var zt={};ae(()=>{Y(Ge,(t(B),z(()=>t(B).label))),zt!==(zt=(t(B),z(()=>t(B).value)))&&(Z.value=(Z.__value=(t(B),z(()=>t(B).value)))??"")}),y(T,Z)}),p(Wt),p(lt),p(wt);var Qe=b(wt,2),is=b(v(Qe),2);Ct(is),p(Qe);var ls=b(Qe,2);{var Ns=T=>{var B=sn(),Z=v(B,!0);p(B),ae(()=>Y(Z,t(te))),y(T,B)};Se(ls,T=>{t(te)&&T(Ns)})}p(De);var us=b(De,2),qe=v(us),cs=v(qe);{var ds=T=>{var B=j(),Z=P(B);{var Ge=He=>{var Le=on(),dt=b(v(Le),2),ar=b(dt,2);p(Le),ae(()=>dt.disabled=t($e)),de("click",dt,Eo),de("click",ar,()=>n(J,!1)),y(He,Le)},zt=He=>{var Le=rn(),dt=v(Le);vo(dt,{size:13}),ne(),p(Le),ae(()=>Le.disabled=t($e)),de("click",Le,()=>n(J,!0)),y(He,Le)};Se(Z,He=>{t(J)?He(Ge):He(zt,-1)})}y(T,B)};Se(cs,T=>{t(Ne)&&T(ds)})}p(qe);var ps=b(qe,2),ut=v(ps);Fs(ut,{class:"btn-cancel",get disabled(){return t($e)},children:(T,B)=>{ne();var Z=vs("取消");y(T,Z)},$$slots:{default:!0}});var ct=b(ut,2),hs=v(ct,!0);p(ct),p(ps),p(us),ae(()=>{At=Pt(_t,1,"parse-hint svelte-1beoyzy",null,At,{active:t(i)==="rss"}),Te=Pt(G,1,"parse-hint svelte-1beoyzy",null,Te,{active:t(i)==="email"}),Ft=Pt(Ke,1,"parse-hint svelte-1beoyzy",null,Ft,{active:t(i)==="plugin"}),rs=Pt(Je,1,"parse-hint svelte-1beoyzy",null,rs,{active:t(i)==="llm"}),ct.disabled=t($e),Y(hs,t($e)?"保存中…":"保存")}),xt(yt,()=>t(O),T=>n(O,T)),xt(Et,()=>t(H),T=>n(H,T)),xt(Ht,()=>t(w),T=>n(w,T)),xt(as,()=>t(N),T=>n(N,T)),vr(Wt,()=>t(xe),T=>n(xe,T)),xt(is,()=>t(D),T=>n(D,T)),de("click",ct,Do),y(ke,X)},$$slots:{default:!0}}),y(a,$)},$$slots:{default:!0}})},$$slots:{default:!0}});var oo=b(so,2);{let o=fs(()=>(t(re),z(()=>{var a;return((a=t(re))==null?void 0:a.ref)??""}))),r=fs(()=>(t(re),z(()=>{var a;return((a=t(re))==null?void 0:a.displayLabel)??""})));en(oo,{get open(){return t(Pe)},get sourceRef(){return t(o)},get sourceLabel(){return t(r)},onOpenChange:a=>{n(Pe,a),a||n(re,null)}})}var ro=b(oo,2),no=v(ro),Ps=v(no),xs=v(Ps),ks=v(xs),Ms=v(ks);Ct(Ms);var Qo=b(Ms,2);bo(Qo,{onOpenChange:o=>n(Oe,o),get open(){return t(Oe)},set open(o){n(Oe,o)},children:(o,r)=>{var a=dn(),l=P(a);yo(l,{class:"sort-btn",title:"排序",children:(ze,R)=>{var ke=ln();ne(2),y(ze,ke)},$$slots:{default:!0}});var $=b(l,2);bs($,{children:(ze,R)=>{mo(ze,{class:"dropdown-panel",sideOffset:4,align:"end",children:(ke,F)=>{var X=cn();ms(X,5,()=>q,co,(me,ce)=>{var Me=un();let De;var Be=v(Me,!0);p(Me),ae(()=>{De=Pt(Me,1,"sort-option svelte-1beoyzy",null,De,{active:t(oe)===t(ce).value}),Y(Be,(t(ce),z(()=>t(ce).label)))}),de("click",Me,()=>{n(oe,t(ce).value),n(Oe,!1)}),y(me,Me)}),p(X),y(ke,X)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(o,a)},$$slots:{default:!0},$$legacy:!0}),p(ks);var ao=b(ks,2),Ts=v(ao),Go=v(Ts);Ir(Go,{size:14,"aria-hidden":"true"}),ne(2),p(Ts),p(ao),p(xs);var Zo=b(xs,2);{var Ro=o=>{var r=pn();y(o,r)};Se(Zo,o=>{t(U)&&o(Ro)})}p(Ps);var io=b(Ps,2),er=v(io);{var tr=o=>{var r=hn();y(o,r)},sr=o=>{var r=vn(),a=v(r,!0);p(r),ae(()=>Y(a,t(he))),y(o,r)},or=o=>{var r=fn(),a=b(v(r));ne(),p(r),de("click",a,ss),y(o,r)},rr=o=>{var r=mn();y(o,r)},nr=o=>{var r=$n();ms(r,5,()=>t(f),a=>a.ref,(a,l)=>{var $=wn(),ze=v($),R=v(ze),ke=v(R),F=v(ke,!0);p(ke);var X=b(ke,2);{var me=G=>{var Te=yn(),gt=v(Te);p(Te),ae(()=>Y(gt,`★${t(l),z(()=>t(l).weight)??""}`)),y(G,Te)};Se(X,G=>{t(l),z(()=>t(l).weight!==0)&&G(me)})}p(R),p(ze);var ce=b(ze,2),Me=v(ce,!0);p(ce);var De=b(ce,2),Be=v(De),os=v(Be,!0);p(Be),p(De);var yt=b(De,2),It=v(yt,!0);p(yt);var bt=b(yt,2),_t=v(bt,!0);p(bt);var At=b(bt,2),Ss=v(At);{let G=fs(()=>(t(ee),t(l),z(()=>t(ee)===t(l).ref)));bo(Ss,{get open(){return t(G)},onOpenChange:Te=>{n(ee,Te?t(l).ref:null)},children:(Te,gt)=>{var Ke=gn(),Ft=P(Ke);yo(Ft,{class:"btn-icon",title:"更多",onclick:Je=>Je.stopPropagation(),children:(Je,rs)=>{Or(Je,{size:13})},$$slots:{default:!0}});var Os=b(Ft,2);bs(Os,{children:(Je,rs)=>{mo(Je,{class:"dropdown-panel more-menu",sideOffset:6,align:"center",onclick:Dt=>Dt.stopPropagation(),children:(Dt,ns)=>{var Et=_n(),Ee=P(Et);let Ht;var wt=v(Ee);Fr(wt,{size:14});var $t=b(wt,2),as=v($t,!0);p($t),p(Ee);var lt=b(Ee,2),Wt=v(lt);Lr(Wt,{size:14}),ne(2),p(lt);var Qe=b(lt,2),is=v(Qe);Sr(is,{size:14}),ne(2),p(Qe);var ls=b(Qe,2);{var Ns=B=>{var Z=bn(),Ge=P(Z),zt=v(Ge);So(zt,{size:14}),ne(2),p(Ge);var He=b(Ge,2),Le=v(He);Tr(Le,{size:14}),ne(2),p(He),ae(()=>at(Ge,"href",(t(l),z(()=>t(l).ref)))),de("click",He,dt=>{Bo(t(l).ref,dt),n(ee,null)}),y(B,Z)},us=Ie(()=>(t(l),z(()=>Vo(t(l).ref))));Se(ls,B=>{t(us)&&B(Ns)})}var qe=b(ls,2),cs=v(qe);Hr(cs,{size:14});var ds=b(cs,2),ps=v(ds,!0);p(ds),p(qe);var ut=b(qe,2),ct=v(ut);vo(ct,{size:14});var hs=b(ct,2),T=v(hs,!0);p(hs),p(ut),ae(()=>{Ht=Pt(Ee,1,"more-menu-item svelte-1beoyzy",null,Ht,{pulling:t(l).ref in s()}),Ee.disabled=(t(l),s(),z(()=>t(l).ref in s())),Y(as,(t(l),s(),z(()=>t(l).ref in s()?"拉取中…":"拉取"))),qe.disabled=(t(E),t(l),z(()=>t(E)===t(l).ref)),Y(ps,(t(E),t(l),z(()=>t(E)===t(l).ref?"清空中…":"清空该源条目"))),ut.disabled=(t(ue),t(l),z(()=>t(ue)===t(l).ref)),Y(T,(t(ue),t(l),z(()=>t(ue)===t(l).ref?"移除中…":"移除信源")))}),de("click",Ee,B=>{Wo(t(l).ref,B),n(ee,null)}),de("click",lt,()=>{Fo(t(l)),n(ee,null)}),de("click",Qe,()=>Uo(t(l).ref)),de("click",qe,()=>Jo(t(l).ref)),de("click",ut,()=>Ko(t(l).ref)),y(Dt,Et)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(Te,Ke)},$$slots:{default:!0}})}p(At),p($),ae((G,Te,gt,Ke)=>{at(R,"title",(t(l),z(()=>t(l).ref))),Y(F,(t(l),z(()=>t(l).displayLabel))),at(ce,"title",(t(l),z(()=>t(l).description??""))),Y(Me,G),at(Be,"title",Te),Y(os,gt),Y(It,Ke),Y(_t,(t(l),z(()=>t(l).count)))},[()=>(t(l),z(()=>{var G;return(G=t(l).description)!=null&&G.trim()?t(l).description:"—"})),()=>(t(l),z(()=>zs(t(l).parseHint))),()=>(t(l),z(()=>it(t(l).parseHint))),()=>(t(l),z(()=>Yo(t(l).latestAt)))]),de("click",$,G=>qo(t(l),G)),de("keydown",$,G=>Xo(t(l),G)),y(a,$)}),p(r),y(o,r)};Se(er,o=>{t(K)?o(tr):t(he)?o(sr,1):(t(V),z(()=>t(V).length===0)?o(or,2):(t(f),z(()=>t(f).length===0)?o(rr,3):o(nr,-1)))})}p(io),p(no),p(ro),xt(Ms,()=>t(se),o=>n(se,o)),de("click",Ts,ss),y(d,to),es(),c()}fr(["click","keydown"]);export{Jn as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as fe,h as k,a as ie,o as P,r as le,U as ue,s as Q,c as Y,e as V,f as L,V as se,W as oe,X as $,R as de,Y as q,Z as w,_ as U,a0 as ve,a1 as te,G as ce,a2 as pe,a3 as G,a4 as ge,a5 as he,O as _e,m as j,a6 as Ee,w as me,a7 as ne,a8 as re,a9 as B,aa as Te,ab as we,ac as Ae,ad as Ce,ae as Se,af as Ie,ag as Ne,ah as ae,ai as Re}from"./BUngiKFg.js";function Me(e,r){return r}function xe(e,r,u){for(var s=[],c=r.length,l,i=r.length,p=0;p<c;p++){let E=r[p];re(E,()=>{if(l){if(l.pending.delete(E),l.done.add(E),l.pending.size===0){var d=e.outrogroups;X(e,G(l.done)),d.delete(l),d.size===0&&(e.outrogroups=null)}}else i-=1},!1)}if(i===0){var f=s.length===0&&u!==null;if(f){var t=u,a=t.parentNode;we(a),a.append(t),e.items.clear()}X(e,r,!f)}else l={pending:new Set(r),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(l)}function X(e,r,u=!0){var s;if(e.pending.size>0){s=new Set;for(const i of e.pending.values())for(const p of i)s.add(e.items.get(p).e)}for(var c=0;c<r.length;c++){var l=r[c];if(s!=null&&s.has(l)){l.f|=w;const i=document.createDocumentFragment();Ae(l,i)}else Ce(r[c],u)}}var ee;function Oe(e,r,u,s,c,l=null){var i=e,p=new Map,f=(r&ae)!==0;if(f){var t=e;i=k?Y(Se(t)):t.appendChild(q())}k&&ie();var a=null,E=ce(()=>{var v=u();return pe(v)?v:v==null?[]:G(v)}),d,m=new Map,T=!0;function R(v){(C.effect.f&me)===0&&(C.pending.delete(v),C.fallback=a,De(C,d,i,r,s),a!==null&&(d.length===0?(a.f&w)===0?ne(a):(a.f^=w,O(a,null,i)):re(a,()=>{a=null})))}function n(v){C.pending.delete(v)}var o=fe(()=>{d=P(E);var v=d.length;let h=!1;if(k){var H=le(i)===ue;H!==(v===0)&&(i=Q(),Y(i),V(!1),h=!0)}for(var S=new Set,g=de,D=te(),I=0;I<v;I+=1){k&&L.nodeType===se&&L.data===oe&&(i=L,h=!0,V(!1));var b=d[I],x=s(b,I),_=T?null:p.get(x);_?(_.v&&$(_.v,b),_.i&&$(_.i,I),D&&g.unskip_effect(_.e)):(_=be(p,T?i:ee??(ee=q()),b,x,I,c,r,u),T||(_.e.f|=w),p.set(x,_)),S.add(x)}if(v===0&&l&&!a&&(T?a=U(()=>l(i)):(a=U(()=>l(ee??(ee=q()))),a.f|=w)),v>S.size&&ve(),k&&v>0&&Y(Q()),!T)if(m.set(g,S),D){for(const[F,z]of p)S.has(F)||g.skip_effect(z.e);g.oncommit(R),g.ondiscard(n)}else R(g);h&&V(!0),P(E)}),C={effect:o,items:p,pending:m,outrogroups:null,fallback:a};T=!1,k&&(i=L)}function M(e){for(;e!==null&&(e.f&Te)===0;)e=e.next;return e}function De(e,r,u,s,c){var b,x,_,F,z,W,Z,y,J;var l=(s&Re)!==0,i=r.length,p=e.items,f=M(e.effect.first),t,a=null,E,d=[],m=[],T,R,n,o;if(l)for(o=0;o<i;o+=1)T=r[o],R=c(T,o),n=p.get(R).e,(n.f&w)===0&&((x=(b=n.nodes)==null?void 0:b.a)==null||x.measure(),(E??(E=new Set)).add(n));for(o=0;o<i;o+=1){if(T=r[o],R=c(T,o),n=p.get(R).e,e.outrogroups!==null)for(const A of e.outrogroups)A.pending.delete(n),A.done.delete(n);if((n.f&B)!==0&&(ne(n),l&&((F=(_=n.nodes)==null?void 0:_.a)==null||F.unfix(),(E??(E=new Set)).delete(n))),(n.f&w)!==0)if(n.f^=w,n===f)O(n,null,u);else{var C=a?a.next:f;n===e.effect.last&&(e.effect.last=n.prev),n.prev&&(n.prev.next=n.next),n.next&&(n.next.prev=n.prev),N(e,a,n),N(e,n,C),O(n,C,u),a=n,d=[],m=[],f=M(a.next);continue}if(n!==f){if(t!==void 0&&t.has(n)){if(d.length<m.length){var v=m[0],h;a=v.prev;var H=d[0],S=d[d.length-1];for(h=0;h<d.length;h+=1)O(d[h],v,u);for(h=0;h<m.length;h+=1)t.delete(m[h]);N(e,H.prev,S.next),N(e,a,H),N(e,S,v),f=v,a=S,o-=1,d=[],m=[]}else t.delete(n),O(n,f,u),N(e,n.prev,n.next),N(e,n,a===null?e.effect.first:a.next),N(e,a,n),a=n;continue}for(d=[],m=[];f!==null&&f!==n;)(t??(t=new Set)).add(f),m.push(f),f=M(f.next);if(f===null)continue}(n.f&w)===0&&d.push(n),a=n,f=M(n.next)}if(e.outrogroups!==null){for(const A of e.outrogroups)A.pending.size===0&&(X(e,G(A.done)),(z=e.outrogroups)==null||z.delete(A));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||t!==void 0){var g=[];if(t!==void 0)for(n of t)(n.f&B)===0&&g.push(n);for(;f!==null;)(f.f&B)===0&&f!==e.fallback&&g.push(f),f=M(f.next);var D=g.length;if(D>0){var I=(s&ae)!==0&&i===0?u:null;if(l){for(o=0;o<D;o+=1)(Z=(W=g[o].nodes)==null?void 0:W.a)==null||Z.measure();for(o=0;o<D;o+=1)(J=(y=g[o].nodes)==null?void 0:y.a)==null||J.fix()}xe(e,g,I)}}l&&Ie(()=>{var A,K;if(E!==void 0)for(n of E)(K=(A=n.nodes)==null?void 0:A.a)==null||K.apply()})}function be(e,r,u,s,c,l,i,p){var f=(i&ge)!==0?(i&he)===0?_e(u,!1,!1):j(u):null,t=(i&Ee)!==0?j(c):null;return{v:f,i:t,e:U(()=>(l(r,f??u,t??c,p),()=>{e.delete(s)}))}}function O(e,r,u){if(e.nodes)for(var s=e.nodes.start,c=e.nodes.end,l=r&&(r.f&w)===0?r.nodes.start:u;s!==null;){var i=Ne(s);if(l.before(s),s===c)return;s=i}}function N(e,r,u){r===null?e.effect.first=u:r.next=u,u===null?e.effect.last=r:u.prev=r}export{Oe as e,Me as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var Zt=t=>{throw TypeError(t)};var Ne=(t,e,n)=>e.has(t)||Zt("Cannot "+n);var v=(t,e,n)=>(Ne(t,e,"read from private field"),n?n.call(t):e.get(t)),A=(t,e,n)=>e.has(t)?Zt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{bh as P,o as T,t as I,T as gt,br as qe}from"./BUngiKFg.js";import{w as qt}from"./LQVMBmDN.js";import{b as De,H as Dt,S as Vt,R as Bt}from"./BUApaBEI.js";import{o as te}from"./C1kQ4pHy.js";new URL("sveltekit-internal://");function Ve(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function Be(t){return t.split("%25").map(decodeURI).join("%25")}function Ke(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function At({href:t}){return t.split("#")[0]}function Fe(t,e,n,a=!1){const r=new URL(t);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return(c,...p)=>(n(c),i[o](c,...p));e();const l=Reflect.get(i,o);return typeof l=="function"?l.bind(i):l}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];a&&s.push("hash");for(const i of s)Object.defineProperty(r,i,{get(){return e(),t[i]},enumerable:!0,configurable:!0});return r}function Ge(...t){let e=5381;for(const n of t)if(typeof n=="string"){let a=n.length;for(;a;)e=e*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)e=e*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}const He=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&z.delete(Kt(t)),He(t,e));const z=new Map;function Me(t,e){const n=Kt(t,e),a=document.querySelector(n);if(a!=null&&a.textContent){a.remove();let{body:r,...s}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&z.set(n,{body:r,init:s,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=De(r)),Promise.resolve(new Response(r,s))}return window.fetch(t,e)}function We(t,e,n){if(z.size>0){const a=Kt(t,n),r=z.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(r.body,r.init);z.delete(a)}}return window.fetch(e,n)}function Kt(t,e){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e!=null&&e.headers||e!=null&&e.body){const r=[];e.headers&&r.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&r.push(e.body),a+=`[data-hash="${Ge(...r)}"]`}return a}const Ye=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function ze(t){const e=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${Xe(t).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return e.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return Pt(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return Pt(String.fromCharCode(...l.slice(2).split("-").map(f=>parseInt(f,16))));const p=Ye.exec(l),[,h,_,g,d]=p;return e.push({name:g,matcher:d,optional:!!h,rest:!!_,chained:_?c===1&&i[0]==="":!1}),_?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return Pt(l)}).join("")}).join("")}/?$`),params:e}}function Je(t){return t!==""&&!/^\([^)]+\)$/.test(t)}function Xe(t){return t.slice(1).split("/").filter(Je)}function Qe(t,e,n){const a={},r=t.slice(1),s=r.filter(o=>o!==void 0);let i=0;for(let o=0;o<e.length;o+=1){const l=e[o];let c=r[o-i];if(l.chained&&l.rest&&i&&(c=r.slice(o-i,o+1).filter(p=>p).join("/"),i=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){a[l.name]=c;const p=e[o+1],h=r[o+1];p&&!p.rest&&p.optional&&h&&l.chained&&(i=0),!p&&!h&&Object.keys(a).length===s.length&&(i=0);continue}if(l.optional&&l.chained){i++;continue}return}if(!i)return a}function Pt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ze({nodes:t,server_loads:e,dictionary:n,matchers:a}){const r=new Set(e);return Object.entries(n).map(([o,[l,c,p]])=>{const{pattern:h,params:_}=ze(o),g={id:o,exec:d=>{const f=h.exec(d);if(f)return Qe(f,_,a)},errors:[1,...p||[]].map(d=>t[d]),layouts:[0,...c||[]].map(i),leaf:s(l)};return g.errors.length=g.layouts.length=Math.max(g.errors.length,g.layouts.length),g});function s(o){const l=o<0;return l&&(o=~o),[l,t[o]]}function i(o){return o===void 0?o:[r.has(o),t[o]]}}function ge(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function ee(t,e,n=JSON.stringify){const a=n(e);try{sessionStorage[t]=a}catch{}}var fe;const U=((fe=globalThis.__sveltekit_xogq1g)==null?void 0:fe.base)??"";var ue;const tn=((ue=globalThis.__sveltekit_xogq1g)==null?void 0:ue.assets)??U??"",en="1775208694747",me="sveltekit:snapshot",_e="sveltekit:scroll",we="sveltekit:states",nn="sveltekit:pageurl",F="sveltekit:history",X="sveltekit:navigation",q={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Et=location.origin;function Ft(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function V(){return{x:pageXOffset,y:pageYOffset}}function K(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const ne={...q,"":q.hover};function ve(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function ye(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=ve(t)}}function Ot(t,e,n){let a;try{if(a=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";a.hash=`#${o}${a.hash}`}}catch{}const r=t instanceof SVGAElement?t.target.baseVal:t.target,s=!a||!!r||St(a,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(a==null?void 0:a.origin)===Et&&t.hasAttribute("download");return{url:a,external:s,target:r,download:i}}function mt(t){let e=null,n=null,a=null,r=null,s=null,i=null,o=t;for(;o&&o!==document.documentElement;)a===null&&(a=K(o,"preload-code")),r===null&&(r=K(o,"preload-data")),e===null&&(e=K(o,"keepfocus")),n===null&&(n=K(o,"noscroll")),s===null&&(s=K(o,"reload")),i===null&&(i=K(o,"replacestate")),o=ve(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:ne[a??"off"],preload_data:ne[r??"off"],keepfocus:l(e),noscroll:l(n),reload:l(s),replace_state:l(i)}}function re(t){const e=qt(t);let n=!0;function a(){n=!0,e.update(i=>i)}function r(i){n=!1,e.set(i)}function s(i){let o;return e.subscribe(l=>{(o===void 0||n&&l!==o)&&i(o=l)})}return{notify:a,set:r,subscribe:s}}const be={v:()=>{}};function rn(){const{set:t,subscribe:e}=qt(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${tn}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==en;return i&&(t(!0),be.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:e,check:a}}function St(t,e,n){return t.origin!==Et||!t.pathname.startsWith(e)?!0:n?t.pathname!==location.pathname:!1}function Cn(t){}const ke=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ke];const an=new Set([...ke]);[...an];function on(t){return t.filter(e=>e!=null)}function Gt(t){return t instanceof Dt||t instanceof Vt?t.status:500}function sn(t){return t instanceof Vt?t.text:"Internal Error"}let S,Q,Tt;const ln=te.toString().includes("$$")||/function \w+\(\) \{\}/.test(te.toString()),ae="a:";var rt,at,ot,it,st,lt,ct,ft,de,ut,he,dt,pe;ln?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ae)},Q={current:null},Tt={current:!1}):(S=new(de=class{constructor(){A(this,rt,P({}));A(this,at,P(null));A(this,ot,P(null));A(this,it,P({}));A(this,st,P({id:null}));A(this,lt,P({}));A(this,ct,P(-1));A(this,ft,P(new URL(ae)))}get data(){return T(v(this,rt))}set data(e){I(v(this,rt),e)}get form(){return T(v(this,at))}set form(e){I(v(this,at),e)}get error(){return T(v(this,ot))}set error(e){I(v(this,ot),e)}get params(){return T(v(this,it))}set params(e){I(v(this,it),e)}get route(){return T(v(this,st))}set route(e){I(v(this,st),e)}get state(){return T(v(this,lt))}set state(e){I(v(this,lt),e)}get status(){return T(v(this,ct))}set status(e){I(v(this,ct),e)}get url(){return T(v(this,ft))}set url(e){I(v(this,ft),e)}},rt=new WeakMap,at=new WeakMap,ot=new WeakMap,it=new WeakMap,st=new WeakMap,lt=new WeakMap,ct=new WeakMap,ft=new WeakMap,de),Q=new(he=class{constructor(){A(this,ut,P(null))}get current(){return T(v(this,ut))}set current(e){I(v(this,ut),e)}},ut=new WeakMap,he),Tt=new(pe=class{constructor(){A(this,dt,P(!1))}get current(){return T(v(this,dt))}set current(e){I(v(this,dt),e)}},dt=new WeakMap,pe),be.v=()=>Tt.current=!0);function cn(t){Object.assign(S,t)}const oe={spanContext(){return fn},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},fn={traceId:"",spanId:"",traceFlags:0},un=new Set(["icon","shortcut icon","apple-touch-icon"]);let W=null;const j=ge(_e)??{},Z=ge(me)??{},$={url:re({}),page:re({}),navigating:qt(null),updated:rn()};function Ht(t){j[t]=V()}function dn(t,e){let n=t+1;for(;j[n];)delete j[n],n+=1;for(n=e+1;Z[n];)delete Z[n],n+=1}function tt(t,e=!1){return e?location.replace(t.href):location.href=t.href,new Promise(()=>{})}async function Re(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(U||"/");t&&await t.update()}}function ie(){}let Mt,Ct,_t,O,$t,k;const wt=[],vt=[];let b=null;function jt(){var t;(t=b==null?void 0:b.fork)==null||t.then(e=>e==null?void 0:e.discard()),b=null}const pt=new Map,Ee=new Set,hn=new Set,J=new Set;let w={branch:[],error:null,url:null},Se=!1,yt=!1,se=!0,et=!1,Y=!1,xe=!1,Wt=!1,Le,R,L,D;const bt=new Set,le=new Map;async function qn(t,e,n){var s,i,o,l,c;(s=globalThis.__sveltekit_xogq1g)!=null&&s.data&&globalThis.__sveltekit_xogq1g.data,document.URL!==location.href&&(location.href=location.href),k=t,await((o=(i=t.hooks).init)==null?void 0:o.call(i)),Mt=Ze(t),O=document.documentElement,$t=e,Ct=t.nodes[0],_t=t.nodes[1],Ct(),_t(),R=(l=history.state)==null?void 0:l[F],L=(c=history.state)==null?void 0:c[X],R||(R=L=Date.now(),history.replaceState({...history.state,[F]:R,[X]:L},""));const a=j[R];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Sn($t,n)):(await G({type:"enter",url:Ft(k.hash?Un(new URL(location.href)):location.href),replace_state:!0}),r()),En()}function pn(){wt.length=0,Wt=!1}function Ue(t){vt.some(e=>e==null?void 0:e.snapshot)&&(Z[t]=vt.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Ae(t){var e;(e=Z[t])==null||e.forEach((n,a)=>{var r,s;(s=(r=vt[a])==null?void 0:r.snapshot)==null||s.restore(n)})}function ce(){Ht(R),ee(_e,j),Ue(L),ee(me,Z)}async function Pe(t,e,n,a){let r;e.invalidateAll&&jt(),await G({type:"goto",url:Ft(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:a,accept:()=>{e.invalidateAll&&(Wt=!0,r=[...le.keys()]),e.invalidate&&e.invalidate.forEach(Rn)}}),e.invalidateAll&>().then(gt).then(()=>{le.forEach(({resource:s},i)=>{var o;r!=null&&r.includes(i)&&((o=s.refresh)==null||o.call(s))})})}async function gn(t){if(t.id!==(b==null?void 0:b.id)){jt();const e={};bt.add(e),b={id:t.id,token:e,promise:Oe({...t,preload:e}).then(n=>(bt.delete(e),n.type==="loaded"&&n.state.error&&jt(),n)),fork:null}}return b.promise}async function It(t){var n;const e=(n=await xt(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].filter(Boolean).map(a=>a[1]()))}async function Te(t,e,n){var s;const a={params:w.params,route:{id:((s=w.route)==null?void 0:s.id)??null},url:new URL(location.href)};w={...t.state,nav:a};const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(S,t.props.page),Le=new k.root({target:e,props:{...t.props,stores:$,components:vt},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),Ae(L),n){const i={from:null,to:{...a,scroll:j[R]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};J.forEach(o=>o(i))}yt=!0}async function kt({url:t,params:e,branch:n,errors:a,status:r,error:s,route:i,form:o}){let l="never";if(U&&(t.pathname===U||t.pathname===U+"/"))l="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(l=d.slash);t.pathname=Ve(t.pathname,l),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:s,route:i},props:{constructors:on(n).map(d=>d.node.component),page:Qt(S)}};o!==void 0&&(c.props.form=o);let p={},h=!S,_=0;for(let d=0;d<Math.max(n.length,w.branch.length);d+=1){const f=n[d],u=w.branch[d];(f==null?void 0:f.data)!==(u==null?void 0:u.data)&&(h=!0),f&&(p={...p,...f.data},h&&(c.props[`data_${_}`]=p),_+=1)}return(!w.url||t.href!==w.url.href||w.error!==s||o!==void 0&&o!==S.form||h)&&(c.props.page={error:s,params:e,route:{id:(i==null?void 0:i.id)??null},state:{},status:r,url:new URL(t),form:o??null,data:h?p:S.data}),c}async function Yt({loader:t,parent:e,url:n,params:a,route:r,server_data_node:s}){var p,h,_;let i=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await t();if((p=c.universal)!=null&&p.load){let g=function(...f){for(const u of f){const{href:m}=new URL(u,n);l.dependencies.add(m)}};const d={tracing:{enabled:!1,root:oe,current:oe},route:new Proxy(r,{get:(f,u)=>(o&&(l.route=!0),f[u])}),params:new Proxy(a,{get:(f,u)=>(o&&l.params.add(u),f[u])}),data:(s==null?void 0:s.data)??null,url:Fe(n,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},k.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f==null?void 0:f.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:m,promise:y}=Ie(f,u,n);return o&&g(m.href),y},setHeaders:()=>{},depends:g,parent(){return o&&(l.parent=!0),e()},untrack(f){o=!1;try{return f()}finally{o=!0}}};i=await c.universal.load.call(null,d)??null}return{node:c,loader:t,server:s,universal:(h=c.universal)!=null&&h.load?{type:"data",data:i,uses:l}:null,data:i??(s==null?void 0:s.data)??null,slash:((_=c.universal)==null?void 0:_.trailingSlash)??(s==null?void 0:s.slash)}}function Ie(t,e,n){let a=t instanceof Request?t.url:t;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const s=yt?We(a,r.href,e):Me(a,e);return{resolved:r,promise:s}}function mn(t,e,n,a,r,s){if(Wt)return!0;if(!r)return!1;if(r.parent&&t||r.route&&e||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(s[i]!==w.params[i])return!0;for(const i of r.dependencies)if(wt.some(o=>o(new URL(i))))return!0;return!1}function zt(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function _n(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const a of n){const r=t.searchParams.getAll(a),s=e.searchParams.getAll(a);r.every(i=>s.includes(i))&&s.every(i=>r.includes(i))&&n.delete(a)}return n}function wn({error:t,url:e,route:n,params:a}){return{type:"loaded",state:{error:t,url:e,route:n,params:a,branch:[]},props:{page:Qt(S),constructors:[]}}}async function Oe({id:t,invalidating:e,url:n,params:a,route:r,preload:s}){if((b==null?void 0:b.id)===t)return bt.delete(b.token),b.promise;const{errors:i,layouts:o,leaf:l}=r,c=[...o,l];i.forEach(u=>u==null?void 0:u().catch(()=>{})),c.forEach(u=>u==null?void 0:u[1]().catch(()=>{}));const p=w.url?t!==Rt(w.url):!1,h=w.route?r.id!==w.route.id:!1,_=_n(w.url,n);let g=!1;const d=c.map(async(u,m)=>{var C;if(!u)return;const y=w.branch[m];return u[1]===(y==null?void 0:y.loader)&&!mn(g,h,p,_,(C=y.universal)==null?void 0:C.uses,a)?y:(g=!0,Yt({loader:u[1],url:n,params:a,route:r,parent:async()=>{var ht;const N={};for(let B=0;B<m;B+=1)Object.assign(N,(ht=await d[B])==null?void 0:ht.data);return N},server_data_node:zt(u[0]?{type:"skip"}:null,u[0]?y==null?void 0:y.server:void 0)}))});for(const u of d)u.catch(()=>{});const f=[];for(let u=0;u<c.length;u+=1)if(c[u])try{f.push(await d[u])}catch(m){if(m instanceof Bt)return{type:"redirect",location:m.location};if(bt.has(s))return wn({error:await nt(m,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let y=Gt(m),x;if(m instanceof Dt)x=m.body;else{if(await $.updated.check())return await Re(),await tt(n);x=await nt(m,{params:a,url:n,route:{id:r.id}})}const C=await vn(u,f,i);return C?kt({url:n,params:a,branch:f.slice(0,C.idx).concat(C.node),errors:i,status:y,error:x,route:r}):await $e(n,{id:r.id},x,y)}else f.push(void 0);return kt({url:n,params:a,branch:f,errors:i,status:200,error:null,route:r,form:e?void 0:null})}async function vn(t,e,n){for(;t--;)if(n[t]){let a=t;for(;!e[a];)a-=1;try{return{idx:a+1,node:{node:await n[t](),loader:n[t],data:{},server:null,universal:null}}}catch{continue}}}async function Jt({status:t,error:e,url:n,route:a}){const r={};let s=null;try{const i=await Yt({loader:Ct,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:zt(s)}),o={node:await _t(),loader:_t,universal:null,server:null,data:null};return kt({url:n,params:r,branch:[i,o],status:t,error:e,errors:[],route:null})}catch(i){if(i instanceof Bt)return Pe(new URL(i.location,location.href),{},0);throw i}}async function yn(t){const e=t.href;if(pt.has(e))return pt.get(e);let n;try{const a=(async()=>{let r=await k.hooks.reroute({url:new URL(t),fetch:async(s,i)=>Ie(s,i,t).promise})??t;if(typeof r=="string"){const s=new URL(t);k.hash?s.hash=r:s.pathname=r,r=s}return r})();pt.set(e,a),n=await a}catch{pt.delete(e);return}return n}async function xt(t,e){if(t&&!St(t,U,k.hash)){const n=await yn(t);if(!n)return;const a=bn(n);for(const r of Mt){const s=r.exec(a);if(s)return{id:Rt(t),invalidating:e,route:r,params:Ke(s),url:t}}}}function bn(t){return Be(k.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(U.length))||"/"}function Rt(t){return(k.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function Ce({url:t,type:e,intent:n,delta:a,event:r,scroll:s}){let i=!1;const o=Xt(w,n,t,e,s??null);a!==void 0&&(o.navigation.delta=a),r!==void 0&&(o.navigation.event=r);const l={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return et||Ee.forEach(c=>c(l)),i?null:o}async function G({type:t,url:e,popped:n,keepfocus:a,noscroll:r,replace_state:s,state:i={},redirect_count:o=0,nav_token:l={},accept:c=ie,block:p=ie,event:h}){var B;const _=D;D=l;const g=await xt(e,!1),d=t==="enter"?Xt(w,g,e,t):Ce({url:e,type:t,delta:n==null?void 0:n.delta,intent:g,scroll:n==null?void 0:n.scroll,event:h});if(!d){p(),D===l&&(D=_);return}const f=R,u=L;c(),et=!0,yt&&d.navigation.type!=="enter"&&$.navigating.set(Q.current=d.navigation);let m=g&&await Oe(g);if(!m){if(St(e,U,k.hash))return await tt(e,s);m=await $e(e,{id:null},await nt(new Vt(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404,s)}if(e=(g==null?void 0:g.url)||e,D!==l)return d.reject(new Error("navigation aborted")),!1;if(m.type==="redirect"){if(o<20){await G({type:t,url:new URL(m.location,e),popped:n,keepfocus:a,noscroll:r,replace_state:s,state:i,redirect_count:o+1,nav_token:l}),d.fulfil(void 0);return}m=await Jt({status:500,error:await nt(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}})}else m.props.page.status>=400&&await $.updated.check()&&(await Re(),await tt(e,s));if(pn(),Ht(f),Ue(u),m.props.page.url.pathname!==e.pathname&&(e.pathname=m.props.page.url.pathname),i=n?n.state:i,!n){const E=s?0:1,H={[F]:R+=E,[X]:L+=E,[we]:i};(s?history.replaceState:history.pushState).call(history,H,"",e),s||dn(R,L)}const y=g&&(b==null?void 0:b.id)===g.id?b.fork:null;b=null,m.props.page.state=i;let x;if(yt){const E=(await Promise.all(Array.from(hn,M=>M(d.navigation)))).filter(M=>typeof M=="function");if(E.length>0){let M=function(){E.forEach(Ut=>{J.delete(Ut)})};E.push(M),E.forEach(Ut=>{J.add(Ut)})}const H=d.navigation.to;w={...m.state,nav:{params:H.params,route:H.route,url:H.url}},m.props.page&&(m.props.page.url=e);const Lt=y&&await y;Lt?x=Lt.commit():(W=null,Le.$set(m.props),W&&Object.assign(m.props.page,W),cn(m.props.page),x=(B=qe)==null?void 0:B()),xe=!0}else await Te(m,$t,!1);const{activeElement:C}=document;await x,await gt(),await gt();let N=null;if(se){const E=n?n.scroll:r?V():null;E?scrollTo(E.x,E.y):(N=e.hash&&document.getElementById(je(e)))?N.scrollIntoView():scrollTo(0,0)}const ht=document.activeElement!==C&&document.activeElement!==document.body;!a&&!ht&&Ln(e,!N),se=!0,m.props.page&&(W&&Object.assign(m.props.page,W),Object.assign(S,m.props.page)),et=!1,t==="popstate"&&Ae(L),d.fulfil(void 0),d.navigation.to&&(d.navigation.to.scroll=V()),J.forEach(E=>E(d.navigation)),$.navigating.set(Q.current=null)}async function $e(t,e,n,a,r){return t.origin===Et&&t.pathname===location.pathname&&!Se?await Jt({status:a,error:n,url:t,route:e}):await tt(t,r)}function kn(){let t,e={element:void 0,href:void 0},n;O.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(t),t=setTimeout(()=>{s(l,q.hover)},20)});function a(o){o.defaultPrevented||s(o.composedPath()[0],q.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(It(new URL(l.target.href)),r.unobserve(l.target))},{threshold:0});async function s(o,l){const c=ye(o,O),p=c===e.element&&(c==null?void 0:c.href)===e.href&&l>=n;if(!c||p)return;const{url:h,external:_,download:g}=Ot(c,U,k.hash);if(_||g)return;const d=mt(c),f=h&&Rt(w.url)===Rt(h);if(!(d.reload||f))if(l<=d.preload_data){e={element:c,href:c.href},n=q.tap;const u=await xt(h,!1);if(!u)return;gn(u)}else l<=d.preload_code&&(e={element:c,href:c.href},n=l,It(h))}function i(){r.disconnect();for(const o of O.querySelectorAll("a")){const{url:l,external:c,download:p}=Ot(o,U,k.hash);if(c||p)continue;const h=mt(o);h.reload||(h.preload_code===q.viewport&&r.observe(o),h.preload_code===q.eager&&It(l))}}J.add(i),i()}function nt(t,e){if(t instanceof Dt)return t.body;const n=Gt(t),a=sn(t);return k.hooks.handleError({error:t,event:e,status:n,message:a})??{message:a}}function Dn(t,e={}){return t=new URL(Ft(t)),t.origin!==Et?Promise.reject(new Error("goto: invalid URL")):Pe(t,e,0)}function Rn(t){if(typeof t=="function")wt.push(t);else{const{href:e}=new URL(t,location.href);wt.push(n=>n.href===e)}}function En(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let a=!1;if(ce(),!et){const r=Xt(w,void 0,null,"leave"),s={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Ee.forEach(i=>i(s))}a?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ce()}),(e=navigator.connection)!=null&&e.saveData||kn(),O.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const a=ye(n.composedPath()[0],O);if(!a)return;const{url:r,external:s,target:i,download:o}=Ot(a,U,k.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const l=mt(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[p,h]=(k.hash?r.hash.replace(/^#/,""):r.href).split("#"),_=p===At(location);if(s||l.reload&&(!_||!h)){Ce({url:r,type:"link",event:n})?et=!0:n.preventDefault();return}if(h!==void 0&&_){const[,g]=w.url.href.split("#");if(g===h){if(n.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const d=a.ownerDocument.getElementById(decodeURIComponent(h));d&&(d.scrollIntoView(),d.focus())}return}if(Y=!0,Ht(R),t(r),!l.replace_state)return;Y=!1}n.preventDefault(),await new Promise(g=>{requestAnimationFrame(()=>{setTimeout(g,0)}),setTimeout(g,100)}),await G({type:"link",url:r,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??r.href===location.href,event:n})}),O.addEventListener("submit",n=>{if(n.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(n.target),r=n.submitter;if(((r==null?void 0:r.formTarget)||a.target)==="_blank"||((r==null?void 0:r.formMethod)||a.method)!=="get")return;const o=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(St(o,U,!1))return;const l=n.target,c=mt(l);if(c.reload)return;n.preventDefault(),n.stopPropagation();const p=new FormData(l,r);o.search=new URLSearchParams(p).toString(),G({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:n})}),addEventListener("popstate",async n=>{var a;if(!Nt){if((a=n.state)!=null&&a[F]){const r=n.state[F];if(D={},r===R)return;const s=j[r],i=n.state[we]??{},o=new URL(n.state[nn]??location.href),l=n.state[X],c=w.url?At(location)===At(w.url):!1;if(l===L&&(xe||c)){i!==S.state&&(S.state=i),t(o),j[R]=V(),s&&scrollTo(s.x,s.y),R=r;return}const h=r-R;await G({type:"popstate",url:o,popped:{state:i,scroll:s,delta:h},accept:()=>{R=r,L=l},block:()=>{history.go(-h)},nav_token:D,event:n})}else if(!Y){const r=new URL(location.href);t(r),k.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Y&&(Y=!1,history.replaceState({...history.state,[F]:++R,[X]:L},"",location.href))});for(const n of document.querySelectorAll("link"))un.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&$.navigating.set(Q.current=null)});function t(n){w.url=S.url=n,$.page.set(Qt(S)),$.page.notify()}}async function Sn(t,{status:e=200,error:n,node_ids:a,params:r,route:s,server_route:i,data:o,form:l}){Se=!0;const c=new URL(location.href);let p;({params:r={},route:s={id:null}}=await xt(c,!1)||{}),p=Mt.find(({id:g})=>g===s.id);let h,_=!0;try{const g=a.map(async(f,u)=>{const m=o[u];return m!=null&&m.uses&&(m.uses=xn(m.uses)),Yt({loader:k.nodes[f],url:c,params:r,route:s,parent:async()=>{const y={};for(let x=0;x<u;x+=1)Object.assign(y,(await g[x]).data);return y},server_data_node:zt(m)})}),d=await Promise.all(g);if(p){const f=p.layouts;for(let u=0;u<f.length;u++)f[u]||d.splice(u,0,void 0)}h=await kt({url:c,params:r,branch:d,status:e,error:n,errors:p==null?void 0:p.errors,form:l,route:p??null})}catch(g){if(g instanceof Bt){await tt(new URL(g.location,location.href));return}h=await Jt({status:Gt(g),error:await nt(g,{url:c,params:r,route:s}),url:c,route:s}),t.textContent="",_=!1}h.props.page&&(h.props.page.state={}),await Te(h,t,_)}function xn(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}let Nt=!1;function Ln(t,e=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=je(t);if(a&&document.getElementById(a)){const{x:s,y:i}=V();setTimeout(()=>{const o=history.state;Nt=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(o,"",t),e&&scrollTo(s,i),Nt=!1})}else{const s=document.body,i=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),i!==null?s.setAttribute("tabindex",i):s.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const s=[];for(let i=0;i<r.rangeCount;i+=1)s.push(r.getRangeAt(i));setTimeout(()=>{if(r.rangeCount===s.length){for(let i=0;i<r.rangeCount;i+=1){const o=s[i],l=r.getRangeAt(i);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}r.removeAllRanges()}})}}}function Xt(t,e,n,a,r=null){var c,p;let s,i;const o=new Promise((h,_)=>{s=h,i=_});return o.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url,scroll:V()},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((p=e==null?void 0:e.route)==null?void 0:p.id)??null},url:n,scroll:r},willUnload:!e,type:a,complete:o},fulfil:s,reject:i}}function Qt(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function Un(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function je(t){let e;if(k.hash){const[,,n]=t.hash.split("#",3);e=n??""}else e=t.hash.slice(1);return decodeURIComponent(e)}export{qn as a,Dn as g,Cn as l,S as p,$ as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{N as o,u as a,aF as d}from"./BUngiKFg.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 +0,0 @@
|
|
|
1
|
-
import{b as c,h as o,a as l,E as b,r as p,s as v,c as g,e as f,f as m}from"./BUngiKFg.js";import{B as y}from"./CAtemnMo.js";function k(h,_,d=!1){var n;o&&(n=m,l());var s=new y(h),u=d?b:0;function t(a,r){if(o){var e=p(n);if(a!==parseInt(e.substring(1))){var i=v();g(i),s.anchor=i,f(!1),s.ensure(a,r),f(!0);return}}s.ensure(a,r)}c(()=>{var a=!1;_((r,e=0)=>{a=!0,t(e,r)}),a||t(-1,null)},u)}export{k as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Q as k,R as f,T as m,u as t,j as _,h as b}from"./BUngiKFg.js";function i(e,a,v=a){var c=new WeakSet;k(e,"input",async r=>{var l=r?e.defaultValue:e.value;if(l=s(e)?u(l):l,v(l),f!==null&&c.add(f),await m(),l!==(l=a())){var h=e.selectionStart,d=e.selectionEnd,n=e.value.length;if(e.value=l??"",d!==null){var o=e.value.length;h===d&&d===n&&o>n?(e.selectionStart=o,e.selectionEnd=o):(e.selectionStart=h,e.selectionEnd=Math.min(d,o))}}}),(b&&e.defaultValue!==e.value||t(a)==null&&e.value)&&(v(s(e)?u(e.value):e.value),f!==null&&c.add(f)),_(()=>{var r=a();if(e===document.activeElement){var l=f;if(c.has(l))return}s(e)&&r===u(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function E(e,a,v=a){k(e,"change",c=>{var r=c?e.defaultChecked:e.checked;v(r)}),(b&&e.defaultChecked!==e.checked||t(a)==null)&&v(e.checked),_(()=>{var c=a();e.checked=!!c})}function s(e){var a=e.type;return a==="number"||a==="range"}function u(e){return e===""?null:+e}export{E as a,i as b};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var Nn=Object.defineProperty;var kn=Object.getPrototypeOf;var Pn=Reflect.get;var Ve=n=>{throw TypeError(n)};var Fn=(n,t,e)=>t in n?Nn(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var y=(n,t,e)=>Fn(n,typeof t!="symbol"?t+"":t,e),me=(n,t,e)=>t.has(n)||Ve("Cannot "+e);var s=(n,t,e)=>(me(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Ve("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),d=(n,t,e,r)=>(me(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),v=(n,t,e)=>(me(n,t,"access private method"),e);var Ue=(n,t,e)=>Pn(kn(n),e,t);import{a as ve}from"./DI-t-G_K.js";import{b9 as Dn,b as Ln,E as Mn,o as T,bh as st,q as _n,t as O,az as Pe,bl as We,m as Bn,aK as Et,bm as Vn,bn as je,bo as Un,al as Wn,ak as be,u as ye,T as jn,aB as z,N as vt,as as gt,bp as Gn,at as yt,bq as Kn}from"./BUngiKFg.js";import{c as q,a as H}from"./D1Gs8-g3.js";import{c as zn,m as qn,u as Hn}from"./CjQQ9_Q2.js";import{i as Xn}from"./Qw0Qgx6J.js";import{k as Yn}from"./tpTQfoNn.js";import{p as A}from"./BxHqDcpw.js";import{o as N}from"./DWJZOHke.js";import{B as Zn}from"./CAtemnMo.js";function Jn(){return Symbol(Dn)}function wt(n,t,...e){var r=new Zn(n);Ln(()=>{const i=t()??null;r.ensure(i,i&&(a=>i(a,...e)))},Mn)}function Qn(n){return typeof n=="function"}function Vt(n){return n!==null&&typeof n=="object"}const $n=["string","number","bigint","boolean"];function we(n){return n==null||$n.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>we(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const Xt=Symbol("box"),tn=Symbol("is-writable");function g(n,t){const e=Pe(n);return t?{[Xt]:!0,[tn]:!0,get current(){return T(e)},set current(r){t(r)}}:{[Xt]:!0,get current(){return n()}}}function en(n){return Vt(n)&&Xt in n}function Wi(n){return en(n)?n:Qn(n)?g(n):nn(n)}function nn(n){let t=st(_n(n));return{[Xt]:!0,[tn]:!0,get current(){return T(t)},set current(e){O(t,e,!0)}}}function rn(...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 Ge=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tr=/\n/g,er=/^\s*/,nr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,rr=/^:\s*/,ir=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,sr=/^[;\s]*/,or=/^\s+|\s+$/g,ar=`
|
|
2
|
-
`,Ke="/",ze="*",Z="",ur="comment",cr="declaration";function lr(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 h=m.match(tr);h&&(e+=h.length);var k=m.lastIndexOf(ar);r=~k?m.length-k:r+m.length}function a(){var m={line:e,column:r};return function(h){return h.position=new o(m),l(),h}}function o(m){this.start=m,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function u(m){var h=new Error(t.source+":"+e+":"+r+": "+m);if(h.reason=m,h.filename=t.source,h.line=e,h.column=r,h.source=n,!t.silent)throw h}function f(m){var h=m.exec(n);if(h){var k=h[0];return i(k),n=n.slice(k.length),h}}function l(){f(er)}function b(m){var h;for(m=m||[];h=p();)h!==!1&&m.push(h);return m}function p(){var m=a();if(!(Ke!=n.charAt(0)||ze!=n.charAt(1))){for(var h=2;Z!=n.charAt(h)&&(ze!=n.charAt(h)||Ke!=n.charAt(h+1));)++h;if(h+=2,Z===n.charAt(h-1))return u("End of comment missing");var k=n.slice(2,h-2);return r+=2,i(k),n=n.slice(h),r+=2,m({type:ur,comment:k})}}function E(){var m=a(),h=f(nr);if(h){if(p(),!f(rr))return u("property missing ':'");var k=f(ir),Rn=m({type:cr,property:qe(h[0].replace(Ge,Z)),value:k?qe(k[0].replace(Ge,Z)):Z});return f(sr),Rn}}function R(){var m=[];b(m);for(var h;h=E();)h!==!1&&(m.push(h),b(m));return m}return l(),R()}function qe(n){return n?n.replace(or,Z):Z}function fr(n,t){let e=null;if(!n||typeof n!="string")return e;const r=lr(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 dr=/\d/,hr=["-","_","/","."];function pr(n=""){if(!dr.test(n))return n!==n.toLowerCase()}function br(n){const t=[];let e="",r,i;for(const a of n){const o=hr.includes(a);if(o===!0){t.push(e),e="",r=void 0;continue}const u=pr(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 sn(n){return n?br(n).map(t=>vr(t)).join(""):""}function mr(n){return gr(sn(n||""))}function vr(n){return n?n[0].toUpperCase()+n.slice(1):""}function gr(n){return n?n[0].toLowerCase()+n.slice(1):""}function Wt(n){if(!n)return{};const t={};function e(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[sn(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[mr(r)]=i}return fr(n,e),t}function Ct(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function yr(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 wr=yr(/[A-Z]/,n=>`-${n.toLowerCase()}`);function Er(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=>`${wr(t)}: ${n[t]};`).join(`
|
|
3
|
-
`)}function Tr(n={}){return Er(n).replace(`
|
|
4
|
-
`," ")}const Sr=["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"],Ar=new Set(Sr);function Cr(n){return Ar.has(n)}function ji(...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&&Cr(i)){const l=a,b=o;t[i]=rn(l,b)}else if(u&&f)t[i]=Ct(a,o);else if(i==="class"){const l=we(a),b=we(o);l&&b?t[i]=ve(a,o):l?t[i]=ve(a):b&&(t[i]=ve(o))}else if(i==="style"){const l=typeof a=="object",b=typeof o=="object",p=typeof a=="string",E=typeof o=="string";if(l&&b)t[i]={...a,...o};else if(l&&E){const R=Wt(o);t[i]={...a,...R}}else if(p&&b){const R=Wt(a);t[i]={...R,...o}}else if(p&&E){const R=Wt(a),m=Wt(o);t[i]={...R,...m}}else l?t[i]=a:b?t[i]=o:p?t[i]=a:E&&(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=Tr(t.style).replaceAll(`
|
|
5
|
-
`," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const Ir=typeof window<"u"?window:void 0;function Or(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,D,M,te,P,At,Kt;const De=class De extends Map{constructor(e){super();c(this,P);c(this,F,new Map);c(this,D,st(0));c(this,M,st(0));c(this,te,We||-1);if(e){for(var[r,i]of e)super.set(r,i);s(this,M).v=super.size}}has(e){var r=s(this,F),i=r.get(e);if(i===void 0)if(super.has(e))i=v(this,P,At).call(this,0),r.set(e,i);else return T(s(this,D)),!1;return T(i),!0}forEach(e,r){v(this,P,Kt).call(this),super.forEach(e,r)}get(e){var r=s(this,F),i=r.get(e);if(i===void 0)if(super.has(e))i=v(this,P,At).call(this,0),r.set(e,i);else{T(s(this,D));return}return T(i),super.get(e)}set(e,r){var p;var i=s(this,F),a=i.get(e),o=super.get(e),u=super.set(e,r),f=s(this,D);if(a===void 0)a=v(this,P,At).call(this,0),i.set(e,a),O(s(this,M),super.size),Et(f);else if(o!==r){Et(a);var l=f.reactions===null?null:new Set(f.reactions),b=l===null||!((p=a.reactions)!=null&&p.every(E=>l.has(E)));b&&Et(f)}return u}delete(e){var r=s(this,F),i=r.get(e),a=super.delete(e);return i!==void 0&&(r.delete(e),O(i,-1)),a&&(O(s(this,M),super.size),Et(s(this,D))),a}clear(){if(super.size!==0){super.clear();var e=s(this,F);O(s(this,M),0);for(var r of e.values())O(r,-1);Et(s(this,D)),e.clear()}}keys(){return T(s(this,D)),super.keys()}values(){return v(this,P,Kt).call(this),super.values()}entries(){return v(this,P,Kt).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return T(s(this,M)),super.size}};F=new WeakMap,D=new WeakMap,M=new WeakMap,te=new WeakMap,P=new WeakSet,At=function(e){return We===s(this,te)?st(e):Bn(e)},Kt=function(){T(s(this,D));var e=s(this,F);if(s(this,M).v!==e.size){for(var r of Ue(De.prototype,this,"keys").call(this))if(!e.has(r)){var i=v(this,P,At).call(this,0);e.set(r,i)}}for([,i]of s(this,F))T(i)};let Ee=De;var at,It;class xr{constructor(t={}){c(this,at);c(this,It);const{window:e=Ir,document:r=e==null?void 0:e.document}=t;e!==void 0&&(d(this,at,r),d(this,It,zn(i=>{const a=N(e,"focusin",i),o=N(e,"focusout",i);return()=>{a(),o()}})))}get current(){var t;return(t=s(this,It))==null||t.call(this),s(this,at)?Or(s(this,at)):null}}at=new WeakMap,It=new WeakMap;new xr;var Ot,_;class Rr{constructor(t){c(this,Ot);c(this,_);d(this,Ot,t),d(this,_,Symbol(t))}get key(){return s(this,_)}exists(){return Vn(s(this,_))}get(){const t=je(s(this,_));if(t===void 0)throw new Error(`Context "${s(this,Ot)}" not found`);return t}getOr(t){const e=je(s(this,_));return e===void 0?t:e}set(t){return Un(s(this,_),t)}}Ot=new WeakMap,_=new WeakMap;function Nr(n,t){switch(n){case"post":be(t);break;case"pre":Wn(t);break}}function on(n,t,e,r={}){const{lazy:i=!1}=r;let a=!i,o=Array.isArray(n)?[]:void 0;Nr(t,()=>{const u=Array.isArray(n)?n.map(l=>l()):n();if(!a){a=!0,o=u;return}const f=ye(()=>e(u,o));return o=u,f})}function X(n,t,e){on(n,"post",t,e)}function kr(n,t,e){on(n,"pre",t,e)}X.pre=kr;function Ut(n){be(()=>()=>{n()})}function Pr(n,t){return setTimeout(t,n)}function Fe(n){jn().then(n)}const Fr=1,Dr=9,Lr=11;function Te(n){return Vt(n)&&n.nodeType===Fr&&typeof n.nodeName=="string"}function an(n){return Vt(n)&&n.nodeType===Dr}function Mr(n){var t;return Vt(n)&&((t=n.constructor)==null?void 0:t.name)==="VisualViewport"}function _r(n){return Vt(n)&&n.nodeType!==void 0}function un(n){return _r(n)&&n.nodeType===Lr&&"host"in n}function Br(n,t){var r;if(!n||!t||!Te(n)||!Te(t))return!1;const e=(r=t.getRootNode)==null?void 0:r.call(t);if(n===t||n.contains(t))return!0;if(e&&un(e)){let i=t;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function Vr(n){return an(n)?n:Mr(n)?n.document:(n==null?void 0:n.ownerDocument)??document}function Ur(n){var t;return un(n)?Ur(n.host):an(n)?n.defaultView??window:Te(n)?((t=n.ownerDocument)==null?void 0:t.defaultView)??window:window}function Wr(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var xt;class cn{constructor(t){y(this,"element");c(this,xt,Pe(()=>this.element.current?this.element.current.getRootNode()??document:document));y(this,"getDocument",()=>Vr(this.root));y(this,"getWindow",()=>this.getDocument().defaultView??window);y(this,"getActiveElement",()=>Wr(this.root));y(this,"isActiveElement",t=>t===this.getActiveElement());y(this,"querySelector",t=>this.root?this.root.querySelector(t):null);y(this,"querySelectorAll",t=>this.root?this.root.querySelectorAll(t):[]);y(this,"setTimeout",(t,e)=>this.getWindow().setTimeout(t,e));y(this,"clearTimeout",t=>this.getWindow().clearTimeout(t));typeof t=="function"?this.element=g(t):this.element=t}get root(){return T(s(this,xt))}set root(t){O(s(this,xt),t)}getElementById(t){return this.root.getElementById(t)}}xt=new WeakMap;function Gi(n,t){return{[Jn()]:e=>en(n)?(n.current=e,ye(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n.current=null,t==null||t(null))}):(n(e),ye(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n(null),t==null||t(null))})}}function Ki(n){return n?"true":"false"}function zi(n){return n?"":void 0}function qi(n){return n?!0:void 0}function Hi(n){return n?"open":"closed"}var ut,Rt;class jr{constructor(t){c(this,ut);c(this,Rt);y(this,"attrs");d(this,ut,t.getVariant?t.getVariant():null),d(this,Rt,s(this,ut)?`data-${s(this,ut)}-`:`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,Rt)}${t}`}selector(t,e){return`[${this.getAttr(t,e)}]`}}ut=new WeakMap,Rt=new WeakMap;function Gr(n){const t=new jr(n);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const Xi="ArrowDown",Yi="ArrowUp",Zi="End",Ji="Enter",Kr="Escape",Qi="Home",$i="PageDown",ts="PageUp",es=" ",ns="Tab",ln=typeof document<"u",He=zr();function zr(){var n,t;return ln&&((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 Xe(n){return n instanceof HTMLElement}function rs(n){return n instanceof Element}function qr(n){return n instanceof Element||n instanceof SVGElement}function is(n){return n.pointerType==="touch"}function ss(n){return n!==null}var ct,J,U,Se,zt;class Hr{constructor(t){c(this,U);c(this,ct);c(this,J,null);d(this,ct,t),Ut(()=>v(this,U,Se).call(this))}run(t){v(this,U,Se).call(this);const e=s(this,ct).ref.current;if(e){if(typeof e.getAnimations!="function"){v(this,U,zt).call(this,t);return}d(this,J,window.requestAnimationFrame(()=>{const r=e.getAnimations();if(r.length===0){v(this,U,zt).call(this,t);return}Promise.allSettled(r.map(i=>i.finished)).then(()=>{v(this,U,zt).call(this,t)})}))}}}ct=new WeakMap,J=new WeakMap,U=new WeakSet,Se=function(){s(this,J)&&(window.cancelAnimationFrame(s(this,J)),d(this,J,null))},zt=function(t){const e=()=>{t()};s(this,ct).afterTick?Fe(e):e()};var L,Nt,kt,Q;class os{constructor(t){c(this,L);c(this,Nt);c(this,kt);c(this,Q,st(!1));d(this,L,t),O(s(this,Q),t.open.current,!0),d(this,Nt,t.enabled??!0),d(this,kt,new Hr({ref:s(this,L).ref,afterTick:s(this,L).open})),X(()=>s(this,L).open.current,e=>{e&&O(s(this,Q),!0),s(this,Nt)&&s(this,kt).run(()=>{var r,i;e===s(this,L).open.current&&(s(this,L).open.current||O(s(this,Q),!1),(i=(r=s(this,L)).onComplete)==null||i.call(r))})})}get shouldRender(){return T(s(this,Q))}}L=new WeakMap,Nt=new WeakMap,kt=new WeakMap,Q=new WeakMap;function x(){}function as(n,t){return`bits-${n}`}function Xr(n,t){var e=q(),r=z(e);Yn(r,()=>t.children,i=>{var a=q(),o=z(a);wt(o,()=>t.children??vt),H(i,a)}),H(n,e)}const Yr=new Rr("BitsConfig");function Zr(){const n=new Jr(null,{});return Yr.getOr(n).opts}class Jr{constructor(t,e){y(this,"opts");const r=Qr(t,e);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function Qr(n,t){return e=>g(()=>{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 $r(n,t){return e=>{const r=Zr();return g(()=>{const i=e();if(i!==void 0)return i;const a=n(r).current;return a!==void 0?a:t})}}const ti=$r(n=>n.defaultPortalTo,"body");function us(n,t){gt(t,!0);const e=ti(()=>t.to),r=Gn();let i=Pe(a);function a(){if(!ln||t.disabled)return null;let p=null;return typeof e.current=="string"?p=document.querySelector(e.current):p=e.current,p}let o;function u(){o&&(Hn(o),o=null)}X([()=>T(i),()=>t.disabled],([p,E])=>{if(!p||E){u();return}return o=qn(Xr,{target:p,props:{children:t.children},context:r}),()=>{u()}});var f=q(),l=z(f);{var b=p=>{var E=q(),R=z(E);wt(R,()=>t.children??vt),H(p,E)};Xn(l,p=>{t.disabled&&p(b)})}H(n,f),yt()}function Ye(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 fn(n,t){return n===t||n.contains(t)}function dn(n){return(n==null?void 0:n.ownerDocument)??document}function ei(n,t){const{clientX:e,clientY:r}=n,i=t.getBoundingClientRect();return e<i.left||e>i.right||r<i.top||r>i.bottom}/*!
|
|
6
|
-
* tabbable 6.4.0
|
|
7
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
8
|
-
*/var hn=["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] *)"],Yt=hn.join(","),pn=typeof Element>"u",ot=pn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Zt=!pn&&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},Jt=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]"):Jt(t.parentNode));return o},ni=function(t){var e,r=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return r===""||r==="true"},bn=function(t,e,r){if(Jt(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Yt));return e&&ot.call(t,Yt)&&i.unshift(t),i=i.filter(r),i},Qt=function(t,e,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!Jt(o,!1))if(o.tagName==="SLOT"){var u=o.assignedElements(),f=u.length?u:o.children,l=Qt(f,!0,r);r.flatten?i.push.apply(i,l):i.push({scopeParent:o,candidates:l})}else{var b=ot.call(o,Yt);b&&r.filter(o)&&(e||!t.includes(o))&&i.push(o);var p=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),E=!Jt(p,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(p&&E){var R=Qt(p===!0?o.children:p.children,!0,r);r.flatten?i.push.apply(i,R):i.push({scopeParent:o,candidates:R})}else a.unshift.apply(a,o.children)}}return i},mn=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},vn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||ni(t))&&!mn(t)?0:t.tabIndex},ri=function(t,e){var r=vn(t);return r<0&&e&&!mn(t)?0:r},ii=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},gn=function(t){return t.tagName==="INPUT"},si=function(t){return gn(t)&&t.type==="hidden"},oi=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return e},ai=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||Zt(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=ai(i,t.form);return!a||a===t},ci=function(t){return gn(t)&&t.type==="radio"},li=function(t){return ci(t)&&!ui(t)},fi=function(t){var e,r=t&&Zt(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,p;r=Zt(i),i=(l=r)===null||l===void 0?void 0:l.host,a=!!((b=i)!==null&&b!==void 0&&(p=b.ownerDocument)!==null&&p!==void 0&&p.contains(i))}}return a},Ze=function(t){var e=t.getBoundingClientRect(),r=e.width,i=e.height;return r===0&&i===0},di=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=ot.call(t,"details>summary:first-of-type"),u=o?t.parentElement:t;if(ot.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=Zt(t);if(l&&!l.shadowRoot&&i(l)===!0)return Ze(t);t.assignedSlot?t=t.assignedSlot:!l&&b!==t.ownerDocument?t=b.host:t=l}t=f}if(fi(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Ze(t);return!1},hi=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 ot.call(e,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}e=e.parentElement}return!1},$t=function(t,e){return!(e.disabled||si(e)||di(e,t)||oi(e)||hi(e))},Ae=function(t,e){return!(li(e)||vn(e)<0||!$t(t,e))},pi=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},yn=function(t){var e=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,u=o?i.scopeParent:i,f=ri(u,o),l=o?yn(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(ii).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(e)},bi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=Qt([t],e.includeContainer,{filter:Ae.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:pi}):r=bn(t,e.includeContainer,Ae.bind(null,e)),yn(r)},mi=function(t,e){e=e||{};var r;return e.getShadowRoot?r=Qt([t],e.includeContainer,{filter:$t.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):r=bn(t,e.includeContainer,$t.bind(null,e)),r},cs=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return ot.call(t,Yt)===!1?!1:Ae(e,t)},vi=hn.concat("iframe:not([inert]):not([inert] *)").join(","),gi=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return ot.call(t,vi)===!1?!1:$t(e,t)};const yi="data-context-menu-trigger",wi="data-context-menu-content";Gr({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 lt,$,W,ft,dt,j,Pt,B,ee,mt,wn,ne,ht,re,ie,se,oe,Ft,En,ae,ue;const Le=class Le{constructor(t){c(this,mt);y(this,"opts");c(this,lt);c(this,$);c(this,W,{pointerdown:!1});c(this,ft,!1);c(this,dt,!1);c(this,j);c(this,Pt);c(this,B,x);c(this,ee,t=>{t.defaultPrevented||this.opts.ref.current&&Fe(()=>{var e,r;!this.opts.ref.current||s(this,oe).call(this,t.target)||t.target&&!s(this,dt)&&((r=(e=s(this,Pt)).current)==null||r.call(e,t))})});c(this,ne,t=>{let e=t;e.defaultPrevented&&(e=Je(t)),s(this,lt).current(t)});c(this,ht,Ye(t=>{if(!this.opts.ref.current){s(this,B).call(this);return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||Si(t,this.opts.ref.current);if(!s(this,ft)||v(this,mt,En).call(this)||!e){s(this,B).call(this);return}let r=t;if(r.defaultPrevented&&(r=Je(r)),s(this,$).current!=="close"&&s(this,$).current!=="defer-otherwise-close"){s(this,B).call(this);return}t.pointerType==="touch"?(s(this,B).call(this),d(this,B,N(s(this,j),"click",s(this,ne),{once:!0}))):s(this,lt).current(r)},10));c(this,re,t=>{s(this,W)[t.type]=!0});c(this,ie,t=>{s(this,W)[t.type]=!1});c(this,se,()=>{this.opts.ref.current&&d(this,ft,Ti(this.opts.ref.current))});c(this,oe,t=>this.opts.ref.current?fn(this.opts.ref.current,t):!1);c(this,Ft,Ye(()=>{for(const t in s(this,W))s(this,W)[t]=!1;d(this,ft,!1)},20));c(this,ae,()=>{d(this,dt,!0)});c(this,ue,()=>{d(this,dt,!1)});y(this,"props",{onfocuscapture:s(this,ae),onblurcapture:s(this,ue)});this.opts=t,d(this,$,t.interactOutsideBehavior),d(this,lt,t.onInteractOutside),d(this,Pt,t.onFocusOutside),be(()=>{d(this,j,dn(this.opts.ref.current))});let e=x;const r=()=>{s(this,Ft).call(this),globalThis.bitsDismissableLayers.delete(this),s(this,ht).destroy(),e()};X([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return Pr(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,s(this,$)),e(),e=v(this,mt,wn).call(this))}),r}),Ut(()=>{s(this,Ft).destroy(),globalThis.bitsDismissableLayers.delete(this),s(this,ht).destroy(),s(this,B).call(this),e()})}static create(t){return new Le(t)}};lt=new WeakMap,$=new WeakMap,W=new WeakMap,ft=new WeakMap,dt=new WeakMap,j=new WeakMap,Pt=new WeakMap,B=new WeakMap,ee=new WeakMap,mt=new WeakSet,wn=function(){return Ct(N(s(this,j),"pointerdown",Ct(s(this,re),s(this,se)),{capture:!0}),N(s(this,j),"pointerdown",Ct(s(this,ie),s(this,ht))),N(s(this,j),"focusin",s(this,ee)))},ne=new WeakMap,ht=new WeakMap,re=new WeakMap,ie=new WeakMap,se=new WeakMap,oe=new WeakMap,Ft=new WeakMap,En=function(){return Object.values(s(this,W)).some(Boolean)},ae=new WeakMap,ue=new WeakMap;let Ce=Le;function Ei(n=[...globalThis.bitsDismissableLayers]){return n.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function Ti(n){const t=[...globalThis.bitsDismissableLayers],e=Ei(t);if(e)return e[0].opts.ref.current===n;const[r]=t[0];return r.opts.ref.current===n}function Si(n,t){const e=n.target;if(!qr(e))return!1;const r=!!e.closest(`[${yi}]`);if("button"in n&&n.button>0&&!r)return!1;if("button"in n&&n.button===0&&r)return!0;const i=!!t.closest(`[${wi}]`);return r&&i?!1:dn(e).documentElement.contains(e)&&!fn(t,e)&&ei(n,t)}function Je(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 ls(n,t){gt(t,!0);let e=A(t,"interactOutsideBehavior",3,"close"),r=A(t,"onInteractOutside",3,x),i=A(t,"onFocusOutside",3,x),a=A(t,"isValidEvent",3,()=>!1);const o=Ce.create({id:g(()=>t.id),interactOutsideBehavior:g(()=>e()),onInteractOutside:g(()=>r()),enabled:g(()=>t.enabled),onFocusOutside:g(()=>i()),isValidEvent:g(()=>a()),ref:t.ref});var u=q(),f=z(u);wt(f,()=>t.children??vt,()=>({props:o.props})),H(n,u),yt()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var ce,le;const Me=class Me{constructor(t){y(this,"opts");y(this,"domContext");c(this,ce,()=>N(this.domContext.getDocument(),"keydown",s(this,le),{passive:!1}));c(this,le,t=>{if(t.key!==Kr||!Ai(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 cn(this.opts.ref);let e=x;X(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=s(this,ce).call(this)),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}static create(t){return new Me(t)}};ce=new WeakMap,le=new WeakMap;let Ie=Me;function Ai(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 fs(n,t){gt(t,!0);let e=A(t,"escapeKeydownBehavior",3,"close"),r=A(t,"onEscapeKeydown",3,x);Ie.create({escapeKeydownBehavior:g(()=>e()),onEscapeKeydown:g(()=>r()),enabled:g(()=>t.enabled),ref:t.ref});var i=q(),a=z(i);wt(a,()=>t.children??vt),H(n,i),yt()}var V,Dt,tt;const fe=class fe{constructor(){c(this,V,nn([]));c(this,Dt,new WeakMap);c(this,tt,new WeakMap)}static getInstance(){return this.instance||(this.instance=new fe),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const r=document.activeElement;r&&r!==document.body&&s(this,tt).set(t,r),s(this,V).current=s(this,V).current.filter(i=>i!==t),s(this,V).current.unshift(t)}unregister(t){s(this,V).current=s(this,V).current.filter(r=>r!==t);const e=this.getActive();e&&e.resume()}getActive(){return s(this,V).current[0]}setFocusMemory(t,e){s(this,Dt).set(t,e)}getFocusMemory(t){return s(this,Dt).get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){s(this,tt).set(t,e)}getPreFocusMemory(t){return s(this,tt).get(t)}clearPreFocusMemory(t){s(this,tt).delete(t)}};V=new WeakMap,Dt=new WeakMap,tt=new WeakMap,y(fe,"instance");let Oe=fe;var G,S,C,et,K,w,Tn,Sn,An,Cn,Re,qt,Ne;const _e=class _e{constructor(t){c(this,w);c(this,G,!1);c(this,S,null);c(this,C,Oe.getInstance());c(this,et,[]);c(this,K);d(this,K,t)}get paused(){return s(this,G)}pause(){d(this,G,!0)}resume(){d(this,G,!1)}mount(t){s(this,S)&&this.unmount(),d(this,S,t),s(this,C).register(this),v(this,w,Cn).call(this),v(this,w,Sn).call(this)}unmount(){s(this,S)&&(v(this,w,Tn).call(this),v(this,w,An).call(this),s(this,C).unregister(this),s(this,C).clearPreFocusMemory(this),d(this,S,null))}static use(t){let e=null;return X([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(e||(e=new _e(t)),e.mount(r)):e&&(e.unmount(),e=null)}),Ut(()=>{e==null||e.unmount()}),{get props(){return{tabindex:-1}}}}};G=new WeakMap,S=new WeakMap,C=new WeakMap,et=new WeakMap,K=new WeakMap,w=new WeakSet,Tn=function(){for(const t of s(this,et))t();d(this,et,[])},Sn=function(){if(!s(this,S))return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});s(this,K).onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!s(this,S))return;const e=v(this,w,qt).call(this);e?(e.focus(),s(this,C).setFocusMemory(this,e)):s(this,S).focus()})},An=function(){var e,r;const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((r=(e=s(this,K).onCloseAutoFocus).current)==null||r.call(e,t),!t.defaultPrevented){const i=s(this,C).getPreFocusMemory(this);if(i&&document.contains(i))try{i.focus()}catch{document.body.focus()}}},Cn=function(){if(!s(this,S)||!s(this,K).trap.current)return;const t=s(this,S),e=t.ownerDocument,r=o=>{if(s(this,G)||!s(this,C).isActiveScope(this))return;const u=o.target;if(!u)return;if(t.contains(u))s(this,C).setFocusMemory(this,u);else{const l=s(this,C).getFocusMemory(this);if(l&&t.contains(l)&&gi(l))o.preventDefault(),l.focus();else{const b=v(this,w,qt).call(this),p=v(this,w,Ne).call(this)[0];(b||p||t).focus()}}},i=o=>{if(!s(this,K).loop||s(this,G)||o.key!=="Tab"||!s(this,C).isActiveScope(this))return;const u=v(this,w,Re).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,et).push(N(e,"focusin",r,{capture:!0}),N(t,"keydown",i));const a=new MutationObserver(()=>{const o=s(this,C).getFocusMemory(this);if(o&&!t.contains(o)){const u=v(this,w,qt).call(this),f=v(this,w,Ne).call(this)[0],l=u||f;l?(l.focus(),s(this,C).setFocusMemory(this,l)):t.focus()}});a.observe(t,{childList:!0,subtree:!0}),s(this,et).push(()=>a.disconnect())},Re=function(){return s(this,S)?bi(s(this,S),{includeContainer:!1,getShadowRoot:!0}):[]},qt=function(){return v(this,w,Re).call(this)[0]||null},Ne=function(){return s(this,S)?mi(s(this,S),{includeContainer:!1,getShadowRoot:!0}):[]};let xe=_e;function ds(n,t){gt(t,!0);let e=A(t,"enabled",3,!1),r=A(t,"trapFocus",3,!1),i=A(t,"loop",3,!1),a=A(t,"onCloseAutoFocus",3,x),o=A(t,"onOpenAutoFocus",3,x);const u=xe.use({enabled:g(()=>e()),trap:g(()=>r()),loop:i(),onCloseAutoFocus:g(()=>a()),onOpenAutoFocus:g(()=>o()),ref:t.ref});var f=q(),l=z(f);wt(l,()=>t.focusScope??vt,()=>({props:u.props})),H(n,f),yt()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var pt,de,In,he,Lt;const Be=class Be{constructor(t){c(this,de);y(this,"opts");y(this,"domContext");c(this,pt,x);c(this,he,t=>{const e=this.opts.ref.current,r=t.target;!Xe(e)||!Xe(r)||!this.opts.enabled.current||!Ii(this)||!Br(e,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&d(this,pt,Ci(e,this.domContext.getDocument().body)))});c(this,Lt,()=>{s(this,pt).call(this),d(this,pt,x)});this.opts=t,this.domContext=new cn(t.ref);let e=x;X(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=v(this,de,In).call(this)),()=>{e(),s(this,Lt).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(t){return new Be(t)}};pt=new WeakMap,de=new WeakSet,In=function(){return Ct(N(this.domContext.getDocument(),"pointerdown",s(this,he)),N(this.domContext.getDocument(),"pointerup",rn(s(this,Lt),this.opts.onPointerUp.current)))},he=new WeakMap,Lt=new WeakMap;let ke=Be;const Qe=n=>n.style.userSelect||n.style.webkitUserSelect;function Ci(n,t){const e=Qe(t),r=Qe(n);return jt(t,"none"),jt(n,"text"),()=>{jt(t,e),jt(n,r)}}function jt(n,t){n.style.userSelect=t,n.style.webkitUserSelect=t}function Ii(n){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const e=t.at(-1);return e?e[0]===n:!1}function hs(n,t){gt(t,!0);let e=A(t,"preventOverflowTextSelection",3,!0),r=A(t,"onPointerDown",3,x),i=A(t,"onPointerUp",3,x);ke.create({id:g(()=>t.id),onPointerDown:g(()=>r()),onPointerUp:g(()=>i()),enabled:g(()=>t.enabled&&e()),ref:t.ref});var a=q(),o=z(a);wt(o,()=>t.children??vt),H(n,a),yt()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function Oi(n="bits"){return globalThis.bitsIdCounter.current++,`${n}-${globalThis.bitsIdCounter.current}`}var Mt,bt,nt,rt,pe,On;class xi{constructor(t){c(this,pe);c(this,Mt);c(this,bt,0);c(this,nt,st());c(this,rt);d(this,Mt,t)}get(...t){return d(this,bt,s(this,bt)+1),T(s(this,nt))===void 0&&d(this,rt,Kn(()=>{O(s(this,nt),s(this,Mt).call(this,...t),!0)})),be(()=>()=>{v(this,pe,On).call(this)}),T(s(this,nt))}}Mt=new WeakMap,bt=new WeakMap,nt=new WeakMap,rt=new WeakMap,pe=new WeakSet,On=function(){d(this,bt,s(this,bt)-1),s(this,rt)&&s(this,bt)<=0&&(s(this,rt).call(this),O(s(this,nt),void 0),d(this,rt,void 0))};const Ht=new Ee;let Gt=st(null),Y=null,Tt=null,St=!1;const $e=g(()=>{for(const n of Ht.values())if(n)return!0;return!1});let ge=null;const Ri=new xi(()=>{function n(){document.body.setAttribute("style",T(Gt)??""),document.body.style.removeProperty("--scrollbar-width"),He&&(Y==null||Y()),O(Gt,null)}function t(){Tt!==null&&(window.clearTimeout(Tt),Tt=null)}function e(i,a){t(),St=!0,ge=Date.now();const o=ge,u=()=>{Tt=null,ge===o&&(xn(Ht)?St=!1:(St=!1,a()))},f=i===null?24:i;Tt=window.setTimeout(u,f)}function r(){T(Gt)===null&&Ht.size===0&&!St&&O(Gt,document.body.getAttribute("style"),!0)}return X(()=>$e.current,()=>{var b,p;if(!$e.current)return;r(),St=!1;const i=getComputedStyle(document.documentElement),a=getComputedStyle(document.body),o=((b=i.scrollbarGutter)==null?void 0:b.includes("stable"))||((p=a.scrollbarGutter)==null?void 0:p.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",He&&(Y=N(document,"touchmove",E=>{E.target===document.documentElement&&(E.touches.length>1||E.preventDefault())},{passive:!1})),Fe(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Ut(()=>()=>{Y==null||Y()}),{get lockMap(){return Ht},resetBodyStyle:n,scheduleCleanupIfNoNewLocks:e,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});var it,_t,Bt,I;class Ni{constructor(t,e=()=>null){c(this,it,Oi());c(this,_t);c(this,Bt,()=>null);c(this,I);y(this,"locked");d(this,_t,t),d(this,Bt,e),d(this,I,Ri.get()),s(this,I)&&(s(this,I).cancelPendingCleanup(),s(this,I).ensureInitialStyleCaptured(),s(this,I).lockMap.set(s(this,it),s(this,_t)??!1),this.locked=g(()=>s(this,I).lockMap.get(s(this,it))??!1,r=>s(this,I).lockMap.set(s(this,it),r)),Ut(()=>{if(s(this,I).lockMap.delete(s(this,it)),xn(s(this,I).lockMap))return;const r=s(this,Bt).call(this);s(this,I).scheduleCleanupIfNoNewLocks(r,()=>{s(this,I).resetBodyStyle()})}))}}it=new WeakMap,_t=new WeakMap,Bt=new WeakMap,I=new WeakMap;function xn(n){for(const[t,e]of n)if(e)return!0;return!1}function ps(n,t){gt(t,!0);let e=A(t,"preventScroll",3,!0),r=A(t,"restoreScrollDelay",3,null);e()&&new Ni(e(),()=>r()),yt()}export{Yi as A,ts as B,Rr as C,ls as D,Ji as E,ds as F,$i as G,Qi as H,Zi as I,Ki as J,He as K,qi as L,Vr as M,rs as N,is as O,us as P,cs as Q,es as S,hs as T,os as a,g as b,Gr as c,Gi as d,zi as e,as as f,Hi as g,fs as h,ps as i,Ir as j,nn as k,Wi as l,ji as m,x as n,Ut as o,Wt as p,ss as q,Tr as r,wt as s,Ur as t,Oi as u,Fe as v,X as w,cn as x,Xi as y,ns as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,a as i,l as c,b as f}from"./BUngiKFg.js";import{B as y}from"./CAtemnMo.js";const l=Symbol("NaN");function m(r,e,n){t&&i();var o=new y(r),s=!c();f(()=>{var a=e();a!==a&&(a=l),s&&a!==null&&typeof a=="object"&&(a={}),o.ensure(a,n)})}export{m as k};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.D2-xzG_8.js","../chunks/D1Gs8-g3.js","../chunks/BUngiKFg.js","../chunks/Dgs6d7X5.js","../chunks/C74gbb4Q.js","../chunks/LQVMBmDN.js","../chunks/CjQQ9_Q2.js","../chunks/DWJZOHke.js","../chunks/V2-VOe88.js","../chunks/DCEY1XiC.js","../chunks/DI-t-G_K.js","../chunks/CVjCNJia.js","../chunks/CZDFXKiF.js","../chunks/DvtNA-3X.js","../chunks/BUApaBEI.js","../chunks/C1kQ4pHy.js","../chunks/BxHqDcpw.js","../chunks/C12mHcUp.js","../chunks/DjzVVxpy.js","../chunks/CAtemnMo.js","../assets/0.BUAXpTm6.css","../nodes/1.CFixzRR6.js","../nodes/2.DIZ4IPNm.js","../chunks/Qw0Qgx6J.js","../chunks/CtHRh_pJ.js","../assets/2.eJ80XOGm.css","../nodes/3.BFSNf0FK.js","../chunks/D-6mYMI1.js","../chunks/DjpPK99f.js","../chunks/bohabpgg.js","../chunks/CBY2biv-.js","../chunks/ByQRbEUX.js","../chunks/c-YfbAB_.js","../chunks/tpTQfoNn.js","../chunks/Bt0fzibd.js","../assets/SourcesList.BhtYlRsQ.css","../nodes/4.BSsIjejE.js","../assets/4.B8-jYAVj.css","../nodes/5.COxRT9Oe.js","../assets/5.ClehBQ0g.css","../nodes/6.CBgQ4YzB.js","../chunks/Bfc47y5P.js","../assets/6.Drn-0DON.css","../nodes/7.BbzWOL0V.js","../chunks/D9dRVKgL.js","../assets/7.ms2diq_q.css","../nodes/8.C8120200.js","../assets/8.DKymkjjs.css","../nodes/9.BH_BGQQ4.js","../assets/9.BZheTlzZ.css","../nodes/10.ayxWydPr.js","../assets/10.I1OuCLrU.css","../nodes/11.B0JS3E2j.js","../assets/11.CrO9xaki.css","../nodes/12.CMcby_lY.js","../chunks/DTUxjyWL.js","../assets/12.BEi6fInA.css","../nodes/13.DRpZV72T.js","../nodes/14.DVeJW6bd.js","../assets/14.Ctlgn1LZ.css","../nodes/15.BtYZF6FM.js","../chunks/hp4PFHFv.js","../nodes/16.Ba_qJjp6.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var X=r=>{throw TypeError(r)};var Z=(r,t,e)=>t.has(r)||X("Cannot "+e);var l=(r,t,e)=>(Z(r,t,"read from private field"),e?e.call(r):t.get(r)),F=(r,t,e)=>t.has(r)?X("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),H=(r,t,e,i)=>(Z(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);import{t as U,L as it,o as v,bg as mt,M as ut,O as ct,as as lt,al as _t,ak as dt,T as ft,aB as A,av as vt,at as ht,bh as J,au as gt,aw as Et,ay as Pt,az as k}from"../chunks/BUngiKFg.js";import{h as yt,m as pt,u as Rt,s as Ot}from"../chunks/CjQQ9_Q2.js";import{a as E,c as I,f as $,t as bt}from"../chunks/D1Gs8-g3.js";import{o as Lt}from"../chunks/C1kQ4pHy.js";import{i as B}from"../chunks/Qw0Qgx6J.js";import{c as x}from"../chunks/D9dRVKgL.js";import{b as S}from"../chunks/DTUxjyWL.js";import{p as q}from"../chunks/BxHqDcpw.js";function At(r){return class extends Tt{constructor(t){super({component:r,...t})}}}var P,_;class Tt{constructor(t){F(this,P);F(this,_);var y;var e=new Map,i=(s,a)=>{var m=ct(a,!1,!1);return e.set(s,m),m};const u=new Proxy({...t.props||{},$$events:{}},{get(s,a){return v(e.get(a)??i(a,Reflect.get(s,a)))},has(s,a){return a===it?!0:(v(e.get(a)??i(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,m){return U(e.get(a)??i(a,m),m),Reflect.set(s,a,m)}});H(this,_,(t.hydrate?yt:pt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((y=t==null?void 0:t.props)!=null&&y.$$host)||t.sync===!1)&&mt(),H(this,P,u.$$events);for(const s of Object.keys(l(this,_)))s==="$set"||s==="$destroy"||s==="$on"||ut(this,s,{get(){return l(this,_)[s]},set(a){l(this,_)[s]=a},enumerable:!0});l(this,_).$set=s=>{Object.assign(u,s)},l(this,_).$destroy=()=>{Rt(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={},n=function(t,e,i){let u=Promise.resolve();if(e&&e.length>0){let s=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};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=s(e.map(c=>{if(c=It(c,i),c in N)return;N[c]=!0;const h=c.endsWith(".css"),p=h?'[rel="stylesheet"]':"";if(!!i)for(let R=a.length-1;R>=0;R--){const o=a[R];if(o.href===c&&(!h||o.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${p}`))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((R,o)=>{g.addEventListener("load",R),g.addEventListener("error",()=>o(new Error(`Unable to preload CSS for ${c}`)))})}))}function y(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return u.then(s=>{for(const a of s||[])a.status==="rejected"&&y(a.reason);return t().catch(y)})},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),y=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(),y(),t.stores.page.notify()});let s=J(!1),a=J(!1),m=J(null);Lt(()=>{const o=t.stores.page.subscribe(()=>{v(s)&&(U(a,!0),ft().then(()=>{U(m,document.title||"untitled page",!0)}))});return U(s,!0),o});const j=k(()=>t.constructors[2]);var c=wt(),h=A(c);{var p=o=>{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 M=I(),et=A(M);{var rt=D=>{const z=k(()=>t.constructors[1]);var w=I(),G=A(w);x(G,()=>v(z),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(f,jt)=>{var Q=I(),st=A(Q);x(st,()=>v(j),(ot,nt)=>{S(nt(ot,{get data(){return y()},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,Q)},$$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(),G=A(w);x(G,()=>v(z),(W,Y)=>{S(Y(W,{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,M)},$$slots:{default:!0}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(o,b)},K=o=>{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(o,b)};B(h,o=>{t.constructors[1]?o(p):o(K,-1)})}var g=vt(h,2);{var R=o=>{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(o,O)};B(g,o=>{v(s)&&o(R)})}E(r,c),ht()}const Jt=At(kt),Kt=[()=>n(()=>import("../nodes/0.D2-xzG_8.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),()=>n(()=>import("../nodes/1.CFixzRR6.js"),__vite__mapDeps([21,1,2,3,6,7,11,13,5,14,15]),import.meta.url),()=>n(()=>import("../nodes/2.DIZ4IPNm.js"),__vite__mapDeps([22,1,2,3,8,4,5,6,7,23,19,10,11,24,25]),import.meta.url),()=>n(()=>import("../nodes/3.BFSNf0FK.js"),__vite__mapDeps([26,1,2,3,27,28,15,6,7,4,5,23,19,18,9,10,29,11,30,16,31,32,33,8,17,34,35]),import.meta.url),()=>n(()=>import("../nodes/4.BSsIjejE.js"),__vite__mapDeps([36,1,2,3,15,6,7,23,19,18,27,9,10,11,30,37]),import.meta.url),()=>n(()=>import("../nodes/5.COxRT9Oe.js"),__vite__mapDeps([38,1,2,3,15,6,7,23,19,27,9,10,29,11,30,24,5,39]),import.meta.url),()=>n(()=>import("../nodes/6.CBgQ4YzB.js"),__vite__mapDeps([40,1,2,3,7,27,9,10,29,41,42]),import.meta.url),()=>n(()=>import("../nodes/7.BbzWOL0V.js"),__vite__mapDeps([43,1,2,3,15,6,7,23,19,18,27,9,10,29,11,30,24,5,32,33,16,4,34,44,8,17,45]),import.meta.url),()=>n(()=>import("../nodes/8.C8120200.js"),__vite__mapDeps([46,1,2,3,7,27,9,10,29,41,47]),import.meta.url),()=>n(()=>import("../nodes/9.BH_BGQQ4.js"),__vite__mapDeps([48,1,2,3,15,6,7,23,19,18,27,9,10,11,30,24,5,49]),import.meta.url),()=>n(()=>import("../nodes/10.ayxWydPr.js"),__vite__mapDeps([50,1,2,3,15,6,7,5,23,19,18,27,9,10,29,11,30,12,13,14,24,31,32,33,16,4,51]),import.meta.url),()=>n(()=>import("../nodes/11.B0JS3E2j.js"),__vite__mapDeps([52,1,2,3,15,27,11,13,5,14,53]),import.meta.url),()=>n(()=>import("../nodes/12.CMcby_lY.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,23,19,33,27,9,10,11,30,12,13,14,15,24,55,16,56]),import.meta.url),()=>n(()=>import("../nodes/13.DRpZV72T.js"),__vite__mapDeps([57,1,2,3,27,28,15,6,7,4,5,23,19,18,9,10,29,11,30,16,31,32,33,8,17,34,35]),import.meta.url),()=>n(()=>import("../nodes/14.DVeJW6bd.js"),__vite__mapDeps([58,1,2,3,15,6,7,23,19,18,27,9,10,29,41,11,30,24,5,59]),import.meta.url),()=>n(()=>import("../nodes/15.BtYZF6FM.js"),__vite__mapDeps([60,61,14]),import.meta.url),()=>n(()=>import("../nodes/16.Ba_qJjp6.js"),__vite__mapDeps([62,61,14]),import.meta.url)],Mt=[],Qt={"/":[3],"/admin":[4,[2]],"/admin/deliver":[5,[2]],"/admin/extractor":[6,[2]],"/admin/logs":[7,[2]],"/admin/parse":[8,[2]],"/admin/pipeline":[9,[2]],"/admin/plugins":[10,[2]],"/admin/plugins/new":[11,[2]],"/admin/plugins/[id]":[12,[2]],"/admin/sources":[13,[2]],"/admin/tags":[14,[2]],"/tags":[15],"/[sub]":[16]},tt={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},xt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.decode])),Xt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.encode])),Zt=!1,Nt=(r,t)=>xt[r](t);export{Nt as decode,xt as decoders,Qt as dictionary,Xt as encoders,Zt as hash,tt as hooks,Ht as matchers,Kt as nodes,Jt as root,Mt as server_loads};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/DvtNA-3X.js";export{o as load_css,r as start};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{c as V,a as x,f as aa}from"../chunks/D1Gs8-g3.js";import"../chunks/Dgs6d7X5.js";import{aB as A,as as ta,bi as q,bj as sa,ay as ea,at as la,au as a,t as w,o as s,aw as t,av as n,ao as ra,u as ia,O as k}from"../chunks/BUngiKFg.js";import{s as oa,a as na}from"../chunks/C74gbb4Q.js";import{s as va}from"../chunks/CjQQ9_Q2.js";import{s as M}from"../chunks/V2-VOe88.js";import{P as ca,s as T,G as ha}from"../chunks/DCEY1XiC.js";import{s as p}from"../chunks/DI-t-G_K.js";import{i as da}from"../chunks/CVjCNJia.js";import{p as pa}from"../chunks/CZDFXKiF.js";import{l as E,s as F}from"../chunks/BxHqDcpw.js";import{I as D}from"../chunks/C12mHcUp.js";const ua=!1,fa=!1,Wa=Object.freeze(Object.defineProperty({__proto__:null,prerender:fa,ssr:ua},Symbol.toStringTag,{value:"Module"}));function ga(c,l){const v=E(l,["children","$$slots","$$events","$$legacy"]);/**
|
|
2
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const h=[["path",{d:"M10 2v2"}],["path",{d:"M14 2v2"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1"}],["path",{d:"M6 2v2"}]];D(c,F({name:"coffee"},()=>v,{get iconNode(){return h},children:(d,e)=>{var r=V(),i=A(r);M(i,l,"default",{}),x(d,r)},$$slots:{default:!0}}))}function ma(c,l){const v=E(l,["children","$$slots","$$events","$$legacy"]);/**
|
|
7
|
-
* @license lucide-svelte v0.460.1 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const h=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}],["circle",{cx:"12",cy:"12",r:"3"}]];D(c,F({name:"settings"},()=>v,{get iconNode(){return h},children:(d,e)=>{var r=V(),i=A(r);M(i,l,"default",{}),x(d,r)},$$slots:{default:!0}}))}const _a='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',ba='</title><path d="',ya='"/></svg>',U={title:"GitHub",slug:"github",get svg(){return _a+"GitHub"+ba+this.path+ya},path:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",source:"https://github.com/logos",hex:"181717",guidelines:"https://github.com/logos"};var $a=aa('<div class="layout-outer svelte-12qhfyh"><div id="layout-inner-scroll" class="layout-inner svelte-12qhfyh"><header class="topbar svelte-12qhfyh"><div class="shell topbar-row svelte-12qhfyh"><div class="topbar-left svelte-12qhfyh"><a href="/" class="topbar-brand svelte-12qhfyh"><span class="logo-icon svelte-12qhfyh" aria-hidden="true"><!></span> <span> </span></a> <a class="github-link svelte-12qhfyh" target="_blank" rel="noopener noreferrer" aria-label="在 GitHub 打开源码仓库" title="GitHub"><svg class="github-icon svelte-12qhfyh" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill="currentColor"></path></svg></a></div> <div class="topbar-end svelte-12qhfyh"><nav class="topbar-quick svelte-12qhfyh" aria-label="后台快捷入口"><a href="/admin/logs" title="运行日志">日志</a> <a href="/admin/plugins" title="信源与扩展插件">插件</a> <a href="/admin/tags" title="标签与分类">标签</a></nav> <a href="/admin" class="topbar-right svelte-12qhfyh" title="管理后台" aria-label="管理后台"><span class="topbar-icon svelte-12qhfyh"><!></span></a></div></div></header> <main><!></main></div></div>');function Ba(c,l){ta(l,!1);const v=()=>na(pa,"$page",h),[h,d]=oa(),e=k(),r=k(),i=k();function L(o){return!!(o==="/"||o==="/admin"||o==="/admin/sources"||o==="/admin/tags"||o==="/admin/plugins"||o==="/admin/logs"||o.startsWith("/admin/plugins/")||o.startsWith("/admin/logs/"))}q(()=>v(),()=>{w(e,v().url.pathname)}),q(()=>s(e),()=>{w(r,L(s(e)))}),q(()=>s(e),()=>{w(i,{logs:s(e)==="/admin/logs"||s(e).startsWith("/admin/logs/"),plugins:s(e).startsWith("/admin/plugins"),tags:s(e)==="/admin/tags"||s(e).startsWith("/admin/tags/")})}),sa(),da();var u=$a(),G=a(u),f=a(G),H=a(f),g=a(H),m=a(g),_=a(m),J=a(_);ga(J,{size:16}),t(_);var z=n(_,2),K=a(z,!0);t(z),t(m);var b=n(m,2),P=a(b),Q=a(P);t(P),t(b),t(g);var C=n(g,2),y=a(C),N=a(y);let O;var W=n(N,2);let B;var X=n(W,2);let R;t(y);var j=n(y,2),I=a(j),Y=a(I);ma(Y,{size:20}),t(I),t(j),t(C),t(H),t(f);var $=n(f,2);let S;var Z=a($);M(Z,l,"default",{}),t($),t(G),t(u),ea(()=>{va(K,ca),T(b,"href",ha),T(Q,"d",(ra(U),ia(()=>U.path))),O=p(N,1,"topbar-quick-link svelte-12qhfyh",null,O,{active:s(i).logs}),B=p(W,1,"topbar-quick-link svelte-12qhfyh",null,B,{active:s(i).plugins}),R=p(X,1,"topbar-quick-link svelte-12qhfyh",null,R,{active:s(i).tags}),S=p($,1,"main shell svelte-12qhfyh",null,S,{"main-fill":s(r)})}),x(c,u),la(),d()}export{Ba as component,Wa as universal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as h,f as g}from"../chunks/D1Gs8-g3.js";import"../chunks/Dgs6d7X5.js";import{as as v,aB as l,ay as d,at as _,au as e,aw as o,av as x}from"../chunks/BUngiKFg.js";import{s as p}from"../chunks/CjQQ9_Q2.js";import{i as $}from"../chunks/CVjCNJia.js";import{s as k,p as m}from"../chunks/DvtNA-3X.js";const b={get error(){return m.error},get status(){return m.status}};k.updated.check;const i=b;var w=g("<h1> </h1> <p> </p>",1);function A(f,n){v(n,!1),$();var t=w(),r=l(t),c=e(r,!0);o(r);var a=x(r,2),u=e(a,!0);o(a),d(()=>{var s;p(c,i.status),p(u,(s=i.error)==null?void 0:s.message)}),h(f,t),_()}export{A as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as v,t as F,f as p}from"../chunks/D1Gs8-g3.js";import"../chunks/Dgs6d7X5.js";import{o as bt}from"../chunks/C1kQ4pHy.js";import{as as gt,aB as H,at as ht,d as $t,o as i,ay as q,t as l,au as o,av as n,O as $,$ as wt,aw as r,ax as T}from"../chunks/BUngiKFg.js";import{s as U}from"../chunks/CjQQ9_Q2.js";import{g as Pt}from"../chunks/LQVMBmDN.js";import{i as z}from"../chunks/Qw0Qgx6J.js";import{e as kt}from"../chunks/DjzVVxpy.js";import{h as xt}from"../chunks/D-6mYMI1.js";import{s as G,P as Dt,r as St}from"../chunks/DCEY1XiC.js";import{d as At,a as E,e as jt}from"../chunks/DWJZOHke.js";import{b as Ct}from"../chunks/bohabpgg.js";import{i as It}from"../chunks/CVjCNJia.js";import{a as R}from"../chunks/CBY2biv-.js";import{p as Ot}from"../chunks/CZDFXKiF.js";import{g as at}from"../chunks/DvtNA-3X.js";import{s as u}from"../chunks/CtHRh_pJ.js";import{D as Tt,a as Ut,b as Et,c as Rt,d as st}from"../chunks/ByQRbEUX.js";import{P as Nt}from"../chunks/c-YfbAB_.js";var Lt=p('<div class="state svelte-1ri3yt3">加载中…</div>'),Mt=p('<div class="state error svelte-1ri3yt3"> </div>'),Bt=p('<div class="state svelte-1ri3yt3">暂无已加载插件。可 <button type="button" class="link-btn svelte-1ri3yt3">添加插件</button> 从模板创建,或在 <code>app/plugins/builtin/</code>、<code>.rssany/plugins/</code> 放置 *.rssany.js / *.rssany.ts</div>'),Jt=p('<span class="kind-badge svelte-1ri3yt3">Source</span>'),Ft=p('<div class="row-actions svelte-1ri3yt3"><button type="button" class="btn btn-secondary svelte-1ri3yt3">检查登录</button> <button type="button" class="btn btn-primary svelte-1ri3yt3">打开登录页</button></div>'),Ht=p('<div class="row svelte-1ri3yt3"><div class="row-main svelte-1ri3yt3"><div class="row-title svelte-1ri3yt3"><a class="row-id svelte-1ri3yt3"> </a> <!></div> <span class="row-pattern svelte-1ri3yt3"> </span></div> <!></div>'),qt=p('<div class="list svelte-1ri3yt3"></div>'),zt=p('<div class="modal-header svelte-1ri3yt3"><!> <!></div> <form class="modal-body svelte-1ri3yt3"><p class="add-hint svelte-1ri3yt3">基于仓库模板 <code class="svelte-1ri3yt3">app/plugins/site.rssany.js</code> 生成 <code class="svelte-1ri3yt3">.rssany/plugins/<id>.rssany.js</code>。id 须字母开头,仅字母数字、下划线、连字符;不能使用 id <code class="svelte-1ri3yt3">new</code>。</p> <div class="field svelte-1ri3yt3"><span class="field-label svelte-1ri3yt3">插件 id</span> <input class="field-input svelte-1ri3yt3" type="text" name="pluginId" placeholder="例如 my-site" autocomplete="off"/></div> <div class="modal-footer svelte-1ri3yt3"><div class="modal-footer-right svelte-1ri3yt3"><!> <button type="submit" class="btn-save svelte-1ri3yt3"> </button></div></div></form>',1),Gt=p("<!> <!>",1),Kt=p('<div class="feed-wrap svelte-1ri3yt3"><div class="feed-col svelte-1ri3yt3"><div class="plugins-toolbar-block svelte-1ri3yt3"><div class="admin-feed-header"><div class="admin-feed-header__left"><h2>插件</h2> <p class="admin-feed-header__desc">编写插件以适配特定页面的解析规则,比 LLM 兜底更快、更稳定。</p></div> <div class="admin-feed-header__actions"><button type="button" class="admin-toolbar-btn admin-toolbar-btn--primary">添加插件</button></div></div></div> <div class="plugins-body-scroll svelte-1ri3yt3"><!></div></div></div> <!>',1);function pe(rt,ot){gt(ot,!1);let N=$([]),C=$(""),L=$(!0),w=$(!1),f=$(""),P=$(!1);function K(){l(f,""),l(w,!0)}function it(t){l(w,t),t||l(f,"")}async function lt(t){t.preventDefault();const a=i(f).trim();if(!a){u("请填写插件 id","error");return}l(P,!0);try{const e=await R("/api/plugins",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a})}),s=await e.text();let c={};try{c=s?JSON.parse(s):{}}catch{c={}}if(!e.ok){u(c.error||s||`HTTP ${e.status}`,"error");return}c.ok&&(u("已创建插件文件","success"),l(w,!1),l(f,""),await Q(),await at("/admin/plugins/"+encodeURIComponent(a)))}catch(e){u("请求失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{l(P,!1)}}async function Q(){l(L,!0),l(C,"");try{const a=await(await R("/api/plugins")).json();l(N,[...a].sort((e,s)=>(s.hasAuth?1:0)-(e.hasAuth?1:0)))}catch(t){l(C,"加载失败: "+(t instanceof Error?t.message:String(t)))}finally{l(L,!1)}}async function nt(t,a){a.preventDefault(),a.stopPropagation();try{const s=await(await R(`/auth/check?siteId=${encodeURIComponent(t.id)}`)).json();s.ok?u(`${t.id}:${s.authenticated?"✓ 已登录":"✗ 未登录"}`,s.authenticated?"success":"error"):u(s.message||"检查失败","error")}catch(e){u("请求失败: "+(e instanceof Error?e.message:String(e)),"error")}}async function dt(t,a){a.preventDefault(),a.stopPropagation();try{const s=await(await R(`/auth/open?siteId=${encodeURIComponent(t.id)}`,{method:"POST"})).json();s.ok?u(s.message||"已打开登录页面","success"):u(s.message||"打开失败","error")}catch(e){u("请求失败: "+(e instanceof Error?e.message:String(e)),"error")}}bt(()=>{Q(),Pt(Ot).url.searchParams.get("openAdd")==="1"&&(l(f,""),l(w,!0),at("/admin/plugins",{replaceState:!0}))}),It();var V=Kt();xt("1ri3yt3",t=>{$t(()=>{wt.title=`插件 - ${Dt}`})});var M=H(V),W=o(M),B=o(W),X=o(B),Y=n(o(X),2),vt=o(Y);r(Y),r(X),r(B);var Z=n(B,2),ct=o(Z);{var ut=t=>{var a=Lt();v(t,a)},pt=t=>{var a=Mt(),e=o(a,!0);r(a),q(()=>U(e,i(C))),v(t,a)},mt=t=>{var a=Bt(),e=n(o(a));T(5),r(a),E("click",e,K),v(t,a)},ft=t=>{var a=qt();kt(a,5,()=>i(N),e=>e.id,(e,s)=>{var c=Ht(),b=o(c),k=o(b),g=o(k),tt=o(g,!0);r(g);var I=n(g,2);{var x=d=>{var m=Jt();v(d,m)};z(I,d=>{i(s).kind==="source"&&d(x)})}r(k);var h=n(k,2),J=o(h,!0);r(h),r(b);var D=n(b,2);{var S=d=>{var m=Ft(),A=o(m),O=n(A,2);r(m),E("click",A,_=>nt(i(s),_)),E("click",O,_=>dt(i(s),_)),v(d,m)};z(D,d=>{i(s).hasAuth&&d(S)})}r(c),q(d=>{G(g,"href",`/admin/plugins/${d??""}`),U(tt,i(s).id),G(h,"title",i(s).listUrlPattern),U(J,i(s).listUrlPattern)},[()=>encodeURIComponent(i(s).id)]),v(e,c)}),r(a),v(t,a)};z(ct,t=>{i(L)?t(ut):i(C)?t(pt,1):i(N).length===0?t(mt,2):t(ft,-1)})}r(Z),r(W),r(M);var _t=n(M,2);Tt(_t,{get open(){return i(w)},onOpenChange:it,children:(t,a)=>{Nt(t,{children:(e,s)=>{var c=Gt(),b=H(c);Ut(b,{class:"modal-overlay"});var k=n(b,2);Et(k,{class:"modal","aria-describedby":void 0,children:(g,tt)=>{var I=zt(),x=H(I),h=o(x);Rt(h,{class:"modal-title",children:(y,et)=>{T();var j=F("添加插件");v(y,j)},$$slots:{default:!0}});var J=n(h,2);st(J,{class:"modal-close","aria-label":"关闭",children:(y,et)=>{T();var j=F("✕");v(y,j)},$$slots:{default:!0}}),r(x);var D=n(x,2),S=n(o(D),2),d=n(o(S),2);St(d),G(d,"spellcheck",!1),r(S);var m=n(S,2),A=o(m),O=o(A);st(O,{class:"btn-cancel",get disabled(){return i(P)},type:"button",children:(y,et)=>{T();var j=F("取消");v(y,j)},$$slots:{default:!0}});var _=n(O,2),yt=o(_,!0);r(_),r(A),r(m),r(D),q(()=>{_.disabled=i(P),U(yt,i(P)?"创建中…":"创建并打开编辑")}),jt("submit",D,lt),Ct(d,()=>i(f),y=>l(f,y)),v(g,I)},$$slots:{default:!0}}),v(e,c)},$$slots:{default:!0}})},$$slots:{default:!0}}),E("click",vt,K),v(rt,V),ht()}At(["click"]);export{pe as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r,f as e}from"../chunks/D1Gs8-g3.js";import"../chunks/Dgs6d7X5.js";import{o as m}from"../chunks/C1kQ4pHy.js";import{as as p,at as s,i,$ as n}from"../chunks/BUngiKFg.js";import{h as f}from"../chunks/D-6mYMI1.js";import{i as c}from"../chunks/CVjCNJia.js";import{g as d}from"../chunks/DvtNA-3X.js";var l=e('<p class="redirect-msg svelte-kwmabe">正在打开添加插件…</p>');function _(o,a){p(a,!1),m(()=>{d("/admin/plugins?openAdd=1",{replaceState:!0})}),c();var t=l();f("kwmabe",u=>{i(()=>{n.title="插件"})}),r(o,t),s()}export{_ as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../chunks/D1Gs8-g3.js";import"../chunks/Dgs6d7X5.js";import{d as r,$ as t}from"../chunks/BUngiKFg.js";import{h as e}from"../chunks/D-6mYMI1.js";import{S as m}from"../chunks/DjpPK99f.js";import{P as a}from"../chunks/DCEY1XiC.js";function $(o){e("8cr5m9",p=>{r(()=>{t.title=`Sources — ${a}`})}),m(o,{})}export{$ as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as v,f as c}from"../chunks/D1Gs8-g3.js";import"../chunks/Dgs6d7X5.js";import{o as ye}from"../chunks/C1kQ4pHy.js";import{a2 as xe,as as we,aB as ke,ay as E,o as s,at as Ce,d as Te,au as n,t as a,O as w,av as i,$ as Le,aw as r,G as Ee}from"../chunks/BUngiKFg.js";import{s as P}from"../chunks/CjQQ9_Q2.js";import{i as O}from"../chunks/Qw0Qgx6J.js";import{e as te,i as se}from"../chunks/DjzVVxpy.js";import{h as $e}from"../chunks/D-6mYMI1.js";import{P as Me,r as Se,c as Pe}from"../chunks/DCEY1XiC.js";import{e as f}from"../chunks/DWJZOHke.js";import{b as Oe}from"../chunks/bohabpgg.js";import{s as X}from"../chunks/Bfc47y5P.js";import{i as Fe}from"../chunks/CVjCNJia.js";import{b as Y}from"../chunks/CBY2biv-.js";import{s as F}from"../chunks/CtHRh_pJ.js";function Je(D,$){var k;var o=(k=D.$$events)==null?void 0:k[$.type],p=xe(o)?o.slice():o==null?[]:[o];for(var u of p)u.call(this,$)}var Ne=c('<div class="state svelte-1s5glru">加载中…</div>'),je=c('<p class="empty-hint svelte-1s5glru">暂无标签。添加后,pipeline 会对新入库条目自动打标签。</p>'),De=c('<span class="tag-meta svelte-1s5glru"> </span>'),Ie=c('<div class="tag-badge svelte-1s5glru"><span class="tag-name svelte-1s5glru"> </span> <!> <button type="button" class="tag-remove svelte-1s5glru" title="从系统标签中删除">×</button></div>'),Ue=c('<div class="tag-list svelte-1s5glru"></div>'),qe=c('<div class="tag-badge suggested svelte-1s5glru"><span class="tag-name svelte-1s5glru"> </span> <span class="tag-meta svelte-1s5glru"> </span> <button type="button" class="tag-add svelte-1s5glru" title="添加到系统标签">+</button></div>'),Ae=c('<div class="suggested-section svelte-1s5glru"><h3 class="section-title svelte-1s5glru">建议添加(文章中出现但未在系统标签库中)</h3> <div class="tag-list svelte-1s5glru"></div></div>'),Be=c('<div class="body svelte-1s5glru"><div class="tags-section svelte-1s5glru"><h3 class="section-title svelte-1s5glru"> </h3> <!></div> <!></div>'),Ge=c('<div class="context-menu svelte-1s5glru" role="menu" tabindex="-1"><button type="button" class="context-menu-item svelte-1s5glru">从所有文章中移除该标签</button></div>'),Re=c('<div class="feed-wrap svelte-1s5glru"><div class="feed-col svelte-1s5glru"><div class="feed-toolbar-block svelte-1s5glru"><div class="admin-feed-header"><div class="admin-feed-header__left"><h2>系统标签</h2> <p class="admin-feed-header__desc">系统标签库,新入库条目会由 LLM 自动匹配打标签。</p></div> <div class="admin-feed-header__actions"><input type="text" class="admin-toolbar-input" placeholder="输入新标签,回车添加"/> <button type="button" class="admin-toolbar-btn admin-toolbar-btn--primary">添加</button></div></div></div> <div class="feed-body-scroll svelte-1s5glru"><!></div></div></div> <!>',1);function nt(D,$){we($,!1);let o=w([]),p=[],u=w([]),k=w(!0),_=w(!1),M=w(""),b=w(null),J=w(!1);async function ae(){a(k,!0);try{const t=await Y("/api/tags");a(o,(t==null?void 0:t.tags)??[]),p=(t==null?void 0:t.stats)??[],a(u,(t==null?void 0:t.suggestedTags)??[])}catch{a(o,[]),p=[],a(u,[])}finally{a(k,!1)}}function re(t){return p.find(e=>e.name.toLowerCase()===t.toLowerCase())}async function I(t){a(_,!0);try{const e=await Y("/api/tags",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:t})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"保存失败");a(o,(e==null?void 0:e.tags)??t),p=(e==null?void 0:e.stats)??[],a(u,(e==null?void 0:e.suggestedTags)??[]),F("已保存","success")}catch(e){F("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(_,!1)}}function z(){const t=s(M).trim();if(!(!t||s(_))){if(s(o).some(e=>e.toLowerCase()===t.toLowerCase())){F("标签已存在","error");return}a(M,""),I([...s(o),t])}}function oe(t){s(_)||I(s(o).filter(e=>e!==t))}function ne(t){s(_)||s(o).some(e=>e.toLowerCase()===t.toLowerCase())||I([...s(o),t])}function H(t,e){t.preventDefault(),t.stopPropagation(),a(b,{x:t.clientX,y:t.clientY,tag:e})}function U(){a(b,null)}async function ie(t){if(!s(J)){a(J,!0),a(b,null);try{const e=await Y("/api/tags/remove-from-items",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:t})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"操作失败");a(o,(e==null?void 0:e.tags)??s(o)),p=(e==null?void 0:e.stats)??p,a(u,(e==null?void 0:e.suggestedTags)??s(u)),F(`已从 ${(e==null?void 0:e.removedCount)??0} 篇文章中移除该标签`,"success")}catch(e){F("操作失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(J,!1)}}}ye(()=>{ae();const t=()=>U(),e=()=>U();return document.addEventListener("click",t),document.addEventListener("contextmenu",e),()=>{document.removeEventListener("click",t),document.removeEventListener("contextmenu",e)}}),Fe();var K=Re();$e("1s5glru",t=>{Te(()=>{Le.title=`标签 - ${Me}`})});var q=ke(K),Q=n(q),A=n(Q),V=n(A),W=i(n(V),2),N=n(W);Se(N);var Z=i(N,2);r(W),r(V),r(A);var ee=i(A,2),le=n(ee);{var ve=t=>{var e=Ne();v(t,e)},ce=t=>{var e=Be(),C=n(e),h=n(C),me=n(h);r(h);var ge=i(h,2);{var fe=l=>{var d=je();v(l,d)},pe=l=>{var d=Ue();te(d,5,()=>s(o),se,(j,T)=>{const m=Ee(()=>re(s(T)));var g=Ie(),y=n(g),B=n(y,!0);r(y);var L=i(y,2);{var G=x=>{var R=De(),he=n(R);r(R),E(()=>P(he,`${s(m).count??""} 篇 · 热度 ${s(m).hotness??""}`)),v(x,R)};O(L,x=>{s(m)&&x(G)})}var S=i(L,2);r(g),E(()=>{P(B,s(T)),S.disabled=s(_)}),f("click",S,X(()=>oe(s(T)))),f("contextmenu",g,x=>H(x,s(T))),v(j,g)}),r(d),v(l,d)};O(ge,l=>{s(o).length===0?l(fe):l(pe,-1)})}r(C);var _e=i(C,2);{var be=l=>{var d=Ae(),j=i(n(d),2);te(j,5,()=>s(u),se,(T,m)=>{var g=qe(),y=n(g),B=n(y,!0);r(y);var L=i(y,2),G=n(L);r(L);var S=i(L,2);r(g),E(()=>{P(B,s(m).name),P(G,`${s(m).count??""} 篇 · 热度 ${s(m).hotness??""}`),S.disabled=s(_)}),f("click",S,X(()=>ne(s(m).name))),f("contextmenu",g,x=>H(x,s(m).name)),v(T,g)}),r(j),r(d),v(l,d)};O(_e,l=>{s(u).length>0&&l(be)})}r(e),E(()=>P(me,`当前标签 (${s(o).length??""})`)),v(t,e)};O(le,t=>{s(k)?t(ve):t(ce,-1)})}r(ee),r(Q),r(q);var ue=i(q,2);{var de=t=>{var e=Ge(),C=n(e);r(e),E(()=>{Pe(e,`left: ${s(b).x??""}px; top: ${s(b).y??""}px`),C.disabled=s(J)}),f("click",C,()=>ie(s(b).tag)),f("click",e,X(function(h){Je.call(this,$,h)})),f("keydown",e,h=>h.key==="Escape"&&U()),v(t,e)};O(ue,t=>{s(b)&&t(de)})}E(t=>Z.disabled=t,[()=>!s(M).trim()||s(_)]),Oe(N,()=>s(M),t=>a(M,t)),f("keydown",N,t=>t.key==="Enter"&&z()),f("click",Z,z),v(D,K),Ce()}export{nt as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as _,a as i,f as p}from"../chunks/D1Gs8-g3.js";import"../chunks/Dgs6d7X5.js";import{as as d,aB as n,at as u,au as $,aw as g,ay as h,av as y}from"../chunks/BUngiKFg.js";import{s as x}from"../chunks/V2-VOe88.js";import{s as b,a as k}from"../chunks/C74gbb4Q.js";import{s as w}from"../chunks/CjQQ9_Q2.js";import{i as z}from"../chunks/Qw0Qgx6J.js";import{s as B}from"../chunks/DI-t-G_K.js";import{i as T}from"../chunks/CVjCNJia.js";import{t as j}from"../chunks/CtHRh_pJ.js";var q=p("<div> </div>");function A(o,r){d(r,!1);const t=()=>k(j,"$toast",a),[a,e]=b();T();var f=_(),v=n(f);{var c=m=>{var s=q(),l=$(s,!0);g(s),h(()=>{B(s,1,`toast ${t().type??""}`,"svelte-zemmny"),w(l,t().msg)}),i(m,s)};z(v,m=>{t().msg&&m(c)})}i(o,f),u(),e()}var C=p("<!> <!>",1);function N(o,r){var t=C(),a=n(t);x(a,r,"default",{});var e=y(a,2);A(e,{}),i(o,t)}export{N as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t,f as r}from"../chunks/D1Gs8-g3.js";import"../chunks/Dgs6d7X5.js";import{d as m,$ as s}from"../chunks/BUngiKFg.js";import{h as p}from"../chunks/D-6mYMI1.js";import{S as n}from"../chunks/DjpPK99f.js";import{P as f}from"../chunks/DCEY1XiC.js";var i=r('<meta name="description" content="Subscribed sources: labels, counts, pull and manage feeds."/>');function S(e){p("1uha8ag",o=>{var a=i();m(()=>{s.title=`Sources — ${f}`}),t(o,a)}),n(e,{})}export{S as component};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as u,f as p}from"../chunks/D1Gs8-g3.js";import"../chunks/Dgs6d7X5.js";import{o as V,a as W}from"../chunks/C1kQ4pHy.js";import{as as Z,at as ee,d as te,$ as se,au as a,av as v,o as r,aw as t,ax as ae,ay as $,t as z,O as re,G as O,az as J,aA as le}from"../chunks/BUngiKFg.js";import{s as g}from"../chunks/CjQQ9_Q2.js";import{i as ie}from"../chunks/Qw0Qgx6J.js";import{e as y,i as D}from"../chunks/DjzVVxpy.js";import{h as ne}from"../chunks/D-6mYMI1.js";import{P as oe,s as ce}from"../chunks/DCEY1XiC.js";import{s as de}from"../chunks/DI-t-G_K.js";import{i as ve}from"../chunks/CVjCNJia.js";import{a as fe}from"../chunks/CBY2biv-.js";var ue=p("<span></span>"),pe=p('<div class="scheduler-row svelte-1jef3w8"><div class="scheduler-left svelte-1jef3w8"><span class="scheduler-name svelte-1jef3w8"> </span> <span class="scheduler-meta svelte-1jef3w8"> </span></div> <div class="scheduler-slots svelte-1jef3w8"></div></div>'),me=p('<section class="scheduler-section svelte-1jef3w8"><h3 class="section-title svelte-1jef3w8">调度任务</h3> <div class="scheduler-card svelte-1jef3w8"></div></section>'),he=p('<a class="card svelte-1jef3w8"><div class="card-main svelte-1jef3w8"><span class="card-label svelte-1jef3w8"> </span> <span class="card-desc svelte-1jef3w8"> </span></div> <span class="card-arrow svelte-1jef3w8">›</span></a>'),_e=p('<section class="links-section svelte-1jef3w8"><h3 class="section-title svelte-1jef3w8"> </h3> <div class="links svelte-1jef3w8"></div></section>'),we=p('<div class="feed-wrap svelte-1jef3w8"><div class="feed-col svelte-1jef3w8"><div class="settings-toolbar-block svelte-1jef3w8"><div class="feed-header svelte-1jef3w8"><h2 class="svelte-1jef3w8">设置</h2> <p class="sub svelte-1jef3w8">管理入口与调试工具</p></div></div> <div class="settings-body-scroll svelte-1jef3w8"><div class="body svelte-1jef3w8"><!> <!></div></div></div></div>');function Le(q,E){Z(E,!1);function I(l){if(l===void 0)return"";if(l===0)return"· 正在执行";if(l===-1)return"· 无定时任务";const e=new Date(l),o=Date.now(),i=l-o;if(i<=0)return"· 即将执行";if(i<6e4)return`· 约 ${Math.round(i/1e3)} 秒后`;if(i<36e5)return`· 约 ${Math.round(i/6e4)} 分钟后`;const d=e.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}),n=new Date(o),m=e.getDate()===n.getDate()&&e.getMonth()===n.getMonth()&&e.getFullYear()===n.getFullYear(),s=new Date(n);s.setDate(s.getDate()+1);const c=e.getDate()===s.getDate()&&e.getMonth()===s.getMonth()&&e.getFullYear()===s.getFullYear();return m?`· 下次 ${d}`:c?`· 下次 明天 ${d}`:`· 下次 ${e.toLocaleDateString("zh-CN",{month:"numeric",day:"numeric"})} ${d}`}const U=[{title:"管理",links:[{href:"/admin/tags",label:"标签",desc:"系统标签库,新入库条目由 LLM 自动匹配打标签"},{href:"/admin/pipeline",label:"Pipeline",desc:"入库前处理(打标签、翻译),支持顺序与开关"},{href:"/admin/plugins",label:"插件",desc:"已加载插件与登录状态"}]},{title:"集成",links:[{href:"/admin/deliver",label:"投递",desc:"配置下游 URL;非空时在写库与 Pipeline 后额外 POST 条目"}]},{title:"调试",links:[{href:"/admin/logs",label:"日志",desc:"系统运行日志"},{href:"/admin/parse",label:"Parse",desc:"从列表页解析条目,返回 JSON"},{href:"/admin/extractor",label:"Enrich",desc:"从详情页提取正文,返回 JSON"}]}];let j=re({}),S=null;async function N(){try{const e=await(await fe("/api/scheduler/stats")).text();z(j,e.trim()?JSON.parse(e):{})}catch{z(j,{})}}V(()=>{N(),S=setInterval(N,2e3)}),W(()=>{S&&clearInterval(S)});const G=5;ve();var x=we();ne("1jef3w8",l=>{te(()=>{se.title=`设置 - ${oe}`})});var k=a(x),C=v(a(k),2),L=a(C),P=a(L);{var X=l=>{var e=me(),o=v(a(e),2);y(o,5,()=>Object.entries(r(j)),D,(i,d)=>{var n=J(()=>le(r(d),2));let m=()=>r(n)[0],s=()=>r(n)[1];const c=O(()=>s().running),b=O(()=>s().completedCount??0),h=O(()=>Math.min(s().concurrency,G));var _=pe(),f=a(_),w=a(f),K=a(w,!0);t(w);var F=v(w,2),Q=a(F);t(F),t(f);var A=v(f,2);y(A,5,()=>Array(r(h)),D,(M,ge,R)=>{var T=ue();let Y;$(()=>Y=de(T,1,"slot svelte-1jef3w8",null,Y,{filled:R<r(c)})),u(M,T)}),t(A),t(_),$(M=>{g(K,m()),g(Q,`执行中 ${r(c)??""}/${s().concurrency??""} · 排队 ${s().queued??""} · 定时 ${s().scheduledCount??""} · 已完成 ${r(b)??""}
|
|
2
|
-
${M??""}`)},[()=>I(s().nextRunTime)]),u(i,_)}),t(o),t(e),u(l,e)},B=J(()=>Object.keys(r(j)).length>0);ie(P,l=>{r(B)&&l(X)})}var H=v(P,2);y(H,1,()=>U,D,(l,e)=>{var o=_e(),i=a(o),d=a(i,!0);t(i);var n=v(i,2);y(n,5,()=>r(e).links,D,(m,s)=>{var c=he(),b=a(c),h=a(b),_=a(h,!0);t(h);var f=v(h,2),w=a(f,!0);t(f),t(b),ae(2),t(c),$(()=>{ce(c,"href",r(s).href),g(_,r(s).label),g(w,r(s).desc)}),u(m,c)}),t(n),t(o),$(()=>g(d,r(e).title)),u(l,o)}),t(L),t(C),t(k),t(x),u(q,x),ee()}export{Le as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as h,f as y}from"../chunks/D1Gs8-g3.js";import"../chunks/Dgs6d7X5.js";import{o as A}from"../chunks/C1kQ4pHy.js";import{as as B,ay as D,at as F,d as q,o as s,O as p,au as o,av as u,$ as z,aw as i,t as a,aB as G,ax as H}from"../chunks/BUngiKFg.js";import{s as T}from"../chunks/CjQQ9_Q2.js";import{i as I}from"../chunks/Qw0Qgx6J.js";import{h as K}from"../chunks/D-6mYMI1.js";import{P as Q,r as V}from"../chunks/DCEY1XiC.js";import{e as P}from"../chunks/DWJZOHke.js";import{b as W}from"../chunks/bohabpgg.js";import{i as X}from"../chunks/CVjCNJia.js";import{b as g}from"../chunks/CBY2biv-.js";import{s as n}from"../chunks/CtHRh_pJ.js";var Y=y('<p class="hint svelte-bhaf7m">加载中…</p>'),Z=y('<input type="url" class="url-input svelte-bhaf7m" placeholder="https://downstream.example.com/ingest"/> <p class="hint svelte-bhaf7m">保存后生效;测试会发送一条示例条目,不写本地库。</p>',1),ee=y('<div class="feed-wrap svelte-bhaf7m"><div class="feed-col svelte-bhaf7m"><div class="body svelte-bhaf7m"><p class="intro svelte-bhaf7m">非空时,在<strong>正常入库与 Pipeline 完成之后</strong>,会<strong>额外</strong>将本批条目以 JSON POST 到该 URL(请求体含 <code class="svelte-bhaf7m">sourceRef</code>、<code class="svelte-bhaf7m">items</code>)。留空则不投递。投递地址<strong>不改变</strong>本地是否写库;运行日志仍落库。</p> <section class="form-section svelte-bhaf7m"><h3 class="section-title svelte-bhaf7m">投递目标 URL</h3> <!></section> <section class="form-section svelte-bhaf7m"><div class="btn-row svelte-bhaf7m"><button type="button" class="btn btn-primary svelte-bhaf7m"> </button> <button type="button" class="btn btn-secondary svelte-bhaf7m"> </button></div></section></div></div></div>');function ue(k,R){B(R,!1);let r=p(""),l=p(!0),m=p(!1),f=p(!1);async function U(){a(l,!0);try{const e=await g("/api/deliver");a(r,(e==null?void 0:e.url)??"")}catch{a(r,"")}finally{a(l,!1)}}async function E(){a(m,!0);try{const e=await g("/api/deliver",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:s(r).trim()})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"保存失败");a(r,(e==null?void 0:e.url)??s(r)),n("已保存","success")}catch(e){n("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(m,!1)}}async function J(){const e=s(r).trim();if(!e){n("请先填写投递 URL","error");return}a(f,!0);try{const t=await g("/api/deliver/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})});t!=null&&t.ok?n("投递测试成功","success"):n("投递测试失败: "+((t==null?void 0:t.message)??"未知错误"),"error")}catch(t){n("测试失败: "+(t instanceof Error?t.message:String(t)),"error")}finally{a(f,!1)}}A(U),X();var b=ee();K("bhaf7m",e=>{q(()=>{z.title=`投递 - ${Q}`})});var _=o(b),w=o(_),d=u(o(w),2),N=u(o(d),2);{var C=e=>{var t=Y();h(e,t)},L=e=>{var t=Z(),S=G(t);V(S),H(2),W(S,()=>s(r),M=>a(r,M)),h(e,t)};I(N,e=>{s(l)?e(C):e(L,-1)})}i(d);var x=u(d,2),O=o(x),c=o(O),$=o(c,!0);i(c);var v=u(c,2),j=o(v,!0);i(v),i(O),i(x),i(w),i(_),i(b),D(e=>{c.disabled=s(m)||s(l),T($,s(m)?"保存中…":"保存"),v.disabled=e,T(j,s(f)?"测试中…":"测试投递")},[()=>s(f)||s(l)||!s(r).trim()]),P("click",c,E),P("click",v,J),h(k,b),F()}export{ue as component};
|