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.
Files changed (130) hide show
  1. package/.env.example +1 -1
  2. package/README.md +5 -1
  3. package/app/plugins/builtin/rss.rssany.js +107 -24
  4. package/app/plugins/site.rssany.js +1 -1
  5. package/dist/index.js +986 -266
  6. package/dist/index.js.map +1 -1
  7. package/{config.examples.json → init/config.json} +7 -1
  8. package/init/sources.json +353 -0
  9. package/package.json +4 -6
  10. package/statics/401.html +1 -1
  11. package/statics/README.md +1 -1
  12. package/webui/build/200.html +16 -18
  13. package/webui/build/_app/immutable/assets/0.C6Q_nuW9.css +1 -0
  14. package/webui/build/_app/immutable/assets/10.Dj8_pmut.css +1 -0
  15. package/webui/build/_app/immutable/assets/11.qYZMiTb0.css +1 -0
  16. package/webui/build/_app/immutable/assets/12.Ct59LCqW.css +1 -0
  17. package/webui/build/_app/immutable/assets/13.BhO9zvFi.css +1 -0
  18. package/webui/build/_app/immutable/assets/14.CujIhjQK.css +1 -0
  19. package/webui/build/_app/immutable/assets/15.nNGjXhCQ.css +1 -0
  20. package/webui/build/_app/immutable/assets/16.PP9XLDf7.css +1 -0
  21. package/webui/build/_app/immutable/assets/4.9wPHhVwv.css +1 -0
  22. package/webui/build/_app/immutable/assets/6.DSJfjJwx.css +1 -0
  23. package/webui/build/_app/immutable/assets/7.CrNxmd8B.css +1 -0
  24. package/webui/build/_app/immutable/assets/8.Ba5_jYIY.css +1 -0
  25. package/webui/build/_app/immutable/assets/{9.BZheTlzZ.css → 9.m-LCx_kl.css} +1 -1
  26. package/webui/build/_app/immutable/assets/BackToParentRoute.DGk-X5ow.css +1 -0
  27. package/webui/build/_app/immutable/assets/SourcesList.yTBBi3_m.css +1 -0
  28. package/webui/build/_app/immutable/assets/homeFeedPanelStore.BopJZtHu.css +1 -0
  29. package/webui/build/_app/immutable/chunks/{V2-VOe88.js → B-OsL1Ct.js} +1 -1
  30. package/webui/build/_app/immutable/chunks/B2Q1a1-H.js +2 -0
  31. package/webui/build/_app/immutable/chunks/BK3WtZwv.js +1 -0
  32. package/webui/build/_app/immutable/chunks/BQqoDzLx.js +1 -0
  33. package/webui/build/_app/immutable/chunks/BXCWEhUd.js +1 -0
  34. package/webui/build/_app/immutable/chunks/BbWUOQ_m.js +1 -0
  35. package/webui/build/_app/immutable/chunks/Bp63qm3L.js +1 -0
  36. package/webui/build/_app/immutable/chunks/CVzlFH44.js +1 -0
  37. package/webui/build/_app/immutable/chunks/CWNeClHp.js +6 -0
  38. package/webui/build/_app/immutable/chunks/Cihqbfi5.js +1 -0
  39. package/webui/build/_app/immutable/chunks/CkUAV0m0.js +41 -0
  40. package/webui/build/_app/immutable/chunks/CtijX1u3.js +31 -0
  41. package/webui/build/_app/immutable/chunks/D5GvRCv7.js +1 -0
  42. package/webui/build/_app/immutable/chunks/DEDI7Ecm.js +1 -0
  43. package/webui/build/_app/immutable/chunks/DFuhmi31.js +1 -0
  44. package/webui/build/_app/immutable/chunks/DMWEh-Ek.js +2 -0
  45. package/webui/build/_app/immutable/chunks/{CZDFXKiF.js → DcAshVxe.js} +1 -1
  46. package/webui/build/_app/immutable/chunks/DjNLq3TF.js +1 -0
  47. package/webui/build/_app/immutable/chunks/Dt2CddFe.js +1 -0
  48. package/webui/build/_app/immutable/chunks/Dw782Tjs.js +1 -0
  49. package/webui/build/_app/immutable/chunks/EIZIMsXK.js +1 -0
  50. package/webui/build/_app/immutable/chunks/Xy_fhzQq.js +1 -0
  51. package/webui/build/_app/immutable/chunks/lk5LaiqA.js +1 -0
  52. package/webui/build/_app/immutable/chunks/mW5RwvnK.js +13 -0
  53. package/webui/build/_app/immutable/chunks/{CtHRh_pJ.js → tB7QMF3U.js} +1 -1
  54. package/webui/build/_app/immutable/chunks/xtNWTdbD.js +1 -0
  55. package/webui/build/_app/immutable/entry/app.DdgnooOk.js +2 -0
  56. package/webui/build/_app/immutable/entry/start.DhJaJZhR.js +1 -0
  57. package/webui/build/_app/immutable/nodes/0.BE05Cuc4.js +11 -0
  58. package/webui/build/_app/immutable/nodes/1.5DFDaT4c.js +1 -0
  59. package/webui/build/_app/immutable/nodes/10.OVK4i9XE.js +1 -0
  60. package/webui/build/_app/immutable/nodes/11.Dhn_rO4A.js +1 -0
  61. package/webui/build/_app/immutable/nodes/12.Cg8AeCSH.js +1 -0
  62. package/webui/build/_app/immutable/nodes/13.nT3SOzEB.js +1 -0
  63. package/webui/build/_app/immutable/nodes/14.B_KpJLxn.js +1 -0
  64. package/webui/build/_app/immutable/nodes/15.RaWaA-0I.js +1 -0
  65. package/webui/build/_app/immutable/nodes/{12.CMcby_lY.js → 16.DSUgqolV.js} +15 -15
  66. package/webui/build/_app/immutable/nodes/2.BYWOpaxy.js +1 -0
  67. package/webui/build/_app/immutable/nodes/3.wQvGs9w-.js +1 -0
  68. package/webui/build/_app/immutable/nodes/4.DTSxpKm7.js +2 -0
  69. package/webui/build/_app/immutable/nodes/5.CCtn90c0.js +1 -0
  70. package/webui/build/_app/immutable/nodes/6.C2_mjW1u.js +1 -0
  71. package/webui/build/_app/immutable/nodes/7.Dwz6W7A1.js +1 -0
  72. package/webui/build/_app/immutable/nodes/8.DzkEw6rx.js +1 -0
  73. package/webui/build/_app/immutable/nodes/9.DtlXEwe1.js +1 -0
  74. package/webui/build/_app/version.json +1 -1
  75. package/sources.example.json +0 -562
  76. package/webui/build/_app/immutable/assets/0.BUAXpTm6.css +0 -1
  77. package/webui/build/_app/immutable/assets/10.I1OuCLrU.css +0 -1
  78. package/webui/build/_app/immutable/assets/11.CrO9xaki.css +0 -1
  79. package/webui/build/_app/immutable/assets/12.BEi6fInA.css +0 -1
  80. package/webui/build/_app/immutable/assets/14.Ctlgn1LZ.css +0 -1
  81. package/webui/build/_app/immutable/assets/2.eJ80XOGm.css +0 -1
  82. package/webui/build/_app/immutable/assets/4.B8-jYAVj.css +0 -1
  83. package/webui/build/_app/immutable/assets/6.Drn-0DON.css +0 -1
  84. package/webui/build/_app/immutable/assets/7.ms2diq_q.css +0 -1
  85. package/webui/build/_app/immutable/assets/8.DKymkjjs.css +0 -1
  86. package/webui/build/_app/immutable/assets/SourcesList.BhtYlRsQ.css +0 -1
  87. package/webui/build/_app/immutable/chunks/BUngiKFg.js +0 -1
  88. package/webui/build/_app/immutable/chunks/Bt0fzibd.js +0 -1
  89. package/webui/build/_app/immutable/chunks/BxHqDcpw.js +0 -1
  90. package/webui/build/_app/immutable/chunks/ByQRbEUX.js +0 -1
  91. package/webui/build/_app/immutable/chunks/C12mHcUp.js +0 -6
  92. package/webui/build/_app/immutable/chunks/C1kQ4pHy.js +0 -1
  93. package/webui/build/_app/immutable/chunks/C74gbb4Q.js +0 -1
  94. package/webui/build/_app/immutable/chunks/CAtemnMo.js +0 -1
  95. package/webui/build/_app/immutable/chunks/CVjCNJia.js +0 -1
  96. package/webui/build/_app/immutable/chunks/CjQQ9_Q2.js +0 -2
  97. package/webui/build/_app/immutable/chunks/D-6mYMI1.js +0 -1
  98. package/webui/build/_app/immutable/chunks/D1Gs8-g3.js +0 -1
  99. package/webui/build/_app/immutable/chunks/D9dRVKgL.js +0 -1
  100. package/webui/build/_app/immutable/chunks/DCEY1XiC.js +0 -1
  101. package/webui/build/_app/immutable/chunks/DI-t-G_K.js +0 -2
  102. package/webui/build/_app/immutable/chunks/DTUxjyWL.js +0 -1
  103. package/webui/build/_app/immutable/chunks/DWJZOHke.js +0 -1
  104. package/webui/build/_app/immutable/chunks/Dgs6d7X5.js +0 -1
  105. package/webui/build/_app/immutable/chunks/DjpPK99f.js +0 -71
  106. package/webui/build/_app/immutable/chunks/DjzVVxpy.js +0 -1
  107. package/webui/build/_app/immutable/chunks/DvtNA-3X.js +0 -1
  108. package/webui/build/_app/immutable/chunks/LQVMBmDN.js +0 -1
  109. package/webui/build/_app/immutable/chunks/Qw0Qgx6J.js +0 -1
  110. package/webui/build/_app/immutable/chunks/bohabpgg.js +0 -1
  111. package/webui/build/_app/immutable/chunks/c-YfbAB_.js +0 -8
  112. package/webui/build/_app/immutable/chunks/tpTQfoNn.js +0 -1
  113. package/webui/build/_app/immutable/entry/app.Cra5Zsz4.js +0 -2
  114. package/webui/build/_app/immutable/entry/start.ToY0Qh0_.js +0 -1
  115. package/webui/build/_app/immutable/nodes/0.D2-xzG_8.js +0 -11
  116. package/webui/build/_app/immutable/nodes/1.CFixzRR6.js +0 -1
  117. package/webui/build/_app/immutable/nodes/10.ayxWydPr.js +0 -1
  118. package/webui/build/_app/immutable/nodes/11.B0JS3E2j.js +0 -1
  119. package/webui/build/_app/immutable/nodes/13.DRpZV72T.js +0 -1
  120. package/webui/build/_app/immutable/nodes/14.DVeJW6bd.js +0 -1
  121. package/webui/build/_app/immutable/nodes/2.DIZ4IPNm.js +0 -1
  122. package/webui/build/_app/immutable/nodes/3.BFSNf0FK.js +0 -1
  123. package/webui/build/_app/immutable/nodes/4.BSsIjejE.js +0 -2
  124. package/webui/build/_app/immutable/nodes/5.COxRT9Oe.js +0 -1
  125. package/webui/build/_app/immutable/nodes/6.CBgQ4YzB.js +0 -1
  126. package/webui/build/_app/immutable/nodes/7.BbzWOL0V.js +0 -6
  127. package/webui/build/_app/immutable/nodes/8.C8120200.js +0 -1
  128. package/webui/build/_app/immutable/nodes/9.BH_BGQQ4.js +0 -1
  129. /package/webui/build/_app/immutable/nodes/{15.BtYZF6FM.js → 17.BtYZF6FM.js} +0 -0
  130. /package/webui/build/_app/immutable/nodes/{16.Ba_qJjp6.js → 18.Ba_qJjp6.js} +0 -0
@@ -0,0 +1 @@
1
+ .feed-wrap.svelte-1beoyzy{--feed-sticky-gap-after: 0;margin-top:calc(-1 * var(--main-padding-top));margin-left:calc(-1 * var(--shell-gutter));margin-right:calc(-1 * var(--shell-gutter));width:calc(100% + 2 * var(--shell-gutter));max-width:none;box-sizing:border-box;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.feed-col.svelte-1beoyzy{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;background:transparent}.feed-toolbar-block.svelte-1beoyzy{flex-shrink:0;padding-top:var(--main-padding-top);padding-bottom:var(--feed-sticky-gap-after);padding-inline:var(--shell-gutter);box-sizing:border-box}.feed-body-scroll.svelte-1beoyzy{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overflow-x:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.feed-header.svelte-1beoyzy{display:flex;align-items:center;gap:.75rem;padding:.75rem 0;flex-shrink:0}.header-left.svelte-1beoyzy{display:flex;align-items:center;gap:.5rem;flex:0 1 auto;min-width:0}.header-right.svelte-1beoyzy{display:flex;align-items:center;gap:.5rem;flex-shrink:0;margin-left:auto}.filter-input.svelte-1beoyzy{flex:0 1 auto;width:100%;min-width:6.5rem;max-width:12rem;padding:.35rem .6rem;font-size:.8125rem;border:1px solid var(--color-input);border-radius:var(--radius-sm);outline:none;background:var(--color-card-elevated);color:var(--color-foreground);transition:border-color .15s,background .15s}.filter-input.svelte-1beoyzy:focus{border-color:var(--color-primary);background:var(--color-card)}.filter-input.svelte-1beoyzy::placeholder{color:var(--color-muted-foreground-soft)}.btn-sort{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;flex-shrink:0;font:inherit;color:var(--color-muted-foreground-strong);background:transparent;border:1px solid var(--color-input);border-radius:var(--radius-sm);box-shadow:none;cursor:pointer;transition:color .15s,border-color .15s,background .15s}.btn-sort:hover{color:var(--color-primary);border-color:var(--color-primary);background:transparent}.btn-sort:focus-visible{outline:2px solid color-mix(in srgb,var(--color-primary) 45%,transparent);outline-offset:1px}.sort-menu{min-width:10.5rem;padding:.3rem;box-sizing:border-box}.sort-menu-item.svelte-1beoyzy{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;padding:.4rem .55rem;font-size:.8125rem;text-align:left;border:none;border-radius:6px;cursor:pointer;background:transparent;color:var(--color-muted-foreground-strong);transition:background .12s,color .12s}.sort-menu-item.svelte-1beoyzy:hover{background:var(--color-muted);color:var(--color-accent-foreground)}.sort-menu-item.active.svelte-1beoyzy{color:var(--color-primary);font-weight:500}.sort-menu-dir.svelte-1beoyzy{font-size:.75rem;font-variant-numeric:tabular-nums;opacity:.9}.btn-add.svelte-1beoyzy{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;flex-shrink:0;color:var(--color-primary-foreground);background:var(--color-primary);border:none;border-radius:var(--radius-sm);cursor:pointer;transition:opacity .15s,background .15s}.btn-add.svelte-1beoyzy:hover{opacity:.9;background:var(--color-primary-hover, var(--color-primary))}.dropdown-panel{z-index:50;background:var(--color-card);border:1px solid var(--color-border);border-radius:var(--radius-sm);box-shadow:var(--shadow-panel)}.more-menu{width:11.5rem;min-width:11.5rem;padding:.25rem;box-sizing:border-box}.more-menu-item.svelte-1beoyzy{display:flex;align-items:center;gap:.5rem;width:100%;padding:.4rem .65rem;font-size:.8125rem;text-align:left;border:none;border-radius:6px;cursor:pointer;background:transparent;color:var(--color-muted-foreground-strong);text-decoration:none;transition:background .15s,color .15s}.more-menu-item.svelte-1beoyzy:hover:not(:disabled){background:var(--color-muted);color:var(--color-accent-foreground)}.more-menu-item.svelte-1beoyzy:disabled{opacity:.6;cursor:not-allowed}.more-menu-item-danger.svelte-1beoyzy:hover:not(:disabled){color:var(--color-destructive);background:color-mix(in srgb,var(--color-destructive) 14%,transparent)}.more-menu-item-remove.svelte-1beoyzy{color:var(--color-destructive)}.more-menu-item-remove.svelte-1beoyzy svg{color:var(--color-destructive)}.more-menu-item-remove.svelte-1beoyzy:hover:not(:disabled){background:color-mix(in srgb,var(--color-destructive) 14%,transparent);color:var(--color-destructive)}.more-menu-item.pulling.svelte-1beoyzy svg{animation:svelte-1beoyzy-spin .8s linear infinite}.state.svelte-1beoyzy{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;padding:1.5rem calc(var(--shell-gutter) + 1rem);color:var(--color-muted-foreground);font-size:.875rem;gap:.25rem}.state.error.svelte-1beoyzy{color:var(--color-destructive)}.link-btn.svelte-1beoyzy{background:none;border:none;padding:0;color:var(--color-primary);font-size:inherit;cursor:pointer;text-decoration:underline}.link-btn.svelte-1beoyzy:hover{text-decoration:underline}.feed-body-scroll.svelte-1beoyzy>.list:where(.svelte-1beoyzy){flex-shrink:0}.list.svelte-1beoyzy{min-width:0;width:100%;display:flex;flex-direction:column;border-top:1px solid var(--color-border-muted)}.row-grid.svelte-1beoyzy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem .75rem;align-items:center;padding:.55rem var(--shell-gutter);box-sizing:border-box}.card.svelte-1beoyzy{border-bottom:1px solid var(--color-border-muted);transition:background .15s;cursor:pointer}.card.svelte-1beoyzy:hover{background:var(--color-muted)}.card.svelte-1beoyzy:focus-visible{outline:1px solid color-mix(in srgb,var(--color-primary) 55%,transparent);outline-offset:-1px}.card.svelte-1beoyzy:last-child{border-bottom:none}.cell-title.svelte-1beoyzy{min-width:0}.title-block.svelte-1beoyzy{display:flex;align-items:center;gap:.35rem;min-width:0;max-width:100%;width:100%;box-sizing:border-box;color:inherit}.title-line.svelte-1beoyzy{display:flex;align-items:baseline;gap:.35rem;min-width:0;flex:1 1 0%}.title-item-count.svelte-1beoyzy{flex-shrink:0;font-size:.72rem;font-weight:500;font-variant-numeric:tabular-nums;color:var(--color-muted-foreground-soft);line-height:1.2}.source-title-favicon-slot.svelte-1beoyzy{flex-shrink:0;box-sizing:border-box;width:1rem;height:1rem;border-radius:3px;background:var(--color-muted);overflow:hidden}.source-title-favicon.svelte-1beoyzy{display:block;width:100%;height:100%;object-fit:contain}.title-text.svelte-1beoyzy{font-size:.875rem;font-weight:500;line-height:1.2;color:var(--color-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.cell-actions.svelte-1beoyzy{display:inline-flex;align-items:center;justify-content:flex-end;flex-shrink:0}@keyframes svelte-1beoyzy-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;color:var(--color-muted-foreground);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:color .15s,background .15s}.btn-icon:hover{color:var(--color-foreground);background:var(--color-muted)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;z-index:100}.modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--color-card-elevated);border-radius:10px;width:calc(100% - 2rem);max-width:460px;box-shadow:var(--shadow-panel);border:1px solid var(--color-border);display:flex;flex-direction:column;overflow:hidden;z-index:101}.modal .modal-header.svelte-1beoyzy{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem .75rem;border-bottom:1px solid var(--color-border-muted)}.modal-title{font-size:.9375rem;font-weight:600;margin:0;color:var(--color-foreground)}.modal-close{background:none;border:none;padding:.25rem;font-size:1rem;color:var(--color-muted-foreground);cursor:pointer;line-height:1;border-radius:4px}.modal-close:hover{color:var(--color-foreground);background:var(--color-muted)}.modal-body.svelte-1beoyzy{padding:1rem 1.25rem;display:flex;flex-direction:column;gap:.75rem}.field.svelte-1beoyzy{display:flex;flex-direction:column;gap:.3rem}.field-row.svelte-1beoyzy{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.field-label.svelte-1beoyzy{font-size:.8rem;font-weight:500;color:var(--color-muted-foreground-strong)}.required.svelte-1beoyzy{color:var(--color-destructive)}.ref-input-wrap.svelte-1beoyzy{display:flex;align-items:center;gap:.35rem;width:100%}.ref-input-wrap.svelte-1beoyzy .field-input:where(.svelte-1beoyzy){flex:1;min-width:0}.parse-hints.svelte-1beoyzy{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .5rem}.parse-hint.svelte-1beoyzy{display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .45rem;font-size:.72rem;font-weight:500;color:var(--color-muted-foreground-soft);border-radius:5px;border:1px solid transparent;background:transparent;transition:color .15s,border-color .15s,background .15s}.parse-hint.active.svelte-1beoyzy{color:var(--color-primary);border-color:color-mix(in srgb,var(--color-primary) 35%,transparent);background:color-mix(in srgb,var(--color-primary) 10%,transparent)}.field-input.svelte-1beoyzy{padding:.4rem .65rem;font-size:.875rem;border:1px solid var(--color-input);border-radius:var(--radius-sm);outline:none;background:var(--color-card);color:var(--color-foreground);font-family:inherit;transition:border-color .15s,background .15s;width:100%}.field-input.svelte-1beoyzy:focus{border-color:var(--color-primary);background:var(--color-card-elevated)}.field-input--weight.svelte-1beoyzy{-moz-appearance:textfield}.field-input--weight.svelte-1beoyzy::-webkit-outer-spin-button,.field-input--weight.svelte-1beoyzy::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.save-error.svelte-1beoyzy{font-size:.8rem;color:var(--color-destructive);margin:0}.modal-footer.svelte-1beoyzy{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.75rem 1.25rem;border-top:1px solid var(--color-border-muted)}.remove-dialog-footer.svelte-1beoyzy{justify-content:flex-end}.remove-dialog-text.svelte-1beoyzy{margin:0;font-size:.875rem;line-height:1.5;color:var(--color-foreground)}.remove-dialog-target.svelte-1beoyzy{margin:0;margin-top:.5rem;font-size:.8125rem;color:var(--color-muted-foreground-strong);word-break:break-all}.modal-footer-left.svelte-1beoyzy{display:flex;align-items:center}.modal-footer-right.svelte-1beoyzy{display:flex;align-items:center;gap:.5rem}.btn-delete.svelte-1beoyzy{display:inline-flex;align-items:center;gap:.3rem;padding:.4rem .8rem;font-size:.875rem;color:var(--color-destructive);background:transparent;border:1px solid color-mix(in srgb,var(--color-destructive) 45%,transparent);border-radius:var(--radius-sm);cursor:pointer;transition:background .15s}.btn-delete.svelte-1beoyzy:hover:not(:disabled){background:color-mix(in srgb,var(--color-destructive) 12%,transparent)}.confirm-delete-row.svelte-1beoyzy{display:inline-flex;align-items:center;gap:.4rem;font-size:.8rem}.confirm-delete-text.svelte-1beoyzy{color:var(--color-destructive);font-weight:500}.btn-confirm-yes.svelte-1beoyzy{padding:.3rem .7rem;font-size:.8rem;color:var(--color-destructive-foreground);background:var(--color-destructive);border:none;border-radius:5px;cursor:pointer}.btn-confirm-yes.svelte-1beoyzy:disabled{opacity:.6;cursor:not-allowed}.btn-confirm-no.svelte-1beoyzy{padding:.3rem .6rem;font-size:.8rem;color:var(--color-foreground);background:var(--color-muted);border:1px solid var(--color-border);border-radius:5px;cursor:pointer}.btn-cancel{padding:.4rem 1rem;font-size:.875rem;color:var(--color-foreground);background:var(--color-muted);border:1px solid var(--color-border);border-radius:var(--radius-sm);cursor:pointer}.btn-cancel:hover:not(:disabled){background:var(--color-accent)}.btn-save.svelte-1beoyzy{padding:.4rem 1.2rem;font-size:.875rem;color:var(--color-primary-foreground);background:var(--color-primary);border:none;border-radius:6px;cursor:pointer;transition:opacity .15s}.btn-save.svelte-1beoyzy:hover:not(:disabled){opacity:.85}.btn-save.svelte-1beoyzy:disabled{opacity:.6;cursor:not-allowed}@media(max-width:600px){.feed-wrap.svelte-1beoyzy{max-width:100%}.field-row.svelte-1beoyzy{grid-template-columns:1fr}}
@@ -0,0 +1 @@
1
+ @keyframes svelte-ypseth-source-sheet-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes svelte-ypseth-source-sheet-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes svelte-ypseth-source-sheet-panel-in{0%{opacity:.92;transform:translate3d(100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes svelte-ypseth-source-sheet-panel-out{0%{opacity:1;transform:translateZ(0)}to{opacity:.92;transform:translate3d(100%,0,0)}}.source-sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:110}.source-sheet-overlay[data-state=open]{animation:svelte-ypseth-source-sheet-overlay-in .28s cubic-bezier(.32,.72,0,1) both}.source-sheet-overlay[data-state=closed]{animation:svelte-ypseth-source-sheet-overlay-out .22s cubic-bezier(.36,0,.2,1) both}.source-sheet-panel{position:fixed;top:0;right:0;bottom:0;width:min(28rem,100vw);max-width:100%;z-index:111;display:flex;flex-direction:column;background:var(--color-card-elevated);border-left:1px solid var(--color-border);box-shadow:-8px 0 40px #00000059;outline:none;will-change:transform,opacity;backface-visibility:hidden}.source-sheet-panel[data-state=open]{animation:svelte-ypseth-source-sheet-panel-in .34s cubic-bezier(.32,.72,0,1) both}.source-sheet-panel[data-state=closed]{animation:svelte-ypseth-source-sheet-panel-out .28s cubic-bezier(.36,0,.2,1) both}@media(prefers-reduced-motion:reduce){.source-sheet-overlay[data-state=open],.source-sheet-overlay[data-state=closed],.source-sheet-panel[data-state=open],.source-sheet-panel[data-state=closed]{animation-duration:.01ms;animation-iteration-count:1}}.source-feed-panel-inline.svelte-ypseth{box-sizing:border-box;flex:1 1 auto;min-width:0;width:100%;max-width:none;display:flex;flex-direction:column;min-height:0;background:transparent;border-left:none;border-right:none}.source-sheet-inline-empty.svelte-ypseth{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:.5rem 1rem 1.25rem;text-align:center}.source-sheet-inline-empty-title.svelte-ypseth{margin:0;font-size:.875rem;font-weight:600;color:var(--color-muted-foreground-strong)}.source-sheet-inline-empty-hint.svelte-ypseth{margin:0;font-size:.78rem;line-height:1.45;color:var(--color-muted-foreground-soft);max-width:16rem}.source-feed-panel-inline.svelte-ypseth .source-sheet-header-inline:where(.svelte-ypseth){padding:0 .85rem .75rem 1rem;align-items:flex-start}.source-feed-panel-inline.svelte-ypseth h2.source-sheet-title:where(.svelte-ypseth){font-size:.9375rem;font-weight:600;margin:0;color:var(--color-foreground);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-sheet-pull-status.svelte-ypseth{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;margin:-.1rem 0 0;color:var(--color-primary)}.source-sheet-pull-status.svelte-ypseth svg{animation:svelte-ypseth-source-sheet-spin .8s linear infinite}@keyframes svelte-ypseth-source-sheet-spin{to{transform:rotate(360deg)}}@media(max-width:720px){.source-feed-panel-inline.svelte-ypseth{flex:1 1 auto;max-width:none;min-width:0;min-height:12rem;max-height:min(42vh,22rem);border-left:none;border-right:none;border-top:none}}.source-sheet-header.svelte-ypseth{flex-shrink:0;display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:1rem 1rem .75rem 1.25rem;border-bottom:1px solid var(--color-border-muted)}.source-sheet-title-wrap.svelte-ypseth{flex:1 1 auto;min-width:0}.source-sheet-title-row.svelte-ypseth{min-width:0}.source-sheet-title-cluster.svelte-ypseth{display:flex;align-items:center;gap:.35rem;min-width:0;max-width:100%}.source-sheet-title-cluster.svelte-ypseth .source-sheet-title,.source-sheet-title-cluster.svelte-ypseth h2.source-sheet-title:where(.svelte-ypseth){flex:1 1 0%;min-width:0}.source-sheet-proxy.svelte-ypseth{flex-shrink:0;display:inline-flex;align-items:center;line-height:0;color:var(--color-muted-foreground-soft)}.source-sheet-proxy-globe{opacity:.9}.source-sheet-title{font-size:.9375rem;font-weight:600;margin:0;color:var(--color-foreground);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-sheet-sub.svelte-ypseth{margin:.35rem 0 0;font-size:.72rem;color:var(--color-muted-foreground-soft);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-sheet-sub.source-sheet-sub-desc.svelte-ypseth{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;word-break:break-word;text-overflow:unset}.source-sheet-close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;padding:.35rem;color:var(--color-muted-foreground);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:color .15s,background .15s}.source-sheet-close:hover{color:var(--color-foreground);background:var(--color-muted)}.source-sheet-body.svelte-ypseth{flex:1;min-height:0;overflow-y:auto;padding:.5rem 0 1rem}.source-sheet-body.svelte-ypseth::-webkit-scrollbar{width:5px}.source-sheet-body.svelte-ypseth::-webkit-scrollbar-thumb{background:var(--color-scrollbar-thumb);border-radius:4px}.source-sheet-state.svelte-ypseth{padding:2rem 1.25rem;text-align:center;font-size:.875rem;color:var(--color-muted-foreground)}.source-sheet-state.err.svelte-ypseth{color:var(--color-destructive)}.source-feed-list.svelte-ypseth{list-style:none;margin:0;padding:0}.source-feed-row.svelte-ypseth{border-bottom:1px solid var(--color-border-muted)}.source-feed-row.svelte-ypseth:last-child{border-bottom:none}.source-feed-link.svelte-ypseth{display:flex;flex-direction:column;align-items:stretch;gap:.25rem;padding:.65rem 1.25rem;min-width:0;text-decoration:none;color:inherit;transition:background .12s}.source-feed-link.svelte-ypseth:hover{background:var(--color-muted)}.source-feed-title.svelte-ypseth{font-size:.8125rem;font-weight:500;color:var(--color-foreground);line-height:1.4;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-feed-link.svelte-ypseth:hover .source-feed-title:where(.svelte-ypseth){color:var(--color-primary)}.source-feed-meta.svelte-ypseth{display:inline-flex;align-items:center;align-self:flex-start;gap:.35rem;flex-shrink:0;font-size:.7rem;color:var(--color-muted-foreground-soft);font-variant-numeric:tabular-nums}.source-feed-ext.svelte-ypseth{opacity:.65;flex-shrink:0}
@@ -1 +1 @@
1
- import{h as s,a as l}from"./BUngiKFg.js";function h(n,a,r,t,d){var i;s&&l();var e=(i=a.$$slots)==null?void 0:i[r],f=!1;e===!0&&(e=a.children,f=!0),e===void 0||e(n,f?()=>t:t)}export{h as s};
1
+ import{h as s,a as l}from"./BbWUOQ_m.js";function h(n,a,r,t,d){var i;s&&l();var e=(i=a.$$slots)==null?void 0:i[r],f=!1;e===!0&&(e=a.children,f=!0),e===void 0||e(n,f?()=>t:t)}export{h as s};
@@ -0,0 +1,2 @@
1
+ import{b5 as Y,M as U,p as X,X as G,h as T,S as x,m as P,ah as rr,v as ir,b6 as fr,b7 as ar,b8 as tr,b9 as er,ba as ur,i as sr,bb as or,bc as cr,bd as M,e as V,be as lr,bf as nr,O as vr,bg as dr,bh as br}from"./BbWUOQ_m.js";import{i as hr,a as gr,d as _r,c as Ar,n as Sr,b as Tr}from"./DMWEh-Ek.js";function Nr(r,f){var i=void 0,a;Y(()=>{i!==(i=f())&&(a&&(U(a),a=null),i&&(a=X(()=>{G(()=>i(r))})))})}function z(r){var f,i,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var t=r.length;for(f=0;f<t;f++)r[f]&&(i=z(r[f]))&&(a&&(a+=" "),a+=i)}else for(i in r)r[i]&&(a&&(a+=" "),a+=i);return a}function Or(){for(var r,f,i=0,a="",t=arguments.length;i<t;i++)(r=arguments[i])&&(f=z(r))&&(a&&(a+=" "),a+=f);return a}function pr(r){return typeof r=="object"?Or(r):r??""}const B=[...`
2
+ \r\f \v\uFEFF`];function Er(r,f,i){var a=r==null?"":""+r;if(f&&(a=a?a+" "+f:f),i){for(var t of Object.keys(i))if(i[t])a=a?a+" "+t:t;else if(a.length)for(var e=t.length,u=0;(u=a.indexOf(t,u))>=0;){var o=u+e;(u===0||B.includes(a[u-1]))&&(o===a.length||B.includes(a[o]))?a=(u===0?"":a.substring(0,u))+a.substring(o+1):u=o}}return a===""?null:a}function D(r,f=!1){var i=f?" !important;":";",a="";for(var t of Object.keys(r)){var e=r[t];e!=null&&e!==""&&(a+=" "+t+": "+e+i)}return a}function w(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function Ir(r,f){if(f){var i="",a,t;if(Array.isArray(f)?(a=f[0],t=f[1]):a=f,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var e=!1,u=0,o=!1,n=[];a&&n.push(...Object.keys(a).map(w)),t&&n.push(...Object.keys(t).map(w));var v=0,g=-1;const O=r.length;for(var d=0;d<O;d++){var s=r[d];if(o?s==="/"&&r[d-1]==="*"&&(o=!1):e?e===s&&(e=!1):s==="/"&&r[d+1]==="*"?o=!0:s==='"'||s==="'"?e=s:s==="("?u++:s===")"&&u--,!o&&e===!1&&u===0){if(s===":"&&g===-1)g=d;else if(s===";"||d===O-1){if(g!==-1){var N=w(r.substring(v,g).trim());if(!n.includes(N)){s!==";"&&d++;var S=r.substring(v,d).trim();i+=" "+S+";"}}v=d+1,g=-1}}}}return a&&(i+=D(a)),t&&(i+=D(t,!0)),i=i.trim(),i===""?null:i}return r==null?null:String(r)}function Lr(r,f,i,a,t,e){var u=r.__className;if(T||u!==i||u===void 0){var o=Er(i,a,e);(!T||o!==r.getAttribute("class"))&&(o==null?r.removeAttribute("class"):f?r.className=o:r.setAttribute("class",o)),r.__className=i}else if(e&&t!==e)for(var n in e){var v=!!e[n];(t==null||v!==!!t[n])&&r.classList.toggle(n,v)}return e}function j(r,f={},i,a){for(var t in i){var e=i[t];f[t]!==e&&(i[t]==null?r.style.removeProperty(t):r.style.setProperty(t,e,a))}}function kr(r,f,i,a){var t=r.__style;if(T||t!==f){var e=Ir(f,a);(!T||e!==r.getAttribute("style"))&&(e==null?r.removeAttribute("style"):r.style.cssText=e),r.__style=f}else a&&(Array.isArray(a)?(j(r,i==null?void 0:i[0],a[0]),j(r,i==null?void 0:i[1],a[1],"important")):j(r,i,a));return a}function y(r,f,i=!1){if(r.multiple){if(f==null)return;if(!ir(f))return fr();for(var a of r.options)a.selected=f.includes(k(a));return}for(a of r.options){var t=k(a);if(ar(t,f)){a.selected=!0;return}}(!i||f!==void 0)&&(r.selectedIndex=-1)}function F(r){var f=new MutationObserver(()=>{y(r,r.__value)});f.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),rr(()=>{f.disconnect()})}function Rr(r,f,i=f){var a=new WeakSet,t=!0;x(r,"change",e=>{var u=e?"[selected]":":checked",o;if(r.multiple)o=[].map.call(r.querySelectorAll(u),k);else{var n=r.querySelector(u)??r.querySelector("option:not([disabled])");o=n&&k(n)}i(o),r.__value=o,P!==null&&a.add(P)}),G(()=>{var e=f();if(r===document.activeElement){var u=P;if(a.has(u))return}if(y(r,e,t),t&&e===void 0){var o=r.querySelector(":checked");o!==null&&(e=k(o),i(e))}r.__value=e,t=!1}),F(r)}function k(r){return"__value"in r?r.__value:r.value}const I=Symbol("class"),L=Symbol("style"),W=Symbol("is custom element"),Z=Symbol("is html"),yr=M?"link":"LINK",Cr=M?"input":"INPUT",Mr=M?"option":"OPTION",Pr=M?"select":"SELECT";function wr(r){if(T){var f=!1,i=()=>{if(!f){if(f=!0,r.hasAttribute("value")){var a=r.value;C(r,"value",null),r.value=a}if(r.hasAttribute("checked")){var t=r.checked;C(r,"checked",null),r.checked=t}}};r.__on_r=i,vr(i),dr()}}function Hr(r,f){var i=q(r);i.checked!==(i.checked=f??void 0)&&(r.checked=f)}function jr(r,f){f?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function C(r,f,i,a){var t=q(r);T&&(t[f]=r.getAttribute(f),f==="src"||f==="srcset"||f==="href"&&r.nodeName===yr)||t[f]!==(t[f]=i)&&(f==="loading"&&(r[br]=i),i==null?r.removeAttribute(f):typeof i!="string"&&J(r).includes(f)?r[f]=i:r.setAttribute(f,i))}function Ur(r,f,i,a,t=!1,e=!1){if(T&&t&&r.nodeName===Cr){var u=r,o=u.type==="checkbox"?"defaultChecked":"defaultValue";o in i||wr(u)}var n=q(r),v=n[W],g=!n[Z];let d=T&&v;d&&V(!1);var s=f||{},N=r.nodeName===Mr;for(var S in f)S in i||(i[S]=null);i.class?i.class=pr(i.class):i[I]&&(i.class=null),i[L]&&(i.style??(i.style=null));var O=J(r);for(const c in i){let l=i[c];if(N&&c==="value"&&l==null){r.value=r.__value="",s[c]=l;continue}if(c==="class"){var E=r.namespaceURI==="http://www.w3.org/1999/xhtml";Lr(r,E,l,a,f==null?void 0:f[I],i[I]),s[c]=l,s[I]=i[I];continue}if(c==="style"){kr(r,l,f==null?void 0:f[L],i[L]),s[c]=l,s[L]=i[L];continue}var _=s[c];if(!(l===_&&!(l===void 0&&r.hasAttribute(c)))){s[c]=l;var R=c[0]+c[1];if(R!=="$$")if(R==="on"){const A={},p="$$"+c;let h=c.slice(2);var H=Tr(h);if(hr(h)&&(h=h.slice(0,-7),A.capture=!0),!H&&_){if(l!=null)continue;r.removeEventListener(h,s[p],A),s[p]=null}if(H)gr(h,r,l),_r([h]);else if(l!=null){let Q=function(m){s[c].call(this,m)};s[p]=Ar(h,r,Q,A)}}else if(c==="style")C(r,c,l);else if(c==="autofocus")lr(r,!!l);else if(!v&&(c==="__value"||c==="value"&&l!=null))r.value=r.__value=l;else if(c==="selected"&&N)jr(r,l);else{var b=c;g||(b=Sr(b));var $=b==="defaultValue"||b==="defaultChecked";if(l==null&&!v&&!$)if(n[c]=null,b==="value"||b==="checked"){let A=r;const p=f===void 0;if(b==="value"){let h=A.defaultValue;A.removeAttribute(b),A.defaultValue=h,A.value=A.__value=p?h:null}else{let h=A.defaultChecked;A.removeAttribute(b),A.defaultChecked=h,A.checked=p?h:!1}}else r.removeAttribute(c);else $||O.includes(b)&&(v||typeof l!="string")?(r[b]=l,b in n&&(n[b]=nr)):typeof l!="function"&&C(r,b,l)}}}return d&&V(!0),s}function $r(r,f,i=[],a=[],t=[],e,u=!1,o=!1){tr(t,i,a,n=>{var v=void 0,g={},d=r.nodeName===Pr,s=!1;if(Y(()=>{var S=f(...n.map(sr)),O=Ur(r,v,S,e,u,o);s&&d&&"value"in S&&y(r,S.value);for(let _ of Object.getOwnPropertySymbols(g))S[_]||U(g[_]);for(let _ of Object.getOwnPropertySymbols(S)){var E=S[_];_.description===or&&(!v||E!==v[_])&&(g[_]&&U(g[_]),g[_]=X(()=>Nr(r,()=>E))),O[_]=E}v=O}),d){var N=r;G(()=>{y(N,v.value,!0),F(N)})}s=!0})}function q(r){return r.__attributes??(r.__attributes={[W]:r.nodeName.includes("-"),[Z]:r.namespaceURI===er})}var K=new Map;function J(r){var f=r.getAttribute("is")||r.nodeName,i=K.get(f);if(i)return i;K.set(f,i=[]);for(var a,t=r,e=Element.prototype;e!==t;){a=cr(t);for(var u in a)a[u].set&&i.push(u);t=ur(t)}return i}const Vr="rssany",Br="https://github.com/joohw/rssany";export{Br as G,Vr as P,Lr as a,Hr as b,Rr as c,kr as d,$r as e,Or as f,wr as r,C as s};
@@ -0,0 +1 @@
1
+ import{aF as w,n as v,N as f,aG as E,Y as T,aH as N,aI as y,h as i,g as n,aJ as M,c as x,aK as C,aL as L,a as h,C as O}from"./BbWUOQ_m.js";var m;const c=((m=globalThis==null?void 0:globalThis.window)==null?void 0:m.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function b(e){return(c==null?void 0:c.createHTML(e))??e}function g(e){var r=w("template");return r.innerHTML=b(e.replaceAll("<!>","<!---->")),r.content}function a(e,r){var t=T;t.nodes===null&&(t.nodes={start:e,end:r,a:null,t:null})}function R(e,r){var t=(r&N)!==0,l=(r&y)!==0,s,u=!e.startsWith("<!>");return()=>{if(i)return a(n,null),n;s===void 0&&(s=g(u?e:"<!>"+e),t||(s=f(s)));var o=l||E?document.importNode(s,!0):s.cloneNode(!0);if(t){var _=f(o),d=o.lastChild;a(_,d)}else a(o,o);return o}}function A(e,r,t="svg"){var l=!e.startsWith("<!>"),s=`<${t}>${l?e:"<!>"+e}</${t}>`,u;return()=>{if(i)return a(n,null),n;if(!u){var o=g(s),_=f(o);u=f(_)}var d=u.cloneNode(!0);return a(d,d),d}}function $(e,r){return A(e,r,"svg")}function D(e=""){if(!i){var r=v(e+"");return a(r,r),r}var t=n;return t.nodeType!==M?(t.before(t=v()),x(t)):C(t),a(t,t),t}function H(){if(i)return a(n,null),n;var e=document.createDocumentFragment(),r=document.createComment(""),t=v();return e.append(r,t),a(r,t),e}function F(e,r){if(i){var t=T;((t.f&L)===0||t.nodes.end===null)&&(t.nodes.end=n),h();return}e!==null&&e.before(r)}function S(){var e,r;if(i&&n&&n.nodeType===O&&((e=n.textContent)!=null&&e.startsWith("$"))){const t=n.textContent.substring(1);return h(),t}return(r=window.__svelte??(window.__svelte={})).uid??(r.uid=1),`c${window.__svelte.uid++}`}const I="5";var p;typeof window<"u"&&((p=window.__svelte??(window.__svelte={})).v??(p.v=new Set)).add(I);export{F as a,a as b,H as c,$ as d,R as f,S as p,D as t};
@@ -0,0 +1 @@
1
+ import{b as ae,h as M,a as ie,i as W,r as le,j as ue,s as Z,c as q,e as B,g as L,C as se,k as oe,l as $,m as ve,n as Y,o as w,p as y,q as de,t as te,u as ce,v as pe,w as J,x as ge,y as he,z as _e,A as j,B as Ee,D as me,F as ne,G as re,I as V,J as Te,K as we,L as Ae,M as Ce,N as Se,O as Ie,P as Ne,Q as fe,R as xe}from"./BbWUOQ_m.js";function Oe(e,r){return r}function De(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 v=e.outrogroups;G(e,J(l.done)),v.delete(l),v.size===0&&(e.outrogroups=null)}}else i-=1},!1)}if(i===0){var a=s.length===0&&u!==null;if(a){var t=u,f=t.parentNode;we(f),f.append(t),e.items.clear()}G(e,r,!a)}else l={pending:new Set(r),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(l)}function G(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 be(e,r,u,s,c,l=null){var i=e,p=new Map,a=(r&fe)!==0;if(a){var t=e;i=M?q(Se(t)):t.appendChild(Y())}M&&ie();var f=null,E=ce(()=>{var d=u();return pe(d)?d:d==null?[]:J(d)}),v,m=new Map,T=!0;function x(d){(C.effect.f&me)===0&&(C.pending.delete(d),C.fallback=f,Re(C,v,i,r,s),f!==null&&(v.length===0?(f.f&w)===0?ne(f):(f.f^=w,b(f,null,i)):re(f,()=>{f=null})))}function n(d){C.pending.delete(d)}var o=ae(()=>{v=W(E);var d=v.length;let h=!1;if(M){var F=le(i)===ue;F!==(d===0)&&(i=Z(),q(i),B(!1),h=!0)}for(var S=new Set,g=ve,R=te(),I=0;I<d;I+=1){M&&L.nodeType===se&&L.data===oe&&(i=L,h=!0,B(!1));var k=v[I],D=s(k,I),_=T?null:p.get(D);_?(_.v&&$(_.v,k),_.i&&$(_.i,I),R&&g.unskip_effect(_.e)):(_=ke(p,T?i:ee??(ee=Y()),k,D,I,c,r,u),T||(_.e.f|=w),p.set(D,_)),S.add(D)}if(d===0&&l&&!f&&(T?f=y(()=>l(i)):(f=y(()=>l(ee??(ee=Y()))),f.f|=w)),d>S.size&&de(),M&&d>0&&q(Z()),!T)if(m.set(g,S),R){for(const[H,z]of p)S.has(H)||g.skip_effect(z.e);g.oncommit(x),g.ondiscard(n)}else x(g);h&&B(!0),W(E)}),C={effect:o,items:p,pending:m,outrogroups:null,fallback:f};T=!1,M&&(i=L)}function O(e){for(;e!==null&&(e.f&Te)===0;)e=e.next;return e}function Re(e,r,u,s,c){var k,D,_,H,z,K,P,Q,U;var l=(s&xe)!==0,i=r.length,p=e.items,a=O(e.effect.first),t,f=null,E,v=[],m=[],T,x,n,o;if(l)for(o=0;o<i;o+=1)T=r[o],x=c(T,o),n=p.get(x).e,(n.f&w)===0&&((D=(k=n.nodes)==null?void 0:k.a)==null||D.measure(),(E??(E=new Set)).add(n));for(o=0;o<i;o+=1){if(T=r[o],x=c(T,o),n=p.get(x).e,e.outrogroups!==null)for(const A of e.outrogroups)A.pending.delete(n),A.done.delete(n);if((n.f&V)!==0&&(ne(n),l&&((H=(_=n.nodes)==null?void 0:_.a)==null||H.unfix(),(E??(E=new Set)).delete(n))),(n.f&w)!==0)if(n.f^=w,n===a)b(n,null,u);else{var C=f?f.next:a;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,f,n),N(e,n,C),b(n,C,u),f=n,v=[],m=[],a=O(f.next);continue}if(n!==a){if(t!==void 0&&t.has(n)){if(v.length<m.length){var d=m[0],h;f=d.prev;var F=v[0],S=v[v.length-1];for(h=0;h<v.length;h+=1)b(v[h],d,u);for(h=0;h<m.length;h+=1)t.delete(m[h]);N(e,F.prev,S.next),N(e,f,F),N(e,S,d),a=d,f=S,o-=1,v=[],m=[]}else t.delete(n),b(n,a,u),N(e,n.prev,n.next),N(e,n,f===null?e.effect.first:f.next),N(e,f,n),f=n;continue}for(v=[],m=[];a!==null&&a!==n;)(t??(t=new Set)).add(a),m.push(a),a=O(a.next);if(a===null)continue}(n.f&w)===0&&v.push(n),f=n,a=O(n.next)}if(e.outrogroups!==null){for(const A of e.outrogroups)A.pending.size===0&&(G(e,J(A.done)),(z=e.outrogroups)==null||z.delete(A));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var g=[];if(t!==void 0)for(n of t)(n.f&V)===0&&g.push(n);for(;a!==null;)(a.f&V)===0&&a!==e.fallback&&g.push(a),a=O(a.next);var R=g.length;if(R>0){var I=(s&fe)!==0&&i===0?u:null;if(l){for(o=0;o<R;o+=1)(P=(K=g[o].nodes)==null?void 0:K.a)==null||P.measure();for(o=0;o<R;o+=1)(U=(Q=g[o].nodes)==null?void 0:Q.a)==null||U.fix()}De(e,g,I)}}l&&Ie(()=>{var A,X;if(E!==void 0)for(n of E)(X=(A=n.nodes)==null?void 0:A.a)==null||X.apply()})}function ke(e,r,u,s,c,l,i,p){var a=(i&ge)!==0?(i&he)===0?_e(u,!1,!1):j(u):null,t=(i&Ee)!==0?j(c):null;return{v:a,i:t,e:y(()=>(l(r,a??u,t??c,p),()=>{e.delete(s)}))}}function b(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{be as e,Oe as i};
@@ -0,0 +1 @@
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{b4 as P,i as T,a5 as I,T as gt,bq as De}from"./BbWUOQ_m.js";import{w as Dt}from"./D5GvRCv7.js";import{b as qe,H as qt,S as Vt,R as Bt}from"./BUApaBEI.js";import{o as te}from"./Bp63qm3L.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=qe(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_r3ntyw)==null?void 0:fe.base)??"";var ue;const tn=((ue=globalThis.__sveltekit_r3ntyw)==null?void 0:ue.assets)??U??"",en="1775806756267",me="sveltekit:snapshot",_e="sveltekit:scroll",we="sveltekit:states",nn="sveltekit:pageurl",F="sveltekit:history",X="sveltekit:navigation",D={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={...D,"":D.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=Dt(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}=Dt(!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 qt||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:Dt(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,q;const bt=new Set,le=new Map;async function Dn(t,e,n){var s,i,o,l,c;(s=globalThis.__sveltekit_r3ntyw)!=null&&s.data&&globalThis.__sveltekit_r3ntyw.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&&gt().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 qt)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 _=q;q=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(),q===l&&(q=_);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,q!==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=De)==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,D.hover)},20)});function a(o){o.defaultPrevented||s(o.composedPath()[0],D.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=D.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===D.viewport&&r.observe(o),h.preload_code===D.eager&&It(l))}}J.add(i),i()}function nt(t,e){if(t instanceof qt)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 qn(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(q={},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:q,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{Dn as a,qn as g,Cn as l,S as p,$ as s};
@@ -0,0 +1 @@
1
+ var mn=Object.defineProperty;var Nt=e=>{throw TypeError(e)};var bn=(e,t,n)=>t in e?mn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t,n)=>bn(e,typeof t!="symbol"?t+"":t,n),tt=(e,t,n)=>t.has(e)||Nt("Cannot "+n);var u=(e,t,n)=>(tt(e,t,"read from private field"),n?n.call(e):t.get(e)),k=(e,t,n)=>t.has(e)?Nt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),be=(e,t,n,r)=>(tt(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),D=(e,t,n)=>(tt(e,t,"access private method"),n);var Tn=Array.isArray,An=Array.prototype.indexOf,Re=Array.prototype.includes,Er=Array.from,mr=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,Sn=Object.getOwnPropertyDescriptors,xn=Object.prototype,Rn=Array.prototype,Yt=Object.getPrototypeOf,Ot=Object.isExtensible;function br(e){return typeof e=="function"}const Nn=()=>{};function Tr(e){return e()}function On(e){for(var t=0;t<e.length;t++)e[t]()}function Ht(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Ar(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const A=2,pe=4,Ye=8,dt=1<<24,Z=16,z=32,re=64,kn=128,L=512,m=1024,N=2048,V=4096,q=8192,U=16384,me=32768,kt=1<<25,Ge=65536,st=1<<17,Cn=1<<18,Oe=1<<19,qt=1<<20,Sr=1<<25,we=65536,it=1<<21,We=1<<22,te=1<<23,de=Symbol("$state"),xr=Symbol("legacy props"),Rr=Symbol(""),K=new class extends Error{constructor(){super(...arguments);oe(this,"name","StaleReactionError");oe(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var jt;const Or=!!((jt=globalThis.document)!=null&&jt.contentType)&&globalThis.document.contentType.includes("xml"),kr=1,Je=3,Ut=8;function Dn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function In(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Cr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Pn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Mn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ln(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Dr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ir(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function jn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Hn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Pr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Mr=1,Fr=2,Lr=4,jr=8,Yr=16,Hr=1,qr=2,Ur=4,Vr=8,Br=16,Gr=1,zr=2,qn="[",Un="[!",Kr="[?",Vn="]",ht={},S=Symbol(),Bn="http://www.w3.org/1999/xhtml",$r="http://www.w3.org/2000/svg",Xr="@attach";function pt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Zr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Wr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let ye=!1;function Jr(e){ye=e}let T;function Ne(e){if(e===null)throw pt(),ht;return T=e}function Qr(){return Ne(le(T))}function es(e){if(ye){if(le(T)!==null)throw pt(),ht;T=e}}function ts(e=1){if(ye){for(var t=e,n=T;t--;)n=le(n);T=n}}function ns(e=!0){for(var t=0,n=T;;){if(n.nodeType===Ut){var r=n.data;if(r===Vn){if(t===0)return n;t-=1}else(r===qn||r===Un||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=le(n);e&&n.remove(),n=s}}function rs(e){if(!e||e.nodeType!==Ut)throw pt(),ht;return e.data}function Vt(e){return e===this.v}function Gn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Bt(e){return!Gn(e,this.v)}let Qe=!1;function ss(){Qe=!0}let g=null;function ze(e){g=e}function is(e){return et().get(e)}function as(e,t){return et().set(e,t),t}function fs(e){return et().has(e)}function ls(){return et()}function os(e,t=!1,n){g={p:g,i:!1,c:null,e:null,s:e,x:null,r:y,l:Qe&&!t?{s:null,u:null,$:[]}:null}}function us(e){var t=g,n=t.e;if(n!==null){t.e=null;for(var r of n)ln(r)}return t.i=!0,g=t.p,{}}function He(){return!Qe||g!==null&&g.l===null}function et(e){return g===null&&Dn(),g.c??(g.c=new Map(zn(g)||void 0))}function zn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let ue=[];function Gt(){var e=ue;ue=[],On(e)}function at(e){if(ue.length===0&&!Me){var t=ue;queueMicrotask(()=>{t===ue&&Gt()})}ue.push(e)}function Kn(){for(;ue.length>0;)Gt()}function $n(e){var t=y;if(t===null)return p.f|=te,e;if((t.f&me)===0&&(t.f&pe)===0)throw e;Ke(e,t)}function Ke(e,t){for(;t!==null;){if((t.f&kn)!==0){if((t.f&me)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Xn=-7169;function E(e,t){e.f=e.f&Xn|t}function wt(e){(e.f&L)!==0||e.deps===null?E(e,m):E(e,V)}function zt(e){if(e!==null)for(const t of e)(t.f&A)===0||(t.f&we)===0||(t.f^=we,zt(t.deps))}function Zn(e,t,n){(e.f&N)!==0?t.add(e):(e.f&V)!==0&&n.add(e),zt(e.deps),E(e,m)}const W=new Set;let w=null,x=null,ft=null,Me=!1,nt=!1,Te=null,qe=null;var Ct=0;let Wn=1;var Ae,Se,$,B,Le,P,je,ee,X,G,xe,ve,b,Ue,Kt,Ve,lt,ot,$t;const Ze=class Ze{constructor(){k(this,b);oe(this,"id",Wn++);oe(this,"current",new Map);oe(this,"previous",new Map);k(this,Ae,new Set);k(this,Se,new Set);k(this,$,new Map);k(this,B,new Map);k(this,Le,null);k(this,P,[]);k(this,je,[]);k(this,ee,new Set);k(this,X,new Set);k(this,G,new Map);oe(this,"is_fork",!1);k(this,xe,!1);k(this,ve,new Set)}skip_effect(t){u(this,G).has(t)||u(this,G).set(t,{d:[],m:[]})}unskip_effect(t){var n=u(this,G).get(t);if(n){u(this,G).delete(t);for(var r of n.d)E(r,N),this.schedule(r);for(r of n.m)E(r,V),this.schedule(r)}}capture(t,n,r=!1){n!==S&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&te)===0&&(this.current.set(t,[t.v,r]),x==null||x.set(t,t.v))}activate(){w=this}deactivate(){w=null,x=null}flush(){try{nt=!0,w=this,D(this,b,Ve).call(this)}finally{Ct=0,ft=null,Te=null,qe=null,nt=!1,w=null,x=null,ne.clear()}}discard(){for(const t of u(this,Se))t(this);u(this,Se).clear(),W.delete(this)}register_created_effect(t){u(this,je).push(t)}increment(t,n){let r=u(this,$).get(n)??0;if(u(this,$).set(n,r+1),t){let s=u(this,B).get(n)??0;u(this,B).set(n,s+1)}}decrement(t,n,r){let s=u(this,$).get(n)??0;if(s===1?u(this,$).delete(n):u(this,$).set(n,s-1),t){let i=u(this,B).get(n)??0;i===1?u(this,B).delete(n):u(this,B).set(n,i-1)}u(this,xe)||r||(be(this,xe,!0),at(()=>{be(this,xe,!1),this.flush()}))}transfer_effects(t,n){for(const r of t)u(this,ee).add(r);for(const r of n)u(this,X).add(r);t.clear(),n.clear()}oncommit(t){u(this,Ae).add(t)}ondiscard(t){u(this,Se).add(t)}settled(){return(u(this,Le)??be(this,Le,Ht())).promise}static ensure(){if(w===null){const t=w=new Ze;nt||(W.add(w),Me||at(()=>{w===t&&t.flush()}))}return w}apply(){{x=null;return}}schedule(t){var s;if(ft=t,(s=t.b)!=null&&s.is_pending&&(t.f&(pe|Ye|dt))!==0&&(t.f&me)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Te!==null&&n===y&&(p===null||(p.f&A)===0))return;if((r&(re|z))!==0){if((r&m)===0)return;n.f^=m}}u(this,P).push(n)}};Ae=new WeakMap,Se=new WeakMap,$=new WeakMap,B=new WeakMap,Le=new WeakMap,P=new WeakMap,je=new WeakMap,ee=new WeakMap,X=new WeakMap,G=new WeakMap,xe=new WeakMap,ve=new WeakMap,b=new WeakSet,Ue=function(){return this.is_fork||u(this,B).size>0},Kt=function(){for(const r of u(this,ve))for(const s of u(r,B).keys()){for(var t=!1,n=s;n.parent!==null;){if(u(this,G).has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1},Ve=function(){var l,f;if(Ct++>1e3&&(W.delete(this),Qn()),!D(this,b,Ue).call(this)){for(const a of u(this,ee))u(this,X).delete(a),E(a,N),this.schedule(a);for(const a of u(this,X))E(a,V),this.schedule(a)}const t=u(this,P);be(this,P,[]),this.apply();var n=Te=[],r=[],s=qe=[];for(const a of t)try{D(this,b,lt).call(this,a,n,r)}catch(c){throw Wt(a),c}if(w=null,s.length>0){var i=Ze.ensure();for(const a of s)i.schedule(a)}if(Te=null,qe=null,D(this,b,Ue).call(this)||D(this,b,Kt).call(this)){D(this,b,ot).call(this,r),D(this,b,ot).call(this,n);for(const[a,c]of u(this,G))Zt(a,c)}else{u(this,$).size===0&&W.delete(this),u(this,ee).clear(),u(this,X).clear();for(const a of u(this,Ae))a(this);u(this,Ae).clear(),Dt(r),Dt(n),(l=u(this,Le))==null||l.resolve()}var o=w;if(u(this,P).length>0){const a=o??(o=this);u(a,P).push(...u(this,P).filter(c=>!u(a,P).includes(c)))}o!==null&&(W.add(o),D(f=o,b,Ve).call(f)),W.has(this)||D(this,b,$t).call(this)},lt=function(t,n,r){t.f^=m;for(var s=t.first;s!==null;){var i=s.f,o=(i&(z|re))!==0,l=o&&(i&m)!==0,f=l||(i&q)!==0||u(this,G).has(s);if(!f&&s.fn!==null){o?s.f^=m:(i&pe)!==0?n.push(s):ke(s)&&((i&Z)!==0&&u(this,X).add(s),Ee(s));var a=s.first;if(a!==null){s=a;continue}}for(;s!==null;){var c=s.next;if(c!==null){s=c;break}s=s.parent}}},ot=function(t){for(var n=0;n<t.length;n+=1)Zn(t[n],u(this,ee),u(this,X))},$t=function(){var c,h,v;for(const d of W){var t=d.id<this.id,n=[];for(const[_,[O,R]]of this.current){if(d.current.has(_)){var r=d.current.get(_)[0];if(t&&O!==r)d.current.set(_,[O,R]);else continue}n.push(_)}var s=[...d.current.keys()].filter(_=>!this.current.has(_));if(s.length===0)t&&d.discard();else if(n.length>0){d.activate();var i=new Set,o=new Map;for(var l of n)Xt(l,s,i,o);o=new Map;var f=[...d.current.keys()].filter(_=>this.current.has(_)?this.current.get(_)[0]!==_:!0);for(const _ of u(this,je))(_.f&(U|q|st))===0&&yt(_,f,o)&&((_.f&(We|Z))!==0?(E(_,N),d.schedule(_)):u(d,ee).add(_));if(u(d,P).length>0){d.apply();for(var a of u(d,P))D(c=d,b,lt).call(c,a,[],[]);be(d,P,[])}d.deactivate()}}for(const d of W)u(d,ve).has(this)&&(u(d,ve).delete(this),u(d,ve).size===0&&!D(h=d,b,Ue).call(h)&&(d.activate(),D(v=d,b,Ve).call(v)))};let se=Ze;function Jn(e){var t=Me;Me=!0;try{for(var n;;){if(Kn(),w===null)return n;w.flush()}}finally{Me=t}}function Qn(){try{Ln()}catch(e){Ke(e,ft)}}let Y=null;function Dt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(U|q))===0&&ke(r)&&(Y=new Set,Ee(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&cn(r),(Y==null?void 0:Y.size)>0)){ne.clear();for(const s of Y){if((s.f&(U|q))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)Y.has(o)&&(Y.delete(o),i.push(o)),o=o.parent;for(let l=i.length-1;l>=0;l--){const f=i[l];(f.f&(U|q))===0&&Ee(f)}}Y.clear()}}Y=null}}function Xt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&A)!==0?Xt(s,t,n,r):(i&(We|Z))!==0&&(i&N)===0&&yt(s,t,r)&&(E(s,N),gt(s))}}function yt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Re.call(t,s))return!0;if((s.f&A)!==0&&yt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function gt(e){w.schedule(e)}function Zt(e,t){if(!((e.f&z)!==0&&(e.f&m)!==0)){(e.f&N)!==0?t.d.push(e):(e.f&V)!==0&&t.m.push(e),E(e,m);for(var n=e.first;n!==null;)Zt(n,t),n=n.next}}function Wt(e){E(e,m);for(var t=e.first;t!==null;)Wt(t),t=t.next}function Jt(e,t,n,r){const s=He()?mt:nr;var i=e.filter(v=>!v.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var o=y,l=er(),f=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(v=>v.promise)):null;function a(v){l();try{r(v)}catch(d){(o.f&U)===0&&Ke(d,o)}$e()}if(n.length===0){f.then(()=>a(t.map(s)));return}var c=Et();function h(){Promise.all(n.map(v=>tr(v))).then(v=>a([...t.map(s),...v])).catch(v=>Ke(v,o)).finally(()=>c())}f?f.then(()=>{l(),h(),$e()}):h()}function er(){var e=y,t=p,n=g,r=w;return function(i=!0){fe(e),ae(t),ze(n),i&&(e.f&U)===0&&(r==null||r.activate(),r==null||r.apply())}}function $e(e=!0){fe(null),ae(null),ze(null),e&&(w==null||w.deactivate())}function Et(){var e=y,t=e.b,n=w,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(s=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,s)}}function mt(e){var t=A|N,n=p!==null&&(p.f&A)!==0?p:null;return y!==null&&(y.f|=Oe),{ctx:g,deps:null,effects:null,equals:Vt,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??y,ac:null}}function tr(e,t,n){let r=y;r===null&&In();var s=void 0,i=Tt(S),o=!p,l=new Map;return _r(()=>{var d;var f=y,a=Ht();s=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).finally($e)}catch(_){a.reject(_),$e()}var c=w;if(o){if((f.f&me)!==0)var h=Et();if(r.b.is_rendered())(d=l.get(c))==null||d.reject(K),l.delete(c);else{for(const _ of l.values())_.reject(K);l.clear()}l.set(c,a)}const v=(_,O=void 0)=>{if(h){var R=O===K;h(R)}if(!(O===K||(f.f&U)!==0)){if(c.activate(),O)i.f|=te,ct(i,O);else{(i.f&te)!==0&&(i.f^=te),ct(i,_);for(const[Ce,De]of l){if(l.delete(Ce),Ce===c)break;De.reject(K)}}c.deactivate()}};a.promise.then(v,_=>v(null,_||"unknown"))}),cr(()=>{for(const f of l.values())f.reject(K)}),new Promise(f=>{function a(c){function h(){c===s?f(i):a(s)}c.then(h,h)}a(s)})}function cs(e){const t=mt(e);return dn(t),t}function nr(e){const t=mt(e);return t.equals=Bt,t}function rr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ie(t[n])}}function sr(e){for(var t=e.parent;t!==null;){if((t.f&A)===0)return(t.f&U)===0?t:null;t=t.parent}return null}function bt(e){var t,n=y;fe(sr(e));try{e.f&=~we,rr(e),t=yn(e)}finally{fe(n)}return t}function Qt(e){var t=e.v,n=bt(e);if(!e.equals(n)&&(e.wv=pn(),(!(w!=null&&w.is_fork)||e.deps===null)&&(e.v=n,w==null||w.capture(e,t,!0),e.deps===null))){E(e,m);return}ge||(x!==null?(fn()||w!=null&&w.is_fork)&&x.set(e,n):wt(e))}function ir(e){var t,n;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),(n=r.ac)==null||n.abort(K),r.teardown=Nn,r.ac=null,Fe(r,0),xt(r))}function en(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ee(t)}let ut=new Set;const ne=new Map;let tn=!1;function Tt(e,t){var n={f:0,v:e,reactions:null,equals:Vt,rv:0,wv:0};return n}function J(e,t){const n=Tt(e);return dn(n),n}function _s(e,t=!1,n=!0){var s;const r=Tt(e);return t||(r.equals=Bt),Qe&&n&&g!==null&&g.l!==null&&((s=g.l).s??(s.s=[])).push(r),r}function Q(e,t,n=!1){p!==null&&(!H||(p.f&st)!==0)&&He()&&(p.f&(A|Z|We|st))!==0&&(j===null||!Re.call(j,e))&&Hn();let r=n?Ie(t):t;return ct(e,r,qe)}function ct(e,t,n=null){if(!e.equals(t)){var r=e.v;ge?ne.set(e,t):ne.set(e,r),e.v=t;var s=se.ensure();if(s.capture(e,r),(e.f&A)!==0){const i=e;(e.f&N)!==0&&bt(i),x===null&&wt(i)}e.wv=pn(),nn(e,N,n),He()&&y!==null&&(y.f&m)!==0&&(y.f&(z|re))===0&&(F===null?pr([e]):F.push(e)),!s.is_fork&&ut.size>0&&!tn&&ar()}return t}function ar(){tn=!1;for(const e of ut)(e.f&m)!==0&&E(e,V),ke(e)&&Ee(e);ut.clear()}function vs(e,t=1){var n=_e(e),r=t===1?n++:n--;return Q(e,n),r}function rt(e){Q(e,e.v+1)}function nn(e,t,n){var r=e.reactions;if(r!==null)for(var s=He(),i=r.length,o=0;o<i;o++){var l=r[o],f=l.f;if(!(!s&&l===y)){var a=(f&N)===0;if(a&&E(l,t),(f&A)!==0){var c=l;x==null||x.delete(c),(f&we)===0&&(f&L&&(l.f|=we),nn(c,V,n))}else if(a){var h=l;(f&Z)!==0&&Y!==null&&Y.add(h),n!==null?n.push(h):gt(h)}}}}function Ie(e){if(typeof e!="object"||e===null||de in e)return e;const t=Yt(e);if(t!==xn&&t!==Rn)return e;var n=new Map,r=Tn(e),s=J(0),i=he,o=l=>{if(he===i)return l();var f=p,a=he;ae(null),Lt(i);var c=l();return ae(f),Lt(a),c};return r&&n.set("length",J(e.length)),new Proxy(e,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&jn();var c=n.get(f);return c===void 0?o(()=>{var h=J(a.value);return n.set(f,h),h}):Q(c,a.value,!0),!0},deleteProperty(l,f){var a=n.get(f);if(a===void 0){if(f in l){const c=o(()=>J(S));n.set(f,c),rt(s)}}else Q(a,S),rt(s);return!0},get(l,f,a){var d;if(f===de)return e;var c=n.get(f),h=f in l;if(c===void 0&&(!h||(d=Pe(l,f))!=null&&d.writable)&&(c=o(()=>{var _=Ie(h?l[f]:S),O=J(_);return O}),n.set(f,c)),c!==void 0){var v=_e(c);return v===S?void 0:v}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var c=n.get(f);c&&(a.value=_e(c))}else if(a===void 0){var h=n.get(f),v=h==null?void 0:h.v;if(h!==void 0&&v!==S)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return a},has(l,f){var v;if(f===de)return!0;var a=n.get(f),c=a!==void 0&&a.v!==S||Reflect.has(l,f);if(a!==void 0||y!==null&&(!c||(v=Pe(l,f))!=null&&v.writable)){a===void 0&&(a=o(()=>{var d=c?Ie(l[f]):S,_=J(d);return _}),n.set(f,a));var h=_e(a);if(h===S)return!1}return c},set(l,f,a,c){var Rt;var h=n.get(f),v=f in l;if(r&&f==="length")for(var d=a;d<h.v;d+=1){var _=n.get(d+"");_!==void 0?Q(_,S):d in l&&(_=o(()=>J(S)),n.set(d+"",_))}if(h===void 0)(!v||(Rt=Pe(l,f))!=null&&Rt.writable)&&(h=o(()=>J(void 0)),Q(h,Ie(a)),n.set(f,h));else{v=h.v!==S;var O=o(()=>Ie(a));Q(h,O)}var R=Reflect.getOwnPropertyDescriptor(l,f);if(R!=null&&R.set&&R.set.call(c,a),!v){if(r&&typeof f=="string"){var Ce=n.get("length"),De=Number(f);Number.isInteger(De)&&De>=Ce.v&&Q(Ce,De+1)}rt(s)}return!0},ownKeys(l){_e(s);var f=Reflect.ownKeys(l).filter(h=>{var v=n.get(h);return v===void 0||v.v!==S});for(var[a,c]of n)c.v!==S&&!(a in l)&&f.push(a);return f},setPrototypeOf(){Yn()}})}function It(e){try{if(e!==null&&typeof e=="object"&&de in e)return e[de]}catch{}return e}function ds(e,t){return Object.is(It(e),It(t))}var Pt,fr,lr,rn,sn;function hs(){if(Pt===void 0){Pt=window,fr=document,lr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;rn=Pe(t,"firstChild").get,sn=Pe(t,"nextSibling").get,Ot(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ot(n)&&(n.__t=void 0)}}function Xe(e=""){return document.createTextNode(e)}function _t(e){return rn.call(e)}function le(e){return sn.call(e)}function ps(e,t){if(!ye)return _t(e);var n=_t(T);if(n===null)n=T.appendChild(Xe());else if(t&&n.nodeType!==Je){var r=Xe();return n==null||n.before(r),Ne(r),r}return t&&At(n),Ne(n),n}function ws(e,t=!1){if(!ye){var n=_t(e);return n instanceof Comment&&n.data===""?le(n):n}if(t){if((T==null?void 0:T.nodeType)!==Je){var r=Xe();return T==null||T.before(r),Ne(r),r}At(T)}return T}function ys(e,t=1,n=!1){let r=ye?T:e;for(var s;t--;)s=r,r=le(r);if(!ye)return r;if(n){if((r==null?void 0:r.nodeType)!==Je){var i=Xe();return r===null?s==null||s.after(i):r.before(i),Ne(i),i}At(r)}return Ne(r),r}function gs(e){e.textContent=""}function Es(){return!1}function ms(e,t,n){return document.createElementNS(t??Bn,e,void 0)}function At(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Je;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function bs(e,t){if(t){const n=document.body;e.autofocus=!0,at(()=>{document.activeElement===n&&e.focus()})}}let Mt=!1;function or(){Mt||(Mt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function St(e){var t=p,n=y;ae(null),fe(null);try{return e()}finally{ae(t),fe(n)}}function Ts(e,t,n,r=n){e.addEventListener(t,()=>St(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),or()}function an(e){y===null&&(p===null&&Fn(),Mn()),ge&&Pn()}function ur(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function M(e,t){var n=y;n!==null&&(n.f&q)!==0&&(e|=q);var r={ctx:g,deps:null,nodes:null,f:e|N|L,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};w==null||w.register_created_effect(r);var s=r;if((e&pe)!==0)Te!==null?Te.push(r):se.ensure().schedule(r);else if(t!==null){try{Ee(r)}catch(o){throw ie(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Oe)===0&&(s=s.first,(e&Z)!==0&&(e&Ge)!==0&&s!==null&&(s.f|=Ge))}if(s!==null&&(s.parent=n,n!==null&&ur(s,n),p!==null&&(p.f&A)!==0&&(e&re)===0)){var i=p;(i.effects??(i.effects=[])).push(s)}return r}function fn(){return p!==null&&!H}function cr(e){const t=M(Ye,null);return E(t,m),t.teardown=e,t}function As(e){an();var t=y.f,n=!p&&(t&z)!==0&&(t&me)===0;if(n){var r=g;(r.e??(r.e=[])).push(e)}else return ln(e)}function ln(e){return M(pe|qt,e)}function Ss(e){return an(),M(Ye|qt,e)}function xs(e){se.ensure();const t=M(re|Oe,e);return()=>{ie(t)}}function Rs(e){se.ensure();const t=M(re|Oe,e);return(n={})=>new Promise(r=>{n.outro?hr(t,()=>{ie(t),r(void 0)}):(ie(t),r(void 0))})}function Ns(e){return M(pe,e)}function Os(e,t){var n=g,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=on(()=>{if(e(),!r.ran){r.ran=!0;var s=y;try{fe(s.parent),yr(t)}finally{fe(s)}}})}function ks(){var e=g;on(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&m)!==0&&n.deps!==null&&E(n,V),ke(n)&&Ee(n),t.ran=!1}})}function _r(e){return M(We|Oe,e)}function on(e,t=0){return M(Ye|t,e)}function Cs(e,t=[],n=[],r=[]){Jt(r,t,n,s=>{M(Ye,()=>e(...s.map(_e)))})}function Ds(e,t=[],n=[],r=[]){if(n.length>0||r.length>0)var s=Et();Jt(r,t,n,i=>{M(pe,()=>e(...i.map(_e))),s&&s()})}function Is(e,t=0){var n=M(Z|t,e);return n}function Ps(e,t=0){var n=M(dt|t,e);return n}function Ms(e){return M(z|Oe,e)}function un(e){var t=e.teardown;if(t!==null){const n=ge,r=p;Ft(!0),ae(null);try{t.call(null)}finally{Ft(n),ae(r)}}}function xt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&St(()=>{s.abort(K)});var r=n.next;(n.f&re)!==0?n.parent=null:ie(n,t),n=r}}function vr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&z)===0&&ie(t),t=n}}function ie(e,t=!0){var n=!1;(t||(e.f&Cn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(dr(e.nodes.start,e.nodes.end),n=!0),E(e,kt),xt(e,t&&!n),Fe(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();un(e),e.f^=kt,e.f|=U;var s=e.parent;s!==null&&s.first!==null&&cn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function dr(e,t){for(;e!==null;){var n=e===t?null:le(e);e.remove(),e=n}}function cn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function hr(e,t,n=!0){var r=[];_n(e,r,!0);var s=()=>{n&&ie(e),t&&t()},i=r.length;if(i>0){var o=()=>--i||s();for(var l of r)l.out(o)}else s()}function _n(e,t,n){if((e.f&q)===0){e.f^=q;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,o=(s.f&Ge)!==0||(s.f&z)!==0&&(e.f&Z)!==0;_n(s,t,o?n:!1),s=i}}}function Fs(e){vn(e,!0)}function vn(e,t){if((e.f&q)!==0){e.f^=q,(e.f&m)===0&&(E(e,N),se.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ge)!==0||(n.f&z)!==0;vn(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)(o.is_global||t)&&o.in()}}function Ls(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:le(n);t.append(n),n=s}}let Be=!1,ge=!1;function Ft(e){ge=e}let p=null,H=!1;function ae(e){p=e}let y=null;function fe(e){y=e}let j=null;function dn(e){p!==null&&(j===null?j=[e]:j.push(e))}let C=null,I=0,F=null;function pr(e){F=e}let hn=1,ce=0,he=ce;function Lt(e){he=e}function pn(){return++hn}function ke(e){var t=e.f;if((t&N)!==0)return!0;if(t&A&&(e.f&=~we),(t&V)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(ke(i)&&Qt(i),i.wv>e.wv)return!0}(t&L)!==0&&x===null&&E(e,m)}return!1}function wn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(j!==null&&Re.call(j,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&A)!==0?wn(i,t,!1):t===i&&(n?E(i,N):(i.f&m)!==0&&E(i,V),gt(i))}}function yn(e){var O;var t=C,n=I,r=F,s=p,i=j,o=g,l=H,f=he,a=e.f;C=null,I=0,F=null,p=(a&(z|re))===0?e:null,j=null,ze(e.ctx),H=!1,he=++ce,e.ac!==null&&(St(()=>{e.ac.abort(K)}),e.ac=null);try{e.f|=it;var c=e.fn,h=c();e.f|=me;var v=e.deps,d=w==null?void 0:w.is_fork;if(C!==null){var _;if(d||Fe(e,I),v!==null&&I>0)for(v.length=I+C.length,_=0;_<C.length;_++)v[I+_]=C[_];else e.deps=v=C;if(fn()&&(e.f&L)!==0)for(_=I;_<v.length;_++)((O=v[_]).reactions??(O.reactions=[])).push(e)}else!d&&v!==null&&I<v.length&&(Fe(e,I),v.length=I);if(He()&&F!==null&&!H&&v!==null&&(e.f&(A|V|N))===0)for(_=0;_<F.length;_++)wn(F[_],e);if(s!==null&&s!==e){if(ce++,s.deps!==null)for(let R=0;R<n;R+=1)s.deps[R].rv=ce;if(t!==null)for(const R of t)R.rv=ce;F!==null&&(r===null?r=F:r.push(...F))}return(e.f&te)!==0&&(e.f^=te),h}catch(R){return $n(R)}finally{e.f^=it,C=t,I=n,F=r,p=s,j=i,ze(o),H=l,he=f}}function wr(e,t){let n=t.reactions;if(n!==null){var r=An.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&A)!==0&&(C===null||!Re.call(C,t))){var i=t;(i.f&L)!==0&&(i.f^=L,i.f&=~we),wt(i),ir(i),Fe(i,0)}}function Fe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)wr(e,n[r])}function Ee(e){var t=e.f;if((t&U)===0){E(e,m);var n=y,r=Be;y=e,Be=!0;try{(t&(Z|dt))!==0?vr(e):xt(e),un(e);var s=yn(e);e.teardown=typeof s=="function"?s:null,e.wv=hn;var i}finally{Be=r,y=n}}}async function js(){await Promise.resolve(),Jn()}function Ys(){return se.ensure().settled()}function _e(e){var t=e.f,n=(t&A)!==0;if(p!==null&&!H){var r=y!==null&&(y.f&U)!==0;if(!r&&(j===null||!Re.call(j,e))){var s=p.deps;if((p.f&it)!==0)e.rv<ce&&(e.rv=ce,C===null&&s!==null&&s[I]===e?I++:C===null?C=[e]:C.push(e));else{(p.deps??(p.deps=[])).push(e);var i=e.reactions;i===null?e.reactions=[p]:Re.call(i,p)||i.push(p)}}}if(ge&&ne.has(e))return ne.get(e);if(n){var o=e;if(ge){var l=o.v;return((o.f&m)===0&&o.reactions!==null||En(o))&&(l=bt(o)),ne.set(o,l),l}var f=(o.f&L)===0&&!H&&p!==null&&(Be||(p.f&L)!==0),a=(o.f&me)===0;ke(o)&&(f&&(o.f|=L),Qt(o)),f&&!a&&(en(o),gn(o))}if(x!=null&&x.has(e))return x.get(e);if((e.f&te)!==0)throw e.v;return e.v}function gn(e){if(e.f|=L,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&A)!==0&&(t.f&L)===0&&(en(t),gn(t))}function En(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ne.has(t)||(t.f&A)!==0&&En(t))return!0;return!1}function yr(e){var t=H;try{return H=!0,e()}finally{H=t}}function Hs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(de in e)vt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&de in n&&vt(n)}}}function vt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{vt(e[r],t)}catch{}const n=Yt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Sn(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}export{fr as $,Tt as A,Fr as B,Ut as C,U as D,Ge as E,Fs as F,hr as G,qn as H,q as I,z as J,gs as K,Ls as L,ie as M,_t as N,at as O,le as P,Lr as Q,jr as R,Ts as S,js as T,yr as U,on as V,g as W,Ns as X,y as Y,kt as Z,de as _,Qr as a,ht as a$,He as a0,Pe as a1,Ir as a2,Ur as a3,Ie as a4,Q as a5,ge as a6,vs as a7,fe as a8,Vr as a9,cs as aA,Ar as aB,Os as aC,ks as aD,Gn as aE,ms as aF,lr as aG,Gr as aH,zr as aI,Je as aJ,At as aK,me as aL,fn as aM,rt as aN,kn as aO,Kr as aP,Zn as aQ,ae as aR,ze as aS,se as aT,$n as aU,p as aV,Ke as aW,Pr as aX,Wr as aY,St as aZ,hs as a_,Qe as aa,qr as ab,Hr as ac,mt as ad,br as ae,xr as af,Br as ag,cr as ah,mr as ai,Nn as aj,Cn as ak,Oe as al,Ss as am,As as an,On as ao,Tr as ap,Hs as aq,Dn as ar,ss as as,os as at,us as au,ps as av,ys as aw,es as ax,ts as ay,Cs as az,Is as b,Dr as b0,Rs as b1,pt as b2,Jn as b3,J as b4,Ps as b5,Zr as b6,ds as b7,Jt as b8,Bn as b9,Yt as ba,Xr as bb,Sn as bc,Or as bd,bs as be,S as bf,or as bg,Rr as bh,kr as bi,$r as bj,he as bk,fs as bl,is as bm,as as bn,ls as bo,xs as bp,Ys as bq,Ne as c,Ds as d,Jr as e,ws as f,T as g,ye as h,_e as i,Un as j,Vn as k,ct as l,w as m,Xe as n,Sr as o,Ms as p,Cr as q,rs as r,ns as s,Es as t,nr as u,Tn as v,Er as w,Mr as x,Yr as y,_s as z};
@@ -0,0 +1 @@
1
+ import{ar as t,an as u,W as o,aa as c,U as e}from"./BbWUOQ_m.js";function l(n){o===null&&t(),c&&o.l!==null?s(o).m.push(n):u(()=>{const a=e(n);if(typeof a=="function")return a})}function i(n){o===null&&t(),l(()=>()=>e(n))}function s(n){var a=n.l;return a.u??(a.u={a:[],b:[],m:[]})}export{i as a,l as o};
@@ -0,0 +1 @@
1
+ import{W as d,am as m,an as c,U as g,ao as l,ap as b,i as u,aq as v,ad as h}from"./BbWUOQ_m.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let f=()=>v(s.s);if(n){let a=0,t={};const _=h(()=>{let i=!1;const r=s.s;for(const o in r)r[o]!==t[o]&&(t[o]=r[o],i=!0);return i&&a++,a});f=()=>u(_)}e.b.length&&m(()=>{p(s,f),l(e.b)}),c(()=>{const a=g(()=>e.m.map(b));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&c(()=>{p(s,f),l(e.a)})}function p(n,s){if(n.l.s)for(const e of n.l.s)u(e);s()}export{x as i};
@@ -0,0 +1,6 @@
1
+ import{c as n,a as i}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{f as m}from"./BbWUOQ_m.js";import{s as l}from"./B-OsL1Ct.js";import{l as c,s as d}from"./xtNWTdbD.js";import{I as f}from"./mW5RwvnK.js";function y(t,o){const r=c(o,["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 a=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];f(t,d({name:"plus"},()=>r,{get iconNode(){return a},children:(e,$)=>{var s=n(),p=m(s);l(p,o,"default",{}),i(e,s)},$$slots:{default:!0}}))}export{y as P};
@@ -0,0 +1 @@
1
+ import{h as t,a as i,a0 as c,b as f}from"./BbWUOQ_m.js";import{B as y}from"./Dt2CddFe.js";const b=Symbol("NaN");function m(r,e,n){t&&i();var o=new y(r),s=!c();f(()=>{var a=e();a!==a&&(a=b),s&&a!==null&&typeof a=="object"&&(a={}),o.ensure(a,n)})}export{m as k};
@@ -0,0 +1,41 @@
1
+ var Os=Object.defineProperty;var Xr=e=>{throw TypeError(e)};var Cs=(e,t,n)=>t in e?Os(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ot=(e,t,n)=>Cs(e,typeof t!="symbol"?t+"":t,n),Yo=(e,t,n)=>t.has(e)||Xr("Cannot "+n);var f=(e,t,n)=>(Yo(e,t,"read from private field"),n?n.call(e):t.get(e)),A=(e,t,n)=>t.has(e)?Xr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Yo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),B=(e,t,n)=>(Yo(e,t,"access private method"),n);import{c as dt,a as z,f as at,p as Oi,t as Xe}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{o as Ci}from"./Bp63qm3L.js";import{aA as W,i as o,b4 as yt,a4 as qo,an as he,a5 as d,at as ie,f as X,aj as ne,au as se,aw as M,av as S,ax as C,aC as wn,aD as Ss,ay as zt,az as kt,U as st,u as te,z as G,aq as Jo}from"./BbWUOQ_m.js";import{f as As,o as bn,d as zs,a as Et,s as Lt,e as ks,r as Es}from"./DMWEh-Ek.js";import{s as Fs,a as Yr}from"./DjNLq3TF.js";import{i as xt}from"./Dt2CddFe.js";import{e as Zo,i as qr}from"./BQqoDzLx.js";import{e as xn,r as Ye,a as qe,c as Ts,s as Qo}from"./B2Q1a1-H.js";import{b as Je}from"./Dw782Tjs.js";import{i as Ds}from"./CVzlFH44.js";import{g as Jr}from"./D5GvRCv7.js";import{p as Go}from"./DcAshVxe.js";import{s as $o}from"./tB7QMF3U.js";import{R as Ms,P as Ls,h as Zr,S as Is,a as Ws,E as Ns,r as Hs,s as Rs,c as Bs}from"./CtijX1u3.js";import{a as ee}from"./CBY2biv-.js";import{e as Vs,s as _e,C as Eo,f as Ks,g as _n,u as Si,h as Us,i as js,j as Xs,w as Pn,k as Ys,l as Bt,m as U,n as Qe,F as qs,S as Qr,E as Js,o as Zs,T as Qs,p as Gs,q as Te,r as Gr,t as $s,v as wo,x as ta,y as ea,z as Ai,A as na,B as oa,G as ra,H as zi,J as Ze,I as Ce,D as $r,P as vo,a as ti,b as ei,c as ni,d as go}from"./mW5RwvnK.js";import{P as ia}from"./CWNeClHp.js";import{s as Se}from"./B-OsL1Ct.js";import{p as k,s as Nt,r as ln,l as Ae}from"./xtNWTdbD.js";function sa(e){return typeof e=="function"}function oi(e){return sa(e)?e():e}var pe,$e,tn,en,ve,Co,So,nn;class aa{constructor(t,n={box:"border-box"}){A(this,pe,{width:0,height:0});A(this,$e,!1);A(this,tn);A(this,en);A(this,ve);A(this,Co,W(()=>{var t;return(t=o(f(this,nn)))==null||t(),this.getSize().width}));A(this,So,W(()=>{var t;return(t=o(f(this,nn)))==null||t(),this.getSize().height}));A(this,nn,W(()=>{const t=oi(f(this,en));if(t)return As(n=>{if(!f(this,ve))return;const r=new(f(this,ve)).ResizeObserver(i=>{j(this,$e,!0);for(const s of i){const a=f(this,tn).box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(a)?a:[a];f(this,pe).width=l.reduce((h,m)=>Math.max(h,m.inlineSize),0),f(this,pe).height=l.reduce((h,m)=>Math.max(h,m.blockSize),0)}n()});return r.observe(t),()=>{j(this,$e,!1),r.disconnect()}})}));j(this,ve,n.window??Vs),j(this,tn,n),j(this,en,t),j(this,pe,{width:0,height:0})}calculateSize(){const t=oi(f(this,en));if(!t||!f(this,ve))return;const n=t.offsetWidth,r=t.offsetHeight;if(f(this,tn).box==="border-box")return{width:n,height:r};const i=f(this,ve).getComputedStyle(t),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),l=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),h=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),m=n-s-l,y=r-a-h;return{width:m,height:y}}getSize(){return f(this,$e)?f(this,pe):this.calculateSize()??f(this,pe)}get current(){var t;return(t=o(f(this,nn)))==null||t(),this.getSize()}get width(){return o(f(this,Co))}get height(){return o(f(this,So))}}pe=new WeakMap,$e=new WeakMap,tn=new WeakMap,en=new WeakMap,ve=new WeakMap,Co=new WeakMap,So=new WeakMap,nn=new WeakMap;const la=["top","right","bottom","left"],Pe=Math.min,It=Math.max,bo=Math.round,mo=Math.floor,Zt=e=>({x:e,y:e}),ca={left:"right",right:"left",bottom:"top",top:"bottom"};function rr(e,t,n){return It(e,Pe(t,n))}function oe(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function cn(e){return e.split("-")[1]}function yr(e){return e==="x"?"y":"x"}function wr(e){return e==="y"?"height":"width"}function Jt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function br(e){return yr(Jt(e))}function ua(e,t,n){n===void 0&&(n=!1);const r=cn(e),i=br(e),s=wr(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=xo(a)),[a,xo(a)]}function da(e){const t=xo(e);return[ir(e),t,ir(t)]}function ir(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ri=["left","right"],ii=["right","left"],fa=["top","bottom"],ha=["bottom","top"];function pa(e,t,n){switch(e){case"top":case"bottom":return n?t?ii:ri:t?ri:ii;case"left":case"right":return t?fa:ha;default:return[]}}function va(e,t,n,r){const i=cn(e);let s=pa(re(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(ir)))),s}function xo(e){const t=re(e);return ca[t]+e.slice(t.length)}function ga(e){return{top:0,right:0,bottom:0,left:0,...e}}function ki(e){return typeof e!="number"?ga(e):{top:e,right:e,bottom:e,left:e}}function _o(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function si(e,t,n){let{reference:r,floating:i}=e;const s=Jt(t),a=br(t),l=wr(a),h=re(t),m=s==="y",y=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let p;switch(h){case"top":p={x:y,y:r.y-i.height};break;case"bottom":p={x:y,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:v};break;case"left":p={x:r.x-i.width,y:v};break;default:p={x:r.x,y:r.y}}switch(cn(t)){case"start":p[a]-=g*(n&&m?-1:1);break;case"end":p[a]+=g*(n&&m?-1:1);break}return p}async function ma(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:l,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:g=!1,padding:p=0}=oe(t,e),w=ki(p),O=l[g?v==="floating"?"reference":"floating":v],x=_o(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(O)))==null||n?O:O.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:m,rootBoundary:y,strategy:h})),D=v==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},L=_o(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:D,offsetParent:T,strategy:h}):D);return{top:(x.top-L.top+w.top)/E.y,bottom:(L.bottom-x.bottom+w.bottom)/E.y,left:(x.left-L.left+w.left)/E.x,right:(L.right-x.right+w.right)/E.x}}const ya=50,wa=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:ma},h=await(a.isRTL==null?void 0:a.isRTL(t));let m=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:y,y:v}=si(m,r,h),g=r,p=0;const w={};for(let P=0;P<s.length;P++){const O=s[P];if(!O)continue;const{name:x,fn:D}=O,{x:T,y:E,data:L,reset:F}=await D({x:y,y:v,initialPlacement:r,placement:g,strategy:i,middlewareData:w,rects:m,platform:l,elements:{reference:e,floating:t}});y=T??y,v=E??v,w[x]={...w[x],...L},F&&p<ya&&(p++,typeof F=="object"&&(F.placement&&(g=F.placement),F.rects&&(m=F.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):F.rects),{x:y,y:v}=si(m,g,h)),P=-1)}return{x:y,y:v,placement:g,strategy:i,middlewareData:w}},ba=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:l,middlewareData:h}=t,{element:m,padding:y=0}=oe(e,t)||{};if(m==null)return{};const v=ki(y),g={x:n,y:r},p=br(i),w=wr(p),P=await a.getDimensions(m),O=p==="y",x=O?"top":"left",D=O?"bottom":"right",T=O?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[p]-g[p]-s.floating[w],L=g[p]-s.reference[p],F=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m));let Q=F?F[T]:0;(!Q||!await(a.isElement==null?void 0:a.isElement(F)))&&(Q=l.floating[T]||s.floating[w]);const ft=E/2-L/2,R=Q/2-P[w]/2-1,$=Pe(v[x],R),et=Pe(v[D],R),tt=$,nt=Q-P[w]-et,Y=Q/2-P[w]/2+ft,ht=rr(tt,Y,nt),rt=!h.arrow&&cn(i)!=null&&Y!==ht&&s.reference[w]/2-(Y<tt?$:et)-P[w]/2<0,J=rt?Y<tt?Y-tt:Y-nt:0;return{[p]:g[p]+J,data:{[p]:ht,centerOffset:Y-ht-J,...rt&&{alignmentOffset:J}},reset:rt}}}),xa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:h,elements:m}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:P=!0,...O}=oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=re(i),D=Jt(l),T=re(l)===l,E=await(h.isRTL==null?void 0:h.isRTL(m.floating)),L=g||(T||!P?[xo(l)]:da(l)),F=w!=="none";!g&&F&&L.push(...va(l,P,w,E));const Q=[l,...L],ft=await h.detectOverflow(t,O),R=[];let $=((r=s.flip)==null?void 0:r.overflows)||[];if(y&&R.push(ft[x]),v){const Y=ua(i,a,E);R.push(ft[Y[0]],ft[Y[1]])}if($=[...$,{placement:i,overflows:R}],!R.every(Y=>Y<=0)){var et,tt;const Y=(((et=s.flip)==null?void 0:et.index)||0)+1,ht=Q[Y];if(ht&&(!(v==="alignment"?D!==Jt(ht):!1)||$.every(V=>Jt(V.placement)===D?V.overflows[0]>0:!0)))return{data:{index:Y,overflows:$},reset:{placement:ht}};let rt=(tt=$.filter(J=>J.overflows[0]<=0).sort((J,V)=>J.overflows[1]-V.overflows[1])[0])==null?void 0:tt.placement;if(!rt)switch(p){case"bestFit":{var nt;const J=(nt=$.filter(V=>{if(F){const Z=Jt(V.placement);return Z===D||Z==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(Z=>Z>0).reduce((Z,it)=>Z+it,0)]).sort((V,Z)=>V[1]-Z[1])[0])==null?void 0:nt[0];J&&(rt=J);break}case"initialPlacement":rt=l;break}if(i!==rt)return{reset:{placement:rt}}}return{}}}};function ai(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function li(e){return la.some(t=>e[t]>=0)}const _a=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=oe(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=ai(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:li(l)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),l=ai(a,n.floating);return{data:{escapedOffsets:l,escaped:li(l)}}}default:return{}}}}},Ei=new Set(["left","top"]);async function Pa(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=re(n),l=cn(n),h=Jt(n)==="y",m=Ei.has(a)?-1:1,y=s&&h?-1:1,v=oe(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),h?{x:p*y,y:g*m}:{x:g*m,y:p*y}}const Oa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:l}=t,h=await Pa(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+h.x,y:s+h.y,data:{...h,placement:a}}}}},Ca=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:h={fn:x=>{let{x:D,y:T}=x;return{x:D,y:T}}},...m}=oe(e,t),y={x:n,y:r},v=await s.detectOverflow(t,m),g=Jt(re(i)),p=yr(g);let w=y[p],P=y[g];if(a){const x=p==="y"?"top":"left",D=p==="y"?"bottom":"right",T=w+v[x],E=w-v[D];w=rr(T,w,E)}if(l){const x=g==="y"?"top":"left",D=g==="y"?"bottom":"right",T=P+v[x],E=P-v[D];P=rr(T,P,E)}const O=h.fn({...t,[p]:w,[g]:P});return{...O,data:{x:O.x-n,y:O.y-r,enabled:{[p]:a,[g]:l}}}}}},Sa=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:h=!0,crossAxis:m=!0}=oe(e,t),y={x:n,y:r},v=Jt(i),g=yr(v);let p=y[g],w=y[v];const P=oe(l,t),O=typeof P=="number"?{mainAxis:P,crossAxis:0}:{mainAxis:0,crossAxis:0,...P};if(h){const T=g==="y"?"height":"width",E=s.reference[g]-s.floating[T]+O.mainAxis,L=s.reference[g]+s.reference[T]-O.mainAxis;p<E?p=E:p>L&&(p=L)}if(m){var x,D;const T=g==="y"?"width":"height",E=Ei.has(re(i)),L=s.reference[v]-s.floating[T]+(E&&((x=a.offset)==null?void 0:x[v])||0)+(E?0:O.crossAxis),F=s.reference[v]+s.reference[T]+(E?0:((D=a.offset)==null?void 0:D[v])||0)-(E?O.crossAxis:0);w<L?w=L:w>F&&(w=F)}return{[g]:p,[v]:w}}}},Aa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:l}=t,{apply:h=()=>{},...m}=oe(e,t),y=await a.detectOverflow(t,m),v=re(i),g=cn(i),p=Jt(i)==="y",{width:w,height:P}=s.floating;let O,x;v==="top"||v==="bottom"?(O=v,x=g===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(x=v,O=g==="end"?"top":"bottom");const D=P-y.top-y.bottom,T=w-y.left-y.right,E=Pe(P-y[O],D),L=Pe(w-y[x],T),F=!t.middlewareData.shift;let Q=E,ft=L;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ft=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(Q=D),F&&!g){const $=It(y.left,0),et=It(y.right,0),tt=It(y.top,0),nt=It(y.bottom,0);p?ft=w-2*($!==0||et!==0?$+et:It(y.left,y.right)):Q=P-2*(tt!==0||nt!==0?tt+nt:It(y.top,y.bottom))}await h({...t,availableWidth:ft,availableHeight:Q});const R=await a.getDimensions(l.floating);return w!==R.width||P!==R.height?{reset:{rects:!0}}:{}}}};function Fo(){return typeof window<"u"}function un(e){return Fi(e)?(e.nodeName||"").toLowerCase():"#document"}function Wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){var t;return(t=(Fi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fi(e){return Fo()?e instanceof Node||e instanceof Wt(e).Node:!1}function Vt(e){return Fo()?e instanceof Element||e instanceof Wt(e).Element:!1}function ae(e){return Fo()?e instanceof HTMLElement||e instanceof Wt(e).HTMLElement:!1}function ci(e){return!Fo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wt(e).ShadowRoot}function oo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function za(e){return/^(table|td|th)$/.test(un(e))}function To(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ka=/transform|translate|scale|rotate|perspective|filter/,Ea=/paint|layout|strict|content/,Ee=e=>!!e&&e!=="none";let tr;function xr(e){const t=Vt(e)?Kt(e):e;return Ee(t.transform)||Ee(t.translate)||Ee(t.scale)||Ee(t.rotate)||Ee(t.perspective)||!_r()&&(Ee(t.backdropFilter)||Ee(t.filter))||ka.test(t.willChange||"")||Ea.test(t.contain||"")}function Fa(e){let t=Oe(e);for(;ae(t)&&!an(t);){if(xr(t))return t;if(To(t))return null;t=Oe(t)}return null}function _r(){return tr==null&&(tr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tr}function an(e){return/^(html|body|#document)$/.test(un(e))}function Kt(e){return Wt(e).getComputedStyle(e)}function Do(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(un(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ci(e)&&e.host||Qt(e);return ci(t)?t.host:t}function Ti(e){const t=Oe(e);return an(t)?e.ownerDocument?e.ownerDocument.body:e.body:ae(t)&&oo(t)?t:Ti(t)}function On(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ti(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Wt(i);if(s){const l=sr(a);return t.concat(a,a.visualViewport||[],oo(i)?i:[],l&&n?On(l):[])}else return t.concat(i,On(i,[],n))}function sr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Di(e){const t=Kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ae(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=bo(n)!==s||bo(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function Pr(e){return Vt(e)?e:e.contextElement}function Ge(e){const t=Pr(e);if(!ae(t))return Zt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Di(t);let a=(s?bo(n.width):n.width)/r,l=(s?bo(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Ta=Zt(0);function Mi(e){const t=Wt(e);return!_r()||!t.visualViewport?Ta:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Da(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wt(e)?!1:t}function Ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Pr(e);let a=Zt(1);t&&(r?Vt(r)&&(a=Ge(r)):a=Ge(e));const l=Da(s,n,r)?Mi(s):Zt(0);let h=(i.left+l.x)/a.x,m=(i.top+l.y)/a.y,y=i.width/a.x,v=i.height/a.y;if(s){const g=Wt(s),p=r&&Vt(r)?Wt(r):r;let w=g,P=sr(w);for(;P&&r&&p!==w;){const O=Ge(P),x=P.getBoundingClientRect(),D=Kt(P),T=x.left+(P.clientLeft+parseFloat(D.paddingLeft))*O.x,E=x.top+(P.clientTop+parseFloat(D.paddingTop))*O.y;h*=O.x,m*=O.y,y*=O.x,v*=O.y,h+=T,m+=E,w=Wt(P),P=sr(w)}}return _o({width:y,height:v,x:h,y:m})}function Mo(e,t){const n=Do(e).scrollLeft;return t?t.left+n:Ie(Qt(e)).left+n}function Li(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Mo(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Ma(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=Qt(r),l=t?To(t.floating):!1;if(r===a||l&&s)return n;let h={scrollLeft:0,scrollTop:0},m=Zt(1);const y=Zt(0),v=ae(r);if((v||!v&&!s)&&((un(r)!=="body"||oo(a))&&(h=Do(r)),v)){const p=Ie(r);m=Ge(r),y.x=p.x+r.clientLeft,y.y=p.y+r.clientTop}const g=a&&!v&&!s?Li(a,h):Zt(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-h.scrollLeft*m.x+y.x+g.x,y:n.y*m.y-h.scrollTop*m.y+y.y+g.y}}function La(e){return Array.from(e.getClientRects())}function Ia(e){const t=Qt(e),n=Do(e),r=e.ownerDocument.body,i=It(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=It(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Mo(e);const l=-n.scrollTop;return Kt(r).direction==="rtl"&&(a+=It(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:l}}const ui=25;function Wa(e,t){const n=Wt(e),r=Qt(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,h=0;if(i){s=i.width,a=i.height;const y=_r();(!y||y&&t==="fixed")&&(l=i.offsetLeft,h=i.offsetTop)}const m=Mo(r);if(m<=0){const y=r.ownerDocument,v=y.body,g=getComputedStyle(v),p=y.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-v.clientWidth-p);w<=ui&&(s-=w)}else m<=ui&&(s+=m);return{width:s,height:a,x:l,y:h}}function Na(e,t){const n=Ie(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ae(e)?Ge(e):Zt(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,h=i*s.x,m=r*s.y;return{width:a,height:l,x:h,y:m}}function di(e,t,n){let r;if(t==="viewport")r=Wa(e,n);else if(t==="document")r=Ia(Qt(e));else if(Vt(t))r=Na(t,n);else{const i=Mi(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return _o(r)}function Ii(e,t){const n=Oe(e);return n===t||!Vt(n)||an(n)?!1:Kt(n).position==="fixed"||Ii(n,t)}function Ha(e,t){const n=t.get(e);if(n)return n;let r=On(e,[],!1).filter(l=>Vt(l)&&un(l)!=="body"),i=null;const s=Kt(e).position==="fixed";let a=s?Oe(e):e;for(;Vt(a)&&!an(a);){const l=Kt(a),h=xr(a);!h&&l.position==="fixed"&&(i=null),(s?!h&&!i:!h&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||oo(a)&&!h&&Ii(e,a))?r=r.filter(y=>y!==a):i=l,a=Oe(a)}return t.set(e,r),r}function Ra(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?To(t)?[]:Ha(t,this._c):[].concat(n),r],l=di(t,a[0],i);let h=l.top,m=l.right,y=l.bottom,v=l.left;for(let g=1;g<a.length;g++){const p=di(t,a[g],i);h=It(p.top,h),m=Pe(p.right,m),y=Pe(p.bottom,y),v=It(p.left,v)}return{width:m-v,height:y-h,x:v,y:h}}function Ba(e){const{width:t,height:n}=Di(e);return{width:t,height:n}}function Va(e,t,n){const r=ae(t),i=Qt(t),s=n==="fixed",a=Ie(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const h=Zt(0);function m(){h.x=Mo(i)}if(r||!r&&!s)if((un(t)!=="body"||oo(i))&&(l=Do(t)),r){const p=Ie(t,!0,s,t);h.x=p.x+t.clientLeft,h.y=p.y+t.clientTop}else i&&m();s&&!r&&i&&m();const y=i&&!r&&!s?Li(i,l):Zt(0),v=a.left+l.scrollLeft-h.x-y.x,g=a.top+l.scrollTop-h.y-y.y;return{x:v,y:g,width:a.width,height:a.height}}function er(e){return Kt(e).position==="static"}function fi(e,t){if(!ae(e)||Kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qt(e)===n&&(n=n.ownerDocument.body),n}function Wi(e,t){const n=Wt(e);if(To(e))return n;if(!ae(e)){let i=Oe(e);for(;i&&!an(i);){if(Vt(i)&&!er(i))return i;i=Oe(i)}return n}let r=fi(e,t);for(;r&&za(r)&&er(r);)r=fi(r,t);return r&&an(r)&&er(r)&&!xr(r)?n:r||Fa(e)||n}const Ka=async function(e){const t=this.getOffsetParent||Wi,n=this.getDimensions,r=await n(e.floating);return{reference:Va(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ua(e){return Kt(e).direction==="rtl"}const ja={convertOffsetParentRelativeRectToViewportRelativeRect:Ma,getDocumentElement:Qt,getClippingRect:Ra,getOffsetParent:Wi,getElementRects:Ka,getClientRects:La,getDimensions:Ba,getScale:Ge,isElement:Vt,isRTL:Ua};function Ni(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xa(e,t){let n=null,r;const i=Qt(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),s();const m=e.getBoundingClientRect(),{left:y,top:v,width:g,height:p}=m;if(l||t(),!g||!p)return;const w=mo(v),P=mo(i.clientWidth-(y+g)),O=mo(i.clientHeight-(v+p)),x=mo(y),T={rootMargin:-w+"px "+-P+"px "+-O+"px "+-x+"px",threshold:It(0,Pe(1,h))||1};let E=!0;function L(F){const Q=F[0].intersectionRatio;if(Q!==h){if(!E)return a();Q?a(!1,Q):r=setTimeout(()=>{a(!1,1e-7)},1e3)}Q===1&&!Ni(m,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(L,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(L,T)}n.observe(e)}return a(!0),s}function Ya(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,m=Pr(e),y=i||s?[...m?On(m):[],...t?On(t):[]]:[];y.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const v=m&&l?Xa(m,n):null;let g=-1,p=null;a&&(p=new ResizeObserver(x=>{let[D]=x;D&&D.target===m&&p&&t&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=p)==null||T.observe(t)})),n()}),m&&!h&&p.observe(m),t&&p.observe(t));let w,P=h?Ie(e):null;h&&O();function O(){const x=Ie(e);P&&!Ni(P,x)&&n(),P=x,w=requestAnimationFrame(O)}return n(),()=>{var x;y.forEach(D=>{i&&D.removeEventListener("scroll",n),s&&D.removeEventListener("resize",n)}),v==null||v(),(x=p)==null||x.disconnect(),p=null,h&&cancelAnimationFrame(w)}}const qa=Oa,Ja=Ca,Za=xa,Qa=Aa,Ga=_a,$a=ba,tl=Sa,el=(e,t,n)=>{const r=new Map,i={platform:ja,...n},s={...i.platform,_c:r};return wa(e,t,{...i,platform:s})};function Fe(e){return typeof e=="function"?e():e}function Hi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hi(e,t){const n=Hi(e);return Math.round(t*n)/n}function pi(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function nl(e){const t=e.whileElementsMounted,n=W(()=>Fe(e.open)??!0),r=W(()=>Fe(e.middleware)),i=W(()=>Fe(e.transform)??!0),s=W(()=>Fe(e.placement)??"bottom"),a=W(()=>Fe(e.strategy)??"absolute"),l=W(()=>Fe(e.sideOffset)??0),h=W(()=>Fe(e.alignOffset)??0),m=e.reference;let y=yt(0),v=yt(0);const g=_e(null);let p=yt(qo(o(a))),w=yt(qo(o(s))),P=yt(qo({})),O=yt(!1),x=!1,D=0;const T=W(()=>{const $=g.current?hi(g.current,o(y)):o(y),et=g.current?hi(g.current,o(v)):o(v);return o(i)?{position:o(p),left:"0",top:"0",transform:`translate(${$}px, ${et}px)`,...g.current&&Hi(g.current)>=1.5&&{willChange:"transform"}}:{position:o(p),left:`${$}px`,top:`${et}px`}});let E;function L(){if(m.current===null||g.current===null)return;const $=m.current,et=g.current,tt=++D;el($,et,{middleware:o(r),placement:o(s),strategy:o(a)}).then(nt=>{if(tt!==D||m.current!==$||g.current!==et)return;if(ol($)){d(P,{...o(P),hide:{...o(P).hide,referenceHidden:!0}},!0);return}if(!o(n)&&o(y)!==0&&o(v)!==0){const ht=Math.max(Math.abs(o(l)),Math.abs(o(h)),15);if(nt.x<=ht&&nt.y<=ht)return}d(y,nt.x,!0),d(v,nt.y,!0),d(p,nt.strategy,!0),d(w,nt.placement,!0),d(P,nt.middlewareData,!0),d(O,!0)})}function F(){typeof E=="function"&&(E(),E=void 0),D++}function Q(){if(F(),t===void 0){L();return}o(n)&&(m.current===null||g.current===null||(E=t(m.current,g.current,L)))}function ft(){!o(n)&&g.current===null&&d(O,!1)}function R(){return[o(r),o(s),o(a),o(l),o(h),o(n)]}return he(()=>{t===void 0&&o(n)&&L()}),he(Q),he(()=>{if(t!==void 0){if(R(),!o(n)){x=!1;return}if(!o(O)){x=!1;return}if(!x){x=!0;return}L()}}),he(ft),he(()=>F),{floating:g,reference:m,get strategy(){return o(p)},get placement(){return o(w)},get middlewareData(){return o(P)},get isPositioned(){return o(O)},get floatingStyles(){return o(T)},get update(){return L}}}function ol(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rl={top:"bottom",right:"left",bottom:"top",left:"right"},Or=new Eo("Floating.Root"),vi=new Eo("Floating.Content"),Cr=new Eo("Floating.Root");class Po{constructor(){ot(this,"anchorNode",_e(null));ot(this,"customAnchorNode",_e(null));ot(this,"triggerNode",_e(null));he(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(t=!1){return t?Cr.set(new Po):Or.set(new Po)}}var Cn,Sn,An,Ao,zn,zo,kn,En,Fn,Tn,Dn,Mn,Ln,In,Wn,Nn,Hn,Rn,Bn,Vn,Kn,Un,jn,Xn;const ko=class ko{constructor(t,n){ot(this,"opts");ot(this,"root");ot(this,"contentRef",_e(null));ot(this,"wrapperRef",_e(null));ot(this,"arrowRef",_e(null));ot(this,"contentAttachment",_n(this.contentRef));ot(this,"wrapperAttachment",_n(this.wrapperRef));ot(this,"arrowAttachment",_n(this.arrowRef));ot(this,"arrowId",_e(Si()));A(this,Cn,W(()=>{if(typeof this.opts.style=="string")return Us(this.opts.style);if(!this.opts.style)return{}}));A(this,Sn);A(this,An,new aa(()=>this.arrowRef.current??void 0));A(this,Ao,W(()=>{var t;return((t=f(this,An))==null?void 0:t.width)??0}));A(this,zn,W(()=>{var t;return((t=f(this,An))==null?void 0:t.height)??0}));A(this,zo,W(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));A(this,kn,W(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));A(this,En,W(()=>o(f(this,kn)).length>0));A(this,Fn,W(()=>({padding:this.opts.collisionPadding.current,boundary:o(f(this,kn)).filter(js),altBoundary:this.hasExplicitBoundaries})));A(this,Tn,yt(void 0));A(this,Dn,yt(void 0));A(this,Mn,yt(void 0));A(this,Ln,yt(void 0));A(this,In,W(()=>[qa({mainAxis:this.opts.sideOffset.current+o(f(this,zn)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Ja({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tl():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Za({...this.detectOverflowOptions}),Qa({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=t.reference;d(f(this,Tn),n,!0),d(f(this,Dn),r,!0),d(f(this,Mn),i,!0),d(f(this,Ln),s,!0)}}),this.arrowRef.current&&$a({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),il({arrowWidth:o(f(this,Ao)),arrowHeight:o(f(this,zn))}),this.opts.hideWhenDetached.current&&Ga({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));ot(this,"floating");A(this,Wn,W(()=>sl(this.floating.placement)));A(this,Nn,W(()=>al(this.floating.placement)));A(this,Hn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));A(this,Rn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));A(this,Bn,W(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));A(this,Vn,yt());A(this,Kn,W(()=>rl[this.placedSide]));A(this,Un,W(()=>{var t,n,r;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${o(f(this,Tn))}px`,"--bits-floating-available-height":`${o(f(this,Dn))}px`,"--bits-floating-anchor-width":`${o(f(this,Mn))}px`,"--bits-floating-anchor-height":`${o(f(this,Ln))}px`,...((r=this.floating.middlewareData.hide)==null?void 0:r.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...o(f(this,Cn))},dir:this.opts.dir.current,...this.wrapperAttachment}}));A(this,jn,W(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Xs({...o(f(this,Cn))}),...this.contentAttachment})));A(this,Xn,W(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=t,this.root=n,j(this,Sn,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Pn(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=nl({strategy:()=>this.opts.strategy.current,placement:()=>o(f(this,zo)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>{var s;return Ya(...r,{animationFrame:((s=f(this,Sn))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),he(()=>{var r;this.floating.isPositioned&&((r=this.opts.onPlaced)==null||r.current())}),Pn(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const i=Ys(r),s=i.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const a=i.getComputedStyle(r).zIndex;a!==this.contentZIndex&&(this.contentZIndex=a)});return()=>{i.cancelAnimationFrame(s)}}),he(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?vi.set(new ko(t,Cr.get())):vi.set(new ko(t,Or.get()))}get hasExplicitBoundaries(){return o(f(this,En))}set hasExplicitBoundaries(t){d(f(this,En),t)}get detectOverflowOptions(){return o(f(this,Fn))}set detectOverflowOptions(t){d(f(this,Fn),t)}get middleware(){return o(f(this,In))}set middleware(t){d(f(this,In),t)}get placedSide(){return o(f(this,Wn))}set placedSide(t){d(f(this,Wn),t)}get placedAlign(){return o(f(this,Nn))}set placedAlign(t){d(f(this,Nn),t)}get arrowX(){return o(f(this,Hn))}set arrowX(t){d(f(this,Hn),t)}get arrowY(){return o(f(this,Rn))}set arrowY(t){d(f(this,Rn),t)}get cannotCenterArrow(){return o(f(this,Bn))}set cannotCenterArrow(t){d(f(this,Bn),t)}get contentZIndex(){return o(f(this,Vn))}set contentZIndex(t){d(f(this,Vn),t,!0)}get arrowBaseSide(){return o(f(this,Kn))}set arrowBaseSide(t){d(f(this,Kn),t)}get wrapperProps(){return o(f(this,Un))}set wrapperProps(t){d(f(this,Un),t)}get props(){return o(f(this,jn))}set props(t){d(f(this,jn),t)}get arrowStyle(){return o(f(this,Xn))}set arrowStyle(t){d(f(this,Xn),t)}};Cn=new WeakMap,Sn=new WeakMap,An=new WeakMap,Ao=new WeakMap,zn=new WeakMap,zo=new WeakMap,kn=new WeakMap,En=new WeakMap,Fn=new WeakMap,Tn=new WeakMap,Dn=new WeakMap,Mn=new WeakMap,Ln=new WeakMap,In=new WeakMap,Wn=new WeakMap,Nn=new WeakMap,Hn=new WeakMap,Rn=new WeakMap,Bn=new WeakMap,Vn=new WeakMap,Kn=new WeakMap,Un=new WeakMap,jn=new WeakMap,Xn=new WeakMap;let ar=ko;class Oo{constructor(t,n){ot(this,"opts");ot(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Ks(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new Oo(t,Cr.get()):new Oo(t,Or.get())}}function il(e){return{name:"transformOrigin",options:e,fn(t){var O,x,D;const{placement:n,rects:r,middlewareData:i}=t,a=((O=i.arrow)==null?void 0:O.centerOffset)!==0,l=a?0:e.arrowWidth,h=a?0:e.arrowHeight,[m,y]=Sr(n),v={start:"0%",center:"50%",end:"100%"}[y],g=(((x=i.arrow)==null?void 0:x.x)??0)+l/2,p=(((D=i.arrow)==null?void 0:D.y)??0)+h/2;let w="",P="";return m==="bottom"?(w=a?v:`${g}px`,P=`${-h}px`):m==="top"?(w=a?v:`${g}px`,P=`${r.floating.height+h}px`):m==="right"?(w=`${-h}px`,P=a?v:`${p}px`):m==="left"&&(w=`${r.floating.width+h}px`,P=a?v:`${p}px`),{data:{x:w,y:P}}}}}function Sr(e){const[t,n="center"]=e.split("-");return[t,n]}function sl(e){return Sr(e)[0]}function al(e){return Sr(e)[1]}function ll(e,t){ie(t,!0);let n=k(t,"tooltip",3,!1);Po.create(n());var r=dt(),i=X(r);Bt(i,()=>t.children??ne),z(e,r),se()}function cl(e,t){ie(t,!0);let n=k(t,"tooltip",3,!1);Oo.create({id:U(()=>t.id),virtualEl:U(()=>t.virtualEl),ref:t.ref},n());var r=dt(),i=X(r);Bt(i,()=>t.children??ne),z(e,r),se()}function ul(e,t){ie(t,!0);let n=k(t,"side",3,"bottom"),r=k(t,"sideOffset",3,0),i=k(t,"align",3,"center"),s=k(t,"alignOffset",3,0),a=k(t,"arrowPadding",3,0),l=k(t,"avoidCollisions",3,!0),h=k(t,"collisionBoundary",19,()=>[]),m=k(t,"collisionPadding",3,0),y=k(t,"hideWhenDetached",3,!1),v=k(t,"onPlaced",3,()=>{}),g=k(t,"sticky",3,"partial"),p=k(t,"updatePositionStrategy",3,"optimized"),w=k(t,"strategy",3,"fixed"),P=k(t,"dir",3,"ltr"),O=k(t,"style",19,()=>({})),x=k(t,"wrapperId",19,Si),D=k(t,"customAnchor",3,null),T=k(t,"tooltip",3,!1);const E=ar.create({side:U(()=>n()),sideOffset:U(()=>r()),align:U(()=>i()),alignOffset:U(()=>s()),id:U(()=>t.id),arrowPadding:U(()=>a()),avoidCollisions:U(()=>l()),collisionBoundary:U(()=>h()),collisionPadding:U(()=>m()),hideWhenDetached:U(()=>y()),onPlaced:U(()=>v()),sticky:U(()=>g()),updatePositionStrategy:U(()=>p()),strategy:U(()=>w()),dir:U(()=>P()),style:U(()=>O()),enabled:U(()=>t.enabled),wrapperId:U(()=>x()),customAnchor:U(()=>D())},T()),L=W(()=>Qe(E.wrapperProps,{style:{pointerEvents:"auto"}}));var F=dt(),Q=X(F);Bt(Q,()=>t.content??ne,()=>({props:E.props,wrapperProps:o(L)})),z(e,F),se()}function dl(e,t){ie(t,!0),Ci(()=>{var i;(i=t.onPlaced)==null||i.call(t)});var n=dt(),r=X(n);Bt(r,()=>t.content??ne,()=>({props:{},wrapperProps:{}})),z(e,n),se()}function fl(e,t){let n=k(t,"isStatic",3,!1),r=ln(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=dt(),s=X(i);{var a=h=>{dl(h,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=h=>{ul(h,Nt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};xt(s,h=>{n()?h(a):h(l,-1)})}z(e,i)}var hl=at("<!> <!>",1);function Ri(e,t){ie(t,!0);let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=k(t,"tooltip",3,!1),h=k(t,"contentPointerEvents",3,"auto"),m=ln(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);const y=W(()=>t.preventScroll??!0),v=W(()=>t.strategy??(o(y)?"fixed":"absolute"));fl(e,{get isStatic(){return a()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return o(v)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return l()},content:(p,w)=>{let P=()=>w==null?void 0:w().props,O=()=>w==null?void 0:w().wrapperProps;var x=hl(),D=X(x);{var T=F=>{Qr(F,{get preventScroll(){return o(y)}})},E=F=>{Qr(F,{get preventScroll(){return o(y)}})};xt(D,F=>{t.forceMount&&t.enabled?F(T):t.forceMount||F(E,1)})}var L=M(D,2);qs(L,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(Q,ft)=>{let R=()=>ft==null?void 0:ft().props;Js(Q,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:($,et)=>{Zs($,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(nt,Y)=>{let ht=()=>Y==null?void 0:Y().props;Qs(nt,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(rt,J)=>{var V=dt(),Z=X(V);{let it=W(()=>({props:Qe(m,P(),ht(),R(),{style:{pointerEvents:h()}}),wrapperProps:O()}));Bt(Z,()=>t.popper??ne,()=>o(it))}z(rt,V)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),z(p,x)},$$slots:{content:!0}}),se()}function pl(e,t){let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=ln(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var h=dt(),m=X(h);{var y=v=>{Ri(v,Nt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return a()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};xt(m,v=>{t.shouldRender&&v(y)})}z(e,h)}function vl(e,t){let n=k(t,"interactOutsideBehavior",3,"close"),r=k(t,"trapFocus",3,!0),i=k(t,"isValidEvent",3,()=>!1),s=k(t,"customAnchor",3,null),a=k(t,"isStatic",3,!1),l=ln(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Ri(e,Nt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return a()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}function nr(e,t){const[n,r]=e;let i=!1;const s=t.length;for(let a=0,l=s-1;a<s;l=a++){const[h,m]=t[a]??[0,0],[y,v]=t[l]??[0,0];m>=r!=v>=r&&n<=(y-h)*(r-m)/(v-m)+h&&(i=!i)}return i}function or(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function gi(e,t){const n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,s=t.top+t.height/2,a=i-n,l=s-r;return Math.abs(a)>Math.abs(l)?a>0?"right":"left":l>0?"bottom":"top"}var ge,on,rn,Yt,Dt,De,Me,me,ye,q,yo,lr,cr,Bi,Vi,Xt,ur,Ki,Ui;class gl{constructor(t){A(this,q);A(this,ge);A(this,on);A(this,rn);A(this,Yt,null);A(this,Dt,null);A(this,De,[]);A(this,Me,null);A(this,me,null);A(this,ye,null);j(this,ge,t),j(this,on,t.buffer??1);const n=t.transitIntentTimeout;j(this,rn,typeof n=="number"&&n>0?n:null),Pn([t.triggerNode,t.contentNode,t.enabled],([r,i,s])=>{if(!r||!i||!s){j(this,Me,null),B(this,q,Xt).call(this);return}f(this,Me)&&f(this,Me)!==r&&B(this,q,Xt).call(this),j(this,Me,r);const a=Gs(r),l=g=>{B(this,q,Vi).call(this,[g.clientX,g.clientY],r,i)},h=g=>{var P,O;const p=g.relatedTarget;if(Te(p)&&i.contains(p))return;const w=((O=(P=f(this,ge)).ignoredTargets)==null?void 0:O.call(P))??[];Te(p)&&w.some(x=>x===p||x.contains(p))||(j(this,De,Te(p)&&w.length>0?w.filter(x=>p.contains(x)):[]),j(this,Yt,[g.clientX,g.clientY]),j(this,Dt,"content"),B(this,q,lr).call(this))},m=()=>{B(this,q,Xt).call(this)},y=()=>{B(this,q,Xt).call(this)},v=g=>{const p=g.relatedTarget;Te(p)&&r.contains(p)||(j(this,Yt,[g.clientX,g.clientY]),j(this,Dt,"trigger"),B(this,q,lr).call(this))};return[bn(a,"pointermove",l),bn(r,"pointerleave",h),bn(r,"pointerenter",m),bn(i,"pointerenter",y),bn(i,"pointerleave",v)].reduce((g,p)=>()=>{g(),p()},()=>{})})}}ge=new WeakMap,on=new WeakMap,rn=new WeakMap,Yt=new WeakMap,Dt=new WeakMap,De=new WeakMap,Me=new WeakMap,me=new WeakMap,ye=new WeakMap,q=new WeakSet,yo=function(){f(this,me)!==null&&(cancelAnimationFrame(f(this,me)),j(this,me,null))},lr=function(){B(this,q,yo).call(this),j(this,me,requestAnimationFrame(()=>{j(this,me,null),!(!f(this,Yt)||!f(this,Dt))&&(B(this,q,Xt).call(this),f(this,ge).onPointerExit())}))},cr=function(){f(this,ye)!==null&&(clearTimeout(f(this,ye)),j(this,ye,null))},Bi=function(){f(this,rn)!==null&&(B(this,q,cr).call(this),j(this,ye,window.setTimeout(()=>{j(this,ye,null),!(!f(this,Yt)||!f(this,Dt))&&(B(this,q,Xt).call(this),f(this,ge).onPointerExit())},f(this,rn))))},Vi=function(t,n,r){if(!f(this,Yt)||!f(this,Dt))return;B(this,q,yo).call(this),B(this,q,Bi).call(this);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(f(this,Dt)==="content"&&or(t,s)){B(this,q,Xt).call(this);return}if(f(this,Dt)==="trigger"&&or(t,i)){B(this,q,Xt).call(this);return}if(f(this,Dt)==="content"&&f(this,De).length>0)for(const y of f(this,De)){const v=y.getBoundingClientRect();if(or(t,v))return;const g=gi(i,v),p=B(this,q,ur).call(this,i,v,g);if(p&&nr(t,p))return}const a=gi(i,s),l=B(this,q,ur).call(this,i,s,a);if(l&&nr(t,l))return;const h=f(this,Dt)==="content"?s:i,m=B(this,q,Ki).call(this,f(this,Yt),h,a,f(this,Dt));nr(t,m)||(B(this,q,Xt).call(this),f(this,ge).onPointerExit())},Xt=function(){j(this,Yt,null),j(this,Dt,null),j(this,De,[]),B(this,q,yo).call(this),B(this,q,cr).call(this)},ur=function(t,n,r){const i=f(this,on);switch(r){case"top":return[[Math.min(t.left,n.left)-i,t.top],[Math.min(t.left,n.left)-i,n.bottom],[Math.max(t.right,n.right)+i,n.bottom],[Math.max(t.right,n.right)+i,t.top]];case"bottom":return[[Math.min(t.left,n.left)-i,t.bottom],[Math.min(t.left,n.left)-i,n.top],[Math.max(t.right,n.right)+i,n.top],[Math.max(t.right,n.right)+i,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-i],[n.right,Math.min(t.top,n.top)-i],[n.right,Math.max(t.bottom,n.bottom)+i],[t.left,Math.max(t.bottom,n.bottom)+i]];case"right":return[[t.right,Math.min(t.top,n.top)-i],[n.left,Math.min(t.top,n.top)-i],[n.left,Math.max(t.bottom,n.bottom)+i],[t.right,Math.max(t.bottom,n.bottom)+i]]}},Ki=function(t,n,r,i){const s=f(this,on)*4,[a,l]=t;switch(i==="trigger"?B(this,q,Ui).call(this,r):r){case"top":return[[a-s,l+s],[a+s,l+s],[n.right+s,n.bottom],[n.right+s,n.top],[n.left-s,n.top],[n.left-s,n.bottom]];case"bottom":return[[a-s,l-s],[a+s,l-s],[n.right+s,n.top],[n.right+s,n.bottom],[n.left-s,n.bottom],[n.left-s,n.top]];case"left":return[[a+s,l-s],[a+s,l+s],[n.right,n.bottom+s],[n.left,n.bottom+s],[n.left,n.top-s],[n.right,n.top-s]];case"right":return[[a-s,l-s],[a-s,l+s],[n.left,n.bottom+s],[n.right,n.bottom+s],[n.right,n.top-s],[n.left,n.top-s]]}},Ui=function(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const dr=ra({component:"popover",parts:["root","trigger","content","close","overlay"]}),Ar=new Eo("Popover.Root");var Yn,qn,Jn,Zn,Qn,Gn,$n,we,be,qt,fe;const zr=class zr{constructor(t){A(this,qt);ot(this,"opts");A(this,Yn,yt(null));ot(this,"contentPresence");A(this,qn,yt(null));A(this,Jn,yt(null));ot(this,"overlayPresence");A(this,Zn,yt(!1));A(this,Qn,yt(!1));A(this,Gn,yt(!1));A(this,$n,yt(0));A(this,we,null);A(this,be,null);this.opts=t,this.contentPresence=new Gr({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Gr({ref:U(()=>this.overlayNode),open:this.opts.open}),Pn(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,B(this,qt,fe).call(this))})}static create(t){return Ar.set(new zr(t))}get contentNode(){return o(f(this,Yn))}set contentNode(t){d(f(this,Yn),t,!0)}get triggerNode(){return o(f(this,qn))}set triggerNode(t){d(f(this,qn),t,!0)}get overlayNode(){return o(f(this,Jn))}set overlayNode(t){d(f(this,Jn),t,!0)}get openedViaHover(){return o(f(this,Zn))}set openedViaHover(t){d(f(this,Zn),t,!0)}get hasInteractedWithContent(){return o(f(this,Qn))}set hasInteractedWithContent(t){d(f(this,Qn),t,!0)}get hoverCooldown(){return o(f(this,Gn))}set hoverCooldown(t){d(f(this,Gn),t,!0)}get closeDelay(){return o(f(this,$n))}set closeDelay(t){d(f(this,$n),t,!0)}setDomContext(t){j(this,be,t)}toggleOpen(){B(this,qt,fe).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){B(this,qt,fe).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){B(this,qt,fe).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||(B(this,qt,fe).call(this),this.closeDelay<=0?this.opts.open.current=!1:f(this,be)&&j(this,we,f(this,be).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),j(this,we,null)},this.closeDelay))))}cancelDelayedClose(){B(this,qt,fe).call(this)}markInteraction(){this.hasInteractedWithContent=!0,B(this,qt,fe).call(this)}};Yn=new WeakMap,qn=new WeakMap,Jn=new WeakMap,Zn=new WeakMap,Qn=new WeakMap,Gn=new WeakMap,$n=new WeakMap,we=new WeakMap,be=new WeakMap,qt=new WeakSet,fe=function(){f(this,we)!==null&&f(this,be)&&(f(this,be).clearTimeout(f(this,we)),j(this,we,null))};let fr=zr;var xe,sn,Le,Ht,pr,vr,gr,ji,to;const kr=class kr{constructor(t,n){A(this,Ht);ot(this,"opts");ot(this,"root");ot(this,"attachment");ot(this,"domContext");A(this,xe,null);A(this,sn,null);A(this,Le,yt(!1));A(this,to,W(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":na(this.root.opts.open.current),"data-state":Ai(this.root.opts.open.current),"aria-controls":B(this,Ht,ji).call(this),[dr.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=t,this.root=n,this.attachment=_n(this.opts.ref,r=>this.root.triggerNode=r),this.domContext=new $s(t.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),Pn(()=>this.opts.closeDelay.current,r=>{this.root.closeDelay=r})}static create(t){return new kr(t,Ar.get())}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||wo(t)||(d(f(this,Le),!0),B(this,Ht,vr).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():j(this,xe,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),j(this,xe,null)},n))}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(wo(t)||(d(f(this,Le),!1),B(this,Ht,pr).call(this),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(B(this,Ht,gr).call(this),o(f(this,Le))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(f(this,Le))&&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(t){this.opts.disabled.current||(t.key===ta||t.key===ea)&&(t.preventDefault(),B(this,Ht,gr).call(this),this.root.toggleOpen())}get props(){return o(f(this,to))}set props(t){d(f(this,to),t)}};xe=new WeakMap,sn=new WeakMap,Le=new WeakMap,Ht=new WeakSet,pr=function(){f(this,xe)!==null&&(this.domContext.clearTimeout(f(this,xe)),j(this,xe,null))},vr=function(){f(this,sn)!==null&&(this.domContext.clearTimeout(f(this,sn)),j(this,sn,null))},gr=function(){B(this,Ht,pr).call(this),B(this,Ht,vr).call(this)},ji=function(){var t,n;if(this.root.opts.open.current&&((t=this.root.contentNode)!=null&&t.id))return(n=this.root.contentNode)==null?void 0:n.id},to=new WeakMap;let hr=kr;var eo,no;const Er=class Er{constructor(t,n){ot(this,"opts");ot(this,"root");ot(this,"attachment");ot(this,"onInteractOutside",t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!Te(t.target))return;const n=t.target.closest(dr.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(Te(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(t.target))return}}this.root.handleClose()}});ot(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});A(this,eo,W(()=>({open:this.root.opts.open.current})));A(this,no,W(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ai(this.root.opts.open.current),[dr.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));ot(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=t,this.root=n,this.attachment=_n(this.opts.ref,r=>this.root.contentNode=r),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 gl({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(t){return new Er(t,Ar.get())}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;Te(n)&&oa(n)&&this.root.markInteraction()}onpointerenter(t){wo(t)||this.root.cancelDelayedClose()}onpointerleave(t){wo(t)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return o(f(this,eo))}set snippetProps(t){d(f(this,eo),t)}get props(){return o(f(this,no))}set props(t){d(f(this,no),t)}};eo=new WeakMap,no=new WeakMap;let mr=Er;var ml=at("<div><div><!></div></div>"),yl=at("<div><div><!></div></div>");function mi(e,t){const n=Oi();ie(t,!0);let r=k(t,"ref",15,null),i=k(t,"id",19,()=>zi(n)),s=k(t,"forceMount",3,!1),a=k(t,"onOpenAutoFocus",3,Ze),l=k(t,"onCloseAutoFocus",3,Ze),h=k(t,"onEscapeKeydown",3,Ze),m=k(t,"onInteractOutside",3,Ze),y=k(t,"trapFocus",3,!0),v=k(t,"preventScroll",3,!1),g=k(t,"customAnchor",3,null),p=ln(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const w=mr.create({id:U(()=>i()),ref:U(()=>r(),F=>r(F)),onInteractOutside:U(()=>m()),onEscapeKeydown:U(()=>h()),customAnchor:U(()=>g())}),P=W(()=>Qe(p,w.props)),O=W(()=>y()&&w.shouldTrapFocus);function x(F){w.shouldTrapFocus||F.preventDefault(),a()(F)}var D=dt(),T=X(D);{var E=F=>{vl(F,Nt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get enabled(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!0,get customAnchor(){return g()},onOpenAutoFocus:x,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,et=()=>R==null?void 0:R().wrapperProps;const tt=W(()=>Qe($(),{style:pi("popover")},{style:t.style}));var nt=dt(),Y=X(nt);{var ht=J=>{var V=dt(),Z=X(V);{let it=W(()=>({props:o(tt),wrapperProps:et(),...w.snippetProps}));Bt(Z,()=>t.child,()=>o(it))}z(J,V)},rt=J=>{var V=ml();xn(V,()=>({...et()}));var Z=S(V);xn(Z,()=>({...o(tt)}));var it=S(Z);Bt(it,()=>t.children??ne),C(Z),C(V),z(J,V)};xt(Y,J=>{t.child?J(ht):J(rt,-1)})}z(ft,nt)},$$slots:{popper:!0}}))},L=F=>{pl(F,Nt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get open(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!1,get customAnchor(){return g()},onOpenAutoFocus:x,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,et=()=>R==null?void 0:R().wrapperProps;const tt=W(()=>Qe($(),{style:pi("popover")},{style:t.style}));var nt=dt(),Y=X(nt);{var ht=J=>{var V=dt(),Z=X(V);{let it=W(()=>({props:o(tt),wrapperProps:et(),...w.snippetProps}));Bt(Z,()=>t.child,()=>o(it))}z(J,V)},rt=J=>{var V=yl();xn(V,()=>({...et()}));var Z=S(V);xn(Z,()=>({...o(tt)}));var it=S(Z);Bt(it,()=>t.children??ne),C(Z),C(V),z(J,V)};xt(Y,J=>{t.child?J(ht):J(rt,-1)})}z(ft,nt)},$$slots:{popper:!0}}))};xt(T,F=>{s()?F(E):s()||F(L,1)})}z(e,D),se()}var wl=at("<button><!></button>");function yi(e,t){const n=Oi();ie(t,!0);let r=k(t,"id",19,()=>zi(n)),i=k(t,"ref",15,null),s=k(t,"type",3,"button"),a=k(t,"disabled",3,!1),l=k(t,"openOnHover",3,!1),h=k(t,"openDelay",3,700),m=k(t,"closeDelay",3,300),y=ln(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const v=hr.create({id:U(()=>r()),ref:U(()=>i(),p=>i(p)),disabled:U(()=>!!a()),openOnHover:U(()=>l()),openDelay:U(()=>h()),closeDelay:U(()=>m())}),g=W(()=>Qe(y,v.props,{type:s()}));cl(e,{get id(){return r()},get ref(){return v.opts.ref},children:(p,w)=>{var P=dt(),O=X(P);{var x=T=>{var E=dt(),L=X(E);Bt(L,()=>t.child,()=>({props:o(g)})),z(T,E)},D=T=>{var E=wl();xn(E,()=>({...o(g)}));var L=S(E);Bt(L,()=>t.children??ne),C(E),z(T,E)};xt(O,T=>{t.child?T(x):T(D,-1)})}z(p,P)},$$slots:{default:!0}}),se()}function wi(e,t){ie(t,!0);let n=k(t,"open",15,!1),r=k(t,"onOpenChange",3,Ze),i=k(t,"onOpenChangeComplete",3,Ze);fr.create({open:U(()=>n(),s=>{n(s),r()(s)}),onOpenChangeComplete:U(()=>i())}),ll(e,{children:(s,a)=>{var l=dt(),h=X(l);Bt(h,()=>t.children??ne),z(s,l)},$$slots:{default:!0}}),se()}function bl(e,t){const n=Ae(t,["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 r=[["path",{d:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"m21 8-4-4-4 4"}],["path",{d:"M17 4v16"}]];Ce(e,Nt({name:"arrow-down-up"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function xl(e,t){const n=Ae(t,["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 r=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];Ce(e,Nt({name:"copy"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function _l(e,t){const n=Ae(t,["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 r=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];Ce(e,Nt({name:"ellipsis"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function Pl(e,t){const n=Ae(t,["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 r=[["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"}]];Ce(e,Nt({name:"mail"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function Ol(e,t){const n=Ae(t,["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 r=[["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"}]];Ce(e,Nt({name:"pencil"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function Cl(e,t){const n=Ae(t,["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 r=[["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"}]];Ce(e,Nt({name:"sparkles"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function bi(e,t){const n=Ae(t,["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 r=[["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"}]];Ce(e,Nt({name:"trash-2"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function Sl(e,t){const n=Ae(t,["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 r=[["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"}]];Ce(e,Nt({name:"trash"},()=>n,{get iconNode(){return r},children:(i,s)=>{var a=dt(),l=X(a);Se(l,t,"default",{}),z(i,a)},$$slots:{default:!0}}))}function xi(e){const t=e.trim();if(!t)return t;if(!/^https?:\/\//i.test(t))return t.toLowerCase();try{const n=new URL(t),r=n.protocol.toLowerCase(),i=n.host.toLowerCase();let s=n.pathname;return s.length>1&&s.endsWith("/")&&(s=s.slice(0,-1)),s=s.toLowerCase(),`${r}//${i}${s}${n.search}${n.hash}`}catch{return t.toLowerCase()}}function _i(e){const t=e.trim();if(!/^https?:\/\//i.test(t))return null;try{return new URL(t).hostname.replace(/^www\./i,"")||null}catch{return null}}function Pi(e){return`/api/feed-favicon?domain=${encodeURIComponent(e)}`}var Al=at("<option> </option>"),zl=at('<p class="save-error svelte-1beoyzy"> </p>'),kl=at('<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>'),El=at('<button type="button" class="btn-delete svelte-1beoyzy"><!> 删除</button>'),Fl=at('<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),Tl=at("<!> <!>",1),Dl=at('<p class="remove-dialog-target svelte-1beoyzy"> </p>'),Ml=at('<div class="modal-header svelte-1beoyzy"><!> <!></div> <div class="modal-body svelte-1beoyzy"><p id="remove-source-desc" class="remove-dialog-text svelte-1beoyzy">确定删除该信源吗?操作会同时删除该信源下已入库的所有条目,且不可恢复。</p> <!></div> <div class="modal-footer remove-dialog-footer svelte-1beoyzy"><!> <button type="button" class="btn-confirm-yes svelte-1beoyzy">移除</button></div>',1),Ll=at("<!> <!>",1),Il=at('<span class="sort-menu-dir svelte-1beoyzy" aria-hidden="true"> </span>'),Wl=at('<button type="button"><span> </span> <!></button>'),Nl=at("<!> <!>",1),Hl=at('<div class="state svelte-1beoyzy">加载中…</div>'),Rl=at('<div class="state error svelte-1beoyzy"> </div>'),Bl=at('<div class="state svelte-1beoyzy">暂无信源。<button type="button" class="link-btn svelte-1beoyzy">点击添加</button>第一个信源。</div>'),Vl=at('<div class="state svelte-1beoyzy">无匹配结果</div>'),Kl=at('<img class="source-title-favicon svelte-1beoyzy" alt="" width="16" height="16" loading="lazy" decoding="async"/>'),Ul=at('<span class="source-title-favicon-slot svelte-1beoyzy" aria-hidden="true"><!></span>'),jl=at('<a class="more-menu-item svelte-1beoyzy" target="_blank" rel="noopener noreferrer"><!> <span>打开链接</span></a>'),Xl=at('<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),Yl=at("<!> <!>",1),ql=at('<div class="card row-grid svelte-1beoyzy" role="button" tabindex="0"><div class="cell-title svelte-1beoyzy"><div class="title-block svelte-1beoyzy"><!> <div class="title-line svelte-1beoyzy"><span class="title-text svelte-1beoyzy"> </span> <span class="title-item-count svelte-1beoyzy" title="已收录条目"> </span></div></div></div> <div class="cell-actions svelte-1beoyzy"><!></div></div>'),Jl=at('<div class="list svelte-1beoyzy"></div>'),Zl=at('<!> <!> <!> <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="添加信源" aria-label="添加信源"><!></button></div></div></div> <div class="feed-body-scroll svelte-1beoyzy"><!></div></div></div>',1);function yc(e,t){ie(t,!1);const n=()=>Yr(Hs,"$refToTaskId",i),r=()=>Yr(Go,"$page",i),[i,s]=Fs(),a=G(),l=G(),h=G(),m=G();function y(c){return c==="alpha"||c==="parse"?"asc":"desc"}const v="1day",g=[{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 p(c){const u=(c==null?void 0:c.trim())??"";return g.some(b=>b.value===u)?u:v}function w(c){return Math.min(1,Math.max(0,c))}function P(c){const u=typeof c=="number"&&!Number.isNaN(c)?c:Number(String(c).trim());return Number.isFinite(u)?u<0||u>1?{ok:!1,message:"权重需在 0–1 之间"}:{ok:!0,value:u}:{ok:!1,message:"权重需为 0–1 之间的数字"}}let O=[],x=G([]),D=G(!0),T=G(""),E=G(""),L=G("weight"),F=G("desc"),Q=G(!1),ft="",R=G(null),$=G({}),et=G(null),tt=G(null),nt=G(!1),Y=G(null),ht=G(!1),rt=G(null),J=G(!1),V=G(!1),Z=G(!1),it=G(""),Rt=G(""),We=G(""),Ne=G(""),dn=G(0),fn=G(v),He=G(""),Re=G(null),ro=null;function io(c){const u=(c==null?void 0:c.trim())??"";if(!u)return u;const b=u.toLowerCase();return b.startsWith("http://")||b.startsWith("https://")||b.startsWith("imaps://")||b.startsWith("imap://")||b.startsWith("lingowhale://")?u:"https://"+u}function Xi(c){const u=c.toLowerCase();return u.includes("/feed")||u.includes("/rss")||u.includes("/atom")||u.endsWith(".xml")||u.endsWith(".rss")||u.endsWith(".atom")||u.includes("format=rss")||u.includes("format=atom")||u.includes("output=rss")}function Fr(c,u){const b=(c==null?void 0:c.trim())??"";if(!b)return null;const _=b.toLowerCase();if(_.startsWith("imaps://")||_.startsWith("imap://"))return"email";if(_.startsWith("lingowhale://"))return"plugin";const H=io(b);return!H.startsWith("http://")&&!H.startsWith("https://")?null:Xi(H)?"rss":u?"plugin":"llm"}function Lo(c){return c==="rss"?"RSS/Atom":c==="plugin"?"插件":c==="llm"?"LLM":c==="email"?"邮箱":"—"}function Yi(c){ro&&clearTimeout(ro);const u=c==null?void 0:c.trim();if(!u){d(Re,null);return}d(Re,null);const b=io(u);ro=setTimeout(async()=>{ro=null;try{const _=await ee("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:[b]})});if(_.ok){const H=await _.json();io(o(Rt).trim())===b&&d(Re,H[b]??null)}}catch{io(o(Rt).trim())===b&&d(Re,null)}},400)}function qi(c,u,b){const _=b==="desc"?-1:1;return[...c].sort((H,I)=>{let K=0;switch(u){case"weight":K=H.weight-I.weight;break;case"alpha":K=H.displayLabel.localeCompare(I.displayLabel,"zh-CN");break;case"parse":K=Lo(H.parseHint).localeCompare(Lo(I.parseHint),"zh-CN");break;case"latest":{const wt=H.latestAt?new Date(H.latestAt).getTime():NaN,Ft=I.latestAt?new Date(I.latestAt).getTime():NaN,Ct=Number.isFinite(wt),N=Number.isFinite(Ft);if(!Ct&&!N)K=0;else if(Ct)if(N)K=wt-Ft;else return-1;else return 1;break}case"count":K=H.count-I.count;break}return K!==0?_*K:H.displayLabel.localeCompare(I.displayLabel,"zh-CN")})}function Ji(c){o(L)===c?d(F,o(F)==="asc"?"desc":"asc"):(d(L,c),d(F,y(c)))}let Io=G(!1);function Tr(c){return c==="alpha"?"标题":c==="weight"?"权重":c==="latest"?"最近拉取":c==="parse"?"解析":"数量"}function Zi(c){Ji(c),d(Io,!1)}const Qi=["alpha","weight","latest","parse","count"];async function Be(c){const u=(c==null?void 0:c.silent)===!0;u||d(D,!0),d(T,"");try{const[b,_]=await Promise.all([ee("/api/sources/raw"),ee("/api/sources/stats")]),H=await b.text(),I=JSON.parse(H||"{}");O=Array.isArray(I.sources)?I.sources:[];const K=_.ok?await _.json():[],wt=new Map;for(const N of K){const lt=xi(N.source_url),pt=wt.get(lt),ut=N.latest_at??null;pt?wt.set(lt,{count:pt.count+N.count,latestAt:pt.latestAt?ut?pt.latestAt>=ut?pt.latestAt:ut:pt.latestAt:ut}):wt.set(lt,{count:N.count,latestAt:ut})}const Ft=O.filter(N=>{var lt;return(lt=N==null?void 0:N.ref)==null?void 0:lt.trim()}).map(N=>N.ref.trim());let Ct={};if(Ft.length>0)try{const N=await ee("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:Ft})});N.ok&&(Ct=await N.json())}catch{}d(x,O.filter(N=>{var lt;return(lt=N==null?void 0:N.ref)==null?void 0:lt.trim()}).map(N=>{var Mt,Tt;const lt=N.ref.trim(),pt=wt.get(xi(lt))??{count:0,latestAt:null},ut=Ct[lt]??null,_t=(Mt=N.proxy)==null?void 0:Mt.trim();return{ref:lt,displayLabel:N.label&&N.label.trim()||lt,description:(Tt=N.description)==null?void 0:Tt.trim(),count:(pt==null?void 0:pt.count)??0,latestAt:(pt==null?void 0:pt.latestAt)??null,pluginId:ut,weight:N.weight??0,..._t?{proxy:_t}:{},parseHint:Fr(lt,ut)}}))}catch(b){d(T,b instanceof Error?b.message:String(b)),u||d(x,[])}finally{u||d(D,!1)}}async function Wo(c){return(await ee("/api/sources/raw",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({sources:c})})).ok}function Dr(){d(V,!1),d(Rt,""),d(We,""),d(Ne,""),d(dn,0),d(fn,v),d(He,""),d(it,""),d(J,!0)}function Gi(c){const u=O.find(b=>b.ref===c.ref);d(V,!0),ft=c.ref,d(Rt,c.ref),d(We,(u==null?void 0:u.label)??""),d(Ne,(u==null?void 0:u.description)??""),d(dn,w((u==null?void 0:u.weight)??0)),d(fn,p(u==null?void 0:u.refresh)),d(He,(u==null?void 0:u.proxy)??""),d(it,""),d(Q,!1),d(J,!0)}function Mr(){d(J,!1),d(Q,!1)}async function $i(){const c=o(Rt).trim();if(!c){d(it,"ref 不能为空");return}const u=P(o(dn));if(!u.ok){d(it,u.message);return}d(Z,!0),d(it,"");try{const b=u.value,_={ref:c,...o(We).trim()?{label:o(We).trim()}:{},...o(Ne).trim()?{description:o(Ne).trim()}:{},refresh:o(fn),...o(He).trim()?{proxy:o(He).trim()}:{},...b!==0?{weight:b}:{}};let H;if(o(V)){if(c!==ft&&O.some(K=>K.ref===c)){d(it,"该 ref 已存在");return}H=O.map(K=>K.ref===ft?{...K,..._}:K)}else{if(O.some(K=>K.ref===c)){d(it,"该 ref 已存在");return}H=[...O,_]}if(!await Wo(H)){d(it,"保存失败,请重试");return}Mr(),await Be({silent:!0})}catch(b){d(it,b instanceof Error?b.message:String(b))}finally{d(Z,!1)}}async function Lr(c){try{const u=await ee("/api/items/by-source?source_url="+encodeURIComponent(c),{method:"DELETE"}),b=await u.json();return!u.ok||!b.ok?{ok:!1,message:b.message??"删除信源条目失败"}:{ok:!0,deleted:Number(b.deleted??0)}}catch(u){return{ok:!1,message:u instanceof Error?u.message:"删除信源条目失败"}}}async function ts(){const c=ft.trim();if(!c){d(it,"缺少信源 ref");return}d(Z,!0),d(it,"");try{const u=await Lr(c);if(!u.ok){d(it,u.message);return}const b=O.filter(H=>H.ref!==c);if(!await Wo(b)){d(it,"删除信源失败,请重试");return}Mr(),await Be({silent:!0})}catch(u){d(it,u instanceof Error?u.message:String(u))}finally{d(Z,!1)}}async function es(c){for(let u=0;u<120;u++){const b=await ee(`/api/tasks/${c}`);if(!b.ok)return{ok:!1,error:"轮询失败"};const _=await b.json();if(_.status==="done")return{ok:!0};if(_.status==="error")return{ok:!1,error:_.error??"拉取失败"};await new Promise(H=>setTimeout(H,800))}return{ok:!1,error:"超时"}}async function ns(c,u){if(u==null||u.preventDefault(),u==null||u.stopPropagation(),!(c in n()))try{const b=await ee("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:c})}),_=await b.json();if(!b.ok||!_.taskId)return;Rs(c,_.taskId),(await es(_.taskId)).ok&&await Be({silent:!0})}catch{}finally{Bs(c)}}function os(c){const u=c.trim().toLowerCase();return u.startsWith("http://")||u.startsWith("https://")}function rs(c){const u=new URL("/rss",typeof window<"u"?window.location.origin:"http://127.0.0.1");return u.searchParams.set("ref",c),u.href}async function is(c){const u=rs(c);try{await navigator.clipboard.writeText(u)}catch{try{const b=document.createElement("textarea");b.value=u,b.style.position="fixed",b.style.left="-9999px",document.body.appendChild(b),b.select(),document.execCommand("copy"),document.body.removeChild(b)}catch{}}d(R,null)}function ss(c){d(nt,c),c||d(Y,null)}function as(c){o(tt)||(d(Y,c),d(nt,!0),d(R,null))}async function ls(){var u;const c=o(Y);if(!(!c||o(tt))){d(nt,!1),d(Y,null),d(tt,c);try{const b=await Lr(c);if(!b.ok){$o(b.message,"error");return}const _=O.filter(I=>I.ref!==c);if(!await Wo(_)){$o("移除失败,请重试","error");return}Jr(Go).url.pathname==="/"?Zr.update(I=>(I==null?void 0:I.ref)===c?null:I):((u=o(rt))==null?void 0:u.ref)===c&&(d(ht,!1),d(rt,null)),await Be({silent:!0})}catch(b){$o(b instanceof Error?b.message:"移除失败","error")}finally{d(tt,null)}}}async function cs(c){if(!o(et)&&confirm("确定要清空该信源下的所有条目吗?此操作不可恢复。")){d(et,c),d(R,null);try{const u=await ee("/api/items/by-source?source_url="+encodeURIComponent(c),{method:"DELETE"}),b=await u.json();u.ok&&b.ok?await Be({silent:!0}):u.ok||alert(b.message??"清空失败")}catch(u){alert(u instanceof Error?u.message:"清空失败")}finally{d(et,null)}}}function Ir(c){var u,b;if(Jr(Go).url.pathname==="/"){Zr.set({ref:c.ref,displayLabel:c.displayLabel,...(u=c.description)!=null&&u.trim()?{description:c.description.trim()}:{},...(b=c.proxy)!=null&&b.trim()?{proxy:c.proxy.trim()}:{}});return}d(rt,c),d(ht,!0)}function us(c,u){const b=u.target;b&&(b.closest("a[href], button")||Ir(c))}function ds(c,u){u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),Ir(c))}Ci(Be),wn(()=>(o(Y),o(x)),()=>{var c;d(a,o(Y)!=null?((c=o(x).find(u=>u.ref===o(Y)))==null?void 0:c.displayLabel)??o(Y):"")}),wn(()=>o(Rt),()=>{o(Rt),Yi(o(Rt))}),wn(()=>(o(Rt),o(Re)),()=>{d(l,Fr(o(Rt),o(Re)))}),wn(()=>o(l),()=>{d(h,o(l)??"llm")}),wn(()=>(o(E),o(x),o(L),o(F)),()=>{d(m,qi(o(E).trim()?o(x).filter(c=>{var b;const u=o(E).trim().toLowerCase();return c.displayLabel.toLowerCase().includes(u)||(((b=c.description)==null?void 0:b.toLowerCase().includes(u))??!1)||c.ref.toLowerCase().includes(u)||Lo(c.parseHint).toLowerCase().includes(u)}):o(x),o(L),o(F)))}),Ss(),Ds();var Wr=Zl(),Nr=X(Wr);$r(Nr,{get open(){return o(J)},onOpenChange:c=>{d(J,c),c||d(Q,!1)},children:(c,u)=>{vo(c,{children:(b,_)=>{var H=Tl(),I=X(H);ti(I,{class:"modal-overlay"});var K=M(I,2);ei(K,{class:"modal","aria-describedby":void 0,children:(wt,Ft)=>{var Ct=Fl(),N=X(Ct),lt=S(N);ni(lt,{class:"modal-title",children:(ct,Pt)=>{zt();var Ot=Xe();kt(()=>Lt(Ot,o(V)?"编辑信源":"添加信源")),z(ct,Ot)},$$slots:{default:!0}});var pt=M(lt,2);go(pt,{class:"modal-close","aria-label":"关闭",children:(ct,Pt)=>{zt();var Ot=Xe("✕");z(ct,Ot)},$$slots:{default:!0}}),C(N);var ut=M(N,2),_t=S(ut),Mt=M(S(_t),2),Tt=S(Mt);Ye(Tt),C(Mt),C(_t);var bt=M(_t,2),St=M(S(bt),2),gt=S(St);let vt;var mt=S(gt);Ms(mt,{size:14,class:"parse-hint-icon"}),zt(2),C(gt);var At=M(gt,2);let Ut;var Vo=S(At);Pl(Vo,{size:14,class:"parse-hint-icon"}),zt(2),C(At);var le=M(At,2);let Ko;var so=S(le);Ls(so,{size:14,class:"parse-hint-icon"}),zt(2),C(le);var jt=M(le,2);let hn;var ao=S(jt);Cl(ao,{size:14,class:"parse-hint-icon"}),zt(2),C(jt),C(St),C(bt);var Ve=M(bt,2),lo=M(S(Ve),2);Ye(lo),C(Ve);var ce=M(Ve,2),co=M(S(ce),2);Ye(co),C(ce);var ue=M(ce,2),pn=S(ue),vn=M(S(pn),2);Ye(vn),C(pn);var uo=M(pn,2),gn=M(S(uo),2);Zo(gn,5,()=>g,qr,(ct,Pt)=>{var Ot=Al(),Xo=S(Ot,!0);C(Ot);var po={};kt(()=>{Lt(Xo,(o(Pt),st(()=>o(Pt).label))),po!==(po=(o(Pt),st(()=>o(Pt).value)))&&(Ot.value=(Ot.__value=(o(Pt),st(()=>o(Pt).value)))??"")}),z(ct,Ot)}),C(gn),C(uo),C(ue);var Gt=M(ue,2),mn=M(S(Gt),2);Ye(mn),C(Gt);var fo=M(Gt,2);{var Uo=ct=>{var Pt=zl(),Ot=S(Pt,!0);C(Pt),kt(()=>Lt(Ot,o(it))),z(ct,Pt)};xt(fo,ct=>{o(it)&&ct(Uo)})}C(ut);var ze=M(ut,2),Ke=S(ze),ho=S(Ke);{var jo=ct=>{var Pt=dt(),Ot=X(Pt);{var Xo=je=>{var $t=kl(),yn=M(S($t),2),Ps=M(yn,2);C($t),kt(()=>yn.disabled=o(Z)),Et("click",yn,ts),Et("click",Ps,()=>d(Q,!1)),z(je,$t)},po=je=>{var $t=El(),yn=S($t);bi(yn,{size:13}),zt(),C($t),kt(()=>$t.disabled=o(Z)),Et("click",$t,()=>d(Q,!0)),z(je,$t)};xt(Ot,je=>{o(Q)?je(Xo):je(po,-1)})}z(ct,Pt)};xt(ho,ct=>{o(V)&&ct(jo)})}C(Ke);var de=M(Ke,2),ke=S(de);go(ke,{class:"btn-cancel",get disabled(){return o(Z)},children:(ct,Pt)=>{zt();var Ot=Xe("取消");z(ct,Ot)},$$slots:{default:!0}});var Ue=M(ke,2),_s=S(Ue,!0);C(Ue),C(de),C(ze),kt(()=>{vt=qe(gt,1,"parse-hint svelte-1beoyzy",null,vt,{active:o(h)==="rss"}),Ut=qe(At,1,"parse-hint svelte-1beoyzy",null,Ut,{active:o(h)==="email"}),Ko=qe(le,1,"parse-hint svelte-1beoyzy",null,Ko,{active:o(h)==="plugin"}),hn=qe(jt,1,"parse-hint svelte-1beoyzy",null,hn,{active:o(h)==="llm"}),Ue.disabled=o(Z),Lt(_s,o(Z)?"保存中…":"保存")}),Je(Tt,()=>o(Rt),ct=>d(Rt,ct)),Je(lo,()=>o(We),ct=>d(We,ct)),Je(co,()=>o(Ne),ct=>d(Ne,ct)),Je(vn,()=>o(dn),ct=>d(dn,ct)),Ts(gn,()=>o(fn),ct=>d(fn,ct)),Je(mn,()=>o(He),ct=>d(He,ct)),Et("click",Ue,$i),z(wt,Ct)},$$slots:{default:!0}}),z(b,H)},$$slots:{default:!0}})},$$slots:{default:!0}});var Hr=M(Nr,2);$r(Hr,{get open(){return o(nt)},onOpenChange:ss,children:(c,u)=>{vo(c,{children:(b,_)=>{var H=Ll(),I=X(H);ti(I,{class:"modal-overlay"});var K=M(I,2);ei(K,{class:"modal","aria-describedby":"remove-source-desc",children:(wt,Ft)=>{var Ct=Ml(),N=X(Ct),lt=S(N);ni(lt,{class:"modal-title",children:(gt,vt)=>{zt();var mt=Xe("移除信源");z(gt,mt)},$$slots:{default:!0}});var pt=M(lt,2);go(pt,{class:"modal-close","aria-label":"关闭",children:(gt,vt)=>{zt();var mt=Xe("✕");z(gt,mt)},$$slots:{default:!0}}),C(N);var ut=M(N,2),_t=M(S(ut),2);{var Mt=gt=>{var vt=Dl(),mt=S(vt,!0);C(vt),kt(()=>Lt(mt,o(a))),z(gt,vt)};xt(_t,gt=>{o(a)&&gt(Mt)})}C(ut);var Tt=M(ut,2),bt=S(Tt);{let gt=te(()=>!!o(tt));go(bt,{class:"btn-cancel",get disabled(){return o(gt)},children:(vt,mt)=>{zt();var At=Xe("取消");z(vt,At)},$$slots:{default:!0}})}var St=M(bt,2);C(Tt),kt(()=>St.disabled=!!o(tt)),Et("click",St,ls),z(wt,Ct)},$$slots:{default:!0}}),z(b,H)},$$slots:{default:!0}})},$$slots:{default:!0}});var Rr=M(Hr,2);{var fs=c=>{{let u=te(()=>(o(rt),st(()=>{var I;return((I=o(rt))==null?void 0:I.ref)??""}))),b=te(()=>(o(rt),st(()=>{var I;return((I=o(rt))==null?void 0:I.displayLabel)??""}))),_=te(()=>(o(rt),st(()=>{var I,K;return((K=(I=o(rt))==null?void 0:I.description)==null?void 0:K.trim())??""}))),H=te(()=>(o(rt),st(()=>{var I,K;return((K=(I=o(rt))==null?void 0:I.proxy)==null?void 0:K.trim())??""})));Is(c,{variant:"overlay",get open(){return o(ht)},get sourceRef(){return o(u)},get sourceLabel(){return o(b)},get sourceDescription(){return o(_)},get sourceProxy(){return o(H)},onOpenChange:I=>{d(ht,I),I||d(rt,null)}})}};xt(Rr,c=>{r(),st(()=>r().url.pathname!=="/")&&c(fs)})}var Br=M(Rr,2),Vr=S(Br),No=S(Vr),Kr=S(No),Ho=S(Kr),Ro=S(Ho);Ye(Ro);var hs=M(Ro,2);{var ps=c=>{wi(c,{get open(){return o(Io)},onOpenChange:u=>{d(Io,u)},children:(u,b)=>{var _=Nl(),H=X(_);{let K=te(()=>(o(L),st(()=>Tr(o(L))))),wt=te(()=>o(F)==="asc"?" 升序":" 降序");yi(H,{type:"button",class:"btn-sort",get title(){return`排序:${o(K)??""}${o(wt)??""},点此选择依据或同项切换方向`},"aria-label":"排序",children:(Ft,Ct)=>{bl(Ft,{size:16})},$$slots:{default:!0}})}var I=M(H,2);vo(I,{children:(K,wt)=>{mi(K,{class:"dropdown-panel sort-menu",sideOffset:6,align:"start",children:(Ft,Ct)=>{var N=dt(),lt=X(N);Zo(lt,1,()=>Qi,qr,(pt,ut)=>{var _t=Wl();let Mt;var Tt=S(_t),bt=S(Tt,!0);C(Tt);var St=M(Tt,2);{var gt=vt=>{var mt=Il(),At=S(mt,!0);C(mt),kt(()=>Lt(At,o(F)==="asc"?"↑":"↓")),z(vt,mt)};xt(St,vt=>{o(L)===o(ut)&&vt(gt)})}C(_t),kt(vt=>{Mt=qe(_t,1,"sort-menu-item svelte-1beoyzy",null,Mt,{active:o(L)===o(ut)}),Lt(bt,vt)},[()=>(o(ut),st(()=>Tr(o(ut))))]),Et("click",_t,()=>Zi(o(ut))),z(pt,_t)}),z(Ft,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),z(u,_)},$$slots:{default:!0}})};xt(hs,c=>{r(),o(x),st(()=>r().url.pathname==="/"&&o(x).length>0)&&c(ps)})}C(Ho);var Ur=M(Ho,2),Bo=S(Ur),vs=S(Bo);ia(vs,{size:16,"aria-hidden":"true"}),C(Bo),C(Ur),C(Kr),C(No);var jr=M(No,2),gs=S(jr);{var ms=c=>{var u=Hl();z(c,u)},ys=c=>{var u=Rl(),b=S(u,!0);C(u),kt(()=>Lt(b,o(T))),z(c,u)},ws=c=>{var u=Bl(),b=M(S(u));zt(),C(u),Et("click",b,Dr),z(c,u)},bs=c=>{var u=Vl();z(c,u)},xs=c=>{var u=Jl();Zo(u,5,()=>o(m),b=>b.ref,(b,_)=>{const H=te(()=>(Jo(_i),o(_),st(()=>_i(o(_).ref))));var I=ql(),K=S(I),wt=S(K),Ft=S(wt);{var Ct=bt=>{var St=Ul(),gt=S(St);{var vt=mt=>{var At=Kl();kt(Ut=>Qo(At,"src",Ut),[()=>(Jo(Pi),Jo(o(H)),st(()=>Pi(o(H))))]),ks("error",At,()=>{d($,{...o($),[o(_).ref]:!0})}),Es(At),z(mt,At)};xt(gt,mt=>{o($),o(_),st(()=>!o($)[o(_).ref])&&mt(vt)})}C(St),z(bt,St)};xt(Ft,bt=>{o(H)&&bt(Ct)})}var N=M(Ft,2),lt=S(N),pt=S(lt,!0);C(lt);var ut=M(lt,2),_t=S(ut,!0);C(ut),C(N),C(wt),C(K);var Mt=M(K,2),Tt=S(Mt);{let bt=te(()=>(o(R),o(_),st(()=>o(R)===o(_).ref)));wi(Tt,{get open(){return o(bt)},onOpenChange:St=>{d(R,St?o(_).ref:null)},children:(St,gt)=>{var vt=Yl(),mt=X(vt);yi(mt,{class:"btn-icon",title:"更多",onclick:Ut=>Ut.stopPropagation(),children:(Ut,Vo)=>{_l(Ut,{size:13})},$$slots:{default:!0}});var At=M(mt,2);vo(At,{children:(Ut,Vo)=>{mi(Ut,{class:"dropdown-panel more-menu",sideOffset:6,align:"center",onclick:le=>le.stopPropagation(),children:(le,Ko)=>{var so=Xl(),jt=X(so);let hn;var ao=S(jt);Ws(ao,{size:14});var Ve=M(ao,2),lo=S(Ve,!0);C(Ve),C(jt);var ce=M(jt,2),co=S(ce);Ol(co,{size:14}),zt(2),C(ce);var ue=M(ce,2),pn=S(ue);xl(pn,{size:14}),zt(2),C(ue);var vn=M(ue,2);{var uo=de=>{var ke=jl(),Ue=S(ke);Ns(Ue,{size:14}),zt(2),C(ke),kt(()=>Qo(ke,"href",(o(_),st(()=>o(_).ref)))),z(de,ke)},gn=W(()=>(o(_),st(()=>os(o(_).ref))));xt(vn,de=>{o(gn)&&de(uo)})}var Gt=M(vn,2),mn=S(Gt);Sl(mn,{size:14});var fo=M(mn,2),Uo=S(fo,!0);C(fo),C(Gt);var ze=M(Gt,2),Ke=S(ze);bi(Ke,{size:14});var ho=M(Ke,2),jo=S(ho,!0);C(ho),C(ze),kt(()=>{hn=qe(jt,1,"more-menu-item svelte-1beoyzy",null,hn,{pulling:o(_).ref in n()}),jt.disabled=(o(_),n(),st(()=>o(_).ref in n())),Lt(lo,(o(_),n(),st(()=>o(_).ref in n()?"拉取中…":"拉取"))),Gt.disabled=(o(et),o(_),st(()=>o(et)===o(_).ref)),Lt(Uo,(o(et),o(_),st(()=>o(et)===o(_).ref?"清空中…":"清空该源条目"))),ze.disabled=(o(tt),o(_),st(()=>o(tt)===o(_).ref)),Lt(jo,(o(tt),o(_),st(()=>o(tt)===o(_).ref?"移除中…":"移除信源")))}),Et("click",jt,de=>{ns(o(_).ref,de),d(R,null)}),Et("click",ce,()=>{Gi(o(_)),d(R,null)}),Et("click",ue,()=>is(o(_).ref)),Et("click",Gt,()=>cs(o(_).ref)),Et("click",ze,()=>as(o(_).ref)),z(le,so)},$$slots:{default:!0}})},$$slots:{default:!0}}),z(St,vt)},$$slots:{default:!0}})}C(Mt),C(I),kt(()=>{Qo(wt,"title",(o(_),st(()=>o(_).ref))),Lt(pt,(o(_),st(()=>o(_).displayLabel))),Lt(_t,(o(_),st(()=>o(_).count)))}),Et("click",I,bt=>us(o(_),bt)),Et("keydown",I,bt=>ds(o(_),bt)),z(b,I)}),C(u),z(c,u)};xt(gs,c=>{o(D)?c(ms):o(T)?c(ys,1):(o(x),st(()=>o(x).length===0)?c(ws,2):(o(m),st(()=>o(m).length===0)?c(bs,3):c(xs,-1)))})}C(jr),C(Vr),C(Br),Je(Ro,()=>o(E),c=>d(E,c)),Et("click",Bo,Dr),z(e,Wr),se(),s()}zs(["click","keydown"]);export{yc as S};