rssany 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/.env.example +52 -52
  2. package/README.md +156 -147
  3. package/app/plugins/builtin/email.rssany.js +84 -84
  4. package/app/plugins/builtin/rss.rssany.js +164 -164
  5. package/app/statics/README.md +7 -7
  6. package/app/webui/build/200.html +36 -36
  7. package/app/webui/build/_app/immutable/assets/10.CmGYYZFR.css +1 -0
  8. package/app/webui/build/_app/immutable/assets/11.Dkz3VS_N.css +1 -0
  9. package/app/webui/build/_app/immutable/assets/14.BCCBoMGj.css +1 -0
  10. package/app/webui/build/_app/immutable/assets/6.Cm_jpHOq.css +1 -0
  11. package/app/webui/build/_app/immutable/assets/7.CJ3BjogD.css +1 -0
  12. package/app/webui/build/_app/immutable/assets/9.CATKVZ-n.css +1 -0
  13. package/app/webui/build/_app/immutable/assets/{SourcesList.D5Lso0bo.css → SourcesList.ke66uOSi.css} +1 -1
  14. package/app/webui/build/_app/immutable/assets/chevron-down.CV-KWLNP.css +1 -0
  15. package/app/webui/build/_app/immutable/chunks/{CGCMIfh3.js → 4TuV_psf.js} +1 -1
  16. package/app/webui/build/_app/immutable/chunks/{DAdOEnFb.js → B0czyjwj.js} +1 -1
  17. package/app/webui/build/_app/immutable/chunks/{CFwxUBGi.js → B553hBXT.js} +1 -1
  18. package/app/webui/build/_app/immutable/chunks/B8StT3Do.js +6 -0
  19. package/app/webui/build/_app/immutable/chunks/BI_ale1m.js +1 -0
  20. package/app/webui/build/_app/immutable/chunks/BK0ygNWX.js +2 -0
  21. package/app/webui/build/_app/immutable/chunks/BKm6QCwp.js +1 -0
  22. package/app/webui/build/_app/immutable/chunks/BT6b4LcZ.js +36 -0
  23. package/app/webui/build/_app/immutable/chunks/{Brun6sCr.js → BZY5aksi.js} +2 -2
  24. package/app/webui/build/_app/immutable/chunks/{C8umpVpB.js → BnqaikL8.js} +1 -1
  25. package/app/webui/build/_app/immutable/chunks/BsQ08Wq_.js +1 -0
  26. package/app/webui/build/_app/immutable/chunks/C9wTDiHH.js +1 -0
  27. package/app/webui/build/_app/immutable/chunks/{B-CeeY89.js → CAKuIoAf.js} +1 -1
  28. package/app/webui/build/_app/immutable/chunks/CEWi_rGa.js +1 -0
  29. package/app/webui/build/_app/immutable/chunks/{ChUctqXA.js → Cc7aBSsN.js} +1 -1
  30. package/app/webui/build/_app/immutable/chunks/{BAJAS8BI.js → D8G961Hm.js} +1 -1
  31. package/app/webui/build/_app/immutable/chunks/{CS53ooo0.js → DIeahUKq.js} +1 -1
  32. package/app/webui/build/_app/immutable/chunks/DO5OXNYS.js +1 -0
  33. package/app/webui/build/_app/immutable/chunks/Dg_D3pjF.js +1 -0
  34. package/app/webui/build/_app/immutable/chunks/{Dyvi1wBH.js → DptdhtA1.js} +1 -1
  35. package/app/webui/build/_app/immutable/chunks/{ClknbeNl.js → FDS7fbwH.js} +1 -1
  36. package/app/webui/build/_app/immutable/chunks/{DXDBlEGf.js → GeNMTUn1.js} +1 -1
  37. package/app/webui/build/_app/immutable/chunks/{DCEayuDt.js → IhDlsCxD.js} +1 -1
  38. package/app/webui/build/_app/immutable/chunks/Nd0ktDhd.js +1 -0
  39. package/app/webui/build/_app/immutable/chunks/{D6kzEN_P.js → SvdgnirT.js} +1 -1
  40. package/app/webui/build/_app/immutable/chunks/WW6La7Nt.js +2 -0
  41. package/app/webui/build/_app/immutable/chunks/{DsxvjlCC.js → pd_p3yYy.js} +5 -5
  42. package/app/webui/build/_app/immutable/chunks/rNwPv4DZ.js +1 -0
  43. package/app/webui/build/_app/immutable/entry/app.BKLBG-4w.js +2 -0
  44. package/app/webui/build/_app/immutable/entry/start.D-X6pVtx.js +1 -0
  45. package/app/webui/build/_app/immutable/nodes/{0.CQDkqUeN.js → 0.CJDC_3s9.js} +3 -3
  46. package/app/webui/build/_app/immutable/nodes/1.DsKocFSb.js +1 -0
  47. package/app/webui/build/_app/immutable/nodes/10.BeejAn8z.js +1 -0
  48. package/app/webui/build/_app/immutable/nodes/11.D--uwkk0.js +3 -0
  49. package/app/webui/build/_app/immutable/nodes/12.BLyQ6rUu.js +1 -0
  50. package/app/webui/build/_app/immutable/nodes/13.Cl0WQK13.js +1 -0
  51. package/app/webui/build/_app/immutable/nodes/14.T9l5Rh19.js +1 -0
  52. package/app/webui/build/_app/immutable/nodes/15.DHfwIlBx.js +1 -0
  53. package/app/webui/build/_app/immutable/nodes/{16.p6WfP435.js → 16.BKDfR-KV.js} +2 -2
  54. package/app/webui/build/_app/immutable/nodes/17.DofB8HQB.js +1 -0
  55. package/app/webui/build/_app/immutable/nodes/2.BOYqXdCa.js +1 -0
  56. package/app/webui/build/_app/immutable/nodes/3.B9ucbp_W.js +1 -0
  57. package/app/webui/build/_app/immutable/nodes/5.9zgwFV6I.js +2 -0
  58. package/app/webui/build/_app/immutable/nodes/6.Bs32Ieii.js +2 -0
  59. package/app/webui/build/_app/immutable/nodes/7.Cigxrk0v.js +1 -0
  60. package/app/webui/build/_app/immutable/nodes/8.pG10rCF0.js +1 -0
  61. package/app/webui/build/_app/immutable/nodes/9.Bzqb3xHY.js +1 -0
  62. package/app/webui/build/_app/version.json +1 -1
  63. package/bin/rssany.js +55 -3
  64. package/dist/index.js +314 -96
  65. package/dist/index.js.map +1 -1
  66. package/package.json +107 -103
  67. package/scripts/postinstall.mjs +44 -0
  68. package/scripts/reset.mjs +137 -135
  69. package/scripts/user-dir.mjs +52 -0
  70. package/app/webui/build/_app/immutable/assets/10.Dj8_pmut.css +0 -1
  71. package/app/webui/build/_app/immutable/assets/13.Qu_tY6H9.css +0 -1
  72. package/app/webui/build/_app/immutable/assets/5.B-dPiwB7.css +0 -1
  73. package/app/webui/build/_app/immutable/assets/6.B27N7pdA.css +0 -1
  74. package/app/webui/build/_app/immutable/assets/8.Cgji2b15.css +0 -1
  75. package/app/webui/build/_app/immutable/assets/9.BsCIAvn3.css +0 -1
  76. package/app/webui/build/_app/immutable/chunks/6prdYIKP.js +0 -1
  77. package/app/webui/build/_app/immutable/chunks/B2cyTHdf.js +0 -2
  78. package/app/webui/build/_app/immutable/chunks/B6WG2Sd3.js +0 -1
  79. package/app/webui/build/_app/immutable/chunks/BA4Gucnq.js +0 -1
  80. package/app/webui/build/_app/immutable/chunks/BXTsojX2.js +0 -36
  81. package/app/webui/build/_app/immutable/chunks/BkD3yAYe.js +0 -1
  82. package/app/webui/build/_app/immutable/chunks/C4uF_YIK.js +0 -1
  83. package/app/webui/build/_app/immutable/chunks/CBY2biv-.js +0 -1
  84. package/app/webui/build/_app/immutable/chunks/DAV9bzjw.js +0 -1
  85. package/app/webui/build/_app/immutable/chunks/DL3Q5sfb.js +0 -1
  86. package/app/webui/build/_app/immutable/chunks/DVa8Y-mQ.js +0 -1
  87. package/app/webui/build/_app/immutable/chunks/DoRPmqLn.js +0 -2
  88. package/app/webui/build/_app/immutable/chunks/Dr67pd7v.js +0 -1
  89. package/app/webui/build/_app/immutable/chunks/vtBo8kBV.js +0 -1
  90. package/app/webui/build/_app/immutable/entry/app.dq7-6soi.js +0 -2
  91. package/app/webui/build/_app/immutable/entry/start.BnoTfBrB.js +0 -1
  92. package/app/webui/build/_app/immutable/nodes/1.BUa24rXB.js +0 -1
  93. package/app/webui/build/_app/immutable/nodes/10.MZgVhpGF.js +0 -1
  94. package/app/webui/build/_app/immutable/nodes/11.B39IbrZ0.js +0 -1
  95. package/app/webui/build/_app/immutable/nodes/12.B5B81dLQ.js +0 -1
  96. package/app/webui/build/_app/immutable/nodes/13.DWWcH27k.js +0 -6
  97. package/app/webui/build/_app/immutable/nodes/14.Db6eOPqq.js +0 -1
  98. package/app/webui/build/_app/immutable/nodes/15.B2jiP2VJ.js +0 -1
  99. package/app/webui/build/_app/immutable/nodes/2.AJd2163d.js +0 -1
  100. package/app/webui/build/_app/immutable/nodes/3.BZQeL-vz.js +0 -1
  101. package/app/webui/build/_app/immutable/nodes/4.BT_N8pCh.js +0 -2
  102. package/app/webui/build/_app/immutable/nodes/5.Bo_ftyqW.js +0 -2
  103. package/app/webui/build/_app/immutable/nodes/6.vOowdQUr.js +0 -1
  104. package/app/webui/build/_app/immutable/nodes/7.BfVbBKZu.js +0 -1
  105. package/app/webui/build/_app/immutable/nodes/8.BslYG5f2.js +0 -1
  106. package/app/webui/build/_app/immutable/nodes/9.DAgT-df2.js +0 -1
  107. /package/app/webui/build/_app/immutable/assets/{11.qYZMiTb0.css → 12.qYZMiTb0.css} +0 -0
  108. /package/app/webui/build/_app/immutable/assets/{12.DfJcfUWl.css → 13.DfJcfUWl.css} +0 -0
  109. /package/app/webui/build/_app/immutable/assets/{14.DfMfOrS3.css → 15.DfMfOrS3.css} +0 -0
  110. /package/app/webui/build/_app/immutable/assets/{15.nNGjXhCQ.css → 17.nNGjXhCQ.css} +0 -0
  111. /package/app/webui/build/_app/immutable/assets/{4.Di6rvlY-.css → 5.Di6rvlY-.css} +0 -0
  112. /package/app/webui/build/_app/immutable/assets/{7.CrNxmd8B.css → 8.CrNxmd8B.css} +0 -0
  113. /package/app/webui/build/_app/immutable/nodes/{17.BtYZF6FM.js → 18.BtYZF6FM.js} +0 -0
  114. /package/app/webui/build/_app/immutable/nodes/{18.BIzqhTqv.js → 4.BIzqhTqv.js} +0 -0
@@ -1 +1 @@
1
- var Ht=Object.defineProperty;var Bt=n=>{throw TypeError(n)};var Jt=(n,t,e)=>t in n?Ht(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var l=(n,t,e)=>Jt(n,typeof t!="symbol"?t+"":t,e),Lt=(n,t,e)=>t.has(n)||Bt("Cannot "+e);var r=(n,t,e)=>(Lt(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Bt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e);import{p as pt,c as N,a as f,f as st}from"./CS53ooo0.js";import{b7 as O,i as s,a5 as h,aA as v,at as nt,f as y,au as it,av as ft,aj as at,ax as gt,aw as Mt}from"./vtBo8kBV.js";import{C as Qt,a as Kt,b as u,w as jt,o as Vt,c as Xt,d as vt,S as Yt,E as Zt,e as ut,g as $t,f as mt,s as S,m as D,n as M,F as te,h as ee,D as re,T as oe,i as Tt}from"./DsxvjlCC.js";import{i as x}from"./BkD3yAYe.js";import{d as yt}from"./DoRPmqLn.js";import{p as d,r as bt,s as Ct}from"./BAJAS8BI.js";const se=Xt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),K=new Qt("Dialog.Root | AlertDialog.Root");var U,W,q,G,H,J,L,Q,V,X,Y;const St=class St{constructor(t,e){l(this,"opts");c(this,U,O(null));c(this,W,O(null));c(this,q,O(null));c(this,G,O(null));c(this,H,O(void 0));c(this,J,O(void 0));c(this,L,O(void 0));c(this,Q,O(void 0));c(this,V,O(null));c(this,X,O(0));l(this,"depth");l(this,"parent");l(this,"contentPresence");l(this,"overlayPresence");l(this,"getBitsAttr",t=>se.getAttr(t,this.opts.variant.current));c(this,Y,v(()=>({"data-state":$t(this.opts.open.current)})));this.opts=t,this.parent=e,this.depth=e?e.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Kt({ref:u(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Kt({ref:u(()=>this.overlayNode),open:this.opts.open,enabled:!0}),jt(()=>this.opts.open.current,i=>{this.parent&&(i?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Vt(()=>{var i;this.opts.open.current&&((i=this.parent)==null||i.decrementNested())})}static create(t){const e=K.getOr(null);return K.set(new St(t,e))}get triggerNode(){return s(r(this,U))}set triggerNode(t){h(r(this,U),t,!0)}get contentNode(){return s(r(this,W))}set contentNode(t){h(r(this,W),t,!0)}get overlayNode(){return s(r(this,q))}set overlayNode(t){h(r(this,q),t,!0)}get descriptionNode(){return s(r(this,G))}set descriptionNode(t){h(r(this,G),t,!0)}get contentId(){return s(r(this,H))}set contentId(t){h(r(this,H),t,!0)}get titleId(){return s(r(this,J))}set titleId(t){h(r(this,J),t,!0)}get triggerId(){return s(r(this,L))}set triggerId(t){h(r(this,L),t,!0)}get descriptionId(){return s(r(this,Q))}set descriptionId(t){h(r(this,Q),t,!0)}get cancelNode(){return s(r(this,V))}set cancelNode(t){h(r(this,V),t,!0)}get nestedOpenCount(){return s(r(this,X))}set nestedOpenCount(t){h(r(this,X),t,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){var t;this.nestedOpenCount++,(t=this.parent)==null||t.incrementNested()}decrementNested(){var t;this.nestedOpenCount!==0&&(this.nestedOpenCount--,(t=this.parent)==null||t.decrementNested())}get sharedProps(){return s(r(this,Y))}set sharedProps(t){h(r(this,Y),t)}};U=new WeakMap,W=new WeakMap,q=new WeakMap,G=new WeakMap,H=new WeakMap,J=new WeakMap,L=new WeakMap,Q=new WeakMap,V=new WeakMap,X=new WeakMap,Y=new WeakMap;let Ot=St;var Z;const kt=class kt{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,Z,v(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(t){return new kt(t,K.get())}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Yt||t.key===Zt)&&(t.preventDefault(),this.root.handleClose())}get props(){return s(r(this,Z))}set props(t){h(r(this,Z),t)}};Z=new WeakMap;let Nt=kt;var $;const Ft=class Ft{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,$,v(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.root.titleId=this.opts.id.current,this.attachment=vt(this.opts.ref),jt.pre(()=>this.opts.id.current,i=>{this.root.titleId=i})}static create(t){return new Ft(t,K.get())}get props(){return s(r(this,$))}set props(t){h(r(this,$),t)}};$=new WeakMap;let It=Ft;var tt,et;const Dt=class Dt{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,tt,v(()=>({open:this.root.opts.open.current})));c(this,et,v(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":ut(this.root.nestedOpenCount>0),"data-nested":ut(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,i=>{this.root.contentNode=i,this.root.contentId=i==null?void 0:i.id})}static create(t){return new Dt(t,K.get())}get snippetProps(){return s(r(this,tt))}set snippetProps(t){h(r(this,tt),t)}get props(){return s(r(this,et))}set props(t){h(r(this,et),t)}get shouldRender(){return this.root.contentPresence.shouldRender}};tt=new WeakMap,et=new WeakMap;let wt=Dt;var rt,ot;const Et=class Et{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,rt,v(()=>({open:this.root.opts.open.current})));c(this,ot,v(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":ut(this.root.nestedOpenCount>0),"data-nested":ut(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,i=>this.root.overlayNode=i)}static create(t){return new Et(t,K.get())}get snippetProps(){return s(r(this,rt))}set snippetProps(t){h(r(this,rt),t)}get props(){return s(r(this,ot))}set props(t){h(r(this,ot),t)}get shouldRender(){return this.root.overlayPresence.shouldRender}};rt=new WeakMap,ot=new WeakMap;let At=Et;var ne=st("<div><!></div>");function Pe(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"level",3,2),I=bt(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const g=It.create({id:u(()=>i()),level:u(()=>b()),ref:u(()=>m(),a=>m(a))}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=a=>{var o=N(),p=y(o);S(p,()=>t.child,()=>({props:s(_)})),f(a,o)},P=a=>{var o=ne();yt(o,()=>({...s(_)}));var p=ft(o);S(p,()=>t.children??at),gt(o),f(a,o)};x(E,a=>{t.child?a(k):a(P,-1)})}f(n,C),it()}var ie=st("<div><!></div>");function _e(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"forceMount",3,!1),b=d(t,"ref",15,null),I=bt(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const g=At.create({id:u(()=>i()),ref:u(()=>b(),P=>b(P))}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=P=>{var a=N(),o=y(a);{var p=F=>{var w=N(),A=y(w);{let lt=v(()=>({props:D(s(_)),...g.snippetProps}));S(A,()=>t.child,()=>s(lt))}f(F,w)},dt=F=>{var w=ie();yt(w,lt=>({...lt}),[()=>D(s(_))]);var A=ft(w);S(A,()=>t.children??at,()=>g.snippetProps),gt(w),f(F,w)};x(o,F=>{t.child?F(p):F(dt,-1)})}f(P,a)};x(E,P=>{(g.shouldRender||m())&&P(k)})}f(n,C),it()}function Ce(n,t){nt(t,!0);let e=d(t,"open",15,!1),i=d(t,"onOpenChange",3,M),m=d(t,"onOpenChangeComplete",3,M);Ot.create({variant:u(()=>"dialog"),open:u(()=>e(),g=>{e(g),i()(g)}),onOpenChangeComplete:u(()=>m())});var b=N(),I=y(b);S(I,()=>t.children??at),f(n,b),it()}var ae=st("<button><!></button>");function Oe(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"disabled",3,!1),I=bt(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const g=Nt.create({variant:u(()=>"close"),id:u(()=>i()),ref:u(()=>m(),a=>m(a)),disabled:u(()=>!!b())}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=a=>{var o=N(),p=y(o);S(p,()=>t.child,()=>({props:s(_)})),f(a,o)},P=a=>{var o=ae();yt(o,()=>({...s(_)}));var p=ft(o);S(p,()=>t.children??at),gt(o),f(a,o)};x(E,a=>{t.child?a(k):a(P,-1)})}f(n,C),it()}var de=st("<!> <!>",1),le=st("<!> <div><!></div>",1);function Ne(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"forceMount",3,!1),I=d(t,"onCloseAutoFocus",3,M),g=d(t,"onOpenAutoFocus",3,M),_=d(t,"onEscapeKeydown",3,M),C=d(t,"onInteractOutside",3,M),E=d(t,"trapFocus",3,!0),k=d(t,"preventScroll",3,!0),P=d(t,"restoreScrollDelay",3,null),a=bt(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const o=wt.create({id:u(()=>i()),ref:u(()=>m(),A=>m(A))}),p=v(()=>D(a,o.props));var dt=N(),F=y(dt);{var w=A=>{te(A,{get ref(){return o.opts.ref},loop:!0,get trapFocus(){return E()},get enabled(){return o.root.opts.open.current},get onOpenAutoFocus(){return g()},get onCloseAutoFocus(){return I()},focusScope:(zt,Pt)=>{let Rt=()=>Pt==null?void 0:Pt().props;ee(zt,Ct(()=>s(p),{get enabled(){return o.root.opts.open.current},get ref(){return o.opts.ref},onEscapeKeydown:ct=>{_()(ct),!ct.defaultPrevented&&o.root.handleClose()},children:(ct,ce)=>{re(ct,Ct(()=>s(p),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},onInteractOutside:ht=>{C()(ht),!ht.defaultPrevented&&o.root.handleClose()},children:(ht,he)=>{oe(ht,Ct(()=>s(p),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},children:(Ut,ue)=>{var xt=N(),Wt=y(xt);{var qt=B=>{var T=de(),j=y(T);{var z=R=>{Tt(R,{get preventScroll(){return k()},get restoreScrollDelay(){return P()}})};x(j,R=>{o.root.opts.open.current&&R(z)})}var _t=Mt(j,2);{let R=v(()=>({props:D(s(p),Rt()),...o.snippetProps}));S(_t,()=>t.child,()=>s(R))}f(B,T)},Gt=B=>{var T=le(),j=y(T);Tt(j,{get preventScroll(){return k()}});var z=Mt(j,2);yt(z,R=>({...R}),[()=>D(s(p),Rt())]);var _t=ft(z);S(_t,()=>t.children??at),gt(z),f(B,T)};x(Wt,B=>{t.child?B(qt):B(Gt,-1)})}f(Ut,xt)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};x(F,A=>{(o.shouldRender||b())&&A(w)})}f(n,dt),it()}export{Ce as D,_e as a,Ne as b,Pe as c,Oe as d};
1
+ var Ht=Object.defineProperty;var Bt=n=>{throw TypeError(n)};var Jt=(n,t,e)=>t in n?Ht(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var l=(n,t,e)=>Jt(n,typeof t!="symbol"?t+"":t,e),Lt=(n,t,e)=>t.has(n)||Bt("Cannot "+e);var r=(n,t,e)=>(Lt(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Bt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e);import{p as pt,c as N,a as f,f as st}from"./DIeahUKq.js";import{b8 as O,k as s,a5 as h,aA as v,at as nt,f as y,au as it,av as ft,aj as at,ax as gt,aw as Mt}from"./BsQ08Wq_.js";import{C as Qt,a as Kt,b as u,w as jt,o as Vt,c as Xt,d as vt,S as Yt,E as Zt,e as ut,g as $t,f as mt,s as S,m as D,n as M,F as te,h as ee,D as re,T as oe,i as Tt}from"./pd_p3yYy.js";import{i as x}from"./rNwPv4DZ.js";import{f as yt}from"./WW6La7Nt.js";import{p as d,r as bt,s as Ct}from"./D8G961Hm.js";const se=Xt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),K=new Qt("Dialog.Root | AlertDialog.Root");var U,W,q,G,H,J,L,Q,V,X,Y;const St=class St{constructor(t,e){l(this,"opts");c(this,U,O(null));c(this,W,O(null));c(this,q,O(null));c(this,G,O(null));c(this,H,O(void 0));c(this,J,O(void 0));c(this,L,O(void 0));c(this,Q,O(void 0));c(this,V,O(null));c(this,X,O(0));l(this,"depth");l(this,"parent");l(this,"contentPresence");l(this,"overlayPresence");l(this,"getBitsAttr",t=>se.getAttr(t,this.opts.variant.current));c(this,Y,v(()=>({"data-state":$t(this.opts.open.current)})));this.opts=t,this.parent=e,this.depth=e?e.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Kt({ref:u(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Kt({ref:u(()=>this.overlayNode),open:this.opts.open,enabled:!0}),jt(()=>this.opts.open.current,i=>{this.parent&&(i?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Vt(()=>{var i;this.opts.open.current&&((i=this.parent)==null||i.decrementNested())})}static create(t){const e=K.getOr(null);return K.set(new St(t,e))}get triggerNode(){return s(r(this,U))}set triggerNode(t){h(r(this,U),t,!0)}get contentNode(){return s(r(this,W))}set contentNode(t){h(r(this,W),t,!0)}get overlayNode(){return s(r(this,q))}set overlayNode(t){h(r(this,q),t,!0)}get descriptionNode(){return s(r(this,G))}set descriptionNode(t){h(r(this,G),t,!0)}get contentId(){return s(r(this,H))}set contentId(t){h(r(this,H),t,!0)}get titleId(){return s(r(this,J))}set titleId(t){h(r(this,J),t,!0)}get triggerId(){return s(r(this,L))}set triggerId(t){h(r(this,L),t,!0)}get descriptionId(){return s(r(this,Q))}set descriptionId(t){h(r(this,Q),t,!0)}get cancelNode(){return s(r(this,V))}set cancelNode(t){h(r(this,V),t,!0)}get nestedOpenCount(){return s(r(this,X))}set nestedOpenCount(t){h(r(this,X),t,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){var t;this.nestedOpenCount++,(t=this.parent)==null||t.incrementNested()}decrementNested(){var t;this.nestedOpenCount!==0&&(this.nestedOpenCount--,(t=this.parent)==null||t.decrementNested())}get sharedProps(){return s(r(this,Y))}set sharedProps(t){h(r(this,Y),t)}};U=new WeakMap,W=new WeakMap,q=new WeakMap,G=new WeakMap,H=new WeakMap,J=new WeakMap,L=new WeakMap,Q=new WeakMap,V=new WeakMap,X=new WeakMap,Y=new WeakMap;let Ot=St;var Z;const kt=class kt{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,Z,v(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(t){return new kt(t,K.get())}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Yt||t.key===Zt)&&(t.preventDefault(),this.root.handleClose())}get props(){return s(r(this,Z))}set props(t){h(r(this,Z),t)}};Z=new WeakMap;let Nt=kt;var $;const Ft=class Ft{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,$,v(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.root.titleId=this.opts.id.current,this.attachment=vt(this.opts.ref),jt.pre(()=>this.opts.id.current,i=>{this.root.titleId=i})}static create(t){return new Ft(t,K.get())}get props(){return s(r(this,$))}set props(t){h(r(this,$),t)}};$=new WeakMap;let It=Ft;var tt,et;const Dt=class Dt{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,tt,v(()=>({open:this.root.opts.open.current})));c(this,et,v(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":ut(this.root.nestedOpenCount>0),"data-nested":ut(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,i=>{this.root.contentNode=i,this.root.contentId=i==null?void 0:i.id})}static create(t){return new Dt(t,K.get())}get snippetProps(){return s(r(this,tt))}set snippetProps(t){h(r(this,tt),t)}get props(){return s(r(this,et))}set props(t){h(r(this,et),t)}get shouldRender(){return this.root.contentPresence.shouldRender}};tt=new WeakMap,et=new WeakMap;let wt=Dt;var rt,ot;const Et=class Et{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,rt,v(()=>({open:this.root.opts.open.current})));c(this,ot,v(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":ut(this.root.nestedOpenCount>0),"data-nested":ut(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,i=>this.root.overlayNode=i)}static create(t){return new Et(t,K.get())}get snippetProps(){return s(r(this,rt))}set snippetProps(t){h(r(this,rt),t)}get props(){return s(r(this,ot))}set props(t){h(r(this,ot),t)}get shouldRender(){return this.root.overlayPresence.shouldRender}};rt=new WeakMap,ot=new WeakMap;let At=Et;var ne=st("<div><!></div>");function Pe(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"level",3,2),I=bt(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const g=It.create({id:u(()=>i()),level:u(()=>b()),ref:u(()=>m(),a=>m(a))}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=a=>{var o=N(),p=y(o);S(p,()=>t.child,()=>({props:s(_)})),f(a,o)},P=a=>{var o=ne();yt(o,()=>({...s(_)}));var p=ft(o);S(p,()=>t.children??at),gt(o),f(a,o)};x(E,a=>{t.child?a(k):a(P,-1)})}f(n,C),it()}var ie=st("<div><!></div>");function _e(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"forceMount",3,!1),b=d(t,"ref",15,null),I=bt(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const g=At.create({id:u(()=>i()),ref:u(()=>b(),P=>b(P))}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=P=>{var a=N(),o=y(a);{var p=F=>{var w=N(),A=y(w);{let lt=v(()=>({props:D(s(_)),...g.snippetProps}));S(A,()=>t.child,()=>s(lt))}f(F,w)},dt=F=>{var w=ie();yt(w,lt=>({...lt}),[()=>D(s(_))]);var A=ft(w);S(A,()=>t.children??at,()=>g.snippetProps),gt(w),f(F,w)};x(o,F=>{t.child?F(p):F(dt,-1)})}f(P,a)};x(E,P=>{(g.shouldRender||m())&&P(k)})}f(n,C),it()}function Ce(n,t){nt(t,!0);let e=d(t,"open",15,!1),i=d(t,"onOpenChange",3,M),m=d(t,"onOpenChangeComplete",3,M);Ot.create({variant:u(()=>"dialog"),open:u(()=>e(),g=>{e(g),i()(g)}),onOpenChangeComplete:u(()=>m())});var b=N(),I=y(b);S(I,()=>t.children??at),f(n,b),it()}var ae=st("<button><!></button>");function Oe(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"disabled",3,!1),I=bt(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const g=Nt.create({variant:u(()=>"close"),id:u(()=>i()),ref:u(()=>m(),a=>m(a)),disabled:u(()=>!!b())}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=a=>{var o=N(),p=y(o);S(p,()=>t.child,()=>({props:s(_)})),f(a,o)},P=a=>{var o=ae();yt(o,()=>({...s(_)}));var p=ft(o);S(p,()=>t.children??at),gt(o),f(a,o)};x(E,a=>{t.child?a(k):a(P,-1)})}f(n,C),it()}var de=st("<!> <!>",1),le=st("<!> <div><!></div>",1);function Ne(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"forceMount",3,!1),I=d(t,"onCloseAutoFocus",3,M),g=d(t,"onOpenAutoFocus",3,M),_=d(t,"onEscapeKeydown",3,M),C=d(t,"onInteractOutside",3,M),E=d(t,"trapFocus",3,!0),k=d(t,"preventScroll",3,!0),P=d(t,"restoreScrollDelay",3,null),a=bt(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const o=wt.create({id:u(()=>i()),ref:u(()=>m(),A=>m(A))}),p=v(()=>D(a,o.props));var dt=N(),F=y(dt);{var w=A=>{te(A,{get ref(){return o.opts.ref},loop:!0,get trapFocus(){return E()},get enabled(){return o.root.opts.open.current},get onOpenAutoFocus(){return g()},get onCloseAutoFocus(){return I()},focusScope:(zt,Pt)=>{let Rt=()=>Pt==null?void 0:Pt().props;ee(zt,Ct(()=>s(p),{get enabled(){return o.root.opts.open.current},get ref(){return o.opts.ref},onEscapeKeydown:ct=>{_()(ct),!ct.defaultPrevented&&o.root.handleClose()},children:(ct,ce)=>{re(ct,Ct(()=>s(p),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},onInteractOutside:ht=>{C()(ht),!ht.defaultPrevented&&o.root.handleClose()},children:(ht,he)=>{oe(ht,Ct(()=>s(p),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},children:(Ut,ue)=>{var xt=N(),Wt=y(xt);{var qt=B=>{var T=de(),j=y(T);{var z=R=>{Tt(R,{get preventScroll(){return k()},get restoreScrollDelay(){return P()}})};x(j,R=>{o.root.opts.open.current&&R(z)})}var _t=Mt(j,2);{let R=v(()=>({props:D(s(p),Rt()),...o.snippetProps}));S(_t,()=>t.child,()=>s(R))}f(B,T)},Gt=B=>{var T=le(),j=y(T);Tt(j,{get preventScroll(){return k()}});var z=Mt(j,2);yt(z,R=>({...R}),[()=>D(s(p),Rt())]);var _t=ft(z);S(_t,()=>t.children??at),gt(z),f(B,T)};x(Wt,B=>{t.child?B(qt):B(Gt,-1)})}f(Ut,xt)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};x(F,A=>{(o.shouldRender||b())&&A(w)})}f(n,dt),it()}export{Ce as D,_e as a,Ne as b,Pe as c,Oe as d};
@@ -1 +1 @@
1
- import{b as ae,h as M,a as ie,i as W,r as le,j as ue,s as Z,c as q,e as B,g as L,C as se,k as oe,l as $,m as ve,n as Y,o as w,p as y,q as de,t as te,u as ce,v as pe,w as J,x as ge,y as he,z as _e,A as j,B as Ee,D as me,F as ne,G as re,I as V,J as Te,K as we,L as Ae,M as Ce,N as Se,O as Ie,P as Ne,Q as fe,R as xe}from"./vtBo8kBV.js";function Oe(e,r){return r}function De(e,r,u){for(var s=[],c=r.length,l,i=r.length,p=0;p<c;p++){let E=r[p];re(E,()=>{if(l){if(l.pending.delete(E),l.done.add(E),l.pending.size===0){var v=e.outrogroups;G(e,J(l.done)),v.delete(l),v.size===0&&(e.outrogroups=null)}}else i-=1},!1)}if(i===0){var a=s.length===0&&u!==null;if(a){var t=u,f=t.parentNode;we(f),f.append(t),e.items.clear()}G(e,r,!a)}else l={pending:new Set(r),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(l)}function G(e,r,u=!0){var s;if(e.pending.size>0){s=new Set;for(const i of e.pending.values())for(const p of i)s.add(e.items.get(p).e)}for(var c=0;c<r.length;c++){var l=r[c];if(s!=null&&s.has(l)){l.f|=w;const i=document.createDocumentFragment();Ae(l,i)}else Ce(r[c],u)}}var ee;function be(e,r,u,s,c,l=null){var i=e,p=new Map,a=(r&fe)!==0;if(a){var t=e;i=M?q(Se(t)):t.appendChild(Y())}M&&ie();var f=null,E=ce(()=>{var d=u();return pe(d)?d:d==null?[]:J(d)}),v,m=new Map,T=!0;function x(d){(C.effect.f&me)===0&&(C.pending.delete(d),C.fallback=f,Re(C,v,i,r,s),f!==null&&(v.length===0?(f.f&w)===0?ne(f):(f.f^=w,b(f,null,i)):re(f,()=>{f=null})))}function n(d){C.pending.delete(d)}var o=ae(()=>{v=W(E);var d=v.length;let h=!1;if(M){var F=le(i)===ue;F!==(d===0)&&(i=Z(),q(i),B(!1),h=!0)}for(var S=new Set,g=ve,R=te(),I=0;I<d;I+=1){M&&L.nodeType===se&&L.data===oe&&(i=L,h=!0,B(!1));var k=v[I],D=s(k,I),_=T?null:p.get(D);_?(_.v&&$(_.v,k),_.i&&$(_.i,I),R&&g.unskip_effect(_.e)):(_=ke(p,T?i:ee??(ee=Y()),k,D,I,c,r,u),T||(_.e.f|=w),p.set(D,_)),S.add(D)}if(d===0&&l&&!f&&(T?f=y(()=>l(i)):(f=y(()=>l(ee??(ee=Y()))),f.f|=w)),d>S.size&&de(),M&&d>0&&q(Z()),!T)if(m.set(g,S),R){for(const[H,z]of p)S.has(H)||g.skip_effect(z.e);g.oncommit(x),g.ondiscard(n)}else x(g);h&&B(!0),W(E)}),C={effect:o,items:p,pending:m,outrogroups:null,fallback:f};T=!1,M&&(i=L)}function O(e){for(;e!==null&&(e.f&Te)===0;)e=e.next;return e}function Re(e,r,u,s,c){var k,D,_,H,z,K,P,Q,U;var l=(s&xe)!==0,i=r.length,p=e.items,a=O(e.effect.first),t,f=null,E,v=[],m=[],T,x,n,o;if(l)for(o=0;o<i;o+=1)T=r[o],x=c(T,o),n=p.get(x).e,(n.f&w)===0&&((D=(k=n.nodes)==null?void 0:k.a)==null||D.measure(),(E??(E=new Set)).add(n));for(o=0;o<i;o+=1){if(T=r[o],x=c(T,o),n=p.get(x).e,e.outrogroups!==null)for(const A of e.outrogroups)A.pending.delete(n),A.done.delete(n);if((n.f&w)!==0)if(n.f^=w,n===a)b(n,null,u);else{var C=f?f.next:a;n===e.effect.last&&(e.effect.last=n.prev),n.prev&&(n.prev.next=n.next),n.next&&(n.next.prev=n.prev),N(e,f,n),N(e,n,C),b(n,C,u),f=n,v=[],m=[],a=O(f.next);continue}if((n.f&V)!==0&&(ne(n),l&&((H=(_=n.nodes)==null?void 0:_.a)==null||H.unfix(),(E??(E=new Set)).delete(n))),n!==a){if(t!==void 0&&t.has(n)){if(v.length<m.length){var d=m[0],h;f=d.prev;var F=v[0],S=v[v.length-1];for(h=0;h<v.length;h+=1)b(v[h],d,u);for(h=0;h<m.length;h+=1)t.delete(m[h]);N(e,F.prev,S.next),N(e,f,F),N(e,S,d),a=d,f=S,o-=1,v=[],m=[]}else t.delete(n),b(n,a,u),N(e,n.prev,n.next),N(e,n,f===null?e.effect.first:f.next),N(e,f,n),f=n;continue}for(v=[],m=[];a!==null&&a!==n;)(t??(t=new Set)).add(a),m.push(a),a=O(a.next);if(a===null)continue}(n.f&w)===0&&v.push(n),f=n,a=O(n.next)}if(e.outrogroups!==null){for(const A of e.outrogroups)A.pending.size===0&&(G(e,J(A.done)),(z=e.outrogroups)==null||z.delete(A));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var g=[];if(t!==void 0)for(n of t)(n.f&V)===0&&g.push(n);for(;a!==null;)(a.f&V)===0&&a!==e.fallback&&g.push(a),a=O(a.next);var R=g.length;if(R>0){var I=(s&fe)!==0&&i===0?u:null;if(l){for(o=0;o<R;o+=1)(P=(K=g[o].nodes)==null?void 0:K.a)==null||P.measure();for(o=0;o<R;o+=1)(U=(Q=g[o].nodes)==null?void 0:Q.a)==null||U.fix()}De(e,g,I)}}l&&Ie(()=>{var A,X;if(E!==void 0)for(n of E)(X=(A=n.nodes)==null?void 0:A.a)==null||X.apply()})}function ke(e,r,u,s,c,l,i,p){var a=(i&ge)!==0?(i&he)===0?_e(u,!1,!1):j(u):null,t=(i&Ee)!==0?j(c):null;return{v:a,i:t,e:y(()=>(l(r,a??u,t??c,p),()=>{e.delete(s)}))}}function b(e,r,u){if(e.nodes)for(var s=e.nodes.start,c=e.nodes.end,l=r&&(r.f&w)===0?r.nodes.start:u;s!==null;){var i=Ne(s);if(l.before(s),s===c)return;s=i}}function N(e,r,u){r===null?e.effect.first=u:r.next=u,u===null?e.effect.last=r:u.prev=r}export{be as e,Oe as i};
1
+ import{b as ae,h as M,a as ie,k as W,r as le,m as ue,s as Z,c as q,e as B,g as L,C as se,n as oe,o as $,i as ve,p as V,q as w,v as U,w as de,x as te,y as ce,z as pe,A as G,B as ge,D as he,F as _e,G as j,I as Ee,J as me,K as ne,L as re,M as Y,N as Te,O as we,P as Ae,Q as Ce,R as Se,S as Ie,T as Ne,U as fe,V as xe}from"./BsQ08Wq_.js";function Oe(e,r){return r}function De(e,r,u){for(var s=[],c=r.length,l,i=r.length,p=0;p<c;p++){let E=r[p];re(E,()=>{if(l){if(l.pending.delete(E),l.done.add(E),l.pending.size===0){var v=e.outrogroups;y(e,G(l.done)),v.delete(l),v.size===0&&(e.outrogroups=null)}}else i-=1},!1)}if(i===0){var a=s.length===0&&u!==null;if(a){var t=u,f=t.parentNode;we(f),f.append(t),e.items.clear()}y(e,r,!a)}else l={pending:new Set(r),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(l)}function y(e,r,u=!0){var s;if(e.pending.size>0){s=new Set;for(const i of e.pending.values())for(const p of i)s.add(e.items.get(p).e)}for(var c=0;c<r.length;c++){var l=r[c];if(s!=null&&s.has(l)){l.f|=w;const i=document.createDocumentFragment();Ae(l,i)}else Ce(r[c],u)}}var ee;function be(e,r,u,s,c,l=null){var i=e,p=new Map,a=(r&fe)!==0;if(a){var t=e;i=M?q(Se(t)):t.appendChild(V())}M&&ie();var f=null,E=ce(()=>{var d=u();return pe(d)?d:d==null?[]:G(d)}),v,m=new Map,T=!0;function x(d){(C.effect.f&me)===0&&(C.pending.delete(d),C.fallback=f,Re(C,v,i,r,s),f!==null&&(v.length===0?(f.f&w)===0?ne(f):(f.f^=w,b(f,null,i)):re(f,()=>{f=null})))}function n(d){C.pending.delete(d)}var o=ae(()=>{v=W(E);var d=v.length;let h=!1;if(M){var F=le(i)===ue;F!==(d===0)&&(i=Z(),q(i),B(!1),h=!0)}for(var S=new Set,g=ve,R=te(),I=0;I<d;I+=1){M&&L.nodeType===se&&L.data===oe&&(i=L,h=!0,B(!1));var k=v[I],D=s(k,I),_=T?null:p.get(D);_?(_.v&&$(_.v,k),_.i&&$(_.i,I),R&&g.unskip_effect(_.e)):(_=ke(p,T?i:ee??(ee=V()),k,D,I,c,r,u),T||(_.e.f|=w),p.set(D,_)),S.add(D)}if(d===0&&l&&!f&&(T?f=U(()=>l(i)):(f=U(()=>l(ee??(ee=V()))),f.f|=w)),d>S.size&&de(),M&&d>0&&q(Z()),!T)if(m.set(g,S),R){for(const[H,z]of p)S.has(H)||g.skip_effect(z.e);g.oncommit(x),g.ondiscard(n)}else x(g);h&&B(!0),W(E)}),C={effect:o,items:p,pending:m,outrogroups:null,fallback:f};T=!1,M&&(i=L)}function O(e){for(;e!==null&&(e.f&Te)===0;)e=e.next;return e}function Re(e,r,u,s,c){var k,D,_,H,z,J,K,P,Q;var l=(s&xe)!==0,i=r.length,p=e.items,a=O(e.effect.first),t,f=null,E,v=[],m=[],T,x,n,o;if(l)for(o=0;o<i;o+=1)T=r[o],x=c(T,o),n=p.get(x).e,(n.f&w)===0&&((D=(k=n.nodes)==null?void 0:k.a)==null||D.measure(),(E??(E=new Set)).add(n));for(o=0;o<i;o+=1){if(T=r[o],x=c(T,o),n=p.get(x).e,e.outrogroups!==null)for(const A of e.outrogroups)A.pending.delete(n),A.done.delete(n);if((n.f&w)!==0)if(n.f^=w,n===a)b(n,null,u);else{var C=f?f.next:a;n===e.effect.last&&(e.effect.last=n.prev),n.prev&&(n.prev.next=n.next),n.next&&(n.next.prev=n.prev),N(e,f,n),N(e,n,C),b(n,C,u),f=n,v=[],m=[],a=O(f.next);continue}if((n.f&Y)!==0&&(ne(n),l&&((H=(_=n.nodes)==null?void 0:_.a)==null||H.unfix(),(E??(E=new Set)).delete(n))),n!==a){if(t!==void 0&&t.has(n)){if(v.length<m.length){var d=m[0],h;f=d.prev;var F=v[0],S=v[v.length-1];for(h=0;h<v.length;h+=1)b(v[h],d,u);for(h=0;h<m.length;h+=1)t.delete(m[h]);N(e,F.prev,S.next),N(e,f,F),N(e,S,d),a=d,f=S,o-=1,v=[],m=[]}else t.delete(n),b(n,a,u),N(e,n.prev,n.next),N(e,n,f===null?e.effect.first:f.next),N(e,f,n),f=n;continue}for(v=[],m=[];a!==null&&a!==n;)(t??(t=new Set)).add(a),m.push(a),a=O(a.next);if(a===null)continue}(n.f&w)===0&&v.push(n),f=n,a=O(n.next)}if(e.outrogroups!==null){for(const A of e.outrogroups)A.pending.size===0&&(y(e,G(A.done)),(z=e.outrogroups)==null||z.delete(A));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var g=[];if(t!==void 0)for(n of t)(n.f&Y)===0&&g.push(n);for(;a!==null;)(a.f&Y)===0&&a!==e.fallback&&g.push(a),a=O(a.next);var R=g.length;if(R>0){var I=(s&fe)!==0&&i===0?u:null;if(l){for(o=0;o<R;o+=1)(K=(J=g[o].nodes)==null?void 0:J.a)==null||K.measure();for(o=0;o<R;o+=1)(Q=(P=g[o].nodes)==null?void 0:P.a)==null||Q.fix()}De(e,g,I)}}l&&Ie(()=>{var A,X;if(E!==void 0)for(n of E)(X=(A=n.nodes)==null?void 0:A.a)==null||X.apply()})}function ke(e,r,u,s,c,l,i,p){var a=(i&ge)!==0?(i&he)===0?_e(u,!1,!1):j(u):null,t=(i&Ee)!==0?j(c):null;return{v:a,i:t,e:U(()=>(l(r,a??u,t??c,p),()=>{e.delete(s)}))}}function b(e,r,u){if(e.nodes)for(var s=e.nodes.start,c=e.nodes.end,l=r&&(r.f&w)===0?r.nodes.start:u;s!==null;){var i=Ne(s);if(l.before(s),s===c)return;s=i}}function N(e,r,u){r===null?e.effect.first=u:r.next=u,u===null?e.effect.last=r:u.prev=r}export{be as e,Oe as i};
@@ -0,0 +1,6 @@
1
+ var Vi=Object.defineProperty;var Jn=e=>{throw TypeError(e)};var Ki=(e,t,n)=>t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var N=(e,t,n)=>Ki(e,typeof t!="symbol"?t+"":t,n),wn=(e,t,n)=>t.has(e)||Jn("Cannot "+n);var a=(e,t,n)=>(wn(e,t,"read from private field"),n?n.call(e):t.get(e)),b=(e,t,n)=>t.has(e)?Jn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Y=(e,t,n,i)=>(wn(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Bt=(e,t,n)=>(wn(e,t,"access private method"),n);import{c as L,a as _,f as at,p as hn}from"./DIeahUKq.js";import{aA as O,k as d,an as tt,u as zi,b8 as V,a4 as Ge,a5 as A,at as Q,f as k,au as $,aj as et,am as Ui,aw as In,av as Et,ax as Tt}from"./BsQ08Wq_.js";import{t as pi,u as Yi,b as R,n as ft,m as gt,v as St,C as Xe,x as Xi,d as _t,y as mi,z as qi,A as ji,w as Pt,B as Zi,s as U,G as vi,l as Mn,H as kt,J as qt,E as Qn,S as yn,K as $n,L as wi,M as yi,N as bi,O as xi,o as Gi,a as Ji,e as Oi,g as Si,q as Qi,c as $i,Q as to,R as ti,F as eo,i as ei,h as no,D as io,T as oo,f as fn,I as ro}from"./pd_p3yYy.js";import{i as G}from"./rNwPv4DZ.js";import{f as ht}from"./WW6La7Nt.js";import{p as x,r as vt,s as It,l as so}from"./D8G961Hm.js";import{o as ao}from"./DptdhtA1.js";import{e as lo}from"./B553hBXT.js";import{b as co}from"./BnqaikL8.js";import{c as uo}from"./C9wTDiHH.js";import{f as ho,o as fo}from"./BK0ygNWX.js";import"./CEWi_rGa.js";import{s as go}from"./Cc7aBSsN.js";const po={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%)"},mo=pi(po);function vo(e){return typeof e=="function"}function ni(e){return vo(e)?e():e}var bt,Wt,Lt,Vt,xt,nn,on,Kt;class wo{constructor(t,n={box:"border-box"}){b(this,bt,{width:0,height:0});b(this,Wt,!1);b(this,Lt);b(this,Vt);b(this,xt);b(this,nn,O(()=>{var t;return(t=d(a(this,Kt)))==null||t(),this.getSize().width}));b(this,on,O(()=>{var t;return(t=d(a(this,Kt)))==null||t(),this.getSize().height}));b(this,Kt,O(()=>{const t=ni(a(this,Vt));if(t)return ho(n=>{if(!a(this,xt))return;const i=new(a(this,xt)).ResizeObserver(o=>{Y(this,Wt,!0);for(const s of o){const r=a(this,Lt).box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(r)?r:[r];a(this,bt).width=l.reduce((u,f)=>Math.max(u,f.inlineSize),0),a(this,bt).height=l.reduce((u,f)=>Math.max(u,f.blockSize),0)}n()});return i.observe(t),()=>{Y(this,Wt,!1),i.disconnect()}})}));Y(this,xt,n.window??Yi),Y(this,Lt,n),Y(this,Vt,t),Y(this,bt,{width:0,height:0})}calculateSize(){const t=ni(a(this,Vt));if(!t||!a(this,xt))return;const n=t.offsetWidth,i=t.offsetHeight;if(a(this,Lt).box==="border-box")return{width:n,height:i};const o=a(this,xt).getComputedStyle(t),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),r=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),l=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),u=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),f=n-s-l,h=i-r-u;return{width:f,height:h}}getSize(){return a(this,Wt)?a(this,bt):this.calculateSize()??a(this,bt)}get current(){var t;return(t=d(a(this,Kt)))==null||t(),this.getSize()}get width(){return d(a(this,nn))}get height(){return d(a(this,on))}}bt=new WeakMap,Wt=new WeakMap,Lt=new WeakMap,Vt=new WeakMap,xt=new WeakMap,nn=new WeakMap,on=new WeakMap,Kt=new WeakMap;var Zt,rn;class yo{constructor(t,n){b(this,Zt,()=>{});b(this,rn,O(()=>a(this,Zt).call(this)));let i;n!==void 0&&(i=n),Y(this,Zt,()=>{try{return i}finally{i=t()}})}get current(){return d(a(this,rn))}}Zt=new WeakMap,rn=new WeakMap;function bo(e){tt(()=>zi(()=>e()))}function xo(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function Oo(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function So(e,t,n,i=!0){if(e.length===0||t<0||t>=e.length)return;let o=t+n;return i?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Po(e,t,n,i=!0){if(e.length===0||t<0||t>=e.length)return;let o=t-n;return i?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Bn(e,t,n){const i=t.toLowerCase();if(i.endsWith(" ")){const c=i.slice(0,-1);if(e.filter(w=>w.toLowerCase().startsWith(c)).length<=1)return Bn(e,c,n);const g=n==null?void 0:n.toLowerCase();if(g&&g.startsWith(c)&&g.charAt(c.length)===" "&&t.trim()===c)return n;const m=e.filter(w=>w.toLowerCase().startsWith(i));if(m.length>0){const w=n?e.indexOf(n):-1;return ii(m,Math.max(w,0)).find(C=>C!==n)||n}}const s=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,r=s.toLowerCase(),l=n?e.indexOf(n):-1;let u=ii(e,Math.max(l,0));s.length===1&&(u=u.filter(c=>c!==n));const h=u.find(c=>c==null?void 0:c.toLowerCase().startsWith(r));return h!==n?h:void 0}function ii(e,t){return e.map((n,i)=>e[(t+i)%e.length])}const Co={afterMs:1e4,onChange:ft};function Pi(e,t){const{afterMs:n,onChange:i,getWindow:o}={...Co,...t};let s=null,r=V(Ge(e));function l(){return o().setTimeout(()=>{A(r,e,!0),i==null||i(e)},n)}return tt(()=>()=>{s&&o().clearTimeout(s)}),R(()=>d(r),u=>{A(r,u,!0),i==null||i(u),s&&o().clearTimeout(s),s=l()})}var ct,ut,sn,an;class Ao{constructor(t){b(this,ct);b(this,ut);b(this,sn,O(()=>a(this,ct).onMatch?a(this,ct).onMatch:t=>t.focus()));b(this,an,O(()=>a(this,ct).getCurrentItem?a(this,ct).getCurrentItem:a(this,ct).getActiveElement));Y(this,ct,t),Y(this,ut,Pi("",{afterMs:1e3,getWindow:t.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){var u,f;if(!n.length)return;a(this,ut).current=a(this,ut).current+t;const i=d(a(this,an))(),o=((f=(u=n.find(h=>h===i))==null?void 0:u.textContent)==null?void 0:f.trim())??"",s=n.map(h=>{var c;return((c=h.textContent)==null?void 0:c.trim())??""}),r=Bn(s,a(this,ut).current,o),l=n.find(h=>{var c;return((c=h.textContent)==null?void 0:c.trim())===r});return l&&d(a(this,sn))(l),l}resetTypeahead(){a(this,ut).current=""}get search(){return a(this,ut).current}}ct=new WeakMap,ut=new WeakMap,sn=new WeakMap,an=new WeakMap;var Ro=at("<input/>"),No=at("<input/>");function Eo(e,t){Q(t,!0);let n=x(t,"value",15),i=vt(t,["$$slots","$$events","$$legacy","value"]);const o=O(()=>gt(i,{"aria-hidden":"true",tabindex:-1,style:mo}));var s=L(),r=k(s);{var l=f=>{var h=Ro();ht(h,()=>({...d(o),value:n()}),void 0,void 0,void 0,void 0,!0),_(f,h)},u=f=>{var h=No();ht(h,()=>({...d(o)}),void 0,void 0,void 0,void 0,!0),co(h,n),_(f,h)};G(r,f=>{d(o).type==="checkbox"?f(l):f(u,-1)})}_(e,s),$()}const To=["top","right","bottom","left"],Ct=Math.min,Z=Math.max,Je=Math.round,Ze=Math.floor,rt=e=>({x:e,y:e}),Do={left:"right",right:"left",bottom:"top",top:"bottom"};function Sn(e,t,n){return Z(e,Ct(t,n))}function pt(e,t){return typeof e=="function"?e(t):e}function mt(e){return e.split("-")[0]}function Yt(e){return e.split("-")[1]}function kn(e){return e==="x"?"y":"x"}function Hn(e){return e==="y"?"height":"width"}function ot(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Wn(e){return kn(ot(e))}function Fo(e,t,n){n===void 0&&(n=!1);const i=Yt(e),o=Wn(e),s=Hn(o);let r=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=Qe(r)),[r,Qe(r)]}function _o(e){const t=Qe(e);return[Pn(e),t,Pn(t)]}function Pn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const oi=["left","right"],ri=["right","left"],Io=["top","bottom"],Mo=["bottom","top"];function Bo(e,t,n){switch(e){case"top":case"bottom":return n?t?ri:oi:t?oi:ri;case"left":case"right":return t?Io:Mo;default:return[]}}function ko(e,t,n,i){const o=Yt(e);let s=Bo(mt(e),n==="start",i);return o&&(s=s.map(r=>r+"-"+o),t&&(s=s.concat(s.map(Pn)))),s}function Qe(e){const t=mt(e);return Do[t]+e.slice(t.length)}function Ho(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ci(e){return typeof e!="number"?Ho(e):{top:e,right:e,bottom:e,left:e}}function $e(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function si(e,t,n){let{reference:i,floating:o}=e;const s=ot(t),r=Wn(t),l=Hn(r),u=mt(t),f=s==="y",h=i.x+i.width/2-o.width/2,c=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;let g;switch(u){case"top":g={x:h,y:i.y-o.height};break;case"bottom":g={x:h,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:c};break;case"left":g={x:i.x-o.width,y:c};break;default:g={x:i.x,y:i.y}}switch(Yt(t)){case"start":g[r]-=p*(n&&f?-1:1);break;case"end":g[r]+=p*(n&&f?-1:1);break}return g}async function Wo(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:s,rects:r,elements:l,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:c="floating",altBoundary:p=!1,padding:g=0}=pt(t,e),m=Ci(g),S=l[p?c==="floating"?"reference":"floating":c],v=$e(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(S)))==null||n?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:f,rootBoundary:h,strategy:u})),C=c==="floating"?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),y=await(s.isElement==null?void 0:s.isElement(P))?await(s.getScale==null?void 0:s.getScale(P))||{x:1,y:1}:{x:1,y:1},T=$e(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:P,strategy:u}):C);return{top:(v.top-T.top+m.top)/y.y,bottom:(T.bottom-v.bottom+m.bottom)/y.y,left:(v.left-T.left+m.left)/y.x,right:(T.right-v.right+m.right)/y.x}}const Lo=50,Vo=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,l=r.detectOverflow?r:{...r,detectOverflow:Wo},u=await(r.isRTL==null?void 0:r.isRTL(t));let f=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:c}=si(f,i,u),p=i,g=0;const m={};for(let w=0;w<s.length;w++){const S=s[w];if(!S)continue;const{name:v,fn:C}=S,{x:P,y,data:T,reset:D}=await C({x:h,y:c,initialPlacement:i,placement:p,strategy:o,middlewareData:m,rects:f,platform:l,elements:{reference:e,floating:t}});h=P??h,c=y??c,m[v]={...m[v],...T},D&&g<Lo&&(g++,typeof D=="object"&&(D.placement&&(p=D.placement),D.rects&&(f=D.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:o}):D.rects),{x:h,y:c}=si(f,p,u)),w=-1)}return{x:h,y:c,placement:p,strategy:o,middlewareData:m}},Ko=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:s,platform:r,elements:l,middlewareData:u}=t,{element:f,padding:h=0}=pt(e,t)||{};if(f==null)return{};const c=Ci(h),p={x:n,y:i},g=Wn(o),m=Hn(g),w=await r.getDimensions(f),S=g==="y",v=S?"top":"left",C=S?"bottom":"right",P=S?"clientHeight":"clientWidth",y=s.reference[m]+s.reference[g]-p[g]-s.floating[m],T=p[g]-s.reference[g],D=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let E=D?D[P]:0;(!E||!await(r.isElement==null?void 0:r.isElement(D)))&&(E=l.floating[P]||s.floating[m]);const W=y/2-T/2,I=E/2-w[m]/2-1,H=Ct(c[v],I),z=Ct(c[C],I),F=H,B=E-w[m]-z,M=E/2-w[m]/2+W,K=Sn(F,M,B),X=!u.arrow&&Yt(o)!=null&&M!==K&&s.reference[m]/2-(M<F?H:z)-w[m]/2<0,q=X?M<F?M-F:M-B:0;return{[g]:p[g]+q,data:{[g]:K,centerOffset:M-K-q,...X&&{alignmentOffset:q}},reset:X}}}),zo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:s,rects:r,initialPlacement:l,platform:u,elements:f}=t,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:w=!0,...S}=pt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=mt(o),C=ot(l),P=mt(l)===l,y=await(u.isRTL==null?void 0:u.isRTL(f.floating)),T=p||(P||!w?[Qe(l)]:_o(l)),D=m!=="none";!p&&D&&T.push(...ko(l,w,m,y));const E=[l,...T],W=await u.detectOverflow(t,S),I=[];let H=((i=s.flip)==null?void 0:i.overflows)||[];if(h&&I.push(W[v]),c){const M=Fo(o,r,y);I.push(W[M[0]],W[M[1]])}if(H=[...H,{placement:o,overflows:I}],!I.every(M=>M<=0)){var z,F;const M=(((z=s.flip)==null?void 0:z.index)||0)+1,K=E[M];if(K&&(!(c==="alignment"?C!==ot(K):!1)||H.every(j=>ot(j.placement)===C?j.overflows[0]>0:!0)))return{data:{index:M,overflows:H},reset:{placement:K}};let X=(F=H.filter(q=>q.overflows[0]<=0).sort((q,j)=>q.overflows[1]-j.overflows[1])[0])==null?void 0:F.placement;if(!X)switch(g){case"bestFit":{var B;const q=(B=H.filter(j=>{if(D){const yt=ot(j.placement);return yt===C||yt==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(yt=>yt>0).reduce((yt,Li)=>yt+Li,0)]).sort((j,yt)=>j[1]-yt[1])[0])==null?void 0:B[0];q&&(X=q);break}case"initialPlacement":X=l;break}if(o!==X)return{reset:{placement:X}}}return{}}}};function ai(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function li(e){return To.some(t=>e[t]>=0)}const Uo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:o="referenceHidden",...s}=pt(e,t);switch(o){case"referenceHidden":{const r=await i.detectOverflow(t,{...s,elementContext:"reference"}),l=ai(r,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:li(l)}}}case"escaped":{const r=await i.detectOverflow(t,{...s,altBoundary:!0}),l=ai(r,n.floating);return{data:{escapedOffsets:l,escaped:li(l)}}}default:return{}}}}},Ai=new Set(["left","top"]);async function Yo(e,t){const{placement:n,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=mt(n),l=Yt(n),u=ot(n)==="y",f=Ai.has(r)?-1:1,h=s&&u?-1:1,c=pt(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return l&&typeof m=="number"&&(g=l==="end"?m*-1:m),u?{x:g*h,y:p*f}:{x:p*f,y:g*h}}const Xo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:s,placement:r,middlewareData:l}=t,u=await Yo(t,e);return r===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:r}}}}},qo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o,platform:s}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:u={fn:v=>{let{x:C,y:P}=v;return{x:C,y:P}}},...f}=pt(e,t),h={x:n,y:i},c=await s.detectOverflow(t,f),p=ot(mt(o)),g=kn(p);let m=h[g],w=h[p];if(r){const v=g==="y"?"top":"left",C=g==="y"?"bottom":"right",P=m+c[v],y=m-c[C];m=Sn(P,m,y)}if(l){const v=p==="y"?"top":"left",C=p==="y"?"bottom":"right",P=w+c[v],y=w-c[C];w=Sn(P,w,y)}const S=u.fn({...t,[g]:m,[p]:w});return{...S,data:{x:S.x-n,y:S.y-i,enabled:{[g]:r,[p]:l}}}}}},jo=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:s,middlewareData:r}=t,{offset:l=0,mainAxis:u=!0,crossAxis:f=!0}=pt(e,t),h={x:n,y:i},c=ot(o),p=kn(c);let g=h[p],m=h[c];const w=pt(l,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){const P=p==="y"?"height":"width",y=s.reference[p]-s.floating[P]+S.mainAxis,T=s.reference[p]+s.reference[P]-S.mainAxis;g<y?g=y:g>T&&(g=T)}if(f){var v,C;const P=p==="y"?"width":"height",y=Ai.has(mt(o)),T=s.reference[c]-s.floating[P]+(y&&((v=r.offset)==null?void 0:v[c])||0)+(y?0:S.crossAxis),D=s.reference[c]+s.reference[P]+(y?0:((C=r.offset)==null?void 0:C[c])||0)-(y?S.crossAxis:0);m<T?m=T:m>D&&(m=D)}return{[p]:g,[c]:m}}}},Zo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:s,platform:r,elements:l}=t,{apply:u=()=>{},...f}=pt(e,t),h=await r.detectOverflow(t,f),c=mt(o),p=Yt(o),g=ot(o)==="y",{width:m,height:w}=s.floating;let S,v;c==="top"||c==="bottom"?(S=c,v=p===(await(r.isRTL==null?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(v=c,S=p==="end"?"top":"bottom");const C=w-h.top-h.bottom,P=m-h.left-h.right,y=Ct(w-h[S],C),T=Ct(m-h[v],P),D=!t.middlewareData.shift;let E=y,W=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(W=P),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(E=C),D&&!p){const H=Z(h.left,0),z=Z(h.right,0),F=Z(h.top,0),B=Z(h.bottom,0);g?W=m-2*(H!==0||z!==0?H+z:Z(h.left,h.right)):E=w-2*(F!==0||B!==0?F+B:Z(h.top,h.bottom))}await u({...t,availableWidth:W,availableHeight:E});const I=await r.getDimensions(l.floating);return m!==I.width||w!==I.height?{reset:{rects:!0}}:{}}}};function gn(){return typeof window<"u"}function Xt(e){return Ri(e)?(e.nodeName||"").toLowerCase():"#document"}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lt(e){var t;return(t=(Ri(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ri(e){return gn()?e instanceof Node||e instanceof J(e).Node:!1}function nt(e){return gn()?e instanceof Element||e instanceof J(e).Element:!1}function wt(e){return gn()?e instanceof HTMLElement||e instanceof J(e).HTMLElement:!1}function ci(e){return!gn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}function qe(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=it(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&o!=="inline"&&o!=="contents"}function Go(e){return/^(table|td|th)$/.test(Xt(e))}function pn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Jo=/transform|translate|scale|rotate|perspective|filter/,Qo=/paint|layout|strict|content/,Rt=e=>!!e&&e!=="none";let bn;function Ln(e){const t=nt(e)?it(e):e;return Rt(t.transform)||Rt(t.translate)||Rt(t.scale)||Rt(t.rotate)||Rt(t.perspective)||!Vn()&&(Rt(t.backdropFilter)||Rt(t.filter))||Jo.test(t.willChange||"")||Qo.test(t.contain||"")}function $o(e){let t=At(e);for(;wt(t)&&!Ut(t);){if(Ln(t))return t;if(pn(t))return null;t=At(t)}return null}function Vn(){return bn==null&&(bn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),bn}function Ut(e){return/^(html|body|#document)$/.test(Xt(e))}function it(e){return J(e).getComputedStyle(e)}function mn(e){return nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function At(e){if(Xt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ci(e)&&e.host||lt(e);return ci(t)?t.host:t}function Ni(e){const t=At(e);return Ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:wt(t)&&qe(t)?t:Ni(t)}function jt(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ni(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),r=J(o);if(s){const l=Cn(r);return t.concat(r,r.visualViewport||[],qe(o)?o:[],l&&n?jt(l):[])}else return t.concat(o,jt(o,[],n))}function Cn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ei(e){const t=it(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=wt(e),s=o?e.offsetWidth:n,r=o?e.offsetHeight:i,l=Je(n)!==s||Je(i)!==r;return l&&(n=s,i=r),{width:n,height:i,$:l}}function Kn(e){return nt(e)?e:e.contextElement}function Ht(e){const t=Kn(e);if(!wt(t))return rt(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:s}=Ei(t);let r=(s?Je(n.width):n.width)/i,l=(s?Je(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}const tr=rt(0);function Ti(e){const t=J(e);return!Vn()||!t.visualViewport?tr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function er(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==J(e)?!1:t}function Mt(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Kn(e);let r=rt(1);t&&(i?nt(i)&&(r=Ht(i)):r=Ht(e));const l=er(s,n,i)?Ti(s):rt(0);let u=(o.left+l.x)/r.x,f=(o.top+l.y)/r.y,h=o.width/r.x,c=o.height/r.y;if(s){const p=J(s),g=i&&nt(i)?J(i):i;let m=p,w=Cn(m);for(;w&&i&&g!==m;){const S=Ht(w),v=w.getBoundingClientRect(),C=it(w),P=v.left+(w.clientLeft+parseFloat(C.paddingLeft))*S.x,y=v.top+(w.clientTop+parseFloat(C.paddingTop))*S.y;u*=S.x,f*=S.y,h*=S.x,c*=S.y,u+=P,f+=y,m=J(w),w=Cn(m)}}return $e({width:h,height:c,x:u,y:f})}function vn(e,t){const n=mn(e).scrollLeft;return t?t.left+n:Mt(lt(e)).left+n}function Di(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-vn(e,n),o=n.top+t.scrollTop;return{x:i,y:o}}function nr(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const s=o==="fixed",r=lt(i),l=t?pn(t.floating):!1;if(i===r||l&&s)return n;let u={scrollLeft:0,scrollTop:0},f=rt(1);const h=rt(0),c=wt(i);if((c||!c&&!s)&&((Xt(i)!=="body"||qe(r))&&(u=mn(i)),c)){const g=Mt(i);f=Ht(i),h.x=g.x+i.clientLeft,h.y=g.y+i.clientTop}const p=r&&!c&&!s?Di(r,u):rt(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+h.x+p.x,y:n.y*f.y-u.scrollTop*f.y+h.y+p.y}}function ir(e){return Array.from(e.getClientRects())}function or(e){const t=lt(e),n=mn(e),i=e.ownerDocument.body,o=Z(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=Z(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+vn(e);const l=-n.scrollTop;return it(i).direction==="rtl"&&(r+=Z(t.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:l}}const ui=25;function rr(e,t){const n=J(e),i=lt(e),o=n.visualViewport;let s=i.clientWidth,r=i.clientHeight,l=0,u=0;if(o){s=o.width,r=o.height;const h=Vn();(!h||h&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}const f=vn(i);if(f<=0){const h=i.ownerDocument,c=h.body,p=getComputedStyle(c),g=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(i.clientWidth-c.clientWidth-g);m<=ui&&(s-=m)}else f<=ui&&(s+=f);return{width:s,height:r,x:l,y:u}}function sr(e,t){const n=Mt(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,s=wt(e)?Ht(e):rt(1),r=e.clientWidth*s.x,l=e.clientHeight*s.y,u=o*s.x,f=i*s.y;return{width:r,height:l,x:u,y:f}}function di(e,t,n){let i;if(t==="viewport")i=rr(e,n);else if(t==="document")i=or(lt(e));else if(nt(t))i=sr(t,n);else{const o=Ti(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $e(i)}function Fi(e,t){const n=At(e);return n===t||!nt(n)||Ut(n)?!1:it(n).position==="fixed"||Fi(n,t)}function ar(e,t){const n=t.get(e);if(n)return n;let i=jt(e,[],!1).filter(l=>nt(l)&&Xt(l)!=="body"),o=null;const s=it(e).position==="fixed";let r=s?At(e):e;for(;nt(r)&&!Ut(r);){const l=it(r),u=Ln(r);!u&&l.position==="fixed"&&(o=null),(s?!u&&!o:!u&&l.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||qe(r)&&!u&&Fi(e,r))?i=i.filter(h=>h!==r):o=l,r=At(r)}return t.set(e,i),i}function lr(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const r=[...n==="clippingAncestors"?pn(t)?[]:ar(t,this._c):[].concat(n),i],l=di(t,r[0],o);let u=l.top,f=l.right,h=l.bottom,c=l.left;for(let p=1;p<r.length;p++){const g=di(t,r[p],o);u=Z(g.top,u),f=Ct(g.right,f),h=Ct(g.bottom,h),c=Z(g.left,c)}return{width:f-c,height:h-u,x:c,y:u}}function cr(e){const{width:t,height:n}=Ei(e);return{width:t,height:n}}function ur(e,t,n){const i=wt(t),o=lt(t),s=n==="fixed",r=Mt(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const u=rt(0);function f(){u.x=vn(o)}if(i||!i&&!s)if((Xt(t)!=="body"||qe(o))&&(l=mn(t)),i){const g=Mt(t,!0,s,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else o&&f();s&&!i&&o&&f();const h=o&&!i&&!s?Di(o,l):rt(0),c=r.left+l.scrollLeft-u.x-h.x,p=r.top+l.scrollTop-u.y-h.y;return{x:c,y:p,width:r.width,height:r.height}}function xn(e){return it(e).position==="static"}function hi(e,t){if(!wt(e)||it(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return lt(e)===n&&(n=n.ownerDocument.body),n}function _i(e,t){const n=J(e);if(pn(e))return n;if(!wt(e)){let o=At(e);for(;o&&!Ut(o);){if(nt(o)&&!xn(o))return o;o=At(o)}return n}let i=hi(e,t);for(;i&&Go(i)&&xn(i);)i=hi(i,t);return i&&Ut(i)&&xn(i)&&!Ln(i)?n:i||$o(e)||n}const dr=async function(e){const t=this.getOffsetParent||_i,n=this.getDimensions,i=await n(e.floating);return{reference:ur(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function hr(e){return it(e).direction==="rtl"}const fr={convertOffsetParentRelativeRectToViewportRelativeRect:nr,getDocumentElement:lt,getClippingRect:lr,getOffsetParent:_i,getElementRects:dr,getClientRects:ir,getDimensions:cr,getScale:Ht,isElement:nt,isRTL:hr};function Ii(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gr(e,t){let n=null,i;const o=lt(e);function s(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function r(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),s();const f=e.getBoundingClientRect(),{left:h,top:c,width:p,height:g}=f;if(l||t(),!p||!g)return;const m=Ze(c),w=Ze(o.clientWidth-(h+p)),S=Ze(o.clientHeight-(c+g)),v=Ze(h),P={rootMargin:-m+"px "+-w+"px "+-S+"px "+-v+"px",threshold:Z(0,Ct(1,u))||1};let y=!0;function T(D){const E=D[0].intersectionRatio;if(E!==u){if(!y)return r();E?r(!1,E):i=setTimeout(()=>{r(!1,1e-7)},1e3)}E===1&&!Ii(f,e.getBoundingClientRect())&&r(),y=!1}try{n=new IntersectionObserver(T,{...P,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,P)}n.observe(e)}return r(!0),s}function pr(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,f=Kn(e),h=o||s?[...f?jt(f):[],...t?jt(t):[]]:[];h.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const c=f&&l?gr(f,n):null;let p=-1,g=null;r&&(g=new ResizeObserver(v=>{let[C]=v;C&&C.target===f&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var P;(P=g)==null||P.observe(t)})),n()}),f&&!u&&g.observe(f),t&&g.observe(t));let m,w=u?Mt(e):null;u&&S();function S(){const v=Mt(e);w&&!Ii(w,v)&&n(),w=v,m=requestAnimationFrame(S)}return n(),()=>{var v;h.forEach(C=>{o&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),c==null||c(),(v=g)==null||v.disconnect(),g=null,u&&cancelAnimationFrame(m)}}const mr=Xo,vr=qo,wr=zo,yr=Zo,br=Uo,xr=Ko,Or=jo,Sr=(e,t,n)=>{const i=new Map,o={platform:fr,...n},s={...o.platform,_c:i};return Vo(e,t,{...o,platform:s})};function Nt(e){return typeof e=="function"?e():e}function Mi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fi(e,t){const n=Mi(e);return Math.round(t*n)/n}function Pr(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Cr(e){const t=e.whileElementsMounted,n=O(()=>Nt(e.open)??!0),i=O(()=>Nt(e.middleware)),o=O(()=>Nt(e.transform)??!0),s=O(()=>Nt(e.placement)??"bottom"),r=O(()=>Nt(e.strategy)??"absolute"),l=O(()=>Nt(e.sideOffset)??0),u=O(()=>Nt(e.alignOffset)??0),f=e.reference;let h=V(0),c=V(0);const p=St(null);let g=V(Ge(d(r))),m=V(Ge(d(s))),w=V(Ge({})),S=V(!1),v=!1;const C=O(()=>{const I=p.current?fi(p.current,d(h)):d(h),H=p.current?fi(p.current,d(c)):d(c);return d(o)?{position:d(g),left:"0",top:"0",transform:`translate(${I}px, ${H}px)`,...p.current&&Mi(p.current)>=1.5&&{willChange:"transform"}}:{position:d(g),left:`${I}px`,top:`${H}px`}});let P;function y(){f.current===null||p.current===null||Sr(f.current,p.current,{middleware:d(i),placement:d(s),strategy:d(r)}).then(I=>{const H=f.current;if(Ar(H)){A(w,{...d(w),hide:{...d(w).hide,referenceHidden:!0}},!0);return}if(!d(n)&&d(h)!==0&&d(c)!==0){const F=Math.max(Math.abs(d(l)),Math.abs(d(u)),15);if(I.x<=F&&I.y<=F)return}A(h,I.x,!0),A(c,I.y,!0),A(g,I.strategy,!0),A(m,I.placement,!0),A(w,I.middlewareData,!0),A(S,!0)})}function T(){typeof P=="function"&&(P(),P=void 0)}function D(){if(T(),t===void 0){y();return}d(n)&&(f.current===null||p.current===null||(P=t(f.current,p.current,y)))}function E(){!d(n)&&p.current===null&&A(S,!1)}function W(){return[d(i),d(s),d(r),d(l),d(u),d(n)]}return tt(()=>{t===void 0&&d(n)&&y()}),tt(D),tt(()=>{if(t!==void 0){if(W(),!d(n)){v=!1;return}if(!d(S)){v=!1;return}if(!v){v=!0;return}y()}}),tt(E),tt(()=>T),{floating:p,reference:f,get strategy(){return d(g)},get placement(){return d(m)},get middlewareData(){return d(w)},get isPositioned(){return d(S)},get floatingStyles(){return d(C)},get update(){return y}}}function Ar(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const Rr={top:"bottom",right:"left",bottom:"top",left:"right"},zn=new Xe("Floating.Root"),gi=new Xe("Floating.Content"),Un=new Xe("Floating.Root");class tn{constructor(){N(this,"anchorNode",St(null));N(this,"customAnchorNode",St(null));N(this,"triggerNode",St(null));tt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(t=!1){return t?Un.set(new tn):zn.set(new tn)}}var Gt,Jt,Qt,ln,$t,cn,te,ee,ne,ie,oe,re,se,ae,le,ce,ue,de,he,fe,ge,pe,me,ve;const un=class un{constructor(t,n){N(this,"opts");N(this,"root");N(this,"contentRef",St(null));N(this,"wrapperRef",St(null));N(this,"arrowRef",St(null));N(this,"contentAttachment",_t(this.contentRef));N(this,"wrapperAttachment",_t(this.wrapperRef));N(this,"arrowAttachment",_t(this.arrowRef));N(this,"arrowId",St(mi()));b(this,Gt,O(()=>{if(typeof this.opts.style=="string")return qi(this.opts.style);if(!this.opts.style)return{}}));b(this,Jt);b(this,Qt,new wo(()=>this.arrowRef.current??void 0));b(this,ln,O(()=>{var t;return((t=a(this,Qt))==null?void 0:t.width)??0}));b(this,$t,O(()=>{var t;return((t=a(this,Qt))==null?void 0:t.height)??0}));b(this,cn,O(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));b(this,te,O(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));b(this,ee,O(()=>d(a(this,te)).length>0));b(this,ne,O(()=>({padding:this.opts.collisionPadding.current,boundary:d(a(this,te)).filter(ji),altBoundary:this.hasExplicitBoundaries})));b(this,ie,V(void 0));b(this,oe,V(void 0));b(this,re,V(void 0));b(this,se,V(void 0));b(this,ae,O(()=>[mr({mainAxis:this.opts.sideOffset.current+d(a(this,$t)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&vr({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Or():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&wr({...this.detectOverflowOptions}),yr({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:i})=>{const{width:o,height:s}=t.reference;A(a(this,ie),n,!0),A(a(this,oe),i,!0),A(a(this,re),o,!0),A(a(this,se),s,!0)}}),this.arrowRef.current&&xr({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Nr({arrowWidth:d(a(this,ln)),arrowHeight:d(a(this,$t))}),this.opts.hideWhenDetached.current&&br({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));N(this,"floating");b(this,le,O(()=>Er(this.floating.placement)));b(this,ce,O(()=>Tr(this.floating.placement)));b(this,ue,O(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));b(this,de,O(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));b(this,he,O(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));b(this,fe,V());b(this,ge,O(()=>Rr[this.placedSide]));b(this,pe,O(()=>{var t,n,i;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${d(a(this,ie))}px`,"--bits-floating-available-height":`${d(a(this,oe))}px`,"--bits-floating-anchor-width":`${d(a(this,re))}px`,"--bits-floating-anchor-height":`${d(a(this,se))}px`,...((i=this.floating.middlewareData.hide)==null?void 0:i.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...d(a(this,Gt))},dir:this.opts.dir.current,...this.wrapperAttachment}}));b(this,me,O(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:pi({...d(a(this,Gt))}),...this.contentAttachment})));b(this,ve,O(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=t,this.root=n,Y(this,Jt,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Pt(()=>t.customAnchor.current,i=>{this.root.customAnchorNode.current=i}),this.floating=Cr({strategy:()=>this.opts.strategy.current,placement:()=>d(a(this,cn)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...i)=>{var s;return pr(...i,{animationFrame:((s=a(this,Jt))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),tt(()=>{var i;this.floating.isPositioned&&((i=this.opts.onPlaced)==null||i.current())}),Pt(()=>this.contentRef.current,i=>{if(!i||!this.opts.enabled.current)return;const o=Zi(i),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==i||!this.opts.enabled.current)return;const r=o.getComputedStyle(i).zIndex;r!==this.contentZIndex&&(this.contentZIndex=r)});return()=>{o.cancelAnimationFrame(s)}}),tt(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?gi.set(new un(t,Un.get())):gi.set(new un(t,zn.get()))}get hasExplicitBoundaries(){return d(a(this,ee))}set hasExplicitBoundaries(t){A(a(this,ee),t)}get detectOverflowOptions(){return d(a(this,ne))}set detectOverflowOptions(t){A(a(this,ne),t)}get middleware(){return d(a(this,ae))}set middleware(t){A(a(this,ae),t)}get placedSide(){return d(a(this,le))}set placedSide(t){A(a(this,le),t)}get placedAlign(){return d(a(this,ce))}set placedAlign(t){A(a(this,ce),t)}get arrowX(){return d(a(this,ue))}set arrowX(t){A(a(this,ue),t)}get arrowY(){return d(a(this,de))}set arrowY(t){A(a(this,de),t)}get cannotCenterArrow(){return d(a(this,he))}set cannotCenterArrow(t){A(a(this,he),t)}get contentZIndex(){return d(a(this,fe))}set contentZIndex(t){A(a(this,fe),t,!0)}get arrowBaseSide(){return d(a(this,ge))}set arrowBaseSide(t){A(a(this,ge),t)}get wrapperProps(){return d(a(this,pe))}set wrapperProps(t){A(a(this,pe),t)}get props(){return d(a(this,me))}set props(t){A(a(this,me),t)}get arrowStyle(){return d(a(this,ve))}set arrowStyle(t){A(a(this,ve),t)}};Gt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,ln=new WeakMap,$t=new WeakMap,cn=new WeakMap,te=new WeakMap,ee=new WeakMap,ne=new WeakMap,ie=new WeakMap,oe=new WeakMap,re=new WeakMap,se=new WeakMap,ae=new WeakMap,le=new WeakMap,ce=new WeakMap,ue=new WeakMap,de=new WeakMap,he=new WeakMap,fe=new WeakMap,ge=new WeakMap,pe=new WeakMap,me=new WeakMap,ve=new WeakMap;let An=un;class en{constructor(t,n){N(this,"opts");N(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Xi(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new en(t,Un.get()):new en(t,zn.get())}}function Nr(e){return{name:"transformOrigin",options:e,fn(t){var S,v,C;const{placement:n,rects:i,middlewareData:o}=t,r=((S=o.arrow)==null?void 0:S.centerOffset)!==0,l=r?0:e.arrowWidth,u=r?0:e.arrowHeight,[f,h]=Yn(n),c={start:"0%",center:"50%",end:"100%"}[h],p=(((v=o.arrow)==null?void 0:v.x)??0)+l/2,g=(((C=o.arrow)==null?void 0:C.y)??0)+u/2;let m="",w="";return f==="bottom"?(m=r?c:`${p}px`,w=`${-u}px`):f==="top"?(m=r?c:`${p}px`,w=`${i.floating.height+u}px`):f==="right"?(m=`${-u}px`,w=r?c:`${g}px`):f==="left"&&(m=`${i.floating.width+u}px`,w=r?c:`${g}px`),{data:{x:m,y:w}}}}}function Yn(e){const[t,n="center"]=e.split("-");return[t,n]}function Er(e){return Yn(e)[0]}function Tr(e){return Yn(e)[1]}function Dr(e,t){Q(t,!0);let n=x(t,"tooltip",3,!1);tn.create(n());var i=L(),o=k(i);U(o,()=>t.children??et),_(e,i),$()}var dt,Dt,Ot;class Fr{constructor(t){b(this,dt);b(this,Dt,O(()=>a(this,dt).candidateValues()));b(this,Ot);Y(this,dt,t),Y(this,Ot,Pi("",{afterMs:1e3,getWindow:a(this,dt).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!a(this,dt).enabled()||!d(a(this,Dt)).length)return;a(this,Ot).current=a(this,Ot).current+t;const n=a(this,dt).getCurrentItem(),i=d(a(this,Dt)).find(l=>l===n)??"",o=d(a(this,Dt)).map(l=>l??""),s=Bn(o,a(this,Ot).current,i),r=d(a(this,Dt)).find(l=>l===s);return r&&a(this,dt).onMatch(r),r}resetTypeahead(){a(this,Ot).current=""}}dt=new WeakMap,Dt=new WeakMap,Ot=new WeakMap;const _r=[qt,wi,yi],Ir=[kt,bi,xi],Mr=[..._r,...Ir],Br=$i({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),je=new Xe("Select.Root | Combobox.Root"),Bi=new Xe("Select.Content | Combobox.Content");var we,ye,be,xe,Oe,Se,Pe,Ce,Ae,Re;class ki{constructor(t){N(this,"opts");b(this,we,V(!1));b(this,ye,V(null));b(this,be,V(null));N(this,"contentPresence");b(this,xe,V(null));b(this,Oe,V(null));b(this,Se,V(""));b(this,Pe,V(null));b(this,Ce,O(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));b(this,Ae,O(()=>{if(this.highlightedNode)return this.highlightedNode.id}));b(this,Re,O(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));N(this,"isUsingKeyboard",!1);N(this,"isCombobox",!1);N(this,"domContext",new Mn(()=>null));N(this,"getBitsAttr",t=>Br.getAttr(t,this.isCombobox?"combobox":void 0));this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new Ji({ref:R(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Ui(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return d(a(this,we))}set touchedInput(t){A(a(this,we),t,!0)}get inputNode(){return d(a(this,ye))}set inputNode(t){A(a(this,ye),t,!0)}get contentNode(){return d(a(this,be))}set contentNode(t){A(a(this,be),t,!0)}get viewportNode(){return d(a(this,xe))}set viewportNode(t){A(a(this,xe),t,!0)}get triggerNode(){return d(a(this,Oe))}set triggerNode(t){A(a(this,Oe),t,!0)}get valueId(){return d(a(this,Se))}set valueId(t){A(a(this,Se),t,!0)}get highlightedNode(){return d(a(this,Pe))}set highlightedNode(t){A(a(this,Pe),t,!0)}get highlightedValue(){return d(a(this,Ce))}set highlightedValue(t){A(a(this,Ce),t)}get highlightedId(){return d(a(this,Ae))}set highlightedId(t){A(a(this,Ae),t)}get highlightedLabel(){return d(a(this,Re))}set highlightedLabel(t){A(a(this,Re),t)}setHighlightedNode(t,n=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||n)&&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 n=this.getCandidateNodes();if(n.length){if(this.viewportNode){const i=this.viewportNode.getBoundingClientRect();n=n.filter(o=>{if(!this.viewportNode)return!1;const s=o.getBoundingClientRect();return s.right<=i.right&&s.left>=i.left&&s.bottom<=i.bottom&&s.top>=i.top})}this.setHighlightedNode(n[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(i=>i.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()}}we=new WeakMap,ye=new WeakMap,be=new WeakMap,xe=new WeakMap,Oe=new WeakMap,Se=new WeakMap,Pe=new WeakMap,Ce=new WeakMap,Ae=new WeakMap,Re=new WeakMap;var Ne,Ee,Te,De;class kr extends ki{constructor(n){super(n);N(this,"opts");N(this,"isMulti",!1);b(this,Ne,O(()=>this.opts.value.current!==""));b(this,Ee,O(()=>{var n;return this.opts.items.current.length?((n=this.opts.items.current.find(i=>i.value===this.opts.value.current))==null?void 0:n.label)??"":""}));b(this,Te,O(()=>this.opts.items.current.length?this.opts.items.current.filter(i=>!i.disabled).map(i=>i.label):[]));b(this,De,O(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=n,tt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Pt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return d(a(this,Ne))}set hasValue(n){A(a(this,Ne),n)}get currentLabel(){return d(a(this,Ee))}set currentLabel(n){A(a(this,Ee),n)}get candidateLabels(){return d(a(this,Te))}set candidateLabels(n){A(a(this,Te),n)}get dataTypeaheadEnabled(){return d(a(this,De))}set dataTypeaheadEnabled(n){A(a(this,De),n)}includesItem(n){return this.opts.value.current===n}toggleItem(n,i=n){const o=this.includesItem(n)?"":n;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=i)}setInitialHighlightedNode(){vi(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const n=this.getNodeByValue(this.opts.value.current);if(n){this.setHighlightedNode(n,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ne=new WeakMap,Ee=new WeakMap,Te=new WeakMap,De=new WeakMap;var Fe;class Hr extends ki{constructor(n){super(n);N(this,"opts");N(this,"isMulti",!0);b(this,Fe,O(()=>this.opts.value.current.length>0));this.opts=n,tt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Pt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return d(a(this,Fe))}set hasValue(n){A(a(this,Fe),n)}includesItem(n){return this.opts.value.current.includes(n)}toggleItem(n,i=n){this.includesItem(n)?this.opts.value.current=this.opts.value.current.filter(o=>o!==n):this.opts.value.current=[...this.opts.value.current,n],this.opts.inputValue.current=i}setInitialHighlightedNode(){vi(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const n=this.getNodeByValue(this.opts.value.current[0]);if(n){this.setHighlightedNode(n,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Fe=new WeakMap;class Wr{static create(t){const{type:n,...i}=t,o=n==="single"?new kr(i):new Hr(i);return je.set(o)}}var Ft,zt,st,Hi,Nn,En,_e;const Xn=class Xn{constructor(t,n){b(this,st);N(this,"opts");N(this,"root");N(this,"attachment");b(this,Ft);b(this,zt);b(this,_e,O(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qi(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Si(this.root.opts.open.current),"data-disabled":Oi(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})));this.opts=t,this.root=n,this.attachment=_t(t.ref,i=>this.root.triggerNode=i),this.root.domContext=new Mn(t.ref),Y(this,Ft,new Ao({getCurrentItem:()=>this.root.highlightedNode,onMatch:i=>{this.root.setHighlightedNode(i)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Y(this,zt,new Fr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:i=>{if(this.root.isMulti||!this.root.opts.items.current)return;const o=this.root.opts.items.current.find(s=>s.label===i);o&&(this.root.opts.value.current=o.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)}static create(t){return new Xn(t,je.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===kt||t.key===qt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===Qn||t.key===yn||t.key===qt||t.key===kt)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){a(this,zt).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const r=this.root.getCandidateNodes();if(!r.length)return;if(t.key===qt){const l=r[0];this.root.setHighlightedNode(l)}else if(t.key===kt){const l=r[r.length-1];this.root.setHighlightedNode(l)}return}if(t.key===$n){this.root.handleClose();return}if((t.key===Qn||t.key===yn&&a(this,Ft).search==="")&&!t.isComposing&&(t.preventDefault(),Bt(this,st,En).call(this)))return;if(t.key===kt&&t.altKey&&this.root.handleClose(),Mr.includes(t.key)){t.preventDefault();const r=this.root.getCandidateNodes(),l=this.root.highlightedNode,u=l?r.indexOf(l):-1,f=this.root.opts.loop.current;let h;if(t.key===qt?h=xo(r,u,f):t.key===kt?h=Oo(r,u,f):t.key===bi?h=So(r,u,10,f):t.key===wi?h=Po(r,u,10,f):t.key===yi?h=r[0]:t.key===xi&&(h=r[r.length-1]),!h)return;this.root.setHighlightedNode(h);return}const n=t.ctrlKey||t.altKey||t.metaKey,i=t.key.length===1,o=t.key===yn,s=this.root.getCandidateNodes();if(t.key!==$n){if(!n&&(i||o)){!a(this,Ft).handleTypeaheadSearch(t.key,s)&&o&&(t.preventDefault(),Bt(this,st,En).call(this));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 n=t.target;n!=null&&n.hasPointerCapture(t.pointerId)&&(n==null||n.releasePointerCapture(t.pointerId)),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?Bt(this,st,Nn).call(this,t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?Bt(this,st,Nn).call(this,t):this.root.handleClose()))}get props(){return d(a(this,_e))}set props(t){A(a(this,_e),t)}};Ft=new WeakMap,zt=new WeakMap,st=new WeakSet,Hi=function(){this.root.opts.open.current=!0,a(this,zt).resetTypeahead(),a(this,Ft).resetTypeahead()},Nn=function(t){Bt(this,st,Hi).call(this)},En=function(){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)},_e=new WeakMap;let Rn=Xn;var Ie,dn,Me,Be;const qn=class qn{constructor(t,n){N(this,"opts");N(this,"root");N(this,"attachment");b(this,Ie,V(!1));N(this,"domContext");b(this,dn,O(()=>Pr(this.root.isCombobox?"combobox":"select")));N(this,"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()});N(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});N(this,"onOpenAutoFocus",t=>{t.preventDefault()});N(this,"onCloseAutoFocus",t=>{t.preventDefault()});b(this,Me,O(()=>({open:this.root.opts.open.current})));b(this,Be,O(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Si(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...d(a(this,dn))},onpointermove:this.onpointermove,...this.attachment})));N(this,"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)}});this.opts=t,this.root=n,this.attachment=_t(t.ref,i=>this.root.contentNode=i),this.domContext=new Mn(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Gi(()=>{this.root.contentNode=null,this.isPositioned=!1}),Pt(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}static create(t){return Bi.set(new qn(t,je.get()))}get isPositioned(){return d(a(this,Ie))}set isPositioned(t){A(a(this,Ie),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return d(a(this,Me))}set snippetProps(t){A(a(this,Me),t)}get props(){return d(a(this,Be))}set props(t){A(a(this,Be),t)}};Ie=new WeakMap,dn=new WeakMap,Me=new WeakMap,Be=new WeakMap;let Tn=qn;var ke,He,We,Le,Ve;const jn=class jn{constructor(t,n){N(this,"opts");N(this,"root");N(this,"attachment");b(this,ke,O(()=>this.root.includesItem(this.opts.value.current)));b(this,He,O(()=>this.root.highlightedValue===this.opts.value.current));N(this,"prevHighlighted",new yo(()=>this.isHighlighted));b(this,We,V(!1));b(this,Le,O(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));b(this,Ve,O(()=>({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":Oi(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})));this.opts=t,this.root=n,this.attachment=_t(t.ref),Pt([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),Pt(()=>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)}static create(t){return new jn(t,je.get())}get isSelected(){return d(a(this,ke))}set isSelected(t){A(a(this,ke),t)}get isHighlighted(){return d(a(this,He))}set isHighlighted(t){A(a(this,He),t)}get mounted(){return d(a(this,We))}set mounted(t){A(a(this,We),t,!0)}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()}get snippetProps(){return d(a(this,Le))}set snippetProps(t){A(a(this,Le),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!to){fo(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)}get props(){return d(a(this,Ve))}set props(t){A(a(this,Ve),t)}};ke=new WeakMap,He=new WeakMap,We=new WeakMap,Le=new WeakMap,Ve=new WeakMap;let Dn=jn;var Ke,ze;const Zn=class Zn{constructor(t,n){N(this,"opts");N(this,"root");b(this,Ke,O(()=>this.root.opts.name.current!==""));b(this,ze,O(()=>({disabled:ti(this.root.opts.disabled.current),required:ti(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=n,this.onfocus=this.onfocus.bind(this)}static create(t){return new Zn(t,je.get())}get shouldRender(){return d(a(this,Ke))}set shouldRender(t){A(a(this,Ke),t)}onfocus(t){var n,i;t.preventDefault(),this.root.isCombobox?(i=this.root.inputNode)==null||i.focus():(n=this.root.triggerNode)==null||n.focus()}get props(){return d(a(this,ze))}set props(t){A(a(this,ze),t)}};Ke=new WeakMap,ze=new WeakMap;let Fn=Zn;var Ue,Ye;const Gn=class Gn{constructor(t,n){N(this,"opts");N(this,"content");N(this,"root");N(this,"attachment");b(this,Ue,V(0));b(this,Ye,O(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=t,this.content=n,this.root=n.root,this.attachment=_t(t.ref,i=>{this.root.viewportNode=i})}static create(t){return new Gn(t,Bi.get())}get prevScrollTop(){return d(a(this,Ue))}set prevScrollTop(t){A(a(this,Ue),t,!0)}get props(){return d(a(this,Ye))}set props(t){A(a(this,Ye),t)}};Ue=new WeakMap,Ye=new WeakMap;let _n=Gn;function On(e,t){Q(t,!0);let n=x(t,"value",15);const i=Fn.create({value:R(()=>n())});var o=L(),s=k(o);{var r=l=>{Eo(l,It(()=>i.props,{get autocomplete(){return t.autocomplete},get value(){return n()},set value(u){n(u)}}))};G(s,l=>{i.shouldRender&&l(r)})}_(e,o),$()}function Lr(e,t){Q(t,!0);let n=x(t,"tooltip",3,!1);en.create({id:R(()=>t.id),virtualEl:R(()=>t.virtualEl),ref:t.ref},n());var i=L(),o=k(i);U(o,()=>t.children??et),_(e,i),$()}function Vr(e,t){Q(t,!0);let n=x(t,"side",3,"bottom"),i=x(t,"sideOffset",3,0),o=x(t,"align",3,"center"),s=x(t,"alignOffset",3,0),r=x(t,"arrowPadding",3,0),l=x(t,"avoidCollisions",3,!0),u=x(t,"collisionBoundary",19,()=>[]),f=x(t,"collisionPadding",3,0),h=x(t,"hideWhenDetached",3,!1),c=x(t,"onPlaced",3,()=>{}),p=x(t,"sticky",3,"partial"),g=x(t,"updatePositionStrategy",3,"optimized"),m=x(t,"strategy",3,"fixed"),w=x(t,"dir",3,"ltr"),S=x(t,"style",19,()=>({})),v=x(t,"wrapperId",19,mi),C=x(t,"customAnchor",3,null),P=x(t,"tooltip",3,!1);const y=An.create({side:R(()=>n()),sideOffset:R(()=>i()),align:R(()=>o()),alignOffset:R(()=>s()),id:R(()=>t.id),arrowPadding:R(()=>r()),avoidCollisions:R(()=>l()),collisionBoundary:R(()=>u()),collisionPadding:R(()=>f()),hideWhenDetached:R(()=>h()),onPlaced:R(()=>c()),sticky:R(()=>p()),updatePositionStrategy:R(()=>g()),strategy:R(()=>m()),dir:R(()=>w()),style:R(()=>S()),enabled:R(()=>t.enabled),wrapperId:R(()=>v()),customAnchor:R(()=>C())},P()),T=O(()=>gt(y.wrapperProps,{style:{pointerEvents:"auto"}}));var D=L(),E=k(D);U(E,()=>t.content??et,()=>({props:y.props,wrapperProps:d(T)})),_(e,D),$()}function Kr(e,t){Q(t,!0),ao(()=>{var o;(o=t.onPlaced)==null||o.call(t)});var n=L(),i=k(n);U(i,()=>t.content??et,()=>({props:{},wrapperProps:{}})),_(e,n),$()}function zr(e,t){let n=x(t,"isStatic",3,!1),i=vt(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=L(),s=k(o);{var r=u=>{Kr(u,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=u=>{Vr(u,It({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>i))};G(s,u=>{n()?u(r):u(l,-1)})}_(e,o)}var Ur=at("<!> <!>",1);function Wi(e,t){Q(t,!0);let n=x(t,"interactOutsideBehavior",3,"close"),i=x(t,"trapFocus",3,!0),o=x(t,"isValidEvent",3,()=>!1),s=x(t,"customAnchor",3,null),r=x(t,"isStatic",3,!1),l=x(t,"tooltip",3,!1),u=x(t,"contentPointerEvents",3,"auto"),f=vt(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);zr(e,{get isStatic(){return r()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return l()},content:(c,p)=>{let g=()=>p==null?void 0:p().props,m=()=>p==null?void 0:p().wrapperProps;var w=Ur(),S=k(w);{var v=y=>{ei(y,{get preventScroll(){return t.preventScroll}})},C=y=>{ei(y,{get preventScroll(){return t.preventScroll}})};G(S,y=>{t.forceMount&&t.enabled?y(v):t.forceMount||y(C,1)})}var P=In(S,2);eo(P,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return i()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(T,D)=>{let E=()=>D==null?void 0:D().props;no(T,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(W,I)=>{io(W,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,F)=>{let B=()=>F==null?void 0:F().props;oo(z,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,K)=>{var X=L(),q=k(X);{let j=O(()=>({props:gt(f,g(),B(),E(),{style:{pointerEvents:u()}}),wrapperProps:m()}));U(q,()=>t.popper??et,()=>d(j))}_(M,X)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),_(c,w)},$$slots:{content:!0}}),$()}function Yr(e,t){let n=x(t,"interactOutsideBehavior",3,"close"),i=x(t,"trapFocus",3,!0),o=x(t,"isValidEvent",3,()=>!1),s=x(t,"customAnchor",3,null),r=x(t,"isStatic",3,!1),l=vt(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var u=L(),f=k(u);{var h=c=>{Wi(c,It({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return r()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return i()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};G(f,c=>{t.shouldRender&&c(h)})}_(e,u)}function Xr(e,t){let n=x(t,"interactOutsideBehavior",3,"close"),i=x(t,"trapFocus",3,!0),o=x(t,"isValidEvent",3,()=>!1),s=x(t,"customAnchor",3,null),r=x(t,"isStatic",3,!1),l=vt(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Wi(e,It({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return r()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return i()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}var qr=at("<div><div><!></div></div>"),jr=at("<div><div><!></div></div>");function ps(e,t){const n=hn();Q(t,!0);let i=x(t,"id",19,()=>fn(n)),o=x(t,"ref",15,null),s=x(t,"forceMount",3,!1),r=x(t,"side",3,"bottom"),l=x(t,"onInteractOutside",3,ft),u=x(t,"onEscapeKeydown",3,ft),f=x(t,"preventScroll",3,!1),h=vt(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const c=Tn.create({id:R(()=>i()),ref:R(()=>o(),v=>o(v)),onInteractOutside:R(()=>l()),onEscapeKeydown:R(()=>u())}),p=O(()=>gt(h,c.props));var g=L(),m=k(g);{var w=v=>{Xr(v,It(()=>d(p),()=>c.popperProps,{get ref(){return c.opts.ref},get side(){return r()},get enabled(){return c.root.opts.open.current},get id(){return i()},get preventScroll(){return f()},forceMount:!0,get shouldRender(){return c.shouldRender},popper:(P,y)=>{let T=()=>y==null?void 0:y().props,D=()=>y==null?void 0:y().wrapperProps;const E=O(()=>gt(T(),{style:c.props.style},{style:t.style}));var W=L(),I=k(W);{var H=F=>{var B=L(),M=k(B);{let K=O(()=>({props:d(E),wrapperProps:D(),...c.snippetProps}));U(M,()=>t.child,()=>d(K))}_(F,B)},z=F=>{var B=qr();ht(B,()=>({...D()}));var M=Et(B);ht(M,()=>({...d(E)}));var K=Et(M);U(K,()=>t.children??et),Tt(M),Tt(B),_(F,B)};G(I,F=>{t.child?F(H):F(z,-1)})}_(P,W)},$$slots:{popper:!0}}))},S=v=>{Yr(v,It(()=>d(p),()=>c.popperProps,{get ref(){return c.opts.ref},get side(){return r()},get open(){return c.root.opts.open.current},get id(){return i()},get preventScroll(){return f()},forceMount:!1,get shouldRender(){return c.shouldRender},popper:(P,y)=>{let T=()=>y==null?void 0:y().props,D=()=>y==null?void 0:y().wrapperProps;const E=O(()=>gt(T(),{style:c.props.style},{style:t.style}));var W=L(),I=k(W);{var H=F=>{var B=L(),M=k(B);{let K=O(()=>({props:d(E),wrapperProps:D(),...c.snippetProps}));U(M,()=>t.child,()=>d(K))}_(F,B)},z=F=>{var B=jr();ht(B,()=>({...D()}));var M=Et(B);ht(M,()=>({...d(E)}));var K=Et(M);U(K,()=>t.children??et),Tt(M),Tt(B),_(F,B)};G(I,F=>{t.child?F(H):F(z,-1)})}_(P,W)},$$slots:{popper:!0}}))};G(m,v=>{s()?v(w):s()||v(S,1)})}_(e,g),$()}function Zr(e,t){Q(t,!0);let n=x(t,"mounted",15,!1),i=x(t,"onMountedChange",3,ft);bo(()=>(n(!0),i()(!0),()=>{n(!1),i()(!1)})),$()}var Gr=at("<div><!></div>"),Jr=at("<!> <!>",1);function ms(e,t){const n=hn();Q(t,!0);let i=x(t,"id",19,()=>fn(n)),o=x(t,"ref",15,null),s=x(t,"label",19,()=>t.value),r=x(t,"disabled",3,!1),l=x(t,"onHighlight",3,ft),u=x(t,"onUnhighlight",3,ft),f=vt(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const h=Dn.create({id:R(()=>i()),ref:R(()=>o(),v=>o(v)),value:R(()=>t.value),disabled:R(()=>r()),label:R(()=>s()),onHighlight:R(()=>l()),onUnhighlight:R(()=>u())}),c=O(()=>gt(f,h.props));var p=Jr(),g=k(p);{var m=v=>{var C=L(),P=k(C);{let y=O(()=>({props:d(c),...h.snippetProps}));U(P,()=>t.child,()=>d(y))}_(v,C)},w=v=>{var C=Gr();ht(C,()=>({...d(c)}));var P=Et(C);U(P,()=>t.children??et,()=>h.snippetProps),Tt(C),_(v,C)};G(g,v=>{t.child?v(m):v(w,-1)})}var S=In(g,2);Zr(S,{get mounted(){return h.mounted},set mounted(v){h.mounted=v}}),_(e,p),$()}var Qr=at("<div><!></div>");function vs(e,t){const n=hn();Q(t,!0);let i=x(t,"id",19,()=>fn(n)),o=x(t,"ref",15,null),s=vt(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const r=_n.create({id:R(()=>i()),ref:R(()=>o(),p=>o(p))}),l=O(()=>gt(s,r.props));var u=L(),f=k(u);{var h=p=>{var g=L(),m=k(g);U(m,()=>t.child,()=>({props:d(l)})),_(p,g)},c=p=>{var g=Qr();ht(g,()=>({...d(l)}));var m=Et(g);U(m,()=>t.children??et),Tt(g),_(p,g)};G(f,p=>{t.child?p(h):p(c,-1)})}_(e,u),$()}var $r=at("<!> <!>",1);function ws(e,t){Q(t,!0);let n=x(t,"value",15),i=x(t,"onValueChange",3,ft),o=x(t,"name",3,""),s=x(t,"disabled",3,!1),r=x(t,"open",15,!1),l=x(t,"onOpenChange",3,ft),u=x(t,"onOpenChangeComplete",3,ft),f=x(t,"loop",3,!1),h=x(t,"scrollAlignment",3,"nearest"),c=x(t,"required",3,!1),p=x(t,"items",19,()=>[]),g=x(t,"allowDeselect",3,!1);function m(){n()===void 0&&n(t.type==="single"?"":[])}m(),Pt.pre(()=>n(),()=>{m()});let w=V("");const S=Wr.create({type:t.type,value:R(()=>n(),E=>{n(E),i()(E)}),disabled:R(()=>s()),required:R(()=>c()),open:R(()=>r(),E=>{r(E),l()(E)}),loop:R(()=>f()),scrollAlignment:R(()=>h()),name:R(()=>o()),isCombobox:!1,items:R(()=>p()),allowDeselect:R(()=>g()),inputValue:R(()=>d(w),E=>A(w,E,!0)),onOpenChangeComplete:R(()=>u())});var v=$r(),C=k(v);Dr(C,{children:(E,W)=>{var I=L(),H=k(I);U(H,()=>t.children??et),_(E,I)},$$slots:{default:!0}});var P=In(C,2);{var y=E=>{var W=L(),I=k(W);{var H=F=>{On(F,{get autocomplete(){return t.autocomplete}})},z=F=>{var B=L(),M=k(B);lo(M,16,()=>S.opts.value.current,K=>K,(K,X)=>{On(K,{get value(){return X},get autocomplete(){return t.autocomplete}})}),_(F,B)};G(I,F=>{S.opts.value.current.length===0?F(H):F(z,-1)})}_(E,W)},T=O(()=>Array.isArray(S.opts.value.current)),D=E=>{On(E,{get autocomplete(){return t.autocomplete},get value(){return S.opts.value.current},set value(W){S.opts.value.current=W}})};G(P,E=>{d(T)?E(y):E(D,-1)})}_(e,v),$()}var ts=at("<button><!></button>");function ys(e,t){const n=hn();Q(t,!0);let i=x(t,"id",19,()=>fn(n)),o=x(t,"ref",15,null),s=x(t,"type",3,"button"),r=vt(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const l=Rn.create({id:R(()=>i()),ref:R(()=>o(),c=>o(c))}),u=O(()=>gt(r,l.props,{type:s()}));var f=L(),h=k(f);uo(h,()=>Lr,(c,p)=>{p(c,{get id(){return i()},get ref(){return l.opts.ref},children:(g,m)=>{var w=L(),S=k(w);{var v=P=>{var y=L(),T=k(y);U(T,()=>t.child,()=>({props:d(u)})),_(P,y)},C=P=>{var y=ts();ht(y,()=>({...d(u)}));var T=Et(y);U(T,()=>t.children??et),Tt(y),_(P,y)};G(S,P=>{t.child?P(v):P(C,-1)})}_(g,w)},$$slots:{default:!0}})}),_(e,f),$()}function bs(e,t){const n=so(t,["children","$$slots","$$events","$$legacy"]);/**
2
+ * @license lucide-svelte v0.460.1 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const i=[["path",{d:"m6 9 6 6 6-6"}]];ro(e,It({name:"chevron-down"},()=>n,{get iconNode(){return i},children:(o,s)=>{var r=L(),l=k(r);go(l,t,"default",{}),_(o,r)},$$slots:{default:!0}}))}export{bs as C,Lr as F,Xr as P,ws as S,ys as a,ps as b,vs as c,ms as d,Yr as e,Dr as f,Pr as g};
@@ -0,0 +1 @@
1
+ import{s as c,g as l}from"./FDS7fbwH.js";import{ah as o,ai as b,aj as f,F as p,k as d,a5 as _}from"./BsQ08Wq_.js";let s=!1,i=Symbol();function y(e,n,r){const u=r[n]??(r[n]={store:null,source:p(void 0),unsubscribe:f});if(u.store!==e&&!(i in r))if(u.unsubscribe(),u.store=e??null,e==null)u.source.v=void 0,u.unsubscribe=f;else{var t=!0;u.unsubscribe=c(e,a=>{t?u.source.v=a:_(u.source,a)}),t=!1}return e&&i in r?l(e):d(u.source)}function m(){const e={};function n(){o(()=>{for(var r in e)e[r].unsubscribe();b(e,i,{enumerable:!1,value:!0})})}return[e,n]}function N(e){var n=s;try{return s=!1,[e(),s]}finally{s=n}}export{y as a,N as c,m as s};
@@ -0,0 +1,2 @@
1
+ var Ie=Object.defineProperty;var he=t=>{throw TypeError(t)};var Me=(t,e,r)=>e in t?Ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var q=(t,e,r)=>Me(t,typeof e!="symbol"?e+"":e,r),re=(t,e,r)=>e.has(t)||he("Cannot "+r);var s=(t,e,r)=>(re(t,e,"read from private field"),r?r.call(t):e.get(t)),l=(t,e,r)=>e.has(t)?he("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),a=(t,e,r,i)=>(re(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),p=(t,e,r)=>(re(t,e,"access private method"),r);import{aN as Fe,k as Ee,j as Ye,u as Ce,aO as de,S as j,G as me,g as M,h as D,Y as V,aP as _e,b as Pe,a as Ve,m as We,aQ as pe,v as I,p as Te,L as se,i as ve,P as xe,aR as ge,aS as Be,aT as He,aU as je,a8 as J,aV as Z,aW as ye,aX as $e,aY as qe,aZ as we,W as Se,o as ze,Q as ie,c as K,ay as Ue,s as Ge,a_ as z,E as Qe,al as Xe,a$ as Je,b0 as Ze,ah as Ke,b1 as et,ai as tt,b2 as ne,R as rt,C as Re,H as st,T as it,b3 as ae,e as U,b4 as nt,O as at,b5 as ot,A as ft,at as ut,n as ct,b6 as lt,au as ht}from"./BsQ08Wq_.js";import{b as dt}from"./DIeahUKq.js";function _t(t){let e=0,r=me(0),i;return()=>{Fe()&&(Ee(r),Ye(()=>(e===0&&(i=Ce(()=>t(()=>de(r)))),e+=1,()=>{j(()=>{e-=1,e===0&&(i==null||i(),i=void 0,de(r))})})))}}var pt=Qe|Xe;function vt(t,e,r,i){new gt(t,e,r,i)}var E,$,w,Y,v,S,m,T,R,C,N,W,x,B,A,ee,u,Ae,ke,Ne,oe,Q,X,fe;class gt{constructor(e,r,i,o){l(this,u);q(this,"parent");q(this,"is_pending",!1);q(this,"transform_error");l(this,E);l(this,$,D?M:null);l(this,w);l(this,Y);l(this,v);l(this,S,null);l(this,m,null);l(this,T,null);l(this,R,null);l(this,C,0);l(this,N,0);l(this,W,!1);l(this,x,new Set);l(this,B,new Set);l(this,A,null);l(this,ee,_t(()=>(a(this,A,me(s(this,C))),()=>{a(this,A,null)})));var n;a(this,E,e),a(this,w,r),a(this,Y,f=>{var d=V;d.b=this,d.f|=_e,i(f)}),this.parent=V.b,this.transform_error=o??((n=this.parent)==null?void 0:n.transform_error)??(f=>f),a(this,v,Pe(()=>{if(D){const f=s(this,$);Ve();const d=f.data===We;if(f.data.startsWith(pe)){const h=JSON.parse(f.data.slice(pe.length));p(this,u,ke).call(this,h)}else d?p(this,u,Ne).call(this):p(this,u,Ae).call(this)}else p(this,u,oe).call(this)},pt)),D&&a(this,E,M)}defer_effect(e){je(e,s(this,x),s(this,B))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(this,w).pending}update_pending_count(e,r){p(this,u,fe).call(this,e,r),a(this,C,s(this,C)+e),!(!s(this,A)||s(this,W))&&(a(this,W,!0),j(()=>{a(this,W,!1),s(this,A)&&ze(s(this,A),s(this,C))}))}get_effect_pending(){return s(this,ee).call(this),Ee(s(this,A))}error(e){var r=s(this,w).onerror;let i=s(this,w).failed;if(!r&&!i)throw e;s(this,S)&&(ie(s(this,S)),a(this,S,null)),s(this,m)&&(ie(s(this,m)),a(this,m,null)),s(this,T)&&(ie(s(this,T)),a(this,T,null)),D&&(K(s(this,$)),Ue(),K(Ge()));var o=!1,n=!1;const f=()=>{if(o){Ze();return}o=!0,n&&Je(),s(this,T)!==null&&se(s(this,T),()=>{a(this,T,null)}),p(this,u,X).call(this,()=>{p(this,u,oe).call(this)})},d=c=>{try{n=!0,r==null||r(c,f),n=!1}catch(h){z(h,s(this,v)&&s(this,v).parent)}i&&a(this,T,p(this,u,X).call(this,()=>{try{return I(()=>{var h=V;h.b=this,h.f|=_e,i(s(this,E),()=>c,()=>f)})}catch(h){return z(h,s(this,v).parent),null}}))};j(()=>{var c;try{c=this.transform_error(e)}catch(h){z(h,s(this,v)&&s(this,v).parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(d,h=>z(h,s(this,v)&&s(this,v).parent)):d(c)})}}E=new WeakMap,$=new WeakMap,w=new WeakMap,Y=new WeakMap,v=new WeakMap,S=new WeakMap,m=new WeakMap,T=new WeakMap,R=new WeakMap,C=new WeakMap,N=new WeakMap,W=new WeakMap,x=new WeakMap,B=new WeakMap,A=new WeakMap,ee=new WeakMap,u=new WeakSet,Ae=function(){try{a(this,S,I(()=>s(this,Y).call(this,s(this,E))))}catch(e){this.error(e)}},ke=function(e){const r=s(this,w).failed;r&&a(this,T,I(()=>{r(s(this,E),()=>e,()=>()=>{})}))},Ne=function(){const e=s(this,w).pending;if(e){this.is_pending=!0,a(this,m,I(()=>e(s(this,E))));var r=ve;j(()=>{var i=a(this,R,document.createDocumentFragment()),o=Te();i.append(o),a(this,S,p(this,u,X).call(this,()=>I(()=>s(this,Y).call(this,o)))),s(this,N)===0&&(s(this,E).before(i),a(this,R,null),se(s(this,m),()=>{a(this,m,null)}),p(this,u,Q).call(this,r))})}},oe=function(){var e=ve;try{if(this.is_pending=this.has_pending_snippet(),a(this,N,0),a(this,C,0),a(this,S,I(()=>{s(this,Y).call(this,s(this,E))})),s(this,N)>0){var r=a(this,R,document.createDocumentFragment());xe(s(this,S),r);const i=s(this,w).pending;a(this,m,I(()=>i(s(this,E))))}else p(this,u,Q).call(this,e)}catch(i){this.error(i)}},Q=function(e){this.is_pending=!1;for(const r of s(this,x))ge(r,Be),e.schedule(r);for(const r of s(this,B))ge(r,He),e.schedule(r);s(this,x).clear(),s(this,B).clear()},X=function(e){var r=V,i=we,o=Se;J(s(this,v)),Z(s(this,v)),ye(s(this,v).ctx);try{return $e.ensure(),e()}catch(n){return qe(n),null}finally{J(r),Z(i),ye(o)}},fe=function(e,r){var i;if(!this.has_pending_snippet()){this.parent&&p(i=this.parent,u,fe).call(i,e,r);return}a(this,N,s(this,N)+e),s(this,N)===0&&(p(this,u,Q).call(this,r),s(this,m)&&se(s(this,m),()=>{a(this,m,null)}),s(this,R)&&(s(this,E).before(s(this,R)),a(this,R,null)))};function kt(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const yt=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Nt(t){return yt.includes(t)}const bt={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Dt(t){return t=t.toLowerCase(),bt[t]??t}const Et=["touchstart","touchmove"];function mt(t){return Et.includes(t)}const Tt=["textarea","script","style","title"];function Ot(t){return Tt.includes(t)}const F=Symbol("events"),De=new Set,ue=new Set;function Lt(t){if(!D)return;t.removeAttribute("onload"),t.removeAttribute("onerror");const e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Oe(t,e,r,i={}){function o(n){if(i.capture||ce.call(e,n),!n.cancelBubble)return et(()=>r==null?void 0:r.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?j(()=>{e.addEventListener(t,o,i)}):e.addEventListener(t,o,i),o}function It(t,e,r,i={}){var o=Oe(e,t,r,i);return()=>{t.removeEventListener(e,o,i)}}function Mt(t,e,r,i,o){var n={capture:i,passive:o},f=Oe(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ke(()=>{e.removeEventListener(t,f,n)})}function Ft(t,e,r){(e[F]??(e[F]={}))[t]=r}function Yt(t){for(var e=0;e<t.length;e++)De.add(t[e]);for(var r of ue)r(t)}let be=null;function ce(t){var O,b;var e=this,r=e.ownerDocument,i=t.type,o=((O=t.composedPath)==null?void 0:O.call(t))||[],n=o[0]||t.target;be=t;var f=0,d=be===t&&t[F];if(d){var c=o.indexOf(d);if(c!==-1&&(e===document||e===window)){t[F]=e;return}var h=o.indexOf(e);if(h===-1)return;c<=h&&(f=c)}if(n=o[f]||t.target,n!==e){tt(t,"currentTarget",{configurable:!0,get(){return n||r}});var P=we,H=V;Z(null),J(null);try{for(var k,g=[];n!==null;){var _=n.assignedSlot||n.parentNode||n.host||null;try{var y=(b=n[F])==null?void 0:b[i];y!=null&&(!n.disabled||t.target===n)&&y.call(n,t)}catch(L){k?g.push(L):k=L}if(t.cancelBubble||_===e||_===null)break;n=_}if(k){for(let L of g)queueMicrotask(()=>{throw L});throw k}}finally{t[F]=e,delete t.currentTarget,Z(P),J(H)}}}function Ct(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=`${r}`)}function wt(t,e){return Le(t,e)}function Pt(t,e){ne(),e.intro=e.intro??!1;const r=e.target,i=D,o=M;try{for(var n=rt(r);n&&(n.nodeType!==Re||n.data!==st);)n=it(n);if(!n)throw ae;U(!0),K(n);const f=Le(t,{...e,anchor:n});return U(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
2
+ `).some(d=>d.startsWith("https://svelte.dev/e/")))throw f;return f!==ae&&console.warn("Failed to hydrate: ",f),e.recover===!1&&nt(),ne(),at(r),U(!1),wt(t,e)}finally{U(i),K(o)}}const G=new Map;function Le(t,{target:e,anchor:r,props:i={},events:o,context:n,intro:f=!0,transformError:d}){ne();var c=void 0,h=ot(()=>{var P=r??e.appendChild(Te());vt(P,{pending:()=>{}},g=>{ut({});var _=Se;if(n&&(_.c=n),o&&(i.$$events=o),D&&dt(g,null),c=t(g,i)||{},D&&(V.nodes.end=M,M===null||M.nodeType!==Re||M.data!==ct))throw lt(),ae;ht()},d);var H=new Set,k=g=>{for(var _=0;_<g.length;_++){var y=g[_];if(!H.has(y)){H.add(y);var O=mt(y);for(const te of[e,document]){var b=G.get(te);b===void 0&&(b=new Map,G.set(te,b));var L=b.get(y);L===void 0?(te.addEventListener(y,ce,{passive:O}),b.set(y,1)):b.set(y,L+1)}}}};return k(ft(De)),ue.add(k),()=>{var O;for(var g of H)for(const b of[e,document]){var _=G.get(b),y=_.get(g);--y==0?(b.removeEventListener(g,ce),_.delete(g),_.size===0&&G.delete(b)):_.set(g,y)}ue.delete(k),P!==r&&((O=P.parentNode)==null||O.removeChild(P))}});return le.set(c,h),c}let le=new WeakMap;function Vt(t,e){const r=le.get(t);return r?(le.delete(t),r(e)):Promise.resolve()}export{Ft as a,Nt as b,Oe as c,Yt as d,Mt as e,_t as f,Ot as g,Pt as h,kt as i,wt as m,Dt as n,It as o,Lt as r,Ct as s,Vt as u};
@@ -0,0 +1 @@
1
+ var Zt=t=>{throw TypeError(t)};var Ne=(t,e,n)=>e.has(t)||Zt("Cannot "+n);var v=(t,e,n)=>(Ne(t,e,"read from private field"),n?n.call(t):e.get(t)),A=(t,e,n)=>e.has(t)?Zt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{b8 as P,k as T,a5 as I,t as gt,bu as De}from"./BsQ08Wq_.js";import{w as Dt}from"./FDS7fbwH.js";import{b as qe,H as qt,S as Vt,R as Bt}from"./BUApaBEI.js";import{o as te}from"./DptdhtA1.js";new URL("sveltekit-internal://");function Ve(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function Be(t){return t.split("%25").map(decodeURI).join("%25")}function Ke(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function At({href:t}){return t.split("#")[0]}function Fe(t,e,n,r=!1){const a=new URL(t);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return(c,...p)=>(n(c),i[o](c,...p));e();const l=Reflect.get(i,o);return typeof l=="function"?l.bind(i):l}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return e(),t[i]},enumerable:!0,configurable:!0});return a}function Ge(...t){let e=5381;for(const n of t)if(typeof n=="string"){let r=n.length;for(;r;)e=e*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)e=e*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}const He=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&z.delete(Kt(t)),He(t,e));const z=new Map;function Me(t,e){const n=Kt(t,e),r=document.querySelector(n);if(r!=null&&r.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&z.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=qe(a)),Promise.resolve(new Response(a,s))}return window.fetch(t,e)}function We(t,e,n){if(z.size>0){const r=Kt(t,n),a=z.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(a.body,a.init);z.delete(r)}}return window.fetch(e,n)}function Kt(t,e){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e!=null&&e.headers||e!=null&&e.body){const a=[];e.headers&&a.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&a.push(e.body),r+=`[data-hash="${Ge(...a)}"]`}return r}const Ye=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function ze(t){const e=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${Xe(t).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return e.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return Pt(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return Pt(String.fromCharCode(...l.slice(2).split("-").map(f=>parseInt(f,16))));const p=Ye.exec(l),[,h,_,g,d]=p;return e.push({name:g,matcher:d,optional:!!h,rest:!!_,chained:_?c===1&&i[0]==="":!1}),_?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return Pt(l)}).join("")}).join("")}/?$`),params:e}}function Je(t){return t!==""&&!/^\([^)]+\)$/.test(t)}function Xe(t){return t.slice(1).split("/").filter(Je)}function Qe(t,e,n){const r={},a=t.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<e.length;o+=1){const l=e[o];let c=a[o-i];if(l.chained&&l.rest&&i&&(c=a.slice(o-i,o+1).filter(p=>p).join("/"),i=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const p=e[o+1],h=a[o+1];p&&!p.rest&&p.optional&&h&&l.chained&&(i=0),!p&&!h&&Object.keys(r).length===s.length&&(i=0);continue}if(l.optional&&l.chained){i++;continue}return}if(!i)return r}function Pt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ze({nodes:t,server_loads:e,dictionary:n,matchers:r}){const a=new Set(e);return Object.entries(n).map(([o,[l,c,p]])=>{const{pattern:h,params:_}=ze(o),g={id:o,exec:d=>{const f=h.exec(d);if(f)return Qe(f,_,r)},errors:[1,...p||[]].map(d=>t[d]),layouts:[0,...c||[]].map(i),leaf:s(l)};return g.errors.length=g.layouts.length=Math.max(g.errors.length,g.layouts.length),g});function s(o){const l=o<0;return l&&(o=~o),[l,t[o]]}function i(o){return o===void 0?o:[a.has(o),t[o]]}}function ge(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function ee(t,e,n=JSON.stringify){const r=n(e);try{sessionStorage[t]=r}catch{}}var fe;const U=((fe=globalThis.__sveltekit_d5v56a)==null?void 0:fe.base)??"";var ue;const tn=((ue=globalThis.__sveltekit_d5v56a)==null?void 0:ue.assets)??U??"",en="1780905173365",me="sveltekit:snapshot",_e="sveltekit:scroll",we="sveltekit:states",nn="sveltekit:pageurl",F="sveltekit:history",X="sveltekit:navigation",D={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Et=location.origin;function Ft(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function V(){return{x:pageXOffset,y:pageYOffset}}function K(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const ne={...D,"":D.hover};function ve(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function ye(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=ve(t)}}function Ot(t,e,n){let r;try{if(r=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,s=!r||!!a||St(r,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(r==null?void 0:r.origin)===Et&&t.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function mt(t){let e=null,n=null,r=null,a=null,s=null,i=null,o=t;for(;o&&o!==document.documentElement;)r===null&&(r=K(o,"preload-code")),a===null&&(a=K(o,"preload-data")),e===null&&(e=K(o,"keepfocus")),n===null&&(n=K(o,"noscroll")),s===null&&(s=K(o,"reload")),i===null&&(i=K(o,"replacestate")),o=ve(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:ne[r??"off"],preload_data:ne[a??"off"],keepfocus:l(e),noscroll:l(n),reload:l(s),replace_state:l(i)}}function ae(t){const e=Dt(t);let n=!0;function r(){n=!0,e.update(i=>i)}function a(i){n=!1,e.set(i)}function s(i){let o;return e.subscribe(l=>{(o===void 0||n&&l!==o)&&i(o=l)})}return{notify:r,set:a,subscribe:s}}const be={v:()=>{}};function an(){const{set:t,subscribe:e}=Dt(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${tn}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==en;return i&&(t(!0),be.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:e,check:r}}function St(t,e,n){return t.origin!==Et||!t.pathname.startsWith(e)?!0:n?t.pathname!==location.pathname:!1}function Cn(t){}const ke=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ke];const rn=new Set([...ke]);[...rn];function on(t){return t.filter(e=>e!=null)}function Gt(t){return t instanceof qt||t instanceof Vt?t.status:500}function sn(t){return t instanceof Vt?t.text:"Internal Error"}let S,Q,Tt;const ln=te.toString().includes("$$")||/function \w+\(\) \{\}/.test(te.toString()),re="a:";var at,rt,ot,it,st,lt,ct,ft,de,ut,he,dt,pe;ln?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(re)},Q={current:null},Tt={current:!1}):(S=new(de=class{constructor(){A(this,at,P({}));A(this,rt,P(null));A(this,ot,P(null));A(this,it,P({}));A(this,st,P({id:null}));A(this,lt,P({}));A(this,ct,P(-1));A(this,ft,P(new URL(re)))}get data(){return T(v(this,at))}set data(e){I(v(this,at),e)}get form(){return T(v(this,rt))}set form(e){I(v(this,rt),e)}get error(){return T(v(this,ot))}set error(e){I(v(this,ot),e)}get params(){return T(v(this,it))}set params(e){I(v(this,it),e)}get route(){return T(v(this,st))}set route(e){I(v(this,st),e)}get state(){return T(v(this,lt))}set state(e){I(v(this,lt),e)}get status(){return T(v(this,ct))}set status(e){I(v(this,ct),e)}get url(){return T(v(this,ft))}set url(e){I(v(this,ft),e)}},at=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,st=new WeakMap,lt=new WeakMap,ct=new WeakMap,ft=new WeakMap,de),Q=new(he=class{constructor(){A(this,ut,P(null))}get current(){return T(v(this,ut))}set current(e){I(v(this,ut),e)}},ut=new WeakMap,he),Tt=new(pe=class{constructor(){A(this,dt,P(!1))}get current(){return T(v(this,dt))}set current(e){I(v(this,dt),e)}},dt=new WeakMap,pe),be.v=()=>Tt.current=!0);function cn(t){Object.assign(S,t)}const oe={spanContext(){return fn},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},fn={traceId:"",spanId:"",traceFlags:0},un=new Set(["icon","shortcut icon","apple-touch-icon"]);let W=null;const j=ge(_e)??{},Z=ge(me)??{},$={url:ae({}),page:ae({}),navigating:Dt(null),updated:an()};function Ht(t){j[t]=V()}function dn(t,e){let n=t+1;for(;j[n];)delete j[n],n+=1;for(n=e+1;Z[n];)delete Z[n],n+=1}function tt(t,e=!1){return e?location.replace(t.href):location.href=t.href,new Promise(()=>{})}async function Re(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(U||"/");t&&await t.update()}}function ie(){}let Mt,Ct,_t,O,$t,k;const wt=[],vt=[];let b=null;function jt(){var t;(t=b==null?void 0:b.fork)==null||t.then(e=>e==null?void 0:e.discard()),b=null}const pt=new Map,Ee=new Set,hn=new Set,J=new Set;let w={branch:[],error:null,url:null},Se=!1,yt=!1,se=!0,et=!1,Y=!1,xe=!1,Wt=!1,Le,R,L,q;const bt=new Set,le=new Map;async function Dn(t,e,n){var s,i,o,l,c;(s=globalThis.__sveltekit_d5v56a)!=null&&s.data&&globalThis.__sveltekit_d5v56a.data,document.URL!==location.href&&(location.href=location.href),k=t,await((o=(i=t.hooks).init)==null?void 0:o.call(i)),Mt=Ze(t),O=document.documentElement,$t=e,Ct=t.nodes[0],_t=t.nodes[1],Ct(),_t(),R=(l=history.state)==null?void 0:l[F],L=(c=history.state)==null?void 0:c[X],R||(R=L=Date.now(),history.replaceState({...history.state,[F]:R,[X]:L},""));const r=j[R];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await Sn($t,n)):(await G({type:"enter",url:Ft(k.hash?Un(new URL(location.href)):location.href),replace_state:!0}),a()),En()}function pn(){wt.length=0,Wt=!1}function Ue(t){vt.some(e=>e==null?void 0:e.snapshot)&&(Z[t]=vt.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Ae(t){var e;(e=Z[t])==null||e.forEach((n,r)=>{var a,s;(s=(a=vt[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function ce(){Ht(R),ee(_e,j),Ue(L),ee(me,Z)}async function Pe(t,e,n,r){let a;e.invalidateAll&&jt(),await G({type:"goto",url:Ft(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:r,accept:()=>{e.invalidateAll&&(Wt=!0,a=[...le.keys()]),e.invalidate&&e.invalidate.forEach(Rn)}}),e.invalidateAll&&gt().then(gt).then(()=>{le.forEach(({resource:s},i)=>{var o;a!=null&&a.includes(i)&&((o=s.refresh)==null||o.call(s))})})}async function gn(t){if(t.id!==(b==null?void 0:b.id)){jt();const e={};bt.add(e),b={id:t.id,token:e,promise:Oe({...t,preload:e}).then(n=>(bt.delete(e),n.type==="loaded"&&n.state.error&&jt(),n)),fork:null}}return b.promise}async function It(t){var n;const e=(n=await xt(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].filter(Boolean).map(r=>r[1]()))}async function Te(t,e,n){var s;const r={params:w.params,route:{id:((s=w.route)==null?void 0:s.id)??null},url:new URL(location.href)};w={...t.state,nav:r};const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(S,t.props.page),Le=new k.root({target:e,props:{...t.props,stores:$,components:vt},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),Ae(L),n){const i={from:null,to:{...r,scroll:j[R]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};J.forEach(o=>o(i))}yt=!0}async function kt({url:t,params:e,branch:n,errors:r,status:a,error:s,route:i,form:o}){let l="never";if(U&&(t.pathname===U||t.pathname===U+"/"))l="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(l=d.slash);t.pathname=Ve(t.pathname,l),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:s,route:i},props:{constructors:on(n).map(d=>d.node.component),page:Qt(S)}};o!==void 0&&(c.props.form=o);let p={},h=!S,_=0;for(let d=0;d<Math.max(n.length,w.branch.length);d+=1){const f=n[d],u=w.branch[d];(f==null?void 0:f.data)!==(u==null?void 0:u.data)&&(h=!0),f&&(p={...p,...f.data},h&&(c.props[`data_${_}`]=p),_+=1)}return(!w.url||t.href!==w.url.href||w.error!==s||o!==void 0&&o!==S.form||h)&&(c.props.page={error:s,params:e,route:{id:(i==null?void 0:i.id)??null},state:{},status:a,url:new URL(t),form:o??null,data:h?p:S.data}),c}async function Yt({loader:t,parent:e,url:n,params:r,route:a,server_data_node:s}){var p,h,_;let i=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await t();if((p=c.universal)!=null&&p.load){let g=function(...f){for(const u of f){const{href:m}=new URL(u,n);l.dependencies.add(m)}};const d={tracing:{enabled:!1,root:oe,current:oe},route:new Proxy(a,{get:(f,u)=>(o&&(l.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(o&&l.params.add(u),f[u])}),data:(s==null?void 0:s.data)??null,url:Fe(n,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},k.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f==null?void 0:f.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:m,promise:y}=Ie(f,u,n);return o&&g(m.href),y},setHeaders:()=>{},depends:g,parent(){return o&&(l.parent=!0),e()},untrack(f){o=!1;try{return f()}finally{o=!0}}};i=await c.universal.load.call(null,d)??null}return{node:c,loader:t,server:s,universal:(h=c.universal)!=null&&h.load?{type:"data",data:i,uses:l}:null,data:i??(s==null?void 0:s.data)??null,slash:((_=c.universal)==null?void 0:_.trailingSlash)??(s==null?void 0:s.slash)}}function Ie(t,e,n){let r=t instanceof Request?t.url:t;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=yt?We(r,a.href,e):Me(r,e);return{resolved:a,promise:s}}function mn(t,e,n,r,a,s){if(Wt)return!0;if(!a)return!1;if(a.parent&&t||a.route&&e||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==w.params[i])return!0;for(const i of a.dependencies)if(wt.some(o=>o(new URL(i))))return!0;return!1}function zt(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function _n(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const r of n){const a=t.searchParams.getAll(r),s=e.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function wn({error:t,url:e,route:n,params:r}){return{type:"loaded",state:{error:t,url:e,route:n,params:r,branch:[]},props:{page:Qt(S),constructors:[]}}}async function Oe({id:t,invalidating:e,url:n,params:r,route:a,preload:s}){if((b==null?void 0:b.id)===t)return bt.delete(b.token),b.promise;const{errors:i,layouts:o,leaf:l}=a,c=[...o,l];i.forEach(u=>u==null?void 0:u().catch(()=>{})),c.forEach(u=>u==null?void 0:u[1]().catch(()=>{}));const p=w.url?t!==Rt(w.url):!1,h=w.route?a.id!==w.route.id:!1,_=_n(w.url,n);let g=!1;const d=c.map(async(u,m)=>{var C;if(!u)return;const y=w.branch[m];return u[1]===(y==null?void 0:y.loader)&&!mn(g,h,p,_,(C=y.universal)==null?void 0:C.uses,r)?y:(g=!0,Yt({loader:u[1],url:n,params:r,route:a,parent:async()=>{var ht;const N={};for(let B=0;B<m;B+=1)Object.assign(N,(ht=await d[B])==null?void 0:ht.data);return N},server_data_node:zt(u[0]?{type:"skip"}:null,u[0]?y==null?void 0:y.server:void 0)}))});for(const u of d)u.catch(()=>{});const f=[];for(let u=0;u<c.length;u+=1)if(c[u])try{f.push(await d[u])}catch(m){if(m instanceof Bt)return{type:"redirect",location:m.location};if(bt.has(s))return wn({error:await nt(m,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let y=Gt(m),x;if(m instanceof qt)x=m.body;else{if(await $.updated.check())return await Re(),await tt(n);x=await nt(m,{params:r,url:n,route:{id:a.id}})}const C=await vn(u,f,i);return C?kt({url:n,params:r,branch:f.slice(0,C.idx).concat(C.node),errors:i,status:y,error:x,route:a}):await $e(n,{id:a.id},x,y)}else f.push(void 0);return kt({url:n,params:r,branch:f,errors:i,status:200,error:null,route:a,form:e?void 0:null})}async function vn(t,e,n){for(;t--;)if(n[t]){let r=t;for(;!e[r];)r-=1;try{return{idx:r+1,node:{node:await n[t](),loader:n[t],data:{},server:null,universal:null}}}catch{continue}}}async function Jt({status:t,error:e,url:n,route:r}){const a={};let s=null;try{const i=await Yt({loader:Ct,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:zt(s)}),o={node:await _t(),loader:_t,universal:null,server:null,data:null};return kt({url:n,params:a,branch:[i,o],status:t,error:e,errors:[],route:null})}catch(i){if(i instanceof Bt)return Pe(new URL(i.location,location.href),{},0);throw i}}async function yn(t){const e=t.href;if(pt.has(e))return pt.get(e);let n;try{const r=(async()=>{let a=await k.hooks.reroute({url:new URL(t),fetch:async(s,i)=>Ie(s,i,t).promise})??t;if(typeof a=="string"){const s=new URL(t);k.hash?s.hash=a:s.pathname=a,a=s}return a})();pt.set(e,r),n=await r}catch{pt.delete(e);return}return n}async function xt(t,e){if(t&&!St(t,U,k.hash)){const n=await yn(t);if(!n)return;const r=bn(n);for(const a of Mt){const s=a.exec(r);if(s)return{id:Rt(t),invalidating:e,route:a,params:Ke(s),url:t}}}}function bn(t){return Be(k.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(U.length))||"/"}function Rt(t){return(k.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function Ce({url:t,type:e,intent:n,delta:r,event:a,scroll:s}){let i=!1;const o=Xt(w,n,t,e,s??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return et||Ee.forEach(c=>c(l)),i?null:o}async function G({type:t,url:e,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:l={},accept:c=ie,block:p=ie,event:h}){var B;const _=q;q=l;const g=await xt(e,!1),d=t==="enter"?Xt(w,g,e,t):Ce({url:e,type:t,delta:n==null?void 0:n.delta,intent:g,scroll:n==null?void 0:n.scroll,event:h});if(!d){p(),q===l&&(q=_);return}const f=R,u=L;c(),et=!0,yt&&d.navigation.type!=="enter"&&$.navigating.set(Q.current=d.navigation);let m=g&&await Oe(g);if(!m){if(St(e,U,k.hash))return await tt(e,s);m=await $e(e,{id:null},await nt(new Vt(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404,s)}if(e=(g==null?void 0:g.url)||e,q!==l)return d.reject(new Error("navigation aborted")),!1;if(m.type==="redirect"){if(o<20){await G({type:t,url:new URL(m.location,e),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i,redirect_count:o+1,nav_token:l}),d.fulfil(void 0);return}m=await Jt({status:500,error:await nt(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}})}else m.props.page.status>=400&&await $.updated.check()&&(await Re(),await tt(e,s));if(pn(),Ht(f),Ue(u),m.props.page.url.pathname!==e.pathname&&(e.pathname=m.props.page.url.pathname),i=n?n.state:i,!n){const E=s?0:1,H={[F]:R+=E,[X]:L+=E,[we]:i};(s?history.replaceState:history.pushState).call(history,H,"",e),s||dn(R,L)}const y=g&&(b==null?void 0:b.id)===g.id?b.fork:null;b=null,m.props.page.state=i;let x;if(yt){const E=(await Promise.all(Array.from(hn,M=>M(d.navigation)))).filter(M=>typeof M=="function");if(E.length>0){let M=function(){E.forEach(Ut=>{J.delete(Ut)})};E.push(M),E.forEach(Ut=>{J.add(Ut)})}const H=d.navigation.to;w={...m.state,nav:{params:H.params,route:H.route,url:H.url}},m.props.page&&(m.props.page.url=e);const Lt=y&&await y;Lt?x=Lt.commit():(W=null,Le.$set(m.props),W&&Object.assign(m.props.page,W),cn(m.props.page),x=(B=De)==null?void 0:B()),xe=!0}else await Te(m,$t,!1);const{activeElement:C}=document;await x,await gt(),await gt();let N=null;if(se){const E=n?n.scroll:a?V():null;E?scrollTo(E.x,E.y):(N=e.hash&&document.getElementById(je(e)))?N.scrollIntoView():scrollTo(0,0)}const ht=document.activeElement!==C&&document.activeElement!==document.body;!r&&!ht&&Ln(e,!N),se=!0,m.props.page&&(W&&Object.assign(m.props.page,W),Object.assign(S,m.props.page)),et=!1,t==="popstate"&&Ae(L),d.fulfil(void 0),d.navigation.to&&(d.navigation.to.scroll=V()),J.forEach(E=>E(d.navigation)),$.navigating.set(Q.current=null)}async function $e(t,e,n,r,a){return t.origin===Et&&t.pathname===location.pathname&&!Se?await Jt({status:r,error:n,url:t,route:e}):await tt(t,a)}function kn(){let t,e={element:void 0,href:void 0},n;O.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(t),t=setTimeout(()=>{s(l,D.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],D.tap)}O.addEventListener("mousedown",r),O.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(It(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function s(o,l){const c=ye(o,O),p=c===e.element&&(c==null?void 0:c.href)===e.href&&l>=n;if(!c||p)return;const{url:h,external:_,download:g}=Ot(c,U,k.hash);if(_||g)return;const d=mt(c),f=h&&Rt(w.url)===Rt(h);if(!(d.reload||f))if(l<=d.preload_data){e={element:c,href:c.href},n=D.tap;const u=await xt(h,!1);if(!u)return;gn(u)}else l<=d.preload_code&&(e={element:c,href:c.href},n=l,It(h))}function i(){a.disconnect();for(const o of O.querySelectorAll("a")){const{url:l,external:c,download:p}=Ot(o,U,k.hash);if(c||p)continue;const h=mt(o);h.reload||(h.preload_code===D.viewport&&a.observe(o),h.preload_code===D.eager&&It(l))}}J.add(i),i()}function nt(t,e){if(t instanceof qt)return t.body;const n=Gt(t),r=sn(t);return k.hooks.handleError({error:t,event:e,status:n,message:r})??{message:r}}function qn(t,e={}){return t=new URL(Ft(t)),t.origin!==Et?Promise.reject(new Error("goto: invalid URL")):Pe(t,e,0)}function Rn(t){if(typeof t=="function")wt.push(t);else{const{href:e}=new URL(t,location.href);wt.push(n=>n.href===e)}}function En(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(ce(),!et){const a=Xt(w,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};Ee.forEach(i=>i(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ce()}),(e=navigator.connection)!=null&&e.saveData||kn(),O.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=ye(n.composedPath()[0],O);if(!r)return;const{url:a,external:s,target:i,download:o}=Ot(r,U,k.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const l=mt(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[p,h]=(k.hash?a.hash.replace(/^#/,""):a.href).split("#"),_=p===At(location);if(s||l.reload&&(!_||!h)){Ce({url:a,type:"link",event:n})?et=!0:n.preventDefault();return}if(h!==void 0&&_){const[,g]=w.url.href.split("#");if(g===h){if(n.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const d=r.ownerDocument.getElementById(decodeURIComponent(h));d&&(d.scrollIntoView(),d.focus())}return}if(Y=!0,Ht(R),t(a),!l.replace_state)return;Y=!1}n.preventDefault(),await new Promise(g=>{requestAnimationFrame(()=>{setTimeout(g,0)}),setTimeout(g,100)}),await G({type:"link",url:a,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??a.href===location.href,event:n})}),O.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(St(o,U,!1))return;const l=n.target,c=mt(l);if(c.reload)return;n.preventDefault(),n.stopPropagation();const p=new FormData(l,a);o.search=new URLSearchParams(p).toString(),G({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:n})}),addEventListener("popstate",async n=>{var r;if(!Nt){if((r=n.state)!=null&&r[F]){const a=n.state[F];if(q={},a===R)return;const s=j[a],i=n.state[we]??{},o=new URL(n.state[nn]??location.href),l=n.state[X],c=w.url?At(location)===At(w.url):!1;if(l===L&&(xe||c)){i!==S.state&&(S.state=i),t(o),j[R]=V(),s&&scrollTo(s.x,s.y),R=a;return}const h=a-R;await G({type:"popstate",url:o,popped:{state:i,scroll:s,delta:h},accept:()=>{R=a,L=l},block:()=>{history.go(-h)},nav_token:q,event:n})}else if(!Y){const a=new URL(location.href);t(a),k.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Y&&(Y=!1,history.replaceState({...history.state,[F]:++R,[X]:L},"",location.href))});for(const n of document.querySelectorAll("link"))un.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&$.navigating.set(Q.current=null)});function t(n){w.url=S.url=n,$.page.set(Qt(S)),$.page.notify()}}async function Sn(t,{status:e=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:l}){Se=!0;const c=new URL(location.href);let p;({params:a={},route:s={id:null}}=await xt(c,!1)||{}),p=Mt.find(({id:g})=>g===s.id);let h,_=!0;try{const g=r.map(async(f,u)=>{const m=o[u];return m!=null&&m.uses&&(m.uses=xn(m.uses)),Yt({loader:k.nodes[f],url:c,params:a,route:s,parent:async()=>{const y={};for(let x=0;x<u;x+=1)Object.assign(y,(await g[x]).data);return y},server_data_node:zt(m)})}),d=await Promise.all(g);if(p){const f=p.layouts;for(let u=0;u<f.length;u++)f[u]||d.splice(u,0,void 0)}h=await kt({url:c,params:a,branch:d,status:e,error:n,errors:p==null?void 0:p.errors,form:l,route:p??null})}catch(g){if(g instanceof Bt){await tt(new URL(g.location,location.href));return}h=await Jt({status:Gt(g),error:await nt(g,{url:c,params:a,route:s}),url:c,route:s}),t.textContent="",_=!1}h.props.page&&(h.props.page.state={}),await Te(h,t,_)}function xn(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}let Nt=!1;function Ln(t,e=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=je(t);if(r&&document.getElementById(r)){const{x:s,y:i}=V();setTimeout(()=>{const o=history.state;Nt=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",t),e&&scrollTo(s,i),Nt=!1})}else{const s=document.body,i=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),i!==null?s.setAttribute("tabindex",i):s.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const s=[];for(let i=0;i<a.rangeCount;i+=1)s.push(a.getRangeAt(i));setTimeout(()=>{if(a.rangeCount===s.length){for(let i=0;i<a.rangeCount;i+=1){const o=s[i],l=a.getRangeAt(i);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Xt(t,e,n,r,a=null){var c,p;let s,i;const o=new Promise((h,_)=>{s=h,i=_});return o.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url,scroll:V()},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((p=e==null?void 0:e.route)==null?void 0:p.id)??null},url:n,scroll:a},willUnload:!e,type:r,complete:o},fulfil:s,reject:i}}function Qt(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function Un(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function je(t){let e;if(k.hash){const[,,n]=t.hash.split("#",3);e=n??""}else e=t.hash.slice(1);return decodeURIComponent(e)}export{Dn as a,qn as g,Cn as l,S as p,$ as s};
@@ -0,0 +1,36 @@
1
+ var Br=Object.defineProperty;var Os=p=>{throw TypeError(p)};var qr=(p,t,r)=>t in p?Br(p,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[t]=r;var ge=(p,t,r)=>qr(p,typeof t!="symbol"?t+"":t,r),Xo=(p,t,r)=>t.has(p)||Os("Cannot "+r);var f=(p,t,r)=>(Xo(p,t,"read from private field"),r?r.call(p):t.get(p)),A=(p,t,r)=>t.has(p)?Os("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(p):t.set(p,r),D=(p,t,r,l)=>(Xo(p,t,"write to private field"),l?l.call(p,r):t.set(p,r),r),C=(p,t,r)=>(Xo(p,t,"access private method"),r);import{p as er,c as Z,a as m,f as T,t as st}from"./DIeahUKq.js";import"./CEWi_rGa.js";import{o as Jr}from"./DptdhtA1.js";import{b8 as rt,k as e,a5 as n,aA as Ee,at as Do,f as S,au as Fo,av as h,aj as Mo,ax as d,aC as Qe,aD as Xr,aw as y,ay as te,az as oe,u as z,y as Ke,F as $,aq as Yo}from"./BsQ08Wq_.js";import{o as eo,d as Yr,a as ie,s as le,e as Qr,r as Gr}from"./BK0ygNWX.js";import{s as Zr,a as Ms}from"./BI_ale1m.js";import{i as ue}from"./rNwPv4DZ.js";import{e as xo,i as Rr}from"./B553hBXT.js";import{f as so,r as to,b as Dt,a as He,s as Qo}from"./WW6La7Nt.js";import{b as oo}from"./BnqaikL8.js";import{i as en}from"./Nd0ktDhd.js";import{g as As}from"./FDS7fbwH.js";import{p as Go}from"./GeNMTUn1.js";import{s as Ft}from"./4TuV_psf.js";import{R as tn,M as on,P as sn,a as rn,h as Ds,S as nn,b as an,r as ln,s as un,c as cn}from"./BZY5aksi.js";import{D as Fs,a as Is,b as Ls,c as Ns,d as So}from"./B0czyjwj.js";import{P as dn}from"./SvdgnirT.js";import{w as cs,j as pn,k as yt,C as hn,a as Hs,b as fe,d as tr,l as fn,p as Ao,E as vn,S as mn,g as or,q as yn,r as bn,c as _n,f as sr,n as Lt,m as To,s as bt,I as Ct,P as It}from"./pd_p3yYy.js";import{P as gn,e as wn,g as Es,F as Cn,f as $n,S as Ws,a as Vs,C as js,b as Us,c as Ks,d as Bs}from"./B8StT3Do.js";import{s as $t}from"./Cc7aBSsN.js";import{p as q,s as Ge,r as rr,l as Pt}from"./D8G961Hm.js";function Zo(p,t){const[r,l]=p;let u=!1;const c=t.length;for(let v=0,_=c-1;v<c;_=v++){const[J,ve]=t[v]??[0,0],[Se,R]=t[_]??[0,0];ve>=l!=R>=l&&r<=(Se-J)*(l-ve)/(R-ve)+J&&(u=!u)}return u}function Ro(p,t){return p[0]>=t.left&&p[0]<=t.right&&p[1]>=t.top&&p[1]<=t.bottom}function qs(p,t){const r=p.left+p.width/2,l=p.top+p.height/2,u=t.left+t.width/2,c=t.top+t.height/2,v=u-r,_=c-l;return Math.abs(v)>Math.abs(_)?v>0?"right":"left":_>0?"bottom":"top"}var at,Nt,Ht,qe,we,_t,gt,it,lt,x,Oo,es,ts,nr,ar,Be,os,ir,lr;class Pn{constructor(t){A(this,x);A(this,at);A(this,Nt);A(this,Ht);A(this,qe,null);A(this,we,null);A(this,_t,[]);A(this,gt,null);A(this,it,null);A(this,lt,null);D(this,at,t),D(this,Nt,t.buffer??1);const r=t.transitIntentTimeout;D(this,Ht,typeof r=="number"&&r>0?r:null),cs([t.triggerNode,t.contentNode,t.enabled],([l,u,c])=>{if(!l||!u||!c){D(this,gt,null),C(this,x,Be).call(this);return}f(this,gt)&&f(this,gt)!==l&&C(this,x,Be).call(this),D(this,gt,l);const v=pn(l),_=M=>{C(this,x,ar).call(this,[M.clientX,M.clientY],l,u)},J=M=>{var Te,Oe;const F=M.relatedTarget;if(yt(F)&&u.contains(F))return;const V=((Oe=(Te=f(this,at)).ignoredTargets)==null?void 0:Oe.call(Te))??[];yt(F)&&V.some(Ie=>Ie===F||Ie.contains(F))||(D(this,_t,yt(F)&&V.length>0?V.filter(Ie=>F.contains(Ie)):[]),D(this,qe,[M.clientX,M.clientY]),D(this,we,"content"),C(this,x,es).call(this))},ve=()=>{C(this,x,Be).call(this)},Se=()=>{C(this,x,Be).call(this)},R=M=>{const F=M.relatedTarget;yt(F)&&l.contains(F)||(D(this,qe,[M.clientX,M.clientY]),D(this,we,"trigger"),C(this,x,es).call(this))};return[eo(v,"pointermove",_),eo(l,"pointerleave",J),eo(l,"pointerenter",ve),eo(u,"pointerenter",Se),eo(u,"pointerleave",R)].reduce((M,F)=>()=>{M(),F()},()=>{})})}}at=new WeakMap,Nt=new WeakMap,Ht=new WeakMap,qe=new WeakMap,we=new WeakMap,_t=new WeakMap,gt=new WeakMap,it=new WeakMap,lt=new WeakMap,x=new WeakSet,Oo=function(){f(this,it)!==null&&(cancelAnimationFrame(f(this,it)),D(this,it,null))},es=function(){C(this,x,Oo).call(this),D(this,it,requestAnimationFrame(()=>{D(this,it,null),!(!f(this,qe)||!f(this,we))&&(C(this,x,Be).call(this),f(this,at).onPointerExit())}))},ts=function(){f(this,lt)!==null&&(clearTimeout(f(this,lt)),D(this,lt,null))},nr=function(){f(this,Ht)!==null&&(C(this,x,ts).call(this),D(this,lt,window.setTimeout(()=>{D(this,lt,null),!(!f(this,qe)||!f(this,we))&&(C(this,x,Be).call(this),f(this,at).onPointerExit())},f(this,Ht))))},ar=function(t,r,l){if(!f(this,qe)||!f(this,we))return;C(this,x,Oo).call(this),C(this,x,nr).call(this);const u=r.getBoundingClientRect(),c=l.getBoundingClientRect();if(f(this,we)==="content"&&Ro(t,c)){C(this,x,Be).call(this);return}if(f(this,we)==="trigger"&&Ro(t,u)){C(this,x,Be).call(this);return}if(f(this,we)==="content"&&f(this,_t).length>0)for(const Se of f(this,_t)){const R=Se.getBoundingClientRect();if(Ro(t,R))return;const M=qs(u,R),F=C(this,x,os).call(this,u,R,M);if(F&&Zo(t,F))return}const v=qs(u,c),_=C(this,x,os).call(this,u,c,v);if(_&&Zo(t,_))return;const J=f(this,we)==="content"?c:u,ve=C(this,x,ir).call(this,f(this,qe),J,v,f(this,we));Zo(t,ve)||(C(this,x,Be).call(this),f(this,at).onPointerExit())},Be=function(){D(this,qe,null),D(this,we,null),D(this,_t,[]),C(this,x,Oo).call(this),C(this,x,ts).call(this)},os=function(t,r,l){const u=f(this,Nt);switch(l){case"top":return[[Math.min(t.left,r.left)-u,t.top],[Math.min(t.left,r.left)-u,r.bottom],[Math.max(t.right,r.right)+u,r.bottom],[Math.max(t.right,r.right)+u,t.top]];case"bottom":return[[Math.min(t.left,r.left)-u,t.bottom],[Math.min(t.left,r.left)-u,r.top],[Math.max(t.right,r.right)+u,r.top],[Math.max(t.right,r.right)+u,t.bottom]];case"left":return[[t.left,Math.min(t.top,r.top)-u],[r.right,Math.min(t.top,r.top)-u],[r.right,Math.max(t.bottom,r.bottom)+u],[t.left,Math.max(t.bottom,r.bottom)+u]];case"right":return[[t.right,Math.min(t.top,r.top)-u],[r.left,Math.min(t.top,r.top)-u],[r.left,Math.max(t.bottom,r.bottom)+u],[t.right,Math.max(t.bottom,r.bottom)+u]]}},ir=function(t,r,l,u){const c=f(this,Nt)*4,[v,_]=t;switch(u==="trigger"?C(this,x,lr).call(this,l):l){case"top":return[[v-c,_+c],[v+c,_+c],[r.right+c,r.bottom],[r.right+c,r.top],[r.left-c,r.top],[r.left-c,r.bottom]];case"bottom":return[[v-c,_-c],[v+c,_-c],[r.right+c,r.top],[r.right+c,r.bottom],[r.left-c,r.bottom],[r.left-c,r.top]];case"left":return[[v+c,_-c],[v+c,_+c],[r.right,r.bottom+c],[r.left,r.bottom+c],[r.left,r.top-c],[r.right,r.top-c]];case"right":return[[v-c,_-c],[v-c,_+c],[r.left,r.bottom+c],[r.right,r.bottom+c],[r.right,r.top-c],[r.left,r.top-c]]}},lr=function(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const ss=_n({component:"popover",parts:["root","trigger","content","close","overlay"]}),ds=new hn("Popover.Root");var ro,no,ao,io,lo,uo,co,ut,ct,Je,nt;const ps=class ps{constructor(t){A(this,Je);ge(this,"opts");A(this,ro,rt(null));ge(this,"contentPresence");A(this,no,rt(null));A(this,ao,rt(null));ge(this,"overlayPresence");A(this,io,rt(!1));A(this,lo,rt(!1));A(this,uo,rt(!1));A(this,co,rt(0));A(this,ut,null);A(this,ct,null);this.opts=t,this.contentPresence=new Hs({ref:fe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Hs({ref:fe(()=>this.overlayNode),open:this.opts.open}),cs(()=>this.opts.open.current,r=>{r||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,C(this,Je,nt).call(this))})}static create(t){return ds.set(new ps(t))}get contentNode(){return e(f(this,ro))}set contentNode(t){n(f(this,ro),t,!0)}get triggerNode(){return e(f(this,no))}set triggerNode(t){n(f(this,no),t,!0)}get overlayNode(){return e(f(this,ao))}set overlayNode(t){n(f(this,ao),t,!0)}get openedViaHover(){return e(f(this,io))}set openedViaHover(t){n(f(this,io),t,!0)}get hasInteractedWithContent(){return e(f(this,lo))}set hasInteractedWithContent(t){n(f(this,lo),t,!0)}get hoverCooldown(){return e(f(this,uo))}set hoverCooldown(t){n(f(this,uo),t,!0)}get closeDelay(){return e(f(this,co))}set closeDelay(t){n(f(this,co),t,!0)}setDomContext(t){D(this,ct,t)}toggleOpen(){C(this,Je,nt).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){C(this,Je,nt).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){C(this,Je,nt).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(C(this,Je,nt).call(this),this.closeDelay<=0?this.opts.open.current=!1:f(this,ct)&&D(this,ut,f(this,ct).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),D(this,ut,null)},this.closeDelay))))}cancelDelayedClose(){C(this,Je,nt).call(this)}markInteraction(){this.hasInteractedWithContent=!0,C(this,Je,nt).call(this)}};ro=new WeakMap,no=new WeakMap,ao=new WeakMap,io=new WeakMap,lo=new WeakMap,uo=new WeakMap,co=new WeakMap,ut=new WeakMap,ct=new WeakMap,Je=new WeakSet,nt=function(){f(this,ut)!==null&&f(this,ct)&&(f(this,ct).clearTimeout(f(this,ut)),D(this,ut,null))};let rs=ps;var dt,Et,wt,xe,as,is,ls,ur,po;const hs=class hs{constructor(t,r){A(this,xe);ge(this,"opts");ge(this,"root");ge(this,"attachment");ge(this,"domContext");A(this,dt,null);A(this,Et,null);A(this,wt,rt(!1));A(this,po,Ee(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":yn(this.root.opts.open.current),"data-state":or(this.root.opts.open.current),"aria-controls":C(this,xe,ur).call(this),[ss.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=t,this.root=r,this.attachment=tr(this.opts.ref,l=>this.root.triggerNode=l),this.domContext=new fn(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),cs(()=>this.opts.closeDelay.current,l=>{this.root.closeDelay=l})}static create(t){return new hs(t,ds.get())}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ao(t)||(n(f(this,wt),!0),C(this,xe,is).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const r=this.opts.openDelay.current;r<=0?this.root.handleHoverOpen():D(this,dt,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),D(this,dt,null)},r))}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Ao(t)||(n(f(this,wt),!1),C(this,xe,as).call(this),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(C(this,xe,ls).call(this),e(f(this,wt))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}e(f(this,wt))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===vn||t.key===mn)&&(t.preventDefault(),C(this,xe,ls).call(this),this.root.toggleOpen())}get props(){return e(f(this,po))}set props(t){n(f(this,po),t)}};dt=new WeakMap,Et=new WeakMap,wt=new WeakMap,xe=new WeakSet,as=function(){f(this,dt)!==null&&(this.domContext.clearTimeout(f(this,dt)),D(this,dt,null))},is=function(){f(this,Et)!==null&&(this.domContext.clearTimeout(f(this,Et)),D(this,Et,null))},ls=function(){C(this,xe,as).call(this),C(this,xe,is).call(this)},ur=function(){var t,r;if(this.root.opts.open.current&&((t=this.root.contentNode)!=null&&t.id))return(r=this.root.contentNode)==null?void 0:r.id},po=new WeakMap;let ns=hs;var ho,fo;const fs=class fs{constructor(t,r){ge(this,"opts");ge(this,"root");ge(this,"attachment");ge(this,"onInteractOutside",t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!yt(t.target))return;const r=t.target.closest(ss.selector("trigger"));if(!(r&&r===this.root.triggerNode)){if(this.opts.customAnchor.current){if(yt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const l=document.querySelector(this.opts.customAnchor.current);if(l&&l.contains(t.target))return}}this.root.handleClose()}});ge(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});A(this,ho,Ee(()=>({open:this.root.opts.open.current})));A(this,fo,Ee(()=>({id:this.opts.id.current,tabindex:-1,"data-state":or(this.root.opts.open.current),[ss.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));ge(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=t,this.root=r,this.attachment=tr(this.opts.ref,l=>this.root.contentNode=l),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new Pn({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(t){return new fs(t,ds.get())}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const r=t.target;yt(r)&&bn(r)&&this.root.markInteraction()}onpointerenter(t){Ao(t)||this.root.cancelDelayedClose()}onpointerleave(t){Ao(t)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return e(f(this,ho))}set snippetProps(t){n(f(this,ho),t)}get props(){return e(f(this,fo))}set props(t){n(f(this,fo),t)}};ho=new WeakMap,fo=new WeakMap;let us=fs;var kn=T("<div><div><!></div></div>"),zn=T("<div><div><!></div></div>");function Js(p,t){const r=er();Do(t,!0);let l=q(t,"ref",15,null),u=q(t,"id",19,()=>sr(r)),c=q(t,"forceMount",3,!1),v=q(t,"onOpenAutoFocus",3,Lt),_=q(t,"onCloseAutoFocus",3,Lt),J=q(t,"onEscapeKeydown",3,Lt),ve=q(t,"onInteractOutside",3,Lt),Se=q(t,"trapFocus",3,!0),R=q(t,"preventScroll",3,!1),M=q(t,"customAnchor",3,null),F=rr(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const V=us.create({id:fe(()=>u()),ref:fe(()=>l(),U=>l(U)),onInteractOutside:fe(()=>ve()),onEscapeKeydown:fe(()=>J()),customAnchor:fe(()=>M())}),Te=Ee(()=>To(F,V.props)),Oe=Ee(()=>Se()&&V.shouldTrapFocus);function Ie(U){V.shouldTrapFocus||U.preventDefault(),v()(U)}var kt=Z(),We=S(kt);{var j=U=>{gn(U,Ge(()=>e(Te),()=>V.popperProps,{get ref(){return V.opts.ref},get enabled(){return V.root.opts.open.current},get id(){return u()},get trapFocus(){return e(Oe)},get preventScroll(){return R()},loop:!0,forceMount:!0,get customAnchor(){return M()},onOpenAutoFocus:Ie,get onCloseAutoFocus(){return _()},get shouldRender(){return V.shouldRender},popper:(Ze,X)=>{let Me=()=>X==null?void 0:X().props,Ce=()=>X==null?void 0:X().wrapperProps;const Ae=Ee(()=>To(Me(),{style:Es("popover")},{style:t.style}));var Ve=Z(),$e=S(Ve);{var Re=L=>{var K=Z(),B=S(K);{let De=Ee(()=>({props:e(Ae),wrapperProps:Ce(),...V.snippetProps}));bt(B,()=>t.child,()=>e(De))}m(L,K)},Le=L=>{var K=kn();so(K,()=>({...Ce()}));var B=h(K);so(B,()=>({...e(Ae)}));var De=h(B);bt(De,()=>t.children??Mo),d(B),d(K),m(L,K)};ue($e,L=>{t.child?L(Re):L(Le,-1)})}m(Ze,Ve)},$$slots:{popper:!0}}))},ee=U=>{wn(U,Ge(()=>e(Te),()=>V.popperProps,{get ref(){return V.opts.ref},get open(){return V.root.opts.open.current},get id(){return u()},get trapFocus(){return e(Oe)},get preventScroll(){return R()},loop:!0,forceMount:!1,get customAnchor(){return M()},onOpenAutoFocus:Ie,get onCloseAutoFocus(){return _()},get shouldRender(){return V.shouldRender},popper:(Ze,X)=>{let Me=()=>X==null?void 0:X().props,Ce=()=>X==null?void 0:X().wrapperProps;const Ae=Ee(()=>To(Me(),{style:Es("popover")},{style:t.style}));var Ve=Z(),$e=S(Ve);{var Re=L=>{var K=Z(),B=S(K);{let De=Ee(()=>({props:e(Ae),wrapperProps:Ce(),...V.snippetProps}));bt(B,()=>t.child,()=>e(De))}m(L,K)},Le=L=>{var K=zn();so(K,()=>({...Ce()}));var B=h(K);so(B,()=>({...e(Ae)}));var De=h(B);bt(De,()=>t.children??Mo),d(B),d(K),m(L,K)};ue($e,L=>{t.child?L(Re):L(Le,-1)})}m(Ze,Ve)},$$slots:{popper:!0}}))};ue(We,U=>{c()?U(j):c()||U(ee,1)})}m(p,kt),Fo()}var xn=T("<button><!></button>");function Xs(p,t){const r=er();Do(t,!0);let l=q(t,"id",19,()=>sr(r)),u=q(t,"ref",15,null),c=q(t,"type",3,"button"),v=q(t,"disabled",3,!1),_=q(t,"openOnHover",3,!1),J=q(t,"openDelay",3,700),ve=q(t,"closeDelay",3,300),Se=rr(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const R=ns.create({id:fe(()=>l()),ref:fe(()=>u(),F=>u(F)),disabled:fe(()=>!!v()),openOnHover:fe(()=>_()),openDelay:fe(()=>J()),closeDelay:fe(()=>ve())}),M=Ee(()=>To(Se,R.props,{type:c()}));Cn(p,{get id(){return l()},get ref(){return R.opts.ref},children:(F,V)=>{var Te=Z(),Oe=S(Te);{var Ie=We=>{var j=Z(),ee=S(j);bt(ee,()=>t.child,()=>({props:e(M)})),m(We,j)},kt=We=>{var j=xn();so(j,()=>({...e(M)}));var ee=h(j);bt(ee,()=>t.children??Mo),d(j),m(We,j)};ue(Oe,We=>{t.child?We(Ie):We(kt,-1)})}m(F,Te)},$$slots:{default:!0}}),Fo()}function Ys(p,t){Do(t,!0);let r=q(t,"open",15,!1),l=q(t,"onOpenChange",3,Lt),u=q(t,"onOpenChangeComplete",3,Lt);rs.create({open:fe(()=>r(),c=>{r(c),l()(c)}),onOpenChangeComplete:fe(()=>u())}),$n(p,{children:(c,v)=>{var _=Z(),J=S(_);bt(J,()=>t.children??Mo),m(c,_)},$$slots:{default:!0}}),Fo()}function Sn(p,t){const r=Pt(t,["children","$$slots","$$events","$$legacy"]);/**
2
+ * @license lucide-svelte v0.460.1 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const l=[["path",{d:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"m21 8-4-4-4 4"}],["path",{d:"M17 4v16"}]];Ct(p,Ge({name:"arrow-down-up"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function Tn(p,t){const r=Pt(t,["children","$$slots","$$events","$$legacy"]);/**
7
+ * @license lucide-svelte v0.460.1 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const l=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];Ct(p,Ge({name:"copy"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function On(p,t){const r=Pt(t,["children","$$slots","$$events","$$legacy"]);/**
12
+ * @license lucide-svelte v0.460.1 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const l=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];Ct(p,Ge({name:"ellipsis"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function Mn(p,t){const r=Pt(t,["children","$$slots","$$events","$$legacy"]);/**
17
+ * @license lucide-svelte v0.460.1 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const l=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];Ct(p,Ge({name:"external-link"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function An(p,t){const r=Pt(t,["children","$$slots","$$events","$$legacy"]);/**
22
+ * @license lucide-svelte v0.460.1 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const l=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];Ct(p,Ge({name:"pencil"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function Qs(p,t){const r=Pt(t,["children","$$slots","$$events","$$legacy"]);/**
27
+ * @license lucide-svelte v0.460.1 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const l=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17"}]];Ct(p,Ge({name:"trash-2"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function Dn(p,t){const r=Pt(t,["children","$$slots","$$events","$$legacy"]);/**
32
+ * @license lucide-svelte v0.460.1 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const l=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}]];Ct(p,Ge({name:"trash"},()=>r,{get iconNode(){return l},children:(u,c)=>{var v=Z(),_=S(v);$t(_,t,"default",{}),m(u,v)},$$slots:{default:!0}}))}function Gs(p,t={}){const r=p.trim();if(!r)return r;if(!/^https?:\/\//i.test(r))return r.toLowerCase();try{const l=new URL(r),u=l.protocol.toLowerCase(),c=l.host.toLowerCase();let v=l.pathname;return v.length>1&&v.endsWith("/")&&(v=v.slice(0,-1)),t.lowerPathCase&&(v=v.toLowerCase()),`${u}//${c}${v}${l.search}${l.hash}`}catch{return r.toLowerCase()}}function Zs(p){const t=p.trim();if(!/^https?:\/\//i.test(t))return null;try{return new URL(t).hostname.replace(/^www\./i,"")||null}catch{return null}}function Rs(p){return`/api/feed-favicon?domain=${encodeURIComponent(p)}`}var Fn=T("<span> </span> <!>",1),In=T("<!> <!>",1),Ln=T("<span> </span> <!>",1),Nn=T("<!> <!>",1),Hn=T('<p class="field-hint svelte-1beoyzy">暂无代理列表,可在后台「代理」中添加。</p>'),En=T('<p class="save-error svelte-1beoyzy"> </p>'),Wn=T('<span class="confirm-delete-row svelte-1beoyzy"><span class="confirm-delete-text svelte-1beoyzy">确认删除?</span> <button type="button" class="btn-confirm-yes svelte-1beoyzy">删除</button> <button type="button" class="btn-confirm-no svelte-1beoyzy">取消</button></span>'),Vn=T('<button type="button" class="btn-delete svelte-1beoyzy"><!> 删除</button>'),jn=T('<div class="modal-header svelte-1beoyzy"><!> <!></div> <div class="modal-body svelte-1beoyzy"><div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">Ref <span class="required svelte-1beoyzy">*</span></span> <div class="ref-input-wrap svelte-1beoyzy"><input class="field-input svelte-1beoyzy" type="text" placeholder="https://example.com/feed"/></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">来源</span> <div class="parse-hints svelte-1beoyzy" role="status" aria-live="polite"><span title="标准 RSS/Atom/JSON Feed(内置 __rss__,rss-parser)"><!> <span>RSS/Atom</span></span> <span title="内置 IMAP 邮件插件(__email__)"><!> <span>邮箱</span></span> <span title="Site 插件(listUrlPattern)或语鲸协议(lingowhale://)"><!> <span>插件</span></span> <span title="通用网页列表:无 Feed 特征且未命中插件时,走 LLM 解析(generic)"><!> <span>LLM</span></span></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">名称</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="显示名称(留空则显示 ref)"/></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">描述</span> <input class="field-input svelte-1beoyzy" type="text" placeholder="简短说明"/></div> <div class="field-row svelte-1beoyzy"><div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">权重(0–1)</span> <input class="field-input field-input--weight svelte-1beoyzy" type="number" min="0" max="1" step="0.01" inputmode="decimal" placeholder="0–1"/></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">刷新间隔</span> <!></div></div> <div class="field svelte-1beoyzy"><span class="field-label svelte-1beoyzy">代理</span> <!> <!></div> <!></div> <div class="modal-footer svelte-1beoyzy"><div class="modal-footer-left svelte-1beoyzy"><!></div> <div class="modal-footer-right svelte-1beoyzy"><!> <button type="button" class="btn-save svelte-1beoyzy"> </button></div></div>',1),Un=T("<!> <!>",1),Kn=T('<p class="remove-dialog-target svelte-1beoyzy"> </p>'),Bn=T('<div class="modal-header svelte-1beoyzy"><!> <!></div> <div class="modal-body svelte-1beoyzy"><p id="remove-source-desc" class="remove-dialog-text svelte-1beoyzy">确定删除该信源吗?操作会同时删除该信源下已入库的所有条目,且不可恢复。</p> <!></div> <div class="modal-footer remove-dialog-footer svelte-1beoyzy"><!> <button type="button" class="btn-confirm-yes svelte-1beoyzy">移除</button></div>',1),qn=T("<!> <!>",1),Jn=T('<span class="sort-menu-dir svelte-1beoyzy" aria-hidden="true"> </span>'),Xn=T('<button type="button"><span> </span> <!></button>'),Yn=T("<!> <!>",1),Qn=T('<div class="state svelte-1beoyzy">加载中…</div>'),Gn=T('<div class="state error svelte-1beoyzy"> </div>'),Zn=T('<div class="state svelte-1beoyzy">暂无信源。<button type="button" class="link-btn svelte-1beoyzy">点击添加</button>第一个信源。</div>'),Rn=T('<div class="state svelte-1beoyzy">无匹配结果</div>'),ea=T('<img class="source-title-favicon svelte-1beoyzy" alt="" width="16" height="16" loading="lazy" decoding="async"/>'),ta=T('<span class="source-title-favicon-slot svelte-1beoyzy" aria-hidden="true"><!></span>'),oa=T('<button type="button" class="more-menu-item svelte-1beoyzy" title="在本机服务端启动与抓取相同的有头 Chrome(共用浏览器数据目录与代理)"><!> <span>打开链接</span></button>'),sa=T('<button type="button" title="强制拉取"><!> <span> </span></button> <button type="button" class="more-menu-item svelte-1beoyzy"><!> <span>编辑</span></button> <button type="button" class="more-menu-item svelte-1beoyzy" title="复制本服务的 RSS 订阅地址(/rss?ref=…)"><!> <span>复制 RSS 地址</span></button> <!> <button type="button" class="more-menu-item more-menu-item-danger svelte-1beoyzy" title="清空该信源下所有已入库条目"><!> <span> </span></button> <button type="button" class="more-menu-item more-menu-item-remove svelte-1beoyzy" title="从订阅列表中移除此信源"><!> <span> </span></button>',1),ra=T("<!> <!>",1),na=T('<div class="card row-grid svelte-1beoyzy" role="button" tabindex="0"><div class="cell-title svelte-1beoyzy"><div class="title-block svelte-1beoyzy"><!> <div class="title-line svelte-1beoyzy"><span class="title-text svelte-1beoyzy"> </span> <span class="title-item-count svelte-1beoyzy"> </span></div></div></div> <div class="cell-actions svelte-1beoyzy"><!></div></div>'),aa=T('<div class="list svelte-1beoyzy"></div>'),ia=T('<!> <!> <!> <div class="feed-wrap svelte-1beoyzy"><div class="feed-col svelte-1beoyzy"><div class="feed-toolbar-block svelte-1beoyzy"><div class="feed-header svelte-1beoyzy"><div class="header-left svelte-1beoyzy"><input class="filter-input svelte-1beoyzy" type="search" placeholder="过滤…"/> <!></div> <div class="header-right svelte-1beoyzy"><button type="button" class="btn-add svelte-1beoyzy" title="添加信源" aria-label="添加信源"><!></button></div></div></div> <div class="feed-body-scroll svelte-1beoyzy"><!></div></div></div>',1);function Oa(p,t){Do(t,!1);const r=()=>Ms(ln,"$refToTaskId",u),l=()=>Ms(Go,"$page",u),[u,c]=Zr(),v=$(),_=$(),J=$(),ve=$(),Se=$(),R=$(),M=$(),F=$();function V(o){return o==="alpha"||o==="parse"?"asc":"desc"}const Te="1day",Oe=[{value:"10min",label:"10 分钟"},{value:"30min",label:"30 分钟"},{value:"1h",label:"1 小时"},{value:"6h",label:"6 小时"},{value:"12h",label:"12 小时"},{value:"1day",label:"1 天"},{value:"3day",label:"3 天"},{value:"7day",label:"7 天"}];function Ie(o){const s=(o==null?void 0:o.trim())??"";return Oe.some(a=>a.value===s)?s:Te}function kt(o){return Math.min(1,Math.max(0,o))}function We(o){const s=typeof o=="number"&&!Number.isNaN(o)?o:Number(String(o).trim());return Number.isFinite(s)?s<0||s>1?{ok:!1,message:"权重需在 0–1 之间"}:{ok:!0,value:s}:{ok:!1,message:"权重需为 0–1 之间的数字"}}let j=[],ee=$([]),U=$([]),Wt=$(!0),Ze=$(""),X=$(""),Me=$("weight"),Ce=$("desc"),Ae=$(!1),Ve="",$e=$(null),Re=$({}),Le=$(null),L=$(null),K=$(!1),B=$(null),De=$(!1),me=$(null),Vt=$(!1),jt=$(!1),Xe=$(!1),se=$(""),Fe=$(""),zt=$(""),xt=$(""),Ut=$(0),pt=$(Te),ye=$("");function cr(o){n(ye,o)}function dr(o){n(pt,o)}let St=$(null),vo=null;function mo(o){const s=(o==null?void 0:o.trim())??"";if(!s)return s;const a=s.toLowerCase();return a.startsWith("http://")||a.startsWith("https://")||a.startsWith("imaps://")||a.startsWith("imap://")||a.startsWith("lingowhale://")?s:"https://"+s}function pr(o){const s=o.toLowerCase();return s.includes("/feed")||s.includes("/rss")||s.includes("/atom")||s.endsWith(".xml")||s.endsWith(".rss")||s.endsWith(".atom")||s.includes("format=rss")||s.includes("format=atom")||s.includes("output=rss")}function vs(o,s){const a=(o==null?void 0:o.trim())??"";if(!a)return null;const i=a.toLowerCase();if(i.startsWith("imaps://")||i.startsWith("imap://"))return"email";if(i.startsWith("lingowhale://"))return"plugin";const g=mo(a);return!g.startsWith("http://")&&!g.startsWith("https://")?null:pr(g)?"rss":s?"plugin":"llm"}function Io(o){return o==="rss"?"RSS/Atom":o==="plugin"?"插件":o==="llm"?"LLM":o==="email"?"邮箱":"—"}function hr(o){vo&&clearTimeout(vo);const s=o==null?void 0:o.trim();if(!s){n(St,null);return}n(St,null);const a=mo(s);vo=setTimeout(async()=>{vo=null;try{const i=await He("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:[a]})});if(i.ok){const g=await i.json();mo(e(Fe).trim())===a&&n(St,g[a]??null)}}catch{mo(e(Fe).trim())===a&&n(St,null)}},400)}function fr(o,s,a){const i=a==="desc"?-1:1;return[...o].sort((g,k)=>{let b=0;switch(s){case"weight":b=g.weight-k.weight;break;case"alpha":b=g.displayLabel.localeCompare(k.displayLabel,"zh-CN");break;case"parse":b=Io(g.parseHint).localeCompare(Io(k.parseHint),"zh-CN");break;case"latest":{const H=g.latestAt?new Date(g.latestAt).getTime():NaN,re=k.latestAt?new Date(k.latestAt).getTime():NaN,ce=Number.isFinite(H),Y=Number.isFinite(re);if(!ce&&!Y)b=0;else if(ce)if(Y)b=H-re;else return-1;else return 1;break}case"count":b=g.count-k.count;break;case"week":b=g.weekCount-k.weekCount;break}return b!==0?i*b:g.displayLabel.localeCompare(k.displayLabel,"zh-CN")})}function vr(o){e(Me)===o?n(Ce,e(Ce)==="asc"?"desc":"asc"):(n(Me,o),n(Ce,V(o)))}let Lo=$(!1);function ms(o){return o==="alpha"?"标题":o==="weight"?"权重":o==="latest"?"最近拉取":o==="parse"?"解析":o==="week"?"近7天":"数量"}function mr(o){vr(o),n(Lo,!1)}const yr=["alpha","weight","latest","parse","count","week"];async function Tt(o){const s=(o==null?void 0:o.silent)===!0;s||n(Wt,!0),n(Ze,"");try{const[a,i,g]=await Promise.all([He("/api/sources/raw"),He("/api/sources/stats"),He("/api/proxy")]),k=await a.text(),b=JSON.parse(k||"{}");if(j=Array.isArray(b.sources)?b.sources:[],g.ok){const w=await g.json();n(U,Array.isArray(w.proxyList)?w.proxyList.filter(I=>typeof I=="string"&&I.trim().length>0):[])}else n(U,[]);const H=i.ok?await i.json():[],re=new Map;for(const w of H){const I=Gs(w.source_url),P=re.get(I),N=w.latest_at??null,ne=typeof w.count_7d=="number"&&Number.isFinite(w.count_7d)?w.count_7d:0;P?re.set(I,{count:P.count+w.count,weekCount:P.weekCount+ne,latestAt:P.latestAt?N?P.latestAt>=N?P.latestAt:N:P.latestAt:N}):re.set(I,{count:w.count,weekCount:ne,latestAt:N})}const ce=j.filter(w=>{var I;return(I=w==null?void 0:w.ref)==null?void 0:I.trim()}).map(w=>w.ref.trim());let Y={};if(ce.length>0)try{const w=await He("/api/sources/plugin-match",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refs:ce})});w.ok&&(Y=await w.json())}catch{}n(ee,j.filter(w=>{var I;return(I=w==null?void 0:w.ref)==null?void 0:I.trim()}).map(w=>{var be,E;const I=w.ref.trim(),P=re.get(Gs(I))??{count:0,weekCount:0,latestAt:null},N=Y[I]??null,ne=(be=w.proxy)==null?void 0:be.trim();return{ref:I,displayLabel:w.label&&w.label.trim()||I,description:(E=w.description)==null?void 0:E.trim(),count:(P==null?void 0:P.count)??0,weekCount:(P==null?void 0:P.weekCount)??0,latestAt:(P==null?void 0:P.latestAt)??null,pluginId:N,weight:w.weight??0,...ne?{proxy:ne}:{},parseHint:vs(I,N)}}))}catch(a){n(Ze,a instanceof Error?a.message:String(a)),s||n(ee,[])}finally{s||n(Wt,!1)}}async function No(o){return(await He("/api/sources/raw",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({sources:o})})).ok}function ys(){n(jt,!1),n(Fe,""),n(zt,""),n(xt,""),n(Ut,0),n(pt,Te),n(ye,""),n(se,""),n(Vt,!0)}function br(o){const s=j.find(a=>a.ref===o.ref);n(jt,!0),Ve=o.ref,n(Fe,o.ref),n(zt,(s==null?void 0:s.label)??""),n(xt,(s==null?void 0:s.description)??""),n(Ut,kt((s==null?void 0:s.weight)??0)),n(pt,Ie(s==null?void 0:s.refresh)),n(ye,(s==null?void 0:s.proxy)??""),n(se,""),n(Ae,!1),n(Vt,!0)}function bs(){n(Vt,!1),n(Ae,!1)}async function _r(){const o=e(Fe).trim();if(!o){n(se,"ref 不能为空");return}const s=We(e(Ut));if(!s.ok){n(se,s.message);return}n(Xe,!0),n(se,"");try{const a=s.value,i={ref:o,...e(zt).trim()?{label:e(zt).trim()}:{},...e(xt).trim()?{description:e(xt).trim()}:{},refresh:e(pt),...e(ye).trim()?{proxy:e(ye).trim()}:{},...a!==0?{weight:a}:{}};let g;if(e(jt)){if(o!==Ve&&j.some(b=>b.ref===o)){n(se,"该 ref 已存在");return}g=j.map(b=>b.ref===Ve?{...b,...i}:b)}else{if(j.some(b=>b.ref===o)){n(se,"该 ref 已存在");return}g=[...j,i]}if(!await No(g)){n(se,"保存失败,请重试");return}bs(),await Tt({silent:!0})}catch(a){n(se,a instanceof Error?a.message:String(a))}finally{n(Xe,!1)}}async function _s(o){try{const s=await He("/api/items/by-source?source_url="+encodeURIComponent(o),{method:"DELETE"}),a=await s.json();return!s.ok||!a.ok?{ok:!1,message:a.message??"删除信源条目失败"}:{ok:!0,deleted:Number(a.deleted??0)}}catch(s){return{ok:!1,message:s instanceof Error?s.message:"删除信源条目失败"}}}async function gr(){const o=Ve.trim();if(!o){n(se,"缺少信源 ref");return}n(Xe,!0),n(se,"");try{const s=await _s(o);if(!s.ok){n(se,s.message);return}const a=j.filter(g=>g.ref!==o);if(!await No(a)){n(se,"删除信源失败,请重试");return}bs(),await Tt({silent:!0})}catch(s){n(se,s instanceof Error?s.message:String(s))}finally{n(Xe,!1)}}async function wr(o){for(let s=0;s<120;s++){const a=await He(`/api/tasks/${o}`);if(!a.ok)return{ok:!1,error:"轮询失败"};const i=await a.json();if(i.status==="done")return{ok:!0};if(i.status==="error")return{ok:!1,error:i.error??"拉取失败"};await new Promise(g=>setTimeout(g,800))}return{ok:!1,error:"超时"}}async function Cr(o,s){if(s==null||s.preventDefault(),s==null||s.stopPropagation(),!(o in r()))try{const a=await He("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"source-pull",ref:o})}),i=await a.json();if(!a.ok||!i.taskId)return;un(o,i.taskId),(await wr(i.taskId)).ok&&await Tt({silent:!0})}catch{}finally{cn(o)}}function $r(o){const s=o.trim().toLowerCase();return s.startsWith("http://")||s.startsWith("https://")}function Pr(o){const s=new URL("/rss",typeof window<"u"?window.location.origin:"http://127.0.0.1");return s.searchParams.set("ref",o),s.href}async function kr(o,s){s==null||s.preventDefault(),s==null||s.stopPropagation();try{const a=await He("/api/sources/open-browser",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:o})}),i=await a.json();a.ok&&i.ok?Ft(i.message??"已在爬虫浏览器中打开","success"):Ft(i.message??"打开失败","error")}catch{Ft("打开失败","error")}finally{n($e,null)}}async function zr(o){const s=Pr(o);try{await navigator.clipboard.writeText(s)}catch{try{const a=document.createElement("textarea");a.value=s,a.style.position="fixed",a.style.left="-9999px",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)}catch{}}n($e,null)}function xr(o){n(K,o),o||n(B,null)}function Sr(o){e(L)||(n(B,o),n(K,!0),n($e,null))}async function Tr(){var s;const o=e(B);if(!(!o||e(L))){n(K,!1),n(B,null),n(L,o);try{const a=await _s(o);if(!a.ok){Ft(a.message,"error");return}const i=j.filter(k=>k.ref!==o);if(!await No(i)){Ft("移除失败,请重试","error");return}As(Go).url.pathname==="/"?Ds.update(k=>(k==null?void 0:k.ref)===o?null:k):((s=e(me))==null?void 0:s.ref)===o&&(n(De,!1),n(me,null)),await Tt({silent:!0})}catch(a){Ft(a instanceof Error?a.message:"移除失败","error")}finally{n(L,null)}}}async function Or(o){if(!e(Le)&&confirm("确定要清空该信源下的所有条目吗?此操作不可恢复。")){n(Le,o),n($e,null);try{const s=await He("/api/items/by-source?source_url="+encodeURIComponent(o),{method:"DELETE"}),a=await s.json();s.ok&&a.ok?await Tt({silent:!0}):s.ok||alert(a.message??"清空失败")}catch(s){alert(s instanceof Error?s.message:"清空失败")}finally{n(Le,null)}}}function gs(o){var s,a;if(As(Go).url.pathname==="/"){Ds.set({ref:o.ref,displayLabel:o.displayLabel,...(s=o.description)!=null&&s.trim()?{description:o.description.trim()}:{},...(a=o.proxy)!=null&&a.trim()?{proxy:o.proxy.trim()}:{},...o.parseHint!=null?{parseHint:o.parseHint}:{}});return}n(me,o),n(De,!0)}function Mr(o,s){const a=s.target;a&&(a.closest("a[href], button")||gs(o))}function Ar(o,s){s.key!=="Enter"&&s.key!==" "||(s.preventDefault(),gs(o))}Jr(Tt),Qe(()=>(e(B),e(ee)),()=>{var o;n(v,e(B)!=null?((o=e(ee).find(s=>s.ref===e(B)))==null?void 0:o.displayLabel)??e(B):"")}),Qe(()=>(e(ye),e(U)),()=>{n(_,e(ye).trim()&&!e(U).includes(e(ye).trim()))}),Qe(()=>(e(_),e(ye),e(U)),()=>{n(J,[{value:"",label:"使用默认代理"},...e(_)?[{value:e(ye),label:`${e(ye)}(当前配置,未在代理列表中)`}]:[],...e(U).map(o=>({value:o,label:o}))])}),Qe(()=>(e(J),e(ye)),()=>{var o;n(ve,((o=e(J).find(s=>s.value===e(ye)))==null?void 0:o.label)??"使用默认代理")}),Qe(()=>e(pt),()=>{var o;n(Se,((o=Oe.find(s=>s.value===e(pt)))==null?void 0:o.label)??"1 天")}),Qe(()=>e(Fe),()=>{e(Fe),hr(e(Fe))}),Qe(()=>(e(Fe),e(St)),()=>{n(R,vs(e(Fe),e(St)))}),Qe(()=>e(R),()=>{n(M,e(R)??"llm")}),Qe(()=>(e(X),e(ee),e(Me),e(Ce)),()=>{n(F,fr(e(X).trim()?e(ee).filter(o=>{var a;const s=e(X).trim().toLowerCase();return o.displayLabel.toLowerCase().includes(s)||(((a=o.description)==null?void 0:a.toLowerCase().includes(s))??!1)||o.ref.toLowerCase().includes(s)||Io(o.parseHint).toLowerCase().includes(s)}):e(ee),e(Me),e(Ce)))}),Xr(),en();var ws=ia(),Cs=S(ws);Fs(Cs,{get open(){return e(Vt)},onOpenChange:o=>{n(Vt,o),o||n(Ae,!1)},children:(o,s)=>{It(o,{children:(a,i)=>{var g=Un(),k=S(g);Is(k,{class:"modal-overlay"});var b=y(k,2);Ls(b,{class:"modal","aria-describedby":void 0,children:(H,re)=>{var ce=jn(),Y=S(ce),w=h(Y);Ns(w,{class:"modal-title",children:(O,Pe)=>{te();var ae=st();oe(()=>le(ae,e(jt)?"编辑信源":"添加信源")),m(O,ae)},$$slots:{default:!0}});var I=y(w,2);So(I,{class:"modal-close","aria-label":"关闭",children:(O,Pe)=>{te();var ae=st("✕");m(O,ae)},$$slots:{default:!0}}),d(Y);var P=y(Y,2),N=h(P),ne=y(h(N),2),be=h(ne);to(be),d(ne),d(N);var E=y(N,2),de=y(h(E),2),Q=h(de);let W;var G=h(Q);tn(G,{size:14,class:"parse-hint-icon"}),te(2),d(Q);var pe=y(Q,2);let je;var jo=h(pe);on(jo,{size:14,class:"parse-hint-icon"}),te(2),d(pe);var et=y(pe,2);let Uo;var yo=h(et);sn(yo,{size:14,class:"parse-hint-icon"}),te(2),d(et);var Ue=y(et,2);let Kt;var bo=h(Ue);rn(bo,{size:14,class:"parse-hint-icon"}),te(2),d(Ue),d(de),d(E);var Ot=y(E,2),_o=y(h(Ot),2);to(_o),d(Ot);var tt=y(Ot,2),go=y(h(tt),2);to(go),d(tt);var ot=y(tt,2),Bt=h(ot),qt=y(h(Bt),2);to(qt),d(Bt);var wo=y(Bt,2),Ko=y(h(wo),2);Ws(Ko,{type:"single",get value(){return e(pt)},onValueChange:dr,get items(){return Oe},children:(O,Pe)=>{var ae=In(),ft=S(ae);Vs(ft,{class:"source-modal-select-trigger","aria-label":"刷新间隔",children:(_e,ke)=>{var he=Fn(),Ne=S(he),vt=h(Ne,!0);d(Ne);var Gt=y(Ne,2);js(Gt,{size:14,"aria-hidden":"true"}),oe(()=>le(vt,e(Se))),m(_e,he)},$$slots:{default:!0}});var Qt=y(ft,2);It(Qt,{children:(_e,ke)=>{Us(_e,{class:"source-modal-select-content",sideOffset:4,children:(he,Ne)=>{Ks(he,{class:"source-modal-select-viewport",children:(vt,Gt)=>{var Zt=Z(),qo=S(Zt);xo(qo,1,()=>Oe,mt=>mt.value,(mt,ze)=>{Bs(mt,{class:"source-modal-select-item",get value(){return e(ze),z(()=>e(ze).value)},get label(){return e(ze),z(()=>e(ze).label)},children:(Jo,Kr)=>{te();var Rt=st();oe(()=>le(Rt,(e(ze),z(()=>e(ze).label)))),m(Jo,Rt)},$$slots:{default:!0}})}),m(vt,Zt)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}}),m(O,ae)},$$slots:{default:!0}}),d(wo),d(ot);var Ye=y(ot,2),Jt=y(h(Ye),2);Ws(Jt,{type:"single",get value(){return e(ye)},onValueChange:cr,get items(){return e(J)},children:(O,Pe)=>{var ae=Nn(),ft=S(ae);Vs(ft,{class:"source-modal-select-trigger","aria-label":"代理",children:(_e,ke)=>{var he=Ln(),Ne=S(he),vt=h(Ne,!0);d(Ne);var Gt=y(Ne,2);js(Gt,{size:14,"aria-hidden":"true"}),oe(()=>le(vt,e(ve))),m(_e,he)},$$slots:{default:!0}});var Qt=y(ft,2);It(Qt,{children:(_e,ke)=>{Us(_e,{class:"source-modal-select-content",sideOffset:4,children:(he,Ne)=>{Ks(he,{class:"source-modal-select-viewport",children:(vt,Gt)=>{var Zt=Z(),qo=S(Zt);xo(qo,1,()=>e(J),mt=>mt.value,(mt,ze)=>{Bs(mt,{class:"source-modal-select-item",get value(){return e(ze),z(()=>e(ze).value)},get label(){return e(ze),z(()=>e(ze).label)},children:(Jo,Kr)=>{te();var Rt=st();oe(()=>le(Rt,(e(ze),z(()=>e(ze).label)))),m(Jo,Rt)},$$slots:{default:!0}})}),m(vt,Zt)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}}),m(O,ae)},$$slots:{default:!0}});var Co=y(Jt,2);{var Bo=O=>{var Pe=Hn();m(O,Pe)};ue(Co,O=>{e(U),z(()=>e(U).length===0)&&O(Bo)})}d(Ye);var Mt=y(Ye,2);{var $o=O=>{var Pe=En(),ae=h(Pe,!0);d(Pe),oe(()=>le(ae,e(se))),m(O,Pe)};ue(Mt,O=>{e(se)&&O($o)})}d(P);var Xt=y(P,2),Yt=h(Xt),ht=h(Yt);{var At=O=>{var Pe=Z(),ae=S(Pe);{var ft=_e=>{var ke=Wn(),he=y(h(ke),2),Ne=y(he,2);d(ke),oe(()=>he.disabled=e(Xe)),ie("click",he,gr),ie("click",Ne,()=>n(Ae,!1)),m(_e,ke)},Qt=_e=>{var ke=Vn(),he=h(ke);Qs(he,{size:13}),te(),d(ke),oe(()=>ke.disabled=e(Xe)),ie("click",ke,()=>n(Ae,!0)),m(_e,ke)};ue(ae,_e=>{e(Ae)?_e(ft):_e(Qt,-1)})}m(O,Pe)};ue(ht,O=>{e(jt)&&O(At)})}d(Yt);var Po=y(Yt,2),ko=h(Po);So(ko,{class:"btn-cancel",get disabled(){return e(Xe)},children:(O,Pe)=>{te();var ae=st("取消");m(O,ae)},$$slots:{default:!0}});var zo=y(ko,2),Ur=h(zo,!0);d(zo),d(Po),d(Xt),oe(()=>{W=Dt(Q,1,"parse-hint svelte-1beoyzy",null,W,{active:e(M)==="rss"}),je=Dt(pe,1,"parse-hint svelte-1beoyzy",null,je,{active:e(M)==="email"}),Uo=Dt(et,1,"parse-hint svelte-1beoyzy",null,Uo,{active:e(M)==="plugin"}),Kt=Dt(Ue,1,"parse-hint svelte-1beoyzy",null,Kt,{active:e(M)==="llm"}),zo.disabled=e(Xe),le(Ur,e(Xe)?"保存中…":"保存")}),oo(be,()=>e(Fe),O=>n(Fe,O)),oo(_o,()=>e(zt),O=>n(zt,O)),oo(go,()=>e(xt),O=>n(xt,O)),oo(qt,()=>e(Ut),O=>n(Ut,O)),ie("click",zo,_r),m(H,ce)},$$slots:{default:!0}}),m(a,g)},$$slots:{default:!0}})},$$slots:{default:!0}});var $s=y(Cs,2);Fs($s,{get open(){return e(K)},onOpenChange:xr,children:(o,s)=>{It(o,{children:(a,i)=>{var g=qn(),k=S(g);Is(k,{class:"modal-overlay"});var b=y(k,2);Ls(b,{class:"modal","aria-describedby":"remove-source-desc",children:(H,re)=>{var ce=Bn(),Y=S(ce),w=h(Y);Ns(w,{class:"modal-title",children:(Q,W)=>{te();var G=st("移除信源");m(Q,G)},$$slots:{default:!0}});var I=y(w,2);So(I,{class:"modal-close","aria-label":"关闭",children:(Q,W)=>{te();var G=st("✕");m(Q,G)},$$slots:{default:!0}}),d(Y);var P=y(Y,2),N=y(h(P),2);{var ne=Q=>{var W=Kn(),G=h(W,!0);d(W),oe(()=>le(G,e(v))),m(Q,W)};ue(N,Q=>{e(v)&&Q(ne)})}d(P);var be=y(P,2),E=h(be);{let Q=Ke(()=>!!e(L));So(E,{class:"btn-cancel",get disabled(){return e(Q)},children:(W,G)=>{te();var pe=st("取消");m(W,pe)},$$slots:{default:!0}})}var de=y(E,2);d(be),oe(()=>de.disabled=!!e(L)),ie("click",de,Tr),m(H,ce)},$$slots:{default:!0}}),m(a,g)},$$slots:{default:!0}})},$$slots:{default:!0}});var Ps=y($s,2);{var Dr=o=>{{let s=Ke(()=>(e(me),z(()=>{var b;return((b=e(me))==null?void 0:b.ref)??""}))),a=Ke(()=>(e(me),z(()=>{var b;return((b=e(me))==null?void 0:b.displayLabel)??""}))),i=Ke(()=>(e(me),z(()=>{var b,H;return((H=(b=e(me))==null?void 0:b.description)==null?void 0:H.trim())??""}))),g=Ke(()=>(e(me),z(()=>{var b,H;return((H=(b=e(me))==null?void 0:b.proxy)==null?void 0:H.trim())??""}))),k=Ke(()=>(e(me),z(()=>{var b;return((b=e(me))==null?void 0:b.parseHint)??null})));nn(o,{variant:"overlay",get open(){return e(De)},get sourceRef(){return e(s)},get sourceLabel(){return e(a)},get sourceDescription(){return e(i)},get sourceProxy(){return e(g)},get sourceParseHint(){return e(k)},onOpenChange:b=>{n(De,b),b||n(me,null)}})}};ue(Ps,o=>{l(),z(()=>l().url.pathname!=="/")&&o(Dr)})}var ks=y(Ps,2),zs=h(ks),Ho=h(zs),xs=h(Ho),Eo=h(xs),Wo=h(Eo);to(Wo);var Fr=y(Wo,2);{var Ir=o=>{Ys(o,{get open(){return e(Lo)},onOpenChange:s=>{n(Lo,s)},children:(s,a)=>{var i=Yn(),g=S(i);{let b=Ke(()=>(e(Me),z(()=>ms(e(Me))))),H=Ke(()=>e(Ce)==="asc"?" 升序":" 降序");Xs(g,{type:"button",class:"btn-sort",get title(){return`排序:${e(b)??""}${e(H)??""},点此选择依据或同项切换方向`},"aria-label":"排序",children:(re,ce)=>{Sn(re,{size:16})},$$slots:{default:!0}})}var k=y(g,2);It(k,{children:(b,H)=>{Js(b,{class:"dropdown-panel sort-menu",sideOffset:6,align:"start",children:(re,ce)=>{var Y=Z(),w=S(Y);xo(w,1,()=>yr,Rr,(I,P)=>{var N=Xn();let ne;var be=h(N),E=h(be,!0);d(be);var de=y(be,2);{var Q=W=>{var G=Jn(),pe=h(G,!0);d(G),oe(()=>le(pe,e(Ce)==="asc"?"↑":"↓")),m(W,G)};ue(de,W=>{e(Me)===e(P)&&W(Q)})}d(N),oe(W=>{ne=Dt(N,1,"sort-menu-item svelte-1beoyzy",null,ne,{active:e(Me)===e(P)}),le(E,W)},[()=>(e(P),z(()=>ms(e(P))))]),ie("click",N,()=>mr(e(P))),m(I,N)}),m(re,Y)},$$slots:{default:!0}})},$$slots:{default:!0}}),m(s,i)},$$slots:{default:!0}})};ue(Fr,o=>{l(),e(ee),z(()=>l().url.pathname==="/"&&e(ee).length>0)&&o(Ir)})}d(Eo);var Ss=y(Eo,2),Vo=h(Ss),Lr=h(Vo);dn(Lr,{size:16,"aria-hidden":"true"}),d(Vo),d(Ss),d(xs),d(Ho);var Ts=y(Ho,2),Nr=h(Ts);{var Hr=o=>{var s=Qn();m(o,s)},Er=o=>{var s=Gn(),a=h(s,!0);d(s),oe(()=>le(a,e(Ze))),m(o,s)},Wr=o=>{var s=Zn(),a=y(h(s));te(),d(s),ie("click",a,ys),m(o,s)},Vr=o=>{var s=Rn();m(o,s)},jr=o=>{var s=aa();xo(s,5,()=>e(F),a=>a.ref,(a,i)=>{const g=Ke(()=>(Yo(Zs),e(i),z(()=>Zs(e(i).ref))));var k=na(),b=h(k),H=h(b),re=h(H);{var ce=E=>{var de=ta(),Q=h(de);{var W=G=>{var pe=ea();oe(je=>Qo(pe,"src",je),[()=>(Yo(Rs),Yo(e(g)),z(()=>Rs(e(g))))]),Qr("error",pe,()=>{n(Re,{...e(Re),[e(i).ref]:!0})}),Gr(pe),m(G,pe)};ue(Q,G=>{e(Re),e(i),z(()=>!e(Re)[e(i).ref])&&G(W)})}d(de),m(E,de)};ue(re,E=>{e(g)&&E(ce)})}var Y=y(re,2),w=h(Y),I=h(w,!0);d(w);var P=y(w,2),N=h(P,!0);d(P),d(Y),d(H),d(b);var ne=y(b,2),be=h(ne);{let E=Ke(()=>(e($e),e(i),z(()=>e($e)===e(i).ref)));Ys(be,{get open(){return e(E)},onOpenChange:de=>{n($e,de?e(i).ref:null)},children:(de,Q)=>{var W=ra(),G=S(W);Xs(G,{class:"btn-icon",title:"更多",onclick:je=>je.stopPropagation(),children:(je,jo)=>{On(je,{size:13})},$$slots:{default:!0}});var pe=y(G,2);It(pe,{children:(je,jo)=>{Js(je,{class:"dropdown-panel more-menu",sideOffset:6,align:"center",onclick:et=>et.stopPropagation(),children:(et,Uo)=>{var yo=sa(),Ue=S(yo);let Kt;var bo=h(Ue);an(bo,{size:14});var Ot=y(bo,2),_o=h(Ot,!0);d(Ot),d(Ue);var tt=y(Ue,2),go=h(tt);An(go,{size:14}),te(2),d(tt);var ot=y(tt,2),Bt=h(ot);Tn(Bt,{size:14}),te(2),d(ot);var qt=y(ot,2);{var wo=ht=>{var At=oa(),Po=h(At);Mn(Po,{size:14}),te(2),d(At),ie("click",At,ko=>kr(e(i).ref,ko)),m(ht,At)},Ko=Ee(()=>(e(i),z(()=>$r(e(i).ref))));ue(qt,ht=>{e(Ko)&&ht(wo)})}var Ye=y(qt,2),Jt=h(Ye);Dn(Jt,{size:14});var Co=y(Jt,2),Bo=h(Co,!0);d(Co),d(Ye);var Mt=y(Ye,2),$o=h(Mt);Qs($o,{size:14});var Xt=y($o,2),Yt=h(Xt,!0);d(Xt),d(Mt),oe(()=>{Kt=Dt(Ue,1,"more-menu-item svelte-1beoyzy",null,Kt,{pulling:e(i).ref in r()}),Ue.disabled=(e(i),r(),z(()=>e(i).ref in r())),le(_o,(e(i),r(),z(()=>e(i).ref in r()?"拉取中…":"拉取"))),Ye.disabled=(e(Le),e(i),z(()=>e(Le)===e(i).ref)),le(Bo,(e(Le),e(i),z(()=>e(Le)===e(i).ref?"清空中…":"清空该源条目"))),Mt.disabled=(e(L),e(i),z(()=>e(L)===e(i).ref)),le(Yt,(e(L),e(i),z(()=>e(L)===e(i).ref?"移除中…":"移除信源")))}),ie("click",Ue,ht=>{Cr(e(i).ref,ht),n($e,null)}),ie("click",tt,()=>{br(e(i)),n($e,null)}),ie("click",ot,()=>zr(e(i).ref)),ie("click",Ye,()=>Or(e(i).ref)),ie("click",Mt,()=>Sr(e(i).ref)),m(et,yo)},$$slots:{default:!0}})},$$slots:{default:!0}}),m(de,W)},$$slots:{default:!0}})}d(ne),d(k),oe(()=>{Qo(H,"title",(e(i),z(()=>e(i).ref))),le(I,(e(i),z(()=>e(i).displayLabel))),Qo(P,"title",`已收录 ${e(i),z(()=>e(i).count)??""} 条 · 近 7 天内有拉取记录的条目 ${e(i),z(()=>e(i).weekCount)??""} 条`),le(N,(e(i),z(()=>e(i).count)))}),ie("click",k,E=>Mr(e(i),E)),ie("keydown",k,E=>Ar(e(i),E)),m(a,k)}),d(s),m(o,s)};ue(Nr,o=>{e(Wt)?o(Hr):e(Ze)?o(Er,1):(e(ee),z(()=>e(ee).length===0)?o(Wr,2):(e(F),z(()=>e(F).length===0)?o(Vr,3):o(jr,-1)))})}d(Ts),d(zs),d(ks),oo(Wo,()=>e(X),o=>n(X,o)),ie("click",Vo,ys),m(p,ws),Fo(),c()}Yr(["click","keydown"]);export{Oa as S};