studiograph 1.3.44-next.21 → 1.3.44-next.23

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 (62) hide show
  1. package/dist/web/_app/immutable/assets/4.DfrppcF_.css +1 -0
  2. package/dist/web/_app/immutable/assets/{8.DKYjn_lM.css → 8.BrXOeHJA.css} +1 -1
  3. package/dist/web/_app/immutable/chunks/{C1S8fyYX.js → -2EMa1ML.js} +1 -1
  4. package/dist/web/_app/immutable/chunks/{B1c_qzmY.js → B0qTqRR8.js} +1 -1
  5. package/dist/web/_app/immutable/chunks/{DO03XMS-.js → B17cx9Sm.js} +1 -1
  6. package/dist/web/_app/immutable/chunks/{DIBaaeCL.js → BSBiehHY.js} +1 -1
  7. package/dist/web/_app/immutable/chunks/{CwnWYvfz.js → BasUgd5N.js} +1 -1
  8. package/dist/web/_app/immutable/chunks/{CCA2E2CK.js → BenpwI6m.js} +1 -1
  9. package/dist/web/_app/immutable/chunks/{BgRr0V7g.js → BjAmYrTY.js} +1 -1
  10. package/dist/web/_app/immutable/chunks/{csGnu8Rb.js → BvwzgaXa.js} +1 -1
  11. package/dist/web/_app/immutable/chunks/{BN6gr1HX.js → BzfUn14C.js} +1 -1
  12. package/dist/web/_app/immutable/chunks/{BVhp5b7F.js → CDFdgZ9U.js} +1 -1
  13. package/dist/web/_app/immutable/chunks/{Dgs7g6Xf.js → CLw5zKi0.js} +1 -1
  14. package/dist/web/_app/immutable/chunks/{usxM-xOh.js → COik51fd.js} +1 -1
  15. package/dist/web/_app/immutable/chunks/{DkuxRPZv.js → CStpN6HQ.js} +1 -1
  16. package/dist/web/_app/immutable/chunks/CX_fJaNF.js +1 -0
  17. package/dist/web/_app/immutable/chunks/{NuvuAeCX.js → CbwDFpOn.js} +1 -1
  18. package/dist/web/_app/immutable/chunks/{BKHfe9E-.js → CieeblIr.js} +1 -1
  19. package/dist/web/_app/immutable/chunks/{BzjUB_Ym.js → CoAsXxNb.js} +1 -1
  20. package/dist/web/_app/immutable/chunks/CvAezToa.js +1 -0
  21. package/dist/web/_app/immutable/chunks/{pQmxOXKv.js → CyzLSh3b.js} +1 -1
  22. package/dist/web/_app/immutable/chunks/{D8mTIH9Y.js → DAD7hf2c.js} +1 -1
  23. package/dist/web/_app/immutable/chunks/{CwUXqlAx.js → DC1nGnOD.js} +1 -1
  24. package/dist/web/_app/immutable/chunks/{Ca2kuiZq.js → DLe_R6S0.js} +1 -1
  25. package/dist/web/_app/immutable/chunks/{DD3_vCgV.js → DN_2uSjw.js} +1 -1
  26. package/dist/web/_app/immutable/chunks/DQmnydAv.js +1 -0
  27. package/dist/web/_app/immutable/chunks/DkilSMcP.js +5 -0
  28. package/dist/web/_app/immutable/chunks/{D-H9HeD_.js → DkoZfYJt.js} +1 -1
  29. package/dist/web/_app/immutable/chunks/{DYLAPjKD.js → DkyV2KO_.js} +1 -1
  30. package/dist/web/_app/immutable/chunks/{DeyUjeaz.js → Dt6bIUGm.js} +1 -1
  31. package/dist/web/_app/immutable/chunks/{BZ2Q53D5.js → DtsqpIgr.js} +1 -1
  32. package/dist/web/_app/immutable/chunks/{yUs562n0.js → Dvv4bkXH.js} +1 -1
  33. package/dist/web/_app/immutable/chunks/{C74mA5aC.js → DwG0Us6L.js} +1 -1
  34. package/dist/web/_app/immutable/chunks/{y7AXCX7T.js → FQq1g0yX.js} +1 -1
  35. package/dist/web/_app/immutable/chunks/{BdNoKWAr.js → fgXuQcv7.js} +2 -2
  36. package/dist/web/_app/immutable/chunks/{BpdrS9kL.js → h2NtTN7K.js} +1 -1
  37. package/dist/web/_app/immutable/chunks/{DLZAjAct.js → owhS8Kw_.js} +1 -1
  38. package/dist/web/_app/immutable/chunks/{DHholpIc.js → wWaI7EIw.js} +1 -1
  39. package/dist/web/_app/immutable/entry/{app.Ci1ytk_v.js → app.CfPTwl0D.js} +2 -2
  40. package/dist/web/_app/immutable/entry/start.CzvcbWLa.js +1 -0
  41. package/dist/web/_app/immutable/nodes/{0.D4NmzO9T.js → 0.4O4jT99H.js} +2 -2
  42. package/dist/web/_app/immutable/nodes/{1.B49NrV3g.js → 1.YWRiTXrL.js} +1 -1
  43. package/dist/web/_app/immutable/nodes/{10.OXZpT8w9.js → 10.D-El_Hsa.js} +1 -1
  44. package/dist/web/_app/immutable/nodes/{2.DaqdIYKU.js → 2.ViGoUIc6.js} +4 -4
  45. package/dist/web/_app/immutable/nodes/{3.Q_RC4D9P.js → 3.BbexcpeM.js} +1 -1
  46. package/dist/web/_app/immutable/nodes/4.C2H0fLm7.js +11 -0
  47. package/dist/web/_app/immutable/nodes/{5.U-zEu0Mw.js → 5.BQEbSnbz.js} +1 -1
  48. package/dist/web/_app/immutable/nodes/{6.SYsyu9GD.js → 6.ChylSlHg.js} +1 -1
  49. package/dist/web/_app/immutable/nodes/{7.BLgQGI-C.js → 7.DxQsYoNz.js} +1 -1
  50. package/dist/web/_app/immutable/nodes/8.C6L2M9te.js +1 -0
  51. package/dist/web/_app/immutable/nodes/{9.D0aRCiZD.js → 9.BzQNdaYi.js} +1 -1
  52. package/dist/web/_app/version.json +1 -1
  53. package/dist/web/index.html +11 -11
  54. package/package.json +1 -1
  55. package/dist/web/_app/immutable/assets/4.B3dbj90y.css +0 -1
  56. package/dist/web/_app/immutable/chunks/1BE_eYuA.js +0 -1
  57. package/dist/web/_app/immutable/chunks/Mtmwulo1.js +0 -1
  58. package/dist/web/_app/immutable/chunks/e8QVPHqJ.js +0 -5
  59. package/dist/web/_app/immutable/chunks/oz3vOf3Y.js +0 -1
  60. package/dist/web/_app/immutable/entry/start.DNk71wbw.js +0 -1
  61. package/dist/web/_app/immutable/nodes/4.CIDSQYhF.js +0 -11
  62. package/dist/web/_app/immutable/nodes/8.67Laxdj-.js +0 -1
@@ -0,0 +1 @@
1
+ .autocomplete.svelte-84vb17{position:relative;width:100%}.input-row.svelte-84vb17{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-height:26px;padding:0;background:transparent;border:none;border-radius:4px}.chip.svelte-84vb17{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:4px;font-size:13px;background:var(--color-bg-surface);color:var(--color-link, #e07070);flex-shrink:0}.chip-remove.svelte-84vb17{all:unset;display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;color:var(--color-text-tertiary);font-size:13px;line-height:1;cursor:pointer;border-radius:2px}.chip-remove.svelte-84vb17:hover{color:var(--color-text-primary);background:var(--color-bg-hover)}.ac-input.svelte-84vb17{flex:1;min-width:80px;height:22px;padding:0;font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none}.dropdown.svelte-84vb17{position:absolute;top:100%;left:0;right:0;margin-top:4px;max-height:240px;overflow-y:auto;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;z-index:50}.dropdown-item.svelte-84vb17{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;cursor:pointer;gap:8px}.dropdown-item.highlighted.svelte-84vb17{background:var(--color-bg-hover)}.entity-title.svelte-84vb17{font-size:14px;color:var(--color-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.entity-meta.svelte-84vb17{display:flex;align-items:center;gap:6px;flex-shrink:0}.entity-type-badge.svelte-84vb17{font-size:12px;padding:1px 6px;border-radius:9999px;background:var(--color-badge-bg);color:var(--color-badge-text)}.entity-repo.svelte-84vb17{font-size:12px;color:var(--color-text-tertiary)}.property-row.svelte-eh8ho9{display:grid;grid-template-columns:20px 130px 1fr;align-items:baseline;gap:10px;padding:5px 8px;margin:0 -8px;border-radius:4px;min-height:30px}.prop-icon.svelte-eh8ho9{display:flex;align-items:center;justify-content:center;align-self:center;color:var(--color-text-tertiary)}.icon-trigger{all:unset;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--color-text-tertiary);border-radius:3px}.icon-trigger:hover{color:var(--color-text-secondary);background:var(--color-bg-hover)}.prop-key.svelte-eh8ho9{font-size:14px;color:var(--color-text-tertiary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prop-value.svelte-eh8ho9{font-size:14px;color:var(--color-text-primary);min-width:0;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.dot.svelte-eh8ho9{width:8px;height:8px;border-radius:50%;flex-shrink:0}.edit-input.svelte-eh8ho9{width:100%;font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none;padding:0}.text-value.svelte-eh8ho9{word-break:break-word}.date-value.svelte-eh8ho9{white-space:nowrap}.edit-input.svelte-eh8ho9::placeholder{color:var(--color-text-tertiary)}.url-display.svelte-eh8ho9{display:flex;align-items:center;gap:4px;min-width:0;white-space:nowrap}.url-link.svelte-eh8ho9{color:var(--color-link, #e07070);text-decoration:none;overflow:hidden;white-space:nowrap;min-width:0;flex:1;-webkit-mask-image:linear-gradient(to right,black calc(100% - 16px),transparent);mask-image:linear-gradient(to right,black calc(100% - 16px),transparent)}.url-link.svelte-eh8ho9:hover{text-decoration:underline}.url-edit-btn.svelte-eh8ho9{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:22px;height:22px;border-radius:3px;color:var(--color-text-tertiary);cursor:pointer;opacity:0;transition:opacity .1s}.url-display.svelte-eh8ho9:hover .url-edit-btn:where(.svelte-eh8ho9){opacity:1}.url-edit-btn.svelte-eh8ho9:hover{color:var(--color-text-secondary);background:var(--color-bg-hover)}.empty-hint.svelte-eh8ho9{color:var(--color-text-tertiary)}.date-input.svelte-eh8ho9{color-scheme:dark;width:auto!important}.date-empty.svelte-eh8ho9{color:var(--color-text-tertiary)!important}.date-input.svelte-eh8ho9::-webkit-calendar-picker-indicator{filter:brightness(.35);cursor:pointer;transition:filter .1s}.date-input.svelte-eh8ho9::-webkit-calendar-picker-indicator:hover{filter:brightness(.6)}.badge-value.svelte-eh8ho9{display:inline-flex;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:500;background:var(--color-badge-bg, rgba(224, 80, 80, .1));color:var(--color-badge-text, #e07070)}.wikilink-display.svelte-eh8ho9{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0;min-height:26px}.wikilink-input.svelte-eh8ho9{flex:1;min-width:60px;font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none;padding:0;cursor:text}.wikilink-input.svelte-eh8ho9::placeholder{color:var(--color-text-tertiary)}.wikilink-chip.svelte-eh8ho9{display:inline-flex;align-items:center;padding:2px 8px;font-size:13px;font-family:inherit;border-radius:4px;background:var(--color-bg-surface);color:var(--color-link, #e07070);border:none;cursor:pointer;transition:background .1s}.wikilink-chip.svelte-eh8ho9:hover{background:var(--color-bg-hover)}.dotted-item{display:flex;align-items:center;gap:8px;min-height:36px;padding:4px 10px;border-radius:4px;font-size:14px;color:var(--color-text-secondary);cursor:pointer;outline:none}.dotted-item[data-highlighted]{background:var(--color-bg-hover);color:var(--color-text-primary)}.dotted-item[data-selected]{color:var(--color-text-primary)}.item-check{margin-left:auto;color:var(--color-accent)}.status-trigger{border:none!important;box-shadow:none!important;padding:0!important;height:auto!important;background:transparent!important;gap:6px!important}.type-menu-content{z-index:1100;min-width:140px;padding:6px;border:1px solid var(--color-border-strong, var(--color-border));border-radius:8px;background:var(--color-bg-elevated);box-shadow:0 8px 24px #0000004d}.type-menu-item{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border-radius:4px;font-size:14px;color:var(--color-text-secondary);cursor:pointer;outline:none}.type-menu-item[data-highlighted]{background:var(--color-bg-hover);color:var(--color-text-primary)}.menu-label.svelte-eh8ho9{flex:1}.type-menu-danger{color:var(--color-error, #e55)!important}[data-dropdown-menu-separator]{height:1px;margin:4px 0;background:var(--color-border)}.entity-properties.svelte-1a2lez6{padding:16px 40px 8px;border-bottom:1px solid var(--color-border)}.name-headline.svelte-1a2lez6{margin:8px 0 16px;cursor:text}.name-text.svelte-1a2lez6{font-size:22px;font-weight:600;color:var(--color-text-primary);line-height:1.3}.name-input.svelte-1a2lez6{font-size:22px;font-weight:600;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none;width:100%;line-height:1.3;padding:0}.fields-toggle.svelte-1a2lez6{display:flex;align-items:baseline;gap:10px;background:none;border:none;font-family:inherit;font-size:14px;color:var(--color-text-secondary);cursor:pointer;padding:4px 8px;margin:0 -8px}.fields-toggle.svelte-1a2lez6:hover{color:var(--color-text-primary)}.fields-chevron.svelte-1a2lez6{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:20px;color:var(--color-text-tertiary);transition:transform .15s}.fields-chevron.expanded.svelte-1a2lez6{transform:rotate(90deg)}.fields-label.svelte-1a2lez6{font-weight:400}.fields-count.svelte-1a2lez6{font-size:12px;color:var(--color-text-tertiary)}.fields-list.svelte-1a2lez6{margin-top:4px}.add-field-row.svelte-1a2lez6{padding:5px 8px;margin:0 -8px}.add-field-input.svelte-1a2lez6{font-size:14px;font-family:inherit;color:var(--color-text-primary);background:transparent;border:none;outline:none;padding:0;width:100%}.entity-properties.svelte-1a2lez6 .add-field-btn{margin:8px -8px;font-size:14px}.connections-panel.svelte-16xienp{margin:80px 0 48px;padding:16px 40px 0;border-top:1px solid var(--color-border)}.connections-header.svelte-16xienp{display:flex;align-items:baseline;gap:10px;background:none;border:none;font-family:inherit;font-size:14px;color:var(--color-text-secondary);cursor:pointer;padding:4px 8px;margin:0 -8px}.connections-header.svelte-16xienp:hover{color:var(--color-text-primary)}.header-chevron.svelte-16xienp{display:inline-flex;align-items:center;justify-content:center;width:20px;color:var(--color-text-tertiary);transition:transform .15s;transform:rotate(90deg)}.header-chevron.collapsed.svelte-16xienp{transform:rotate(0)}.header-label.svelte-16xienp{font-weight:400}.header-count.svelte-16xienp{font-size:12px;color:var(--color-text-tertiary)}.connections-body.svelte-16xienp{display:flex;flex-direction:column;gap:0;margin-top:8px}.connection-chip.svelte-16xienp{display:flex;align-items:center;gap:8px;padding:6px 8px;background:none;border:none;border-radius:4px;font-family:inherit;font-size:13px;color:var(--color-text-primary);cursor:pointer;text-align:left}.connection-chip.svelte-16xienp:hover{background:var(--color-bg-hover)}.chip-dot.svelte-16xienp{width:6px;height:6px;border-radius:50%;flex-shrink:0}.chip-name.svelte-16xienp{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip-type.svelte-16xienp{font-size:12px;color:var(--color-text-tertiary);flex-shrink:0}.editor-wrap.svelte-ok7wy5{display:flex;min-height:0;position:relative}.cm-container.svelte-ok7wy5{flex:1;min-height:100px}.cm-container.svelte-ok7wy5 .cm-editor{min-height:100px;outline:none}.cm-container.svelte-ok7wy5 .cm-scroller{overflow:visible!important}.cursor-overlay.svelte-ok7wy5{position:absolute;inset:0;pointer-events:none;overflow:hidden}.remote-cursor.svelte-ok7wy5{position:absolute;width:2px;background-color:var(--cursor-color);z-index:10}.remote-cursor-label.svelte-ok7wy5{position:absolute;top:-1.4em;left:-1px;font-size:12px;font-family:var(--font-sans);font-weight:500;padding:0 4px;border-radius:3px 3px 3px 0;white-space:nowrap;line-height:1.5;color:#fff}.csv-editor.svelte-63hltt{padding:32px 40px 0}.table-scroll.svelte-63hltt{overflow-x:auto}table.svelte-63hltt{border-collapse:collapse;width:max-content;min-width:100%;font-size:14px;font-family:var(--font-sans)}th.svelte-63hltt,td.svelte-63hltt{border:1px solid var(--color-border);padding:0;height:32px;min-width:120px;max-width:300px}th.svelte-63hltt{background:transparent;font-weight:500;color:var(--color-text-secondary);position:sticky;top:0;z-index:1}th.svelte-63hltt:not(.row-num):not(.col-add){position:sticky;top:0;z-index:1}.row-num.svelte-63hltt{width:40px;min-width:40px;max-width:40px;text-align:center;color:var(--color-text-tertiary);font-size:12px;background:transparent}.cell-input.svelte-63hltt{width:100%;height:100%;border:none;background:transparent;color:var(--color-text-primary);font-family:var(--font-sans);font-size:14px;padding:4px 8px;outline:none}.cell-input.svelte-63hltt:focus{outline:2px solid var(--color-accent);outline-offset:-2px}.header-input.svelte-63hltt{font-weight:500;color:var(--color-text-secondary)}th.svelte-63hltt:not(.row-num):not(.col-add){position:relative}th.svelte-63hltt .col-delete-btn{position:absolute;top:2px;right:2px;width:18px;height:18px;display:none;background:var(--color-bg-hover);border-radius:3px;padding:0}th.svelte-63hltt:hover .col-delete-btn{display:flex}th.svelte-63hltt .col-delete-btn:hover{color:var(--color-destructive);background:var(--color-bg-selected)}.col-add.svelte-63hltt{width:32px;border:none;background:transparent}.col-add.svelte-63hltt .col-add-btn{width:100%;height:100%;border-radius:0;padding:0}.col-add.svelte-63hltt .col-add-btn:hover{color:var(--color-accent)}.actions.svelte-63hltt{width:32px;text-align:center;border:none}.actions.svelte-63hltt .delete-btn{display:none;width:20px;height:20px;padding:0;margin:0 auto}tr.svelte-63hltt:hover .delete-btn{display:flex}tr.svelte-63hltt .delete-btn:hover{color:var(--color-destructive)}.csv-footer.svelte-63hltt{display:flex;align-items:center;gap:16px;padding:8px 0}.csv-footer.svelte-63hltt .add-row-btn{font-size:14px}.remote-active.svelte-63hltt{outline:2px solid var(--rc-color, #e05050);outline-offset:-2px;position:relative}.remote-cell-label.svelte-63hltt{position:absolute;top:-18px;left:-1px;font-size:11px;font-family:var(--font-sans);font-weight:500;padding:0 4px;border-radius:3px 3px 3px 0;white-space:nowrap;line-height:1.6;color:#fff;z-index:2;pointer-events:none}.diff-view.svelte-1g4tvol{flex:1;overflow-y:auto;min-height:0}.diff-properties.svelte-1g4tvol{padding:16px 40px 8px;border-bottom:1px solid var(--color-border)}.dp-row.svelte-1g4tvol{display:grid;grid-template-columns:20px 120px 1fr;align-items:start;gap:8px;padding:5px 8px;margin:0 -8px;border-radius:4px;min-height:30px}.dp-icon.svelte-1g4tvol{display:flex;align-items:center;justify-content:center;color:var(--color-text-tertiary);height:22px}.dp-key.svelte-1g4tvol{font-size:14px;color:var(--color-text-tertiary);line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dp-value.svelte-1g4tvol{display:flex;flex-direction:column;gap:2px;min-height:22px;line-height:22px;font-size:14px;color:var(--color-text-primary)}.dp-diff-old.svelte-1g4tvol{display:inline-flex;align-items:center;padding:0 8px;border-radius:4px;background:#dc505026;color:var(--color-destructive, #e54d4d);min-height:22px;line-height:22px;width:fit-content}.dp-diff-new.svelte-1g4tvol{display:inline-flex;align-items:center;padding:0 8px;border-radius:4px;background:#50c86426;color:var(--color-success, #3ecf8e);min-height:22px;line-height:22px;width:fit-content}.diff-body.svelte-1g4tvol{padding:32px 40px;font-family:var(--font-sans);font-size:16px;line-height:1.6;color:var(--color-text-primary);white-space:pre-wrap;word-break:break-word}.diff-body.svelte-1g4tvol .db-removed{background:#dc505026;color:var(--color-destructive, #e54d4d);border-radius:2px}.diff-body.svelte-1g4tvol .db-added{background:#50c86426;color:var(--color-success, #3ecf8e);border-radius:2px}.document-scroll.svelte-udj3er{flex:1;overflow-y:auto;min-height:0}.document-well.svelte-udj3er{max-width:720px;margin:0 auto;width:100%}.editor-bar.svelte-udj3er{height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 40px;border-bottom:1px solid var(--color-border)}.breadcrumb-path.svelte-udj3er{font-size:14px;color:var(--color-text-secondary);line-height:1.4;white-space:nowrap;overflow:hidden;-webkit-mask-image:linear-gradient(to right,black calc(100% - 24px),transparent);mask-image:linear-gradient(to right,black calc(100% - 24px),transparent);text-overflow:ellipsis;min-width:0}.bc-sep.svelte-udj3er{color:var(--color-text-tertiary);margin:0 6px}.bc-segment.svelte-udj3er{color:var(--color-text-secondary)}.bc-current.svelte-udj3er{color:var(--color-text-primary)}.editor-actions.svelte-udj3er{display:flex;align-items:center;gap:8px;flex-shrink:0;white-space:nowrap}.status-text.svelte-udj3er{font-size:13px}.status-text.saving.svelte-udj3er{color:var(--color-text-tertiary)}.status-text.error.svelte-udj3er{color:var(--color-destructive)}.editor-actions.svelte-udj3er .open-app{text-transform:capitalize}.refresh-panel.svelte-udj3er{border-bottom:1px solid var(--color-border);padding:12px 40px;background:var(--color-bg-secondary, var(--color-bg-hover));font-size:14px;flex-shrink:0}.refresh-uptodate.svelte-udj3er{color:var(--color-text-secondary)}.editor-bar-diff.svelte-udj3er{background:var(--color-bg)}.diff-action-title.svelte-udj3er{font-size:14px;color:var(--color-text-primary);font-weight:600}.diff-action-buttons.svelte-udj3er{display:flex;align-items:center;gap:6px}@media(max-width:960px){.breadcrumb-path.svelte-udj3er{display:none}}
@@ -1 +1 @@
1
- .list-view.svelte-1p6fd26{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.list-toolbar.svelte-1p6fd26{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 12px;border-bottom:1px solid var(--color-border);flex-shrink:0}.toolbar-left.svelte-1p6fd26{display:flex;align-items:center;gap:4px;flex-shrink:0;padding:6px 0}.toolbar-left.svelte-1p6fd26 .select-trigger{border:none!important;box-shadow:none!important}.toolbar-left.svelte-1p6fd26 .select-trigger:hover{background:var(--color-bg-hover)!important}.toolbar-filters.svelte-1p6fd26{display:flex;align-items:center;gap:6px;overflow-x:auto;padding:6px 0}.row-count.svelte-1p6fd26{font-size:13px;color:var(--color-text-tertiary)}.empty.svelte-1p6fd26{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--color-text-tertiary);font-size:14px}.table-scroll.svelte-1p6fd26{flex:1;overflow:auto}.list-table.svelte-1p6fd26{width:100%;border-collapse:collapse;font-size:14px}thead.svelte-1p6fd26{position:sticky;top:0;z-index:1;background:var(--color-bg)}th.svelte-1p6fd26{text-align:left;padding:8px 12px;font-weight:500;font-size:13px;color:var(--color-text-tertiary);border-bottom:1px solid var(--color-border);white-space:nowrap;-webkit-user-select:none;user-select:none}.th-controls.svelte-1p6fd26{display:flex;align-items:center;gap:2px}.th-sort-btn.svelte-1p6fd26{display:inline-flex;align-items:center;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0}.th-sort-btn.svelte-1p6fd26:hover{color:var(--color-text-secondary)}.th-sort-btn.sort-active.svelte-1p6fd26{color:var(--color-text-primary)}.th-sort-btn.sort-active.svelte-1p6fd26 .th-sort:where(.svelte-1p6fd26){opacity:1}.th-label.svelte-1p6fd26{margin-right:4px}.th-sort.svelte-1p6fd26{display:inline-flex;align-items:center;vertical-align:middle;opacity:.5}.th-sort-btn.svelte-1p6fd26:hover .th-sort:where(.svelte-1p6fd26){opacity:1}.th-filter-btn{all:unset;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:3px;cursor:pointer;color:var(--color-text-tertiary);opacity:0;transition:opacity .15s,color .15s}th.svelte-1p6fd26:hover .th-filter-btn,.th-filter-btn.filter-active{opacity:1}.th-filter-btn:hover{color:var(--color-text-secondary);background:var(--color-bg-hover)}.th-filter-btn.filter-active{color:var(--color-accent)}.filter-popover{background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;padding:8px;min-width:180px;z-index:50}.filter-text-input{font-size:13px!important;height:30px!important}.filter-checks.svelte-1p6fd26{display:flex;flex-direction:column;gap:4px}.filter-check-label.svelte-1p6fd26{display:flex;align-items:center;gap:6px;padding:4px;font-size:13px;color:var(--color-text-primary);cursor:pointer;border-radius:3px;text-transform:capitalize}.filter-check-label.svelte-1p6fd26:hover{background:var(--color-bg-hover)}.filter-date-range.svelte-1p6fd26{display:flex;flex-direction:column;gap:6px}.filter-date-label.svelte-1p6fd26{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--color-text-tertiary)}.filter-date-label.svelte-1p6fd26 .filter-date-input{flex:1;font-size:13px!important;height:30px!important;color-scheme:dark}.filter-pill.svelte-1p6fd26{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;font-size:12px;font-family:inherit;color:var(--color-text-secondary);background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:9999px;cursor:pointer;white-space:nowrap;flex-shrink:0}.filter-pill.svelte-1p6fd26:hover{border-color:var(--color-accent);color:var(--color-text-primary)}.filter-clear-all.svelte-1p6fd26{font-size:12px;font-family:inherit;color:var(--color-text-tertiary);background:transparent;border:none;cursor:pointer;white-space:nowrap;padding:2px 4px;flex-shrink:0}.filter-clear-all.svelte-1p6fd26:hover{color:var(--color-text-secondary)}.group-header.svelte-1p6fd26{cursor:pointer}.group-header.svelte-1p6fd26 td:where(.svelte-1p6fd26){padding:0;border-bottom:1px solid var(--color-border);background:var(--color-bg-hover)}.group-header-content.svelte-1p6fd26{display:flex;align-items:baseline;gap:6px;padding:6px 12px}.group-chevron.svelte-1p6fd26{display:inline-flex;align-items:center;align-self:center;color:var(--color-text-tertiary);transition:transform .15s;transform:rotate(90deg)}.group-chevron.collapsed.svelte-1p6fd26{transform:rotate(0)}.group-label.svelte-1p6fd26{font-size:14px;font-weight:400;color:var(--color-text-primary);text-transform:capitalize}.group-count.svelte-1p6fd26{font-size:12px;color:var(--color-text-tertiary)}tr.svelte-1p6fd26{cursor:pointer}tbody.svelte-1p6fd26 tr:where(.svelte-1p6fd26):not(.group-header):hover{background:var(--color-bg-hover)}td.svelte-1p6fd26{padding:8px 12px;color:var(--color-text-primary);border-bottom:1px solid var(--color-border);white-space:nowrap}.cell-name.svelte-1p6fd26{font-weight:500;max-width:300px;overflow:hidden;text-overflow:ellipsis}.cell-date.svelte-1p6fd26{color:var(--color-text-tertiary);font-size:13px}.cell-meta.svelte-1p6fd26{color:var(--color-text-secondary);font-size:13px;text-transform:capitalize}.colored-value.svelte-1p6fd26{display:inline-flex;align-items:center;gap:5px;font-size:13px;text-transform:capitalize}.status-dot.svelte-1p6fd26{width:6px;height:6px;border-radius:3px;flex-shrink:0}.calendar-view.svelte-dnwsps{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.calendar-toolbar.svelte-dnwsps{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:40px;padding:0 12px;border-bottom:1px solid var(--color-border);flex-shrink:0}.toolbar-left.svelte-dnwsps{display:flex;align-items:center;gap:4px}.toolbar-left.svelte-dnwsps .select-trigger{border:none!important;box-shadow:none!important}.toolbar-left.svelte-dnwsps .select-trigger:hover{background:var(--color-bg-hover)!important}.entity-count.svelte-dnwsps{font-size:13px;color:var(--color-text-tertiary)}.toolbar-center.svelte-dnwsps{display:flex;justify-content:center;align-items:center;gap:4px}.nav-btn.svelte-dnwsps{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:4px;background:transparent;color:var(--color-text-secondary);cursor:pointer}.nav-btn.svelte-dnwsps:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.today-btn.svelte-dnwsps{font-size:13px;font-family:inherit;color:var(--color-text-tertiary);background:none;border:none;cursor:pointer;padding:0 4px}.today-btn.svelte-dnwsps:hover{color:var(--color-text-secondary)}.toolbar-right.svelte-dnwsps{display:flex;align-items:center;justify-content:flex-end;gap:8px}.toolbar-sep.svelte-dnwsps{color:var(--color-text-tertiary);opacity:.4;font-size:13px}.month-label.svelte-dnwsps{font-size:13px;font-weight:400;color:var(--color-text-primary);min-width:120px;text-align:center}.calendar-grid.svelte-dnwsps{flex:1;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:auto;grid-auto-rows:1fr;min-height:0;overflow-y:auto}.dow-header.svelte-dnwsps{padding:6px 8px;font-size:10px;font-weight:400;color:var(--color-text-tertiary);text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--color-border);text-align:center}.calendar-day.svelte-dnwsps{min-height:90px;padding:4px 6px;border-right:1px solid var(--color-border);border-bottom:1px solid var(--color-border);display:flex;flex-direction:column;gap:2px;min-width:0;overflow:hidden}.calendar-day.svelte-dnwsps:nth-child(7n+7){border-right:none}.calendar-day.svelte-dnwsps:nth-last-child(-n+7){border-bottom:none}.calendar-day.outside-month.svelte-dnwsps .day-number:where(.svelte-dnwsps){color:var(--color-text-tertiary)}.calendar-day.today.svelte-dnwsps{background:var(--color-bg-surface)}.day-number.svelte-dnwsps{font-size:12px;color:var(--color-text-tertiary);padding:1px 4px;line-height:1;margin-bottom:2px}.today-number.svelte-dnwsps{font-weight:600;color:var(--color-text-primary)}.day-entities.svelte-dnwsps{display:flex;flex-direction:column;gap:1px;overflow:hidden}.entity-chip.svelte-dnwsps{display:flex;align-items:center;gap:4px;padding:2px 6px;border:none;border-radius:3px;font-family:inherit;font-size:12px;cursor:pointer;overflow:hidden;white-space:nowrap;text-align:left;transition:filter .1s;position:relative}.entity-chip.svelte-dnwsps:hover{background:var(--chip-hover-bg)!important}.chip-dot.svelte-dnwsps{width:5px;height:5px;border-radius:50%;flex-shrink:0}.floating-tooltip.svelte-dnwsps{position:fixed;padding:8px 12px;border-radius:8px;background:var(--color-bg-elevated);border:1px solid var(--color-border);box-shadow:0 8px 24px #00000040;z-index:1000;pointer-events:none;display:flex;flex-direction:column;gap:2px;min-width:160px;max-width:260px}.tooltip-title.svelte-dnwsps{font-size:14px;font-weight:600;color:var(--color-text-primary);padding:4px 0}.tooltip-meta.svelte-dnwsps{font-size:14px;color:var(--color-text-tertiary);padding:2px 0}.chip-label.svelte-dnwsps{flex:1;min-width:0;overflow:hidden;-webkit-mask-image:linear-gradient(to right,black calc(100% - 12px),transparent);mask-image:linear-gradient(to right,black calc(100% - 12px),transparent)}.more-label.svelte-dnwsps{font-size:12px;font-family:inherit;color:var(--color-text-tertiary);background:none;border:none;padding:0 6px;cursor:pointer;text-align:left}.more-label.svelte-dnwsps:hover{color:var(--color-text-secondary)}.overflow-backdrop.svelte-dnwsps{position:fixed;inset:0;z-index:999}.overflow-popover.svelte-dnwsps{position:fixed;z-index:1000;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:8px;box-shadow:0 8px 24px #00000040;width:260px;max-height:320px;display:flex;flex-direction:column}.overflow-list.svelte-dnwsps{overflow-y:auto;padding:4px}.overflow-item.svelte-dnwsps{display:flex;align-items:center;gap:6px;width:100%;padding:6px 8px;border:none;border-radius:4px;background:transparent;font-family:inherit;font-size:14px;color:var(--color-text-primary);cursor:pointer;text-align:left}.overflow-item.svelte-dnwsps:hover{background:var(--color-bg-hover)}.overflow-item-title.svelte-dnwsps{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-item-type.svelte-dnwsps{font-size:12px;color:var(--color-text-tertiary);flex-shrink:0}.empty.svelte-dnwsps{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--color-text-tertiary);font-size:14px}.empty-hint.svelte-dnwsps{font-size:13px;color:var(--color-text-tertiary)}
1
+ .list-view.svelte-1p6fd26{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.list-toolbar.svelte-1p6fd26{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 12px;border-bottom:1px solid var(--color-border);flex-shrink:0}.toolbar-left.svelte-1p6fd26{display:flex;align-items:center;gap:4px;flex-shrink:0;padding:6px 0}.toolbar-left.svelte-1p6fd26 .select-trigger{border:none!important;box-shadow:none!important}.toolbar-left.svelte-1p6fd26 .select-trigger:hover{background:var(--color-bg-hover)!important}.toolbar-filters.svelte-1p6fd26{display:flex;align-items:center;gap:6px;overflow-x:auto;padding:6px 0}.row-count.svelte-1p6fd26{font-size:13px;color:var(--color-text-tertiary)}.empty.svelte-1p6fd26{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--color-text-tertiary);font-size:14px}.table-scroll.svelte-1p6fd26{flex:1;overflow:auto}.list-table.svelte-1p6fd26{width:100%;border-collapse:collapse;font-size:14px}thead.svelte-1p6fd26{position:sticky;top:0;z-index:1;background:var(--color-bg)}th.svelte-1p6fd26{text-align:left;padding:8px 12px;font-weight:500;font-size:13px;color:var(--color-text-tertiary);border-bottom:1px solid var(--color-border);white-space:nowrap;-webkit-user-select:none;user-select:none}.th-controls.svelte-1p6fd26{display:flex;align-items:center;gap:2px}.th-sort-btn.svelte-1p6fd26{display:inline-flex;align-items:center;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0}.th-sort-btn.svelte-1p6fd26:hover{color:var(--color-text-secondary)}.th-sort-btn.sort-active.svelte-1p6fd26{color:var(--color-text-primary)}.th-sort-btn.sort-active.svelte-1p6fd26 .th-sort:where(.svelte-1p6fd26){opacity:1}.th-label.svelte-1p6fd26{margin-right:4px}.th-sort.svelte-1p6fd26{display:inline-flex;align-items:center;vertical-align:middle;opacity:.5}.th-sort-btn.svelte-1p6fd26:hover .th-sort:where(.svelte-1p6fd26){opacity:1}.th-filter-btn{all:unset;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:3px;cursor:pointer;color:var(--color-text-tertiary);opacity:0;transition:opacity .15s,color .15s}th.svelte-1p6fd26:hover .th-filter-btn,.th-filter-btn.filter-active{opacity:1}.th-filter-btn:hover{color:var(--color-text-secondary);background:var(--color-bg-hover)}.th-filter-btn.filter-active{color:var(--color-accent)}.filter-popover{background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:6px;box-shadow:0 4px 16px #00000040;padding:8px;min-width:180px;z-index:50}.filter-text-input{font-size:13px!important;height:30px!important}.filter-checks.svelte-1p6fd26{display:flex;flex-direction:column;gap:4px}.filter-check-label.svelte-1p6fd26{display:flex;align-items:center;gap:6px;padding:4px;font-size:13px;color:var(--color-text-primary);cursor:pointer;border-radius:3px;text-transform:capitalize}.filter-check-label.svelte-1p6fd26:hover{background:var(--color-bg-hover)}.filter-date-range.svelte-1p6fd26{display:flex;flex-direction:column;gap:6px}.filter-date-label.svelte-1p6fd26{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--color-text-tertiary)}.filter-date-label.svelte-1p6fd26 .filter-date-input{flex:1;font-size:13px!important;height:30px!important;color-scheme:dark}.filter-pill.svelte-1p6fd26{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;font-size:12px;font-family:inherit;color:var(--color-text-secondary);background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:9999px;cursor:pointer;white-space:nowrap;flex-shrink:0}.filter-pill.svelte-1p6fd26:hover{border-color:var(--color-accent);color:var(--color-text-primary)}.filter-clear-all.svelte-1p6fd26{font-size:12px;font-family:inherit;color:var(--color-text-tertiary);background:transparent;border:none;cursor:pointer;white-space:nowrap;padding:2px 4px;flex-shrink:0}.filter-clear-all.svelte-1p6fd26:hover{color:var(--color-text-secondary)}.group-header.svelte-1p6fd26{cursor:pointer}.group-header.svelte-1p6fd26 td:where(.svelte-1p6fd26){padding:0;border-bottom:1px solid var(--color-border);background:var(--color-bg-hover)}.group-header-content.svelte-1p6fd26{display:flex;align-items:baseline;gap:6px;padding:6px 12px}.group-chevron.svelte-1p6fd26{display:inline-flex;align-items:center;align-self:center;color:var(--color-text-tertiary);transition:transform .15s;transform:rotate(90deg)}.group-chevron.collapsed.svelte-1p6fd26{transform:rotate(0)}.group-label.svelte-1p6fd26{font-size:14px;font-weight:400;color:var(--color-text-primary);text-transform:capitalize}.group-count.svelte-1p6fd26{font-size:12px;color:var(--color-text-tertiary)}tr.svelte-1p6fd26{cursor:pointer}tbody.svelte-1p6fd26 tr:where(.svelte-1p6fd26):not(.group-header):hover{background:var(--color-bg-hover)}td.svelte-1p6fd26{padding:8px 12px;color:var(--color-text-primary);border-bottom:1px solid var(--color-border);white-space:nowrap}.cell-name.svelte-1p6fd26{font-weight:500;max-width:300px;overflow:hidden;text-overflow:ellipsis}.cell-date.svelte-1p6fd26{color:var(--color-text-tertiary);font-size:13px}.cell-meta.svelte-1p6fd26{color:var(--color-text-secondary);font-size:13px;text-transform:capitalize}.colored-value.svelte-1p6fd26{display:inline-flex;align-items:center;gap:5px;font-size:13px;text-transform:capitalize}.status-dot.svelte-1p6fd26{width:6px;height:6px;border-radius:3px;flex-shrink:0}.calendar-view.svelte-dnwsps{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.calendar-toolbar.svelte-dnwsps{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:40px;padding:0 12px;border-bottom:1px solid var(--color-border);flex-shrink:0}.toolbar-left.svelte-dnwsps{display:flex;align-items:center;gap:4px}.toolbar-left.svelte-dnwsps .select-trigger{border:none!important;box-shadow:none!important}.toolbar-left.svelte-dnwsps .select-trigger:hover{background:var(--color-bg-hover)!important}.entity-count.svelte-dnwsps{font-size:13px;color:var(--color-text-tertiary)}.toolbar-center.svelte-dnwsps{display:flex;justify-content:center;align-items:center;gap:4px}.nav-btn.svelte-dnwsps{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:4px;background:transparent;color:var(--color-text-secondary);cursor:pointer}.nav-btn.svelte-dnwsps:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.today-btn.svelte-dnwsps{font-size:13px;font-family:inherit;color:var(--color-text-tertiary);background:none;border:none;cursor:pointer;padding:0 4px}.today-btn.svelte-dnwsps:hover{color:var(--color-text-secondary)}.toolbar-right.svelte-dnwsps{display:flex;align-items:center;justify-content:flex-end;gap:8px}.toolbar-sep.svelte-dnwsps{color:var(--color-text-tertiary);opacity:.4;font-size:13px}.month-label.svelte-dnwsps{font-size:13px;font-weight:400;color:var(--color-text-primary);min-width:120px;text-align:center}.calendar-grid.svelte-dnwsps{flex:1;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:auto;grid-auto-rows:1fr;min-height:0;overflow-y:auto}.dow-header.svelte-dnwsps{padding:6px 8px;font-size:10px;font-weight:400;color:var(--color-text-tertiary);text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid var(--color-border);text-align:center}.calendar-day.svelte-dnwsps{min-height:90px;padding:4px 6px;border-right:1px solid var(--color-border);border-bottom:1px solid var(--color-border);display:flex;flex-direction:column;gap:2px;min-width:0;overflow:hidden}.calendar-day.svelte-dnwsps:nth-child(7n+7){border-right:none}.calendar-day.svelte-dnwsps:nth-last-child(-n+7){border-bottom:none}.calendar-day.outside-month.svelte-dnwsps .day-number:where(.svelte-dnwsps){color:var(--color-text-tertiary)}.calendar-day.today.svelte-dnwsps{background:var(--color-bg-surface)}.calendar-day.drop-target.svelte-dnwsps{background:var(--color-bg-hover);outline:1px solid var(--color-accent);outline-offset:-1px}.day-number.svelte-dnwsps{font-size:12px;color:var(--color-text-tertiary);padding:1px 4px;line-height:1;margin-bottom:2px}.today-number.svelte-dnwsps{font-weight:600;color:var(--color-text-primary)}.day-entities.svelte-dnwsps{display:flex;flex-direction:column;gap:1px;overflow:hidden}.entity-chip.svelte-dnwsps{display:flex;align-items:center;gap:4px;padding:2px 6px;border:none;border-radius:3px;font-family:inherit;font-size:12px;cursor:pointer;overflow:hidden;white-space:nowrap;text-align:left;transition:filter .1s;position:relative}.entity-chip.svelte-dnwsps:hover{background:var(--chip-hover-bg)!important}.chip-dot.svelte-dnwsps{width:5px;height:5px;border-radius:50%;flex-shrink:0}.floating-tooltip.svelte-dnwsps{position:fixed;padding:6px 10px;border-radius:6px;background:var(--color-bg-elevated);border:1px solid var(--color-border);box-shadow:0 8px 24px #00000040;z-index:1000;pointer-events:none;display:flex;flex-direction:column;gap:2px;min-width:160px;max-width:260px}.tooltip-title.svelte-dnwsps{font-size:13px;font-weight:600;color:var(--color-text-primary)}.tooltip-meta.svelte-dnwsps{font-size:13px;color:var(--color-text-tertiary)}.chip-label.svelte-dnwsps{flex:1;min-width:0;overflow:hidden;-webkit-mask-image:linear-gradient(to right,black calc(100% - 12px),transparent);mask-image:linear-gradient(to right,black calc(100% - 12px),transparent)}.more-label.svelte-dnwsps{font-size:12px;font-family:inherit;color:var(--color-text-tertiary);background:none;border:none;padding:0 6px;cursor:pointer;text-align:left}.more-label.svelte-dnwsps:hover{color:var(--color-text-secondary)}.overflow-backdrop.svelte-dnwsps{position:fixed;inset:0;z-index:999}.overflow-popover.svelte-dnwsps{position:fixed;z-index:1000;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:8px;box-shadow:0 8px 24px #00000040;width:260px;max-height:320px;display:flex;flex-direction:column}.overflow-list.svelte-dnwsps{overflow-y:auto;padding:4px}.overflow-item.svelte-dnwsps{display:flex;align-items:center;gap:6px;width:100%;padding:6px 8px;border:none;border-radius:4px;background:transparent;font-family:inherit;font-size:14px;color:var(--color-text-primary);cursor:pointer;text-align:left}.overflow-item.svelte-dnwsps:hover{background:var(--color-bg-hover)}.overflow-item-title.svelte-dnwsps{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-item-type.svelte-dnwsps{font-size:12px;color:var(--color-text-tertiary);flex-shrink:0}.empty.svelte-dnwsps{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--color-text-tertiary);font-size:14px}.empty-hint.svelte-dnwsps{font-size:13px;color:var(--color-text-tertiary)}
@@ -1,4 +1,4 @@
1
- import{e as h,f as U,s as a,g as t,ax as x}from"./CCA2E2CK.js";import{i as L,g as V}from"./csGnu8Rb.js";import{n as y}from"./BVhp5b7F.js";import{w as W}from"./BgRr0V7g.js";function X(g,c,o){fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g),signal:o}).then(async n=>{if(!n.ok){c({type:"error",message:`HTTP ${n.status}`});return}const r=n.body?.getReader();if(!r){c({type:"error",message:"No response body"});return}const p=new TextDecoder;let m="";for(;;){const{done:k,value:O}=await r.read();if(k)break;m+=p.decode(O,{stream:!0});const A=m.split(`
1
+ import{e as h,f as U,s as a,g as t,ax as x}from"./BenpwI6m.js";import{i as L,g as V}from"./BvwzgaXa.js";import{n as y}from"./CDFdgZ9U.js";import{w as W}from"./BjAmYrTY.js";function X(g,c,o){fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g),signal:o}).then(async n=>{if(!n.ok){c({type:"error",message:`HTTP ${n.status}`});return}const r=n.body?.getReader();if(!r){c({type:"error",message:"No response body"});return}const p=new TextDecoder;let m="";for(;;){const{done:k,value:O}=await r.read();if(k)break;m+=p.decode(O,{stream:!0});const A=m.split(`
2
2
  `);m=A.pop()??"";for(const C of A)if(C.startsWith("data: "))try{const f=JSON.parse(C.slice(6));c(f)}catch{}}}).catch(n=>{n.name!=="AbortError"&&c({type:"error",message:n.message})})}const D="sg-chat-sessions",J="sg-chat-version",z=14;function b(){try{const g=localStorage.getItem(D);if(!g)return[];if(localStorage.getItem(J)==="2")return JSON.parse(g);const n=JSON.parse(g).map(r=>({id:crypto.randomUUID(),createdAt:r.date+"T00:00:00.000Z",updatedAt:r.date+"T00:00:00.000Z",title:r.messages.find(p=>p.role==="user")?.content.slice(0,50)||"New chat",messages:r.messages}));return localStorage.setItem(D,JSON.stringify(n)),localStorage.setItem(J,"2"),n}catch{return[]}}function _(g){const o=[...g].sort((n,r)=>r.updatedAt.localeCompare(n.updatedAt)).slice(0,z);try{localStorage.setItem(D,JSON.stringify(o)),localStorage.setItem(J,"2")}catch{}}function N(g,c){const o=b(),n=c.map(({streaming:p,...m})=>m),r=o.findIndex(p=>p.id===g);r>=0&&(o[r].messages=n,o[r].updatedAt=new Date().toISOString()),_(o)}function B(){const c=b().sort((e,i)=>i.updatedAt.localeCompare(e.updatedAt))[0];let o=h(U(c?c.messages.map(e=>({...e,streaming:!1})):[])),n=h(U(c?.id??null)),r=h(!1),p=h(0),m=h(0),k=h(0),O=h(null),A=null,C=h(""),f=h(U(!!c));const R=new Set(["create_entity","update_entity","delete_entity","move_entity"]);function M(){$();const e=crypto.randomUUID();a(n,e,!0),a(o,[],!0),a(f,!1)}function E(){if(t(n)&&t(f))return t(n);const e=t(n)||crypto.randomUUID();a(n,e,!0);const i=new Date().toISOString(),d=b();return d.push({id:e,createdAt:i,updatedAt:i,title:"New chat",messages:[]}),_(d),a(f,!0),e}function K(e){if(!e.trim()||t(r))return;a(O,null);const i=E();t(o).push({role:"user",content:e}),t(o).push({role:"agent",content:"",segments:[],streaming:!0}),a(r,!0);const d=b(),l=d.find(s=>s.id===i);l&&l.title==="New chat"&&(l.title=e.slice(0,50),_(d)),N(i,t(o));let T=!1,w=null;A=new AbortController;const G=y.selectedSubPath?`${y.selectedRepo}/${y.selectedType}/${y.selectedId}/${y.selectedSubPath}`:y.selectedId?`${y.selectedRepo}/${y.selectedType}/${y.selectedId}`:null,P=t(o).slice(0,-2).map(s=>({role:s.role==="agent"?"assistant":s.role,content:s.content})),H={message:e,context:G??void 0,sessionId:i,history:P.length>0?P:void 0};X(H,s=>{if(!t(r))return;const u=t(o)[t(o).length-1];if(!u||u.role!=="agent")return;const S=u.segments;switch(s.type){case"token":{u.content+=s.text??"";const I=S[S.length-1];I&&I.type==="text"?I.content+=s.text??"":S.push({type:"text",content:s.text??""}),u.segments=S,x(m);break}case"tool_start":if(s.name){R.has(s.name)&&(T=!0);const I=S[S.length-1];I&&I.type==="tools"?I.names=[...I.names,s.name]:S.push({type:"tools",names:[s.name]}),u.segments=S,x(m)}break;case"mutation":T=!0,s.action==="created"&&s.repo&&s.entityType&&s.entityId&&(w={repo:s.repo,entityType:s.entityType,entityId:s.entityId}),window.StudioChrome?.emitMutation?.({action:s.action,repo:s.repo,entityType:s.entityType,entityId:s.entityId});break;case"highlight":a(O,s.entityIds&&s.entityIds.length>0?new Set(s.entityIds):null,!0);break;case"done":s.message&&!u.content&&(u.content=s.message,u.segments=[{type:"text",content:s.message}]),u.streaming=!1,a(r,!1),N(i,t(o)),T&&(L().then(()=>{x(p)}),W.refreshAll().then(()=>{w&&V(`/${w.repo}/${w.entityType}/${w.entityId}`)}));break;case"error":u.content+=`
3
3
 
4
4
  Error: ${s.message}`,u.streaming=!1,a(r,!1),N(i,t(o));break}},A.signal)}function $(){if(!t(r))return;fetch("/api/chat/abort",{method:"POST",credentials:"include"}).catch(()=>{}),A?.abort(),A=null,a(r,!1);const e=t(o)[t(o).length-1];e?.streaming&&(e.streaming=!1,t(n)&&N(t(n),t(o)))}function Y(){$(),a(o,[],!0),t(n)&&t(f)&&N(t(n),t(o))}function Z(e){const d=b().filter(l=>l.id!==e);if(_(d),t(n)===e){const l=d.sort((T,w)=>w.updatedAt.localeCompare(T.updatedAt));l.length>0?(a(n,l[0].id,!0),a(o,l[0].messages.map(T=>({...T,streaming:!1})),!0),a(f,!0)):(a(n,null),a(o,[],!0),a(f,!1))}}function j(e){const d=b().find(l=>l.id===e);d&&($(),a(n,d.id,!0),a(o,d.messages.map(l=>({...l,streaming:!1})),!0),a(f,!0))}function q(){return b().sort((e,i)=>i.updatedAt.localeCompare(e.updatedAt)).map(e=>({id:e.id,title:e.title,createdAt:e.createdAt,updatedAt:e.updatedAt,preview:e.messages.find(i=>i.role==="user")?.content.slice(0,80)||"",count:e.messages.length,active:e.id===t(n)}))}return{get messages(){return t(o)},get streaming(){return t(r)},get mutationCount(){return t(p)},get scrollTick(){return t(m)},get forceScroll(){return t(k)},triggerScroll(){x(k)},get highlightedIds(){return t(O)},get activeSessionId(){return t(n)},get draftInput(){return t(C)},set draftInput(e){a(C,e,!0)},send:K,stop:$,clear:Y,newSession:M,deleteSession:Z,getSessions:q,loadSession:j}}const te=B();export{te as chatStore};
@@ -1 +1 @@
1
- import{g as n,e as o,s as t}from"./CCA2E2CK.js";import{a as u}from"./BKHfe9E-.js";function f(){return u("/api/auth/status")}function p(){return u("/api/auth/me")}function g(e,a){return u("/api/auth/login",{method:"POST",body:JSON.stringify({email:e,password:a})})}function S(){return u("/api/auth/logout",{method:"POST"})}function b(e,a,r){return u("/api/auth/setup",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r})})}function w(){return u("/api/auth/users")}function O(e,a,r,i){return u("/api/auth/users",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r,role:i})})}function N(e){return u(`/api/auth/users/${e}`,{method:"DELETE"})}function P(e,a){return u(`/api/auth/users/${e}/password`,{method:"PATCH",body:JSON.stringify({password:a})})}let l=o(null),d=o(!1),c=o(!1),s=o(!0),h=o("");const m={get user(){return n(l)},get authEnabled(){return n(d)},get needsSetup(){return n(c)},get loading(){return n(s)},get workspaceName(){return n(h)},async checkAuth(){t(s,!0);try{const e=await f();if(t(d,e.authEnabled,!0),t(c,e.userCount===0),e.workspaceName&&t(h,e.workspaceName,!0),n(c))return t(s,!1),{authenticated:!1,authEnabled:!1,needsSetup:!0};if(!e.authEnabled)return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1};try{const{user:a}=await p();return t(l,a,!0),t(s,!1),{authenticated:!0,authEnabled:!0,needsSetup:!1}}catch{return t(l,null),t(s,!1),{authenticated:!1,authEnabled:!0,needsSetup:!1}}}catch{return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1}}},async login(e,a){const{user:r}=await g(e,a);return t(l,r,!0),t(d,!0),r},async setup(e,a,r){const{user:i}=await b(e,a,r);return t(l,i,!0),t(d,!0),t(c,!1),i},async logout(){await S(),t(l,null)}},T=Object.freeze(Object.defineProperty({__proto__:null,auth:m},Symbol.toStringTag,{value:"Module"}));export{m as a,T as b,O as c,N as d,w as l,P as r};
1
+ import{g as n,e as o,s as t}from"./BenpwI6m.js";import{a as u}from"./CieeblIr.js";function f(){return u("/api/auth/status")}function p(){return u("/api/auth/me")}function g(e,a){return u("/api/auth/login",{method:"POST",body:JSON.stringify({email:e,password:a})})}function S(){return u("/api/auth/logout",{method:"POST"})}function b(e,a,r){return u("/api/auth/setup",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r})})}function w(){return u("/api/auth/users")}function O(e,a,r,i){return u("/api/auth/users",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r,role:i})})}function N(e){return u(`/api/auth/users/${e}`,{method:"DELETE"})}function P(e,a){return u(`/api/auth/users/${e}/password`,{method:"PATCH",body:JSON.stringify({password:a})})}let l=o(null),d=o(!1),c=o(!1),s=o(!0),h=o("");const m={get user(){return n(l)},get authEnabled(){return n(d)},get needsSetup(){return n(c)},get loading(){return n(s)},get workspaceName(){return n(h)},async checkAuth(){t(s,!0);try{const e=await f();if(t(d,e.authEnabled,!0),t(c,e.userCount===0),e.workspaceName&&t(h,e.workspaceName,!0),n(c))return t(s,!1),{authenticated:!1,authEnabled:!1,needsSetup:!0};if(!e.authEnabled)return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1};try{const{user:a}=await p();return t(l,a,!0),t(s,!1),{authenticated:!0,authEnabled:!0,needsSetup:!1}}catch{return t(l,null),t(s,!1),{authenticated:!1,authEnabled:!0,needsSetup:!1}}}catch{return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1}}},async login(e,a){const{user:r}=await g(e,a);return t(l,r,!0),t(d,!0),r},async setup(e,a,r){const{user:i}=await b(e,a,r);return t(l,i,!0),t(d,!0),t(c,!1),i},async logout(){await S(),t(l,null)}},T=Object.freeze(Object.defineProperty({__proto__:null,auth:m},Symbol.toStringTag,{value:"Module"}));export{m as a,T as b,O as c,N as d,w as l,P as r};
@@ -1 +1 @@
1
- import{c as P,a as u,b as V,o as Kt,p as dt,s as lt,f as xt}from"./usxM-xOh.js";import{a4 as h,g as r,a2 as ut,a7 as Ft,p as L,a0 as w,b as U,s as f,e as K,a6 as Bt,c as F,ae as et,r as B,a3 as ct,l as _t,d as it,a as Lt,n as Ut,m as Nt,t as ht}from"./CCA2E2CK.js";import{a as z,s as D}from"./DkuxRPZv.js";import{i as E}from"./yUs562n0.js";import{p as n,r as Z,s as rt,l as Ct}from"./DHholpIc.js";import{a1 as Wt,m as J,a2 as zt,a3 as qt,C as It,a as pt,D as gt,a4 as Yt,a5 as X,a6 as tt,E as wt,S as nt,a7 as St,a8 as Ht,a9 as Ot,aa as Tt,ab as kt,ac as Gt,ad as jt,ae as Xt,af as Jt,b as Mt,n as At,c as Qt,ag as Zt,w as Q,s as $t,ah as te,ai as Pt,aj as Rt,P as ee,h as _,d as re,f as ft,p as Y,q as oe,r as se,t as ie,F as ne,T as ae}from"./e8QVPHqJ.js";import{c as st}from"./NuvuAeCX.js";import{b as le,c as Dt}from"./D8mTIH9Y.js";import{i as he}from"./DIBaaeCL.js";import{e as de}from"./BpdrS9kL.js";const ue={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},ce=Wt(ue);class pe{#t=()=>{};#e=h(()=>this.#t());constructor(t,e){let o;e!==void 0&&(o=e),this.#t=()=>{try{return o}finally{o=t()}}}get current(){return r(this.#e)}}function ge(b){ut(()=>Ft(()=>b()))}var fe=V("<input/>"),ve=V("<input/>");function me(b,t){L(t,!0);let e=n(t,"value",15),o=Z(t,["$$slots","$$events","$$legacy","value"]);const i=h(()=>J(o,{"aria-hidden":"true",tabindex:-1,style:ce}));var l=P(),s=w(l);{var a=v=>{var d=fe();z(d,()=>({...r(i),value:e()}),void 0,void 0,void 0,void 0,!0),u(v,d)},y=v=>{var d=ve();z(d,()=>({...r(i)}),void 0,void 0,void 0,void 0,!0),le(d,e),u(v,d)};E(s,v=>{r(i).type==="checkbox"?v(a):v(y,!1)})}u(b,l),U()}class be{#t;#e=h(()=>this.#t.candidateValues());#r;constructor(t){this.#t=t,this.#r=zt("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!r(this.#e).length)return;this.#r.current=this.#r.current+t;const e=this.#t.getCurrentItem(),o=r(this.#e).find(a=>a===e)??"",i=r(this.#e).map(a=>a??""),l=qt(i,this.#r.current,o),s=r(this.#e).find(a=>a===l);return s&&this.#t.onMatch(s),s}resetTypeahead(){this.#r.current=""}}const ye=[tt,Ht,Ot],_e=[X,Tt,kt],Ne=[...ye,..._e],Ce=re({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),ot=new It("Select.Root | Combobox.Root"),we=new It("Select.Content | Combobox.Content");class Et{opts;#t=K(!1);get touchedInput(){return r(this.#t)}set touchedInput(t){f(this.#t,t,!0)}#e=K(null);get inputNode(){return r(this.#e)}set inputNode(t){f(this.#e,t,!0)}#r=K(null);get contentNode(){return r(this.#r)}set contentNode(t){f(this.#r,t,!0)}contentPresence;#o=K(null);get viewportNode(){return r(this.#o)}set viewportNode(t){f(this.#o,t,!0)}#s=K(null);get triggerNode(){return r(this.#s)}set triggerNode(t){f(this.#s,t,!0)}#i=K("");get valueId(){return r(this.#i)}set valueId(t){f(this.#i,t,!0)}#n=K(null);get highlightedNode(){return r(this.#n)}set highlightedNode(t){f(this.#n,t,!0)}#a=h(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return r(this.#a)}set highlightedValue(t){f(this.#a,t)}#l=h(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return r(this.#l)}set highlightedId(t){f(this.#l,t)}#h=h(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return r(this.#h)}set highlightedLabel(t){f(this.#h,t)}isUsingKeyboard=!1;isCombobox=!1;domContext=new gt(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new ee({ref:_(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Bt(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(i=>{if(!this.viewportNode)return!1;const l=i.getBoundingClientRect();return l.right<=o.right&&l.left>=o.left&&l.bottom<=o.bottom&&l.top>=o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=t=>Ce.getAttr(t,this.isCombobox?"combobox":void 0)}class Se extends Et{opts;isMulti=!1;#t=h(()=>this.opts.value.current!=="");get hasValue(){return r(this.#t)}set hasValue(t){f(this.#t,t)}#e=h(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return r(this.#e)}set currentLabel(t){f(this.#e,t)}#r=h(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return r(this.#r)}set candidateLabels(t){f(this.#r,t)}#o=h(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return r(this.#o)}set dataTypeaheadEnabled(t){f(this.#o,t)}constructor(t){super(t),this.opts=t,ut(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Q(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current===t}toggleItem(t,e=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=e)}setInitialHighlightedNode(){Rt(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Pe extends Et{opts;isMulti=!0;#t=h(()=>this.opts.value.current.length>0);get hasValue(){return r(this.#t)}set hasValue(t){f(this.#t,t)}constructor(t){super(t),this.opts=t,ut(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Q(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,e=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=e}setInitialHighlightedNode(){Rt(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class xe{static create(t){const{type:e,...o}=t,i=e==="single"?new Se(o):new Pe(o);return ot.set(i)}}class vt{static create(t){return new vt(t,ot.get())}opts;root;attachment;#t;#e;constructor(t,e){this.opts=t,this.root=e,this.attachment=pt(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new gt(t.ref),this.#t=new Yt({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new be({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const i=this.root.opts.items.current.find(l=>l.label===o);i&&(this.root.opts.value.current=i.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#r(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#o(t){this.#r()}#s(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===X||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===wt||t.key===nt||t.key===tt||t.key===X)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#e.handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const s=this.root.getCandidateNodes();if(!s.length)return;if(t.key===tt){const a=s[0];this.root.setHighlightedNode(a)}else if(t.key===X){const a=s[s.length-1];this.root.setHighlightedNode(a)}return}if(t.key===St){this.root.handleClose();return}if((t.key===wt||t.key===nt&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#s()))return;if(t.key===X&&t.altKey&&this.root.handleClose(),Ne.includes(t.key)){t.preventDefault();const s=this.root.getCandidateNodes(),a=this.root.highlightedNode,y=a?s.indexOf(a):-1,v=this.root.opts.loop.current;let d;if(t.key===tt?d=Gt(s,y,v):t.key===X?d=jt(s,y,v):t.key===Tt?d=Xt(s,y,10,v):t.key===Ht?d=Jt(s,y,10,v):t.key===Ot?d=s[0]:t.key===kt&&(d=s[s.length-1]),!d)return;this.root.setHighlightedNode(d);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,i=t.key===nt,l=this.root.getCandidateNodes();if(t.key!==St){if(!e&&(o||i)){!this.#t.handleTypeaheadSearch(t.key,l)&&i&&(t.preventDefault(),this.#s());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#o(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#o(t):this.root.handleClose()))}#i=h(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qt(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":At(this.root.opts.open.current),"data-disabled":Mt(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return r(this.#i)}set props(t){f(this.#i,t)}}class mt{static create(t){return we.set(new mt(t,ot.get()))}opts;root;attachment;#t=K(!1);get isPositioned(){return r(this.#t)}set isPositioned(t){f(this.#t,t,!0)}domContext;constructor(t,e){this.opts=t,this.root=e,this.attachment=pt(t.ref,o=>this.root.contentNode=o),this.domContext=new gt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Zt(()=>{this.root.contentNode=null,this.isPositioned=!1}),Q(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=h(()=>$t(this.root.isCombobox?"combobox":"select"));onInteractOutside=t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#r=h(()=>({open:this.root.opts.open.current}));get snippetProps(){return r(this.#r)}set snippetProps(t){f(this.#r,t)}#o=h(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":At(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...r(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return r(this.#o)}set props(t){f(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}}class bt{static create(t){return new bt(t,ot.get())}opts;root;attachment;#t=h(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return r(this.#t)}set isSelected(t){f(this.#t,t)}#e=h(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return r(this.#e)}set isHighlighted(t){f(this.#e,t)}prevHighlighted=new pe(()=>this.isHighlighted);#r=K(!1);get mounted(){return r(this.#r)}set mounted(t){f(this.#r,t,!0)}constructor(t,e){this.opts=t,this.root=e,this.attachment=pt(t.ref),Q([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),Q(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}#o=h(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return r(this.#o)}set snippetProps(t){f(this.#o,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!te){Kt(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#s=h(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Mt(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return r(this.#s)}set props(t){f(this.#s,t)}}class yt{static create(t){return new yt(t,ot.get())}opts;root;#t=h(()=>this.root.opts.name.current!=="");get shouldRender(){return r(this.#t)}set shouldRender(t){f(this.#t,t)}constructor(t,e){this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#e=h(()=>({disabled:Pt(this.root.opts.disabled.current),required:Pt(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return r(this.#e)}set props(t){f(this.#e,t)}}function at(b,t){L(t,!0);let e=n(t,"value",15);const o=yt.create({value:_(()=>e())});var i=P(),l=w(i);{var s=a=>{me(a,rt(()=>o.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(y){e(y)}}))};E(l,a=>{o.shouldRender&&a(s)})}u(b,i),U()}var Ie=V("<div><div><!></div></div>"),He=V("<div><div><!></div></div>");function Oe(b,t){const e=dt();L(t,!0);let o=n(t,"id",19,()=>ft(e)),i=n(t,"ref",15,null),l=n(t,"forceMount",3,!1),s=n(t,"side",3,"bottom"),a=n(t,"onInteractOutside",3,Y),y=n(t,"onEscapeKeydown",3,Y),v=n(t,"preventScroll",3,!1),d=Z(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const c=mt.create({id:_(()=>o()),ref:_(()=>i(),m=>i(m)),onInteractOutside:_(()=>a()),onEscapeKeydown:_(()=>y())}),x=h(()=>J(d,c.props));var H=P(),M=w(H);{var T=m=>{oe(m,rt(()=>r(x),()=>c.popperProps,{get ref(){return c.opts.ref},get side(){return s()},get enabled(){return c.root.opts.open.current},get id(){return o()},get preventScroll(){return v()},forceMount:!0,get shouldRender(){return c.shouldRender},popper:(g,N)=>{let W=()=>N?.().props,G=()=>N?.().wrapperProps;const C=h(()=>J(W(),{style:c.props.style},{style:t.style}));var A=P(),q=w(A);{var j=S=>{var I=P(),k=w(I);{let R=h(()=>({props:r(C),wrapperProps:G(),...c.snippetProps}));D(k,()=>t.child,()=>r(R))}u(S,I)},$=S=>{var I=Ie();z(I,()=>({...G()}));var k=F(I);z(k,()=>({...r(C)}));var R=F(k);D(R,()=>t.children??et),B(k),B(I),u(S,I)};E(q,S=>{t.child?S(j):S($,!1)})}u(g,A)},$$slots:{popper:!0}}))},O=m=>{se(m,rt(()=>r(x),()=>c.popperProps,{get ref(){return c.opts.ref},get side(){return s()},get open(){return c.root.opts.open.current},get id(){return o()},get preventScroll(){return v()},forceMount:!1,get shouldRender(){return c.shouldRender},popper:(g,N)=>{let W=()=>N?.().props,G=()=>N?.().wrapperProps;const C=h(()=>J(W(),{style:c.props.style},{style:t.style}));var A=P(),q=w(A);{var j=S=>{var I=P(),k=w(I);{let R=h(()=>({props:r(C),wrapperProps:G(),...c.snippetProps}));D(k,()=>t.child,()=>r(R))}u(S,I)},$=S=>{var I=He();z(I,()=>({...G()}));var k=F(I);z(k,()=>({...r(C)}));var R=F(k);D(R,()=>t.children??et),B(k),B(I),u(S,I)};E(q,S=>{t.child?S(j):S($,!1)})}u(g,A)},$$slots:{popper:!0}}))};E(M,m=>{l()?m(T):l()||m(O,1)})}u(b,H),U()}function Te(b,t){L(t,!0);let e=n(t,"mounted",15,!1),o=n(t,"onMountedChange",3,Y);ge(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)})),U()}var ke=V("<div><!></div>"),Me=V("<!> <!>",1);function $e(b,t){const e=dt();L(t,!0);let o=n(t,"id",19,()=>ft(e)),i=n(t,"ref",15,null),l=n(t,"label",19,()=>t.value),s=n(t,"disabled",3,!1),a=n(t,"onHighlight",3,Y),y=n(t,"onUnhighlight",3,Y),v=Z(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const d=bt.create({id:_(()=>o()),ref:_(()=>i(),m=>i(m)),value:_(()=>t.value),disabled:_(()=>s()),label:_(()=>l()),onHighlight:_(()=>a()),onUnhighlight:_(()=>y())}),c=h(()=>J(v,d.props));var x=Me(),H=w(x);{var M=m=>{var p=P(),g=w(p);{let N=h(()=>({props:r(c),...d.snippetProps}));D(g,()=>t.child,()=>r(N))}u(m,p)},T=m=>{var p=ke();z(p,()=>({...r(c)}));var g=F(p);D(g,()=>t.children??et,()=>d.snippetProps),B(p),u(m,p)};E(H,m=>{t.child?m(M):m(T,!1)})}var O=ct(H,2);Te(O,{get mounted(){return d.mounted},set mounted(m){d.mounted=m}}),u(b,x),U()}var Ae=V("<!> <!>",1);function Re(b,t){L(t,!0);let e=n(t,"value",15),o=n(t,"onValueChange",3,Y),i=n(t,"name",3,""),l=n(t,"disabled",3,!1),s=n(t,"open",15,!1),a=n(t,"onOpenChange",3,Y),y=n(t,"onOpenChangeComplete",3,Y),v=n(t,"loop",3,!1),d=n(t,"scrollAlignment",3,"nearest"),c=n(t,"required",3,!1),x=n(t,"items",19,()=>[]),H=n(t,"allowDeselect",3,!1);function M(){e()===void 0&&e(t.type==="single"?"":[])}M(),Q.pre(()=>e(),()=>{M()});let T=K("");const O=xe.create({type:t.type,value:_(()=>e(),C=>{e(C),o()(C)}),disabled:_(()=>l()),required:_(()=>c()),open:_(()=>s(),C=>{s(C),a()(C)}),loop:_(()=>v()),scrollAlignment:_(()=>d()),name:_(()=>i()),isCombobox:!1,items:_(()=>x()),allowDeselect:_(()=>H()),inputValue:_(()=>r(T),C=>f(T,C,!0)),onOpenChangeComplete:_(()=>y())});var m=Ae(),p=w(m);ie(p,{children:(C,A)=>{var q=P(),j=w(q);D(j,()=>t.children??et),u(C,q)},$$slots:{default:!0}});var g=ct(p,2);{var N=C=>{var A=P(),q=w(A);{var j=S=>{at(S,{get autocomplete(){return t.autocomplete}})},$=S=>{var I=P(),k=w(I);de(k,16,()=>O.opts.value.current,R=>R,(R,Vt)=>{at(R,{get value(){return Vt},get autocomplete(){return t.autocomplete}})}),u(S,I)};E(q,S=>{O.opts.value.current.length===0?S(j):S($,!1)})}u(C,A)},W=h(()=>Array.isArray(O.opts.value.current)),G=C=>{at(C,{get autocomplete(){return t.autocomplete},get value(){return O.opts.value.current},set value(A){O.opts.value.current=A}})};E(g,C=>{r(W)?C(N):C(G,!1)})}u(b,m),U()}var De=V("<button><!></button>");function Ee(b,t){const e=dt();L(t,!0);let o=n(t,"id",19,()=>ft(e)),i=n(t,"ref",15,null),l=n(t,"type",3,"button"),s=Z(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const a=vt.create({id:_(()=>o()),ref:_(()=>i(),c=>i(c))}),y=h(()=>J(s,a.props,{type:l()}));var v=P(),d=w(v);st(d,()=>ne,(c,x)=>{x(c,{get id(){return o()},get ref(){return a.opts.ref},children:(H,M)=>{var T=P(),O=w(T);{var m=g=>{var N=P(),W=w(N);D(W,()=>t.child,()=>({props:r(y)})),u(g,N)},p=g=>{var N=De();z(N,()=>({...r(y)}));var W=F(N);D(W,()=>t.children??et),B(N),u(g,N)};E(O,g=>{t.child?g(m):g(p,!1)})}u(H,T)},$$slots:{default:!0}})}),u(b,v),U()}var Ve=xt("<title> </title>"),Ke=xt('<svg><!><path d="M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"></path></svg>');function Fe(b,t){const e=Ct(t,["children","$$slots","$$events","$$legacy"]),o=Ct(e,["size","title"]);L(t,!1);const i=Nt(),l=Nt();let s=n(t,"size",8,16),a=n(t,"title",8,void 0);_t(()=>(it(e),it(a())),()=>{f(i,e["aria-label"]||e["aria-labelledby"]||a())}),_t(()=>(r(i),it(e)),()=>{f(l,{"aria-hidden":r(i)?void 0:!0,role:r(i)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Lt(),he();var y=Ke();z(y,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:s(),height:s(),...r(l),...o}));var v=F(y);{var d=c=>{var x=Ve(),H=F(x,!0);B(x),ht(()=>lt(H,a())),u(c,x)};E(v,c=>{a()&&c(d)})}Ut(),B(y),u(b,y),U()}var Be=V("<span> </span>"),Le=V('<span class="select-placeholder"> </span>'),Ue=V("<!> <!>",1);function tr(b,t){L(t,!0);let e=n(t,"placeholder",3,"Select..."),o=n(t,"size",3,"default"),i=Z(t,["$$slots","$$events","$$legacy","children","value","placeholder","class","size"]);var l=P(),s=w(l);{let a=h(()=>Dt("select-trigger",o()==="sm"&&"select-trigger-sm",t.class));st(s,()=>Ee,(y,v)=>{v(y,rt({get class(){return r(a)}},()=>i,{children:(d,c)=>{var x=Ue(),H=w(x);{var M=p=>{var g=P(),N=w(g);D(N,()=>t.children),u(p,g)},T=p=>{var g=Be(),N=F(g,!0);B(g),ht(()=>lt(N,t.value)),u(p,g)},O=p=>{var g=Le(),N=F(g,!0);B(g),ht(()=>lt(N,e())),u(p,g)};E(H,p=>{t.children?p(M):t.value?p(T,1):p(O,!1)})}var m=ct(H,2);{let p=h(()=>o()==="sm"?12:14);Fe(m,{get size(){return r(p)},class:"select-chevron"})}u(d,x)},$$slots:{default:!0}}))})}u(b,l),U()}function er(b,t){L(t,!0);let e=n(t,"side",3,"bottom"),o=n(t,"sideOffset",3,4),i=Z(t,["$$slots","$$events","$$legacy","children","class","side","sideOffset"]);var l=P(),s=w(l);st(s,()=>ae,(a,y)=>{y(a,{children:(v,d)=>{var c=P(),x=w(c);{let H=h(()=>Dt("select-content",t.class));st(x,()=>Oe,(M,T)=>{T(M,rt({get class(){return r(H)},get side(){return e()},get sideOffset(){return o()}},()=>i,{children:(O,m)=>{var p=P(),g=w(p);D(g,()=>t.children),u(O,p)},$$slots:{default:!0}}))})}u(v,c)},$$slots:{default:!0}})}),u(b,l),U()}const rr=Re;export{me as H,rr as R,$e as S,tr as a,er as b,ce as s};
1
+ import{c as P,a as u,b as V,o as Kt,p as dt,s as lt,f as xt}from"./COik51fd.js";import{a4 as h,g as r,a2 as ut,a7 as Ft,p as L,a0 as w,b as U,s as f,e as K,a6 as Bt,c as F,ae as et,r as B,a3 as ct,l as _t,d as it,a as Lt,n as Ut,m as Nt,t as ht}from"./BenpwI6m.js";import{a as z,s as D}from"./CStpN6HQ.js";import{i as E}from"./Dvv4bkXH.js";import{p as n,r as Z,s as rt,l as Ct}from"./wWaI7EIw.js";import{a1 as Wt,m as J,a2 as zt,a3 as qt,C as It,a as pt,D as gt,a4 as Yt,a5 as X,a6 as tt,E as wt,S as nt,a7 as St,a8 as Ht,a9 as Ot,aa as Tt,ab as kt,ac as Gt,ad as jt,ae as Xt,af as Jt,b as Mt,n as At,c as Qt,ag as Zt,w as Q,s as $t,ah as te,ai as Pt,aj as Rt,P as ee,h as _,d as re,f as ft,p as Y,q as oe,r as se,t as ie,F as ne,T as ae}from"./DkilSMcP.js";import{c as st}from"./CbwDFpOn.js";import{b as le,c as Dt}from"./DAD7hf2c.js";import{i as he}from"./BSBiehHY.js";import{e as de}from"./h2NtTN7K.js";const ue={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},ce=Wt(ue);class pe{#t=()=>{};#e=h(()=>this.#t());constructor(t,e){let o;e!==void 0&&(o=e),this.#t=()=>{try{return o}finally{o=t()}}}get current(){return r(this.#e)}}function ge(b){ut(()=>Ft(()=>b()))}var fe=V("<input/>"),ve=V("<input/>");function me(b,t){L(t,!0);let e=n(t,"value",15),o=Z(t,["$$slots","$$events","$$legacy","value"]);const i=h(()=>J(o,{"aria-hidden":"true",tabindex:-1,style:ce}));var l=P(),s=w(l);{var a=v=>{var d=fe();z(d,()=>({...r(i),value:e()}),void 0,void 0,void 0,void 0,!0),u(v,d)},y=v=>{var d=ve();z(d,()=>({...r(i)}),void 0,void 0,void 0,void 0,!0),le(d,e),u(v,d)};E(s,v=>{r(i).type==="checkbox"?v(a):v(y,!1)})}u(b,l),U()}class be{#t;#e=h(()=>this.#t.candidateValues());#r;constructor(t){this.#t=t,this.#r=zt("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!r(this.#e).length)return;this.#r.current=this.#r.current+t;const e=this.#t.getCurrentItem(),o=r(this.#e).find(a=>a===e)??"",i=r(this.#e).map(a=>a??""),l=qt(i,this.#r.current,o),s=r(this.#e).find(a=>a===l);return s&&this.#t.onMatch(s),s}resetTypeahead(){this.#r.current=""}}const ye=[tt,Ht,Ot],_e=[X,Tt,kt],Ne=[...ye,..._e],Ce=re({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),ot=new It("Select.Root | Combobox.Root"),we=new It("Select.Content | Combobox.Content");class Et{opts;#t=K(!1);get touchedInput(){return r(this.#t)}set touchedInput(t){f(this.#t,t,!0)}#e=K(null);get inputNode(){return r(this.#e)}set inputNode(t){f(this.#e,t,!0)}#r=K(null);get contentNode(){return r(this.#r)}set contentNode(t){f(this.#r,t,!0)}contentPresence;#o=K(null);get viewportNode(){return r(this.#o)}set viewportNode(t){f(this.#o,t,!0)}#s=K(null);get triggerNode(){return r(this.#s)}set triggerNode(t){f(this.#s,t,!0)}#i=K("");get valueId(){return r(this.#i)}set valueId(t){f(this.#i,t,!0)}#n=K(null);get highlightedNode(){return r(this.#n)}set highlightedNode(t){f(this.#n,t,!0)}#a=h(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return r(this.#a)}set highlightedValue(t){f(this.#a,t)}#l=h(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return r(this.#l)}set highlightedId(t){f(this.#l,t)}#h=h(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return r(this.#h)}set highlightedLabel(t){f(this.#h,t)}isUsingKeyboard=!1;isCombobox=!1;domContext=new gt(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new ee({ref:_(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Bt(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(i=>{if(!this.viewportNode)return!1;const l=i.getBoundingClientRect();return l.right<=o.right&&l.left>=o.left&&l.bottom<=o.bottom&&l.top>=o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=t=>Ce.getAttr(t,this.isCombobox?"combobox":void 0)}class Se extends Et{opts;isMulti=!1;#t=h(()=>this.opts.value.current!=="");get hasValue(){return r(this.#t)}set hasValue(t){f(this.#t,t)}#e=h(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return r(this.#e)}set currentLabel(t){f(this.#e,t)}#r=h(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return r(this.#r)}set candidateLabels(t){f(this.#r,t)}#o=h(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return r(this.#o)}set dataTypeaheadEnabled(t){f(this.#o,t)}constructor(t){super(t),this.opts=t,ut(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Q(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current===t}toggleItem(t,e=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=e)}setInitialHighlightedNode(){Rt(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Pe extends Et{opts;isMulti=!0;#t=h(()=>this.opts.value.current.length>0);get hasValue(){return r(this.#t)}set hasValue(t){f(this.#t,t)}constructor(t){super(t),this.opts=t,ut(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Q(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,e=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=e}setInitialHighlightedNode(){Rt(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class xe{static create(t){const{type:e,...o}=t,i=e==="single"?new Se(o):new Pe(o);return ot.set(i)}}class vt{static create(t){return new vt(t,ot.get())}opts;root;attachment;#t;#e;constructor(t,e){this.opts=t,this.root=e,this.attachment=pt(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new gt(t.ref),this.#t=new Yt({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new be({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const i=this.root.opts.items.current.find(l=>l.label===o);i&&(this.root.opts.value.current=i.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#r(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#o(t){this.#r()}#s(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===X||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===wt||t.key===nt||t.key===tt||t.key===X)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#e.handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const s=this.root.getCandidateNodes();if(!s.length)return;if(t.key===tt){const a=s[0];this.root.setHighlightedNode(a)}else if(t.key===X){const a=s[s.length-1];this.root.setHighlightedNode(a)}return}if(t.key===St){this.root.handleClose();return}if((t.key===wt||t.key===nt&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#s()))return;if(t.key===X&&t.altKey&&this.root.handleClose(),Ne.includes(t.key)){t.preventDefault();const s=this.root.getCandidateNodes(),a=this.root.highlightedNode,y=a?s.indexOf(a):-1,v=this.root.opts.loop.current;let d;if(t.key===tt?d=Gt(s,y,v):t.key===X?d=jt(s,y,v):t.key===Tt?d=Xt(s,y,10,v):t.key===Ht?d=Jt(s,y,10,v):t.key===Ot?d=s[0]:t.key===kt&&(d=s[s.length-1]),!d)return;this.root.setHighlightedNode(d);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,i=t.key===nt,l=this.root.getCandidateNodes();if(t.key!==St){if(!e&&(o||i)){!this.#t.handleTypeaheadSearch(t.key,l)&&i&&(t.preventDefault(),this.#s());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#o(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#o(t):this.root.handleClose()))}#i=h(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qt(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":At(this.root.opts.open.current),"data-disabled":Mt(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return r(this.#i)}set props(t){f(this.#i,t)}}class mt{static create(t){return we.set(new mt(t,ot.get()))}opts;root;attachment;#t=K(!1);get isPositioned(){return r(this.#t)}set isPositioned(t){f(this.#t,t,!0)}domContext;constructor(t,e){this.opts=t,this.root=e,this.attachment=pt(t.ref,o=>this.root.contentNode=o),this.domContext=new gt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Zt(()=>{this.root.contentNode=null,this.isPositioned=!1}),Q(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=h(()=>$t(this.root.isCombobox?"combobox":"select"));onInteractOutside=t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#r=h(()=>({open:this.root.opts.open.current}));get snippetProps(){return r(this.#r)}set snippetProps(t){f(this.#r,t)}#o=h(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":At(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...r(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return r(this.#o)}set props(t){f(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}}class bt{static create(t){return new bt(t,ot.get())}opts;root;attachment;#t=h(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return r(this.#t)}set isSelected(t){f(this.#t,t)}#e=h(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return r(this.#e)}set isHighlighted(t){f(this.#e,t)}prevHighlighted=new pe(()=>this.isHighlighted);#r=K(!1);get mounted(){return r(this.#r)}set mounted(t){f(this.#r,t,!0)}constructor(t,e){this.opts=t,this.root=e,this.attachment=pt(t.ref),Q([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),Q(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}#o=h(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return r(this.#o)}set snippetProps(t){f(this.#o,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!te){Kt(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#s=h(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Mt(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return r(this.#s)}set props(t){f(this.#s,t)}}class yt{static create(t){return new yt(t,ot.get())}opts;root;#t=h(()=>this.root.opts.name.current!=="");get shouldRender(){return r(this.#t)}set shouldRender(t){f(this.#t,t)}constructor(t,e){this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#e=h(()=>({disabled:Pt(this.root.opts.disabled.current),required:Pt(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return r(this.#e)}set props(t){f(this.#e,t)}}function at(b,t){L(t,!0);let e=n(t,"value",15);const o=yt.create({value:_(()=>e())});var i=P(),l=w(i);{var s=a=>{me(a,rt(()=>o.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(y){e(y)}}))};E(l,a=>{o.shouldRender&&a(s)})}u(b,i),U()}var Ie=V("<div><div><!></div></div>"),He=V("<div><div><!></div></div>");function Oe(b,t){const e=dt();L(t,!0);let o=n(t,"id",19,()=>ft(e)),i=n(t,"ref",15,null),l=n(t,"forceMount",3,!1),s=n(t,"side",3,"bottom"),a=n(t,"onInteractOutside",3,Y),y=n(t,"onEscapeKeydown",3,Y),v=n(t,"preventScroll",3,!1),d=Z(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const c=mt.create({id:_(()=>o()),ref:_(()=>i(),m=>i(m)),onInteractOutside:_(()=>a()),onEscapeKeydown:_(()=>y())}),x=h(()=>J(d,c.props));var H=P(),M=w(H);{var T=m=>{oe(m,rt(()=>r(x),()=>c.popperProps,{get ref(){return c.opts.ref},get side(){return s()},get enabled(){return c.root.opts.open.current},get id(){return o()},get preventScroll(){return v()},forceMount:!0,get shouldRender(){return c.shouldRender},popper:(g,N)=>{let W=()=>N?.().props,G=()=>N?.().wrapperProps;const C=h(()=>J(W(),{style:c.props.style},{style:t.style}));var A=P(),q=w(A);{var j=S=>{var I=P(),k=w(I);{let R=h(()=>({props:r(C),wrapperProps:G(),...c.snippetProps}));D(k,()=>t.child,()=>r(R))}u(S,I)},$=S=>{var I=Ie();z(I,()=>({...G()}));var k=F(I);z(k,()=>({...r(C)}));var R=F(k);D(R,()=>t.children??et),B(k),B(I),u(S,I)};E(q,S=>{t.child?S(j):S($,!1)})}u(g,A)},$$slots:{popper:!0}}))},O=m=>{se(m,rt(()=>r(x),()=>c.popperProps,{get ref(){return c.opts.ref},get side(){return s()},get open(){return c.root.opts.open.current},get id(){return o()},get preventScroll(){return v()},forceMount:!1,get shouldRender(){return c.shouldRender},popper:(g,N)=>{let W=()=>N?.().props,G=()=>N?.().wrapperProps;const C=h(()=>J(W(),{style:c.props.style},{style:t.style}));var A=P(),q=w(A);{var j=S=>{var I=P(),k=w(I);{let R=h(()=>({props:r(C),wrapperProps:G(),...c.snippetProps}));D(k,()=>t.child,()=>r(R))}u(S,I)},$=S=>{var I=He();z(I,()=>({...G()}));var k=F(I);z(k,()=>({...r(C)}));var R=F(k);D(R,()=>t.children??et),B(k),B(I),u(S,I)};E(q,S=>{t.child?S(j):S($,!1)})}u(g,A)},$$slots:{popper:!0}}))};E(M,m=>{l()?m(T):l()||m(O,1)})}u(b,H),U()}function Te(b,t){L(t,!0);let e=n(t,"mounted",15,!1),o=n(t,"onMountedChange",3,Y);ge(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)})),U()}var ke=V("<div><!></div>"),Me=V("<!> <!>",1);function $e(b,t){const e=dt();L(t,!0);let o=n(t,"id",19,()=>ft(e)),i=n(t,"ref",15,null),l=n(t,"label",19,()=>t.value),s=n(t,"disabled",3,!1),a=n(t,"onHighlight",3,Y),y=n(t,"onUnhighlight",3,Y),v=Z(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const d=bt.create({id:_(()=>o()),ref:_(()=>i(),m=>i(m)),value:_(()=>t.value),disabled:_(()=>s()),label:_(()=>l()),onHighlight:_(()=>a()),onUnhighlight:_(()=>y())}),c=h(()=>J(v,d.props));var x=Me(),H=w(x);{var M=m=>{var p=P(),g=w(p);{let N=h(()=>({props:r(c),...d.snippetProps}));D(g,()=>t.child,()=>r(N))}u(m,p)},T=m=>{var p=ke();z(p,()=>({...r(c)}));var g=F(p);D(g,()=>t.children??et,()=>d.snippetProps),B(p),u(m,p)};E(H,m=>{t.child?m(M):m(T,!1)})}var O=ct(H,2);Te(O,{get mounted(){return d.mounted},set mounted(m){d.mounted=m}}),u(b,x),U()}var Ae=V("<!> <!>",1);function Re(b,t){L(t,!0);let e=n(t,"value",15),o=n(t,"onValueChange",3,Y),i=n(t,"name",3,""),l=n(t,"disabled",3,!1),s=n(t,"open",15,!1),a=n(t,"onOpenChange",3,Y),y=n(t,"onOpenChangeComplete",3,Y),v=n(t,"loop",3,!1),d=n(t,"scrollAlignment",3,"nearest"),c=n(t,"required",3,!1),x=n(t,"items",19,()=>[]),H=n(t,"allowDeselect",3,!1);function M(){e()===void 0&&e(t.type==="single"?"":[])}M(),Q.pre(()=>e(),()=>{M()});let T=K("");const O=xe.create({type:t.type,value:_(()=>e(),C=>{e(C),o()(C)}),disabled:_(()=>l()),required:_(()=>c()),open:_(()=>s(),C=>{s(C),a()(C)}),loop:_(()=>v()),scrollAlignment:_(()=>d()),name:_(()=>i()),isCombobox:!1,items:_(()=>x()),allowDeselect:_(()=>H()),inputValue:_(()=>r(T),C=>f(T,C,!0)),onOpenChangeComplete:_(()=>y())});var m=Ae(),p=w(m);ie(p,{children:(C,A)=>{var q=P(),j=w(q);D(j,()=>t.children??et),u(C,q)},$$slots:{default:!0}});var g=ct(p,2);{var N=C=>{var A=P(),q=w(A);{var j=S=>{at(S,{get autocomplete(){return t.autocomplete}})},$=S=>{var I=P(),k=w(I);de(k,16,()=>O.opts.value.current,R=>R,(R,Vt)=>{at(R,{get value(){return Vt},get autocomplete(){return t.autocomplete}})}),u(S,I)};E(q,S=>{O.opts.value.current.length===0?S(j):S($,!1)})}u(C,A)},W=h(()=>Array.isArray(O.opts.value.current)),G=C=>{at(C,{get autocomplete(){return t.autocomplete},get value(){return O.opts.value.current},set value(A){O.opts.value.current=A}})};E(g,C=>{r(W)?C(N):C(G,!1)})}u(b,m),U()}var De=V("<button><!></button>");function Ee(b,t){const e=dt();L(t,!0);let o=n(t,"id",19,()=>ft(e)),i=n(t,"ref",15,null),l=n(t,"type",3,"button"),s=Z(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const a=vt.create({id:_(()=>o()),ref:_(()=>i(),c=>i(c))}),y=h(()=>J(s,a.props,{type:l()}));var v=P(),d=w(v);st(d,()=>ne,(c,x)=>{x(c,{get id(){return o()},get ref(){return a.opts.ref},children:(H,M)=>{var T=P(),O=w(T);{var m=g=>{var N=P(),W=w(N);D(W,()=>t.child,()=>({props:r(y)})),u(g,N)},p=g=>{var N=De();z(N,()=>({...r(y)}));var W=F(N);D(W,()=>t.children??et),B(N),u(g,N)};E(O,g=>{t.child?g(m):g(p,!1)})}u(H,T)},$$slots:{default:!0}})}),u(b,v),U()}var Ve=xt("<title> </title>"),Ke=xt('<svg><!><path d="M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"></path></svg>');function Fe(b,t){const e=Ct(t,["children","$$slots","$$events","$$legacy"]),o=Ct(e,["size","title"]);L(t,!1);const i=Nt(),l=Nt();let s=n(t,"size",8,16),a=n(t,"title",8,void 0);_t(()=>(it(e),it(a())),()=>{f(i,e["aria-label"]||e["aria-labelledby"]||a())}),_t(()=>(r(i),it(e)),()=>{f(l,{"aria-hidden":r(i)?void 0:!0,role:r(i)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Lt(),he();var y=Ke();z(y,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:s(),height:s(),...r(l),...o}));var v=F(y);{var d=c=>{var x=Ve(),H=F(x,!0);B(x),ht(()=>lt(H,a())),u(c,x)};E(v,c=>{a()&&c(d)})}Ut(),B(y),u(b,y),U()}var Be=V("<span> </span>"),Le=V('<span class="select-placeholder"> </span>'),Ue=V("<!> <!>",1);function tr(b,t){L(t,!0);let e=n(t,"placeholder",3,"Select..."),o=n(t,"size",3,"default"),i=Z(t,["$$slots","$$events","$$legacy","children","value","placeholder","class","size"]);var l=P(),s=w(l);{let a=h(()=>Dt("select-trigger",o()==="sm"&&"select-trigger-sm",t.class));st(s,()=>Ee,(y,v)=>{v(y,rt({get class(){return r(a)}},()=>i,{children:(d,c)=>{var x=Ue(),H=w(x);{var M=p=>{var g=P(),N=w(g);D(N,()=>t.children),u(p,g)},T=p=>{var g=Be(),N=F(g,!0);B(g),ht(()=>lt(N,t.value)),u(p,g)},O=p=>{var g=Le(),N=F(g,!0);B(g),ht(()=>lt(N,e())),u(p,g)};E(H,p=>{t.children?p(M):t.value?p(T,1):p(O,!1)})}var m=ct(H,2);{let p=h(()=>o()==="sm"?12:14);Fe(m,{get size(){return r(p)},class:"select-chevron"})}u(d,x)},$$slots:{default:!0}}))})}u(b,l),U()}function er(b,t){L(t,!0);let e=n(t,"side",3,"bottom"),o=n(t,"sideOffset",3,4),i=Z(t,["$$slots","$$events","$$legacy","children","class","side","sideOffset"]);var l=P(),s=w(l);st(s,()=>ae,(a,y)=>{y(a,{children:(v,d)=>{var c=P(),x=w(c);{let H=h(()=>Dt("select-content",t.class));st(x,()=>Oe,(M,T)=>{T(M,rt({get class(){return r(H)},get side(){return e()},get sideOffset(){return o()}},()=>i,{children:(O,m)=>{var p=P(),g=w(p);D(g,()=>t.children),u(O,p)},$$slots:{default:!0}}))})}u(v,c)},$$slots:{default:!0}})}),u(b,l),U()}const rr=Re;export{me as H,rr as R,$e as S,tr as a,er as b};
@@ -1 +1 @@
1
- import{a5 as d,a6 as g,a2 as c,a7 as b,a8 as m,a9 as i,g as p,d as v,aa as h,ab as k}from"./CCA2E2CK.js";function x(t=!1){const a=d,e=a.l.u;if(!e)return;let f=()=>v(a.s);if(t){let n=0,s={};const _=h(()=>{let l=!1;const r=a.s;for(const o in r)r[o]!==s[o]&&(s[o]=r[o],l=!0);return l&&n++,n});f=()=>p(_)}e.b.length&&g(()=>{u(a,f),i(e.b)}),c(()=>{const n=b(()=>e.m.map(m));return()=>{for(const s of n)typeof s=="function"&&s()}}),e.a.length&&c(()=>{u(a,f),i(e.a)})}function u(t,a){if(t.l.s)for(const e of t.l.s)p(e);a()}k();export{x as i};
1
+ import{a5 as d,a6 as g,a2 as c,a7 as b,a8 as m,a9 as i,g as p,d as v,aa as h,ab as k}from"./BenpwI6m.js";function x(t=!1){const a=d,e=a.l.u;if(!e)return;let f=()=>v(a.s);if(t){let n=0,s={};const _=h(()=>{let l=!1;const r=a.s;for(const o in r)r[o]!==s[o]&&(s[o]=r[o],l=!0);return l&&n++,n});f=()=>p(_)}e.b.length&&g(()=>{u(a,f),i(e.b)}),c(()=>{const n=b(()=>e.m.map(m));return()=>{for(const s of n)typeof s=="function"&&s()}}),e.a.length&&c(()=>{u(a,f),i(e.a)})}function u(t,a){if(t.l.s)for(const e of t.l.s)p(e);a()}k();export{x as i};
@@ -1 +1 @@
1
- import{a as n,b as c}from"./usxM-xOh.js";import{b as d,c as p}from"./D8mTIH9Y.js";import{p as u,b as f}from"./CCA2E2CK.js";import{a as m}from"./DkuxRPZv.js";import{b}from"./yUs562n0.js";import{p as a,r as v}from"./DHholpIc.js";var x=c("<input/>");function P(l,r){u(r,!0);let e=a(r,"ref",15,null),s=a(r,"value",15),i=v(r,["$$slots","$$events","$$legacy","class","ref","value"]);var o=x();m(o,t=>({class:t,...i}),[()=>p("h-8 w-full rounded-md border border-[var(--color-border)] bg-[var(--color-bg)] px-2.5 text-[14px] text-[var(--color-text-primary)] font-[inherit] outline-none transition-colors placeholder:text-[var(--color-text-tertiary)] focus:border-[var(--color-accent,#e05050)] disabled:cursor-not-allowed disabled:opacity-50",r.class)],void 0,void 0,void 0,!0),b(o,t=>e(t),()=>e()),d(o,s),n(l,o),f()}export{P as I};
1
+ import{a as n,b as c}from"./COik51fd.js";import{b as d,c as p}from"./DAD7hf2c.js";import{p as u,b as f}from"./BenpwI6m.js";import{a as m}from"./CStpN6HQ.js";import{b}from"./Dvv4bkXH.js";import{p as a,r as v}from"./wWaI7EIw.js";var x=c("<input/>");function P(l,r){u(r,!0);let e=a(r,"ref",15,null),s=a(r,"value",15),i=v(r,["$$slots","$$events","$$legacy","class","ref","value"]);var o=x();m(o,t=>({class:t,...i}),[()=>p("h-8 w-full rounded-md border border-[var(--color-border)] bg-[var(--color-bg)] px-2.5 text-[14px] text-[var(--color-text-primary)] font-[inherit] outline-none transition-colors placeholder:text-[var(--color-text-tertiary)] focus:border-[var(--color-accent,#e05050)] disabled:cursor-not-allowed disabled:opacity-50",r.class)],void 0,void 0,void 0,!0),b(o,t=>e(t),()=>e()),d(o,s),n(l,o),f()}export{P as I};
@@ -1 +1 @@
1
- var Kt=Array.isArray,Xt=Array.prototype.indexOf,oe=Array.prototype.includes,zn=Array.from,Gn=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Zt=Object.getOwnPropertyDescriptors,Wt=Object.prototype,Jt=Array.prototype,_t=Object.getPrototypeOf,rt=Object.isExtensible;function $n(e){return typeof e=="function"}const ye=()=>{};function Kn(e){return e()}function Qt(e){for(var t=0;t<e.length;t++)e[t]()}function vt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Xn(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 g=2,ie=4,ue=8,Be=1<<24,K=16,L=32,X=64,en=128,k=512,y=1024,T=2048,P=4096,F=8192,V=16384,de=32768,Se=65536,st=1<<17,tn=1<<18,he=1<<19,dt=1<<20,Zn=1<<25,re=65536,Le=1<<21,Ue=1<<22,B=1<<23,te=Symbol("$state"),Wn=Symbol("legacy props"),Jn=Symbol(""),W=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},er=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),tr=1,Ce=3,ht=8;function ze(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function nn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function nr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function rn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function sn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function fn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function an(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function rr(){throw new Error("https://svelte.dev/e/hydration_failed")}function sr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ln(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function on(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function un(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function fr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const ir=1,ar=2,lr=4,or=8,ur=16,cr=1,_r=2,vr=4,dr=8,hr=16,pr=1,br=2,cn="[",_n="[!",wr="[?",vn="]",Ge={},E=Symbol(),dn="http://www.w3.org/1999/xhtml",yr="http://www.w3.org/2000/svg",Er="http://www.w3.org/1998/Math/MathML",gr="@attach";function $e(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function mr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Tr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let z=!1;function Ar(e){z=e}let S;function ce(e){if(e===null)throw $e(),Ge;return S=e}function xr(){return ce(Z(S))}function Sr(e){if(z){if(Z(S)!==null)throw $e(),Ge;S=e}}function Rr(e=1){if(z){for(var t=e,n=S;t--;)n=Z(n);S=n}}function Nr(e=!0){for(var t=0,n=S;;){if(n.nodeType===ht){var r=n.data;if(r===vn){if(t===0)return n;t-=1}else(r===cn||r===_n||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=Z(n);e&&n.remove(),n=s}}function Or(e){if(!e||e.nodeType!==ht)throw $e(),Ge;return e.data}function pt(e){return e===this.v}function bt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function wt(e){return!bt(e,this.v)}let me=!1;function kr(){me=!0}let h=null;function Re(e){h=e}function Cr(e){return De().get(e)}function Dr(e,t){return De().set(e,t),t}function Ir(e){return De().has(e)}function Mr(){return De()}function Pr(e,t=!1,n){h={p:h,i:!1,c:null,e:null,s:e,x:null,l:me&&!t?{s:null,u:null,$:[]}:null}}function Fr(e){var t=h,n=t.e;if(n!==null){t.e=null;for(var r of n)Pt(r)}return e!==void 0&&(t.x=e),t.i=!0,h=t.p,e??{}}function Te(){return!me||h!==null&&h.l===null}function De(e){return h===null&&ze(),h.c??=new Map(hn(h)||void 0)}function hn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let J=[];function yt(){var e=J;J=[],Qt(e)}function je(e){if(J.length===0&&!Ee){var t=J;queueMicrotask(()=>{t===J&&yt()})}J.push(e)}function pn(){for(;J.length>0;)yt()}function bn(e){var t=d;if(t===null)return v.f|=B,e;if((t.f&de)===0&&(t.f&ie)===0)throw e;Ne(e,t)}function Ne(e,t){for(;t!==null;){if((t.f&en)!==0){if((t.f&de)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const wn=-7169;function w(e,t){e.f=e.f&wn|t}function Ke(e){(e.f&k)!==0||e.deps===null?w(e,y):w(e,P)}function Et(e){if(e!==null)for(const t of e)(t.f&g)===0||(t.f&re)===0||(t.f^=re,Et(t.deps))}function yn(e,t,n){(e.f&T)!==0?t.add(e):(e.f&P)!==0&&n.add(e),Et(e.deps),w(e,y)}const Ae=new Set;let b=null,ft=null,I=null,A=[],Ie=null,Ee=!1,_e=null;class ae{current=new Map;previous=new Map;#t=new Set;#s=new Set;#r=0;#f=0;#i=null;#a=new Set;#n=new Set;#e=new Map;is_fork=!1;#l=!1;#o(){return this.is_fork||this.#f>0}skip_effect(t){this.#e.has(t)||this.#e.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#e.get(t);if(n){this.#e.delete(t);for(var r of n.d)w(r,T),Y(r);for(r of n.m)w(r,P),Y(r)}}process(t){A=[],this.apply();var n=_e=[],r=[];for(const s of t)this.#u(s,n,r);if(_e=null,this.#o()){this.#c(r),this.#c(n);for(const[s,f]of this.#e)At(s,f)}else{ft=this,b=null;for(const s of this.#t)s(this);this.#t.clear(),this.#r===0&&this.#_(),it(r),it(n),this.#a.clear(),this.#n.clear(),ft=null,this.#i?.resolve()}I=null}#u(t,n,r){t.f^=y;for(var s=t.first;s!==null;){var f=s.f,o=(f&(L|X))!==0,l=o&&(f&y)!==0,i=l||(f&F)!==0||this.#e.has(s);if(!i&&s.fn!==null){o?s.f^=y:(f&ie)!==0?n.push(s):pe(s)&&((f&K)!==0&&this.#n.add(s),fe(s));var a=s.first;if(a!==null){s=a;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)yn(t[n],this.#a,this.#n)}capture(t,n){n!==E&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&B)===0&&(this.current.set(t,t.v),I?.set(t,t.v))}activate(){b=this,this.apply()}deactivate(){b===this&&(b=null,I=null)}flush(){if(A.length>0)b=this,gt();else if(this.#r===0&&!this.is_fork){for(const t of this.#t)t(this);this.#t.clear(),this.#_(),this.#i?.resolve()}this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#_(){if(Ae.size>1){this.previous.clear();var t=b,n=I,r=!0;for(const f of Ae){if(f===this){r=!1;continue}const o=[];for(const[i,a]of this.current){if(f.current.has(i))if(r&&a!==f.current.get(i))f.current.set(i,a);else continue;o.push(i)}if(o.length===0)continue;const l=[...f.current.keys()].filter(i=>!this.current.has(i));if(l.length>0){var s=A;A=[];const i=new Set,a=new Map;for(const u of o)mt(u,l,i,a);if(A.length>0){b=f,f.apply();for(const u of A)f.#u(u,[],[]);f.deactivate()}A=s}}b=t,I=n}this.#e.clear(),Ae.delete(this)}increment(t){this.#r+=1,t&&(this.#f+=1)}decrement(t){this.#r-=1,t&&(this.#f-=1),!this.#l&&(this.#l=!0,je(()=>{this.#l=!1,this.#o()?A.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#a)this.#n.delete(t),w(t,T),Y(t);for(const t of this.#n)w(t,P),Y(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#i??=vt()).promise}static ensure(){if(b===null){const t=b=new ae;Ae.add(b),Ee||je(()=>{b===t&&t.flush()})}return b}apply(){}}function En(e){var t=Ee;Ee=!0;try{for(var n;;){if(pn(),A.length===0&&(b?.flush(),A.length===0))return Ie=null,n;gt()}}finally{Ee=t}}function gt(){var e=null;try{for(var t=0;A.length>0;){var n=ae.ensure();if(t++>1e3){var r,s;gn()}n.process(A),U.clear()}}finally{A=[],Ie=null,_e=null}}function gn(){try{an()}catch(e){Ne(e,Ie)}}let j=null;function it(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|F))===0&&pe(r)&&(j=new Set,fe(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&jt(r),j?.size>0)){U.clear();for(const s of j){if((s.f&(V|F))!==0)continue;const f=[s];let o=s.parent;for(;o!==null;)j.has(o)&&(j.delete(o),f.push(o)),o=o.parent;for(let l=f.length-1;l>=0;l--){const i=f[l];(i.f&(V|F))===0&&fe(i)}}j.clear()}}j=null}}function mt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&g)!==0?mt(s,t,n,r):(f&(Ue|K))!==0&&(f&T)===0&&Tt(s,t,r)&&(w(s,T),Y(s))}}function Tt(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(oe.call(t,s))return!0;if((s.f&g)!==0&&Tt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Y(e){var t=Ie=e,n=t.b;if(n?.is_pending&&(e.f&(ie|ue|Be))!==0&&(e.f&de)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(_e!==null&&t===d&&(e.f&ue)===0)return;if((r&(X|L))!==0){if((r&y)===0)return;t.f^=y}}A.push(t)}function At(e,t){if(!((e.f&L)!==0&&(e.f&y)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&P)!==0&&t.m.push(e),w(e,y);for(var n=e.first;n!==null;)At(n,t),n=n.next}}function xt(e,t,n,r){const s=Te()?Xe:An;var f=e.filter(c=>!c.settled);if(n.length===0&&f.length===0){r(t.map(s));return}var o=d,l=mn(),i=f.length===1?f[0].promise:f.length>1?Promise.all(f.map(c=>c.promise)):null;function a(c){l();try{r(c)}catch(_){(o.f&V)===0&&Ne(_,o)}Ye()}if(n.length===0){i.then(()=>a(t.map(s)));return}function u(){l(),Promise.all(n.map(c=>Tn(c))).then(c=>a([...t.map(s),...c])).catch(c=>Ne(c,o))}i?i.then(u):u()}function mn(){var e=d,t=v,n=h,r=b;return function(f=!0){ve(e),$(t),Re(n),f&&r?.activate()}}function Ye(e=!0){ve(null),$(null),Re(null),e&&b?.deactivate()}function St(){var e=d.b,t=b,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function Xe(e){var t=g|T,n=v!==null&&(v.f&g)!==0?v:null;return d!==null&&(d.f|=he),{ctx:h,deps:null,effects:null,equals:pt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??d,ac:null}}function Tn(e,t,n){d===null&&nn();var s=void 0,f=We(E),o=!v,l=new Map;return Fn(()=>{var i=vt();s=i.promise;try{Promise.resolve(e()).then(i.resolve,i.reject).finally(Ye)}catch(_){i.reject(_),Ye()}var a=b;if(o){var u=St();l.get(a)?.reject(W),l.delete(a),l.set(a,i)}const c=(_,m=void 0)=>{if(a.activate(),m)m!==W&&(f.f|=B,He(f,m));else{(f.f&B)!==0&&(f.f^=B),He(f,_);for(const[p,D]of l){if(l.delete(p),p===a)break;D.reject(W)}}u&&u()};i.promise.then(c,_=>c(null,_||"unknown"))}),Mn(()=>{for(const i of l.values())i.reject(W)}),new Promise(i=>{function a(u){function c(){u===s?i(f):a(s)}u.then(c,c)}a(s)})}function Lr(e){const t=Xe(e);return Ht(t),t}function An(e){const t=Xe(e);return t.equals=wt,t}function xn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)G(t[n])}}function Sn(e){for(var t=e.parent;t!==null;){if((t.f&g)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function Ze(e){var t,n=d;ve(Sn(e));try{e.f&=~re,xn(e),t=zt(e)}finally{ve(n)}return t}function Rt(e){var t=Ze(e);if(!e.equals(t)&&(e.wv=Bt(),(!b?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){w(e,y);return}se||(I!==null?(Mt()||b?.is_fork)&&I.set(e,t):Ke(e))}function Rn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(W),t.teardown=ye,t.ac=null,ge(t,0),et(t))}function Nt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&fe(t)}let qe=new Set;const U=new Map;let Ot=!1;function We(e,t){var n={f:0,v:e,reactions:null,equals:pt,rv:0,wv:0};return n}function q(e,t){const n=We(e);return Ht(n),n}function jr(e,t=!1,n=!0){const r=We(e);return t||(r.equals=wt),me&&n&&h!==null&&h.l!==null&&(h.l.s??=[]).push(r),r}function H(e,t,n=!1){v!==null&&(!M||(v.f&st)!==0)&&Te()&&(v.f&(g|K|Ue|st))!==0&&(C===null||!oe.call(C,e))&&un();let r=n?be(t):t;return He(e,r)}function He(e,t){if(!e.equals(t)){var n=e.v;se?U.set(e,t):U.set(e,n),e.v=t;var r=ae.ensure();if(r.capture(e,n),(e.f&g)!==0){const s=e;(e.f&T)!==0&&Ze(s),Ke(s)}e.wv=Bt(),kt(e,T),Te()&&d!==null&&(d.f&y)!==0&&(d.f&(L|X))===0&&(O===null?qn([e]):O.push(e)),!r.is_fork&&qe.size>0&&!Ot&&Nn()}return t}function Nn(){Ot=!1;for(const e of qe)(e.f&y)!==0&&w(e,P),pe(e)&&fe(e);qe.clear()}function Yr(e,t=1){var n=ee(e),r=t===1?n++:n--;return H(e,n),r}function Fe(e){H(e,e.v+1)}function kt(e,t){var n=e.reactions;if(n!==null)for(var r=Te(),s=n.length,f=0;f<s;f++){var o=n[f],l=o.f;if(!(!r&&o===d)){var i=(l&T)===0;if(i&&w(o,t),(l&g)!==0){var a=o;I?.delete(a),(l&re)===0&&(l&k&&(o.f|=re),kt(a,P))}else i&&((l&K)!==0&&j!==null&&j.add(o),Y(o))}}}function be(e){if(typeof e!="object"||e===null||te in e)return e;const t=_t(e);if(t!==Wt&&t!==Jt)return e;var n=new Map,r=Kt(e),s=q(0),f=ne,o=l=>{if(ne===f)return l();var i=v,a=ne;$(null),ct(f);var u=l();return $(i),ct(a),u};return r&&n.set("length",q(e.length)),new Proxy(e,{defineProperty(l,i,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&ln();var u=n.get(i);return u===void 0?o(()=>{var c=q(a.value);return n.set(i,c),c}):H(u,a.value,!0),!0},deleteProperty(l,i){var a=n.get(i);if(a===void 0){if(i in l){const u=o(()=>q(E));n.set(i,u),Fe(s)}}else H(a,E),Fe(s);return!0},get(l,i,a){if(i===te)return e;var u=n.get(i),c=i in l;if(u===void 0&&(!c||we(l,i)?.writable)&&(u=o(()=>{var m=be(c?l[i]:E),p=q(m);return p}),n.set(i,u)),u!==void 0){var _=ee(u);return _===E?void 0:_}return Reflect.get(l,i,a)},getOwnPropertyDescriptor(l,i){var a=Reflect.getOwnPropertyDescriptor(l,i);if(a&&"value"in a){var u=n.get(i);u&&(a.value=ee(u))}else if(a===void 0){var c=n.get(i),_=c?.v;if(c!==void 0&&_!==E)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return a},has(l,i){if(i===te)return!0;var a=n.get(i),u=a!==void 0&&a.v!==E||Reflect.has(l,i);if(a!==void 0||d!==null&&(!u||we(l,i)?.writable)){a===void 0&&(a=o(()=>{var _=u?be(l[i]):E,m=q(_);return m}),n.set(i,a));var c=ee(a);if(c===E)return!1}return u},set(l,i,a,u){var c=n.get(i),_=i in l;if(r&&i==="length")for(var m=a;m<c.v;m+=1){var p=n.get(m+"");p!==void 0?H(p,E):m in l&&(p=o(()=>q(E)),n.set(m+"",p))}if(c===void 0)(!_||we(l,i)?.writable)&&(c=o(()=>q(void 0)),H(c,be(a)),n.set(i,c));else{_=c.v!==E;var D=o(()=>be(a));H(c,D)}var tt=Reflect.getOwnPropertyDescriptor(l,i);if(tt?.set&&tt.set.call(u,a),!_){if(r&&typeof i=="string"){var nt=n.get("length"),Pe=Number(i);Number.isInteger(Pe)&&Pe>=nt.v&&H(nt,Pe+1)}Fe(s)}return!0},ownKeys(l){ee(s);var i=Reflect.ownKeys(l).filter(c=>{var _=n.get(c);return _===void 0||_.v!==E});for(var[a,u]of n)u.v!==E&&!(a in l)&&i.push(a);return i},setPrototypeOf(){on()}})}function at(e){try{if(e!==null&&typeof e=="object"&&te in e)return e[te]}catch{}return e}function qr(e,t){return Object.is(at(e),at(t))}var lt,On,kn,Ct,Dt;function Hr(){if(lt===void 0){lt=window,On=document,kn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ct=we(t,"firstChild").get,Dt=we(t,"nextSibling").get,rt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),rt(n)&&(n.__t=void 0)}}function Oe(e=""){return document.createTextNode(e)}function ke(e){return Ct.call(e)}function Z(e){return Dt.call(e)}function Vr(e,t){if(!z)return ke(e);var n=ke(S);if(n===null)n=S.appendChild(Oe());else if(t&&n.nodeType!==Ce){var r=Oe();return n?.before(r),ce(r),r}return t&&Je(n),ce(n),n}function Br(e,t=!1){if(!z){var n=ke(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(S?.nodeType!==Ce){var r=Oe();return S?.before(r),ce(r),r}Je(S)}return S}function Ur(e,t=1,n=!1){let r=z?S:e;for(var s;t--;)s=r,r=Z(r);if(!z)return r;if(n){if(r?.nodeType!==Ce){var f=Oe();return r===null?s?.after(f):r.before(f),ce(f),f}Je(r)}return ce(r),r}function Cn(e){e.textContent=""}function zr(){return!1}function Gr(e,t,n){return document.createElementNS(t??dn,e,void 0)}function Je(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ce;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function $r(e,t){if(t){const n=document.body;e.autofocus=!0,je(()=>{document.activeElement===n&&e.focus()})}}function Kr(e){z&&ke(e)!==null&&Cn(e)}let ot=!1;function Dn(){ot||(ot=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Qe(e){var t=v,n=d;$(null),ve(null);try{return e()}finally{$(t),ve(n)}}function Xr(e,t,n,r=n){e.addEventListener(t,()=>Qe(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Dn()}function It(e){d===null&&(v===null&&fn(),sn()),se&&rn()}function In(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function N(e,t){var n=d;n!==null&&(n.f&F)!==0&&(e|=F);var r={ctx:h,deps:null,nodes:null,f:e|T|k,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&ie)!==0)_e!==null?_e.push(r):Y(r);else if(t!==null){try{fe(r)}catch(o){throw G(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&he)===0&&(s=s.first,(e&K)!==0&&(e&Se)!==0&&s!==null&&(s.f|=Se))}if(s!==null&&(s.parent=n,n!==null&&In(s,n),v!==null&&(v.f&g)!==0&&(e&X)===0)){var f=v;(f.effects??=[]).push(s)}return r}function Mt(){return v!==null&&!M}function Mn(e){const t=N(ue,null);return w(t,y),t.teardown=e,t}function Pn(e){It();var t=d.f,n=!v&&(t&L)!==0&&(t&de)===0;if(n){var r=h;(r.e??=[]).push(e)}else return Pt(e)}function Pt(e){return N(ie|dt,e)}function Zr(e){return It(),N(ue|dt,e)}function Wr(e){ae.ensure();const t=N(X|he,e);return()=>{G(t)}}function Jr(e){ae.ensure();const t=N(X|he,e);return(n={})=>new Promise(r=>{n.outro?Yn(t,()=>{G(t),r(void 0)}):(G(t),r(void 0))})}function Qr(e){return N(ie,e)}function es(e,t){var n=h,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=Ft(()=>{e(),!r.ran&&(r.ran=!0,Me(t))})}function ts(){var e=h;Ft(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&y)!==0&&n.deps!==null&&w(n,P),pe(n)&&fe(n),t.ran=!1}})}function Fn(e){return N(Ue|he,e)}function Ft(e,t=0){return N(ue|t,e)}function ns(e,t=[],n=[],r=[]){xt(r,t,n,s=>{N(ue,()=>e(...s.map(ee)))})}function rs(e,t=[],n=[],r=[]){if(n.length>0||r.length>0)var s=St();xt(r,t,n,f=>{N(ie,()=>e(...f.map(ee))),s&&s()})}function ss(e,t=0){var n=N(K|t,e);return n}function fs(e,t=0){var n=N(Be|t,e);return n}function is(e){return N(L|he,e)}function Lt(e){var t=e.teardown;if(t!==null){const n=se,r=v;ut(!0),$(null);try{t.call(null)}finally{ut(n),$(r)}}}function et(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Qe(()=>{s.abort(W)});var r=n.next;(n.f&X)!==0?n.parent=null:G(n,t),n=r}}function Ln(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&L)===0&&G(t),t=n}}function G(e,t=!0){var n=!1;(t||(e.f&tn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(jn(e.nodes.start,e.nodes.end),n=!0),et(e,t&&!n),ge(e,0),w(e,V);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();Lt(e);var s=e.parent;s!==null&&s.first!==null&&jt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function jn(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function jt(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 Yn(e,t,n=!0){var r=[];Yt(e,r,!0);var s=()=>{n&&G(e),t&&t()},f=r.length;if(f>0){var o=()=>--f||s();for(var l of r)l.out(o)}else s()}function Yt(e,t,n){if((e.f&F)===0){e.f^=F;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 f=s.next,o=(s.f&Se)!==0||(s.f&L)!==0&&(e.f&K)!==0;Yt(s,t,o?n:!1),s=f}}}function as(e){qt(e,!0)}function qt(e,t){if((e.f&F)!==0){e.f^=F,(e.f&y)===0&&(w(e,T),Y(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Se)!==0||(n.f&L)!==0;qt(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const o of f)(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:Z(n);t.append(n),n=s}}let xe=!1,se=!1;function ut(e){se=e}let v=null,M=!1;function $(e){v=e}let d=null;function ve(e){d=e}let C=null;function Ht(e){v!==null&&(C===null?C=[e]:C.push(e))}let x=null,R=0,O=null;function qn(e){O=e}let Vt=1,Q=0,ne=Q;function ct(e){ne=e}function Bt(){return++Vt}function pe(e){var t=e.f;if((t&T)!==0)return!0;if(t&g&&(e.f&=~re),(t&P)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var f=n[s];if(pe(f)&&Rt(f),f.wv>e.wv)return!0}(t&k)!==0&&I===null&&w(e,y)}return!1}function Ut(e,t,n=!0){var r=e.reactions;if(r!==null&&!(C!==null&&oe.call(C,e)))for(var s=0;s<r.length;s++){var f=r[s];(f.f&g)!==0?Ut(f,t,!1):t===f&&(n?w(f,T):(f.f&y)!==0&&w(f,P),Y(f))}}function zt(e){var t=x,n=R,r=O,s=v,f=C,o=h,l=M,i=ne,a=e.f;x=null,R=0,O=null,v=(a&(L|X))===0?e:null,C=null,Re(e.ctx),M=!1,ne=++Q,e.ac!==null&&(Qe(()=>{e.ac.abort(W)}),e.ac=null);try{e.f|=Le;var u=e.fn,c=u();e.f|=de;var _=e.deps,m=b?.is_fork;if(x!==null){var p;if(m||ge(e,R),_!==null&&R>0)for(_.length=R+x.length,p=0;p<x.length;p++)_[R+p]=x[p];else e.deps=_=x;if(Mt()&&(e.f&k)!==0)for(p=R;p<_.length;p++)(_[p].reactions??=[]).push(e)}else!m&&_!==null&&R<_.length&&(ge(e,R),_.length=R);if(Te()&&O!==null&&!M&&_!==null&&(e.f&(g|P|T))===0)for(p=0;p<O.length;p++)Ut(O[p],e);if(s!==null&&s!==e){if(Q++,s.deps!==null)for(let D=0;D<n;D+=1)s.deps[D].rv=Q;if(t!==null)for(const D of t)D.rv=Q;O!==null&&(r===null?r=O:r.push(...O))}return(e.f&B)!==0&&(e.f^=B),c}catch(D){return bn(D)}finally{e.f^=Le,x=t,R=n,O=r,v=s,C=f,Re(o),M=l,ne=i}}function Hn(e,t){let n=t.reactions;if(n!==null){var r=Xt.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&g)!==0&&(x===null||!oe.call(x,t))){var f=t;(f.f&k)!==0&&(f.f^=k,f.f&=~re),Ke(f),Rn(f),ge(f,0)}}function ge(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Hn(e,n[r])}function fe(e){var t=e.f;if((t&V)===0){w(e,y);var n=d,r=xe;d=e,xe=!0;try{(t&(K|Be))!==0?Ln(e):et(e),Lt(e);var s=zt(e);e.teardown=typeof s=="function"?s:null,e.wv=Vt;var f}finally{xe=r,d=n}}}async function os(){await Promise.resolve(),En()}function us(){return ae.ensure().settled()}function ee(e){var t=e.f,n=(t&g)!==0;if(v!==null&&!M){var r=d!==null&&(d.f&V)!==0;if(!r&&(C===null||!oe.call(C,e))){var s=v.deps;if((v.f&Le)!==0)e.rv<Q&&(e.rv=Q,x===null&&s!==null&&s[R]===e?R++:x===null?x=[e]:x.push(e));else{(v.deps??=[]).push(e);var f=e.reactions;f===null?e.reactions=[v]:oe.call(f,v)||f.push(v)}}}if(se&&U.has(e))return U.get(e);if(n){var o=e;if(se){var l=o.v;return((o.f&y)===0&&o.reactions!==null||$t(o))&&(l=Ze(o)),U.set(o,l),l}var i=(o.f&k)===0&&!M&&v!==null&&(xe||(v.f&k)!==0),a=(o.f&de)===0;pe(o)&&(i&&(o.f|=k),Rt(o)),i&&!a&&(Nt(o),Gt(o))}if(I?.has(e))return I.get(e);if((e.f&B)!==0)throw e.v;return e.v}function Gt(e){if(e.f|=k,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&g)!==0&&(t.f&k)===0&&(Nt(t),Gt(t))}function $t(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(U.has(t)||(t.f&g)!==0&&$t(t))return!0;return!1}function Me(e){var t=M;try{return M=!0,e()}finally{M=t}}function cs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(te in e)Ve(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&te in n&&Ve(n)}}}function Ve(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{Ve(e[r],t)}catch{}const n=_t(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Zt(n);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}function Vn(e,t,n){if(e==null)return t(void 0),ye;const r=Me(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const le=[];function _s(e,t=ye){let n=null;const r=new Set;function s(l){if(bt(e,l)&&(e=l,n)){const i=!le.length;for(const a of r)a[1](),le.push(a,e);if(i){for(let a=0;a<le.length;a+=2)le[a][0](le[a+1]);le.length=0}}}function f(l){s(l(e))}function o(l,i=ye){const a=[l,i];return r.add(a),r.size===1&&(n=t(s,f)||ye),l(e),()=>{r.delete(a),r.size===0&&n&&(n(),n=null)}}return{set:s,update:f,subscribe:o}}function vs(e){let t;return Vn(e,n=>t=n)(),t}function Bn(e){h===null&&ze(),me&&h.l!==null?Un(h).m.push(e):Pn(()=>{const t=Me(e);if(typeof t=="function")return t})}function ds(e){h===null&&ze(),Bn(()=>()=>Me(e))}function Un(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{he as $,b as A,Zn as B,ht as C,is as D,lr as E,nr as F,zr as G,_n as H,An as I,Kt as J,zn as K,ir as L,ur as M,We as N,ar as O,as as P,Yn as Q,F as R,je as S,L as T,or as U,Cn as V,G as W,Z as X,Se as Y,cn as Z,tn as _,ts as a,wr as a$,Br as a0,Cr as a1,Pn as a2,Ur as a3,Lr as a4,h as a5,Zr as a6,Me as a7,Kn as a8,Qt as a9,Qr as aA,Ft as aB,En as aC,Bn as aD,os as aE,ds as aF,fs as aG,mr as aH,qr as aI,xt as aJ,dn as aK,_t as aL,gr as aM,Zt as aN,er as aO,$r as aP,E as aQ,Dn as aR,Jn as aS,Wt as aT,Xr as aU,ft as aV,Dr as aW,Ir as aX,Mt as aY,Fe as aZ,en as a_,Xe as aa,kr as ab,rs as ac,On as ad,ye as ae,Vn as af,vs as ag,Mn as ah,Gn as ai,we as aj,sr as ak,vr as al,se as am,d as an,V as ao,dr as ap,me as aq,_r as ar,cr as as,$n as at,te as au,Wn as av,hr as aw,Yr as ax,ve as ay,ls as az,Fr as b,ae as b0,w as b1,T as b2,Y as b3,P as b4,yn as b5,$ as b6,Re as b7,bn as b8,v as b9,Wr as bA,_s as bB,us as bC,Ne as ba,fr as bb,Tr as bc,Qe as bd,Gr as be,kn as bf,pr as bg,br as bh,Ce as bi,Je as bj,de as bk,Hr as bl,Ge as bm,rr as bn,Jr as bo,$e as bp,tr as bq,yr as br,Kr as bs,Xn as bt,jn as bu,Er as bv,lt as bw,Te as bx,ne as by,Mr as bz,Vr as c,cs as d,q as e,be as f,ee as g,Oe as h,ss as i,z as j,ce as k,es as l,jr as m,Rr as n,ke as o,Pr as p,xr as q,Sr as r,H as s,ns as t,Or as u,Nr as v,Ar as w,S as x,vn as y,He as z};
1
+ var Kt=Array.isArray,Xt=Array.prototype.indexOf,oe=Array.prototype.includes,zn=Array.from,Gn=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Zt=Object.getOwnPropertyDescriptors,Wt=Object.prototype,Jt=Array.prototype,_t=Object.getPrototypeOf,rt=Object.isExtensible;function $n(e){return typeof e=="function"}const ye=()=>{};function Kn(e){return e()}function Qt(e){for(var t=0;t<e.length;t++)e[t]()}function vt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Xn(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 g=2,ie=4,ue=8,Be=1<<24,K=16,L=32,X=64,en=128,k=512,y=1024,T=2048,P=4096,F=8192,V=16384,de=32768,Se=65536,st=1<<17,tn=1<<18,he=1<<19,dt=1<<20,Zn=1<<25,re=65536,Le=1<<21,Ue=1<<22,B=1<<23,te=Symbol("$state"),Wn=Symbol("legacy props"),Jn=Symbol(""),W=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},er=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),tr=1,Ce=3,ht=8;function ze(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function nn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function nr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function rn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function sn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function fn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function an(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function rr(){throw new Error("https://svelte.dev/e/hydration_failed")}function sr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ln(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function on(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function un(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function fr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const ir=1,ar=2,lr=4,or=8,ur=16,cr=1,_r=2,vr=4,dr=8,hr=16,pr=1,br=2,cn="[",_n="[!",wr="[?",vn="]",Ge={},E=Symbol(),dn="http://www.w3.org/1999/xhtml",yr="http://www.w3.org/2000/svg",Er="http://www.w3.org/1998/Math/MathML",gr="@attach";function $e(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function mr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Tr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let z=!1;function Ar(e){z=e}let S;function ce(e){if(e===null)throw $e(),Ge;return S=e}function xr(){return ce(Z(S))}function Sr(e){if(z){if(Z(S)!==null)throw $e(),Ge;S=e}}function Rr(e=1){if(z){for(var t=e,n=S;t--;)n=Z(n);S=n}}function Nr(e=!0){for(var t=0,n=S;;){if(n.nodeType===ht){var r=n.data;if(r===vn){if(t===0)return n;t-=1}else(r===cn||r===_n||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=Z(n);e&&n.remove(),n=s}}function Or(e){if(!e||e.nodeType!==ht)throw $e(),Ge;return e.data}function pt(e){return e===this.v}function bt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function wt(e){return!bt(e,this.v)}let me=!1;function kr(){me=!0}let h=null;function Re(e){h=e}function Cr(e){return De().get(e)}function Dr(e,t){return De().set(e,t),t}function Ir(e){return De().has(e)}function Mr(){return De()}function Pr(e,t=!1,n){h={p:h,i:!1,c:null,e:null,s:e,x:null,l:me&&!t?{s:null,u:null,$:[]}:null}}function Fr(e){var t=h,n=t.e;if(n!==null){t.e=null;for(var r of n)Pt(r)}return e!==void 0&&(t.x=e),t.i=!0,h=t.p,e??{}}function Te(){return!me||h!==null&&h.l===null}function De(e){return h===null&&ze(),h.c??=new Map(hn(h)||void 0)}function hn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let J=[];function yt(){var e=J;J=[],Qt(e)}function je(e){if(J.length===0&&!Ee){var t=J;queueMicrotask(()=>{t===J&&yt()})}J.push(e)}function pn(){for(;J.length>0;)yt()}function bn(e){var t=d;if(t===null)return v.f|=B,e;if((t.f&de)===0&&(t.f&ie)===0)throw e;Ne(e,t)}function Ne(e,t){for(;t!==null;){if((t.f&en)!==0){if((t.f&de)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const wn=-7169;function w(e,t){e.f=e.f&wn|t}function Ke(e){(e.f&k)!==0||e.deps===null?w(e,y):w(e,P)}function Et(e){if(e!==null)for(const t of e)(t.f&g)===0||(t.f&re)===0||(t.f^=re,Et(t.deps))}function yn(e,t,n){(e.f&T)!==0?t.add(e):(e.f&P)!==0&&n.add(e),Et(e.deps),w(e,y)}const Ae=new Set;let b=null,ft=null,I=null,A=[],Ie=null,Ee=!1,_e=null;class ae{current=new Map;previous=new Map;#t=new Set;#s=new Set;#r=0;#f=0;#i=null;#a=new Set;#n=new Set;#e=new Map;is_fork=!1;#l=!1;#o(){return this.is_fork||this.#f>0}skip_effect(t){this.#e.has(t)||this.#e.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#e.get(t);if(n){this.#e.delete(t);for(var r of n.d)w(r,T),Y(r);for(r of n.m)w(r,P),Y(r)}}process(t){A=[],this.apply();var n=_e=[],r=[];for(const s of t)this.#u(s,n,r);if(_e=null,this.#o()){this.#c(r),this.#c(n);for(const[s,f]of this.#e)At(s,f)}else{ft=this,b=null;for(const s of this.#t)s(this);this.#t.clear(),this.#r===0&&this.#_(),it(r),it(n),this.#a.clear(),this.#n.clear(),ft=null,this.#i?.resolve()}I=null}#u(t,n,r){t.f^=y;for(var s=t.first;s!==null;){var f=s.f,o=(f&(L|X))!==0,l=o&&(f&y)!==0,i=l||(f&F)!==0||this.#e.has(s);if(!i&&s.fn!==null){o?s.f^=y:(f&ie)!==0?n.push(s):pe(s)&&((f&K)!==0&&this.#n.add(s),fe(s));var a=s.first;if(a!==null){s=a;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)yn(t[n],this.#a,this.#n)}capture(t,n){n!==E&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&B)===0&&(this.current.set(t,t.v),I?.set(t,t.v))}activate(){b=this,this.apply()}deactivate(){b===this&&(b=null,I=null)}flush(){if(A.length>0)b=this,gt();else if(this.#r===0&&!this.is_fork){for(const t of this.#t)t(this);this.#t.clear(),this.#_(),this.#i?.resolve()}this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#_(){if(Ae.size>1){this.previous.clear();var t=b,n=I,r=!0;for(const f of Ae){if(f===this){r=!1;continue}const o=[];for(const[i,a]of this.current){if(f.current.has(i))if(r&&a!==f.current.get(i))f.current.set(i,a);else continue;o.push(i)}if(o.length===0)continue;const l=[...f.current.keys()].filter(i=>!this.current.has(i));if(l.length>0){var s=A;A=[];const i=new Set,a=new Map;for(const u of o)mt(u,l,i,a);if(A.length>0){b=f,f.apply();for(const u of A)f.#u(u,[],[]);f.deactivate()}A=s}}b=t,I=n}this.#e.clear(),Ae.delete(this)}increment(t){this.#r+=1,t&&(this.#f+=1)}decrement(t){this.#r-=1,t&&(this.#f-=1),!this.#l&&(this.#l=!0,je(()=>{this.#l=!1,this.#o()?A.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#a)this.#n.delete(t),w(t,T),Y(t);for(const t of this.#n)w(t,P),Y(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#i??=vt()).promise}static ensure(){if(b===null){const t=b=new ae;Ae.add(b),Ee||je(()=>{b===t&&t.flush()})}return b}apply(){}}function En(e){var t=Ee;Ee=!0;try{for(var n;;){if(pn(),A.length===0&&(b?.flush(),A.length===0))return Ie=null,n;gt()}}finally{Ee=t}}function gt(){var e=null;try{for(var t=0;A.length>0;){var n=ae.ensure();if(t++>1e3){var r,s;gn()}n.process(A),U.clear()}}finally{A=[],Ie=null,_e=null}}function gn(){try{an()}catch(e){Ne(e,Ie)}}let j=null;function it(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|F))===0&&pe(r)&&(j=new Set,fe(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&jt(r),j?.size>0)){U.clear();for(const s of j){if((s.f&(V|F))!==0)continue;const f=[s];let o=s.parent;for(;o!==null;)j.has(o)&&(j.delete(o),f.push(o)),o=o.parent;for(let l=f.length-1;l>=0;l--){const i=f[l];(i.f&(V|F))===0&&fe(i)}}j.clear()}}j=null}}function mt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&g)!==0?mt(s,t,n,r):(f&(Ue|K))!==0&&(f&T)===0&&Tt(s,t,r)&&(w(s,T),Y(s))}}function Tt(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(oe.call(t,s))return!0;if((s.f&g)!==0&&Tt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Y(e){var t=Ie=e,n=t.b;if(n?.is_pending&&(e.f&(ie|ue|Be))!==0&&(e.f&de)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(_e!==null&&t===d&&(e.f&ue)===0)return;if((r&(X|L))!==0){if((r&y)===0)return;t.f^=y}}A.push(t)}function At(e,t){if(!((e.f&L)!==0&&(e.f&y)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&P)!==0&&t.m.push(e),w(e,y);for(var n=e.first;n!==null;)At(n,t),n=n.next}}function xt(e,t,n,r){const s=Te()?Xe:An;var f=e.filter(c=>!c.settled);if(n.length===0&&f.length===0){r(t.map(s));return}var o=d,l=mn(),i=f.length===1?f[0].promise:f.length>1?Promise.all(f.map(c=>c.promise)):null;function a(c){l();try{r(c)}catch(_){(o.f&V)===0&&Ne(_,o)}Ye()}if(n.length===0){i.then(()=>a(t.map(s)));return}function u(){l(),Promise.all(n.map(c=>Tn(c))).then(c=>a([...t.map(s),...c])).catch(c=>Ne(c,o))}i?i.then(u):u()}function mn(){var e=d,t=v,n=h,r=b;return function(f=!0){ve(e),$(t),Re(n),f&&r?.activate()}}function Ye(e=!0){ve(null),$(null),Re(null),e&&b?.deactivate()}function St(){var e=d.b,t=b,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function Xe(e){var t=g|T,n=v!==null&&(v.f&g)!==0?v:null;return d!==null&&(d.f|=he),{ctx:h,deps:null,effects:null,equals:pt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??d,ac:null}}function Tn(e,t,n){d===null&&nn();var s=void 0,f=We(E),o=!v,l=new Map;return Fn(()=>{var i=vt();s=i.promise;try{Promise.resolve(e()).then(i.resolve,i.reject).finally(Ye)}catch(_){i.reject(_),Ye()}var a=b;if(o){var u=St();l.get(a)?.reject(W),l.delete(a),l.set(a,i)}const c=(_,m=void 0)=>{if(a.activate(),m)m!==W&&(f.f|=B,He(f,m));else{(f.f&B)!==0&&(f.f^=B),He(f,_);for(const[p,D]of l){if(l.delete(p),p===a)break;D.reject(W)}}u&&u()};i.promise.then(c,_=>c(null,_||"unknown"))}),Mn(()=>{for(const i of l.values())i.reject(W)}),new Promise(i=>{function a(u){function c(){u===s?i(f):a(s)}u.then(c,c)}a(s)})}function Lr(e){const t=Xe(e);return Ht(t),t}function An(e){const t=Xe(e);return t.equals=wt,t}function xn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)G(t[n])}}function Sn(e){for(var t=e.parent;t!==null;){if((t.f&g)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function Ze(e){var t,n=d;ve(Sn(e));try{e.f&=~re,xn(e),t=zt(e)}finally{ve(n)}return t}function Rt(e){var t=Ze(e);if(!e.equals(t)&&(e.wv=Bt(),(!b?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){w(e,y);return}se||(I!==null?(Mt()||b?.is_fork)&&I.set(e,t):Ke(e))}function Rn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(W),t.teardown=ye,t.ac=null,ge(t,0),et(t))}function Nt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&fe(t)}let qe=new Set;const U=new Map;let Ot=!1;function We(e,t){var n={f:0,v:e,reactions:null,equals:pt,rv:0,wv:0};return n}function q(e,t){const n=We(e);return Ht(n),n}function jr(e,t=!1,n=!0){const r=We(e);return t||(r.equals=wt),me&&n&&h!==null&&h.l!==null&&(h.l.s??=[]).push(r),r}function H(e,t,n=!1){v!==null&&(!M||(v.f&st)!==0)&&Te()&&(v.f&(g|K|Ue|st))!==0&&(C===null||!oe.call(C,e))&&un();let r=n?be(t):t;return He(e,r)}function He(e,t){if(!e.equals(t)){var n=e.v;se?U.set(e,t):U.set(e,n),e.v=t;var r=ae.ensure();if(r.capture(e,n),(e.f&g)!==0){const s=e;(e.f&T)!==0&&Ze(s),Ke(s)}e.wv=Bt(),kt(e,T),Te()&&d!==null&&(d.f&y)!==0&&(d.f&(L|X))===0&&(O===null?qn([e]):O.push(e)),!r.is_fork&&qe.size>0&&!Ot&&Nn()}return t}function Nn(){Ot=!1;for(const e of qe)(e.f&y)!==0&&w(e,P),pe(e)&&fe(e);qe.clear()}function Yr(e,t=1){var n=ee(e),r=t===1?n++:n--;return H(e,n),r}function Fe(e){H(e,e.v+1)}function kt(e,t){var n=e.reactions;if(n!==null)for(var r=Te(),s=n.length,f=0;f<s;f++){var o=n[f],l=o.f;if(!(!r&&o===d)){var i=(l&T)===0;if(i&&w(o,t),(l&g)!==0){var a=o;I?.delete(a),(l&re)===0&&(l&k&&(o.f|=re),kt(a,P))}else i&&((l&K)!==0&&j!==null&&j.add(o),Y(o))}}}function be(e){if(typeof e!="object"||e===null||te in e)return e;const t=_t(e);if(t!==Wt&&t!==Jt)return e;var n=new Map,r=Kt(e),s=q(0),f=ne,o=l=>{if(ne===f)return l();var i=v,a=ne;$(null),ct(f);var u=l();return $(i),ct(a),u};return r&&n.set("length",q(e.length)),new Proxy(e,{defineProperty(l,i,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&ln();var u=n.get(i);return u===void 0?o(()=>{var c=q(a.value);return n.set(i,c),c}):H(u,a.value,!0),!0},deleteProperty(l,i){var a=n.get(i);if(a===void 0){if(i in l){const u=o(()=>q(E));n.set(i,u),Fe(s)}}else H(a,E),Fe(s);return!0},get(l,i,a){if(i===te)return e;var u=n.get(i),c=i in l;if(u===void 0&&(!c||we(l,i)?.writable)&&(u=o(()=>{var m=be(c?l[i]:E),p=q(m);return p}),n.set(i,u)),u!==void 0){var _=ee(u);return _===E?void 0:_}return Reflect.get(l,i,a)},getOwnPropertyDescriptor(l,i){var a=Reflect.getOwnPropertyDescriptor(l,i);if(a&&"value"in a){var u=n.get(i);u&&(a.value=ee(u))}else if(a===void 0){var c=n.get(i),_=c?.v;if(c!==void 0&&_!==E)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return a},has(l,i){if(i===te)return!0;var a=n.get(i),u=a!==void 0&&a.v!==E||Reflect.has(l,i);if(a!==void 0||d!==null&&(!u||we(l,i)?.writable)){a===void 0&&(a=o(()=>{var _=u?be(l[i]):E,m=q(_);return m}),n.set(i,a));var c=ee(a);if(c===E)return!1}return u},set(l,i,a,u){var c=n.get(i),_=i in l;if(r&&i==="length")for(var m=a;m<c.v;m+=1){var p=n.get(m+"");p!==void 0?H(p,E):m in l&&(p=o(()=>q(E)),n.set(m+"",p))}if(c===void 0)(!_||we(l,i)?.writable)&&(c=o(()=>q(void 0)),H(c,be(a)),n.set(i,c));else{_=c.v!==E;var D=o(()=>be(a));H(c,D)}var tt=Reflect.getOwnPropertyDescriptor(l,i);if(tt?.set&&tt.set.call(u,a),!_){if(r&&typeof i=="string"){var nt=n.get("length"),Pe=Number(i);Number.isInteger(Pe)&&Pe>=nt.v&&H(nt,Pe+1)}Fe(s)}return!0},ownKeys(l){ee(s);var i=Reflect.ownKeys(l).filter(c=>{var _=n.get(c);return _===void 0||_.v!==E});for(var[a,u]of n)u.v!==E&&!(a in l)&&i.push(a);return i},setPrototypeOf(){on()}})}function at(e){try{if(e!==null&&typeof e=="object"&&te in e)return e[te]}catch{}return e}function qr(e,t){return Object.is(at(e),at(t))}var lt,On,kn,Ct,Dt;function Hr(){if(lt===void 0){lt=window,On=document,kn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ct=we(t,"firstChild").get,Dt=we(t,"nextSibling").get,rt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),rt(n)&&(n.__t=void 0)}}function Oe(e=""){return document.createTextNode(e)}function ke(e){return Ct.call(e)}function Z(e){return Dt.call(e)}function Vr(e,t){if(!z)return ke(e);var n=ke(S);if(n===null)n=S.appendChild(Oe());else if(t&&n.nodeType!==Ce){var r=Oe();return n?.before(r),ce(r),r}return t&&Je(n),ce(n),n}function Br(e,t=!1){if(!z){var n=ke(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(S?.nodeType!==Ce){var r=Oe();return S?.before(r),ce(r),r}Je(S)}return S}function Ur(e,t=1,n=!1){let r=z?S:e;for(var s;t--;)s=r,r=Z(r);if(!z)return r;if(n){if(r?.nodeType!==Ce){var f=Oe();return r===null?s?.after(f):r.before(f),ce(f),f}Je(r)}return ce(r),r}function Cn(e){e.textContent=""}function zr(){return!1}function Gr(e,t,n){return document.createElementNS(t??dn,e,void 0)}function Je(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ce;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function $r(e,t){if(t){const n=document.body;e.autofocus=!0,je(()=>{document.activeElement===n&&e.focus()})}}function Kr(e){z&&ke(e)!==null&&Cn(e)}let ot=!1;function Dn(){ot||(ot=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Qe(e){var t=v,n=d;$(null),ve(null);try{return e()}finally{$(t),ve(n)}}function Xr(e,t,n,r=n){e.addEventListener(t,()=>Qe(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Dn()}function It(e){d===null&&(v===null&&fn(),sn()),se&&rn()}function In(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function N(e,t){var n=d;n!==null&&(n.f&F)!==0&&(e|=F);var r={ctx:h,deps:null,nodes:null,f:e|T|k,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&ie)!==0)_e!==null?_e.push(r):Y(r);else if(t!==null){try{fe(r)}catch(o){throw G(r),o}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&he)===0&&(s=s.first,(e&K)!==0&&(e&Se)!==0&&s!==null&&(s.f|=Se))}if(s!==null&&(s.parent=n,n!==null&&In(s,n),v!==null&&(v.f&g)!==0&&(e&X)===0)){var f=v;(f.effects??=[]).push(s)}return r}function Mt(){return v!==null&&!M}function Mn(e){const t=N(ue,null);return w(t,y),t.teardown=e,t}function Pn(e){It();var t=d.f,n=!v&&(t&L)!==0&&(t&de)===0;if(n){var r=h;(r.e??=[]).push(e)}else return Pt(e)}function Pt(e){return N(ie|dt,e)}function Zr(e){return It(),N(ue|dt,e)}function Wr(e){ae.ensure();const t=N(X|he,e);return()=>{G(t)}}function Jr(e){ae.ensure();const t=N(X|he,e);return(n={})=>new Promise(r=>{n.outro?Yn(t,()=>{G(t),r(void 0)}):(G(t),r(void 0))})}function Qr(e){return N(ie,e)}function es(e,t){var n=h,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=Ft(()=>{e(),!r.ran&&(r.ran=!0,Me(t))})}function ts(){var e=h;Ft(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&y)!==0&&n.deps!==null&&w(n,P),pe(n)&&fe(n),t.ran=!1}})}function Fn(e){return N(Ue|he,e)}function Ft(e,t=0){return N(ue|t,e)}function ns(e,t=[],n=[],r=[]){xt(r,t,n,s=>{N(ue,()=>e(...s.map(ee)))})}function rs(e,t=[],n=[],r=[]){if(n.length>0||r.length>0)var s=St();xt(r,t,n,f=>{N(ie,()=>e(...f.map(ee))),s&&s()})}function ss(e,t=0){var n=N(K|t,e);return n}function fs(e,t=0){var n=N(Be|t,e);return n}function is(e){return N(L|he,e)}function Lt(e){var t=e.teardown;if(t!==null){const n=se,r=v;ut(!0),$(null);try{t.call(null)}finally{ut(n),$(r)}}}function et(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Qe(()=>{s.abort(W)});var r=n.next;(n.f&X)!==0?n.parent=null:G(n,t),n=r}}function Ln(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&L)===0&&G(t),t=n}}function G(e,t=!0){var n=!1;(t||(e.f&tn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(jn(e.nodes.start,e.nodes.end),n=!0),et(e,t&&!n),ge(e,0),w(e,V);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();Lt(e);var s=e.parent;s!==null&&s.first!==null&&jt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function jn(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function jt(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 Yn(e,t,n=!0){var r=[];Yt(e,r,!0);var s=()=>{n&&G(e),t&&t()},f=r.length;if(f>0){var o=()=>--f||s();for(var l of r)l.out(o)}else s()}function Yt(e,t,n){if((e.f&F)===0){e.f^=F;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 f=s.next,o=(s.f&Se)!==0||(s.f&L)!==0&&(e.f&K)!==0;Yt(s,t,o?n:!1),s=f}}}function as(e){qt(e,!0)}function qt(e,t){if((e.f&F)!==0){e.f^=F,(e.f&y)===0&&(w(e,T),Y(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Se)!==0||(n.f&L)!==0;qt(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const o of f)(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:Z(n);t.append(n),n=s}}let xe=!1,se=!1;function ut(e){se=e}let v=null,M=!1;function $(e){v=e}let d=null;function ve(e){d=e}let C=null;function Ht(e){v!==null&&(C===null?C=[e]:C.push(e))}let x=null,R=0,O=null;function qn(e){O=e}let Vt=1,Q=0,ne=Q;function ct(e){ne=e}function Bt(){return++Vt}function pe(e){var t=e.f;if((t&T)!==0)return!0;if(t&g&&(e.f&=~re),(t&P)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var f=n[s];if(pe(f)&&Rt(f),f.wv>e.wv)return!0}(t&k)!==0&&I===null&&w(e,y)}return!1}function Ut(e,t,n=!0){var r=e.reactions;if(r!==null&&!(C!==null&&oe.call(C,e)))for(var s=0;s<r.length;s++){var f=r[s];(f.f&g)!==0?Ut(f,t,!1):t===f&&(n?w(f,T):(f.f&y)!==0&&w(f,P),Y(f))}}function zt(e){var t=x,n=R,r=O,s=v,f=C,o=h,l=M,i=ne,a=e.f;x=null,R=0,O=null,v=(a&(L|X))===0?e:null,C=null,Re(e.ctx),M=!1,ne=++Q,e.ac!==null&&(Qe(()=>{e.ac.abort(W)}),e.ac=null);try{e.f|=Le;var u=e.fn,c=u();e.f|=de;var _=e.deps,m=b?.is_fork;if(x!==null){var p;if(m||ge(e,R),_!==null&&R>0)for(_.length=R+x.length,p=0;p<x.length;p++)_[R+p]=x[p];else e.deps=_=x;if(Mt()&&(e.f&k)!==0)for(p=R;p<_.length;p++)(_[p].reactions??=[]).push(e)}else!m&&_!==null&&R<_.length&&(ge(e,R),_.length=R);if(Te()&&O!==null&&!M&&_!==null&&(e.f&(g|P|T))===0)for(p=0;p<O.length;p++)Ut(O[p],e);if(s!==null&&s!==e){if(Q++,s.deps!==null)for(let D=0;D<n;D+=1)s.deps[D].rv=Q;if(t!==null)for(const D of t)D.rv=Q;O!==null&&(r===null?r=O:r.push(...O))}return(e.f&B)!==0&&(e.f^=B),c}catch(D){return bn(D)}finally{e.f^=Le,x=t,R=n,O=r,v=s,C=f,Re(o),M=l,ne=i}}function Hn(e,t){let n=t.reactions;if(n!==null){var r=Xt.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&g)!==0&&(x===null||!oe.call(x,t))){var f=t;(f.f&k)!==0&&(f.f^=k,f.f&=~re),Ke(f),Rn(f),ge(f,0)}}function ge(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Hn(e,n[r])}function fe(e){var t=e.f;if((t&V)===0){w(e,y);var n=d,r=xe;d=e,xe=!0;try{(t&(K|Be))!==0?Ln(e):et(e),Lt(e);var s=zt(e);e.teardown=typeof s=="function"?s:null,e.wv=Vt;var f}finally{xe=r,d=n}}}async function os(){await Promise.resolve(),En()}function us(){return ae.ensure().settled()}function ee(e){var t=e.f,n=(t&g)!==0;if(v!==null&&!M){var r=d!==null&&(d.f&V)!==0;if(!r&&(C===null||!oe.call(C,e))){var s=v.deps;if((v.f&Le)!==0)e.rv<Q&&(e.rv=Q,x===null&&s!==null&&s[R]===e?R++:x===null?x=[e]:x.push(e));else{(v.deps??=[]).push(e);var f=e.reactions;f===null?e.reactions=[v]:oe.call(f,v)||f.push(v)}}}if(se&&U.has(e))return U.get(e);if(n){var o=e;if(se){var l=o.v;return((o.f&y)===0&&o.reactions!==null||$t(o))&&(l=Ze(o)),U.set(o,l),l}var i=(o.f&k)===0&&!M&&v!==null&&(xe||(v.f&k)!==0),a=(o.f&de)===0;pe(o)&&(i&&(o.f|=k),Rt(o)),i&&!a&&(Nt(o),Gt(o))}if(I?.has(e))return I.get(e);if((e.f&B)!==0)throw e.v;return e.v}function Gt(e){if(e.f|=k,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&g)!==0&&(t.f&k)===0&&(Nt(t),Gt(t))}function $t(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(U.has(t)||(t.f&g)!==0&&$t(t))return!0;return!1}function Me(e){var t=M;try{return M=!0,e()}finally{M=t}}function cs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(te in e)Ve(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&te in n&&Ve(n)}}}function Ve(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{Ve(e[r],t)}catch{}const n=_t(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Zt(n);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}function Vn(e,t,n){if(e==null)return t(void 0),ye;const r=Me(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const le=[];function _s(e,t=ye){let n=null;const r=new Set;function s(l){if(bt(e,l)&&(e=l,n)){const i=!le.length;for(const a of r)a[1](),le.push(a,e);if(i){for(let a=0;a<le.length;a+=2)le[a][0](le[a+1]);le.length=0}}}function f(l){s(l(e))}function o(l,i=ye){const a=[l,i];return r.add(a),r.size===1&&(n=t(s,f)||ye),l(e),()=>{r.delete(a),r.size===0&&n&&(n(),n=null)}}return{set:s,update:f,subscribe:o}}function vs(e){let t;return Vn(e,n=>t=n)(),t}function Bn(e){h===null&&ze(),me&&h.l!==null?Un(h).m.push(e):Pn(()=>{const t=Me(e);if(typeof t=="function")return t})}function ds(e){h===null&&ze(),Bn(()=>()=>Me(e))}function Un(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{he as $,b as A,Zn as B,ht as C,is as D,lr as E,nr as F,zr as G,_n as H,An as I,Kt as J,zn as K,ir as L,ur as M,We as N,ar as O,as as P,Yn as Q,F as R,je as S,L as T,or as U,Cn as V,G as W,Z as X,Se as Y,cn as Z,tn as _,ts as a,wr as a$,Br as a0,Cr as a1,Pn as a2,Ur as a3,Lr as a4,h as a5,Zr as a6,Me as a7,Kn as a8,Qt as a9,Qr as aA,Ft as aB,En as aC,Bn as aD,os as aE,ds as aF,fs as aG,mr as aH,qr as aI,xt as aJ,dn as aK,_t as aL,gr as aM,Zt as aN,er as aO,$r as aP,E as aQ,Dn as aR,Jn as aS,Wt as aT,Xr as aU,ft as aV,Dr as aW,Ir as aX,Mt as aY,Fe as aZ,en as a_,Xe as aa,kr as ab,rs as ac,On as ad,ye as ae,Vn as af,vs as ag,Mn as ah,Gn as ai,we as aj,sr as ak,vr as al,se as am,d as an,V as ao,dr as ap,me as aq,_r as ar,cr as as,$n as at,te as au,Wn as av,hr as aw,Yr as ax,ve as ay,ls as az,Fr as b,ae as b0,w as b1,T as b2,Y as b3,P as b4,yn as b5,$ as b6,Re as b7,bn as b8,v as b9,Wr as bA,_s as bB,us as bC,Ne as ba,fr as bb,Tr as bc,Qe as bd,Gr as be,kn as bf,pr as bg,br as bh,Ce as bi,Je as bj,de as bk,Hr as bl,Ge as bm,rr as bn,Jr as bo,$e as bp,tr as bq,yr as br,Kr as bs,lt as bt,Xn as bu,jn as bv,Er as bw,Te as bx,ne as by,Mr as bz,Vr as c,cs as d,q as e,be as f,ee as g,Oe as h,ss as i,z as j,ce as k,es as l,jr as m,Rr as n,ke as o,Pr as p,xr as q,Sr as r,H as s,ns as t,Or as u,Nr as v,Ar as w,S as x,vn as y,He as z};
@@ -1 +1 @@
1
- import{e as m,f as w,s as u,g as o,a4 as it}from"./CCA2E2CK.js";import{a as d}from"./BKHfe9E-.js";function at(){return d("/api/workspace")}function st(e){return d("/api/workspace",{method:"PUT",body:JSON.stringify(e)})}function wt(){return d("/api/workspace/mcp-config")}function D(){return d("/api/repos")}function ct(e,i,s,f){return d("/api/repos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,display_name:i||void 0,description:s,...f?{private:!0}:{}})})}function lt(e,i,s){return d(`/api/repos/${encodeURIComponent(e)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i,display_name:s||void 0})})}function ut(e){return d(`/api/repos/${encodeURIComponent(e)}`,{method:"DELETE"})}function dt(){return d("/api/apps")}function pt(e){return d(`/api/repos/${encodeURIComponent(e)}/entities?summary=true`)}function Et(e,i,s){return d(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(s)}`)}function St(e,i,s,f,c){return d(`/api/repos/${encodeURIComponent(e)}/entities`,{method:"POST",body:JSON.stringify({entityType:i,entityId:s,data:f,content:c})})}function bt(e,i,s){return d(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(s)}`,{method:"DELETE"})}function It(e,i,s,f){return d(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(s)}`,{method:"PUT",body:JSON.stringify(f)})}function Tt(e,i,s,f){return d(`/api/repos/${encodeURIComponent(e)}/change-type`,{method:"POST",body:JSON.stringify({entityType:i,entityId:s,newType:f})})}function $t(e,i,s,f,c){return d(`/api/repos/${encodeURIComponent(e)}/transfer`,{method:"POST",body:JSON.stringify({entityType:i,entityId:s,targetRepo:f,mode:c})})}function kt(){return d("/api/insights")}function vt(){return d("/api/insights/generate",{method:"POST"})}function Ut(){return d("/api/preferences")}function Pt(e){return d("/api/preferences",{method:"PUT",body:JSON.stringify(e)})}function Rt(){return d("/api/views")}function At(e,i,s){return d("/api/views",{method:"POST",body:JSON.stringify({name:e,viewType:s??"list",config:i})})}function Lt(e,i){return d(`/api/views/${e}`,{method:"PUT",body:JSON.stringify(i)})}function Ot(e){return d(`/api/views/${e}`,{method:"DELETE"})}function Mt(e){return d(`/api/repos/${encodeURIComponent(e)}/commit`,{method:"POST"})}function ft(e){return e.replace(/-/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function _(e,i){return i||e.split("-").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" ")}const mt="#e05050";function v(e){if(typeof document>"u")return;const i=e||mt,s=parseInt(i.slice(1,3),16),f=parseInt(i.slice(3,5),16),c=parseInt(i.slice(5,7),16),E=[document.documentElement,document.querySelector("[data-theme]")].filter(Boolean);for(const h of E)h.style.setProperty("--color-accent",i),h.style.setProperty("--color-accent-hover",yt(i,15)),h.style.setProperty("--color-accent-muted",`rgba(${s}, ${f}, ${c}, 0.08)`),h.style.setProperty("--color-link",j(i,15)),h.style.setProperty("--color-badge-bg",`rgba(${s}, ${f}, ${c}, 0.1)`),h.style.setProperty("--color-badge-text",j(i,20))}function yt(e,i){const s=Math.max(0,Math.round(parseInt(e.slice(1,3),16)*(1-i/100))),f=Math.max(0,Math.round(parseInt(e.slice(3,5),16)*(1-i/100))),c=Math.max(0,Math.round(parseInt(e.slice(5,7),16)*(1-i/100)));return`#${s.toString(16).padStart(2,"0")}${f.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`}function j(e,i){const s=Math.min(255,Math.round(parseInt(e.slice(1,3),16)+(255-parseInt(e.slice(1,3),16))*i/100)),f=Math.min(255,Math.round(parseInt(e.slice(3,5),16)+(255-parseInt(e.slice(3,5),16))*i/100)),c=Math.min(255,Math.round(parseInt(e.slice(5,7),16)+(255-parseInt(e.slice(5,7),16))*i/100));return`#${s.toString(16).padStart(2,"0")}${f.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`}function gt(){let e=m(""),i=m(null),s=m(null),f=m(!1),c=m(w([]));const E={};let h=m(w([])),U=m(!1),P=m(null),g=m(w({})),R=w({}),A=w({}),T=w({}),F=m(0),x=m(null),C=m(""),$=null,S=m(0),b=m(0),J=m("alpha");async function W(){u(U,!0),u(P,null),u(S,0),u(b,0);try{const[t,n,r]=await Promise.all([D(),dt().catch(()=>[]),at().catch(()=>({name:""}))]);u(h,n,!0),u(e,r.name,!0),u(i,r.about??null,!0),u(s,r.accent_color??null,!0),u(f,!0),v(o(s)),u(c,t.map(a=>({name:a.name,displayName:_(a.name,a.display_name),type:a.type,private:a.private,sync:a.sync,count:null,entities:[],loading:!1,loaded:!1})),!0),await Promise.all(o(c).map(a=>I(a.name)))}catch(t){u(P,t.message,!0)}finally{u(U,!1)}}function V(t,n,r){const a=o(c).find(l=>l.name===t);a&&(a.entities=a.entities.filter(l=>!(l.id===r&&l.entityType===n)),a.count=a.entities.length)}async function Q(t){o(c).find(r=>r.name===t)&&await I(t,!0)}async function B(){u(S,0),u(b,0),await Promise.all(o(c).map(t=>I(t.name,!0)))}async function I(t,n=!1){const r=o(c).find(l=>l.name===t);if(!r||r.loading||!n&&r.loaded)return;const a=(E[t]??0)+1;E[t]=a,n||(r.loading=!0);try{const l=await pt(t);if(E[t]!==a)return;let y=0,L=0;for(const p of l)y+=p.document?.wikilinks?.length??0,L+=p.subContentCount??0;u(S,o(S)+y),u(b,o(b)+L);const O=new Set(["name","created_at","updated_at"]);r.entities=l.filter(p=>!p.id.toLowerCase().startsWith("readme")).map(p=>({id:p.id,title:p.data?.name??ft(p.id),entityType:p.entityType,repo:t,hasSubContent:!!p.hasSubContent,wikilinks:p.document?.wikilinks??[],createdAt:p.data?.created_at??null,updatedAt:p.data?.updated_at??null,fields:Object.fromEntries(Object.entries(p.data??{}).filter(([M])=>!O.has(M))),status:p.data?.status??void 0,priority:p.data?.priority??void 0,assignee:p.data?.assignee??void 0,dueDate:p.data?.due_date??void 0})).sort((p,M)=>p.title.localeCompare(M.title)),r.count=r.entities.length,r.loaded=!0}catch(l){console.error(`Failed to load entities for ${t}:`,l)}finally{r.loading=!1}}function K(t){o(g)[t]=!o(g)[t]}function q(t){return o(g)[t]??!1}function k(t,n,r){return`${t}/${n}/${r}`}function H(t,n,r){const a=k(t,n,r),l=R[a]??!1;R[a]=!l,!l&&!A[a]?.loaded&&z(t,n,r)}function N(t,n,r){return R[k(t,n,r)]??!1}function Y(t,n,r){return A[k(t,n,r)]??{entries:[],loading:!1,loaded:!1}}async function z(t,n,r){const a=k(t,n,r);A[a]={entries:[],loading:!1,loaded:!0}}function G(t){const n=o(C).trim().toLowerCase();if(!n)return t;const r=[];for(const a of t){const l=a.entities.filter(y=>y.title.toLowerCase().includes(n)||y.id.toLowerCase().includes(n));l.length>0&&r.push({...a,entities:l,count:l.length})}return r}function X(t){if(t&&!o(C)?$={...o(g)}:!t&&o(C)&&$&&(u(g,$,!0),$=null),u(C,t,!0),t){const n=t.trim().toLowerCase();for(const r of o(c)){const a=r.entities.some(l=>l.title.toLowerCase().includes(n)||l.id.toLowerCase().includes(n));o(g)[r.name]=a}}}function Z(t){const n=t.startsWith("type:");T[t]=!(T[t]??n)}function tt(t){return T[t]??!1}function et(t){return T[t]===!1}const nt=it(()=>o(c).reduce((t,n)=>t+(n.count??0),0));function ot(t){return o(h).find(n=>n.entityTypes.includes(t))}function rt(t){v(t||o(s))}return{get name(){return o(e)},get about(){return o(i)},get accentColor(){return o(s)},get nameLoaded(){return o(f)},async updateWorkspace(t){t.accent_color!==void 0&&(u(s,t.accent_color,!0),v(t.accent_color)),await st(t),t.name?.trim()&&u(e,t.name.trim(),!0),typeof t.about=="string"&&u(i,t.about,!0)},get repos(){return o(c)},get apps(){return o(h)},get loading(){return o(U)},get error(){return o(P)},get totalEntities(){return o(nt)},get totalLinks(){return o(S)},get totalFiles(){return o(b)},get hasTasks(){return o(c).some(t=>t.entities.some(n=>n.entityType==="task"))},get sortedRepos(){const t=[...o(c)].sort((n,r)=>n.name.localeCompare(r.name));return G(t)},get filteredIds(){const t=o(C).trim().toLowerCase();if(!t)return null;const n=new Set;for(const r of o(c))for(const a of r.entities)(a.title.toLowerCase().includes(t)||a.id.toLowerCase().includes(t))&&n.add(a.id);return n},get filterQuery(){return o(C)},setFilterQuery:X,get sortMode(){return o(J)},set sortMode(t){u(J,t,!0)},get recentEntities(){const t=o(C).trim().toLowerCase();let n=[];for(const r of o(c))for(const a of r.entities)t&&!a.title.toLowerCase().includes(t)&&!a.id.toLowerCase().includes(t)||n.push(a);return n.sort((r,a)=>{const l=r.updatedAt??"";return(a.updatedAt??"").localeCompare(l)})},get sidebarScrollTop(){return o(F)},set sidebarScrollTop(t){u(F,t,!0)},get lastAutoExpandedFor(){return o(x)},set lastAutoExpandedFor(t){u(x,t,!0)},load:W,loadEntities:I,removeEntity:V,refreshEntities:Q,refreshAll:B,toggleRepo:K,isExpanded:q,toggleEntity:H,isEntityExpanded:N,getEntityContents:Y,toggleFolder:Z,isFolderExpanded:tt,isFolderCollapsed:et,applyUserAccentColor:rt,applyAccentColor:v,getAppForEntityType:ot,async renameCollectionTo(t,n,r){await lt(t,n,r);const a=o(c).find(l=>l.name===t);a&&(a.name=n,a.displayName=r||_(n),o(g)[t]&&(o(g)[n]=!0,delete o(g)[t]))},async removeCollection(t){await ut(t),u(c,o(c).filter(n=>n.name!==t),!0),delete o(g)[t]},async addCollection(t,n,r,a){await ct(t,n,r,a);const l=await D();u(c,l.map(y=>o(c).find(O=>O.name===y.name)??{name:y.name,displayName:_(y.name,y.display_name),type:y.type,private:y.private,count:null,entities:[],loading:!1,loaded:!1}),!0),o(g)[t]=!0,await I(t)}}}const _t=gt();export{Mt as a,kt as b,At as c,Ot as d,Ut as e,Rt as f,vt as g,Et as h,It as i,wt as j,bt as k,St as l,Tt as m,Pt as s,$t as t,Lt as u,_t as w};
1
+ import{e as m,f as w,s as u,g as o,a4 as it}from"./BenpwI6m.js";import{a as d}from"./CieeblIr.js";function at(){return d("/api/workspace")}function st(e){return d("/api/workspace",{method:"PUT",body:JSON.stringify(e)})}function wt(){return d("/api/workspace/mcp-config")}function D(){return d("/api/repos")}function ct(e,i,s,f){return d("/api/repos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,display_name:i||void 0,description:s,...f?{private:!0}:{}})})}function lt(e,i,s){return d(`/api/repos/${encodeURIComponent(e)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i,display_name:s||void 0})})}function ut(e){return d(`/api/repos/${encodeURIComponent(e)}`,{method:"DELETE"})}function dt(){return d("/api/apps")}function pt(e){return d(`/api/repos/${encodeURIComponent(e)}/entities?summary=true`)}function Et(e,i,s){return d(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(s)}`)}function St(e,i,s,f,c){return d(`/api/repos/${encodeURIComponent(e)}/entities`,{method:"POST",body:JSON.stringify({entityType:i,entityId:s,data:f,content:c})})}function bt(e,i,s){return d(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(s)}`,{method:"DELETE"})}function It(e,i,s,f){return d(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(s)}`,{method:"PUT",body:JSON.stringify(f)})}function Tt(e,i,s,f){return d(`/api/repos/${encodeURIComponent(e)}/change-type`,{method:"POST",body:JSON.stringify({entityType:i,entityId:s,newType:f})})}function $t(e,i,s,f,c){return d(`/api/repos/${encodeURIComponent(e)}/transfer`,{method:"POST",body:JSON.stringify({entityType:i,entityId:s,targetRepo:f,mode:c})})}function kt(){return d("/api/insights")}function vt(){return d("/api/insights/generate",{method:"POST"})}function Ut(){return d("/api/preferences")}function Pt(e){return d("/api/preferences",{method:"PUT",body:JSON.stringify(e)})}function Rt(){return d("/api/views")}function At(e,i,s){return d("/api/views",{method:"POST",body:JSON.stringify({name:e,viewType:s??"list",config:i})})}function Lt(e,i){return d(`/api/views/${e}`,{method:"PUT",body:JSON.stringify(i)})}function Ot(e){return d(`/api/views/${e}`,{method:"DELETE"})}function Mt(e){return d(`/api/repos/${encodeURIComponent(e)}/commit`,{method:"POST"})}function ft(e){return e.replace(/-/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function _(e,i){return i||e.split("-").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" ")}const mt="#e05050";function v(e){if(typeof document>"u")return;const i=e||mt,s=parseInt(i.slice(1,3),16),f=parseInt(i.slice(3,5),16),c=parseInt(i.slice(5,7),16),E=[document.documentElement,document.querySelector("[data-theme]")].filter(Boolean);for(const h of E)h.style.setProperty("--color-accent",i),h.style.setProperty("--color-accent-hover",yt(i,15)),h.style.setProperty("--color-accent-muted",`rgba(${s}, ${f}, ${c}, 0.08)`),h.style.setProperty("--color-link",j(i,15)),h.style.setProperty("--color-badge-bg",`rgba(${s}, ${f}, ${c}, 0.1)`),h.style.setProperty("--color-badge-text",j(i,20))}function yt(e,i){const s=Math.max(0,Math.round(parseInt(e.slice(1,3),16)*(1-i/100))),f=Math.max(0,Math.round(parseInt(e.slice(3,5),16)*(1-i/100))),c=Math.max(0,Math.round(parseInt(e.slice(5,7),16)*(1-i/100)));return`#${s.toString(16).padStart(2,"0")}${f.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`}function j(e,i){const s=Math.min(255,Math.round(parseInt(e.slice(1,3),16)+(255-parseInt(e.slice(1,3),16))*i/100)),f=Math.min(255,Math.round(parseInt(e.slice(3,5),16)+(255-parseInt(e.slice(3,5),16))*i/100)),c=Math.min(255,Math.round(parseInt(e.slice(5,7),16)+(255-parseInt(e.slice(5,7),16))*i/100));return`#${s.toString(16).padStart(2,"0")}${f.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`}function gt(){let e=m(""),i=m(null),s=m(null),f=m(!1),c=m(w([]));const E={};let h=m(w([])),U=m(!1),P=m(null),g=m(w({})),R=w({}),A=w({}),T=w({}),F=m(0),x=m(null),C=m(""),$=null,S=m(0),b=m(0),J=m("alpha");async function W(){u(U,!0),u(P,null),u(S,0),u(b,0);try{const[t,n,r]=await Promise.all([D(),dt().catch(()=>[]),at().catch(()=>({name:""}))]);u(h,n,!0),u(e,r.name,!0),u(i,r.about??null,!0),u(s,r.accent_color??null,!0),u(f,!0),v(o(s)),u(c,t.map(a=>({name:a.name,displayName:_(a.name,a.display_name),type:a.type,private:a.private,sync:a.sync,count:null,entities:[],loading:!1,loaded:!1})),!0),await Promise.all(o(c).map(a=>I(a.name)))}catch(t){u(P,t.message,!0)}finally{u(U,!1)}}function V(t,n,r){const a=o(c).find(l=>l.name===t);a&&(a.entities=a.entities.filter(l=>!(l.id===r&&l.entityType===n)),a.count=a.entities.length)}async function Q(t){o(c).find(r=>r.name===t)&&await I(t,!0)}async function B(){u(S,0),u(b,0),await Promise.all(o(c).map(t=>I(t.name,!0)))}async function I(t,n=!1){const r=o(c).find(l=>l.name===t);if(!r||r.loading||!n&&r.loaded)return;const a=(E[t]??0)+1;E[t]=a,n||(r.loading=!0);try{const l=await pt(t);if(E[t]!==a)return;let y=0,L=0;for(const p of l)y+=p.document?.wikilinks?.length??0,L+=p.subContentCount??0;u(S,o(S)+y),u(b,o(b)+L);const O=new Set(["name","created_at","updated_at"]);r.entities=l.filter(p=>!p.id.toLowerCase().startsWith("readme")).map(p=>({id:p.id,title:p.data?.name??ft(p.id),entityType:p.entityType,repo:t,hasSubContent:!!p.hasSubContent,wikilinks:p.document?.wikilinks??[],createdAt:p.data?.created_at??null,updatedAt:p.data?.updated_at??null,fields:Object.fromEntries(Object.entries(p.data??{}).filter(([M])=>!O.has(M))),status:p.data?.status??void 0,priority:p.data?.priority??void 0,assignee:p.data?.assignee??void 0,dueDate:p.data?.due_date??void 0})).sort((p,M)=>p.title.localeCompare(M.title)),r.count=r.entities.length,r.loaded=!0}catch(l){console.error(`Failed to load entities for ${t}:`,l)}finally{r.loading=!1}}function K(t){o(g)[t]=!o(g)[t]}function q(t){return o(g)[t]??!1}function k(t,n,r){return`${t}/${n}/${r}`}function H(t,n,r){const a=k(t,n,r),l=R[a]??!1;R[a]=!l,!l&&!A[a]?.loaded&&z(t,n,r)}function N(t,n,r){return R[k(t,n,r)]??!1}function Y(t,n,r){return A[k(t,n,r)]??{entries:[],loading:!1,loaded:!1}}async function z(t,n,r){const a=k(t,n,r);A[a]={entries:[],loading:!1,loaded:!0}}function G(t){const n=o(C).trim().toLowerCase();if(!n)return t;const r=[];for(const a of t){const l=a.entities.filter(y=>y.title.toLowerCase().includes(n)||y.id.toLowerCase().includes(n));l.length>0&&r.push({...a,entities:l,count:l.length})}return r}function X(t){if(t&&!o(C)?$={...o(g)}:!t&&o(C)&&$&&(u(g,$,!0),$=null),u(C,t,!0),t){const n=t.trim().toLowerCase();for(const r of o(c)){const a=r.entities.some(l=>l.title.toLowerCase().includes(n)||l.id.toLowerCase().includes(n));o(g)[r.name]=a}}}function Z(t){const n=t.startsWith("type:");T[t]=!(T[t]??n)}function tt(t){return T[t]??!1}function et(t){return T[t]===!1}const nt=it(()=>o(c).reduce((t,n)=>t+(n.count??0),0));function ot(t){return o(h).find(n=>n.entityTypes.includes(t))}function rt(t){v(t||o(s))}return{get name(){return o(e)},get about(){return o(i)},get accentColor(){return o(s)},get nameLoaded(){return o(f)},async updateWorkspace(t){t.accent_color!==void 0&&(u(s,t.accent_color,!0),v(t.accent_color)),await st(t),t.name?.trim()&&u(e,t.name.trim(),!0),typeof t.about=="string"&&u(i,t.about,!0)},get repos(){return o(c)},get apps(){return o(h)},get loading(){return o(U)},get error(){return o(P)},get totalEntities(){return o(nt)},get totalLinks(){return o(S)},get totalFiles(){return o(b)},get hasTasks(){return o(c).some(t=>t.entities.some(n=>n.entityType==="task"))},get sortedRepos(){const t=[...o(c)].sort((n,r)=>n.name.localeCompare(r.name));return G(t)},get filteredIds(){const t=o(C).trim().toLowerCase();if(!t)return null;const n=new Set;for(const r of o(c))for(const a of r.entities)(a.title.toLowerCase().includes(t)||a.id.toLowerCase().includes(t))&&n.add(a.id);return n},get filterQuery(){return o(C)},setFilterQuery:X,get sortMode(){return o(J)},set sortMode(t){u(J,t,!0)},get recentEntities(){const t=o(C).trim().toLowerCase();let n=[];for(const r of o(c))for(const a of r.entities)t&&!a.title.toLowerCase().includes(t)&&!a.id.toLowerCase().includes(t)||n.push(a);return n.sort((r,a)=>{const l=r.updatedAt??"";return(a.updatedAt??"").localeCompare(l)})},get sidebarScrollTop(){return o(F)},set sidebarScrollTop(t){u(F,t,!0)},get lastAutoExpandedFor(){return o(x)},set lastAutoExpandedFor(t){u(x,t,!0)},load:W,loadEntities:I,removeEntity:V,refreshEntities:Q,refreshAll:B,toggleRepo:K,isExpanded:q,toggleEntity:H,isEntityExpanded:N,getEntityContents:Y,toggleFolder:Z,isFolderExpanded:tt,isFolderCollapsed:et,applyUserAccentColor:rt,applyAccentColor:v,getAppForEntityType:ot,async renameCollectionTo(t,n,r){await lt(t,n,r);const a=o(c).find(l=>l.name===t);a&&(a.name=n,a.displayName=r||_(n),o(g)[t]&&(o(g)[n]=!0,delete o(g)[t]))},async removeCollection(t){await ut(t),u(c,o(c).filter(n=>n.name!==t),!0),delete o(g)[t]},async addCollection(t,n,r,a){await ct(t,n,r,a);const l=await D();u(c,l.map(y=>o(c).find(O=>O.name===y.name)??{name:y.name,displayName:_(y.name,y.display_name),type:y.type,private:y.private,count:null,entities:[],loading:!1,loaded:!1}),!0),o(g)[t]=!0,await I(t)}}}const _t=gt();export{Mt as a,kt as b,At as c,Ot as d,Ut as e,Rt as f,vt as g,Et as h,It as i,wt as j,Tt as k,bt as l,St as m,Pt as s,$t as t,Lt as u,_t as w};