fubi 1.0.0-beta.2 → 1.0.0-beta.4

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 (99) hide show
  1. package/dist/index.es.js +15650 -0
  2. package/dist/index.iife.js +6 -0
  3. package/package.json +16 -15
  4. package/.prettierignore +0 -9
  5. package/.prettierrc +0 -23
  6. package/.vscode/extensions.json +0 -3
  7. package/config.toml +0 -3
  8. package/demo/index.html +0 -64
  9. package/index.html +0 -19
  10. package/publish.js +0 -77
  11. package/src/components/App.svelte +0 -17
  12. package/src/components/Debug.svelte +0 -39
  13. package/src/components/Layout.svelte +0 -47
  14. package/src/components/comment/CommentCard.svelte +0 -49
  15. package/src/components/comment/CommentFocusElement.svelte +0 -14
  16. package/src/components/comment/CommentMenu.svelte +0 -18
  17. package/src/components/comment/CommentPriority.svelte +0 -31
  18. package/src/components/comment/CommentReplyButton.svelte +0 -35
  19. package/src/components/comment/CommentUser.svelte +0 -22
  20. package/src/components/icons/AlertIcon.svelte +0 -7
  21. package/src/components/icons/CancelIcon.svelte +0 -8
  22. package/src/components/icons/CheckCircle.svelte +0 -7
  23. package/src/components/icons/CheckIcon.svelte +0 -7
  24. package/src/components/icons/CheckSmallIcon.svelte +0 -7
  25. package/src/components/icons/ChevronLeftIcon.svelte +0 -7
  26. package/src/components/icons/ChevronRightIcon.svelte +0 -7
  27. package/src/components/icons/ChevronsUpIcon.svelte +0 -8
  28. package/src/components/icons/DotsIcon.svelte +0 -9
  29. package/src/components/icons/PlusIcon.svelte +0 -8
  30. package/src/components/index.ts +0 -0
  31. package/src/components/toolbar/ButtonToolbar.svelte +0 -29
  32. package/src/components/toolbar/Menu.svelte +0 -42
  33. package/src/components/toolbar/Toolbar.svelte +0 -55
  34. package/src/components/ui/Button.svelte +0 -33
  35. package/src/components/ui/ButtonIcon.svelte +0 -31
  36. package/src/components/ui/ButtonSmall.svelte +0 -12
  37. package/src/components/ui/ButtonTabbar.svelte +0 -35
  38. package/src/components/ui/Chip.svelte +0 -28
  39. package/src/components/ui/Icon.svelte +0 -38
  40. package/src/components/ui/Input.svelte +0 -9
  41. package/src/components/ui/List.svelte +0 -18
  42. package/src/components/ui/ListItem.svelte +0 -87
  43. package/src/components/ui/ListLoader.svelte +0 -20
  44. package/src/components/ui/Loader.svelte +0 -39
  45. package/src/components/ui/Logo.svelte +0 -20
  46. package/src/components/ui/Msg.svelte +0 -21
  47. package/src/components/ui/Navbar.svelte +0 -33
  48. package/src/components/ui/Page.svelte +0 -67
  49. package/src/components/ui/Tabbar.svelte +0 -60
  50. package/src/components/ui/Toggle.svelte +0 -8
  51. package/src/components/ui/Window.svelte +0 -61
  52. package/src/index.ts +0 -28
  53. package/src/lib/actions.ts +0 -58
  54. package/src/lib/haptics.ts +0 -94
  55. package/src/lib/logger.ts +0 -22
  56. package/src/lib/routes.ts +0 -37
  57. package/src/lib/utils.ts +0 -27
  58. package/src/modules/app.svelte.ts +0 -66
  59. package/src/modules/auth.svelte.ts +0 -80
  60. package/src/modules/collection.svelte.ts +0 -79
  61. package/src/modules/comments.svelte.ts +0 -34
  62. package/src/modules/dom.svelte.ts +0 -26
  63. package/src/modules/domains.svelte.ts +0 -91
  64. package/src/modules/environment.svelte.ts +0 -10
  65. package/src/modules/events.svelte.ts +0 -23
  66. package/src/modules/folders.svelte.ts +0 -64
  67. package/src/modules/home.svelte.ts +0 -29
  68. package/src/modules/hover.svelte.ts +0 -3
  69. package/src/modules/index.ts +0 -28
  70. package/src/modules/keys.svelte.ts +0 -72
  71. package/src/modules/module.svelte.ts +0 -47
  72. package/src/modules/navbar.svelte.ts +0 -11
  73. package/src/modules/pages.svelte.ts +0 -126
  74. package/src/modules/project.svelte.ts +0 -70
  75. package/src/modules/router.svelte.ts +0 -99
  76. package/src/modules/tabbar.svelte.ts +0 -21
  77. package/src/modules/teams.svelte.ts +0 -0
  78. package/src/modules/toolbar.svelte.ts +0 -34
  79. package/src/modules/watch.svelte.ts +0 -8
  80. package/src/modules/win.svelte.ts +0 -273
  81. package/src/pages/Comments.svelte +0 -32
  82. package/src/pages/Error.svelte +0 -25
  83. package/src/pages/Folders.svelte +0 -53
  84. package/src/pages/Login.svelte +0 -44
  85. package/src/pages/Pages.svelte +0 -75
  86. package/src/pages/Thread.svelte +0 -11
  87. package/src/styles/global.css +0 -16
  88. package/src/styles/router.css +0 -79
  89. package/src/styles/styles.css +0 -159
  90. package/src/styles/tailwind.css +0 -115
  91. package/src/styles/variables.css +0 -99
  92. package/src/test.ts +0 -22
  93. package/src/types/fubi.ts +0 -0
  94. package/src/types/msg.ts +0 -5
  95. package/src/types/pocketbase.ts +0 -7
  96. package/src/types/user.ts +0 -8
  97. package/svelte.config.js +0 -11
  98. package/tsconfig.json +0 -41
  99. package/vite.config.ts +0 -40
@@ -0,0 +1,6 @@
1
+ var t=function(t){"use strict";var e,n,r,i,o,s,a,l,c,u,d,h,p,f,g,v,m,w,b,y,x,k,C,M,$,W,S,A,O,E,P,T,z,L,N,_,F,R,D,I,j,B,H,V,K,Z,U,q,Y,X,G,J,Q,tt,et,nt,rt,it,ot,st,at,lt,ct,ut,dt,ht,pt,ft,gt,vt,mt,wt,bt,yt,xt,kt,Ct,Mt,$t,Wt,St,At,Ot,Et,Pt,Tt,zt,Lt,Nt,_t,Ft,Rt,Dt,It,jt,Bt,Ht,Vt,Kt,Zt,Ut,qt,Yt,Xt,Gt,Jt,Qt,te,ee,ne,re,ie,oe,se,ae,le,ce,ue,de,he,pe,fe,ge,ve,me,we,be,ye,xe,ke,Ce,Me,$e,We,Se,Ae,Oe,Ee,Pe,Te,ze,Le,Ne,_e,Fe,Re,De,Ie,je,Be,He,Ve,Ke,Ze,Ue,qe,Ye,Xe,Ge,Je,Qe,tn,en,nn,rn,on,sn,an,ln,cn,un,dn,hn,pn,fn,gn,vn,mn,wn,bn,yn,xn,kn,Cn,Mn,$n,Wn,Sn,An,On,En,Pn,Tn,zn,Ln,Nn,_n,Fn,Rn,Dn,In,jn,Bn,Hn,Vn,Kn,Zn,Un,qn,Yn,Xn,Gn,Jn,Qn,tr,er,nr,rr,ir,or,sr,ar,lr,cr,ur,dr,hr,pr,fr,gr,vr,mr,wr,br,yr,xr,kr,Cr,Mr,$r,Wr,Sr,Ar,Or,Er,Pr,Tr,zr,Lr,Nr,_r,Fr,Rr,Dr,Ir,jr,Br,Hr,Vr,Kr,Zr,Ur,qr,Yr,Xr,Gr,Jr,Qr,ti,ei,ni,ri,ii,oi,si,ai,li,ci,ui,di,hi,pi,fi,gi,vi,mi,wi,bi,yi,xi,ki,Ci,Mi,$i,Wi,Si,Ai,Oi,Ei,Pi,Ti=Object.defineProperty,zi=Object.getPrototypeOf,Li=Reflect.get,Ni=t=>{throw TypeError(t)},_i=(t,e,n)=>((t,e,n)=>e in t?Ti(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n),Fi=(t,e,n)=>e.has(t)||Ni("Cannot "+n),Ri=(t,e,n)=>(Fi(t,e,"read from private field"),n?n.call(t):e.get(t)),Di=(t,e,n)=>e.has(t)?Ni("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Ii=(t,e,n,r)=>(Fi(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),ji=(t,e,n)=>(Fi(t,e,"access private method"),n),Bi=Array.isArray,Hi=Array.prototype.indexOf,Vi=Array.from,Ki=Object.defineProperty,Zi=Object.getOwnPropertyDescriptor,Ui=Object.getOwnPropertyDescriptors,qi=Object.prototype,Yi=Array.prototype,Xi=Object.getPrototypeOf,Gi=Object.isExtensible;function Ji(t){return"function"==typeof t}const Qi=()=>{};function to(){var t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}const eo=16,no=256,ro=1024,io=2048,oo=4096,so=8192,ao=16384,lo=32768,co=65536,uo=1<<19,ho=1<<21,po=1<<23,fo=Symbol("$state"),go=Symbol("legacy props"),vo=Symbol(""),mo=new class extends Error{constructor(){super(...arguments),_i(this,"name","StaleReactionError"),_i(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function wo(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}const bo=Symbol(),yo="@attach";function xo(t){return t===this.v}function ko(t){return e=t,n=this.v,!(e!=e?n==n:e!==n||null!==e&&"object"==typeof e||"function"==typeof e);var e,n}let Co=null;function Mo(t){Co=t}function $o(t){return Oo().get(t)}function Wo(t,e){return Oo().set(t,e),e}function So(t,e=!1,n){Co={p:Co,c:null,e:null,s:t,x:null,l:null}}function Ao(t){var e=Co,n=e.e;if(null!==n)for(var r of(e.e=null,n))js(r);return Co=e.p,{}}function Oo(t){return null===Co&&wo(),Co.c??(Co.c=new Map(function(t){let e=t.p;for(;null!==e;){const t=e.c;if(null!==t)return t;e=e.p}return null}(Co)||void 0))}let Eo=[];function Po(){var t=Eo;Eo=[],function(t){for(var e=0;e<t.length;e++)t[e]()}(t)}function To(t){if(0===Eo.length&&!Zo){var e=Eo;queueMicrotask(()=>{e===Eo&&Po()})}Eo.push(t)}function zo(){for(;Eo.length>0;)Po()}const Lo=new WeakMap;function No(t){var e=da;if(null===e)return la.f|=po,t;if(0===(e.f&lo)){if(!(128&e.f))throw!e.parent&&t instanceof Error&&Fo(t),t;e.b.error(t)}else _o(t,e)}function _o(t,e){for(;null!==e;){if(128&e.f)try{return void e.b.error(t)}catch(n){t=n}e=e.parent}throw t instanceof Error&&Fo(t),t}function Fo(t){const e=Lo.get(t);e&&(Ki(t,"message",{value:e.message}),Ki(t,"stack",{value:e.stack}))}const Ro=new Set;let Do=null,Io=null,jo=null,Bo=new Set,Ho=[],Vo=null,Ko=!1,Zo=!1;e=new WeakMap,n=new WeakMap,r=new WeakMap,i=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakSet,d=function(t){t.f^=ro;for(var e=t.first;null!==e;){var n=e.f,r=!!(96&n);if(!(r&&0!==(n&ro)||0!==(n&so)||this.skipped_effects.has(e))&&null!==e.fn){r?e.f^=ro:4&n?Ri(this,s).push(e):Ma(e)&&(0!==(e.f&eo)&&Ri(this,a).push(e),Oa(e));var i=e.first;if(null!==i){e=i;continue}}var o=e.parent;for(e=e.next;null===e&&null!==o;)e=o.next,o=o.parent}},h=function(t){for(const e of t)(0!==(e.f&io)?Ri(this,l):Ri(this,c)).push(e),Na(e,ro);t.length=0},p=function(){var t;for(const e of Ri(this,n))e();if(Ri(this,n).clear(),Ro.size>1){Ri(this,e).clear();let n=!0;for(const e of Ro){if(e===this){n=!1;continue}const r=[];for(const[t,o]of this.current){if(e.current.has(t)){if(!n||o===e.current.get(t))continue;e.current.set(t,o)}r.push(t)}if(0===r.length)continue;const i=[...e.current.keys()].filter(t=>!this.current.has(t));if(i.length>0){for(const t of r)Jo(t,i);if(Ho.length>0){Do=e,e.apply();for(const n of Ho)ji(t=e,u,d).call(t,n);Ho=[],e.deactivate()}}}Do=null}Ro.delete(this)};let Uo=class t{constructor(){Di(this,u),_i(this,"current",new Map),Di(this,e,new Map),Di(this,n,new Set),Di(this,r,0),Di(this,i,null),Di(this,o,[]),Di(this,s,[]),Di(this,a,[]),Di(this,l,[]),Di(this,c,[]),_i(this,"skipped_effects",new Set)}process(t){var e;Ho=[],Io=null,this.apply();for(const r of t)ji(this,u,d).call(this,r);if(0===Ri(this,r)){var n=jo;ji(this,u,p).call(this);var l=Ri(this,o),c=Ri(this,s);Ii(this,o,[]),Ii(this,s,[]),Ii(this,a,[]),Io=this,Do=null,jo=n,Go(l),Go(c),Io=null,null==(e=Ri(this,i))||e.resolve()}else ji(this,u,h).call(this,Ri(this,o)),ji(this,u,h).call(this,Ri(this,s)),ji(this,u,h).call(this,Ri(this,a));jo=null}capture(t,n){Ri(this,e).has(t)||Ri(this,e).set(t,n),this.current.set(t,t.v),null==jo||jo.set(t,t.v)}activate(){Do=this}deactivate(){Do=null,jo=null}flush(){if(Ho.length>0){if(this.activate(),qo(),null!==Do&&Do!==this)return}else 0===Ri(this,r)&&ji(this,u,p).call(this);this.deactivate();for(const t of Bo)if(Bo.delete(t),t(),null!==Do)break}increment(){Ii(this,r,Ri(this,r)+1)}decrement(){Ii(this,r,Ri(this,r)-1);for(const t of Ri(this,l))Na(t,io),ts(t);for(const t of Ri(this,c))Na(t,oo),ts(t);this.flush()}add_callback(t){Ri(this,n).add(t)}settled(){return(Ri(this,i)??Ii(this,i,to())).promise}static ensure(){if(null===Do){const e=Do=new t;Ro.add(Do),Zo||t.enqueue(()=>{Do===e&&e.flush()})}return Do}static enqueue(t){To(t)}apply(){}};function qo(){var t=ia;Ko=!0;try{var e=0;for(oa(!0);Ho.length>0;){var n=Uo.ensure();e++>1e3&&Yo(),n.process(Ho),hs.clear()}}finally{Ko=!1,oa(t),Vo=null}}function Yo(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(t){_o(t,Vo)}}let Xo=null;function Go(t){var e=t.length;if(0!==e){for(var n=0;n<e;){var r=t[n++];if(!(24576&r.f)&&Ma(r)&&(Xo=[],Oa(r),null===r.deps&&null===r.first&&null===r.nodes_start&&(null===r.teardown&&null===r.ac?Gs(r):r.fn=null),(null==Xo?void 0:Xo.length)>0)){hs.clear();for(const t of Xo)Oa(t);Xo=[]}}Xo=null}}function Jo(t,e){if(null!==t.reactions)for(const n of t.reactions){const t=n.f;2&t?Jo(n,e):4194320&t&&Qo(n,e)&&(Na(n,io),ts(n))}}function Qo(t,e){if(null!==t.deps)for(const n of t.deps){if(e.includes(n))return!0;if(2&n.f&&Qo(n,e))return!0}return!1}function ts(t){for(var e=Vo=t;null!==e.parent;){var n=(e=e.parent).f;if(Ko&&e===da&&0!==(n&eo))return;if(96&n){if(0===(n&ro))return;e.f^=ro}}Ho.push(e)}function es(t){let e,n=0,r=ps(0);return()=>{null===la||ca||(Pa(r),Vs(()=>(0===n&&(e=za(()=>t(()=>ws(r)))),n+=1,()=>{To(()=>{n-=1,0===n&&(null==e||e(),e=void 0,ws(r))})})))}}class ns{constructor(t,e,n){Di(this,E),_i(this,"parent"),Di(this,f,!1),Di(this,g),Di(this,v,null),Di(this,m),Di(this,w),Di(this,b),Di(this,y,null),Di(this,x,null),Di(this,k,null),Di(this,C,null),Di(this,M,0),Di(this,$,0),Di(this,W,!1),Di(this,S,null),Di(this,A,()=>{Ri(this,S)&&ms(Ri(this,S),Ri(this,M))}),Di(this,O,es(()=>(Ii(this,S,ps(Ri(this,M))),()=>{Ii(this,S,null)}))),Ii(this,g,t),Ii(this,m,e),Ii(this,w,n),this.parent=da.b,Ii(this,f,!!Ri(this,m).pending),Ii(this,b,Zs(()=>{da.b=this;try{Ii(this,y,Us(()=>n(Ri(this,g))))}catch(t){this.error(t)}Ri(this,$)>0?ji(this,E,T).call(this):Ii(this,f,!1)},589952))}is_pending(){return Ri(this,f)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!Ri(this,m).pending}update_pending_count(t){ji(this,E,z).call(this,t),Ii(this,M,Ri(this,M)+t),Bo.add(Ri(this,A))}get_effect_pending(){return Ri(this,O).call(this),Pa(Ri(this,S))}error(t){var e=Ri(this,m).onerror;let n=Ri(this,m).failed;if(Ri(this,W)||!e&&!n)throw t;Ri(this,y)&&(Xs(Ri(this,y)),Ii(this,y,null)),Ri(this,x)&&(Xs(Ri(this,x)),Ii(this,x,null)),Ri(this,k)&&(Xs(Ri(this,k)),Ii(this,k,null));var r=!1,i=!1;const o=()=>{r||(r=!0,i&&function(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),Uo.ensure(),Ii(this,M,0),null!==Ri(this,k)&&Js(Ri(this,k),()=>{Ii(this,k,null)}),Ii(this,f,this.has_pending_snippet()),Ii(this,y,ji(this,E,P).call(this,()=>(Ii(this,W,!1),Us(()=>Ri(this,w).call(this,Ri(this,g)))))),Ri(this,$)>0?ji(this,E,T).call(this):Ii(this,f,!1))};var s=la;try{ua(null),i=!0,null==e||e(t,o),i=!1}catch(a){_o(a,Ri(this,b)&&Ri(this,b).parent)}finally{ua(s)}n&&To(()=>{Ii(this,k,ji(this,E,P).call(this,()=>{Ii(this,W,!0);try{return Us(()=>{n(Ri(this,g),()=>t,()=>o)})}catch(a){return _o(a,Ri(this,b).parent),null}finally{Ii(this,W,!1)}}))})}}function rs(t,e,n){const r=os;if(0!==e.length){var i,o,s,a,l=Do,c=da,u=(i=da,o=la,s=Co,a=Do,function(){ha(i),ua(o),Mo(s),null==a||a.activate()});Promise.all(e.map(t=>ss(t))).then(e=>{u();try{n([...t.map(r),...e])}catch(i){0===(c.f&ao)&&_o(i,c)}null==l||l.deactivate(),is()}).catch(t=>{_o(t,c)})}else n(t.map(r))}function is(){ha(null),ua(null),Mo(null)}function os(t){var e=2050,n=null!==la&&2&la.f?la:null;return null===da||null!==n&&0!==(n.f&no)?e|=no:da.f|=uo,{ctx:Co,deps:null,effects:null,equals:xo,f:e,fn:t,reactions:null,rv:0,v:bo,wv:0,parent:n??da,ac:null}}function ss(t,e){let n=da;null===n&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var r=n.b,i=void 0,o=ps(bo),s=!la,a=new Map;return function(t){Rs(4718592,t,!0)}(()=>{var e,n=to();i=n.promise;try{Promise.resolve(t()).then(n.resolve,n.reject).then(is)}catch(d){n.reject(d),is()}var l=Do,c=r.is_pending();s&&(r.update_pending_count(1),c||(l.increment(),null==(e=a.get(l))||e.reject(mo),a.delete(l),a.set(l,n)));const u=(t,e=void 0)=>{if(c||l.activate(),e)e!==mo&&(o.f|=po,ms(o,e));else{0!==(o.f&po)&&(o.f^=po),ms(o,t);for(const[t,e]of a){if(a.delete(t),t===l)break;e.reject(mo)}}s&&(r.update_pending_count(-1),c||l.decrement())};n.promise.then(u,t=>u(null,t||"unknown"))}),Ds(()=>{for(const t of a.values())t.reject(mo)}),new Promise(t=>{!function e(n){function r(){n===i?t(o):e(i)}n.then(r,r)}(i)})}function as(t){const e=os(t);return fa(e),e}function ls(t){const e=os(t);return e.equals=ko,e}function cs(t){var e=t.effects;if(null!==e){t.effects=null;for(var n=0;n<e.length;n+=1)Xs(e[n])}}function us(t){var e,n=da;ha(function(t){for(var e=t.parent;null!==e;){if(!(2&e.f))return e;e=e.parent}return null}(t));try{cs(t),e=Wa(t)}finally{ha(n)}return e}function ds(t){var e=us(t);t.equals(e)||(t.v=e,t.wv=Ca()),sa||(null!==jo?jo.set(t,t.v):Na(t,!ka&&0===(t.f&no)||null===t.deps?ro:oo))}f=new WeakMap,g=new WeakMap,v=new WeakMap,m=new WeakMap,w=new WeakMap,b=new WeakMap,y=new WeakMap,x=new WeakMap,k=new WeakMap,C=new WeakMap,M=new WeakMap,$=new WeakMap,W=new WeakMap,S=new WeakMap,A=new WeakMap,O=new WeakMap,E=new WeakSet,P=function(t){var e=da,n=la,r=Co;ha(Ri(this,b)),ua(Ri(this,b)),Mo(Ri(this,b).ctx);try{return t()}catch(i){return No(i),null}finally{ha(e),ua(n),Mo(r)}},T=function(){const t=Ri(this,m).pending;null!==Ri(this,y)&&(Ii(this,C,document.createDocumentFragment()),ra(Ri(this,y),Ri(this,C))),null===Ri(this,x)&&Ii(this,x,Us(()=>t(Ri(this,g))))},z=function(t){var e;this.has_pending_snippet()?(Ii(this,$,Ri(this,$)+t),0===Ri(this,$)&&(Ii(this,f,!1),Ri(this,x)&&Js(Ri(this,x),()=>{Ii(this,x,null)}),Ri(this,C)&&(Ri(this,g).before(Ri(this,C)),Ii(this,C,null)),To(()=>{Uo.ensure().flush()}))):this.parent&&ji(e=this.parent,E,z).call(e,t)};const hs=new Map;function ps(t,e){return{f:0,v:t,reactions:null,equals:xo,rv:0,wv:0}}function fs(t,e){const n=ps(t);return fa(n),n}function gs(t,e=!1,n=!0){const r=ps(t);return e||(r.equals=ko),r}function vs(t,e,n=!1){return null===la||ca&&!(131072&la.f)||!(4325394&la.f)||(null==pa?void 0:pa.includes(t))||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),ms(t,n?ys(e):e)}function ms(t,e){if(!t.equals(e)){var n=t.v;sa?hs.set(t,e):hs.set(t,n),t.v=e,Uo.ensure().capture(t,n),2&t.f&&(0!==(t.f&io)&&us(t),Na(t,0===(t.f&no)?ro:oo)),t.wv=Ca(),bs(t,io),null===da||0===(da.f&ro)||96&da.f||(null===ma?function(t){ma=t}([t]):ma.push(t))}return e}function ws(t){vs(t,t.v+1)}function bs(t,e){var n=t.reactions;if(null!==n)for(var r=n.length,i=0;i<r;i++){var o=n[i],s=o.f,a=0===(s&io);a&&Na(o,e),2&s?bs(o,oo):a&&(0!==(s&eo)&&null!==Xo&&Xo.push(o),ts(o))}}function ys(t){if("object"!=typeof t||null===t||fo in t)return t;const e=Xi(t);if(e!==qi&&e!==Yi)return t;var n=new Map,r=Bi(t),i=fs(0),o=ya,s=t=>{if(ya===o)return t();var e=la,n=ya;ua(null),xa(o);var r=t();return ua(e),xa(n),r};return r&&n.set("length",fs(t.length)),new Proxy(t,{defineProperty(t,e,r){"value"in r&&!1!==r.configurable&&!1!==r.enumerable&&!1!==r.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var i=n.get(e);return void 0===i?i=s(()=>{var t=fs(r.value);return n.set(e,t),t}):vs(i,r.value,!0),!0},deleteProperty(t,e){var r=n.get(e);if(void 0===r){if(e in t){const t=s(()=>fs(bo));n.set(e,t),ws(i)}}else vs(r,bo),ws(i);return!0},get(e,r,i){var o;if(r===fo)return t;var a=n.get(r),l=r in e;if(void 0!==a||l&&!(null==(o=Zi(e,r))?void 0:o.writable)||(a=s(()=>fs(ys(l?e[r]:bo))),n.set(r,a)),void 0!==a){var c=Pa(a);return c===bo?void 0:c}return Reflect.get(e,r,i)},getOwnPropertyDescriptor(t,e){var r=Reflect.getOwnPropertyDescriptor(t,e);if(r&&"value"in r){var i=n.get(e);i&&(r.value=Pa(i))}else if(void 0===r){var o=n.get(e),s=null==o?void 0:o.v;if(void 0!==o&&s!==bo)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return r},has(t,e){var r;if(e===fo)return!0;var i=n.get(e),o=void 0!==i&&i.v!==bo||Reflect.has(t,e);return!((void 0!==i||null!==da&&(!o||(null==(r=Zi(t,e))?void 0:r.writable)))&&(void 0===i&&(i=s(()=>fs(o?ys(t[e]):bo)),n.set(e,i)),Pa(i)===bo))&&o},set(t,e,o,a){var l,c=n.get(e),u=e in t;if(r&&"length"===e)for(var d=o;d<c.v;d+=1){var h=n.get(d+"");void 0!==h?vs(h,bo):d in t&&(h=s(()=>fs(bo)),n.set(d+"",h))}void 0===c?u&&!(null==(l=Zi(t,e))?void 0:l.writable)||(vs(c=s(()=>fs(void 0)),ys(o)),n.set(e,c)):(u=c.v!==bo,vs(c,s(()=>ys(o))));var p=Reflect.getOwnPropertyDescriptor(t,e);if((null==p?void 0:p.set)&&p.set.call(a,o),!u){if(r&&"string"==typeof e){var f=n.get("length"),g=Number(e);Number.isInteger(g)&&g>=f.v&&vs(f,g+1)}ws(i)}return!0},ownKeys(t){Pa(i);var e=Reflect.ownKeys(t).filter(t=>{var e=n.get(t);return void 0===e||e.v!==bo});for(var[r,o]of n)o.v===bo||r in t||e.push(r);return e},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function xs(t){try{if(null!==t&&"object"==typeof t&&fo in t)return t[fo]}catch{}return t}function ks(t,e){return Object.is(xs(t),xs(e))}var Cs,Ms,$s,Ws;function Ss(t=""){return document.createTextNode(t)}function As(t){return $s.call(t)}function Os(t){return Ws.call(t)}function Es(t,e){return As(t)}function Ps(t,e=!1){var n=As(t);return n instanceof Comment&&""===n.data?Os(n):n}function Ts(t,e=1,n=!1){let r=t;for(;e--;)r=Os(r);return r}function zs(t,e){if(e){const e=document.body;t.autofocus=!0,To(()=>{document.activeElement===e&&t.focus()})}}let Ls=!1;function Ns(t){var e=la,n=da;ua(null),ha(null);try{return t()}finally{ua(e),ha(n)}}function _s(t,e,n,r=n){t.addEventListener(e,()=>Ns(n));const i=t.__on_r;t.__on_r=i?()=>{i(),r(!0)}:()=>r(!0),Ls||(Ls=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const n of t.target.elements)null==(e=n.__on_r)||e.call(n)})},{capture:!0}))}function Fs(t){null===da&&null===la&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),null!==la&&0!==(la.f&no)&&null===da&&function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}(),sa&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function Rs(t,e,n,r=!0){var i=da;null!==i&&0!==(i.f&so)&&(t|=so);var o={ctx:Co,deps:null,nodes_start:null,nodes_end:null,f:t|io,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Oa(o),o.f|=lo}catch(l){throw Xs(o),l}else null!==e&&ts(o);if(r){var s=o;if(n&&null===s.deps&&null===s.teardown&&null===s.nodes_start&&s.first===s.last&&0===(s.f&uo)&&(s=s.first),null!==s&&(s.parent=i,null!==i&&function(t,e){var n=e.last;null===n?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}(s,i),null!==la&&2&la.f&&!(64&t))){var a=la;(a.effects??(a.effects=[])).push(s)}}return o}function Ds(t){const e=Rs(8,null,!1);return Na(e,ro),e.teardown=t,e}function Is(t){Fs();var e=da.f;if(la||!(32&e)||0!==(e&lo))return js(t);var n=Co;(n.e??(n.e=[])).push(t)}function js(t){return Rs(1048580,t,!1)}function Bs(t){Uo.ensure();const e=Rs(524352,t,!0);return()=>{Xs(e)}}function Hs(t){return Rs(4,t,!1)}function Vs(t,e=0){return Rs(8|e,t,!0)}function Ks(t,e=[],n=[]){rs(e,n,e=>{Rs(8,()=>t(...e.map(Pa)),!0)})}function Zs(t,e=0){return Rs(eo|e,t,!0)}function Us(t,e=!0){return Rs(524320,t,!0,e)}function qs(t){var e=t.teardown;if(null!==e){const t=sa,n=la;aa(!0),ua(null);try{e.call(null)}finally{aa(t),ua(n)}}}function Ys(t,e=!1){var n=t.first;for(t.first=t.last=null;null!==n;){const t=n.ac;null!==t&&Ns(()=>{t.abort(mo)});var r=n.next;64&n.f?n.parent=null:Xs(n,e),n=r}}function Xs(t,e=!0){var n=!1;(e||262144&t.f)&&null!==t.nodes_start&&null!==t.nodes_end&&(function(t,e){for(;null!==t;){var n=t===e?null:Os(t);t.remove(),t=n}}(t.nodes_start,t.nodes_end),n=!0),Ys(t,e&&!n),Aa(t,0),Na(t,ao);var r=t.transitions;if(null!==r)for(const o of r)o.stop();qs(t);var i=t.parent;null!==i&&null!==i.first&&Gs(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Gs(t){var e=t.parent,n=t.prev,r=t.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==e&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function Js(t,e,n=!0){var r=[];ta(t,r,!0),Qs(r,()=>{n&&Xs(t),e&&e()})}function Qs(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var i of t)i.out(r)}else e()}function ta(t,e,n){if(0===(t.f&so)){if(t.f^=so,null!==t.transitions)for(const r of t.transitions)(r.is_global||n)&&e.push(r);for(var r=t.first;null!==r;){var i=r.next;ta(r,e,!!(0!==(r.f&co)||32&r.f)&&n),r=i}}}function ea(t){na(t,!0)}function na(t,e){if(0!==(t.f&so)){t.f^=so,0===(t.f&ro)&&(Na(t,io),ts(t));for(var n=t.first;null!==n;){var r=n.next;na(n,!!(0!==(n.f&co)||32&n.f)&&e),n=r}if(null!==t.transitions)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function ra(t,e){for(var n=t.nodes_start,r=t.nodes_end;null!==n;){var i=n===r?null:Os(n);e.append(n),n=i}}let ia=!1;function oa(t){ia=t}let sa=!1;function aa(t){sa=t}let la=null,ca=!1;function ua(t){la=t}let da=null;function ha(t){da=t}let pa=null;function fa(t){null!==la&&(null===pa?pa=[t]:pa.push(t))}let ga=null,va=0,ma=null,wa=1,ba=0,ya=ba;function xa(t){ya=t}let ka=!1;function Ca(){return++wa}function Ma(t){var e,n=t.f;if(0!==(n&io))return!0;if(0!==(n&oo)){var r=t.deps,i=0!==(n&no);if(null!==r){var o,s,a=!!(512&n),l=i&&null!==da&&!ka,c=r.length;if((a||l)&&(null===da||0===(da.f&ao))){var u=t,d=u.parent;for(o=0;o<c;o++)s=r[o],!a&&(null==(e=null==s?void 0:s.reactions)?void 0:e.includes(u))||(s.reactions??(s.reactions=[])).push(u);a&&(u.f^=512),l&&null!==d&&0===(d.f&no)&&(u.f^=no)}for(o=0;o<c;o++)if(Ma(s=r[o])&&ds(s),s.wv>t.wv)return!0}i&&(null===da||ka)||Na(t,ro)}return!1}function $a(t,e,n=!0){var r=t.reactions;if(null!==r&&!(null==pa?void 0:pa.includes(t)))for(var i=0;i<r.length;i++){var o=r[i];2&o.f?$a(o,e,!1):e===o&&(n?Na(o,io):0!==(o.f&ro)&&Na(o,oo),ts(o))}}function Wa(t){var e,n=ga,r=va,i=ma,o=la,s=ka,a=pa,l=Co,c=ca,u=ya,d=t.f;ga=null,va=0,ma=null,ka=0!==(d&no)&&(ca||!ia||null===la),la=96&d?null:t,pa=null,Mo(t.ctx),ca=!1,ya=++ba,null!==t.ac&&(Ns(()=>{t.ac.abort(mo)}),t.ac=null);try{t.f|=ho;var h=(0,t.fn)(),p=t.deps;if(null!==ga){var f;if(Aa(t,va),null!==p&&va>0)for(p.length=va+ga.length,f=0;f<ga.length;f++)p[va+f]=ga[f];else t.deps=p=ga;if(!ka||2&d&&null!==t.reactions)for(f=va;f<p.length;f++)((e=p[f]).reactions??(e.reactions=[])).push(t)}else null!==p&&va<p.length&&(Aa(t,va),p.length=va);if(!(null===ma||ca||null===p||6146&t.f))for(f=0;f<ma.length;f++)$a(ma[f],t);return null!==o&&o!==t&&(ba++,null!==ma&&(null===i?i=ma:i.push(...ma))),0!==(t.f&po)&&(t.f^=po),h}catch(g){return No(g)}finally{t.f^=ho,ga=n,va=r,ma=i,la=o,ka=s,pa=a,Mo(l),ca=c,ya=u}}function Sa(t,e){let n=e.reactions;if(null!==n){var r=Hi.call(n,t);if(-1!==r){var i=n.length-1;0===i?n=e.reactions=null:(n[r]=n[i],n.pop())}}null===n&&2&e.f&&(null===ga||!ga.includes(e))&&(Na(e,oo),768&e.f||(e.f^=512),cs(e),Aa(e,0))}function Aa(t,e){var n=t.deps;if(null!==n)for(var r=e;r<n.length;r++)Sa(t,n[r])}function Oa(t){var e=t.f;if(0===(e&ao)){Na(t,ro);var n=da,r=ia;da=t,ia=!0;try{0!==(e&eo)?function(t){for(var e=t.first;null!==e;){var n=e.next;!(32&e.f)&&Xs(e),e=n}}(t):Ys(t),qs(t);var i=Wa(t);t.teardown="function"==typeof i?i:null,t.wv=wa}finally{ia=r,da=n}}}async function Ea(){await Promise.resolve(),function(){var t=Zo;Zo=!0;try{for(;;){if(zo(),0===Ho.length&&(null==Do||Do.flush(),0===Ho.length))return void(Vo=null);qo()}}finally{Zo=t}}()}function Pa(t){var e=!!(2&t.f);if(null===la||ca){if(e&&null===t.deps&&null===t.effects){var n=t,r=n.parent;null!==r&&0===(r.f&no)&&(n.f^=no)}}else if((null===da||0===(da.f&ao))&&!(null==pa?void 0:pa.includes(t))){var i=la.deps;if(0!==(la.f&ho))t.rv<ba&&(t.rv=ba,null===ga&&null!==i&&i[va]===t?va++:null===ga?ga=[t]:ka&&ga.includes(t)||ga.push(t));else{(la.deps??(la.deps=[])).push(t);var o=t.reactions;null===o?t.reactions=[la]:o.includes(la)||o.push(la)}}if(sa){if(hs.has(t))return hs.get(t);if(e){var s=(n=t).v;return(0===(n.f&ro)&&null!==n.reactions||Ta(n))&&(s=us(n)),hs.set(n,s),s}}else if(e){if(n=t,null==jo?void 0:jo.has(n))return jo.get(n);Ma(n)&&ds(n)}if(null==jo?void 0:jo.has(t))return jo.get(t);if(0!==(t.f&po))throw t.v;return t.v}function Ta(t){if(t.v===bo)return!0;if(null===t.deps)return!1;for(const e of t.deps){if(hs.has(e))return!0;if(2&e.f&&Ta(e))return!0}return!1}function za(t){var e=ca;try{return ca=!0,t()}finally{ca=e}}const La=-7169;function Na(t,e){t.f=t.f&La|e}function _a(){return Symbol(yo)}function Fa(t){return t.endsWith("capture")&&"gotpointercapture"!==t&&"lostpointercapture"!==t}const Ra=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Da(t){return Ra.includes(t)}const Ia={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 ja(t){return t=t.toLowerCase(),Ia[t]??t}const Ba=["touchstart","touchmove"];function Ha(t){return Ba.includes(t)}const Va=new Set,Ka=new Set;function Za(t,e,n,r={}){function i(t){if(r.capture||Ga.call(e,t),!t.cancelBubble)return Ns(()=>null==n?void 0:n.call(this,t))}return t.startsWith("pointer")||t.startsWith("touch")||"wheel"===t?To(()=>{e.addEventListener(t,i,r)}):e.addEventListener(t,i,r),i}function Ua(t,e,n,r={}){var i=Za(e,t,n,r);return()=>{t.removeEventListener(e,i,r)}}function qa(t,e,n,r,i){var o={capture:r,passive:i},s=Za(t,e,n,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ds(()=>{e.removeEventListener(t,s,o)})}function Ya(t){for(var e=0;e<t.length;e++)Va.add(t[e]);for(var n of Ka)n(t)}let Xa=null;function Ga(t){var e,n=this,r=n.ownerDocument,i=t.type,o=(null==(e=t.composedPath)?void 0:e.call(t))||[],s=o[0]||t.target;Xa=t;var a=0,l=Xa===t&&t.__root;if(l){var c=o.indexOf(l);if(-1!==c&&(n===document||n===window))return void(t.__root=n);var u=o.indexOf(n);if(-1===u)return;c<=u&&(a=c)}if((s=o[a]||t.target)!==n){Ki(t,"currentTarget",{configurable:!0,get:()=>s||r});var d=la,h=da;ua(null),ha(null);try{for(var p,f=[];null!==s;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var v=s["__"+i];if(null!=v&&(!s.disabled||t.target===s))if(Bi(v)){var[m,...w]=v;m.apply(s,[t,...w])}else v.call(s,t)}catch(b){p?f.push(b):p=b}if(t.cancelBubble||g===n||null===g)break;s=g}if(p){for(let t of f)queueMicrotask(()=>{throw t});throw p}}finally{t.__root=n,delete t.currentTarget,ua(d),ha(h)}}}function Ja(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","\x3c!----\x3e"),e.content}function Qa(t,e){var n=da;null===n.nodes_start&&(n.nodes_start=t,n.nodes_end=e)}function tl(t,e){var n,r=!!(1&e),i=!!(2&e),o=!t.startsWith("<!>");return()=>{void 0===n&&(n=Ja(o?t:"<!>"+t),r||(n=As(n)));var e=i||Ms?document.importNode(n,!0):n.cloneNode(!0);return r?Qa(As(e),e.lastChild):Qa(e,e),e}}function el(t,e,n="svg"){var r,i=`<${n}>${t.startsWith("<!>")?"<!>"+t:t}</${n}>`;return()=>{if(!r){var t=Ja(i);r=As(As(t))}var e=r.cloneNode(!0);return Qa(e,e),e}}function nl(t,e){return el(t,0,"svg")}function rl(t=""){var e=Ss(t+"");return Qa(e,e),e}function il(){var t=document.createDocumentFragment(),e=document.createComment(""),n=Ss();return t.append(e,n),Qa(e,n),t}function ol(t,e){null!==t&&t.before(e)}function sl(){var t;return(t=window.__svelte??(window.__svelte={})).uid??(t.uid=1),"c"+window.__svelte.uid++}let al=!0;function ll(t,e){var n=null==e?"":"object"==typeof e?e+"":e;n!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=n,t.nodeValue=n+"")}function cl(t,e){return function(t,{target:e,anchor:n,props:r={},events:i,context:o,intro:s=!0}){!function(){if(void 0===Cs){Cs=window,Ms=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;$s=Zi(e,"firstChild").get,Ws=Zi(e,"nextSibling").get,Gi(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Gi(n)&&(n.__t=void 0)}}();var a=new Set,l=t=>{for(var n=0;n<t.length;n++){var r=t[n];if(!a.has(r)){a.add(r);var i=Ha(r);e.addEventListener(r,Ga,{passive:i});var o=ul.get(r);void 0===o?(document.addEventListener(r,Ga,{passive:i}),ul.set(r,1)):ul.set(r,o+1)}}};l(Vi(Va)),Ka.add(l);var c=void 0,u=function(){Uo.ensure();const u=Rs(524352,()=>{var u=n??e.appendChild(Ss());return d=u,h=e=>{o&&(So({}),Co.c=o),i&&(r.$$events=i),al=s,c=t(e,r)||{},al=!0,o&&Ao()},new ns(d,{pending:()=>{}},h),()=>{var t;for(var r of a){e.removeEventListener(r,Ga);var i=ul.get(r);0===--i?(document.removeEventListener(r,Ga),ul.delete(r)):ul.set(r,i)}Ka.delete(l),u!==n&&(null==(t=u.parentNode)||t.removeChild(u))};var d,h},!0);return(t={})=>new Promise(e=>{t.outro?Js(u,()=>{Xs(u),e(void 0)}):(Xs(u),e(void 0))})}();return dl.set(c,u),c}(t,e)}const ul=new Map;let dl=new WeakMap;class hl{constructor(t,e=!0){_i(this,"anchor"),Di(this,L,new Map),Di(this,N,new Map),Di(this,_,new Map),Di(this,F,!0),Di(this,R,()=>{var t=Do;if(Ri(this,L).has(t)){var e=Ri(this,L).get(t),n=Ri(this,N).get(e);if(n)ea(n);else{var r=Ri(this,_).get(e);r&&(Ri(this,N).set(e,r.effect),Ri(this,_).delete(e),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[e,n]of Ri(this,L)){if(Ri(this,L).delete(e),e===t)break;const r=Ri(this,_).get(n);r&&(Xs(r.effect),Ri(this,_).delete(n))}for(const[t,r]of Ri(this,N)){if(t===e)continue;const i=()=>{if(Array.from(Ri(this,L).values()).includes(t)){var e=document.createDocumentFragment();ra(r,e),e.append(Ss()),Ri(this,_).set(t,{effect:r,fragment:e})}else Xs(r);Ri(this,N).delete(t)};Ri(this,F)||!n?Js(r,i,!1):i()}}}),this.anchor=t,Ii(this,F,e)}ensure(t,e){var n=Do;!e||Ri(this,N).has(t)||Ri(this,_).has(t)||Ri(this,N).set(t,Us(()=>e(this.anchor))),Ri(this,L).set(n,t),Ri(this,R).call(this)}}function pl(t,e,n=!1){var r=new hl(t);function i(t,e){r.ensure(t,e)}Zs(()=>{var t=!1;e((e,n=!0)=>{t=!0,i(n,e)}),t||i(!1,null)},n?co:0)}function fl(t,e,n){var r=new hl(t);Zs(()=>{var t=e();r.ensure(t,n)})}function gl(t,e){return e}function vl(t,e,n,r,i,o=null){var s=t,a={items:new Map,first:null};!(4&e)||(s=t.appendChild(Ss()));var l,c,u=null,d=!1,h=new Map,p=ls(()=>{var t=n();return Bi(t)?t:null==t?[]:Vi(t)});Zs(()=>{c??(c=da);var t=(l=Pa(p)).length;d&&0===t||(d=0===t,function(t,e,n,r,i,o,s,a,l){var c,u,d,h,p,f,g,v,m,w,b=!!(8&s),y=!!(3&s),x=e.length,k=n.items,C=n.first,M=null,$=[],W=[];if(b)for(w=0;w<x;w+=1)v=a(g=e[w],w),void 0!==(m=k.get(v))&&(null==(c=m.a)||c.measure(),(f??(f=new Set)).add(m));for(w=0;w<x;w+=1)if(v=a(g=e[w],w),void 0!==(m=k.get(v))){if(y&&ml(m,g,w,s),0!==(m.e.f&so)&&(ea(m.e),b&&(null==(u=m.a)||u.unfix(),(f??(f=new Set)).delete(m))),m!==C){if(void 0!==p&&p.has(m)){if($.length<W.length){var S,A=W[0];M=A.prev;var O=$[0],E=$[$.length-1];for(S=0;S<$.length;S+=1)bl($[S],A,i);for(S=0;S<W.length;S+=1)p.delete(W[S]);yl(n,O.prev,E.next),yl(n,M,O),yl(n,E,A),C=A,M=E,w-=1,$=[],W=[]}else p.delete(m),bl(m,C,i),yl(n,m.prev,m.next),yl(n,m,null===M?n.first:M.next),yl(n,M,m),M=m;continue}for($=[],W=[];null!==C&&C.k!==v;)0===(C.e.f&so)&&(p??(p=new Set)).add(C),W.push(C),C=C.next;if(null===C)continue;m=C}$.push(m),M=m,C=m.next}else{var P=r.get(v);if(void 0!==P){r.delete(v),k.set(v,P);var T=M?M.next:C;yl(n,M,P),yl(n,P,T),bl(P,T,i),M=P}else M=wl(C?C.e.nodes_start:i,n,M,null===M?n.first:M.next,g,v,w,o,s,l);k.set(v,M),$=[],W=[],C=M.next}if(null!==C||void 0!==p){for(var z=void 0===p?[]:Vi(p);null!==C;)0===(C.e.f&so)&&z.push(C),C=C.next;var L=z.length;if(L>0){var N=4&s&&0===x?i:null;if(b){for(w=0;w<L;w+=1)null==(d=z[w].a)||d.measure();for(w=0;w<L;w+=1)null==(h=z[w].a)||h.fix()}!function(t,e,n){for(var r=t.items,i=[],o=e.length,s=0;s<o;s++)ta(e[s].e,i,!0);var a=o>0&&0===i.length&&null!==n;if(a){var l=n.parentNode;l.textContent="",l.append(n),r.clear(),yl(t,e[0].prev,e[o-1].next)}Qs(i,()=>{for(var n=0;n<o;n++){var i=e[n];a||(r.delete(i.k),yl(t,i.prev,i.next)),Xs(i.e,!a)}})}(n,z,N)}}for(var _ of(b&&To(()=>{var t;if(void 0!==f)for(m of f)null==(t=m.a)||t.apply()}),t.first=n.first&&n.first.e,t.last=M&&M.e,r.values()))Xs(_.e);r.clear()}(c,l,a,h,s,i,e,r,n),null!==o&&(0===l.length?u?ea(u):u=Us(()=>o(s)):null!==u&&Js(u,()=>{u=null})),Pa(p))})}function ml(t,e,n,r){1&r&&ms(t.v,e),2&r?ms(t.i,n):t.i=n}function wl(t,e,n,r,i,o,s,a,l,c,u){var d=1&l?16&l?ps(i):gs(i,!1,!1):i,h=2&l?ps(s):s,p={i:h,v:d,k:o,a:null,e:null,prev:n,next:r};try{return null===t&&document.createDocumentFragment().append(t=Ss()),p.e=Us(()=>a(t,d,h,c),!1),p.e.prev=n&&n.e,p.e.next=r&&r.e,null===n?u||(e.first=p):(n.next=p,n.e.next=p.e),null!==r&&(r.prev=p,r.e.prev=p.e),p}finally{}}function bl(t,e,n){for(var r=t.next?t.next.e.nodes_start:n,i=e?e.e.nodes_start:n,o=t.e.nodes_start;null!==o&&o!==r;){var s=Os(o);i.before(o),o=s}}function yl(t,e,n){null===e?t.first=n:(e.next=n,e.e.next=n&&n.e),null!==n&&(n.prev=e,n.e.prev=e&&e.e)}function xl(t,e,...n){var r=new hl(t);Zs(()=>{const t=e()??null;r.ensure(t,t&&(e=>t(e,...n)))},co)}function kl(t,e,n){var r=new hl(t);Zs(()=>{var t=e()??null;r.ensure(t,t&&(e=>n(e,t)))},co)}function Cl(t,e){var n,r=void 0;Zs(()=>{r!==(r=e())&&(n&&(Xs(n),n=null),r&&(n=Us(()=>{Hs(()=>r(t))})))})}function Ml(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Ml(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function $l(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Ml(t))&&(r&&(r+=" "),r+=e);return r}function Wl(t){return"object"==typeof t?$l(t):t??""}L=new WeakMap,N=new WeakMap,_=new WeakMap,F=new WeakMap,R=new WeakMap;const Sl=[..." \t\n\r\f \v\ufeff"];function Al(t,e=!1){var n=e?" !important;":";",r="";for(var i in t){var o=t[i];null!=o&&""!==o&&(r+=" "+i+": "+o+n)}return r}function Ol(t){return"-"!==t[0]||"-"!==t[1]?t.toLowerCase():t}function El(t,e,n,r,i,o){var s=t.__className;if(s!==n||void 0===s){var a=function(t,e,n){var r=null==t?"":""+t;if(n)for(var i in n)if(n[i])r=r?r+" "+i:i;else if(r.length)for(var o=i.length,s=0;(s=r.indexOf(i,s))>=0;){var a=s+o;0!==s&&!Sl.includes(r[s-1])||a!==r.length&&!Sl.includes(r[a])?s=a:r=(0===s?"":r.substring(0,s))+r.substring(a+1)}return""===r?null:r}(n,0,o);null==a?t.removeAttribute("class"):e?t.className=a:t.setAttribute("class",a),t.__className=n}else if(o&&i!==o)for(var l in o){var c=!!o[l];null!=i&&c===!!i[l]||t.classList.toggle(l,c)}return o}function Pl(t,e={},n,r){for(var i in n){var o=n[i];e[i]!==o&&(null==n[i]?t.style.removeProperty(i):t.style.setProperty(i,o,r))}}function Tl(t,e,n,r){if(t.__style!==e){var i=function(t,e){if(e){var n,r,i="";if(Array.isArray(e)?(n=e[0],r=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,a=!1,l=[];n&&l.push(...Object.keys(n).map(Ol)),r&&l.push(...Object.keys(r).map(Ol));var c=0,u=-1;const e=t.length;for(var d=0;d<e;d++){var h=t[d];if(a?"/"===h&&"*"===t[d-1]&&(a=!1):o?o===h&&(o=!1):"/"===h&&"*"===t[d+1]?a=!0:'"'===h||"'"===h?o=h:"("===h?s++:")"===h&&s--,!a&&!1===o&&0===s)if(":"===h&&-1===u)u=d;else if(";"===h||d===e-1){if(-1!==u){var p=Ol(t.substring(c,u).trim());l.includes(p)||(";"!==h&&d++,i+=" "+t.substring(c,d).trim()+";")}c=d+1,u=-1}}}return n&&(i+=Al(n)),r&&(i+=Al(r,!0)),""===(i=i.trim())?null:i}return null==t?null:String(t)}(e,r);null==i?t.removeAttribute("style"):t.style.cssText=i,t.__style=e}else r&&(Array.isArray(r)?(Pl(t,null==n?void 0:n[0],r[0]),Pl(t,null==n?void 0:n[1],r[1],"important")):Pl(t,n,r));return r}function zl(t,e,n=!1){if(t.multiple){if(null==e)return;if(!Bi(e))return;for(var r of t.options)r.selected=e.includes(Ll(r))}else{for(r of t.options)if(ks(Ll(r),e))return void(r.selected=!0);n&&void 0===e||(t.selectedIndex=-1)}}function Ll(t){return"__value"in t?t.__value:t.value}const Nl=Symbol("class"),_l=Symbol("style"),Fl=Symbol("is custom element"),Rl=Symbol("is html");function Dl(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Il(t,e,n,r){var i=Bl(t);i[e]!==(i[e]=n)&&("loading"===e&&(t[vo]=n),null==n?t.removeAttribute(e):"string"!=typeof n&&Vl(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function jl(t,e,n=[],r=[],i,o=!1,s=!1){rs(n,r,n=>{var r=void 0,i={},o="SELECT"===t.nodeName,s=!1;if(Zs(()=>{var a=e(...n.map(Pa)),l=function(t,e,n){var r=Bl(t),i=r[Fl],o=!r[Rl],s=e||{},a="OPTION"===t.tagName;for(var l in e)l in n||(n[l]=null);n.class?n.class=Wl(n.class):n[Nl]&&(n.class=null),n[_l]&&(n.style??(n.style=null));var c=Vl(t);for(const g in n){let l=n[g];if(a&&"value"===g&&null==l)t.value=t.__value="",s[g]=l;else if("class"!==g)if("style"!==g){var u=s[g];if(l!==u||void 0===l&&t.hasAttribute(g)){s[g]=l;var d=g[0]+g[1];if("$$"!==d)if("on"===d){const e={},n="$$"+g;let r=g.slice(2);var h=Da(r);if(Fa(r)&&(r=r.slice(0,-7),e.capture=!0),!h&&u){if(null!=l)continue;t.removeEventListener(r,s[n],e),s[n]=null}if(null!=l)if(h)t[`__${r}`]=l,Ya([r]);else{let i=function(t){s[g].call(this,t)};s[n]=Za(r,t,i,e)}else h&&(t[`__${r}`]=void 0)}else if("style"===g)Il(t,g,l);else if("autofocus"===g)zs(t,Boolean(l));else if(i||"__value"!==g&&("value"!==g||null==l))if("selected"===g&&a)Dl(t,l);else{var p=g;o||(p=ja(p));var f="defaultValue"===p||"defaultChecked"===p;if(null!=l||i||f)f||c.includes(p)&&(i||"string"!=typeof l)?(t[p]=l,p in r&&(r[p]=bo)):"function"!=typeof l&&Il(t,p,l);else if(r[g]=null,"value"===p||"checked"===p){let n=t;const r=void 0===e;if("value"===p){let t=n.defaultValue;n.removeAttribute(p),n.defaultValue=t,n.value=n.__value=r?t:null}else{let t=n.defaultChecked;n.removeAttribute(p),n.defaultChecked=t,n.checked=!!r&&t}}else t.removeAttribute(g)}else t.value=t.__value=l}}else Tl(t,l,null==e?void 0:e[_l],n[_l]),s[g]=l,s[_l]=n[_l];else El(t,"http://www.w3.org/1999/xhtml"===t.namespaceURI,l,0,null==e?void 0:e[Nl],n[Nl]),s[g]=l,s[Nl]=n[Nl]}return s}(t,r,a);s&&o&&"value"in a&&zl(t,a.value);for(let t of Object.getOwnPropertySymbols(i))a[t]||Xs(i[t]);for(let e of Object.getOwnPropertySymbols(a)){var c=a[e];e.description!==yo||r&&c===r[e]||(i[e]&&Xs(i[e]),i[e]=Us(()=>Cl(t,()=>c))),l[e]=c}r=l}),o){var a=t;Hs(()=>{zl(a,r.value,!0),function(t){var e=new MutationObserver(()=>{zl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ds(()=>{e.disconnect()})}(a)})}s=!0})}function Bl(t){return t.__attributes??(t.__attributes={[Fl]:t.nodeName.includes("-"),[Rl]:"http://www.w3.org/1999/xhtml"===t.namespaceURI})}var Hl=new Map;function Vl(t){var e,n=t.getAttribute("is")||t.nodeName,r=Hl.get(n);if(r)return r;Hl.set(n,r=[]);for(var i=t,o=Element.prototype;o!==i;){for(var s in e=Ui(i))e[s].set&&r.push(s);i=Xi(i)}return r}const Kl={tick:t=>requestAnimationFrame(t),now:()=>performance.now(),tasks:new Set};function Zl(){const t=Kl.now();Kl.tasks.forEach(e=>{e.c(t)||(Kl.tasks.delete(e),e.f())}),0!==Kl.tasks.size&&Kl.tick(Zl)}function Ul(t){let e;return 0===Kl.tasks.size&&Kl.tick(Zl),{promise:new Promise(n=>{Kl.tasks.add(e={c:t,f:n})}),abort(){Kl.tasks.delete(e)}}}function ql(t,e){Ns(()=>{t.dispatchEvent(new CustomEvent(e))})}function Yl(t){if("float"===t)return"cssFloat";if("offset"===t)return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return 1===e.length?e[0]:e[0]+e.slice(1).map(t=>t[0].toUpperCase()+t.slice(1)).join("")}function Xl(t){const e={},n=t.split(";");for(const r of n){const[t,n]=r.split(":");if(!t||void 0===n)break;e[Yl(t.trim())]=n.trim()}return e}const Gl=t=>t;function Jl(t,e,n,r){var i,o,s,a=!!(1&t),l=!!(2&t),c=!!(4&t),u=a&&l?"both":a?"in":"out",d=e.inert,h=e.style.overflow;function p(){return Ns(()=>i??(i=n()(e,(null==r?void 0:r())??{},{direction:u})))}var f={is_global:c,in(){var t;if(e.inert=d,!a)return null==s||s.abort(),void(null==(t=null==s?void 0:s.reset)||t.call(s));l||null==o||o.abort(),ql(e,"introstart"),o=Ql(e,p(),s,1,()=>{ql(e,"introend"),null==o||o.abort(),o=i=void 0,e.style.overflow=h})},out(t){if(!l)return null==t||t(),void(i=void 0);e.inert=!0,ql(e,"outrostart"),s=Ql(e,p(),o,0,()=>{ql(e,"outroend"),null==t||t()})},stop:()=>{null==o||o.abort(),null==s||s.abort()}},g=da;if((g.transitions??(g.transitions=[])).push(f),a&&al){var v=c;if(!v){for(var m=g.parent;m&&0!==(m.f&co);)for(;(m=m.parent)&&0===(m.f&eo););v=!m||0!==(m.f&lo)}v&&Hs(()=>{za(()=>f.in())})}}function Ql(t,e,n,r,i){var o=1===r;if(Ji(e)){var s,a=!1;return To(()=>{if(!a){var l=e({direction:o?"in":"out"});s=Ql(t,l,n,r,i)}}),{abort:()=>{a=!0,null==s||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(null==n||n.deactivate(),!(null==e?void 0:e.duration))return i(),{abort:Qi,deactivate:Qi,reset:Qi,t:()=>r};const{delay:l=0,css:c,tick:u,easing:d=Gl}=e;var h=[];if(o&&void 0===n&&(u&&u(0,1),c)){var p=Xl(c(0,1));h.push(p,p)}var f=()=>1-r,g=t.animate(h,{duration:l,fill:"forwards"});return g.onfinish=()=>{g.cancel();var o=(null==n?void 0:n.t())??1-r;null==n||n.abort();var s=r-o,a=e.duration*Math.abs(s),l=[];if(a>0){var h=!1;if(c)for(var p=Math.ceil(a/(1e3/60)),v=0;v<=p;v+=1){var m=o+s*d(v/p),w=Xl(c(m,1-m));l.push(w),h||(h="hidden"===w.overflow)}h&&(t.style.overflow="hidden"),f=()=>{var t=g.currentTime;return o+s*d(t/a)},u&&Ul(()=>{if("running"!==g.playState)return!1;var t=f();return u(t,1-t),!0})}(g=t.animate(l,{duration:a,fill:"forwards"})).onfinish=()=>{f=()=>r,null==u||u(r,1-r),i()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=Qi)},deactivate:()=>{i=Qi},reset:()=>{0===r&&(null==u||u(1,0))},t:()=>f()}}function tc(t){var e=t.type;return"number"===e||"range"===e}function ec(t){return""===t?null:+t}const nc=class{constructor(t){Di(this,B),Di(this,D,new WeakMap),Di(this,I),Di(this,j),Ii(this,j,t)}observe(t,e){var n=Ri(this,D).get(t)||new Set;return n.add(e),Ri(this,D).set(t,n),ji(this,B,H).call(this).observe(t,Ri(this,j)),()=>{var n=Ri(this,D).get(t);n.delete(e),0===n.size&&(Ri(this,D).delete(t),Ri(this,I).unobserve(t))}}};D=new WeakMap,I=new WeakMap,j=new WeakMap,B=new WeakSet,H=function(){return Ri(this,I)??Ii(this,I,new ResizeObserver(t=>{for(var e of t)for(var n of(nc.entries.set(e.target,e),Ri(this,D).get(e.target)||[]))n(e)}))},_i(nc,"entries",new WeakMap);var rc=new nc({box:"border-box"});function ic(t,e,n){var r=rc.observe(t,()=>n(t[e]));Hs(()=>(za(()=>n(t[e])),r))}function oc(t,e){return t===e||(null==t?void 0:t[fo])===e}function sc(t={},e,n,r){return Hs(()=>{var r,i;return Vs(()=>{r=i,i=[],za(()=>{t!==n(...i)&&(e(t,...i),r&&oc(n(...r),t)&&e(null,...r))})}),()=>{To(()=>{i&&oc(n(...i),t)&&e(null,...i)})}}),t}let ac=!1;const lc={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set:(t,e)=>!1,getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e))return e in t.props?{enumerable:!0,configurable:!0,value:t.props[e]}:void 0},has:(t,e)=>!t.exclude.includes(e)&&e in t.props,ownKeys:t=>Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))};function cc(t,e,n){return new Proxy({props:t,exclude:e},lc)}const uc={get(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(Ji(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r)return r[e]}},set(t,e,n){let r=t.props.length;for(;r--;){let i=t.props[r];Ji(i)&&(i=i());const o=Zi(i,e);if(o&&o.set)return o.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(Ji(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r){const t=Zi(r,e);return t&&!t.configurable&&(t.configurable=!0),t}}},has(t,e){if(e===fo||e===go)return!1;for(let n of t.props)if(Ji(n)&&(n=n()),null!=n&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(Ji(n)&&(n=n()),n){for(const t in n)e.includes(t)||e.push(t);for(const t of Object.getOwnPropertySymbols(n))e.includes(t)||e.push(t)}return e}};function dc(...t){return new Proxy({props:t},uc)}function hc(t,e,n,r){var i,o,s,a=!!(8&n),l=!!(16&n),c=r,u=!0,d=()=>(u&&(u=!1,c=l?za(r):r),c);if(a){var h=fo in t||go in t;o=(null==(i=Zi(t,e))?void 0:i.set)??(h&&e in t?n=>t[e]=n:void 0)}var p,f=!1;if(a?[s,f]=function(){var n=ac;try{return ac=!1,[t[e],ac]}finally{ac=n}}():s=t[e],void 0===s&&void 0!==r&&(s=d(),o&&(function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),o(s))),p=()=>{var n=t[e];return void 0===n?d():(u=!0,n)},!(4&n))return p;if(o){var g=t.$$legacy;return function(t,e){return arguments.length>0?((!e||g||f)&&o(e?p():t),t):p()}}var v=!1,m=(1&n?os:ls)(()=>(v=!1,p()));a&&Pa(m);var w=da;return function(t,e){if(arguments.length>0){const n=e?Pa(m):a?ys(t):t;return vs(m,n),v=!0,void 0!==c&&(c=n),t}return sa&&v||0!==(w.f&ao)?m.v:Pa(m)}}function pc(t){null===Co&&wo(),Is(()=>{const e=za(t);if("function"==typeof e)return e})}const fc="undefined"!=typeof window?window:void 0,gc=class extends Map{constructor(t){if(super(),Di(this,q),Di(this,V,new Map),Di(this,K,fs(0)),Di(this,Z,fs(0)),Di(this,U,ya||-1),t){for(var[e,n]of t)super.set(e,n);Ri(this,Z).v=super.size}}has(t){var e=Ri(this,V),n=e.get(t);if(void 0===n){if(void 0===super.get(t))return Pa(Ri(this,K)),!1;n=ji(this,q,Y).call(this,0),e.set(t,n)}return Pa(n),!0}forEach(t,e){ji(this,q,X).call(this),super.forEach(t,e)}get(t){var e=Ri(this,V),n=e.get(t);if(void 0===n){if(void 0===super.get(t))return void Pa(Ri(this,K));n=ji(this,q,Y).call(this,0),e.set(t,n)}return Pa(n),super.get(t)}set(t,e){var n,r=Ri(this,V),i=r.get(t),o=super.get(t),s=super.set(t,e),a=Ri(this,K);if(void 0===i)i=ji(this,q,Y).call(this,0),r.set(t,i),vs(Ri(this,Z),super.size),ws(a);else if(o!==e){ws(i);var l=null===a.reactions?null:new Set(a.reactions);(null===l||!(null==(n=i.reactions)?void 0:n.every(t=>l.has(t))))&&ws(a)}return s}delete(t){var e=Ri(this,V),n=e.get(t),r=super.delete(t);return void 0!==n&&(e.delete(t),vs(Ri(this,Z),super.size),vs(n,-1),ws(Ri(this,K))),r}clear(){if(0!==super.size){super.clear();var t=Ri(this,V);for(var e of(vs(Ri(this,Z),0),t.values()))vs(e,-1);ws(Ri(this,K)),t.clear()}}keys(){return Pa(Ri(this,K)),super.keys()}values(){return ji(this,q,X).call(this),super.values()}entries(){return ji(this,q,X).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return Pa(Ri(this,Z)),super.size}};V=new WeakMap,K=new WeakMap,Z=new WeakMap,U=new WeakMap,q=new WeakSet,Y=function(t){return ya===Ri(this,U)?fs(t):ps(t)},X=function(){Pa(Ri(this,K));var t,e,n=Ri(this,V);if(Ri(this,Z).v!==n.size)for(var r of(t=gc.prototype,e=this,Li(zi(t),"keys",e)).call(this))if(!n.has(r)){var i=ji(this,q,Y).call(this,0);n.set(r,i)}for([,i]of Ri(this,V))Pa(i)};let vc=gc;function mc(t,e){if(function(t){return"function"==typeof t}(t)){const n=t();return void 0===n?e:n}return void 0===t?e:t}class wc{constructor(t,e={}){Di(this,ot),Di(this,G),Di(this,J,0),Di(this,Q,as(()=>mc(Ri(this,J))??0)),Di(this,tt,null),Di(this,et,null),Di(this,nt,fs(0)),Di(this,rt,fs(!1)),Di(this,it,fc),e.window&&Ii(this,it,e.window),Ii(this,J,e.fpsLimit),Ii(this,G,t),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.toggle=this.toggle.bind(this),Is(()=>((e.immediate??1)&&za(this.start),this.stop))}start(){Ri(this,it)&&(vs(Ri(this,rt),!0),Ii(this,tt,0),Ii(this,et,Ri(this,it).requestAnimationFrame(ji(this,ot,st).bind(this))))}stop(){Ri(this,et)&&Ri(this,it)&&(vs(Ri(this,rt),!1),Ri(this,it).cancelAnimationFrame(Ri(this,et)),Ii(this,et,null))}toggle(){Pa(Ri(this,rt))?this.stop():this.start()}get fps(){return Pa(Ri(this,rt))?Pa(Ri(this,nt)):0}get running(){return Pa(Ri(this,rt))}}function bc(){}function yc(t,e,n,r){Is(()=>{const i=mc(t);if(null==i)return;const o=mc(e);if(!Array.isArray(o))return Ua(i,o,n,r);for(const t of o)Is(()=>Ua(i,t,n,r))})}function xc(t,e,n,r,i,o){if(null===t||"object"!=typeof t)return t;const s=Object.getPrototypeOf(t);if(null!==s&&s!==Object.prototype&&!Array.isArray(t))return t;let a=n.get(t);return a||(a=new Proxy(t,{get:(t,s)=>(null==r||r(),xc(Reflect.get(t,s),e,n,r,i,o)),set:(t,n,r)=>(null==i||i(),Reflect.set(t,n,r),o(e),!0)}),n.set(t,a)),a}G=new WeakMap,J=new WeakMap,Q=new WeakMap,tt=new WeakMap,et=new WeakMap,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakSet,st=function(t){if(!Pa(Ri(this,rt))||!Ri(this,it))return;null===Ri(this,tt)&&Ii(this,tt,t);const e=t-Ri(this,tt),n=1e3/e;Pa(Ri(this,Q))&&n>Pa(Ri(this,Q))||(vs(Ri(this,nt),n),Ii(this,tt,t),Ri(this,G).call(this,{delta:e,timestamp:t})),Ii(this,et,Ri(this,it).requestAnimationFrame(ji(this,ot,st).bind(this)))};class kc{constructor(t,e,n={}){Di(this,gt),Di(this,at),Di(this,lt),Di(this,ct),Di(this,ut),Di(this,dt),Di(this,ht),Di(this,pt,new WeakMap),Di(this,ft,t=>{var e;t.key===Ri(this,lt)&&null!==t.newValue&&(Ii(this,at,ji(this,gt,vt).call(this,t.newValue)),null==(e=Ri(this,ht))||e.call(this))});const{storage:r="local",serializer:i={serialize:JSON.stringify,deserialize:JSON.parse},syncTabs:o=!0}=n,s="window"in n?n.window:fc;if(Ii(this,at,e),Ii(this,lt,t),Ii(this,ct,i),void 0===s)return;const a=function(t,e){switch(t){case"local":return e.localStorage;case"session":return e.sessionStorage}}(r,s);Ii(this,ut,a);const l=a.getItem(t);null!==l?Ii(this,at,ji(this,gt,vt).call(this,l)):ji(this,gt,mt).call(this,e),o&&"local"===r&&Ii(this,dt,es(t=>{Ii(this,ht,t);const e=Ua(s,"storage",Ri(this,ft));return()=>{e(),Ii(this,ht,void 0)}}))}get current(){var t,e,n,r;null==(t=Ri(this,dt))||t.call(this);const i=null==(e=Ri(this,ut))?void 0:e.getItem(Ri(this,lt)),o=i?ji(this,gt,vt).call(this,i):Ri(this,at);return xc(o,o,Ri(this,pt),null==(n=Ri(this,dt))?void 0:n.bind(this),null==(r=Ri(this,ht))?void 0:r.bind(this),ji(this,gt,mt).bind(this))}set current(t){var e;ji(this,gt,mt).call(this,t),null==(e=Ri(this,ht))||e.call(this)}}at=new WeakMap,lt=new WeakMap,ct=new WeakMap,ut=new WeakMap,dt=new WeakMap,ht=new WeakMap,pt=new WeakMap,ft=new WeakMap,gt=new WeakSet,vt=function(t){try{return Ri(this,ct).deserialize(t)}catch(e){return}},mt=function(t){var e;try{null!=t&&(null==(e=Ri(this,ut))||e.setItem(Ri(this,lt),Ri(this,ct).serialize(t)))}catch(n){}};class Cc{constructor(t){Di(this,wt),Di(this,bt,as(()=>mc(Ri(this,wt).element))),Di(this,yt,as(()=>{var t;return mc(null==(t=Ri(this,wt))?void 0:t.idle,200)})),Di(this,xt,as(()=>mc(Ri(this,wt).offset,{left:0,right:0,top:0,bottom:0}))),Di(this,kt,as(()=>Ri(this,wt).onScroll??bc)),Di(this,Ct,as(()=>Ri(this,wt).onStop??bc)),Di(this,Mt,as(()=>Ri(this,wt).eventListenerOptions??{capture:!1,passive:!0})),Di(this,$t,as(()=>mc(Ri(this,wt).behavior,"auto"))),Di(this,Wt,as(()=>Ri(this,wt).onError??(t=>{}))),Di(this,St,fs(0)),Di(this,At,fs(0)),Di(this,Ot,as(()=>this.internalX)),Di(this,Et,as(()=>this.internalY)),Di(this,Pt,fs(!1)),Di(this,Tt,fs(ys({left:!0,right:!1,top:!0,bottom:!1}))),Di(this,zt,fs(ys({left:!1,right:!1,top:!1,bottom:!1}))),Di(this,Lt,fs(ys({x:0,y:0}))),_i(this,"setArrivedState",()=>{var t,e,n;if(!window||!this.element)return;const r=(null==(e=null==(t=this.element)?void 0:t.document)?void 0:e.documentElement)||(null==(n=this.element)?void 0:n.documentElement)||this.element,{display:i,flexDirection:o,direction:s}=getComputedStyle(r),a="rtl"===s?-1:1,l=r.scrollLeft;l!==this.internalX&&(this.directions.left=l<this.internalX,this.directions.right=l>this.internalX);const c=l*a<=(this.offset.left||0),u=l*a+r.clientWidth>=r.scrollWidth-(this.offset.right||0)-1;"flex"===i&&"row-reverse"===o?(this.arrived.left=u,this.arrived.right=c):(this.arrived.left=c,this.arrived.right=u),this.internalX=l;let d=r.scrollTop;this.element!==window.document||d||(d=window.document.body.scrollTop),d!==this.internalY&&(this.directions.top=d<this.internalY,this.directions.bottom=d>this.internalY);const h=d<=(this.offset.top||0),p=d+r.clientHeight>=r.scrollHeight-(this.offset.bottom||0)-1;"flex"===i&&"column-reverse"===o?(this.arrived.top=p,this.arrived.bottom=h):(this.arrived.top=h,this.arrived.bottom=p);const f=r.scrollHeight-(this.offset.bottom||0);this.progress.y=d/(f-r.clientHeight)*100;const g=r.scrollWidth-(this.offset.left||0);this.progress.x=Math.abs(l/(g-r.clientWidth)*100),this.internalY=d}),Di(this,Nt,t=>{window&&(this.setArrivedState(),this.isScrolling=!0,this.onScrollEndDebounced(t),this.onScroll(t))}),_i(this,"onScrollEnd",t=>{this.isScrolling&&(this.isScrolling=!1,this.directions.left=!1,this.directions.right=!1,this.directions.top=!1,this.directions.bottom=!1,this.onStop(t))}),_i(this,"onScrollEndDebounced",function(t,e){let n=fs(null);const r=as(()=>mc(e,250));function i(...e){if(Pa(n))Pa(n).timeout&&clearTimeout(Pa(n).timeout);else{let t,e;const r=new Promise((n,r)=>{t=n,e=r});vs(n,{timeout:null,runner:null,promise:r,resolve:t,reject:e},!0)}return Pa(n).runner=async()=>{if(!Pa(n))return;const r=Pa(n);vs(n,null);try{r.resolve(await t.apply(this,e))}catch(i){r.reject(i)}},Pa(n).timeout=setTimeout(Pa(n).runner,Pa(r)),Pa(n).promise}return i.cancel=async()=>{(Pa(n)&&null!==Pa(n).timeout||(await new Promise(t=>setTimeout(t,0)),Pa(n)&&null!==Pa(n).timeout))&&(clearTimeout(Pa(n).timeout),Pa(n).reject("Cancelled"),vs(n,null))},i.runScheduledNow=async()=>{var t,e;(Pa(n)&&Pa(n).timeout||(await new Promise(t=>setTimeout(t,0)),Pa(n)&&Pa(n).timeout))&&(clearTimeout(Pa(n).timeout),Pa(n).timeout=null,await(null==(e=(t=Pa(n)).runner)?void 0:e.call(t)))},Object.defineProperty(i,"pending",{enumerable:!0,get(){var t;return!!(null==(t=Pa(n))?void 0:t.timeout)}}),i}(this.onScrollEnd,()=>this.idle)),Ii(this,wt,t),yc(()=>this.element,"scroll",Ri(this,Nt),this.eventListenerOptions),yc(()=>this.element,"scrollend",t=>this.onScrollEnd(t),this.eventListenerOptions),pc(()=>{this.setArrivedState()}),new wc(()=>this.setArrivedState())}get element(){return Pa(Ri(this,bt))}set element(t){vs(Ri(this,bt),t)}get idle(){return Pa(Ri(this,yt))}set idle(t){vs(Ri(this,yt),t)}get offset(){return Pa(Ri(this,xt))}set offset(t){vs(Ri(this,xt),t)}get onScroll(){return Pa(Ri(this,kt))}set onScroll(t){vs(Ri(this,kt),t)}get onStop(){return Pa(Ri(this,Ct))}set onStop(t){vs(Ri(this,Ct),t)}get eventListenerOptions(){return Pa(Ri(this,Mt))}set eventListenerOptions(t){vs(Ri(this,Mt),t)}get behavior(){return Pa(Ri(this,$t))}set behavior(t){vs(Ri(this,$t),t)}get onError(){return Pa(Ri(this,Wt))}set onError(t){vs(Ri(this,Wt),t)}get internalX(){return Pa(Ri(this,St))}set internalX(t){vs(Ri(this,St),t,!0)}get internalY(){return Pa(Ri(this,At))}set internalY(t){vs(Ri(this,At),t,!0)}get x(){return Pa(Ri(this,Ot))}set x(t){this.scrollTo(t,void 0)}get y(){return Pa(Ri(this,Et))}set y(t){this.scrollTo(void 0,t)}get isScrolling(){return Pa(Ri(this,Pt))}set isScrolling(t){vs(Ri(this,Pt),t,!0)}get arrived(){return Pa(Ri(this,Tt))}set arrived(t){vs(Ri(this,Tt),t,!0)}get directions(){return Pa(Ri(this,zt))}set directions(t){vs(Ri(this,zt),t,!0)}get progress(){return Pa(Ri(this,Lt))}set progress(t){vs(Ri(this,Lt),t,!0)}scrollTo(t,e){var n,r,i,o;if(!window)return;null==(n=this.element instanceof Document?window.document.body:this.element)||n.scrollTo({top:e??this.y,left:t??this.x,behavior:this.behavior});const s=(null==(i=null==(r=this.element)?void 0:r.document)?void 0:i.documentElement)||(null==(o=this.element)?void 0:o.documentElement)||this.element;null!=t&&(this.internalX=s.scrollLeft),null!=e&&(this.internalY=s.scrollTop)}scrollToTop(){this.scrollTo(void 0,0)}scrollToBottom(){var t,e,n;if(!window)return;const r=(null==(e=null==(t=this.element)?void 0:t.document)?void 0:e.documentElement)||(null==(n=this.element)?void 0:n.documentElement)||this.element;r&&this.scrollTo(void 0,r.scrollHeight)}}wt=new WeakMap,bt=new WeakMap,yt=new WeakMap,xt=new WeakMap,kt=new WeakMap,Ct=new WeakMap,Mt=new WeakMap,$t=new WeakMap,Wt=new WeakMap,St=new WeakMap,At=new WeakMap,Ot=new WeakMap,Et=new WeakMap,Pt=new WeakMap,Tt=new WeakMap,zt=new WeakMap,Lt=new WeakMap,Nt=new WeakMap;const Mc={info:(...t)=>{},error:(...t)=>{},warn:(...t)=>{},ok:(...t)=>{},group:t=>{},groupEnd:()=>{}};class $c{constructor(){_i(this,"modules"),_i(this,"init",t=>this.modules=t),_i(this,"track",async(t="info",e,n)=>{var r,i,o;try{await this.modules.pb.collection("logs").create({project:this.modules.project.id,user:(null==(r=this.modules.pb.authStore.record)?void 0:r.id)||null,type:t,message:e,meta:{domain:(null==(i=this.modules.domains)?void 0:i.current)||null,folder:(null==(o=this.modules.folders)?void 0:o.current)||null,route:this.modules.router.current},data:n||null}),Mc[t](e,...n?[n]:[])}catch(s){Mc[t](e,...n?[n]:[])}})}storage(t,e,n){const r=new kc(e,n);Object.defineProperty(this,t,{get:()=>r.current,set:t=>{r.current=t},enumerable:!0,configurable:!0})}}class Wc extends $c{constructor(){super(...arguments),Di(this,_t,fs(!1)),Di(this,Ft,fs(null)),Di(this,Rt,as(()=>this.modules.project.isTeamMember||this.modules.folders.unlockedCount>0)),Di(this,Dt,fs(ys({type:"info",text:"",visible:!1})))}get loading(){return Pa(Ri(this,_t))}set loading(t){vs(Ri(this,_t),t,!0)}get user(){return Pa(Ri(this,Ft))}set user(t){vs(Ri(this,Ft),t,!0)}get isAllowed(){return Pa(Ri(this,Rt))}set isAllowed(t){vs(Ri(this,Rt),t)}get msg(){return Pa(Ri(this,Dt))}set msg(t){vs(Ri(this,Dt),t,!0)}start(){this.user=this.modules.pb.authStore.record,this.modules.pb.authStore.onChange(async()=>{this.user=this.modules.pb.authStore.record,await this.checkAccess()}),this.checkAccess()}async checkAccess(){this.user&&(await this.modules.project.checkTeamMembership(this.user.id),await this.modules.folders.fetch(),this.isAllowed&&await this.modules.domains.verify()),!this.isAllowed&&this.user&&(this.msg={type:"error",text:"You do not have access to this project or any of its folders.",visible:!0},this.track("warn","User does not have access to project or any folders",{user:this.user.id}),this.logout());const t=this.modules.router.determineRoute(this.user,this.isAllowed);this.modules.router.goto(...t)}async login(t,e){this.loading=!0,this.msg={type:"info",text:"",visible:!1};try{return await this.modules.pb.collection("users").authWithPassword(t,e),this.user=this.modules.pb.authStore.record,this.track("ok","User logged in"),this.loading=!1,{success:!0}}catch(n){return this.track("error","Login failed",{error:(null==n?void 0:n.message)||n,email:t}),this.msg={type:"error",text:(null==n?void 0:n.message)||"Login failed",visible:!0},this.loading=!1,{success:!1,error:(null==n?void 0:n.message)||n}}}async logout(){this.user&&(this.modules.pb.authStore.clear(),this.user=null)}}_t=new WeakMap,Ft=new WeakMap,Rt=new WeakMap,Dt=new WeakMap;class Sc extends $c{constructor(){super(...arguments),Di(this,It,fs(ys(new Map)))}get listeners(){return Pa(Ri(this,It))}set listeners(t){vs(Ri(this,It),t,!0)}add(t,e,n){const{target:r=document,capture:i=!1}=n||{};this.listeners.has(t)||this.listeners.set(t,[]),this.listeners.get(t).push({handler:e,target:r}),r.addEventListener(t,e,i)}}function Ac(){var t;let e=document.activeElement;if(!e)return!1;for(;null==(t=null==e?void 0:e.shadowRoot)?void 0:t.activeElement;)e=e.shadowRoot.activeElement;return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"true"===e.contentEditable}It=new WeakMap;let Oc=(Zt=class extends $c{constructor(t){super(),_i(this,"wrapper"),Di(this,jt,fs(!1)),Di(this,Bt,fs(!1)),Di(this,Ht,fs(!1)),Di(this,Vt,fs(!0)),Di(this,Kt,fs(!0)),this.wrapper=t}get hovering(){return Pa(Ri(this,jt))}set hovering(t){vs(Ri(this,jt),t,!0)}get focusWithin(){return Pa(Ri(this,Bt))}set focusWithin(t){vs(Ri(this,Bt),t,!0)}get visible(){return Pa(Ri(this,Ht))}set visible(t){vs(Ri(this,Ht),t,!0)}get minimized(){return Pa(Ri(this,Vt))}set minimized(t){vs(Ri(this,Vt),t,!0)}get logo(){return Pa(Ri(this,Kt))}set logo(t){vs(Ri(this,Kt),t,!0)}start(){this.modules.keys.on("c",()=>{Ac()})}handlePointerEnter(){this.hovering=!0}handlePointerLeave(){this.hovering=!1}},jt=new WeakMap,Bt=new WeakMap,Ht=new WeakMap,Vt=new WeakMap,Kt=new WeakMap,Zt);class Ec extends $c{constructor(){super(...arguments),_i(this,"handlers",new Map),Di(this,Ut,fs(ys({key:null,code:null,ctrlKey:!1,metaKey:!1,altKey:!1}))),_i(this,"handleKeydown",t=>{const{key:e,code:n,ctrlKey:r,metaKey:i,altKey:o}=t;this.active={key:e,code:n,ctrlKey:r,metaKey:i,altKey:o};const s=this.handlers.get(e);s&&s.forEach(t=>t())}),_i(this,"handleKeyup",t=>{this.reset()})}get active(){return Pa(Ri(this,Ut))}set active(t){vs(Ri(this,Ut),t,!0)}start(){this.modules.events.add("keydown",t=>this.handleKeydown(t)),this.modules.events.add("keyup",t=>this.handleKeyup(t))}on(t,e){return this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t).add(e),()=>{var n;null==(n=this.handlers.get(t))||n.delete(e)}}hasFocus(){var t,e;const n=[document.activeElement,null==(e=null==(t=this.modules.win.el)?void 0:t.shadowRoot)?void 0:e.activeElement].filter(Boolean);for(const r of n){if("INPUT"===r.tagName||"TEXTAREA"===r.tagName)return!0;if("true"===r.contentEditable)return!0}return!1}reset(){this.active.key=null,this.active.code=null,this.active.ctrlKey=!1,this.active.metaKey=!1,this.active.altKey=!1}}Ut=new WeakMap;const Pc=(...t)=>{},Tc=(...t)=>{};class zc extends $c{constructor(){super(...arguments),Di(this,qt,fs(ys([]))),Di(this,Yt,fs(!1)),Di(this,Xt,fs(null)),Di(this,Gt,fs(void 0)),Di(this,Jt,fs(void 0)),Di(this,Qt,fs(1)),Di(this,te,fs(50)),Di(this,ee,as(()=>0===this.data.length)),_i(this,"collection"),_i(this,"options")}get data(){return Pa(Ri(this,qt))}set data(t){vs(Ri(this,qt),t,!0)}get loading(){return Pa(Ri(this,Yt))}set loading(t){vs(Ri(this,Yt),t,!0)}get error(){return Pa(Ri(this,Xt))}set error(t){vs(Ri(this,Xt),t,!0)}get filters(){return Pa(Ri(this,Gt))}set filters(t){vs(Ri(this,Gt),t,!0)}get sort(){return Pa(Ri(this,Jt))}set sort(t){vs(Ri(this,Jt),t,!0)}get page(){return Pa(Ri(this,Qt))}set page(t){vs(Ri(this,Qt),t,!0)}get perPage(){return Pa(Ri(this,te))}set perPage(t){vs(Ri(this,te),t,!0)}get empty(){return Pa(Ri(this,ee))}set empty(t){vs(Ri(this,ee),t)}initCollection(t){this.options=t,this.filters=t.filters,this.sort=t.sort,this.page=t.page||1,this.perPage=t.perPage||50,this.collection=this.modules.pb.collection(t.name),this.collection.subscribe("*",e=>{this.fetch(),t.onChange&&t.onChange(e)})}async fetch(){this.loading=!0,this.error=null;try{const t=await this.collection.getList(this.page,this.perPage,{filter:this.filters,sort:this.sort,expand:this.options.expand,...this.options.query});Pc("fetched:"),this.data=t.items.map(t=>this.options.transform?this.options.transform(t,this.modules.pb.authStore.record):t),this.options.onFinish&&this.options.onFinish()}catch(t){this.error=t.message||"Failed to fetch",Tc(`Error fetching ${this.options.name}:`,t)}finally{this.loading=!1}}destroy(){var t;null==(t=this.collection)||t.unsubscribe("*")}}qt=new WeakMap,Yt=new WeakMap,Xt=new WeakMap,Gt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,te=new WeakMap,ee=new WeakMap;const Lc=(...t)=>{},Nc=(...t)=>{};class _c extends zc{constructor(t){super(),Di(this,ne,fs("")),Di(this,re,fs(ys({}))),Di(this,ie,fs(null)),this.id=t}get id(){return Pa(Ri(this,ne))}set id(t){vs(Ri(this,ne),t,!0)}get current(){return Pa(Ri(this,re))}set current(t){vs(Ri(this,re),t,!0)}get isTeamMember(){return Pa(Ri(this,ie))}set isTeamMember(t){vs(Ri(this,ie),t,!0)}start(){this.initCollection({name:"projects",filters:`id = "${this.id}"`,sort:"-updated",perPage:1})}async checkTeamMembership(t){try{const e=await this.modules.pb.collection("projects").getList(1,1,{filter:`id = "${this.id}" && (team.users.id = "${t}" || team.admin.id = "${t}")`,query:{project:this.id}});return this.isTeamMember=e.items.length>0,Lc(this.isTeamMember?"User is a team member":"User is an external user"),this.isTeamMember}catch(e){return this.track("error","Team check failed:",e),this.isTeamMember=!1,!1}}async fetchProject(){Lc(`Fetching project with id = ${this.id}`);try{const t=await this.modules.pb.collection("projects").getOne(this.id);return this.current=t,t}catch(t){return Nc("Invalid or no projectId found:",t),this.current=null,null}}}ne=new WeakMap,re=new WeakMap,ie=new WeakMap;const Fc=(...t)=>{};let Rc=(se=class extends zc{constructor(){super(),Di(this,oe,as(()=>this.data.filter(t=>!t.locked).length)),this.storage("current","fubi-folders-current",{})}get unlockedCount(){return Pa(Ri(this,oe))}set unlockedCount(t){vs(Ri(this,oe),t)}async start(){this.initCollection({name:"folders",filters:`project = "${this.modules.project.id}"`,expand:"users,project.team",sort:"-updated",transform:(t,e)=>{var n,r,i,o,s,a;const l=(null==(o=null==(i=null==(r=null==(n=t.expand)?void 0:n.project)?void 0:r.expand)?void 0:i.team)?void 0:o.admin)===(null==e?void 0:e.id),c=null==(a=null==(s=t.expand)?void 0:s.users)?void 0:a.some(t=>t.id===(null==e?void 0:e.id));return{...t,locked:!(l||c)}},query:{project:this.modules.project.id},onChange:()=>this.checkAccess(),onFinish:()=>{this.checkAccess()}})}checkAccess(){return this.current.locked?(Fc("current locked"),this.modules.router.goto("folders"),void(this.current={})):this.unlockedCount<2&&"folders"===this.modules.router.current?(Fc("only one or no unlocked folder, redirect to pages"),void this.modules.router.goto("pages")):void 0}select(t){this.current.name!==t.name&&(this.modules.pages.data=[],this.current=t,this.checkAccess())}},oe=new WeakMap,se);const Dc=(...t)=>{};let Ic=(de=class extends zc{constructor(){super(...arguments),Di(this,ae,fs(null)),Di(this,le,as(()=>{var t,e;return this.modules.folders.current&&this.modules.domains.current?`folder = "${null==(t=this.modules.folders.current)?void 0:t.id}" && domain = "${null==(e=this.modules.domains.current)?void 0:e.id}"`:void 0})),Di(this,ce,fs(void 0)),Di(this,ue,as(()=>{var t;return""===(null==(t=this.current)?void 0:t.id)}))}get url(){return Pa(Ri(this,ae))}set url(t){vs(Ri(this,ae),t,!0)}get filters(){return Pa(Ri(this,le))}set filters(t){vs(Ri(this,le),t)}get current(){return Pa(Ri(this,ce))}set current(t){vs(Ri(this,ce),t,!0)}get isNew(){return Pa(Ri(this,ue))}set isNew(t){vs(Ri(this,ue),t)}async start(){this.initCollection({name:"pages",filters:this.filters,sort:"-updated",expand:"comments_via_page",transform:(t,e)=>{var n;const r=(null==(n=t.expand)?void 0:n.comments_via_page)||[],i=r.length,o=r.filter(t=>!0===t.done).length,s=i>0?Math.round(o/i*100):0;return{...t,comments:r,totalComments:i,doneComments:o,progress:s}},onFinish:()=>{this.checkCurrent()}}),this.trackNavigation(),Is(()=>{this.filters?this.fetch():this.data=[]})}checkCurrent(){var t;const e=this.data.find(t=>{var e;return t.pathname===(null==(e=this.modules.domains.url)?void 0:e.pathname)});this.current=e||{id:"",collectionId:"",collectionName:"pages",created:"",updated:"",name:this.getCurrentName(),pathname:null==(t=this.modules.domains.url)?void 0:t.pathname}}getCurrentName(){var t;if(!this.modules.domains.url)return"";const e=(null==(t=this.modules.domains.url)?void 0:t.pathname)||"",n=null==document?void 0:document.querySelector('meta[name="page-title"]'),r=null==document?void 0:document.querySelector('meta[property="og:title"]'),i=null==document?void 0:document.title;return"/"===e?"Homepage":(null==n?void 0:n.content)||(null==r?void 0:r.content)||i||e}handleRouteChange(){var t;this.fetch(),this.modules.domains.getUrl(),Dc("Route changed to",null==(t=this.modules.domains.url)?void 0:t.pathname)}trackNavigation(){const t=history.pushState,e=history.replaceState;history.pushState=(...e)=>{t.apply(history,e),this.handleRouteChange()},history.replaceState=(...t)=>{e.apply(history,t),this.handleRouteChange()},this.modules.events.add("popstate",()=>this.handleRouteChange(),{target:window})}},ae=new WeakMap,le=new WeakMap,ce=new WeakMap,ue=new WeakMap,de);class jc extends $c{constructor(){super(...arguments),_i(this,"scroll",{disable:(t={})=>{this.addClass(t.touchOnly?"fubi-scroll-touch-disabled":"fubi-scroll-disabled")},enable:()=>{this.removeClass("fubi-scroll-disabled"),this.removeClass("fubi-scroll-touch-disabled")}})}addClass(t){document.documentElement.classList.add(t)}removeClass(t){document.documentElement.classList.remove(t)}toggleClass(t){document.documentElement.classList.toggle(t)}}function Bc(t){return"[object Date]"===Object.prototype.toString.call(t)}function Hc(t,e,n,r){if("number"==typeof n||Bc(n)){const i=r-n,o=(n-e)/(t.dt||1/60),s=(o+(t.opts.stiffness*i-t.opts.damping*o)*t.inv_mass)*t.dt;return Math.abs(s)<t.opts.precision&&Math.abs(i)<t.opts.precision?r:(t.settled=!1,Bc(n)?new Date(n.getTime()+s):n+s)}if(Array.isArray(n))return n.map((i,o)=>Hc(t,e[o],n[o],r[o]));if("object"==typeof n){const i={};for(const o in n)i[o]=Hc(t,e[o],n[o],r[o]);return i}throw new Error(`Cannot spring ${typeof n} values`)}he=new WeakMap,pe=new WeakMap,fe=new WeakMap,ge=new WeakMap,ve=new WeakMap,me=new WeakMap,we=new WeakMap,be=new WeakMap,ye=new WeakMap,xe=new WeakMap,ke=new WeakMap,Ce=new WeakSet,Me=function(t){var e;if(vs(Ri(this,ve),t),(e=Ri(this,ge)).v??(e.v=t),Ri(this,me)??Ii(this,me,Ri(this,ge).v),!Ri(this,xe)){Ii(this,we,Kl.now());var n=1e3/(60*Ri(this,ye));Ri(this,xe)??Ii(this,xe,Ul(t=>{Ii(this,be,Math.min(Ri(this,be)+n,1));const e=Math.min(t-Ri(this,we),1e3/30),r={inv_mass:Ri(this,be),opts:{stiffness:Ri(this,he).v,damping:Ri(this,pe).v,precision:Ri(this,fe).v},settled:!0,dt:60*e/1e3};var i=Hc(r,Ri(this,me),Ri(this,ge).v,Ri(this,ve).v);return Ii(this,me,Ri(this,ge).v),Ii(this,we,t),vs(Ri(this,ge),i),r.settled&&Ii(this,xe,null),!r.settled}))}return Ri(this,xe).promise};let Vc=class t{constructor(t,e={}){Di(this,Ce),Di(this,he,fs(.15)),Di(this,pe,fs(.8)),Di(this,fe,fs(.01)),Di(this,ge),Di(this,ve),Di(this,me),Di(this,we,0),Di(this,be,1),Di(this,ye,0),Di(this,xe,null),Di(this,ke,null),Ii(this,ge,fs(t)),Ii(this,ve,fs(t)),"number"==typeof e.stiffness&&(Ri(this,he).v=Kc(e.stiffness,0,1)),"number"==typeof e.damping&&(Ri(this,pe).v=Kc(e.damping,0,1)),"number"==typeof e.precision&&(Ri(this,fe).v=e.precision)}static of(e,n){const r=new t(e(),n);return Vs(()=>{r.set(e())}),r}set(t,e){var n,r;if(null==(n=Ri(this,ke))||n.reject(new Error("Aborted")),(null==e?void 0:e.instant)||void 0===Ri(this,ge).v)return null==(r=Ri(this,xe))||r.abort(),Ii(this,xe,null),vs(Ri(this,ge),vs(Ri(this,ve),t)),Ii(this,me,t),Promise.resolve();(null==e?void 0:e.preserveMomentum)&&(Ii(this,be,0),Ii(this,ye,e.preserveMomentum));var i=Ii(this,ke,to());return i.promise.catch(Qi),ji(this,Ce,Me).call(this,t).then(()=>{i===Ri(this,ke)&&i.resolve(void 0)}),i.promise}get current(){return Pa(Ri(this,ge))}get damping(){return Pa(Ri(this,pe))}set damping(t){vs(Ri(this,pe),Kc(t,0,1))}get precision(){return Pa(Ri(this,fe))}set precision(t){vs(Ri(this,fe),t)}get stiffness(){return Pa(Ri(this,he))}set stiffness(t){vs(Ri(this,he),Kc(t,0,1))}get target(){return Pa(Ri(this,ve))}set target(t){this.set(t)}};function Kc(t,e,n){return Math.max(e,Math.min(n,t))}function Zc(t){return t*t*t}function Uc(t){const e=t-1;return e*e*e+1}class qc extends $c{constructor(){super(),Di(this,$e,fs(null)),Di(this,We,fs(0)),_i(this,"height",new Vc(0,{stiffness:.2,damping:.4})),Di(this,Se,fs(ys({bottom:0,middle:this.calculateBreakpoint(),top:this.calculateBreakpoint(.99)}))),Di(this,Ae,fs(ys(this.breakpoints.middle))),Di(this,Oe,fs(ys(this.breakpoints.middle))),Di(this,Ee,fs(ys({active:!1,start:0,current:0,difference:0,startHeight:0,height:0,direction:null,hasMoved:!1}))),_i(this,"drag",{start:t=>{this.modules.environment.touch&&(t.target.closest("button, a, input, label, textarea, select")||(this.dragging.hasMoved=!1,this.dragging.active=!0,this.dragging.start=t.y,this.dragging.startHeight=this.getCurrentHeight(),this.dragging.height=this.dragging.startHeight))},move:t=>{var e;if(this.dragging.active&&this.modules.environment.touch){if(this.dragging.current=t.y,this.dragging.difference=this.dragging.current-this.dragging.start,Math.abs(this.dragging.difference)>2){this.dragging.hasMoved=!0;const t=this.contentScroll<=0,n=this.dragging.difference>0;if(!t||!n){const t=null==(e=this.el)?void 0:e.querySelector(".page-content, .content, [data-scrollable]"),n=!!t&&this.contentScroll>=t.scrollHeight-t.clientHeight-1,r=this.dragging.difference<0;if(!n||!r||this.currentBreakpoint===this.breakpoints.top)return void(this.dragging.active=!1)}}this.currentBreakpoint===this.breakpoints.middle&&("up"===this.dragging.direction&&this.dragging.height>this.breakpoints.middle+30?this.nextBreakpoint=this.breakpoints.top:"down"===this.dragging.direction&&this.dragging.height<this.breakpoints.middle-30?this.nextBreakpoint=this.breakpoints.bottom:this.nextBreakpoint=this.breakpoints.middle),this.currentBreakpoint===this.breakpoints.top&&("down"===this.dragging.direction&&this.dragging.height<this.breakpoints.top-50?this.nextBreakpoint=this.breakpoints.middle:this.nextBreakpoint=this.breakpoints.top),this.dragging.height=this.dragging.startHeight-this.dragging.difference,this.dragging.direction=this.dragging.difference<0?"up":"down"}},end:t=>{(this.dragging.active||this.dragging.hasMoved)&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),this.dragging.active&&(this.dragging.hasMoved&&(this.currentBreakpoint=this.nextBreakpoint,this.currentBreakpoint===this.breakpoints.bottom&&this.close()),this.dragging.active=!1,this.dragging.current=0,this.dragging.startHeight=0,this.dragging.height=0,this.dragging.difference=0,this.dragging.direction=null,this.dragging.hasMoved=!1)}}),this.storage("opened","fubi-win-opened",!0)}get el(){return Pa(Ri(this,$e))}set el(t){vs(Ri(this,$e),t,!0)}get contentScroll(){return Pa(Ri(this,We))}set contentScroll(t){vs(Ri(this,We),t,!0)}get breakpoints(){return Pa(Ri(this,Se))}set breakpoints(t){vs(Ri(this,Se),t,!0)}get currentBreakpoint(){return Pa(Ri(this,Ae))}set currentBreakpoint(t){vs(Ri(this,Ae),t,!0)}get nextBreakpoint(){return Pa(Ri(this,Oe))}set nextBreakpoint(t){vs(Ri(this,Oe),t,!0)}get dragging(){return Pa(Ri(this,Ee))}set dragging(t){vs(Ri(this,Ee),t,!0)}start(){this.modules.keys.on("m",()=>{Ac()||this.toggle()}),this.modules.keys.on("Escape",()=>{Ac()||this.close()}),this.opened&&this.modules.dom.scroll.disable({touchOnly:!0}),this.setupTouchHandling()}setupTouchHandling(){if(!this.el)return void requestAnimationFrame(()=>this.setupTouchHandling());let t=0,e=!0;this.el.addEventListener("touchstart",n=>{this.opened&&(t=n.touches[0].clientY,e=!0)},{passive:!0}),this.el.addEventListener("touchmove",n=>{var r;if(!this.opened||!e)return;const i=n.touches[0].clientY-t;if(Math.abs(i)>5){const t=null==(r=this.el)?void 0:r.querySelector(".page-content, .content, [data-scrollable]"),o=!!t&&this.contentScroll>=t.scrollHeight-t.clientHeight-1;this.contentScroll<=0&&i>0||o&&i<0&&this.currentBreakpoint!==this.breakpoints.top?(n.preventDefault(),e=!1):e=!1}},{passive:!1})}open(){this.currentBreakpoint=this.breakpoints.middle,this.opened=!0,this.modules.dom.scroll.disable({touchOnly:!0}),this.focusPageContent()}close(){this.currentBreakpoint=this.breakpoints.bottom,this.opened=!1,this.modules.dom.scroll.enable()}toggle(){this[this.opened?"close":"open"]()}getCurrentHeight(t=!1){if(!this.el)return 0;const e=getComputedStyle(this.el)[t?"maxHeight":"height"];return e&&"none"!==e&&parseFloat(e)||0}calculateBreakpoint(t=.55){const e=window.innerHeight*t;return Math.max(200,Math.min(1e3,e))}focusPageContent(){var t,e;const n=this.modules.router.current,r=null==(t=this.el)?void 0:t.querySelectorAll(`[data-fubi-page="${n}"]`),i=null==(e=null==r?void 0:r[0])?void 0:e.querySelector(".page-content");i&&i.focus()}}$e=new WeakMap,We=new WeakMap,Se=new WeakMap,Ae=new WeakMap,Oe=new WeakMap,Ee=new WeakMap;let Yc=(Te=class extends $c{constructor(){super(),Di(this,Pe,fs(!1)),this.storage("title","fubi-navbar-title","")}get visible(){return Pa(Ri(this,Pe))}set visible(t){vs(Ri(this,Pe),t,!0)}},Pe=new WeakMap,Te),Xc=(Ne=class extends $c{constructor(){super(...arguments),Di(this,ze,fs(!1)),Di(this,Le,as(()=>"comments"===(this.modules.router.navigating?"forward"===this.modules.router.direction?this.modules.router.next:this.modules.router.previous:this.modules.router.current)?"comments":"folders"===(this.modules.router.navigating?"forward"===this.modules.router.direction?this.modules.router.next:this.modules.router.previous:this.modules.router.current)?"folders":"pages"))}get visible(){return Pa(Ri(this,ze))}set visible(t){vs(Ri(this,ze),t,!0)}get tabActive(){return Pa(Ri(this,Le))}set tabActive(t){vs(Ri(this,Le),t)}},ze=new WeakMap,Le=new WeakMap,Ne);class Gc extends $c{constructor(){super(),Di(this,_e,fs(!1)),this.touch=window.matchMedia("(pointer: coarse)").matches}get touch(){return Pa(Ri(this,_e))}set touch(t){vs(Ri(this,_e),t,!0)}}_e=new WeakMap;var Jc=tl('<div><div tabindex="-1"><!></div></div>');function Qc(t,e){So(e,!0);const{tabbar:n,navbar:r,win:i,router:o}=Qd();let s=hc(e,"title",3,null),a=hc(e,"navbar",3,!0),l=hc(e,"tabbar",3,!0),c=hc(e,"name",3,""),u=as(()=>o.current===c()),d=as(()=>o.previous===c()),h=as(()=>o.next===c()),p=as(()=>o.navigating?"forward"===o.direction?o.next===c():o.previous===c():o.current===c()),f=fs(void 0);const g=new Cc({element:()=>Pa(f),onScroll:t=>{i.contentScroll=g.y}});Is(()=>{Pa(p)&&(r.title=s(),r.visible=a(),n.visible=l())});var v=Jc(),m=Es(v);xl(Es(m),()=>e.children),sc(m,t=>vs(f,t),()=>Pa(f)),Ks(()=>{Il(v,"data-fubi-page",c()),v.inert=!Pa(u),El(v,1,Wl(["page rim touch:rim-top flex min-w-full w-full flex-col rounded-(--fubi-rounded) mouse:rounded-(--fubi-rounded-mouse) touch:rounded-b-none h-full","from-(--fubi-page-from-bg) to-(--fubi-page-to-bg)","mouse:bg-gradient-to-b touch:bg-gradient-to-b from-(--fubi-page-from-bg) to-(--fubi-page-to-bg)","transition-[translate,scale,opacity] ease-out-cubic duration-500 top-0",Pa(u)&&"page-current",Pa(d)&&"page-previous",Pa(h)&&"page-next"])),El(m,1,Wl(["page-content flex flex-col hide-scrollbar","focus-visible:outline-none",i.dragging.active&&"pointer-events-none select-none","z-[8] relative overflow-auto h-full rounded-(--fubi-rounded) mouse:rounded-(--fubi-rounded-mouse)","transition-[padding-top] duration-300 ease-out will-change-[padding-top]",a()&&"pt-(--fubi-navbar-height) touch:pt-(--fubi-navbar-height-touch)",l()&&"pb-(--fubi-tabbar-height) touch:pb-(--fubi-tabbar-height-touch)","px-12 touch:px-16"]))}),ol(t,v),Ao()}var tu=tl("<ul><!></ul>");function eu(t,e){const n=hc(e,"class",3,"");var r=tu();xl(Es(r),()=>e.children),Ks(()=>El(r,1,Wl(["list flex flex-col mb-8","[&>:first-child>.listitem]:rounded-t-[18px] [&>:last-child>.listitem]:rounded-b-[18px]","[&>.listitem]:first:rounded-t-[18px] [&>.listitem]:last:rounded-b-[18px]","touch:[&>.listitem]:first:rounded-t-[24px] touch:[&>.listitem]:last:rounded-b-[24px]","touch:[&>.listitem]:first:rounded-t-[24px] touch:[&>.listitem]:last:rounded-b-[24px]","touch:[&>:first-child>.listitem]:rounded-t-[22px] touch:[&>:last-child>.listitem]:rounded-b-[22px]","[&>.listitem:last-child>.listitem-content]:border-b-0 [&>:last-child>.listitem>.listitem-content]:border-b-0",n()]))),ol(t,r)}var nu=tl('<label class="border-b-[0.5px] border-white/5 last:border-b-0 min-h-52 first:rounded-t-[20px] last:rounded-b-[20px] bg-slate-500/10 mouse:min-h-48 flex px-16 group/input text-white items-center focus-within"><p class="select-none"> </p> <input/></label>');function ru(t,e){So(e,!0);let n=hc(e,"value",15),r=cc(e,["$$slots","$$events","$$legacy","name","label","value"]);var i=nu(),o=Es(i),s=Es(o),a=Ts(o,2);jl(a,()=>({id:`fubi-input-${e.name}`,name:e.name,class:"flex-1 focus:ring-none focus-visible:outline-hidden text-right text-white/50",...r}),void 0,void 0,0,!0),Ks(()=>{Il(i,"for",`fubi-input-${e.name}`),ll(s,e.label)}),function(t,e,n=e){var r=new WeakSet;_s(t,"input",async i=>{var o=i?t.defaultValue:t.value;if(o=tc(t)?ec(o):o,n(o),null!==Do&&r.add(Do),await Ea(),o!==(o=e())){var s=t.selectionStart,a=t.selectionEnd,l=t.value.length;if(t.value=o??"",null!==a){var c=t.value.length;s===a&&a===l&&c>l?(t.selectionStart=c,t.selectionEnd=c):(t.selectionStart=s,t.selectionEnd=Math.min(a,c))}}}),null==za(e)&&t.value&&(n(tc(t)?ec(t.value):t.value),null!==Do&&r.add(Do)),Vs(()=>{var n=e();if(t===document.activeElement){var i=Io??Do;if(r.has(i))return}tc(t)&&n===ec(t.value)||("date"!==t.type||n||t.value)&&n!==t.value&&(t.value=n??"")})}(a,n),ol(t,i),Ao()}const iu=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var ou=nl('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"></svg>');function su(t,e){let n;So(e,!0);let r=fs(void 0),i=fs(void 0);const o=as(()=>({size:e.size??24,strokeWidth:e.strokeWidth,absoluteStrokeWidth:e.absoluteStrokeWidth??!1,color:e.color??"currentColor",altIcon:e.altIcon,showAlt:e.showAlt??!1,class:e.className??""}));pc(()=>{if(n)return vs(r,function(t,e){const n=(t,n)=>{const{color:r="currentColor",size:i=24,strokeWidth:o,absoluteStrokeWidth:s=!1,class:a="",altIcon:l,showAlt:c=!1,...u}=n,d={xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",color:r,class:a,...u},h=c&&l?l:e,p=void 0!==o?s?o*(24/Number(i)):o:void 0;Object.entries(d).forEach(([e,n])=>{t.setAttribute(iu(e),String(n))}),t.innerHTML="",h.forEach(([e,n])=>{const r=document.createElementNS("http://www.w3.org/2000/svg",e),i={...n};void 0!==p&&(i["stroke-width"]=p,i.stroke="currentColor"),Object.entries(i).forEach(([t,e])=>{r.setAttribute(iu(t),String(e))}),t.appendChild(r)})};return{render:(t,e)=>(n(t,e),{update(e){n(t,e)},destroy(){t.innerHTML=""}})}}(0,e.icon),!0),vs(i,Pa(r).render(n,Pa(o)),!0),()=>{var t;null==(t=Pa(i))||t.destroy()}}),Is(()=>{Pa(r)&&n&&Pa(i)&&Pa(i).update(Pa(o))});var s=ou();sc(s,t=>n=t,()=>n),Ks(()=>{Il(s,"width",e.size??24),Il(s,"height",e.size??24),El(s,0,Wl(e.className))}),ol(t,s),Ao()}const au=t=>t;function lu(t){const e=t-1;return e*e*e+1}function cu(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function uu(t,{delay:e=0,duration:n=400,easing:r=au}={}){const i=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:r,css:t=>"opacity: "+t*i}}function du(t,{delay:e=0,duration:n=400,easing:r=lu,x:i=0,y:o=0,opacity:s=0}={}){const a=getComputedStyle(t),l=+a.opacity,c="none"===a.transform?"":a.transform,u=l*(1-s),[d,h]=cu(i),[p,f]=cu(o);return{delay:e,duration:n,easing:r,css:(t,e)=>`\n\t\t\ttransform: ${c} translate(${(1-t)*d}${h}, ${(1-t)*p}${f});\n\t\t\topacity: ${l-u*e}`}}function hu(t,{delay:e=0,duration:n=400,easing:r=lu,axis:i="y"}={}){const o=getComputedStyle(t),s=+o.opacity,a="y"===i?"height":"width",l=parseFloat(o[a]),c="y"===i?["top","bottom"]:["left","right"],u=c.map(t=>`${t[0].toUpperCase()}${t.slice(1)}`),d=parseFloat(o[`padding${u[0]}`]),h=parseFloat(o[`padding${u[1]}`]),p=parseFloat(o[`margin${u[0]}`]),f=parseFloat(o[`margin${u[1]}`]),g=parseFloat(o[`border${u[0]}Width`]),v=parseFloat(o[`border${u[1]}Width`]);return{delay:e,duration:n,easing:r,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*s};${a}: ${t*l}px;padding-${c[0]}: ${t*d}px;padding-${c[1]}: ${t*h}px;margin-${c[0]}: ${t*p}px;margin-${c[1]}: ${t*f}px;border-${c[0]}-width: ${t*g}px;border-${c[1]}-width: ${t*v}px;min-${a}: 0`}}const pu=[["path",{d:"M13.7656 1.75396C14.7522 1.76779 15.4824 1.83025 16.1611 2.11139C17.0659 2.4862 17.7605 3.2 18.873 4.31256L19.6875 5.12701L20.4482 5.89264C21.1358 6.5998 21.6075 7.16034 21.8887 7.83892L21.9541 8.00982C22.2616 8.87066 22.25 9.83812 22.25 11.3135V12.6866C22.25 14.162 22.2616 15.1295 21.9541 15.9903L21.8887 16.1612C21.6076 16.8398 21.1359 17.4003 20.4482 18.1075L19.6875 18.8731L18.873 19.6876C17.7605 20.8001 17.0659 21.5139 16.1611 21.8887C15.2562 22.2635 14.2602 22.2501 12.6865 22.2501H11.3135C9.83806 22.2501 8.8706 22.2616 8.00977 21.9542L7.83887 21.8887C7.16029 21.6076 6.59974 21.1359 5.89258 20.4483L5.12695 19.6876L4.3125 18.8731C3.19995 17.7606 2.48614 17.066 2.11133 16.1612C1.83019 15.4824 1.76774 14.7522 1.75391 13.7657L1.75 12.6866V11.3135C1.75 9.73989 1.7365 8.74383 2.11133 7.83892L2.18555 7.67193C2.57682 6.84587 3.26933 6.17018 4.3125 5.12701L5.12695 4.31256L5.89258 3.55181C6.59976 2.86421 7.16027 2.39251 7.83887 2.11139L8.00977 2.04596C8.8706 1.73848 9.83806 1.75006 11.3135 1.75006H12.6865L13.7656 1.75396ZM12 14.9883C11.4477 14.9884 11 15.4361 11 15.9883V15.9981C11 16.5504 11.4477 16.9981 12 16.9981C12.5523 16.9981 13 16.5504 13 15.9981V15.9883C13 15.4361 12.5523 14.9883 12 14.9883ZM12 7.00006C11.4477 7.00009 11 7.44779 11 8.00006V12.5001C11 13.0523 11.4477 13.5 12 13.5001C12.5523 13.5001 13 13.0523 13 12.5001V8.00006C13 7.44777 12.5523 7.00006 12 7.00006Z",fill:"currentColor",key:"0"}]],fu=[["path",{d:"M12 1.75C17.6609 1.75 22.25 6.33908 22.25 12C22.25 17.6609 17.6609 22.25 12 22.25C10.2448 22.25 8.59046 21.8084 7.14453 21.0293C6.38511 20.6201 5.78228 20.6112 5.23633 20.7139C4.94458 20.7688 4.66731 20.8556 4.3584 20.9531L4.34082 20.959C4.05369 21.0496 3.7164 21.1558 3.37793 21.207C2.95556 21.2709 2.5542 21.1147 2.2793 20.8398C1.8481 20.4083 1.80203 19.788 2.00293 19.3145L2.07617 19.1318C2.43613 18.1714 2.70956 16.5536 2.27148 15.2363C1.9329 14.2181 1.75 13.1296 1.75 12C1.75 6.33908 6.33908 1.75 12 1.75ZM8.00879 11C7.45662 11.0001 7.00879 11.4478 7.00879 12C7.00879 12.5522 7.45662 12.9999 8.00879 13H8.01758L8.12012 12.9951C8.62432 12.9439 9.01758 12.5177 9.01758 12C9.01758 11.4823 8.62432 11.0561 8.12012 11.0049L8.01758 11H8.00879ZM12.0039 11C11.4519 11.0003 11.0039 11.4479 11.0039 12C11.0039 12.5521 11.4519 12.9997 12.0039 13H12.0137C12.5658 12.9998 13.0137 12.5521 13.0137 12C13.0137 11.4479 12.5658 11.0002 12.0137 11H12.0039ZM16 11C15.4478 11.0001 15 11.4478 15 12C15 12.5522 15.4478 12.9999 16 13H16.0088C16.5611 13 17.0088 12.5523 17.0088 12C17.0088 11.4477 16.5611 11 16.0088 11H16Z",fill:"currentColor",key:"0"}]],gu=[["path",{d:"M12 2.25C8.91146 2.25 6.2371 2.89111 4.31407 4.2647C2.35646 5.663 1.25 7.77101 1.25 10.5C1.25 14.6224 4.00275 17.4442 6.5804 19.1841C7.88125 20.0622 9.17673 20.6932 10.1441 21.1043C10.6217 21.3073 11.4725 21.6081 11.7713 21.7137L11.7714 21.7137L11.7845 21.7184C12.0116 21.7865 12.2575 21.7432 12.4477 21.6017C12.6379 21.4602 12.75 21.2371 12.75 21V18.7371C15.5214 18.6401 17.9203 17.9964 19.6859 16.7353C21.6435 15.337 22.75 13.229 22.75 10.5C22.75 7.77101 21.6435 5.663 19.6859 4.2647C17.7629 2.89111 15.0885 2.25 12 2.25ZM8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9H16C16.5523 9 17 8.55228 17 8C17 7.44772 16.5523 7 16 7H8ZM8 12C7.44772 12 7 12.4477 7 13C7 13.5523 7.44772 14 8 14H12C12.5523 14 13 13.5523 13 13C13 12.4477 12.5523 12 12 12H8Z",fill:"currentColor",fillRule:"evenodd",key:"0"}]],vu=[["path",{d:"M13.1371 1.41733C12.6617 1.24866 12.1571 1.24934 11.5872 1.2501C10.0615 1.25008 8.65386 1.25017 7.6751 1.36504C6.66241 1.48389 5.79471 1.7369 5.05968 2.33261C4.78987 2.55128 4.5441 2.79833 4.32657 3.06954C3.73394 3.80839 3.48224 4.6806 3.364 5.69856C3.24972 6.6824 3.24974 7.91892 3.24976 9.45257V9.4526V9.45263V14.0261V14.0262V14.0262C3.24973 15.8081 3.24971 17.2445 3.4008 18.3741C3.55768 19.547 3.89327 20.5345 4.67352 21.3188C5.45377 22.1031 6.43619 22.4405 7.60298 22.5982C8.72681 22.75 10.2979 22.75 12.0707 22.75C13.8435 22.75 15.2724 22.75 16.3963 22.5982C17.5631 22.4405 18.5455 22.1031 19.3257 21.3188C20.106 20.5345 20.4416 19.547 20.5984 18.3741C20.7495 17.2445 20.7495 15.8081 20.7495 14.0261L20.7496 10.5518C20.7506 9.88846 20.7515 9.29971 20.5275 8.75596C20.3034 8.2122 19.8886 7.79654 19.4213 7.32819L14.6384 2.52054C14.236 2.11489 13.8797 1.75582 13.4249 1.53715C13.3311 1.49208 13.2351 1.45209 13.1371 1.41733ZM17.9509 8.6144C18.5689 9.2357 18.6743 9.36608 18.7311 9.50391C17.3635 9.50393 16.715 9.50314 15.848 9.38658C14.9479 9.26557 14.19 9.00667 13.5881 8.40476C12.9862 7.80284 12.7273 7.04497 12.6063 6.14486C12.49 5.27967 12.49 4.63195 12.49 3.2701V3.26172C12.6716 3.31641 12.813 3.44983 13.346 3.98554L17.9509 8.6144Z",fill:"currentColor",fillRule:"evenodd",key:"0"}]],mu=[["path",{d:"M7.08264 2.24996C8.11205 2.24951 8.82373 2.24919 9.4626 2.48876C10.8581 3.01205 11.4704 4.25121 11.9425 5.20636C12.0838 5.48909 12.3409 6.0027 12.4128 6.11563C12.4348 6.15255 12.5044 6.22817 12.6064 6.23531C12.7396 6.24908 12.92 6.25 13.2361 6.25L16.7905 6.25H16.7905C17.8095 6.24999 18.6312 6.24998 19.2905 6.31705C19.9711 6.38628 20.5613 6.53313 21.0834 6.88199C21.4929 7.15559 21.8444 7.50715 22.118 7.91661C22.4669 8.43872 22.6137 9.02893 22.683 9.70949C22.75 10.3688 22.75 11.2733 22.75 12.2923C22.75 14.012 22.75 15.3602 22.6408 16.4336C22.5295 17.5283 22.2983 18.4202 21.781 19.1945C21.3614 19.8224 20.8224 20.3614 20.1945 20.781C19.4202 21.2983 18.5283 21.5295 17.4336 21.6408C16.3602 21.75 15.012 21.75 13.2923 21.75H11.9426C9.63423 21.75 7.82519 21.75 6.41371 21.5603C4.96897 21.366 3.82895 20.9607 2.93414 20.0659C2.03933 19.1711 1.63399 18.031 1.43975 16.5863C1.24998 15.1748 1.24999 13.3658 1.25 11.0574V11.0574V7.90951V7.90951C1.24999 7.03077 1.24998 6.32205 1.30044 5.7497C1.35242 5.15996 1.46238 4.64388 1.7254 4.17258C2.06428 3.56534 2.56533 3.06428 3.17258 2.7254C3.64388 2.46238 4.15996 2.35243 4.7497 2.30044C5.32205 2.24999 6.2039 2.24995 7.08264 2.24996Z",fill:"currentColor",key:"0"}]],wu=[["path",{d:"M21 14.8387V13.75C21 12.3693 19.8807 11.25 18.5 11.25C17.1193 11.25 16 12.3693 16 13.75V14.8387C15.6941 14.8997 15.3988 15.0089 15.1303 15.215C14.9743 15.3347 14.8347 15.4743 14.715 15.6303C14.4431 15.9846 14.3398 16.3855 14.2935 16.7961C14.25 17.1821 14.25 17.739 14.25 18.2907C14.25 18.8423 14.25 19.3179 14.2935 19.7039C14.3398 20.1145 14.4431 20.5154 14.715 20.8697C14.8347 21.0257 14.9743 21.1653 15.1303 21.285C15.4846 21.5569 15.8855 21.6602 16.2961 21.7065C16.6821 21.75 17.1577 21.75 17.7093 21.75H19.2907C19.8423 21.75 20.3179 21.75 20.7039 21.7065C21.1145 21.6602 21.5154 21.5569 21.8697 21.285C22.0257 21.1653 22.1653 21.0257 22.285 20.8697C22.5569 20.5154 22.6603 20.1145 22.7065 19.7039C22.7501 19.3179 22.75 18.8423 22.75 18.2907C22.75 17.739 22.7501 17.1821 22.7065 16.7961C22.6603 16.3855 22.5569 15.9846 22.285 15.6303C22.1653 15.4743 22.0257 15.3347 21.8697 15.215C21.6012 15.0089 21.306 14.8997 21 14.8387ZM17.5 13.75C17.5 13.1977 17.9477 12.75 18.5 12.75C19.0523 12.75 19.5 13.1977 19.5 13.75V14.7501H17.5V13.75Z",fill:"currentColor",fillRule:"evenodd",key:"0"}],["path",{d:"M9.4626 2.48884C8.82373 2.24927 8.11205 2.24958 7.08264 2.25004C6.2039 2.25003 5.32205 2.25006 4.7497 2.30052C4.15996 2.3525 3.64388 2.46246 3.17258 2.72548C2.56533 3.06435 2.06428 3.56541 1.7254 4.17266C1.46238 4.64396 1.35242 5.16004 1.30044 5.74978C1.24999 6.32212 1.24999 7.03084 1.25 7.90957V7.90957V11.0575V11.0575C1.24999 13.3659 1.24998 15.1749 1.43975 16.5864C1.63399 18.0311 2.03933 19.1711 2.93414 20.0659C3.82895 20.9608 4.96897 21.3661 6.41371 21.5603C7.82519 21.7501 9.63423 21.7501 11.9426 21.7501H13.2923L13.819 21.75C13.7863 21.7109 13.7543 21.6711 13.7233 21.6307C13.2566 21.0224 13.1102 20.3659 13.0513 19.8439C12.9999 19.3871 12.9999 18.8515 13 18.3392C12.9999 17.8269 12.9999 17.1129 13.0513 16.6561C13.1102 16.1341 13.2566 15.4776 13.7233 14.8693C13.9095 14.6267 14.1267 14.4095 14.3693 14.2233C14.4946 14.1271 14.6221 14.0445 14.75 13.9735V13.75C14.75 11.6789 16.4289 10 18.5 10C19.9146 10 21.1463 10.7833 21.785 11.9398H22.7499C22.7491 11.0652 22.7422 10.2918 22.683 9.70956C22.6137 9.029 22.4669 8.4388 22.118 7.91669C21.8444 7.50723 21.4929 7.15566 21.0834 6.88207C20.5613 6.53321 19.9711 6.38636 19.2905 6.31713C18.6312 6.25006 17.8095 6.25007 16.7905 6.25008L13.2361 6.25008C12.92 6.25008 12.7396 6.24915 12.6064 6.23539C12.5044 6.22825 12.4348 6.15263 12.4128 6.11571C12.3409 6.00277 12.0838 5.48916 11.9425 5.20644C11.4704 4.25129 10.8581 3.01213 9.4626 2.48884Z",fill:"currentColor",key:"1"}]],bu=[["path",{d:"M12.8251 1.75C15.0007 1.74998 15.7354 1.74997 17.0955 1.93282C18.4999 2.12164 19.6537 2.52175 20.5661 3.43414C21.4785 4.34653 21.8786 5.50033 22.0674 6.90471C22.2313 8.12428 22.2483 10.047 22.25 12L22.2436 13.5037C22.235 15.2454 22.1957 16.6539 21.9907 17.7892C21.7817 18.9461 21.3902 19.8839 20.635 20.6391C19.7768 21.4973 18.6846 21.8843 17.3079 22.0694C15.9645 22.25 14.2438 22.25 12.0531 22.25H11.9387C9.74804 22.25 8.02737 22.25 6.68396 22.0694C5.3073 21.8843 4.21505 21.4973 3.35685 20.6391C2.60168 19.8839 2.21018 18.9461 2.00122 17.7892C1.79615 16.6539 1.75684 15.2454 1.74826 13.5037L1.7504 11.9999C1.75213 10.0469 1.76906 8.12426 1.93303 6.90471C2.12184 5.50033 2.52195 4.34653 3.43434 3.43414C4.34673 2.52175 5.50054 2.12164 6.90492 1.93282C8.26505 1.74996 9.99978 1.74998 12.1757 1.75H12.8251ZM20.0852 7.17121C20.2409 8.32894 20.2497 10.2983 20.2502 12.4499C20.2502 12.6155 20.1159 12.75 19.9502 12.75L16.5703 12.75C15.2901 12.75 14.4348 13.7898 14.0243 14.6123C13.7341 15.1938 13.1705 15.75 11.9959 15.75C10.8213 15.75 10.2578 15.1938 9.96755 14.6123C9.55706 13.7898 8.70178 12.75 7.42159 12.75L4.0502 12.75C3.88452 12.75 3.75019 12.6155 3.75023 12.4499C3.75071 10.2983 3.75954 8.32894 3.91519 7.17121C4.07419 5.9886 4.3697 5.3272 4.84855 4.84835C5.32741 4.3695 5.98881 4.07399 7.17141 3.91499C8.38278 3.75212 10.4828 3.75 12.7502 3.75C15.0176 3.75 15.6176 3.75212 16.829 3.91499C18.0116 4.07399 18.673 4.3695 19.1519 4.84835C19.6307 5.3272 19.9262 5.9886 20.0852 7.17121Z",fill:"currentColor",fillRule:"evenodd",key:"0"}]],yu=[["path",{d:"M12 2C12.5523 2 13 2.44772 13 3V6C13 6.55228 12.5523 7 12 7C11.4477 7 11 6.55228 11 6V3C11 2.44772 11.4477 2 12 2Z",fill:"currentColor",fillRule:"evenodd",key:"0"}],["path",{d:"M12 17C12.5523 17 13 17.4477 13 18V21C13 21.5523 12.5523 22 12 22C11.4477 22 11 21.5523 11 21V18C11 17.4477 11.4477 17 12 17Z",fill:"currentColor",fillRule:"evenodd",key:"1"}],["path",{d:"M17 12C17 11.4477 17.4477 11 18 11L21 11C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H18C17.4477 13 17 12.5523 17 12Z",fill:"currentColor",fillRule:"evenodd",key:"2"}],["path",{d:"M2 12C2 11.4477 2.44772 11 3 11L6 11C6.55228 11 7 11.4477 7 12C7 12.5523 6.55228 13 6 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor",fillRule:"evenodd",key:"3"}],["path",{d:"M19.0706 4.92961C19.4611 5.32014 19.4611 5.9533 19.0706 6.34383L16.9493 8.46515C16.5588 8.85567 15.9256 8.85567 15.5351 8.46515C15.1446 8.07462 15.1446 7.44146 15.5351 7.05093L17.6564 4.92961C18.0469 4.53909 18.6801 4.53909 19.0706 4.92961Z",fill:"currentColor",fillRule:"evenodd",key:"4"}],["path",{d:"M8.46515 15.5351C8.85567 15.9256 8.85567 16.5588 8.46515 16.9493L6.34383 19.0706C5.9533 19.4611 5.32014 19.4611 4.92961 19.0706C4.53909 18.6801 4.53909 18.0469 4.92961 17.6564L7.05093 15.5351C7.44146 15.1446 8.07462 15.1446 8.46515 15.5351Z",fill:"currentColor",fillRule:"evenodd",key:"5"}],["path",{d:"M15.5351 15.5351C15.9256 15.1446 16.5588 15.1446 16.9493 15.5351L19.0706 17.6564C19.4611 18.0469 19.4611 18.6801 19.0706 19.0706C18.6801 19.4611 18.0469 19.4611 17.6564 19.0706L15.5351 16.9493C15.1446 16.5588 15.1446 15.9256 15.5351 15.5351Z",fill:"currentColor",fillRule:"evenodd",key:"6"}],["path",{d:"M4.92961 4.92961C5.32014 4.53909 5.9533 4.53909 6.34383 4.92961L8.46515 7.05093C8.85567 7.44146 8.85567 8.07462 8.46515 8.46515C8.07462 8.85567 7.44146 8.85567 7.05093 8.46515L4.92961 6.34383C4.53909 5.9533 4.53909 5.32014 4.92961 4.92961Z",fill:"currentColor",fillRule:"evenodd",key:"7"}]],xu=[["path",{d:"M3 5C3 4.44772 3.44772 4 4 4L14 4C14.5523 4 15 4.44772 15 5C15 5.55229 14.5523 6 14 6L4 6C3.44772 6 3 5.55228 3 5Z",fill:"currentColor",fillRule:"evenodd",key:"0"}],["path",{d:"M3 12C3 11.4477 3.44772 11 4 11L20 11C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13L4 13C3.44772 13 3 12.5523 3 12Z",fill:"currentColor",fillRule:"evenodd",key:"1"}],["path",{d:"M3 19C3 18.4477 3.44772 18 4 18L20 18C20.5523 18 21 18.4477 21 19C21 19.5523 20.5523 20 20 20L4 20C3.44772 20 3 19.5523 3 19Z",fill:"currentColor",fillRule:"evenodd",key:"2"}]],ku=[["path",{d:"M12 3.25C10.067 3.25 8.49999 4.817 8.49999 6.75V8.31016C9.61772 8.27048 10.7654 8.25 12 8.25C13.2346 8.25 14.3823 8.27048 15.5 8.31016V6.75C15.5 4.817 13.933 3.25 12 3.25ZM6.49999 6.75V8.52712C4.93232 9.00686 3.74924 10.3861 3.52451 12.0552C3.37635 13.1556 3.24999 14.3118 3.24999 15.5C3.24999 16.6882 3.37636 17.8444 3.52451 18.9448C3.79608 20.9618 5.46715 22.5555 7.52521 22.6501C8.95364 22.7158 10.4042 22.75 12 22.75C13.5958 22.75 15.0464 22.7158 16.4748 22.6501C18.5328 22.5555 20.2039 20.9618 20.4755 18.9448C20.6236 17.8444 20.75 16.6882 20.75 15.5C20.75 14.3118 20.6236 13.1556 20.4755 12.0552C20.2507 10.3861 19.0677 9.00686 17.5 8.52712V6.75C17.5 3.71243 15.0376 1.25 12 1.25C8.96243 1.25 6.49999 3.71243 6.49999 6.75ZM13 14.5C13 13.9477 12.5523 13.5 12 13.5C11.4477 13.5 11 13.9477 11 14.5V16.5C11 17.0523 11.4477 17.5 12 17.5C12.5523 17.5 13 17.0523 13 16.5V14.5Z",fill:"currentColor",fillRule:"evenodd",key:"0"}]],Cu=[["path",{d:"M12.5 3.25C10.1528 3.25 8.25 5.15279 8.25 7.5C8.25 9.84721 10.1528 11.75 12.5 11.75C14.8472 11.75 16.75 9.84721 16.75 7.5C16.75 5.15279 14.8472 3.25 12.5 3.25ZM12.5 13.25C10.6214 13.25 8.86094 13.6364 7.37859 14.3122C5.90039 14.986 5.25 16.5343 5.25 17.9704C5.24995 18.4032 5.2499 18.8744 5.2933 19.1972C5.3411 19.5527 5.45354 19.9284 5.76257 20.2374C6.07159 20.5465 6.44732 20.6589 6.8028 20.7067C7.12559 20.7501 7.52239 20.7501 7.95519 20.75H7.95526H17.0448H17.0448C17.4776 20.7501 17.8744 20.7501 18.1972 20.7067C18.5527 20.6589 18.9284 20.5465 19.2374 20.2374C19.5465 19.9284 19.6589 19.5527 19.7067 19.1972C19.7501 18.8744 19.7501 18.4032 19.75 17.9704C19.75 16.5343 19.0996 14.986 17.6214 14.3122C16.1391 13.6364 14.3786 13.25 12.5 13.25Z",fill:"currentColor",fillRule:"evenodd",key:"0"}]],Mu=[["path",{d:"M12 4.25C11.0058 4.25 10.0648 4.41965 9.18654 4.70497C8.93836 4.78559 8.74992 4.98943 8.689 5.24317C8.62807 5.49691 8.70342 5.76408 8.88794 5.9486L18.9086 15.9693C19.2008 16.2614 19.6741 16.2623 19.9673 15.9713C20.9298 15.016 21.7239 13.9948 22.2078 13.3163C22.461 12.9642 22.75 12.5622 22.75 12C22.75 11.4378 22.4077 10.9616 22.1546 10.6095C21.4487 9.61974 20.1869 8.04576 18.4797 6.71298C16.774 5.38141 14.5706 4.25 12 4.25ZM7.27775 6.21709C7.02388 5.96322 6.62572 5.92487 6.32806 6.12561C4.20574 7.55694 2.60227 9.54781 1.79219 10.6837C1.53904 11.0358 1.25 11.4378 1.25 12C1.25 12.5622 1.59226 13.0384 1.84541 13.3905C2.55126 14.3803 3.81313 15.9542 5.52031 17.287C7.22595 18.6186 9.42944 19.75 12 19.75C14.1829 19.75 16.1016 18.9335 17.6719 17.8744C17.8576 17.7491 17.9776 17.5475 17.9991 17.3245C18.0206 17.1015 17.9413 16.8806 17.7829 16.7223L7.27775 6.21709ZM9.52944 9.5C8.8934 10.136 8.5 11.0147 8.5 11.9853C8.5 13.9264 10.0736 15.5 12.0147 15.5C12.9853 15.5 13.864 15.1066 14.5 14.4706L9.52944 9.5Z",fill:"currentColor",fillRule:"evenodd",key:"0"}],["path",{d:"M2.29289 2.29289C2.68342 1.90237 3.31658 1.90237 3.70711 2.29289L21.7071 20.2929C22.0976 20.6834 22.0976 21.3166 21.7071 21.7071C21.3166 22.0976 20.6834 22.0976 20.2929 21.7071L2.29289 3.70711C1.90237 3.31658 1.90237 2.68342 2.29289 2.29289Z",fill:"currentColor",fillRule:"evenodd",key:"1"}]];var $u=tl('<div class="absolute"><!></div>'),Wu=tl("<span><!></span>"),Su=tl("<button><!></button>"),Au=tl("<div><p> </p></div>"),Ou=nl('<svg><path d="M16 0H6C3.17157 0 1.75736 0 0.87868 0.87868C0 1.75736 0 3.17157 0 6V13C0 14.6569 1.34315 16 3 16C3.55228 16 4 15.5523 4 15V8H10.5C10.9659 8 11.1989 8 11.3827 7.92388C11.6277 7.82239 11.8224 7.62771 11.9239 7.38268C12 7.19891 12 6.96594 12 6.5C12 6.03406 12 5.80109 11.9239 5.61732C11.8224 5.37229 11.6277 5.17761 11.3827 5.07612C11.1989 5 10.9659 5 10.5 5H4C4 4.05719 4 3.58579 4.29289 3.29289C4.58579 3 5.05719 3 6 3H17C17.5523 3 18 2.55228 18 2C18 0.895431 17.1046 0 16 0Z" fill="currentColor"></path><path d="M14 7.73784V6.83333C14 6.05147 14 5.66055 14.2066 5.39124C14.2598 5.32191 14.3219 5.25985 14.3912 5.20665C14.6605 5 15.0515 5 15.8333 5H16C16.9428 5 17.4142 5 17.7071 5.29289C18 5.58579 18 6.05719 18 7V8C18 9.88562 18 10.8284 18.5858 11.4142C19.1716 12 20.1144 12 22 12H23C24.8856 12 25.8284 12 26.4142 11.4142C27 10.8284 27 9.88562 27 8V7C27 6.05719 27 5.58579 27.2929 5.29289C27.5858 5 28.0572 5 29 5C29.9428 5 30.4142 5 30.7071 5.29289C31 5.58579 31 6.05719 31 7V14C31 14.9428 31 15.4142 30.7071 15.7071C30.4142 16 29.9428 16 29 16C28.0572 16 27.5858 16 27.2929 15.7071C27 15.4142 27 14.9428 27 14L26.9359 14.0641C26.1835 14.8165 25.8072 15.1928 25.3625 15.4529C25.0478 15.6369 24.7094 15.7771 24.3568 15.8694C23.8584 16 23.3263 16 22.2622 16C19.2142 16 17.6902 16 16.5486 15.3578C15.7505 14.9089 15.0911 14.2495 14.6422 13.4514C14 12.3098 14 10.7858 14 7.73784Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M35 0C35.9428 0 36.4141 7.55489e-05 36.707 0.292969C36.9999 0.585862 37 1.05719 37 2V6C37.5266 5.47345 37.7901 5.2104 38.0781 4.99512C38.7467 4.49551 39.5295 4.17121 40.3555 4.05176C40.7113 4.0003 41.0837 4 41.8281 4H44C44.929 4 45.3936 3.99997 45.7822 4.06152C47.9217 4.4004 49.5996 6.07835 49.9385 8.21777C50 8.60644 50 9.07099 50 10C50 10.929 50 11.3936 49.9385 11.7822C49.5996 13.9217 47.9217 15.5996 45.7822 15.9385C45.3936 16 44.929 16 44 16H41.8281C41.0837 16 40.7113 15.9997 40.3555 15.9482C39.5295 15.8288 38.7467 15.5045 38.0781 15.0049C37.7901 14.7896 37.5265 14.5265 37 14C37 14.9428 36.9999 15.4141 36.707 15.707C36.4141 15.9999 35.9428 16 35 16C34.0572 16 33.5859 15.9999 33.293 15.707C33.0001 15.4141 33 14.9428 33 14V2C33 1.05719 33.0001 0.585862 33.293 0.292969C33.5859 7.55191e-05 34.0572 0 35 0ZM40 8C38.8954 8 38 8.89543 38 10C38 11.1046 38.8954 12 40 12H44C45.1046 12 46 11.1046 46 10C46 8.89543 45.1046 8 44 8H40Z" fill="currentColor"></path><path d="M52 7C52 6.05719 52 5.58579 52.2929 5.29289C52.5858 5 53.0572 5 54 5V5C54.9428 5 55.4142 5 55.7071 5.29289C56 5.58579 56 6.05719 56 7V14C56 14.9428 56 15.4142 55.7071 15.7071C55.4142 16 54.9428 16 54 16V16C53.0572 16 52.5858 16 52.2929 15.7071C52 15.4142 52 14.9428 52 14V7Z" fill="currentColor"></path><path d="M52 1.5C52 1.03406 52 0.801088 52.0761 0.617317C52.1776 0.372288 52.3723 0.177614 52.6173 0.0761205C52.8011 0 53.0341 0 53.5 0H54.5C54.9659 0 55.1989 0 55.3827 0.0761205C55.6277 0.177614 55.8224 0.372288 55.9239 0.617317C56 0.801088 56 1.03406 56 1.5V1.5C56 1.96594 56 2.19891 55.9239 2.38268C55.8224 2.62771 55.6277 2.82239 55.3827 2.92388C55.1989 3 54.9659 3 54.5 3H53.5C53.0341 3 52.8011 3 52.6173 2.92388C52.3723 2.82239 52.1776 2.62771 52.0761 2.38268C52 2.19891 52 1.96594 52 1.5V1.5Z" fill="currentColor"></path></svg>'),Eu=tl("<!> <!>",1),Pu=tl('<form class="flex flex-col gap-8 px-8 w-full"><div class="flex-center flex-col pt-16"><!> <p class="text-[18px]/none">Sign In to fubi</p></div> <!> <!> <!></form>'),Tu=nl('<svg><path d="M8 2L2 8.0001L8 14" stroke="currentColor" stroke-width="2.5" stroke-miterlimit="16" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function zu(t,e){const n=cc(e,["$$slots","$$events","$$legacy"]);var r=Tu();jl(r,()=>({width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n})),ol(t,r)}var Lu=nl('<svg><path d="M2.00005 2L8 8L2 14" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Nu(t,e){const n=cc(e,["$$slots","$$events","$$legacy"]);var r=Lu();jl(r,()=>({width:"10",height:"16",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n})),ol(t,r)}var _u=nl('<svg><path d="M12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0ZM18.3838 8.11621C17.8956 7.62806 17.1044 7.62806 16.6162 8.11621L10.5 14.2324L7.88379 11.6162C7.39563 11.1281 6.60437 11.1281 6.11621 11.6162C5.62806 12.1044 5.62806 12.8956 6.11621 13.3838L9.04785 16.3154C9.84982 17.1174 11.1502 17.1174 11.9521 16.3154L18.3838 9.88379C18.8719 9.39563 18.8719 8.60437 18.3838 8.11621Z" fill="currentColor"></path></svg>');function Fu(t,e){const n=cc(e,["$$slots","$$events","$$legacy"]);var r=_u();jl(r,()=>({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n})),ol(t,r)}var Ru=nl('<svg><circle cx="2" cy="2" r="2" fill="currentColor"></circle><circle cx="8" cy="2" r="2" fill="currentColor"></circle><circle cx="14" cy="2" r="2" fill="currentColor"></circle></svg>');function Du(t,e){const n=cc(e,["$$slots","$$events","$$legacy"]);var r=Ru();jl(r,()=>({width:"16",height:"4",viewBox:"0 0 16 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n})),ol(t,r)}var Iu=nl('<svg><path d="M12 2L2 12" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="bevel"></path><path d="M12 12L2 2" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="bevel"></path></svg>');function ju(t,e){const n=cc(e,["$$slots","$$events","$$legacy"]);var r=Iu();jl(r,()=>({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n})),ol(t,r)}var Bu=nl('<svg><path d="M9 2V16" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="bevel"></path><path d="M16 9L2 9" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="bevel"></path></svg>');function Hu(t,e){const n=cc(e,["$$slots","$$events","$$legacy"]);var r=Bu();jl(r,()=>({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n})),ol(t,r)}var Vu=nl('<svg><path d="M13 6L7 1L1 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M13 12L7 7L1 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Ku(t,e){const n=cc(e,["$$slots","$$events","$$legacy"]);var r=Vu();jl(r,()=>({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n})),ol(t,r)}var Zu=nl('<svg><path d="M2 7L5.33709 10.3371C5.7032 10.7032 6.2968 10.7032 6.66291 10.3371L14 3" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Uu(t,e){const n=cc(e,["$$slots","$$events","$$legacy"]);var r=Zu();jl(r,()=>({width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n})),ol(t,r)}var qu=nl('<svg><path d="M2 5.5L4.91995 8.41995C5.2403 8.7403 5.7597 8.7403 6.08005 8.41995L12.5 2" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Yu(t,e){const n=cc(e,["$$slots","$$events","$$legacy"]);var r=qu();jl(r,()=>({width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n})),ol(t,r)}var Xu=nl('<svg><path fill-rule="evenodd" clip-rule="evenodd" d="M7.17141 1.03597C7.96854 -0.345378 10.0314 -0.345267 10.8286 1.03597L17.7339 13.0067C18.5086 14.3497 17.5 15.9998 15.9048 15.9998H2.09523C0.500172 15.9998 -0.508327 14.3496 0.266132 13.0067L7.17141 1.03597ZM9.00051 11.9998C8.44828 11.9998 8.00061 12.4476 8.00051 12.9998C8.00051 13.5521 8.44822 13.9998 9.00051 13.9998C9.55265 13.9997 10.0005 13.552 10.0005 12.9998C10.0004 12.4477 9.55259 12 9.00051 11.9998ZM9.00051 3.99983C8.44828 3.99983 8.00061 4.44764 8.00051 4.99984V9.99984C8.00051 10.5521 8.44822 10.9998 9.00051 10.9998C9.55265 10.9997 10.0005 10.552 10.0005 9.99984V4.99984C10.0004 4.44773 9.55259 4 9.00051 3.99983Z" fill="currentColor"></path></svg>');function Gu(t,e){const n=cc(e,["$$slots","$$events","$$legacy"]);var r=Xu();jl(r,()=>({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n})),ol(t,r)}var Ju=tl("<p> </p>");function Qu(t,e){So(e,!0);const n=new Map([["chevron-left",{icon:zu,h:"h-16"}],["chevron-right",{icon:Nu,h:"h-16"}],["check-circle",{icon:Fu,h:"h-24"}],["dots",{icon:Du,h:"h-4"}],["cancel",{icon:ju,h:"h-14"}],["plus",{icon:Hu,h:"h-18"}],["chevrons-up",{icon:Ku,h:"h-14"}],["check",{icon:Uu,h:"h-12"}],["check-small",{icon:Yu,h:"h-10"}],["alert",{icon:Gu,h:"h-16"}]]),r=hc(e,"name",3,"plus"),i=hc(e,"class",3,""),o=cc(e,["$$slots","$$events","$$legacy","name","class"]),s=n.get(r()),a=null==s?void 0:s.icon;var l=il(),c=Ps(l),u=t=>{a(t,dc({get class(){return i()}},()=>o))},d=t=>{var e=Ju(),n=Es(e);Ks(()=>ll(n,`Icon "${r()??""}" not found.`)),ol(t,e)};pl(c,t=>{n.has(r())?t(u):t(d,!1)}),ol(t,l),Ao()}var td=tl("<p> </p>"),ed=tl('<button><div class=" w-54 mouse:w-44 flex-center shrink-0"><!></div> <div><div class="flex flex-col gap-4 mouse:gap-2 flex-1 items-start text-left"><p class="text-base/none mouse:text-sm/none font-medium line-clamp-1"> </p> <!></div> <div class="flex gap-8 items-center"><!> <!></div></div></button>');function nd(t,e){So(e,!0);const{router:n}=Qd();let r=hc(e,"start",3,null),i=hc(e,"icon",3,mu),o=hc(e,"title",3,"Title"),s=hc(e,"subtitle",3,null),a=hc(e,"active",3,null),l=hc(e,"after",3,null);hc(e,"chevron",3,!0);let c=hc(e,"disabled",3,null),u=hc(e,"link",3,null),d=hc(e,"onclick",3,null),h=hc(e,"index",3,0),p=hc(e,"class",3,""),f=hc(e,"classIcon",3,"text-sky-500"),g=cc(e,["$$slots","$$events","$$legacy","start","icon","title","subtitle","active","after","chevron","disabled","link","onclick","index","class","classIcon"]);var v=ed(),m=()=>u()?n.goto(u()):d()();jl(v,()=>({"data-active":!!a()||null,class:["listitem group/listitem w-full min-h-52 mouse:min-h-44 flex items-stretch pr-10 touch:pr-16 ","focus-visible","disabled:bg-slate-500/7 disabled:cursor-not-allowed disabled:text-neutral-500/50","transition-[scale,background-color,border-radius] duration-150 ease-out","select-none",a()?"rounded-[8px] bg-sky-900 hover:bg-sky-800 touch:active:bg-sky-800 scale-[1.03] lift active:scale-[1.01] active:rounded-[2px]":"bg-slate-500/15 hover:bg-white/10 active:bg-sky-950 touch:active:bg-white/10",p()],disabled:c(),onclick:m,...g}));var w=Es(v),b=Es(w),y=t=>{var e=il();xl(Ps(e),r),ol(t,e)},x=t=>{{let e=as(()=>`${f()} size-28 mouse:size-24 group-disabled/listitem:text-neutral-500/50`);su(t,{get icon(){return i()},get className(){return Pa(e)}})}};pl(b,t=>{r()?t(y):t(x,!1)});var k=Ts(w,2),C=Es(k),M=Es(C),$=Es(M),W=Ts(M,2),S=t=>{var e=td(),n=Es(e);Ks(()=>{El(e,1,Wl(["text-[13px]/none mouse:text-xs/none group-disabled/listitem:text-neutral-500/50 mb-1 line-clamp-1",a()?"text-sky-500":"text-neutral-500"])),ll(n,s())}),ol(t,e)};pl(W,t=>{s()&&t(S)});var A=Es(Ts(C,2)),O=t=>{var e=il();xl(Ps(e),l),ol(t,e)};pl(A,t=>{l()&&t(O)});var E=Ts(A,2);{let t=as(()=>["h-12 group-focus/listitem:text-neutral-300/80 group-hover/listitem:text-white/80 group-active/listitem:text-neutral-100","group-disabled/listitem:text-neutral-500/20",a()?"text-sky-500":"text-neutral-500/60",d()||u()?"":"hidden"]);Qu(E,{name:"chevron-right",get class(){return Pa(t)}})}Ks(()=>{El(k,1,Wl(["listitem-content flex relative items-center flex-1 border-b-[0.5px]","transition-[border-color] duration-0 ease-out",a()?"border-transparent":"border-neutral-700"])),ll($,o())}),Jl(1,v,()=>uu,()=>({duration:600,easing:Uc,delay:40*h()})),Jl(2,v,()=>uu,()=>({duration:n.navigating?0:400,easing:Zc})),ol(t,v),Ao()}var rd=tl('<div class="bg-slate-500/10 w-full min-h-52 mouse:min-h-44 first:rounded-t-[18px] last:rounded-b-[18px] animate-list-loading"></div> <div class="bg-slate-500/10 w-full min-h-52 mouse:min-h-44 first:rounded-t-[18px] last:rounded-b-[18px] animate-list-loading flex-center gap-8 text-slate-500 text-sm"><!> <!></div> <div class="bg-slate-500/10 w-full min-h-52 mouse:min-h-44 first:rounded-t-[18px] last:rounded-b-[18px] animate-list-loading"></div>',1);function id(t,e){const n=hc(e,"children",3,null),r=hc(e,"spinner",3,!1);var i=rd(),o=Es(Ts(Ps(i),2)),s=t=>{su(t,{get icon(){return yu},className:"size-20 text-slate-500 animate-spin"})};pl(o,t=>{r()&&t(s)});var a=Ts(o,2),l=t=>{var e=il();xl(Ps(e),n),ol(t,e)};pl(a,t=>{n()&&t(l)}),ol(t,i)}var od=tl("<div><!> <p><!></p></div>");function sd(t,e){let n=hc(e,"theme",3,"sky"),r=hc(e,"icon",3,null),i=hc(e,"children",3,null);const o={sky:"text-sky-500",red:"text-red-500",green:"text-green-500",yellow:"text-yellow-500",purple:"text-purple-500",pink:"text-pink-500",indigo:"text-indigo-500",gray:"text-slate-500"};var s=od(),a=Es(s),l=t=>{su(t,{get icon(){return r()},className:"size-16 mr-2 flex-shrink-0"})};pl(a,t=>{r()&&t(l)}),xl(Es(Ts(a,2)),i),Ks(()=>El(s,1,Wl(["h-24 min-w-24 flex-center rounded-[8px] bg-current/10 text-sm mouse:text-[13px]/none font-medium gap-0","group-disabled/listitem:text-slate-500/30 group-disabled/listitem:bg-transparent",r()?"pl-4 pr-8":"px-6",o[n()]]))),ol(t,s)}var ad=tl("<p>Error loading</p>"),ld=tl('<p class="p-4 text-center text-sm text-gray-500">No folders</p>'),cd=tl("<div><div><!></div></div>");function ud(t,e){So(e,!0);let n=new Vc(0,{stiffness:.08,damping:.5}),r=fs(0),i=fs(0);Is(()=>{const t="width"===c()?Pa(i):Pa(r);n.set(t)});const o=hc(e,"children",3,null),s=hc(e,"clip",3,!1),a=hc(e,"class",3,""),l=hc(e,"classOutter",3,""),c=hc(e,"animate",3,"height"),u=cc(e,["$$slots","$$events","$$legacy","children","clip","class","classOutter","animate"]);var d=cd();jl(d,()=>({style:`${c()}: ${n.current}px;`,class:[s()&&"overflow-clip",l()],...u}));var h=Es(d),p=Es(h),f=t=>{var e=il();xl(Ps(e),o),ol(t,e)};pl(p,t=>{o()&&t(f)}),Ks(()=>El(h,1,Wl(["width"===c()&&"w-fit",a()]))),ic(h,"clientHeight",t=>vs(r,t)),ic(h,"clientWidth",t=>vs(i,t)),ol(t,d),Ao()}var dd=tl('<p class="flex touch:text-xl/none font-semibold whitespace-nowrap shrink-0 absolute-center"> </p>'),hd=tl('<p class="flex touch:text-xl/none font-semibold whitespace-nowrap shrink-0 opacity-0"> </p> <!>',1),pd=tl('<div><div class="flex-center h-32 touch:h-40 px-16 glass rounded-full items-center bg-slate-500/10 backdrop-blur overflow-clip"><!></div></div>'),fd=nl('<circle fill="none" stroke="currentColor" stroke-linecap="round"></circle>'),gd=nl('<svg xmlns="http://www.w3.org/2000/svg" class="-rotate-90 text-sky-500"><circle fill="none" stroke="white" stroke-opacity="0.1" stroke-linecap="round"></circle><!></svg>');function vd(t,e){let n=hc(e,"progress",3,0),r=hc(e,"radius",3,10),i=hc(e,"stroke",3,4),o=as(()=>2*Math.PI*r()),s=as(()=>n()/100*Pa(o)),a=as(()=>r()+i()),l=as(()=>2*(r()+i()));var c=gd(),u=Es(c),d=Ts(u),h=t=>{var e=fd();Ks(()=>{Il(e,"cx",Pa(a)),Il(e,"cy",Pa(a)),Il(e,"r",r()),Il(e,"stroke-width",i()),Il(e,"stroke-dasharray",`${Pa(s)} ${Pa(o)}`)}),ol(t,e)};pl(d,t=>{n()>0&&t(h)}),Ks(()=>{Il(c,"width",Pa(l)),Il(c,"height",Pa(l)),Il(c,"viewBox",`0 0 ${Pa(l)} ${Pa(l)}`),Il(u,"cx",Pa(a)),Il(u,"cy",Pa(a)),Il(u,"r",r()),Il(u,"stroke-width",i())}),ol(t,c)}var md=tl("<a><!></a>"),wd=tl("<p>Error loading</p>"),bd=tl("<!> <!>",1);const yd="undefined"!=typeof window&&window.matchMedia("(pointer: coarse)").matches;function xd(){try{if(navigator.vibrate)return void navigator.vibrate(50);if(!yd)return;const t=document.createElement("label");t.ariaHidden="true",t.style.display="none";const e=document.createElement("input");e.type="checkbox",e.setAttribute("switch",""),t.appendChild(e),document.head.appendChild(t),t.click(),document.head.removeChild(t)}catch{}}xd.confirm=()=>{navigator.vibrate?navigator.vibrate([50,70,50]):(xd(),setTimeout(()=>xd(),120))},xd.error=()=>{navigator.vibrate?navigator.vibrate([50,70,50,70,50]):(xd(),setTimeout(()=>xd(),120),setTimeout(()=>xd(),240))};const kd=xd;var Cd=()=>kd(),Md=tl('<label class="flex-center size-22 touch:size-28 rounded-[6px] touch:rounded-[8px] relative cursor-pointer"><input type="checkbox"/> <span class="sr-only">Add High Priority</span> <!></label>');Ya(["change"]);var $d=tl("<div><!></div>"),Wd=tl('<img class="size-28 touch:size-34 rounded-full bg-white/10 glass"/>'),Sd=tl('<div class="size-29 bg-sky-500/10 rounded-full"></div>'),Ad=tl('<div class="flex gap-6 items-bottom"><!> <div class="flex flex-col justify-center gap-2 bg-white/0 touch:-translate-y-4"><p class="mouse:text-sm/none font-medium"> </p> <p class="text-xs/none text-slate-500/40">2 min</p></div></div>');var Od=tl('<label><span class="sr-only">Toggle Comment menu</span> <!></label>'),Ed=tl('<p class="pb-1"> </p>'),Pd=tl("<button><!> <!> <!></button>"),Td=tl('<div><div class="flex justify-between items-center"><!> <div class="flex gap-4 items-center"><!> <!> <!></div></div> <p> </p> <div class="flex justify-between items-center pt-4"><!></div></div>');function zd(t,e){So(e,!0);const{router:n}=Qd();var r=Td(),i=Es(r),o=Es(i);{let t=as(()=>{var t;return null==(t=e.expand)?void 0:t.createdBy});!function(t,e){So(e,!0);let n=hc(e,"author",3,null),{firstName:r,lastName:i}=n(),o=function(t,e){if(!t)return null;if(!t[e])return null;const{id:n,collectionName:r}=t;return`${th}/api/files/${r}/${n}/${t[e]}`}(n(),"avatar");var s=Ad(),a=Es(s),l=t=>{var e=Wd();Ks(()=>{Il(e,"src",o),Il(e,"alt",r+" "+i)}),ol(t,e)},c=t=>{ol(t,Sd())};pl(a,t=>{o?t(l):t(c,!1)});var u=Es(Ts(a,2)),d=Es(u);Ks(()=>ll(d,`${r??""} ${i??""}`)),ol(t,s),Ao()}(o,{get author(){return Pa(t)}})}var s=Es(Ts(o,2));!function(t,e){let n=hc(e,"element",3,null);var r=$d(),i=Es(r),o=t=>{Qu(t,{name:"alert",class:"size-16 touch:size-20 text-amber-600"})};pl(i,t=>{null===n()&&t(o)}),Ks(()=>El(r,1,Wl(["flex-center size-22 touch:size-28 rounded-[6px] touch:rounded-[8px]",n()?"":"bg-amber-600/10"]))),ol(t,r)}(s,{get element(){return e.element}});var a=Ts(s,2);(function(t,e){So(e,!0);let n=hc(e,"checked",15,!1);var r=Md(),i=Es(r);El(i,1,Wl(["peer absolute inset-0 w-full h-full rounded-[6px] touch:rounded-[8px] appearance-none cursor-pointer","transition-[scale,background-color,color] duration-100 will-change-[scale]","active:scale-95","hover:bg-slate-500/20 active:bg-red-400/10","checked:bg-red-400/10 checked:hover:bg-red-400/20 checked:active:bg-red-400/10","focus-visible:ring-2 focus-visible:ring-sky-500/50 focus-visible:ring-offset-2 focus-visible:ring-offset-neutral-900"])),i.__change=[Cd],Qu(Ts(i,4),{name:"chevrons-up",class:["size-16 mouse:size-14 pointer-events-none relative z-10 text-slate-400/50","peer-hover:text-slate-300 peer-active:text-red-400","peer-checked:text-red-400 peer-checked:peer-hover:text-red-400 peer-checked:peer-active:text-red-400"]}),function(t,e,n=e){_s(t,"change",e=>{var r=e?t.defaultChecked:t.checked;n(r)}),null==za(e)&&n(t.checked),Vs(()=>{var n=e();t.checked=Boolean(n)})}(i,n),ol(t,r),Ao()})(a,{}),function(t,e){So(e,!0),hc(e,"checked",11,!1);var n=Od();El(n,1,Wl(["flex-center size-22 touch:size-28 rounded-[6px] touch:rounded-[8px] relative touch:bg-slate-500/0","active:scale-95 transition-[scale] duration-100 will-change-[scale]","hover:bg-slate-500/20 active:bg-slate-500/10 text-slate-400/50 hover:text-slate-300 active:text-slate-300"])),Qu(Ts(Es(n),2),{name:"dots",class:"size-16 mouse:size-14"}),ol(t,n),Ao()}(Ts(a,2),{});var l=Ts(i,2),c=Es(l);!function(t,e){const n=hc(e,"replies",3,0),r=cc(e,["$$slots","$$events","$$legacy","replies"]);var i=Pd();jl(i,()=>({class:["h-32 mouse:h-28 font-medium rounded-[10px] pr-6 pl-6 text-[14px]/none flex items-center gap-5 select-none","touch:rounded-[12px] touch:pr-8 touch:pl-8 touch:text-[15px]/none"," active:scale-95","transition-[background-color,transform] duration-200 ease-out-cubic",n()>0?"text-sky-500 bg-sky-500/10 hover:bg-sky-500/20 active:bg-sky-500/10 touch:active:bg-sky-500/20":"text-slate-500/80 bg-slate-500/10 hover:bg-slate-500/20 active:bg-slate-500/10 touch:active:bg-slate-500/20"],...r}));var o=Es(i);su(o,{get icon(){return gu},className:"size-20 touch:size-22 mt-1"});var s=Ts(o,2);fl(s,n,t=>{var e=Ed(),r=Es(e);Ks(()=>ll(r,0===n()?"Reply":n()>1?`${n()} Replies`:"1 Reply")),Jl(1,e,()=>du,()=>({y:-10,duration:200,easing:Uc})),Jl(2,e,()=>du,()=>({y:10,duration:200,easing:Uc})),ol(t,e)}),Qu(Ts(s,2),{name:"chevron-right",class:"h-12"}),ol(t,i)}(Es(Ts(l,2)),{onclick:()=>{n.goto("thread")},get replies(){return e.replies}}),Ks(()=>{El(r,1,Wl(["p-10 rounded-[20px] touch:rounded-[26px] touch:p-12 flex flex-col gap-8",e.unread?"bg-slate-500/10":"bg-slate-500/5"])),El(l,1,Wl(["flex px-4 text-[13px] touch:text-[15px]",e.unread?"text-slate-100":"text-slate-300"])),ll(c,e.text)}),ol(t,r),Ao()}var Ld=tl("<p>Error loading</p>"),Nd=tl('<p class="p-4 text-center text-sm text-gray-500">No comments</p>'),_d=tl('<div class="flex flex-col gap-8"></div>'),Fd=tl("<p>Thread</p>"),Rd=tl("<button><!></button>"),Dd=tl('<div class="h-full flex-center flex-col gap-16"><div class="flex-center flex-col gap-8 text-center bg-red-500/20 glass w-full p-16 rounded-[16px]"><!> <p class="text-sm text-red-200">An unexpected error has occurred. Please try again later.</p> <div class="flex-center w-full mt-4"><!></div></div></div>');const Id={login:{component:function(t,e){So(e,!0);const{auth:n,router:r}=Qd();let i=fs(""),o=fs("");Qc(t,{name:"login",navbar:!1,tabbar:!1,children:(t,e)=>{var s=Pu(),a=Es(s);su(Es(a),{get icon(){return ku},className:"size-32 text-sky-500"});var l=Ts(a,2);eu(l,{children:(t,e)=>{var n=Eu(),r=Ps(n);ru(r,{name:"email",type:"email",label:"E-mail",autocomplete:"email",required:!0,get value(){return Pa(i)},set value(t){vs(i,t,!0)}}),ru(Ts(r,2),{name:"password",type:"password",label:"Password",autocomplete:"password",required:!0,get value(){return Pa(o)},set value(t){vs(o,t,!0)}}),ol(t,n)},$$slots:{default:!0}});var c=Ts(l,2);!function(t,e){So(e,!0);const n={info:"bg-blue-600 text-white",success:"bg-green-600 text-white",error:"bg-red-500/20 text-red-200"};var r=il(),i=Ps(r),o=t=>{var r=Au(),i=Es(r),o=Es(i);Ks(()=>{El(r,1,Wl(["text-sm/[130%] py-6 px-16 rounded-[8px]",n[e.msg.type]])),ll(o,e.msg.text)}),Jl(3,r,()=>hu),ol(t,r)};pl(i,t=>{e.msg.visible&&t(o)}),ol(t,r),Ao()}(c,{get msg(){return n.msg}});var u=Ts(c,2);{let t=as(()=>n.loading||r.navigating);!function(t,e){const n=hc(e,"loading",3,!1),r=hc(e,"class",3,""),i=cc(e,["$$slots","$$events","$$legacy","loading","class","children"]);var o=Su();jl(o,()=>({class:["min-h-52 rounded-[24px] bg-sky-500/10 mouse:min-h-48 w-full select-none px-16 group/button hover:bg-sky-500/20 active:bg-sky-500/30 text-sky-500 font-semibold flex-center","disabled:pointer-events-none disabled:bg-slate-500/5 disabled:text-white/20","focus-visible","transition-[background-color,color] ease-out-cubic duration-200",r()],...i,"data-loading":n()}));var s=Es(o),a=t=>{var e=$u();su(Es(e),{get icon(){return yu},className:"size-24 text-white/50 animate-spin"}),Jl(1,e,()=>uu,()=>({duration:200})),Jl(2,e,()=>uu,()=>({duration:200})),ol(t,e)},l=t=>{var n=Wu();xl(Es(n),()=>e.children),Jl(1,n,()=>uu,()=>({duration:200})),Jl(2,n,()=>uu,()=>({duration:200})),ol(t,n)};pl(s,t=>{n()?t(a):t(l,!1)}),ol(t,o)}(u,{get loading(){return n.loading},get disabled(){return Pa(t)},children:(t,e)=>{ol(t,rl("Login"))},$$slots:{default:!0}})}qa("submit",s,t=>(t=>{t.preventDefault(),n.login(Pa(i),Pa(o))})(t)),ol(t,s)},$$slots:{default:!0}}),Ao()}},folders:{component:function(t,e){So(e,!0);const{router:n,folders:r}=Qd();Qc(t,{name:"folders",title:"Folders",children:(t,e)=>{eu(t,{children:(t,e)=>{var i=il();vl(Ps(i),17,()=>(null==r?void 0:r.data)??[],gl,(t,e,i)=>{{const o=t=>{var n=il(),r=Ps(n),i=t=>{sd(t,{theme:"sky",get icon(){return Cu},children:(t,n)=>{var r=rl();Ks(()=>ll(r,Pa(e).users.length)),ol(t,r)},$$slots:{default:!0}})};pl(r,t=>{Pa(e).locked||t(i)}),ol(t,n)};let s=as(()=>Pa(e).locked&&"You don't have access"),a=as(()=>Pa(e).locked?wu:mu),l=as(()=>Pa(e).locked??null),c=as(()=>{var t;return(null==(t=r.current)?void 0:t.id)===Pa(e).id});nd(t,{get title(){return Pa(e).name},get subtitle(){return Pa(s)},get icon(){return Pa(a)},get disabled(){return Pa(l)},index:i,get active(){return Pa(c)},onclick:()=>Pa(e)?(t=>{r.select(t),n.goto("pages")})(Pa(e)):null,after:o,$$slots:{after:!0}})}},t=>{var e=il(),n=Ps(e),i=t=>{id(t,{spinner:!0})},o=t=>{var e=il(),n=Ps(e),i=t=>{ol(t,ad())},o=t=>{var e=il(),n=Ps(e),i=t=>{ol(t,ld())};pl(n,t=>{(null==r?void 0:r.empty)&&t(i)},!0),ol(t,e)};pl(n,t=>{(null==r?void 0:r.error)?t(i):t(o,!1)},!0),ol(t,e)};pl(n,t=>{(null==r?void 0:r.loading)?t(i):t(o,!1)}),ol(t,e)}),ol(t,i)},$$slots:{default:!0}})},$$slots:{default:!0}}),Ao()}},pages:{component:function(t,e){So(e,!0);const{folders:n,router:r,domains:i,pages:o}=Qd();Qc(t,{name:"pages",get title(){return n.current.name},children:(t,e)=>{eu(t,{children:(t,e)=>{var n=bd(),s=Ps(n),a=t=>{{const e=t=>{vd(t,{progress:0})},n=t=>{sd(t,{theme:"sky",children:(t,e)=>{ol(t,rl("Current"))},$$slots:{default:!0}})};let i=as(()=>{var t;return null==(t=o.current)?void 0:t.name});nd(t,{classIcon:"text-white",get title(){return Pa(i)},subtitle:"No Comments",active:!0,onclick:()=>r.goto("comments"),start:e,after:n,$$slots:{start:!0,after:!0}})}};pl(s,t=>{o.isNew&&t(a)}),vl(Ts(s,2),17,()=>null==o?void 0:o.data,gl,(t,e,n)=>{let o=()=>Pa(e).comments,s=()=>Pa(e).progress,a=()=>Pa(e).pathname;var l=md(),c=Es(l);{const t=t=>{var e=il(),n=Ps(e),r=t=>{Qu(t,{name:"check-circle",class:"size-22 text-sky-500"})},i=t=>{vd(t,{get progress(){return s()}})};pl(n,t=>{100===s()?t(r):t(i,!1)}),ol(t,e)},l=t=>{var e=il(),n=Ps(e),r=t=>{sd(t,{theme:"sky",children:(t,e)=>{ol(t,rl("Current"))},$$slots:{default:!0}})};pl(n,t=>{var e;a()===(null==(e=null==i?void 0:i.url)?void 0:e.pathname)&&t(r)}),ol(t,e)};let u=as(()=>{var t;return o().length>0||a()===(null==(t=null==i?void 0:i.url)?void 0:t.pathname)?"text-white":"text-neutral-400"}),d=as(()=>{var t;return a()===(null==(t=null==i?void 0:i.url)?void 0:t.pathname)?"text-slate-500":""}),h=as(()=>o().length>0?`${Pa(e).doneComments}/${Pa(e).totalComments} Done`:"No Comments"),p=as(()=>{var t;return a()===(null==(t=null==i?void 0:i.url)?void 0:t.pathname)}),f=as(()=>{var t;return a()===(null==(t=null==i?void 0:i.url)?void 0:t.pathname)?()=>r.goto("comments"):null});nd(c,{get class(){return Pa(u)},get classIcon(){return Pa(d)},get title(){return Pa(e).name},get subtitle(){return Pa(h)},get active(){return Pa(p)},index:n,get onclick(){return Pa(f)},start:t,after:l,$$slots:{start:!0,after:!0}})}Ks(()=>{var t;return Il(l,"href",a()===(null==(t=null==i?void 0:i.url)?void 0:t.pathname)?"#":a())}),ol(t,l)},t=>{var e=il(),n=Ps(e),r=t=>{id(t,{spinner:!0})},i=t=>{var e=il(),n=Ps(e),r=t=>{ol(t,wd())};pl(n,t=>{(null==o?void 0:o.error)&&t(r)},!0),ol(t,e)};pl(n,t=>{(null==o?void 0:o.loading)?t(r):t(i,!1)}),ol(t,e)}),ol(t,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),Ao()}},comments:{component:function(t,e){So(e,!0);const{comments:n,pages:r}=Qd();{let e=as(()=>{var t;return null==(t=null==r?void 0:r.current)?void 0:t.name});Qc(t,{name:"comments",get title(){return Pa(e)},children:(t,e)=>{var r=_d();vl(r,21,()=>(null==n?void 0:n.data)??[],gl,(t,e)=>{zd(t,dc(()=>Pa(e)))},t=>{var e=il(),r=Ps(e),i=t=>{id(t,{spinner:!0})},o=t=>{var e=il(),r=Ps(e),i=t=>{ol(t,Ld())},o=t=>{var e=il(),r=Ps(e),i=t=>{ol(t,Nd())};pl(r,t=>{(null==n?void 0:n.empty)&&t(i)},!0),ol(t,e)};pl(r,t=>{(null==n?void 0:n.error)?t(i):t(o,!1)},!0),ol(t,e)};pl(r,t=>{(null==n?void 0:n.loading)?t(i):t(o,!1)}),ol(t,e)}),ol(t,r)},$$slots:{default:!0}})}Ao()}},thread:{component:function(t){Qc(t,{name:"thread",tabbar:!1,navbar:!1,children:(t,e)=>{ol(t,Fd())},$$slots:{default:!0}})}},error:{component:function(t){Qc(t,{name:"error",title:"Error",children:(t,e)=>{var n=Dd(),r=Es(n),i=Es(r);su(i,{get icon(){return pu},className:"size-32 text-red-400"}),function(t,e){let n=cc(e,["$$slots","$$events","$$legacy","children"]);var r=Rd();jl(r,()=>({class:["glass bg-white/5 rounded-[8px] h-32 text-white/80 px-16 text-sm","hover:bg-white/10 active:bg-white/15 active:scale-95","transition-transform duration-100 ease-out"],...n})),xl(Es(r),()=>e.children),ol(t,r)}(Es(Ts(i,4)),{onclick:()=>window.location.reload(),children:(t,e)=>{ol(t,rl("Refresh"))},$$slots:{default:!0}}),ol(t,n)},$$slots:{default:!0}})}}},jd=(...t)=>{},Bd=(...t)=>{},Hd=(...t)=>{};class Vd extends $c{constructor(){super(),Di(this,Fe,fs(ys(Id))),Di(this,Re,fs(!1)),Di(this,De,fs("forward")),Di(this,Ie,fs(null)),Di(this,je,fs(null)),this.storage("current","fubi-router-current","login")}get routes(){return Pa(Ri(this,Fe))}set routes(t){vs(Ri(this,Fe),t,!0)}get navigating(){return Pa(Ri(this,Re))}set navigating(t){vs(Ri(this,Re),t,!0)}get direction(){return Pa(Ri(this,De))}set direction(t){vs(Ri(this,De),t,!0)}get previous(){return Pa(Ri(this,Ie))}set previous(t){vs(Ri(this,Ie),t,!0)}get next(){return Pa(Ri(this,je))}set next(t){vs(Ri(this,je),t,!0)}start(){Is(()=>{this.modules.win.el&&this.mountPages()})}mountPages(){Object.entries(this.routes).forEach(([t,e])=>{jd("Mounting page:",t),this.modules.win.el&&cl(e.component,{target:this.modules.win.el})})}determineRoute(t,e){return t&&e?"login"===this.current?1===this.modules.folders.data.filter(t=>t.unlocked).length?["home","forward"]:["folders","forward"]:"pages"===this.current?["comments"]:[this.current||"home"]:["login","back"]}hasRoute(t){return t in this.routes}goto(t,e="forward"){if(!this.hasRoute(t)||this.current===t)return void Bd("Invalid or same route, cannot navigate to:",t);if(!this.modules.auth.user)return Hd("No users module, cannot navigate."),void this.transition("login","back");const n=this.modules.auth.user?t:"login";this.transition(n,e)}transition(t,e){var n;this.navigating?Hd("Already navigating, ignoring."):(this.navigating=!0,this.direction=e,"forward"===e?this.next=t:this.previous=t,null==(n=this.modules.win.el)||n.classList.add(`router-transition-${e}`),setTimeout(()=>{var n;this.navigating=!1,this.previous=this.current,this.current=t,this.next=null,null==(n=this.modules.win.el)||n.classList.remove(`router-transition-${e}`),this.modules.win.focusPageContent()},400))}}Fe=new WeakMap,Re=new WeakMap,De=new WeakMap,Ie=new WeakMap,je=new WeakMap;class Kd extends $c{}class Zd extends zc{constructor(){super(...arguments),Di(this,Be,fs(!1)),Di(this,He,as(()=>{var t;return(null==(t=this.modules.pages.current)?void 0:t.id)?`page = "${this.modules.pages.current.id}"`:void 0}))}get canComment(){return Pa(Ri(this,Be))}set canComment(t){vs(Ri(this,Be),t,!0)}get filters(){return Pa(Ri(this,He))}set filters(t){vs(Ri(this,He),t)}start(){this.initCollection({name:"comments",filters:this.filters,expand:"createdBy",sort:"-updated"}),Is(()=>{this.filters?this.fetch():this.data=[]})}}Be=new WeakMap,He=new WeakMap;const Ud=(...t)=>{},qd=(...t)=>{},Yd=(...t)=>{},Xd=(...t)=>{};class Gd extends zc{constructor(){super(...arguments),Di(this,Ve,fs(null)),Di(this,Ke,as(()=>{var t;const e=null==(t=this.url)?void 0:t.origin;return e&&this.data.find(t=>t.origin===e)||null}))}get url(){return Pa(Ri(this,Ve))}set url(t){vs(Ri(this,Ve),t,!0)}get current(){return Pa(Ri(this,Ke))}set current(t){vs(Ri(this,Ke),t)}start(){this.initCollection({name:"domains",filters:`project = "${this.modules.project.id}"`,sort:"-updated",query:{project:this.modules.project.id},onFinish:()=>this.check()}),this.getUrl(),this.fetch()}async check(){if(this.current)Ud(`Domain already registered: ${this.current.origin}`);else try{const t=await this.collection.create({project:this.modules.project.id,origin:origin});this.current=t,this.track("ok","Domain registered",{domain:t})}catch(t){this.track("error","Failed to register domain",{error:t.message,origin:origin})}}async verify(){this.current?this.modules.auth.user&&(this.current.verified?Ud("Domain already verified:",this.current.origin):(await this.collection.update(this.current.id,{verified:!0}),this.current.verified=!0,Xd("Domain verified:",this.current.origin))):qd("No current domain to verify")}getUrl(){this.url=new URL(window.location.href)}async testBadRegistration(){try{await this.collection.create({origin:"https://evil-site.com",project:this.modules.project.id}),Yd("BAD: Registered fake origin - API rule not working!")}catch(t){Ud("GOOD: Fake origin blocked:",t.message)}}}Ve=new WeakMap,Ke=new WeakMap;class Jd extends $c{constructor(){super(...arguments),_i(this,"scroll",new Cc({element:()=>this.scrollContainer})),Di(this,Ze,fs(!1)),Di(this,Ue,fs("Pages")),Di(this,qe,as(()=>this.manualActiveState?this.manualActiveTab:this.scroll.progress.x>50?"Comments":"Pages")),Di(this,Ye,fs())}get manualActiveState(){return Pa(Ri(this,Ze))}set manualActiveState(t){vs(Ri(this,Ze),t,!0)}get manualActiveTab(){return Pa(Ri(this,Ue))}set manualActiveTab(t){vs(Ri(this,Ue),t,!0)}get activeTab(){return Pa(Ri(this,qe))}set activeTab(t){vs(Ri(this,qe),t)}get scrollContainer(){return Pa(Ri(this,Ye))}set scrollContainer(t){vs(Ri(this,Ye),t,!0)}scrollTo(t){var e;this.manualActiveState=!0,this.manualActiveTab=t,this.scroll.x="Pages"===t?0:(null==(e=this.scrollContainer)?void 0:e.scrollWidth)??0}}function Qd(){return $o("app").modules}Ze=new WeakMap,Ue=new WeakMap,qe=new WeakMap,Ye=new WeakMap;const th="https://fubi.wondermakers.dev",eh=(...t)=>{};var nh=tl("<p> <span> </span></p>"),rh=tl('<div class="fixed bottom-8 touch:top-8 touch:bottom-auto max-w-250 left-8 bg-black text-white/50 p-16 font-mono rounded-lg text-xs/none flex flex-col space-y-8 divide-white/10 [&amp;_span]:text-white"></div>');var ih=(t,e,n,r)=>e.goto(n(),r(n())),oh=tl('<button><!> <span class="sr-only"> </span></button>');Ya(["pointerdown"]);var sh=tl('<div><div class="toolbar overflow-clip flex bg-neutral-500/10 glass backdrop-blur rounded-full p-4 relative z-10 pointer-events-auto"><div></div> <!></div></div>');var ah=tl('<button><span class="sr-only">Close Window</span></button> <div><div></div> <!> <!> <!></div>',1);function lh(t,e){So(e,!0);const{win:n}=Qd();let r=hc(e,"children",3,null);var i=ah(),o=Ps(i);o.__click=()=>n.close();var s=Ts(o,2);s.__pointerdown=t=>n.drag.start(t),s.__pointerup=t=>n.drag.end(t),s.__pointermove=t=>n.drag.move(t);var a=Es(s);El(a,1,Wl(["pointer-events-none rounded-full absolute left-1/2 -translate-x-1/2 z-[1001] mouse:hidden","transition-[background-color,box-shadow,scale,width,height,top] duration-100 ease-out will-change-[background-color,box-shadow,scale,width,height,top]","bg-slate-500/30 w-50 h-3 top-7"]));var l=Ts(a,2);!function(t){So({},!0);const{router:e,navbar:n}=Qd();let r=as(()=>"back"===e.direction?-32:32),i=as(()=>"back"===e.direction?32:-32);var o=pd(),s=Es(o);ud(Es(s),{animate:"width",classOutter:"flex-center",children:(t,e)=>{var o=hd(),s=Ps(o),a=Es(s);fl(Ts(s,2),()=>n.title,t=>{var e=dd(),o=Es(e);Ks(()=>ll(o,n.title)),Jl(1,e,()=>du,()=>({y:Pa(r),duration:400,easing:Uc})),Jl(2,e,()=>du,()=>({y:Pa(i),duration:400,easing:Uc})),ol(t,e)}),Ks(()=>ll(a,n.title)),ol(t,o)},$$slots:{default:!0}}),Ks(()=>El(o,1,Wl(["flex-center py-10 touch:pt-16 navbar absolute inset-0 bottom-auto z-10","transition-[translate,opacity]",n.visible?"ease-out-cubic duration-400":"-translate-y-full pointer-events-none opacity-0 ease-in duration-200"]))),ol(t,o),Ao()}(l);var c=Ts(l,2),u=t=>{var e=il();xl(Ps(e),r),ol(t,e)};pl(c,t=>{r()&&t(u)}),function(t,e){So(e,!0);const{tabbar:n,folders:r,router:i}=Qd();let o=as(()=>[{path:"folders",icon:mu,alt:"Folders"},{path:"pages",icon:vu,alt:"Pages"},{path:"comments",icon:gu,alt:"Comments"}]),s=as(()=>"comments"===(i.navigating?"forward"===i.direction?i.next:i.previous:i.current)?"comments":"folders"===(i.navigating?"forward"===i.direction?i.next:i.previous:i.current)?"folders":"pages");var a=sh(),l=Es(a),c=Es(l);vl(Ts(c,2),17,()=>Pa(o),gl,(t,e)=>{let n=()=>Pa(e).path;var i=il(),o=Ps(i),a=t=>{{let r=as(()=>Pa(s)===n());!function(t,e){So(e,!0);const{router:n}=Qd();let r=hc(e,"icon",3,null),i=hc(e,"path",3,""),o=hc(e,"alt",3,""),s=hc(e,"active",3,!1);var a=oh();a.__pointerdown=[ih,n,i,function(t){const e=["folders","pages","comments"];return e.indexOf(t)>e.indexOf(n.current)?"forward":"back"}];var l=Es(a);{let t=as(()=>`pointer-events-none size-20 touch:size-28 scale-90 transition-[scale] duration-200 ease-out-cubic will-change-[scale] ${s()&&"scale-100"}`);su(l,{get icon(){return r()},get className(){return Pa(t)}})}var c=Es(Ts(l,2));Ks(()=>{El(a,1,Wl(["h-32 w-36 touch:h-48 touch:w-56 flex-center flex-col rounded-full select-none",s()?"text-sky-500":"text-slate-500/30 hover:text-slate-500/80 active:text-sky-300/50"])),ll(c,o())}),Jl(3,a,()=>hu,()=>({axis:"x",duration:200,easing:Uc})),ol(t,a),Ao()}(t,{get path(){return n()},get icon(){return Pa(e).icon},get alt(){return Pa(e).alt},get active(){return Pa(r)}})}};pl(o,t=>{("folders"===n()&&r.unlockedCount>1||"folders"!==n())&&t(a)}),ol(t,i)}),Ks(()=>{El(a,1,Wl(["absolute w-full bottom-0 left-0 right-0 py-14 touch:py-16 mouse:justify-center touch:justify-center flex items-start gap-4 z-10","transition-[translate,opacity]",n.visible?"ease-out-cubic duration-400":"translate-y-full pointer-events-none opacity-0 ease-in duration-200"])),El(c,1,Wl(["absolute right-4 top-1/2 -translate-y-1/2 flex h-32 w-36 touch:h-48 touch:w-56 rounded-full bg-slate-500/20 pointer-events-none","transition-[translate,scale] duration-300 will-change-[transform]","pages"===Pa(s)&&"-translate-x-full","folders"===Pa(s)&&"-translate-x-[200%]",i.navigating?"scale-140 glass ease-out":"ease-out"]))}),ol(t,a),Ao()}(Ts(c,2),{}),sc(s,t=>n.el=t,()=>null==n?void 0:n.el),Ks(()=>{El(o,1,Wl(["fixed block inset-0 bg-transparent z-[1000] mouse:hidden",n.opened?"touch:pointer-events-auto":"pointer-events-none"])),El(s,1,Wl(["window fixed left-0 right-0 touch:overflow-clip touch:rounded-b-none z-[1001] text-white -bottom-0.5","touch:rounded-t-(--fubi-rounded) touch:bg-neutral-900","md:max-w-375","mouse:right-(--fubi-window-right) mouse:left-auto mouse:top-auto mouse:origin-bottom-right will-change-[translate,max-height,scale,opacity] mouse:bottom-(--fubi-window-bottom) mouse:w-300","transition-[max-height,opacity,scale] will-change-[max-height,opacity,scale]","mouse:max-h-1/2! mouse:min-h-[350px] h-[99dvh] mouse:h-500",n.dragging.active?"select-none duration-0":n.opened?"duration-300 mouse:duration-200 ease-out":"duration-100 mouse:duration-200 ease",n.opened?"":"mouse:opacity-0 mouse:scale-90 pointer-events-none"])),Tl(s,`max-height: ${n.dragging.active?n.dragging.height:n.opened?n.currentBreakpoint:0}px;`)}),qa("pointercancel",s,t=>n.drag.end(t)),ol(t,i),Ao()}Ya(["click","pointerdown","pointerup","pointermove"]);var ch=tl('<button><span class="sr-only"> </span> <!></button>');function uh(t,e){So(e,!0);const n=hc(e,"icon",3,fu),r=hc(e,"variant",3,"default"),i=hc(e,"label",3,"Icon");hc(e,"iconSize",3,24);const o=cc(e,["$$slots","$$events","$$legacy","active","icon","variant","label","iconSize"]),s=new Map([["default","from-slate-400 to-slate-500 text-slate-200"],["sky","from-sky-400 to-sky-600 text-sky-200"],["green","from-green-400 to-green-600 text-green-200"]]);var a=ch();jl(a,t=>({class:t,...o}),[()=>["size-36 touch:size-40 ease-out transition-[background-color,color] duration-100 rounded-[12px] flex-center relative user-select-none shrink-0","active:scale-90 transition-[scale] duration-100 ease-out","focus-visible",e.active?"text-white bg-gradient-to-b "+s.get(r()):"text-slate-600 hover:text-slate-400 hover:bg-slate-500/10 active:bg-slate-500/20 focus-visible:text-slate-400 focus-visible:bg-slate-500/10"]]);var l=Es(a),c=Es(l);su(Ts(l,2),{get icon(){return n()},className:"size-24 touch:size-26"}),Ks(()=>ll(c,i())),ol(t,a),Ao()}function dh(t){return null!==t&&"object"==typeof t}const hh=["string","number","bigint","boolean"];function ph(t){return null==t||!!hh.includes(typeof t)||(Array.isArray(t)?t.every(t=>ph(t)):"object"==typeof t&&Object.getPrototypeOf(t)===Object.prototype)}const fh=Symbol("box"),gh=Symbol("is-writable");function vh(t,e){const n=as(t);return e?{[fh]:!0,[gh]:!0,get current(){return Pa(n)},set current(t){e(t)}}:{[fh]:!0,get current(){return t()}}}function mh(t){return dh(t)&&fh in t}function wh(t){return mh(t)&&gh in t}function bh(t){return mh(t)?t:function(t){return"function"==typeof t}(t)?vh(t):yh(t)}function yh(t){let e=fs(ys(t));return{[fh]:!0,[gh]:!0,get current(){return Pa(e)},set current(t){vs(e,t,!0)}}}function xh(t){let e=fs(ys(t));return{[fh]:!0,[gh]:!0,get current(){return Pa(e)},set current(t){vs(e,t,!0)}}}function kh(...t){return function(e){var n;for(const r of t)if(r){if(e.defaultPrevented)return;"function"==typeof r?r.call(this,e):null==(n=r.current)||n.call(this,e)}}}function Ch(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}xh.from=bh,xh.with=vh,xh.flatten=function(t){return Object.entries(t).reduce((t,[e,n])=>mh(n)?(wh(n)?Object.defineProperty(t,e,{get:()=>n.current,set(t){n.current=t}}):Object.defineProperty(t,e,{get:()=>n.current}),t):Object.assign(t,{[e]:n}),{})},xh.readonly=function(t){return wh(t)?{[fh]:!0,get current(){return t.current}}:t},xh.isBox=mh,xh.isWritableBox=wh;var Mh=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,$h=/\n/g,Wh=/^\s*/,Sh=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ah=/^:\s*/,Oh=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Eh=/^[;\s]*/,Ph=/^\s+|\s+$/g,Th="";function zh(t){return t?t.replace(Ph,Th):Th}const Lh=Ch(function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function i(t){var e=t.match($h);e&&(n+=e.length);var i=t.lastIndexOf("\n");r=~i?t.length-i:r+t.length}function o(){var t={line:n,column:r};return function(e){return e.position=new s(t),c(),e}}function s(t){this.start=t,this.end={line:n,column:r},this.source=e.source}function a(i){var o=new Error(e.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=e.source,o.line=n,o.column=r,o.source=t,!e.silent)throw o}function l(e){var n=e.exec(t);if(n){var r=n[0];return i(r),t=t.slice(r.length),n}}function c(){l(Wh)}function u(t){var e;for(t=t||[];e=d();)!1!==e&&t.push(e);return t}function d(){var e=o();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;Th!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,Th===t.charAt(n-1))return a("End of comment missing");var s=t.slice(2,n-2);return r+=2,i(s),t=t.slice(n),r+=2,e({type:"comment",comment:s})}}function h(){var t=o(),e=l(Sh);if(e){if(d(),!l(Ah))return a("property missing ':'");var n=l(Oh),r=t({type:"declaration",property:zh(e[0].replace(Mh,Th)),value:n?zh(n[0].replace(Mh,Th)):Th});return l(Eh),r}}return s.prototype.content=t,c(),function(){var t,e=[];for(u(e);t=h();)!1!==t&&(e.push(t),u(e));return e}()}),Nh=/\d/,_h=["-","_","/","."];function Fh(t=""){if(!Nh.test(t))return t!==t.toLowerCase()}function Rh(t){return t?function(t){const e=[];let n,r,i="";for(const o of t){const t=_h.includes(o);if(!0===t){e.push(i),i="",n=void 0;continue}const s=Fh(o);if(!1===r){if(!1===n&&!0===s){e.push(i),i=o,n=s;continue}if(!0===n&&!1===s&&i.length>1){const t=i.at(-1);e.push(i.slice(0,Math.max(0,i.length-1))),i=t+o,n=s;continue}}i+=o,n=s,r=t}return e.push(i),e}(t).map(t=>function(t){return t?t[0].toUpperCase()+t.slice(1):""}(t)).join(""):""}function Dh(t){if(!t)return{};const e={};return function(t,e){let n=null;if(!t||"string"!=typeof t)return n;const r=Lh(t);r.forEach(t=>{if("declaration"!==t.type)return;const{property:n,value:r}=t;e(n,r)})}(t,function(t,n){var r;t.startsWith("-moz-")||t.startsWith("-webkit-")||t.startsWith("-ms-")||t.startsWith("-o-")?e[Rh(t)]=n:t.startsWith("--")?e[t]=n:e[(r=t,function(t){return t?t[0].toLowerCase()+t.slice(1):""}(Rh(r||"")))]=n}),e}function Ih(...t){return(...e)=>{for(const n of t)"function"==typeof n&&n(...e)}}const jh=function(t,e){const n=RegExp(/[A-Z]/,"g");return t=>{if("string"!=typeof t)throw new TypeError("expected an argument of type string, but got "+typeof t);return t.match(n)?t.replace(n,e):t}}(0,t=>`-${t.toLowerCase()}`);function Bh(t={}){return function(t){if(!t||"object"!=typeof t||Array.isArray(t))throw new TypeError("expected an argument of type object, but got "+typeof t);return Object.keys(t).map(e=>`${jh(e)}: ${t[e]};`).join("\n")}(t).replace("\n"," ")}const Hh=new Set(["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"]);function Vh(t){return Hh.has(t)}function Kh(...t){const e={...t[0]};for(let n=1;n<t.length;n++){const r=t[n];if(r){for(const t of Object.keys(r)){const n=e[t],i=r[t],o="function"==typeof n,s="function"==typeof i;if(o&&Vh(t)){const r=n,o=i;e[t]=kh(r,o)}else if(o&&s)e[t]=Ih(n,i);else if("class"===t){const r=ph(n),o=ph(i);r&&o?e[t]=$l(n,i):r?e[t]=$l(n):o&&(e[t]=$l(i))}else if("style"===t){const r="object"==typeof n,o="object"==typeof i,s="string"==typeof n,a="string"==typeof i;if(r&&o)e[t]={...n,...i};else if(r&&a){const r=Dh(i);e[t]={...n,...r}}else if(s&&o){const r=Dh(n);e[t]={...r,...i}}else if(s&&a){const r=Dh(n),o=Dh(i);e[t]={...r,...o}}else r?e[t]=n:o?e[t]=i:s?e[t]=n:a&&(e[t]=i)}else e[t]=void 0!==i?i:n}for(const t of Object.getOwnPropertySymbols(r)){const n=e[t],i=r[t];e[t]=void 0!==i?i:n}}}return"object"==typeof e.style&&(e.style=Bh(e.style).replaceAll("\n"," ")),!1===e.hidden&&(e.hidden=void 0,delete e.hidden),!1===e.disabled&&(e.disabled=void 0,delete e.disabled),e}function Zh(t){Is(()=>()=>{t()})}function Uh(t){Ea().then(t)}function qh(t){return dh(t)&&1===t.nodeType&&"string"==typeof t.nodeName}function Yh(t){return dh(t)&&9===t.nodeType}function Xh(t){return function(t){return dh(t)&&void 0!==t.nodeType}(t)&&11===t.nodeType&&"host"in t}function Gh(t){return Yh(t)?t:function(t){var e;return dh(t)&&"VisualViewport"===(null==(e=t.constructor)?void 0:e.name)}(t)?t.document:(null==t?void 0:t.ownerDocument)??document}function Jh(t){var e;return Xh(t)?Jh(t.host):Yh(t)?t.defaultView??window:qh(t)?(null==(e=t.ownerDocument)?void 0:e.defaultView)??window:window}class Qh{constructor(t){_i(this,"element"),Di(this,Xe,as(()=>this.element.current?this.element.current.getRootNode()??document:document)),_i(this,"getDocument",()=>Gh(this.root)),_i(this,"getWindow",()=>this.getDocument().defaultView??window),_i(this,"getActiveElement",()=>function(t){let e=t.activeElement;for(;null==e?void 0:e.shadowRoot;){const t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}(this.root)),_i(this,"isActiveElement",t=>t===this.getActiveElement()),_i(this,"querySelector",t=>this.root?this.root.querySelector(t):null),_i(this,"querySelectorAll",t=>this.root?this.root.querySelectorAll(t):[]),_i(this,"setTimeout",(t,e)=>this.getWindow().setTimeout(t,e)),_i(this,"clearTimeout",t=>this.getWindow().clearTimeout(t)),this.element="function"==typeof t?vh(t):t}get root(){return Pa(Ri(this,Xe))}set root(t){vs(Ri(this,Xe),t)}getElementById(t){return this.root.getElementById(t)}}function tp(t,e){return{[_a()]:n=>mh(t)?(t.current=n,za(()=>null==e?void 0:e(n)),()=>{"isConnected"in n&&n.isConnected||(t.current=null,null==e||e(null))}):(t(n),za(()=>null==e?void 0:e(n)),()=>{"isConnected"in n&&n.isConnected||(t(null),null==e||e(null))})}}Xe=new WeakMap;const ep="undefined"!=typeof window?window:void 0;class np{constructor(t){Di(this,Ge),Di(this,Je),Ii(this,Ge,t),Ii(this,Je,Symbol(t))}get key(){return Ri(this,Je)}exists(){return t=Ri(this,Je),Oo().has(t);var t}get(){const t=$o(Ri(this,Je));if(void 0===t)throw new Error(`Context "${Ri(this,Ge)}" not found`);return t}getOr(t){const e=$o(Ri(this,Je));return void 0===e?t:e}set(t){return Wo(Ri(this,Je),t)}}function rp(t,e,n,r={}){const{lazy:i=!1}=r;let o=!i,s=Array.isArray(t)?[]:void 0;!function(t,e){switch(t){case"post":Is(e);break;case"pre":n=e,Fs(),Rs(1048584,n,!0)}var n}(e,()=>{const e=Array.isArray(t)?t.map(t=>t()):t();if(!o)return o=!0,void(s=e);const r=za(()=>n(e,s));return s=e,r})}function ip(t,e,n){rp(t,"post",e,n)}function op(t){return function(t){return"function"==typeof t}(t)?t():t}Ge=new WeakMap,Je=new WeakMap,ip.pre=function(t,e,n){rp(t,"pre",e,n)};class sp{constructor(t,e={box:"border-box"}){Di(this,Qe,{width:0,height:0}),Di(this,tn,!1),Di(this,en),Di(this,nn),Di(this,rn),Di(this,on,as(()=>{var t;return null==(t=Pa(Ri(this,an)))||t(),this.getSize().width})),Di(this,sn,as(()=>{var t;return null==(t=Pa(Ri(this,an)))||t(),this.getSize().height})),Di(this,an,as(()=>{const t=op(Ri(this,nn));if(t)return es(e=>{if(!Ri(this,rn))return;const n=new(Ri(this,rn).ResizeObserver)(t=>{Ii(this,tn,!0);for(const e of t){const t="content-box"===Ri(this,en).box?e.contentBoxSize:e.borderBoxSize,n=Array.isArray(t)?t:[t];Ri(this,Qe).width=n.reduce((t,e)=>Math.max(t,e.inlineSize),0),Ri(this,Qe).height=n.reduce((t,e)=>Math.max(t,e.blockSize),0)}e()});return n.observe(t),()=>{Ii(this,tn,!1),n.disconnect()}})})),Ii(this,rn,e.window??ep),Ii(this,en,e),Ii(this,nn,t),Ii(this,Qe,{width:0,height:0})}calculateSize(){const t=op(Ri(this,nn));if(!t||!Ri(this,rn))return;const e=t.offsetWidth,n=t.offsetHeight;if("border-box"===Ri(this,en).box)return{width:e,height:n};const r=Ri(this,rn).getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),o=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom);return{width:e-i-(parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth)),height:n-o-(parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth))}}getSize(){return Ri(this,tn)?Ri(this,Qe):this.calculateSize()??Ri(this,Qe)}get current(){var t;return null==(t=Pa(Ri(this,an)))||t(),this.getSize()}get width(){return Pa(Ri(this,on))}get height(){return Pa(Ri(this,sn))}}Qe=new WeakMap,tn=new WeakMap,en=new WeakMap,nn=new WeakMap,rn=new WeakMap,on=new WeakMap,sn=new WeakMap,an=new WeakMap;class ap{constructor(t,e){let n;Di(this,ln,()=>{}),Di(this,cn,as(()=>Ri(this,ln).call(this))),void 0!==e&&(n=e),Ii(this,ln,()=>{try{return n}finally{n=t()}})}get current(){return Pa(Ri(this,cn))}}function lp(t){return t?"true":"false"}function cp(t){return t?"":void 0}function up(t){return t?"open":"closed"}ln=new WeakMap,cn=new WeakMap;class dp{constructor(t){Di(this,un),Di(this,dn),_i(this,"attrs"),Ii(this,un,t.getVariant?t.getVariant():null),Ii(this,dn,Ri(this,un)?`data-${Ri(this,un)}-`:`data-${t.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(t=>[t,this.getAttr(t)]))}getAttr(t,e){return e?`data-${e}-${t}`:`${Ri(this,dn)}${t}`}selector(t,e){return`[${this.getAttr(t,e)}]`}}un=new WeakMap,dn=new WeakMap;const hp="ArrowDown",pp="ArrowLeft",fp="ArrowRight",gp="ArrowUp",vp="End",mp="Enter",wp="Home";function bp(t="ltr",e="horizontal"){return{horizontal:"rtl"===t?pp:fp,vertical:hp}[e]}function yp(t="ltr",e="horizontal"){return{horizontal:"rtl"===t?fp:pp,vertical:gp}[e]}const xp="undefined"!=typeof document,kp=xp&&(null==(Cp=null==window?void 0:window.navigator)?void 0:Cp.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||(null==(Mp=null==window?void 0:window.navigator)?void 0:Mp.maxTouchPoints)>2&&/iPad|Macintosh/.test(null==window?void 0:window.navigator.userAgent));var Cp,Mp;function $p(t){return t instanceof HTMLElement}function Wp(t){return t instanceof Element}function Sp(t){return t instanceof Element||t instanceof SVGElement}function Ap(t){return null!==t}class Op{constructor(t){Di(this,hn),Di(this,pn,xh(null)),Ii(this,hn,t)}getCandidateNodes(){return Ri(this,hn).rootNode.current?Ri(this,hn).candidateSelector?Array.from(Ri(this,hn).rootNode.current.querySelectorAll(Ri(this,hn).candidateSelector)):Ri(this,hn).candidateAttr?Array.from(Ri(this,hn).rootNode.current.querySelectorAll(`[${Ri(this,hn).candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){var t;const e=this.getCandidateNodes();e.length&&(null==(t=e[0])||t.focus())}handleKeydown(t,e,n=!1){var r,i;const o=Ri(this,hn).rootNode.current;if(!o||!t)return;const s=this.getCandidateNodes();if(!s.length)return;const a=s.indexOf(t),l=(c=o,window.getComputedStyle(c).getPropertyValue("direction"));var c;const{nextKey:u,prevKey:d}=function(t="ltr",e="horizontal"){return["ltr","rtl"].includes(t)||(t="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:bp(t,e),prevKey:yp(t,e)}}(l,Ri(this,hn).orientation.current),h=Ri(this,hn).loop.current,p={[u]:a+1,[d]:a-1,[wp]:0,[vp]:s.length-1};if(n){const t=d===gp?pp:gp;p[u===hp?fp:hp]=a+1,p[t]=a-1}let f=p[e.key];if(void 0===f)return;e.preventDefault(),f<0&&h?f=s.length-1:f===s.length&&h&&(f=0);const g=s[f];return g?(g.focus(),Ri(this,pn).current=g.id,null==(i=(r=Ri(this,hn)).onCandidateFocus)||i.call(r,g),g):void 0}getTabIndex(t){const e=this.getCandidateNodes(),n=null!==Ri(this,pn).current;return t&&!n&&e[0]===t?(Ri(this,pn).current=t.id,0):(null==t?void 0:t.id)===Ri(this,pn).current?0:-1}setCurrentTabStopId(t){Ri(this,pn).current=t}focusCurrentTabStop(){var t;const e=Ri(this,pn).current;if(!e)return;const n=null==(t=Ri(this,hn).rootNode.current)?void 0:t.querySelector(`#${e}`);n&&$p(n)&&n.focus()}}function Ep(){}function Pp(t,e){return`bits-${t}`}hn=new WeakMap,pn=new WeakMap;class Tp{constructor(t,e){Di(this,gn),_i(this,"state"),Di(this,fn),this.state=yh(t),Ii(this,fn,e),this.dispatch=this.dispatch.bind(this)}dispatch(t){this.state.current=ji(this,gn,vn).call(this,t)}}fn=new WeakMap,gn=new WeakSet,vn=function(t){return Ri(this,fn)[this.state.current][t]??this.state.current};const zp={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}};class Lp{constructor(t){var e;_i(this,"opts"),Di(this,mn,fs("none")),Di(this,wn,fs(ys({}))),_i(this,"initialStatus"),_i(this,"previousPresent"),_i(this,"machine"),_i(this,"present"),Di(this,bn,as(()=>["mounted","unmountSuspended"].includes(this.machine.state.current))),this.opts=t,this.present=this.opts.open,this.initialStatus=t.open.current?"mounted":"unmounted",this.previousPresent=new ap(()=>this.present.current),this.machine=new Tp(this.initialStatus,zp),this.handleAnimationEnd=this.handleAnimationEnd.bind(this),this.handleAnimationStart=this.handleAnimationStart.bind(this),e=this,ip(()=>e.present.current,()=>{if(!e.opts.ref.current)return;if(e.present.current===e.previousPresent.current)return;const t=e.prevAnimationNameState,n=Np(e.opts.ref.current);if(e.present.current)e.machine.dispatch("MOUNT");else if("none"===n||"none"===e.styles.display)e.machine.dispatch("UNMOUNT");else{const r=t!==n;e.previousPresent.current&&r?e.machine.dispatch("ANIMATION_OUT"):e.machine.dispatch("UNMOUNT")}}),function(t){ip(()=>t.machine.state.current,()=>{if(!t.opts.ref.current)return;const e=Np(t.opts.ref.current);t.prevAnimationNameState="mounted"===t.machine.state.current?e:"none"})}(this),function(t){ip(()=>t.opts.ref.current,()=>{if(t.opts.ref.current)return t.styles=getComputedStyle(t.opts.ref.current),Ih(Ua(t.opts.ref.current,"animationstart",t.handleAnimationStart),Ua(t.opts.ref.current,"animationcancel",t.handleAnimationEnd),Ua(t.opts.ref.current,"animationend",t.handleAnimationEnd))})}(this)}get prevAnimationNameState(){return Pa(Ri(this,mn))}set prevAnimationNameState(t){vs(Ri(this,mn),t,!0)}get styles(){return Pa(Ri(this,wn))}set styles(t){vs(Ri(this,wn),t,!0)}handleAnimationEnd(t){if(!this.opts.ref.current)return;const e=Np(this.opts.ref.current),n=e.includes(t.animationName)||"none"===e;t.target===this.opts.ref.current&&n&&this.machine.dispatch("ANIMATION_END")}handleAnimationStart(t){this.opts.ref.current&&t.target===this.opts.ref.current&&(this.prevAnimationNameState=Np(this.opts.ref.current))}get isPresent(){return Pa(Ri(this,bn))}set isPresent(t){vs(Ri(this,bn),t)}}function Np(t){return t&&getComputedStyle(t).animationName||"none"}mn=new WeakMap,wn=new WeakMap,bn=new WeakMap;class _p{constructor(t){Di(this,Cn),Di(this,yn),Di(this,xn),Di(this,kn,!1),Ii(this,yn,t),Zh(()=>ji(this,Cn,Mn).call(this))}run(t){if(Ri(this,kn))return;ji(this,Cn,Mn).call(this),Ii(this,kn,!0);const e=Ri(this,yn).ref.current;e?"function"==typeof e.getAnimations?Ii(this,xn,window.requestAnimationFrame(()=>{const n=e.getAnimations();0!==n.length?Promise.allSettled(n.map(t=>t.finished)).then(()=>{ji(this,Cn,$n).call(this,t)}):ji(this,Cn,$n).call(this,t)})):ji(this,Cn,$n).call(this,t):Ii(this,kn,!1)}}yn=new WeakMap,xn=new WeakMap,kn=new WeakMap,Cn=new WeakSet,Mn=function(){Ri(this,xn)&&(window.cancelAnimationFrame(Ri(this,xn)),Ii(this,xn,void 0)),Ii(this,kn,!1)},$n=function(t){const e=()=>{t(),Ii(this,kn,!1)};Ri(this,yn).afterTick?Uh(e):e()};class Fp{constructor(t){Di(this,Wn),Di(this,Sn),Di(this,An),Ii(this,Wn,t),Ii(this,Sn,t.enabled??!0),Ii(this,An,new _p({ref:Ri(this,Wn).ref,afterTick:Ri(this,Wn).open})),ip([()=>Ri(this,Wn).open.current],([t])=>{Ri(this,Sn)&&Ri(this,An).run(()=>{t===Ri(this,Wn).open.current&&Ri(this,Wn).onComplete()})})}}function Rp(t,e){var n=il();fl(Ps(n),()=>e.children,t=>{var n=il();xl(Ps(n),()=>e.children??Qi),ol(t,n)}),ol(t,n)}Wn=new WeakMap,Sn=new WeakMap,An=new WeakMap;const Dp=new np("BitsConfig");class Ip{constructor(t,e){_i(this,"opts");const n=function(t,e){return n=>{const r=vh(()=>{var r,i;const o=null==(r=n(e))?void 0:r.current;return void 0!==o?o:null!==t?null==(i=n(t.opts))?void 0:i.current:void 0});return r}}(t,e);this.opts={defaultPortalTo:n(t=>t.defaultPortalTo),defaultLocale:n(t=>t.defaultLocale)}}}const jp=(Bp=t=>t.defaultPortalTo,t=>{const e=function(){const t=new Ip(null,{});return Dp.getOr(t).opts}();return vh(()=>{const n=t();if(void 0!==n)return n;const r=Bp(e).current;return void 0!==r?r:"body"})});var Bp;function Hp(t,e){So(e,!0);const n=jp(()=>e.to),r=Oo();let i,o=as(s);function s(){if(!xp||e.disabled)return null;let t=null;return t="string"==typeof n.current?document.querySelector(n.current):n.current,t}function a(){i&&(function(t){const e=dl.get(t);e?(dl.delete(t),e(void 0)):Promise.resolve()}(i),i=null)}ip([()=>Pa(o),()=>e.disabled],([t,n])=>{if(t&&!n)return i=cl(Rp,{target:t,props:{children:e.children},context:r}),()=>{a()};a()});var l=il(),c=Ps(l),u=t=>{var n=il();xl(Ps(n),()=>e.children??Qi),ol(t,n)};pl(c,t=>{e.disabled&&t(u)}),ol(t,l),Ao()}function Vp(t,e=500){let n=null;const r=(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{t(...r)},e)};return r.destroy=()=>{null!==n&&(clearTimeout(n),n=null)},r}function Kp(t,e){return t===e||t.contains(e)}function Zp(t){return(null==t?void 0:t.ownerDocument)??document}const Up=[mp," "],qp=[gp,"PageDown","End"],Yp=[hp,"PageUp",wp,...qp];function Xp(t){return"mouse"===t.pointerType}function Gp(t,{select:e=!1}={}){if(!t||!t.focus)return;const n=Gh(t);if(n.activeElement===t)return;const r=n.activeElement;t.focus({preventScroll:!0}),t!==r&&function(t){return t instanceof HTMLInputElement&&"select"in t}(t)&&e&&t.select()}
2
+ /*!
3
+ * tabbable 6.2.0
4
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
5
+ */
6
+ var Jp=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Qp=Jp.join(","),tf="undefined"==typeof Element,ef=tf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,nf=!tf&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},rf=function t(e,n){var r;void 0===n&&(n=!0);var i=null==e||null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"inert");return""===i||"true"===i||n&&e&&t(e.parentNode)},of=function(t,e,n){if(rf(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(Qp));return e&&ef.call(t,Qp)&&r.unshift(t),r.filter(n)},sf=function t(e,n,r){for(var i=[],o=Array.from(e);o.length;){var s=o.shift();if(!rf(s,!1))if("SLOT"===s.tagName){var a=s.assignedElements(),l=t(a.length?a:s.children,!0,r);r.flatten?i.push.apply(i,l):i.push({scopeParent:s,candidates:l})}else{ef.call(s,Qp)&&r.filter(s)&&(n||!e.includes(s))&&i.push(s);var c=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),u=!rf(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(c&&u){var d=t(!0===c?s.children:c.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else o.unshift.apply(o,s.children)}}return i},af=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},lf=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!af(t)?0:t.tabIndex},cf=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},uf=function(t){return"INPUT"===t.tagName},df=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height;return 0===n&&0===r},hf=function(t,e){return!(e.disabled||rf(e)||function(t){return uf(t)&&"hidden"===t.type}(e)||function(t,e){var n=e.displayCheck,r=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var i=ef.call(t,"details>summary:first-of-type")?t.parentElement:t;if(ef.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return df(t)}else{if("function"==typeof r){for(var o=t;t;){var s=t.parentElement,a=nf(t);if(s&&!s.shadowRoot&&!0===r(s))return df(t);t=t.assignedSlot?t.assignedSlot:s||a===t.ownerDocument?s:a.host}t=o}if(function(t){var e,n,r,i,o=t&&nf(t),s=null===(e=o)||void 0===e?void 0:e.host,a=!1;if(o&&o!==t)for(a=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=t&&null!==(i=t.ownerDocument)&&void 0!==i&&i.contains(t));!a&&s;){var l,c,u;a=!(null===(c=s=null===(l=o=nf(s))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return a}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(t){return"SUMMARY"===t.tagName})}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var r=e.children.item(n);if("LEGEND"===r.tagName)return!!ef.call(e,"fieldset[disabled] *")||!r.contains(t)}return!0}e=e.parentElement}return!1}(e))},pf=function(t,e){return!(function(t){return function(t){return uf(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||nf(t),r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(o){return!1}var i=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!i||i===t}(t)}(e)||lf(e)<0||!hf(t,e))},ff=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},gf=function t(e){var n=[],r=[];return e.forEach(function(e,i){var o=!!e.scopeParent,s=o?e.scopeParent:e,a=function(t,e){var n=lf(t);return n<0&&e&&!af(t)?0:n}(s,o),l=o?t(e.candidates):s;0===a?o?n.push.apply(n,l):n.push(s):r.push({documentOrder:i,tabIndex:a,item:e,isScope:o,content:l})}),r.sort(cf).reduce(function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t},[]).concat(n)},vf=function(t,e){var n;return n=(e=e||{}).getShadowRoot?sf([t],e.includeContainer,{filter:pf.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:ff}):of(t,e.includeContainer,pf.bind(null,e)),gf(n)},mf=function(t,e){return(e=e||{}).getShadowRoot?sf([t],e.includeContainer,{filter:hf.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):of(t,e.includeContainer,hf.bind(null,e))},wf=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==ef.call(t,Qp)&&pf(e,t)},bf=Jp.concat("iframe").join(","),yf=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==ef.call(t,bf)&&hf(e,t)};function xf(){return{getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function kf(t,e,n){const r=e.toLowerCase();if(r.endsWith(" ")){const i=r.slice(0,-1);if(t.filter(t=>t.toLowerCase().startsWith(i)).length<=1)return kf(t,i,n);const o=null==n?void 0:n.toLowerCase();if(o&&o.startsWith(i)&&" "===o.charAt(i.length)&&e.trim()===i)return n;const s=t.filter(t=>t.toLowerCase().startsWith(r));if(s.length>0){const e=n?t.indexOf(n):-1;return Cf(s,Math.max(e,0)).find(t=>t!==n)||n}}const i=e.length>1&&Array.from(e).every(t=>t===e[0])?e[0]:e,o=i.toLowerCase(),s=n?t.indexOf(n):-1;let a=Cf(t,Math.max(s,0));1===i.length&&(a=a.filter(t=>t!==n));const l=a.find(t=>null==t?void 0:t.toLowerCase().startsWith(o));return l!==n?l:void 0}function Cf(t,e){return t.map((n,r)=>t[(e+r)%t.length])}const Mf={afterMs:1e4,onChange:Ep};function $f(t,e){const{afterMs:n,onChange:r,getWindow:i}={...Mf,...e};let o=null,s=fs(ys(t));return Is(()=>()=>{o&&i().clearTimeout(o)}),vh(()=>Pa(s),e=>{vs(s,e,!0),null==r||r(e),o&&i().clearTimeout(o),o=i().setTimeout(()=>{vs(s,t,!0),null==r||r(t)},n)})}class Wf{constructor(t){Di(this,On),Di(this,En),Di(this,Pn,as(()=>Ri(this,On).onMatch?Ri(this,On).onMatch:t=>t.focus())),Di(this,Tn,as(()=>Ri(this,On).getCurrentItem?Ri(this,On).getCurrentItem:Ri(this,On).getActiveElement)),Ii(this,On,t),Ii(this,En,$f("",{afterMs:1e3,getWindow:t.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,e){var n,r;if(!e.length)return;Ri(this,En).current=Ri(this,En).current+t;const i=Pa(Ri(this,Tn))(),o=(null==(r=null==(n=e.find(t=>t===i))?void 0:n.textContent)?void 0:r.trim())??"",s=kf(e.map(t=>{var e;return(null==(e=t.textContent)?void 0:e.trim())??""}),Ri(this,En).current,o),a=e.find(t=>{var e;return(null==(e=t.textContent)?void 0:e.trim())===s});return a&&Pa(Ri(this,Pn))(a),a}resetTypeahead(){Ri(this,En).current=""}get search(){return Ri(this,En).current}}On=new WeakMap,En=new WeakMap,Pn=new WeakMap,Tn=new WeakMap;class Sf{constructor(t){Di(this,Fn),Di(this,zn),Di(this,Ln),Di(this,Nn),Di(this,_n,fs(null)),Ii(this,zn,t),Ii(this,Ln,as(()=>Ri(this,zn).enabled())),Ii(this,Nn,$f(!1,{afterMs:t.transitTimeout??300,onChange:t=>{var e,n;Pa(Ri(this,Ln))&&(null==(n=(e=Ri(this,zn)).setIsPointerInTransit)||n.call(e,t))},getWindow:()=>Jh(Ri(this,zn).triggerNode())})),ip([t.triggerNode,t.contentNode,t.enabled],([t,e,n])=>{if(t&&e&&n)return Ih(Ua(t,"pointerleave",t=>{ji(this,Fn,Dn).call(this,t,e)}),Ua(e,"pointerleave",e=>{ji(this,Fn,Dn).call(this,e,t)}))}),ip(()=>Pa(Ri(this,_n)),()=>{const e=Gh(t.triggerNode()??t.contentNode());if(e)return Ua(e,"pointermove",e=>{var n,r;if(!Pa(Ri(this,_n)))return;const i=e.target;if(!Wp(i))return;const o={x:e.clientX,y:e.clientY},s=(null==(n=t.triggerNode())?void 0:n.contains(i))||(null==(r=t.contentNode())?void 0:r.contains(i)),a=!function(t,e){const{x:n,y:r}=t;let i=!1;for(let o=0,s=e.length-1;o<e.length;s=o++){const t=e[o].x,a=e[o].y,l=e[s].x,c=e[s].y;a>r!=c>r&&n<(l-t)*(r-a)/(c-a)+t&&(i=!i)}return i}(o,Pa(Ri(this,_n)));s?ji(this,Fn,Rn).call(this):a&&(ji(this,Fn,Rn).call(this),t.onPointerExit())})})}}zn=new WeakMap,Ln=new WeakMap,Nn=new WeakMap,_n=new WeakMap,Fn=new WeakSet,Rn=function(){vs(Ri(this,_n),null),Ri(this,Nn).current=!1},Dn=function(t,e){const n=t.currentTarget;if(!$p(n))return;const r={x:t.clientX,y:t.clientY},i=function(t,e,n=5){const r=1.5*n;switch(e){case"top":return[{x:t.x-n,y:t.y+n},{x:t.x,y:t.y-r},{x:t.x+n,y:t.y+n}];case"bottom":return[{x:t.x-n,y:t.y-n},{x:t.x,y:t.y+r},{x:t.x+n,y:t.y-n}];case"left":return[{x:t.x+n,y:t.y-n},{x:t.x-r,y:t.y},{x:t.x+n,y:t.y+n}];case"right":return[{x:t.x-n,y:t.y-n},{x:t.x+r,y:t.y},{x:t.x-n,y:t.y+n}]}}(r,function(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),o=Math.abs(e.left-t.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),o=function(t){const e=t.slice();return e.sort((t,e)=>t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:t.y>e.y?1:0),function(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const n=t[r];for(;e.length>=2;){const t=e[e.length-1],r=e[e.length-2];if(!((t.x-r.x)*(n.y-r.y)>=(t.y-r.y)*(n.x-r.x)))break;e.pop()}e.push(n)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const e=t[r];for(;n.length>=2;){const t=n[n.length-1],r=n[n.length-2];if(!((t.x-r.x)*(e.y-r.y)>=(t.y-r.y)*(e.x-r.x)))break;n.pop()}n.push(e)}return n.pop(),1===e.length&&1===n.length&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}(e)}([...i,...function(t){const{top:e,right:n,bottom:r,left:i}=t;return[{x:i,y:e},{x:n,y:e},{x:n,y:r},{x:i,y:r}]}(e.getBoundingClientRect())]);vs(Ri(this,_n),o,!0),Ri(this,Nn).current=!0};const Af=new np("Menu.Root"),Of=new np("Menu.Root | Menu.Sub"),Ef=new np("Menu.Content"),Pf=new class{constructor(t,e={bubbles:!0,cancelable:!0}){_i(this,"eventName"),_i(this,"options"),this.eventName=t,this.options=e}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,e){const n=this.createEvent(e);return t.dispatchEvent(n),n}listen(t,e,n){return Ua(t,this.eventName,t=>{e(t)},n)}}("bitsmenuopen",{bubbles:!1,cancelable:!0}),Tf=function(){const t=new dp({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}();In=new WeakMap,jn=new WeakMap;let zf=class t{constructor(t){_i(this,"opts"),_i(this,"isUsingKeyboard",new rm),Di(this,In,fs(!1)),Di(this,jn,fs(!1)),_i(this,"getBitsAttr",t=>Tf.getAttr(t,this.opts.variant.current)),this.opts=t}static create(e){const n=new t(e);return Af.set(n)}get ignoreCloseAutoFocus(){return Pa(Ri(this,In))}set ignoreCloseAutoFocus(t){vs(Ri(this,In),t,!0)}get isPointerInTransit(){return Pa(Ri(this,jn))}set isPointerInTransit(t){vs(Ri(this,jn),t,!0)}};Bn=new WeakMap,Hn=new WeakMap;let Lf=class t{constructor(t,e,n){_i(this,"opts"),_i(this,"root"),_i(this,"parentMenu"),_i(this,"contentId",vh(()=>"")),Di(this,Bn,fs(null)),Di(this,Hn,fs(null)),this.opts=t,this.root=e,this.parentMenu=n,new Fp({ref:vh(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),n&&ip(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}static create(e,n){return Of.set(new t(e,n,null))}get contentNode(){return Pa(Ri(this,Bn))}set contentNode(t){vs(Ri(this,Bn),t,!0)}get triggerNode(){return Pa(Ri(this,Hn))}set triggerNode(t){vs(Ri(this,Hn),t,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};Vn=new WeakMap,Kn=new WeakMap,Zn=new WeakMap,Un=new WeakMap,qn=new WeakMap,Yn=new WeakSet,Xn=function(){const t=this.parentMenu.contentNode;return t?Array.from(t.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]},Gn=function(){return this.parentMenu.root.isPointerInTransit},Jn=new WeakMap,Qn=new WeakMap;let Nf=class t{constructor(t,e){Di(this,Yn),_i(this,"opts"),_i(this,"parentMenu"),_i(this,"rovingFocusGroup"),_i(this,"domContext"),_i(this,"attachment"),Di(this,Vn,fs("")),Di(this,Kn,0),Di(this,Zn),Di(this,Un,fs(!1)),Di(this,qn),_i(this,"onCloseAutoFocus",t=>{var e,n;null==(n=(e=this.opts.onCloseAutoFocus).current)||n.call(e,t),t.defaultPrevented||Ri(this,qn)||this.parentMenu.triggerNode&&wf(this.parentMenu.triggerNode)&&(t.preventDefault(),this.parentMenu.triggerNode.focus())}),Di(this,Jn,as(()=>({open:this.parentMenu.opts.open.current}))),Di(this,Qn,as(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":up(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto"},...this.attachment}))),_i(this,"popperProps",{onCloseAutoFocus:t=>this.onCloseAutoFocus(t)}),this.opts=t,this.parentMenu=e,this.domContext=new Qh(t.ref),this.attachment=tp(this.opts.ref,t=>{this.parentMenu.contentNode!==t&&(this.parentMenu.contentNode=t)}),e.contentId=t.id,Ii(this,qn,t.isSub??!1),this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new Sf({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>{var t;return this.parentMenu.opts.open.current&&Boolean(null==(t=this.parentMenu.triggerNode)?void 0:t.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")))},onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:t=>{this.parentMenu.root.isPointerInTransit=t}}),Ii(this,Zn,new Wf({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch),this.rovingFocusGroup=new Op({rootNode:vh(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:vh(()=>"vertical")}),ip(()=>this.parentMenu.contentNode,t=>{if(t)return Pf.listen(t,()=>{Uh(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})})}),Is(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(Ri(this,Kn))})}static create(e){return Ef.set(new t(e,Of.get()))}get search(){return Pa(Ri(this,Vn))}set search(t){vs(Ri(this,Vn),t,!0)}get mounted(){return Pa(Ri(this,Un))}set mounted(t){vs(Ri(this,Un),t,!0)}handleTabKeyDown(t){let e=this.parentMenu;for(;null!==e.parentMenu;)e=e.parentMenu;if(!e.triggerNode)return;t.preventDefault();const n=function(t,e){if(!wf(t,xf()))return function(t,e){const n=Gh(t);if(!yf(t,xf()))return n.body;const r=mf(n.body,xf());"prev"===e&&r.reverse();const i=r.indexOf(t);return-1===i?n.body:r.slice(i+1).find(t=>wf(t,xf()))??n.body}(t,e);const n=Gh(t),r=vf(n.body,xf());"prev"===e&&r.reverse();const i=r.indexOf(t);return-1===i?n.body:r.slice(i+1)[0]}(e.triggerNode,t.shiftKey?"prev":"next");n?(this.parentMenu.root.ignoreCloseAutoFocus=!0,e.onClose(),Uh(()=>{n.focus(),Uh(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(t){var e,n;if(t.defaultPrevented)return;if("Tab"===t.key)return void this.handleTabKeyDown(t);const r=t.target,i=t.currentTarget;if(!$p(r)||!$p(i))return;const o=(null==(e=r.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`))?void 0:e.id)===this.parentMenu.contentId.current,s=t.ctrlKey||t.altKey||t.metaKey,a=1===t.key.length;if(this.rovingFocusGroup.handleKeydown(r,t))return;if("Space"===t.code)return;const l=ji(this,Yn,Xn).call(this);o&&!s&&a&&Ri(this,Zn).call(this,t.key,l),(null==(n=t.target)?void 0:n.id)===this.parentMenu.contentId.current&&Yp.includes(t.key)&&(t.preventDefault(),qp.includes(t.key)&&l.reverse(),function(t,{select:e=!1}={},n){const r=n();for(const i of t)if(Gp(i,{select:e}),n()!==r)return!0}(l,{select:!1},()=>this.domContext.getActiveElement()))}onblur(t){var e,n;Wp(t.currentTarget)&&Wp(t.target)&&((null==(n=(e=t.currentTarget).contains)?void 0:n.call(e,t.target))||(this.domContext.getWindow().clearTimeout(Ri(this,Kn)),this.search=""))}onfocus(t){this.parentMenu.root.isUsingKeyboard.current&&Uh(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return ji(this,Yn,Gn).call(this)}onItemLeave(t){if(t.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")))return;if(ji(this,Yn,Gn).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;const e=this.parentMenu.contentNode;null==e||e.focus(),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!ji(this,Yn,Gn).call(this)}handleInteractOutside(t){var e;if(!Sp(t.target))return;const n=null==(e=this.parentMenu.triggerNode)?void 0:e.id;t.target.id!==n?t.target.closest(`#${n}`)&&t.preventDefault():t.preventDefault()}get snippetProps(){return Pa(Ri(this,Jn))}set snippetProps(t){vs(Ri(this,Jn),t)}get props(){return Pa(Ri(this,Qn))}set props(t){vs(Ri(this,Qn),t)}};class _f{constructor(t,e){_i(this,"opts"),_i(this,"content"),_i(this,"attachment"),Di(this,tr,fs(!1)),Di(this,er,as(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":lp(this.opts.disabled.current),"data-disabled":cp(this.opts.disabled.current),"data-highlighted":Pa(Ri(this,tr))?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}))),this.opts=t,this.content=e,this.attachment=tp(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(t){if(!t.defaultPrevented&&Xp(t))if(this.opts.disabled.current)this.content.onItemLeave(t);else{if(this.content.onItemEnter())return;const e=t.currentTarget;if(!$p(e))return;e.focus()}}onpointerleave(t){t.defaultPrevented||Xp(t)&&this.content.onItemLeave(t)}onfocus(t){Uh(()=>{t.defaultPrevented||this.opts.disabled.current||vs(Ri(this,tr),!0)})}onblur(t){Uh(()=>{t.defaultPrevented||vs(Ri(this,tr),!1)})}get props(){return Pa(Ri(this,er))}set props(t){vs(Ri(this,er),t)}}tr=new WeakMap,er=new WeakMap,nr=new WeakMap,rr=new WeakSet,ir=function(){if(this.item.opts.disabled.current)return;const t=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});this.opts.onSelect.current(t),t.defaultPrevented?this.item.content.parentMenu.root.isUsingKeyboard.current=!1:this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()},or=new WeakMap;let Ff=class t{constructor(t,e){Di(this,rr),_i(this,"opts"),_i(this,"item"),_i(this,"root"),Di(this,nr,!1),Di(this,or,as(()=>Kh(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}))),this.opts=t,this.item=e,this.root=e.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(e){const n=new _f(e,Ef.get());return new t(e,n)}onkeydown(t){const e=""!==this.item.content.search;if(!(this.item.opts.disabled.current||e&&" "===t.key)&&Up.includes(t.key)){if(!$p(t.currentTarget))return;t.currentTarget.click(),t.preventDefault()}}onclick(t){this.item.opts.disabled.current||ji(this,rr,ir).call(this)}onpointerup(t){var e;if(!t.defaultPrevented&&!Ri(this,nr)){if(!$p(t.currentTarget))return;null==(e=t.currentTarget)||e.click()}}onpointerdown(t){Ii(this,nr,!0)}get props(){return Pa(Ri(this,or))}set props(t){vs(Ri(this,or),t)}};sr=new WeakMap,ar=new WeakMap;let Rf=class t{constructor(t,e){_i(this,"opts"),_i(this,"parentMenu"),_i(this,"attachment"),_i(this,"onclick",t=>{this.opts.disabled.current||0!==t.detail||(this.parentMenu.toggleOpen(),t.preventDefault())}),_i(this,"onpointerdown",t=>{if(!this.opts.disabled.current)return"touch"===t.pointerType?t.preventDefault():void(0===t.button&&!1===t.ctrlKey&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||t.preventDefault()))}),_i(this,"onpointerup",t=>{this.opts.disabled.current||"touch"===t.pointerType&&(t.preventDefault(),this.parentMenu.toggleOpen())}),_i(this,"onkeydown",t=>{if(!this.opts.disabled.current)return" "===t.key||t.key===mp?(this.parentMenu.toggleOpen(),void t.preventDefault()):void(t.key===hp&&(this.parentMenu.onOpen(),t.preventDefault()))}),Di(this,sr,as(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current})),Di(this,ar,as(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":lp(this.parentMenu.opts.open.current),"aria-controls":Pa(Ri(this,sr)),"data-disabled":cp(this.opts.disabled.current),"data-state":up(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}))),this.opts=t,this.parentMenu=e,this.attachment=tp(this.opts.ref,t=>this.parentMenu.triggerNode=t)}static create(e){return new t(e,Of.get())}get props(){return Pa(Ri(this,ar))}set props(t){vs(Ri(this,ar),t)}};globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map),lr=new WeakMap,cr=new WeakMap,ur=new WeakMap,dr=new WeakMap,hr=new WeakMap,pr=new WeakMap,fr=new WeakMap,gr=new WeakMap,vr=new WeakMap,mr=new WeakSet,wr=function(){return Ih(Ua(Ri(this,pr),"pointerdown",Ih(Ri(this,xr),Ri(this,Cr)),{capture:!0}),Ua(Ri(this,pr),"pointerdown",Ih(Ri(this,kr),Ri(this,yr))),Ua(Ri(this,pr),"focusin",Ri(this,vr)))},br=new WeakMap,yr=new WeakMap,xr=new WeakMap,kr=new WeakMap,Cr=new WeakMap,Mr=new WeakMap,$r=new WeakMap,Wr=function(){return Object.values(Ri(this,ur)).some(Boolean)},Sr=new WeakMap,Ar=new WeakMap;let Df=class t{constructor(t){Di(this,mr),_i(this,"opts"),Di(this,lr),Di(this,cr),Di(this,ur,{pointerdown:!1}),Di(this,dr,!1),Di(this,hr,!1),Di(this,pr),Di(this,fr),Di(this,gr,Ep),Di(this,vr,t=>{t.defaultPrevented||this.opts.ref.current&&Uh(()=>{var e,n;this.opts.ref.current&&!Ri(this,Mr).call(this,t.target)&&t.target&&!Ri(this,hr)&&(null==(n=(e=Ri(this,fr)).current)||n.call(e,t))})}),Di(this,br,t=>{let e=t;e.defaultPrevented&&(e=If(t)),Ri(this,lr).current(t)}),Di(this,yr,Vp(t=>{if(!this.opts.ref.current)return void Ri(this,gr).call(this);const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||function(t,e){const n=t.target;if(!Sp(n))return!1;const r=Boolean(n.closest("[data-context-menu-trigger]"));if("button"in t&&t.button>0&&!r)return!1;if("button"in t&&0===t.button&&r)return!0;const i=Boolean(e.closest("[data-context-menu-content]"));if(r&&i)return!1;const o=Zp(n).documentElement.contains(n)&&!Kp(e,n)&&function(t,e){const{clientX:n,clientY:r}=t,i=e.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}(t,e);return o}(t,this.opts.ref.current);if(!Ri(this,dr)||ji(this,mr,Wr).call(this)||!e)return void Ri(this,gr).call(this);let n=t;n.defaultPrevented&&(n=If(n)),"close"===Ri(this,cr).current||"defer-otherwise-close"===Ri(this,cr).current?"touch"===t.pointerType?(Ri(this,gr).call(this),Ii(this,gr,Ua(Ri(this,pr),"click",Ri(this,br),{once:!0}))):Ri(this,lr).current(n):Ri(this,gr).call(this)},10)),Di(this,xr,t=>{Ri(this,ur)[t.type]=!0}),Di(this,kr,t=>{Ri(this,ur)[t.type]=!1}),Di(this,Cr,()=>{this.opts.ref.current&&Ii(this,dr,function(t){const e=[...globalThis.bitsDismissableLayers],n=function(t=[...globalThis.bitsDismissableLayers]){return t.findLast(([t,{current:e}])=>"close"===e||"ignore"===e)}(e);if(n)return n[0].opts.ref.current===t;const[r]=e[0];return r.opts.ref.current===t}(this.opts.ref.current))}),Di(this,Mr,t=>!!this.opts.ref.current&&Kp(this.opts.ref.current,t)),Di(this,$r,Vp(()=>{for(const t in Ri(this,ur))Ri(this,ur)[t]=!1;Ii(this,dr,!1)},20)),Di(this,Sr,()=>{Ii(this,hr,!0)}),Di(this,Ar,()=>{Ii(this,hr,!1)}),_i(this,"props",{onfocuscapture:Ri(this,Sr),onblurcapture:Ri(this,Ar)}),this.opts=t,Ii(this,cr,t.interactOutsideBehavior),Ii(this,lr,t.onInteractOutside),Ii(this,fr,t.onFocusOutside),Is(()=>{Ii(this,pr,Zp(this.opts.ref.current))});let e=Ep;const n=()=>{Ri(this,$r).call(this),globalThis.bitsDismissableLayers.delete(this),Ri(this,yr).destroy(),e()};ip([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(this.opts.enabled.current&&this.opts.ref.current)return setTimeout(()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,Ri(this,cr)),e(),e=ji(this,mr,wr).call(this))},1),n}),Zh(()=>{Ri(this,$r).destroy(),globalThis.bitsDismissableLayers.delete(this),Ri(this,yr).destroy(),Ri(this,gr).call(this),e()})}static create(e){return new t(e)}};function If(t){const e=t.currentTarget,n=t.target;let r;r=t instanceof PointerEvent?new PointerEvent(t.type,t):new PointerEvent("pointerdown",t);let i=!1;return new Proxy(r,{get:(r,o)=>"currentTarget"===o?e:"target"===o?n:"preventDefault"===o?()=>{i=!0,"function"==typeof r.preventDefault&&r.preventDefault()}:"defaultPrevented"===o?i:o in r?r[o]:t[o]})}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map),Or=new WeakMap,Er=new WeakMap;let jf=class t{constructor(t){_i(this,"opts"),_i(this,"domContext"),Di(this,Or,()=>Ua(this.domContext.getDocument(),"keydown",Ri(this,Er),{passive:!1})),Di(this,Er,t=>{if("Escape"!==t.key||!function(t){const e=[...globalThis.bitsEscapeLayers],n=e.findLast(([t,{current:e}])=>"close"===e||"ignore"===e);if(n)return n[0]===t;const[r]=e[0];return r===t}(this))return;const e=new KeyboardEvent(t.type,t);t.preventDefault();const n=this.opts.escapeKeydownBehavior.current;"close"!==n&&"defer-otherwise-close"!==n||this.opts.onEscapeKeydown.current(e)}),this.opts=t,this.domContext=new Qh(this.opts.ref);let e=Ep;ip(()=>t.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=Ri(this,Or).call(this)),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}static create(e){return new t(e)}};const Bf=class t{constructor(){Di(this,Pr,yh([])),Di(this,Tr,new WeakMap),Di(this,zr,new WeakMap)}static getInstance(){return this.instance||(this.instance=new t),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const n=document.activeElement;n&&n!==document.body&&Ri(this,zr).set(t,n),Ri(this,Pr).current=Ri(this,Pr).current.filter(e=>e!==t),Ri(this,Pr).current.unshift(t)}unregister(t){Ri(this,Pr).current=Ri(this,Pr).current.filter(e=>e!==t);const e=this.getActive();e&&e.resume()}getActive(){return Ri(this,Pr).current[0]}setFocusMemory(t,e){Ri(this,Tr).set(t,e)}getFocusMemory(t){return Ri(this,Tr).get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){Ri(this,zr).set(t,e)}getPreFocusMemory(t){return Ri(this,zr).get(t)}clearPreFocusMemory(t){Ri(this,zr).delete(t)}};Pr=new WeakMap,Tr=new WeakMap,zr=new WeakMap,_i(Bf,"instance");let Hf=Bf;Lr=new WeakMap,Nr=new WeakMap,_r=new WeakMap,Fr=new WeakMap,Rr=new WeakMap,Dr=new WeakSet,Ir=function(){for(const t of Ri(this,Fr))t();Ii(this,Fr,[])},jr=function(){if(!Ri(this,Nr))return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});Ri(this,Rr).onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!Ri(this,Nr))return;const t=ji(this,Dr,Kr).call(this);t?(t.focus(),Ri(this,_r).setFocusMemory(this,t)):Ri(this,Nr).focus()})},Br=function(){var t,e;const n=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(null==(e=(t=Ri(this,Rr).onCloseAutoFocus).current)||e.call(t,n),!n.defaultPrevented){const t=Ri(this,_r).getPreFocusMemory(this);if(t&&document.contains(t))try{t.focus()}catch{document.body.focus()}}},Hr=function(){if(!Ri(this,Nr)||!Ri(this,Rr).trap.current)return;const t=Ri(this,Nr),e=t.ownerDocument;Ri(this,Fr).push(Ua(e,"focusin",e=>{if(Ri(this,Lr)||!Ri(this,_r).isActiveScope(this))return;const n=e.target;if(n)if(t.contains(n))Ri(this,_r).setFocusMemory(this,n);else{const n=Ri(this,_r).getFocusMemory(this);if(n&&t.contains(n)&&yf(n))e.preventDefault(),n.focus();else{const e=ji(this,Dr,Kr).call(this),n=ji(this,Dr,Zr).call(this)[0];(e||n||t).focus()}}},{capture:!0}),Ua(t,"keydown",t=>{if(!Ri(this,Rr).loop||Ri(this,Lr)||"Tab"!==t.key)return;if(!Ri(this,_r).isActiveScope(this))return;const n=ji(this,Dr,Vr).call(this);if(n.length<2)return;const r=n[0],i=n[n.length-1];t.shiftKey||e.activeElement!==i?t.shiftKey&&e.activeElement===r&&(t.preventDefault(),i.focus()):(t.preventDefault(),r.focus())}));const n=new MutationObserver(()=>{const e=Ri(this,_r).getFocusMemory(this);if(e&&!t.contains(e)){const e=ji(this,Dr,Kr).call(this),n=ji(this,Dr,Zr).call(this)[0],r=e||n;r?(r.focus(),Ri(this,_r).setFocusMemory(this,r)):t.focus()}});n.observe(t,{childList:!0,subtree:!0}),Ri(this,Fr).push(()=>n.disconnect())},Vr=function(){return Ri(this,Nr)?vf(Ri(this,Nr),{includeContainer:!1,getShadowRoot:!0}):[]},Kr=function(){return ji(this,Dr,Vr).call(this)[0]||null},Zr=function(){return Ri(this,Nr)?mf(Ri(this,Nr),{includeContainer:!1,getShadowRoot:!0}):[]};let Vf=class t{constructor(t){Di(this,Dr),Di(this,Lr,!1),Di(this,Nr,null),Di(this,_r,Hf.getInstance()),Di(this,Fr,[]),Di(this,Rr),Ii(this,Rr,t)}get paused(){return Ri(this,Lr)}pause(){Ii(this,Lr,!0)}resume(){Ii(this,Lr,!1)}mount(t){Ri(this,Nr)&&this.unmount(),Ii(this,Nr,t),Ri(this,_r).register(this),ji(this,Dr,Hr).call(this),ji(this,Dr,jr).call(this)}unmount(){Ri(this,Nr)&&(ji(this,Dr,Ir).call(this),ji(this,Dr,Br).call(this),Ri(this,_r).unregister(this),Ri(this,_r).clearPreFocusMemory(this),Ii(this,Nr,null))}static use(e){let n=null;return ip([()=>e.ref.current,()=>e.enabled.current],([r,i])=>{r&&i?(n||(n=new t(e)),n.mount(r)):n&&(n.unmount(),n=null)}),Zh(()=>{null==n||n.unmount()}),{get props(){return{tabindex:-1}}}}};globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map),Ur=new WeakMap,qr=new WeakSet,Yr=function(){return Ih(Ua(this.domContext.getDocument(),"pointerdown",Ri(this,Xr)),Ua(this.domContext.getDocument(),"pointerup",kh(Ri(this,Gr),this.opts.onPointerUp.current)))},Xr=new WeakMap,Gr=new WeakMap;let Kf=class t{constructor(t){Di(this,qr),_i(this,"opts"),_i(this,"domContext"),Di(this,Ur,Ep),Di(this,Xr,t=>{const e=this.opts.ref.current,n=t.target;$p(e)&&$p(n)&&this.opts.enabled.current&&function(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const n=e.at(-1);return!!n&&n[0]===t}(this)&&function(t,e){var n;if(!t||!e)return!1;if(!qh(t)||!qh(e))return!1;const r=null==(n=e.getRootNode)?void 0:n.call(e);if(t===e)return!0;if(t.contains(e))return!0;if(r&&Xh(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}(e,n)&&(this.opts.onPointerDown.current(t),t.defaultPrevented||Ii(this,Ur,function(t,e){const n=Zf(e),r=Zf(t);return Uf(e,"none"),Uf(t,"text"),()=>{Uf(e,n),Uf(t,r)}}(e,this.domContext.getDocument().body)))}),Di(this,Gr,()=>{Ri(this,Ur).call(this),Ii(this,Ur,Ep)}),this.opts=t,this.domContext=new Qh(t.ref);let e=Ep;ip(()=>this.opts.enabled.current,t=>(t&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=ji(this,qr,Yr).call(this)),()=>{e(),Ri(this,Gr).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(e){return new t(e)}};const Zf=t=>t.style.userSelect||t.style.webkitUserSelect;function Uf(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function qf(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0}),Jr=new WeakMap,Qr=new WeakMap,ti=new WeakMap,ei=new WeakMap,ni=new WeakSet,ri=function(){Ii(this,Qr,Ri(this,Qr)-1),Ri(this,ei)&&Ri(this,Qr)<=0&&(Ri(this,ei).call(this),vs(Ri(this,ti),void 0),Ii(this,ei,void 0))};const Yf=new vc;let Xf=fs(null),Gf=null,Jf=null,Qf=!1;const tg=vh(()=>{for(const t of Yf.values())if(t)return!0;return!1});let eg=null;const ng=new class{constructor(t){Di(this,ni),Di(this,Jr),Di(this,Qr,0),Di(this,ti,fs()),Di(this,ei),Ii(this,Jr,t)}get(...t){return Ii(this,Qr,Ri(this,Qr)+1),void 0===Pa(Ri(this,ti))&&Ii(this,ei,Bs(()=>{vs(Ri(this,ti),Ri(this,Jr).call(this,...t),!0)})),Is(()=>()=>{ji(this,ni,ri).call(this)}),Pa(Ri(this,ti))}}(()=>{function t(){null!==Jf&&(window.clearTimeout(Jf),Jf=null)}function e(){null!==Pa(Xf)||0!==Yf.size||Qf||vs(Xf,document.body.getAttribute("style"),!0)}return ip(()=>tg.current,()=>{if(!tg.current)return;e(),Qf=!1;const t=getComputedStyle(document.body),n=window.innerWidth-document.documentElement.clientWidth,r=Number.parseInt(t.paddingRight??"0",10)+n,i=Number.parseInt(t.marginRight??"0",10);n>0&&(document.body.style.paddingRight=`${r}px`,document.body.style.marginRight=`${i}px`,document.body.style.setProperty("--scrollbar-width",`${n}px`),document.body.style.overflow="hidden"),kp&&(Gf=Ua(document,"touchmove",t=>{t.target===document.documentElement&&(t.touches.length>1||t.preventDefault())},{passive:!1})),Uh(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Zh(()=>()=>{null==Gf||Gf()}),{get lockMap(){return Yf},resetBodyStyle:function(){document.body.setAttribute("style",Pa(Xf)??""),document.body.style.removeProperty("--scrollbar-width"),kp&&(null==Gf||Gf()),vs(Xf,null)},scheduleCleanupIfNoNewLocks:function(e,n){t(),Qf=!0,eg=Date.now();const r=eg,i=null===e?24:e;Jf=window.setTimeout(()=>{Jf=null,eg===r&&(ig(Yf)?Qf=!1:(Qf=!1,n()))},i)},cancelPendingCleanup:t,ensureInitialStyleCaptured:e}});class rg{constructor(t,e=()=>null){Di(this,ii,qf()),Di(this,oi),Di(this,si,()=>null),Di(this,ai),_i(this,"locked"),Ii(this,oi,t),Ii(this,si,e),Ii(this,ai,ng.get()),Ri(this,ai)&&(Ri(this,ai).cancelPendingCleanup(),Ri(this,ai).ensureInitialStyleCaptured(),Ri(this,ai).lockMap.set(Ri(this,ii),Ri(this,oi)??!1),this.locked=vh(()=>Ri(this,ai).lockMap.get(Ri(this,ii))??!1,t=>Ri(this,ai).lockMap.set(Ri(this,ii),t)),Zh(()=>{if(Ri(this,ai).lockMap.delete(Ri(this,ii)),ig(Ri(this,ai).lockMap))return;const t=Ri(this,si).call(this);Ri(this,ai).scheduleCleanupIfNoNewLocks(t,()=>{Ri(this,ai).resetBodyStyle()})}))}}function ig(t){for(const[e,n]of t)if(n)return!0;return!1}function og(t,e){So(e,!0);let n=hc(e,"preventScroll",3,!0),r=hc(e,"restoreScrollDelay",3,null);n()&&new rg(n(),()=>r()),Ao()}ii=new WeakMap,oi=new WeakMap,si=new WeakMap,ai=new WeakMap;const sg=["top","right","bottom","left"],ag=Math.min,lg=Math.max,cg=Math.round,ug=Math.floor,dg=t=>({x:t,y:t}),hg={left:"right",right:"left",bottom:"top",top:"bottom"},pg={start:"end",end:"start"};function fg(t,e,n){return lg(t,ag(e,n))}function gg(t,e){return"function"==typeof t?t(e):t}function vg(t){return t.split("-")[0]}function mg(t){return t.split("-")[1]}function wg(t){return"x"===t?"y":"x"}function bg(t){return"y"===t?"height":"width"}const yg=new Set(["top","bottom"]);function xg(t){return yg.has(vg(t))?"y":"x"}function kg(t){return wg(xg(t))}function Cg(t){return t.replace(/start|end/g,t=>pg[t])}const Mg=["left","right"],$g=["right","left"],Wg=["top","bottom"],Sg=["bottom","top"];function Ag(t){return t.replace(/left|right|bottom|top/g,t=>hg[t])}function Og(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function Eg(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function Pg(t,e,n){let{reference:r,floating:i}=t;const o=xg(e),s=kg(e),a=bg(s),l=vg(e),c="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-i.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(mg(e)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1)}return p}async function Tg(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=gg(e,t),f=Og(p),g=a[h?"floating"===d?"reference":"floating":d],v=Eg(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),m="floating"===d?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),b=await(null==o.isElement?void 0:o.isElement(w))&&await(null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},y=Eg(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:w,strategy:l}):m);return{top:(v.top-y.top+f.top)/b.y,bottom:(y.bottom-v.bottom+f.bottom)/b.y,left:(v.left-y.left+f.left)/b.x,right:(y.right-v.right+f.right)/b.x}}function zg(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Lg(t){return sg.some(e=>t[e]>=0)}const Ng=new Set(["left","top"]);function _g(){return"undefined"!=typeof window}function Fg(t){return Ig(t)?(t.nodeName||"").toLowerCase():"#document"}function Rg(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Dg(t){var e;return null==(e=(Ig(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ig(t){return!!_g()&&(t instanceof Node||t instanceof Rg(t).Node)}function jg(t){return!!_g()&&(t instanceof Element||t instanceof Rg(t).Element)}function Bg(t){return!!_g()&&(t instanceof HTMLElement||t instanceof Rg(t).HTMLElement)}function Hg(t){return!(!_g()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof Rg(t).ShadowRoot)}const Vg=new Set(["inline","contents"]);function Kg(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=rv(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!Vg.has(i)}const Zg=new Set(["table","td","th"]);function Ug(t){return Zg.has(Fg(t))}const qg=[":popover-open",":modal"];function Yg(t){return qg.some(e=>{try{return t.matches(e)}catch(n){return!1}})}const Xg=["transform","translate","scale","rotate","perspective"],Gg=["transform","translate","scale","rotate","perspective","filter"],Jg=["paint","layout","strict","content"];function Qg(t){const e=tv(),n=jg(t)?rv(t):t;return Xg.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||Gg.some(t=>(n.willChange||"").includes(t))||Jg.some(t=>(n.contain||"").includes(t))}function tv(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ev=new Set(["html","body","#document"]);function nv(t){return ev.has(Fg(t))}function rv(t){return Rg(t).getComputedStyle(t)}function iv(t){return jg(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ov(t){if("html"===Fg(t))return t;const e=t.assignedSlot||t.parentNode||Hg(t)&&t.host||Dg(t);return Hg(e)?e.host:e}function sv(t){const e=ov(t);return nv(e)?t.ownerDocument?t.ownerDocument.body:t.body:Bg(e)&&Kg(e)?e:sv(e)}function av(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=sv(t),o=i===(null==(r=t.ownerDocument)?void 0:r.body),s=Rg(i);if(o){const t=lv(s);return e.concat(s,s.visualViewport||[],Kg(i)?i:[],t&&n?av(t):[])}return e.concat(i,av(i,[],n))}function lv(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function cv(t){const e=rv(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Bg(t),o=i?t.offsetWidth:n,s=i?t.offsetHeight:r,a=cg(n)!==o||cg(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function uv(t){return jg(t)?t:t.contextElement}function dv(t){const e=uv(t);if(!Bg(e))return dg(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=cv(e);let s=(o?cg(n.width):n.width)/r,a=(o?cg(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const hv=dg(0);function pv(t){const e=Rg(t);return tv()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:hv}function fv(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),o=uv(t);let s=dg(1);e&&(r?jg(r)&&(s=dv(r)):s=dv(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==Rg(t))&&e}(o,n,r)?pv(o):dg(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const t=Rg(o),e=r&&jg(r)?Rg(r):r;let n=t,i=lv(n);for(;i&&r&&e!==n;){const t=dv(i),e=i.getBoundingClientRect(),r=rv(i),o=e.left+(i.clientLeft+parseFloat(r.paddingLeft))*t.x,s=e.top+(i.clientTop+parseFloat(r.paddingTop))*t.y;l*=t.x,c*=t.y,u*=t.x,d*=t.y,l+=o,c+=s,n=Rg(i),i=lv(n)}}return Eg({width:u,height:d,x:l,y:c})}function gv(t,e){const n=iv(t).scrollLeft;return e?e.left+n:fv(Dg(t)).left+n}function vv(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-gv(t,n),y:n.top+e.scrollTop}}const mv=new Set(["absolute","fixed"]);function wv(t,e,n){let r;if("viewport"===e)r=function(t,e){const n=Rg(t),r=Dg(t),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const t=tv();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,l=i.offsetTop)}const c=gv(r);if(c<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-e.clientWidth-i);s<=25&&(o-=s)}else c<=25&&(o+=c);return{width:o,height:s,x:a,y:l}}(t,n);else if("document"===e)r=function(t){const e=Dg(t),n=iv(t),r=t.ownerDocument.body,i=lg(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=lg(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+gv(t);const a=-n.scrollTop;return"rtl"===rv(r).direction&&(s+=lg(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(Dg(t));else if(jg(e))r=function(t,e){const n=fv(t,!0,"fixed"===e),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=Bg(t)?dv(t):dg(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:i*o.x,y:r*o.y}}(e,n);else{const n=pv(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Eg(r)}function bv(t,e){const n=ov(t);return!(n===e||!jg(n)||nv(n))&&("fixed"===rv(n).position||bv(n,e))}function yv(t,e,n){const r=Bg(e),i=Dg(e),o="fixed"===n,s=fv(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const l=dg(0);function c(){l.x=gv(i)}if(r||!r&&!o)if(("body"!==Fg(e)||Kg(i))&&(a=iv(e)),r){const t=fv(e,!0,o,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&c();o&&!r&&i&&c();const u=!i||r||o?dg(0):vv(i,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}function xv(t){return"static"===rv(t).position}function kv(t,e){if(!Bg(t)||"fixed"===rv(t).position)return null;if(e)return e(t);let n=t.offsetParent;return Dg(t)===n&&(n=n.ownerDocument.body),n}function Cv(t,e){const n=Rg(t);if(Yg(t))return n;if(!Bg(t)){let e=ov(t);for(;e&&!nv(e);){if(jg(e)&&!xv(e))return e;e=ov(e)}return n}let r=kv(t,e);for(;r&&Ug(r)&&xv(r);)r=kv(r,e);return r&&nv(r)&&xv(r)&&!Qg(r)?n:r||function(t){let e=ov(t);for(;Bg(e)&&!nv(e);){if(Qg(e))return e;if(Yg(e))return null;e=ov(e)}return null}(t)||n}const Mv={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const o="fixed"===i,s=Dg(r),a=!!e&&Yg(e.floating);if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=dg(1);const u=dg(0),d=Bg(r);if((d||!d&&!o)&&(("body"!==Fg(r)||Kg(s))&&(l=iv(r)),Bg(r))){const t=fv(r);c=dv(r),u.x=t.x+r.clientLeft,u.y=t.y+r.clientTop}const h=!s||d||o?dg(0):vv(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:Dg,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[..."clippingAncestors"===n?Yg(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let r=av(t,[],!1).filter(t=>jg(t)&&"body"!==Fg(t)),i=null;const o="fixed"===rv(t).position;let s=o?ov(t):t;for(;jg(s)&&!nv(s);){const e=rv(s),n=Qg(s);n||"fixed"!==e.position||(i=null),(o?!n&&!i:!n&&"static"===e.position&&i&&mv.has(i.position)||Kg(s)&&!n&&bv(t,s))?r=r.filter(t=>t!==s):i=e,s=ov(s)}return e.set(t,r),r}(e,this._c):[].concat(n),r],s=o[0],a=o.reduce((t,n)=>{const r=wv(e,n,i);return t.top=lg(r.top,t.top),t.right=ag(r.right,t.right),t.bottom=ag(r.bottom,t.bottom),t.left=lg(r.left,t.left),t},wv(e,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Cv,getElementRects:async function(t){const e=this.getOffsetParent||Cv,n=this.getDimensions,r=await n(t.floating);return{reference:yv(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=cv(t);return{width:e,height:n}},getScale:dv,isElement:jg,isRTL:function(t){return"rtl"===rv(t).direction}};function $v(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Wv=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=e,l=await async function(t,e){const{placement:n,platform:r,elements:i}=t,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),s=vg(n),a=mg(n),l="y"===xg(n),c=Ng.has(s)?-1:1,u=o&&l?-1:1,d=gg(e,t);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},Sv=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=gg(t,e),c={x:n,y:r},u=await Tg(e,l),d=xg(vg(i)),h=wg(d);let p=c[h],f=c[d];if(o){const t="y"===h?"bottom":"right";p=fg(p+u["y"===h?"top":"left"],p,p-u[t])}if(s){const t="y"===d?"bottom":"right";f=fg(f+u["y"===d?"top":"left"],f,f-u[t])}const g=a.fn({...e,[h]:p,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:o,[d]:s}}}}}},Av=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...v}=gg(t,e);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const m=vg(i),w=xg(a),b=vg(a)===a,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(b||!g?[Ag(a)]:function(t){const e=Ag(t);return[Cg(t),e,Cg(e)]}(a)),k="none"!==f;!h&&k&&x.push(...function(t,e,n,r){const i=mg(t);let o=function(t,e,n){switch(t){case"top":case"bottom":return n?e?$g:Mg:e?Mg:$g;case"left":case"right":return e?Wg:Sg;default:return[]}}(vg(t),"start"===n,r);return i&&(o=o.map(t=>t+"-"+i),e&&(o=o.concat(o.map(Cg)))),o}(a,g,f,y));const C=[a,...x],M=await Tg(e,v),$=[];let W=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&$.push(M[m]),d){const t=function(t,e,n){void 0===n&&(n=!1);const r=mg(t),i=kg(t),o=bg(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=Ag(s)),[s,Ag(s)]}(i,s,y);$.push(M[t[0]],M[t[1]])}if(W=[...W,{placement:i,overflows:$}],!$.every(t=>t<=0)){var S,A;const t=((null==(S=o.flip)?void 0:S.index)||0)+1,e=C[t];if(e&&("alignment"!==d||w===xg(e)||W.every(t=>xg(t.placement)!==w||t.overflows[0]>0)))return{data:{index:t,overflows:W},reset:{placement:e}};let n=null==(A=W.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var O;const t=null==(O=W.filter(t=>{if(k){const e=xg(t.placement);return e===w||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:O[0];t&&(n=t);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}},Ov=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:i,rects:o,platform:s,elements:a}=e,{apply:l=()=>{},...c}=gg(t,e),u=await Tg(e,c),d=vg(i),h=mg(i),p="y"===xg(i),{width:f,height:g}=o.floating;let v,m;"top"===d||"bottom"===d?(v=d,m=h===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=d,v="end"===h?"top":"bottom");const w=g-u.top-u.bottom,b=f-u.left-u.right,y=ag(g-u[v],w),x=ag(f-u[m],b),k=!e.middlewareData.shift;let C=y,M=x;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(M=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(C=w),k&&!h){const t=lg(u.left,0),e=lg(u.right,0),n=lg(u.top,0),r=lg(u.bottom,0);p?M=f-2*(0!==t||0!==e?t+e:lg(u.left,u.right)):C=g-2*(0!==n||0!==r?n+r:lg(u.top,u.bottom))}await l({...e,availableWidth:M,availableHeight:C});const $=await s.getDimensions(a.floating);return f!==$.width||g!==$.height?{reset:{rects:!0}}:{}}}},Ev=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...i}=gg(t,e);switch(r){case"referenceHidden":{const t=zg(await Tg(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:Lg(t)}}}case"escaped":{const t=zg(await Tg(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:Lg(t)}}}default:return{}}}}},Pv=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=gg(t,e)||{};if(null==c)return{};const d=Og(u),h={x:n,y:r},p=kg(i),f=bg(p),g=await s.getDimensions(c),v="y"===p,m=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",y=o.reference[f]+o.reference[p]-h[p]-o.floating[f],x=h[p]-o.reference[p],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let C=k?k[b]:0;C&&await(null==s.isElement?void 0:s.isElement(k))||(C=a.floating[b]||o.floating[f]);const M=y/2-x/2,$=C/2-g[f]/2-1,W=ag(d[m],$),S=ag(d[w],$),A=W,O=C-g[f]-S,E=C/2-g[f]/2+M,P=fg(A,E,O),T=!l.arrow&&null!=mg(i)&&E!==P&&o.reference[f]/2-(E<A?W:S)-g[f]/2<0,z=T?E<A?E-A:E-O:0;return{[p]:h[p]+z,data:{[p]:P,centerOffset:E-P-z,...T&&{alignmentOffset:z}},reset:T}}}),Tv=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=gg(t,e),u={x:n,y:r},d=xg(i),h=wg(d);let p=u[h],f=u[d];const g=gg(a,e),v="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const t="y"===h?"height":"width",e=o.reference[h]-o.floating[t]+v.mainAxis,n=o.reference[h]+o.reference[t]-v.mainAxis;p<e?p=e:p>n&&(p=n)}if(c){var m,w;const t="y"===h?"width":"height",e=Ng.has(vg(i)),n=o.reference[d]-o.floating[t]+(e&&(null==(m=s.offset)?void 0:m[d])||0)+(e?0:v.crossAxis),r=o.reference[d]+o.reference[t]+(e?0:(null==(w=s.offset)?void 0:w[d])||0)-(e?v.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[h]:p,[d]:f}}}};function zv(t){return"function"==typeof t?t():t}function Lv(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Nv(t,e){const n=Lv(t);return Math.round(e*n)/n}function _v(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}const Fv={top:"bottom",right:"left",bottom:"top",left:"right"},Rv=new np("Floating.Root"),Dv=new np("Floating.Content"),Iv=new np("Floating.Root");class jv{constructor(){_i(this,"anchorNode",yh(null)),_i(this,"customAnchorNode",yh(null)),_i(this,"triggerNode",yh(null)),Is(()=>{this.customAnchorNode.current?"string"==typeof this.customAnchorNode.current?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?Iv.set(new jv):Rv.set(new jv)}}li=new WeakMap,ci=new WeakMap,ui=new WeakMap,di=new WeakMap,hi=new WeakMap,pi=new WeakMap,fi=new WeakMap,gi=new WeakMap,vi=new WeakMap,mi=new WeakMap,wi=new WeakMap,bi=new WeakMap,yi=new WeakMap,xi=new WeakMap,ki=new WeakMap,Ci=new WeakMap,Mi=new WeakMap,$i=new WeakMap,Wi=new WeakMap,Si=new WeakMap,Ai=new WeakMap,Oi=new WeakMap,Ei=new WeakMap,Pi=new WeakMap;let Bv=class t{constructor(t,e){_i(this,"opts"),_i(this,"root"),_i(this,"contentRef",yh(null)),_i(this,"wrapperRef",yh(null)),_i(this,"arrowRef",yh(null)),_i(this,"contentAttachment",tp(this.contentRef)),_i(this,"wrapperAttachment",tp(this.wrapperRef)),_i(this,"arrowAttachment",tp(this.arrowRef)),_i(this,"arrowId",yh(qf())),Di(this,li,as(()=>"string"==typeof this.opts.style?Dh(this.opts.style):this.opts.style?void 0:{})),Di(this,ci),Di(this,ui,new sp(()=>this.arrowRef.current??void 0)),Di(this,di,as(()=>{var t;return(null==(t=Ri(this,ui))?void 0:t.width)??0})),Di(this,hi,as(()=>{var t;return(null==(t=Ri(this,ui))?void 0:t.height)??0})),Di(this,pi,as(()=>{var t;return(null==(t=this.opts.side)?void 0:t.current)+("center"!==this.opts.align.current?`-${this.opts.align.current}`:"")})),Di(this,fi,as(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current])),Di(this,gi,as(()=>Pa(Ri(this,fi)).length>0)),Di(this,vi,as(()=>({padding:this.opts.collisionPadding.current,boundary:Pa(Ri(this,fi)).filter(Ap),altBoundary:this.hasExplicitBoundaries}))),Di(this,mi,fs(void 0)),Di(this,wi,fs(void 0)),Di(this,bi,fs(void 0)),Di(this,yi,fs(void 0)),Di(this,xi,as(()=>{return[Wv({mainAxis:this.opts.sideOffset.current+Pa(Ri(this,hi)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Sv({mainAxis:!0,crossAxis:!1,limiter:"partial"===this.opts.sticky.current?Tv():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Av({...this.detectOverflowOptions}),Ov({...this.detectOverflowOptions,apply:({rects:t,availableWidth:e,availableHeight:n})=>{const{width:r,height:i}=t.reference;vs(Ri(this,mi),e,!0),vs(Ri(this,wi),n,!0),vs(Ri(this,bi),r,!0),vs(Ri(this,yi),i,!0)}}),this.arrowRef.current&&Pv({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),(t={arrowWidth:Pa(Ri(this,di)),arrowHeight:Pa(Ri(this,hi))},{name:"transformOrigin",options:t,fn(e){var n,r,i;const{placement:o,rects:s,middlewareData:a}=e,l=0!==(null==(n=a.arrow)?void 0:n.centerOffset),c=l?0:t.arrowWidth,u=l?0:t.arrowHeight,[d,h]=Vv(o),p={start:"0%",center:"50%",end:"100%"}[h],f=((null==(r=a.arrow)?void 0:r.x)??0)+c/2,g=((null==(i=a.arrow)?void 0:i.y)??0)+u/2;let v="",m="";return"bottom"===d?(v=l?p:`${f}px`,m=-u+"px"):"top"===d?(v=l?p:`${f}px`,m=`${s.floating.height+u}px`):"right"===d?(v=-u+"px",m=l?p:`${g}px`):"left"===d&&(v=`${s.floating.width+u}px`,m=l?p:`${g}px`),{data:{x:v,y:m}}}}),this.opts.hideWhenDetached.current&&Ev({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean);var t})),_i(this,"floating"),Di(this,ki,as(()=>Vv(this.floating.placement)[0])),Di(this,Ci,as(()=>Vv(this.floating.placement)[1])),Di(this,Mi,as(()=>{var t;return(null==(t=this.floating.middlewareData.arrow)?void 0:t.x)??0})),Di(this,$i,as(()=>{var t;return(null==(t=this.floating.middlewareData.arrow)?void 0:t.y)??0})),Di(this,Wi,as(()=>{var t;return 0!==(null==(t=this.floating.middlewareData.arrow)?void 0:t.centerOffset)})),Di(this,Si,fs()),Di(this,Ai,as(()=>Fv[this.placedSide])),Di(this,Oi,as(()=>{var t,e,n;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":`${null==(t=this.floating.middlewareData.transformOrigin)?void 0:t.x} ${null==(e=this.floating.middlewareData.transformOrigin)?void 0:e.y}`,"--bits-floating-available-width":`${Pa(Ri(this,mi))}px`,"--bits-floating-available-height":`${Pa(Ri(this,wi))}px`,"--bits-floating-anchor-width":`${Pa(Ri(this,bi))}px`,"--bits-floating-anchor-height":`${Pa(Ri(this,yi))}px`,...(null==(n=this.floating.middlewareData.hide)?void 0:n.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...Pa(Ri(this,li))},dir:this.opts.dir.current,...this.wrapperAttachment}})),Di(this,Ei,as(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Bh({...Pa(Ri(this,li))}),...this.contentAttachment}))),Di(this,Pi,as(()=>({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=e,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),ip(()=>t.customAnchor.current,t=>{this.root.customAnchorNode.current=t}),this.floating=function(t){const e=t.whileElementsMounted,n=as(()=>zv(t.open)??!0),r=as(()=>zv(t.middleware)),i=as(()=>zv(t.transform)??!0),o=as(()=>zv(t.placement)??"bottom"),s=as(()=>zv(t.strategy)??"absolute"),a=as(()=>zv(t.sideOffset)??0),l=as(()=>zv(t.alignOffset)??0),c=t.reference;let u=fs(0),d=fs(0);const h=yh(null);let p=fs(ys(Pa(s))),f=fs(ys(Pa(o))),g=fs(ys({})),v=fs(!1);const m=as(()=>{const t=h.current?Nv(h.current,Pa(u)):Pa(u),e=h.current?Nv(h.current,Pa(d)):Pa(d);return Pa(i)?{position:Pa(p),left:"0",top:"0",transform:`translate(${t}px, ${e}px)`,...h.current&&Lv(h.current)>=1.5&&{willChange:"transform"}}:{position:Pa(p),left:`${t}px`,top:`${e}px`}});let w;function b(){null!==c.current&&null!==h.current&&((t,e,n)=>{const r=new Map,i={platform:Mv,...n},o={...i.platform,_c:r};return(async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=Pg(c,r,l),h=r,p={},f=0;for(let g=0;g<a.length;g++){const{name:n,fn:o}=a[g],{x:v,y:m,data:w,reset:b}=await o({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:c,platform:s,elements:{reference:t,floating:e}});u=null!=v?v:u,d=null!=m?m:d,p={...p,[n]:{...p[n],...w}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):b.rects),({x:u,y:d}=Pg(c,h,l))),g=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:p}})(t,e,{...i,platform:o})})(c.current,h.current,{middleware:Pa(r),placement:Pa(o),strategy:Pa(s)}).then(t=>{if(!Pa(n)&&0!==Pa(u)&&0!==Pa(d)){const e=Math.max(Math.abs(Pa(a)),Math.abs(Pa(l)),15);if(t.x<=e&&t.y<=e)return}vs(u,t.x,!0),vs(d,t.y,!0),vs(p,t.strategy,!0),vs(f,t.placement,!0),vs(g,t.middlewareData,!0),vs(v,!0)})}function y(){"function"==typeof w&&(w(),w=void 0)}return Is(b),Is(function(){y(),void 0!==e?null!==c.current&&null!==h.current&&(w=e(c.current,h.current,b)):b()}),Is(function(){Pa(n)||vs(v,!1)}),Is(()=>y),{floating:h,reference:c,get strategy(){return Pa(p)},get placement(){return Pa(f)},get middlewareData(){return Pa(g)},get isPositioned(){return Pa(v)},get floatingStyles(){return Pa(m)},get update(){return b}}}({strategy:()=>this.opts.strategy.current,placement:()=>Pa(Ri(this,pi)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...t)=>{var e;return function(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=uv(t),u=i||o?[...c?av(c):[],...av(e)]:[];u.forEach(t=>{i&&t.addEventListener("scroll",n,{passive:!0}),o&&t.addEventListener("resize",n)});const d=c&&a?function(t,e){let n,r=null;const i=Dg(t);function o(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();const c=t.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(a||e(),!h||!p)return;const f={rootMargin:-ug(d)+"px "+-ug(i.clientWidth-(u+h))+"px "+-ug(i.clientHeight-(d+p))+"px "+-ug(u)+"px",threshold:lg(0,ag(1,l))||1};let g=!0;function v(e){const r=e[0].intersectionRatio;if(r!==l){if(!g)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||$v(c,t.getBoundingClientRect())||s(),g=!1}try{r=new IntersectionObserver(v,{...f,root:i.ownerDocument})}catch(m){r=new IntersectionObserver(v,f)}r.observe(t)}(!0),o}(c,n):null;let h,p=-1,f=null;s&&(f=new ResizeObserver(t=>{let[r]=t;r&&r.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var t;null==(t=f)||t.observe(e)})),n()}),c&&!l&&f.observe(c),f.observe(e));let g=l?fv(t):null;return l&&function e(){const r=fv(t);g&&!$v(g,r)&&n(),g=r,h=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach(t=>{i&&t.removeEventListener("scroll",n),o&&t.removeEventListener("resize",n)}),null==d||d(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(h)}}(...t,{animationFrame:"always"===(null==(e=Ri(this,ci))?void 0:e.current)})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Is(()=>{var t;this.floating.isPositioned&&(null==(t=this.opts.onPlaced)||t.current())}),ip(()=>this.contentRef.current,t=>{if(!t)return;const e=Jh(t);this.contentZIndex=e.getComputedStyle(t).zIndex}),Is(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(e,n=!1){return n?Dv.set(new t(e,Iv.get())):Dv.set(new t(e,Rv.get()))}get hasExplicitBoundaries(){return Pa(Ri(this,gi))}set hasExplicitBoundaries(t){vs(Ri(this,gi),t)}get detectOverflowOptions(){return Pa(Ri(this,vi))}set detectOverflowOptions(t){vs(Ri(this,vi),t)}get middleware(){return Pa(Ri(this,xi))}set middleware(t){vs(Ri(this,xi),t)}get placedSide(){return Pa(Ri(this,ki))}set placedSide(t){vs(Ri(this,ki),t)}get placedAlign(){return Pa(Ri(this,Ci))}set placedAlign(t){vs(Ri(this,Ci),t)}get arrowX(){return Pa(Ri(this,Mi))}set arrowX(t){vs(Ri(this,Mi),t)}get arrowY(){return Pa(Ri(this,$i))}set arrowY(t){vs(Ri(this,$i),t)}get cannotCenterArrow(){return Pa(Ri(this,Wi))}set cannotCenterArrow(t){vs(Ri(this,Wi),t)}get contentZIndex(){return Pa(Ri(this,Si))}set contentZIndex(t){vs(Ri(this,Si),t,!0)}get arrowBaseSide(){return Pa(Ri(this,Ai))}set arrowBaseSide(t){vs(Ri(this,Ai),t)}get wrapperProps(){return Pa(Ri(this,Oi))}set wrapperProps(t){vs(Ri(this,Oi),t)}get props(){return Pa(Ri(this,Ei))}set props(t){vs(Ri(this,Ei),t)}get arrowStyle(){return Pa(Ri(this,Pi))}set arrowStyle(t){vs(Ri(this,Pi),t)}};class Hv{constructor(t,e){_i(this,"opts"),_i(this,"root"),this.opts=t,this.root=e,t.virtualEl&&t.virtualEl.current?e.triggerNode=bh(t.virtualEl.current):e.triggerNode=t.ref}static create(t,e=!1){return new Hv(t,e?Iv.get():Rv.get())}}function Vv(t){const[e,n="center"]=t.split("-");return[e,n]}var Kv=tl("<!> <!>",1);function Zv(t,e){So(e,!0);let n=hc(e,"interactOutsideBehavior",3,"close"),r=hc(e,"trapFocus",3,!0),i=hc(e,"isValidEvent",3,()=>!1),o=hc(e,"customAnchor",3,null),s=hc(e,"isStatic",3,!1),a=hc(e,"tooltip",3,!1),l=cc(e,["$$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"]);{const c=(t,o)=>{var s=Kv(),a=Ps(s),c=t=>{og(0,{get preventScroll(){return e.preventScroll}})},u=t=>{var n=il(),r=Ps(n),i=t=>{og(0,{get preventScroll(){return e.preventScroll}})};pl(r,t=>{e.forceMount||t(i)},!0),ol(t,n)};pl(a,t=>{e.forceMount&&e.enabled?t(c):t(u,!1)});{const t=(t,r)=>{!function(t,e){So(e,!0);let n=hc(e,"escapeKeydownBehavior",3,"close"),r=hc(e,"onEscapeKeydown",3,Ep);jf.create({escapeKeydownBehavior:vh(()=>n()),onEscapeKeydown:vh(()=>r()),enabled:vh(()=>e.enabled),ref:e.ref});var i=il();xl(Ps(i),()=>e.children??Qi),ol(t,i),Ao()}(t,{get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get enabled(){return e.enabled},get ref(){return e.ref},children:(t,s)=>{{const s=(t,n)=>{!function(t,e){So(e,!0);let n=hc(e,"preventOverflowTextSelection",3,!0),r=hc(e,"onPointerDown",3,Ep),i=hc(e,"onPointerUp",3,Ep);Kf.create({id:vh(()=>e.id),onPointerDown:vh(()=>r()),onPointerUp:vh(()=>i()),enabled:vh(()=>e.enabled&&n()),ref:e.ref});var o=il();xl(Ps(o),()=>e.children??Qi),ol(t,o),Ao()}(t,{get id(){return e.id},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get enabled(){return e.enabled},get ref(){return e.ref},children:(t,i)=>{var s=il(),a=Ps(s);{let t=as(()=>({props:Kh(l,null==o?void 0:o().props,null==n?void 0:n().props,null==r?void 0:r().props,{style:{pointerEvents:"auto"}}),wrapperProps:null==o?void 0:o().wrapperProps}));xl(a,()=>e.popper??Qi,()=>Pa(t))}ol(t,s)},$$slots:{default:!0}})};!function(t,e){So(e,!0);let n=hc(e,"interactOutsideBehavior",3,"close"),r=hc(e,"onInteractOutside",3,Ep),i=hc(e,"onFocusOutside",3,Ep),o=hc(e,"isValidEvent",3,()=>!1);const s=Df.create({id:vh(()=>e.id),interactOutsideBehavior:vh(()=>n()),onInteractOutside:vh(()=>r()),enabled:vh(()=>e.enabled),onFocusOutside:vh(()=>i()),isValidEvent:vh(()=>o()),ref:e.ref});var a=il();xl(Ps(a),()=>e.children??Qi,()=>({props:s.props})),ol(t,a),Ao()}(t,{get id(){return e.id},get onInteractOutside(){return e.onInteractOutside},get onFocusOutside(){return e.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return e.enabled},get ref(){return e.ref},children:s,$$slots:{default:!0}})}},$$slots:{default:!0}})};!function(t,e){So(e,!0);let n=hc(e,"enabled",3,!1),r=hc(e,"trapFocus",3,!1),i=hc(e,"loop",3,!1),o=hc(e,"onCloseAutoFocus",3,Ep),s=hc(e,"onOpenAutoFocus",3,Ep);const a=Vf.use({enabled:vh(()=>n()),trap:vh(()=>r()),loop:i(),onCloseAutoFocus:vh(()=>o()),onOpenAutoFocus:vh(()=>s()),ref:e.ref});var l=il();xl(Ps(l),()=>e.focusScope??Qi,()=>({props:a.props})),ol(t,l),Ao()}(Ts(a,2),{get onOpenAutoFocus(){return e.onOpenAutoFocus},get onCloseAutoFocus(){return e.onCloseAutoFocus},get loop(){return e.loop},get enabled(){return e.enabled},get trapFocus(){return r()},get forceMount(){return e.forceMount},get ref(){return e.ref},focusScope:t,$$slots:{focusScope:!0}})}ol(t,s)};!function(t,e){let n=hc(e,"isStatic",3,!1),r=cc(e,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=il(),o=Ps(i),s=t=>{!function(t,e){So(e,!0),pc(()=>{var t;null==(t=e.onPlaced)||t.call(e)});var n=il();xl(Ps(n),()=>e.content??Qi,()=>({props:{},wrapperProps:{}})),ol(t,n),Ao()}(t,{get content(){return e.content},get onPlaced(){return e.onPlaced}})},a=t=>{!function(t,e){So(e,!0);let n=hc(e,"side",3,"bottom"),r=hc(e,"sideOffset",3,0),i=hc(e,"align",3,"center"),o=hc(e,"alignOffset",3,0),s=hc(e,"arrowPadding",3,0),a=hc(e,"avoidCollisions",3,!0),l=hc(e,"collisionBoundary",19,()=>[]),c=hc(e,"collisionPadding",3,0),u=hc(e,"hideWhenDetached",3,!1),d=hc(e,"onPlaced",3,()=>{}),h=hc(e,"sticky",3,"partial"),p=hc(e,"updatePositionStrategy",3,"optimized"),f=hc(e,"strategy",3,"fixed"),g=hc(e,"dir",3,"ltr"),v=hc(e,"style",19,()=>({})),m=hc(e,"wrapperId",19,qf),w=hc(e,"customAnchor",3,null),b=hc(e,"tooltip",3,!1);const y=Bv.create({side:vh(()=>n()),sideOffset:vh(()=>r()),align:vh(()=>i()),alignOffset:vh(()=>o()),id:vh(()=>e.id),arrowPadding:vh(()=>s()),avoidCollisions:vh(()=>a()),collisionBoundary:vh(()=>l()),collisionPadding:vh(()=>c()),hideWhenDetached:vh(()=>u()),onPlaced:vh(()=>d()),sticky:vh(()=>h()),updatePositionStrategy:vh(()=>p()),strategy:vh(()=>f()),dir:vh(()=>g()),style:vh(()=>v()),enabled:vh(()=>e.enabled),wrapperId:vh(()=>m()),customAnchor:vh(()=>w())},b()),x=as(()=>Kh(y.wrapperProps,{style:{pointerEvents:"auto"}}));var k=il();xl(Ps(k),()=>e.content??Qi,()=>({props:y.props,wrapperProps:Pa(x)})),ol(t,k),Ao()}(t,dc({get content(){return e.content},get onPlaced(){return e.onPlaced}},()=>r))};pl(o,t=>{n()?t(s):t(a,!1)}),ol(t,i)}(t,{get isStatic(){return s()},get id(){return e.id},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return o()},get enabled(){return e.enabled},get tooltip(){return a()},content:c,$$slots:{content:!0}})}Ao()}var Uv=tl("<div><!></div>");function qv(t,e){const n=sl();So(e,!0);let r=hc(e,"ref",15,null),i=hc(e,"id",19,()=>Pp(n)),o=hc(e,"disabled",3,!1),s=hc(e,"onSelect",3,Ep),a=hc(e,"closeOnSelect",3,!0),l=cc(e,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]);const c=Ff.create({id:vh(()=>i()),disabled:vh(()=>o()),onSelect:vh(()=>s()),ref:vh(()=>r(),t=>r(t)),closeOnSelect:vh(()=>a())}),u=as(()=>Kh(l,c.props));var d=il(),h=Ps(d),p=t=>{var n=il();xl(Ps(n),()=>e.child,()=>({props:Pa(u)})),ol(t,n)},f=t=>{var n=Uv();jl(n,()=>({...Pa(u)})),xl(Es(n),()=>e.children??Qi),ol(t,n)};pl(h,t=>{e.child?t(p):t(f,!1)}),ol(t,d),Ao()}function Yv(t,e){So(e,!0);let n=hc(e,"open",15,!1),r=hc(e,"dir",3,"ltr"),i=hc(e,"onOpenChange",3,Ep),o=hc(e,"onOpenChangeComplete",3,Ep),s=hc(e,"_internal_variant",3,"dropdown-menu");const a=zf.create({variant:vh(()=>s()),dir:vh(()=>r()),onClose:()=>{n(!1),i()(!1)}});Lf.create({open:vh(()=>n(),t=>{n(t),i()(t)}),onOpenChangeComplete:vh(()=>o())},a),function(t,e){So(e,!0);let n=hc(e,"tooltip",3,!1);jv.create(n());var r=il();xl(Ps(r),()=>e.children??Qi),ol(t,r),Ao()}(t,{children:(t,n)=>{var r=il();xl(Ps(r),()=>e.children??Qi),ol(t,r)},$$slots:{default:!0}}),Ao()}var Xv=tl("<div><div><!></div></div>"),Gv=tl("<div><div><!></div></div>");function Jv(t,e){const n=sl();So(e,!0);let r=hc(e,"id",19,()=>Pp(n)),i=hc(e,"ref",15,null),o=hc(e,"loop",3,!0),s=hc(e,"onInteractOutside",3,Ep),a=hc(e,"onEscapeKeydown",3,Ep),l=hc(e,"onCloseAutoFocus",3,Ep),c=hc(e,"forceMount",3,!1),u=hc(e,"trapFocus",3,!1),d=cc(e,["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus"]);const h=Nf.create({id:vh(()=>r()),loop:vh(()=>o()),ref:vh(()=>i(),t=>i(t)),onCloseAutoFocus:vh(()=>l())}),p=as(()=>Kh(d,h.props));function f(t){if(h.handleInteractOutside(t),!t.defaultPrevented&&(s()(t),!t.defaultPrevented)){if(t.target&&t.target instanceof Element){const e=`[${h.parentMenu.root.getBitsAttr("sub-content")}]`;if(t.target.closest(e))return}h.parentMenu.onClose()}}function g(t){a()(t),t.defaultPrevented||h.parentMenu.onClose()}var v=il(),m=Ps(v),w=t=>{{const n=(t,n)=>{let r=()=>null==n?void 0:n().wrapperProps;const i=as(()=>Kh(null==n?void 0:n().props,{style:_v("dropdown-menu")}));var o=il(),s=Ps(o),a=t=>{var n=il(),o=Ps(n);{let t=as(()=>({props:Pa(i),wrapperProps:r(),...h.snippetProps}));xl(o,()=>e.child,()=>Pa(t))}ol(t,n)},l=t=>{var n=Xv();jl(n,()=>({...r()}));var o=Es(n);jl(o,()=>({...Pa(i)})),xl(Es(o),()=>e.children??Qi),ol(t,n)};pl(s,t=>{e.child?t(a):t(l,!1)}),ol(t,o)};!function(t,e){let n=hc(e,"interactOutsideBehavior",3,"close"),r=hc(e,"trapFocus",3,!0),i=hc(e,"isValidEvent",3,()=>!1),o=hc(e,"customAnchor",3,null),s=hc(e,"isStatic",3,!1),a=cc(e,["$$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"]);Zv(t,dc({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return o()},get isStatic(){return s()},get enabled(){return e.enabled},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return e.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return e.onFocusOutside}},()=>a,{forceMount:!0}))}(t,dc(()=>Pa(p),()=>h.popperProps,{get ref(){return h.opts.ref},get enabled(){return h.parentMenu.opts.open.current},onInteractOutside:f,onEscapeKeydown:g,get trapFocus(){return u()},get loop(){return o()},forceMount:!0,get id(){return r()},popper:n,$$slots:{popper:!0}}))}},b=t=>{var n=il(),i=Ps(n),s=t=>{{const n=(t,n)=>{let r=()=>null==n?void 0:n().wrapperProps;const i=as(()=>Kh(null==n?void 0:n().props,{style:_v("dropdown-menu")}));var o=il(),s=Ps(o),a=t=>{var n=il(),o=Ps(n);{let t=as(()=>({props:Pa(i),wrapperProps:r(),...h.snippetProps}));xl(o,()=>e.child,()=>Pa(t))}ol(t,n)},l=t=>{var n=Gv();jl(n,()=>({...r()}));var o=Es(n);jl(o,()=>({...Pa(i)})),xl(Es(o),()=>e.children??Qi),ol(t,n)};pl(s,t=>{e.child?t(a):t(l,!1)}),ol(t,o)};!function(t,e){let n=hc(e,"interactOutsideBehavior",3,"close"),r=hc(e,"trapFocus",3,!0),i=hc(e,"isValidEvent",3,()=>!1),o=hc(e,"customAnchor",3,null),s=hc(e,"isStatic",3,!1),a=cc(e,["$$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"]);{const l=t=>{Zv(t,dc({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return o()},get isStatic(){return s()},get enabled(){return e.open},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return e.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return e.onFocusOutside},forceMount:!1,get ref(){return e.ref}},()=>a))};!function(t,e){So(e,!0);const n=new Lp({open:vh(()=>e.open),ref:e.ref});var r=il(),i=Ps(r),o=t=>{var r=il();xl(Ps(r),()=>e.presence??Qi,()=>({present:n.isPresent})),ol(t,r)};pl(i,t=>{(e.forceMount||e.open||n.isPresent)&&t(o)}),ol(t,r),Ao()}(t,{get open(){return e.open},get ref(){return e.ref},presence:l,$$slots:{presence:!0}})}}(t,dc(()=>Pa(p),()=>h.popperProps,{get ref(){return h.opts.ref},get open(){return h.parentMenu.opts.open.current},onInteractOutside:f,onEscapeKeydown:g,get trapFocus(){return u()},get loop(){return o()},forceMount:!1,get id(){return r()},popper:n,$$slots:{popper:!0}}))}};pl(i,t=>{c()||t(s)},!0),ol(t,n)};pl(m,t=>{c()?t(w):t(b,!1)}),ol(t,v),Ao()}var Qv=tl("<button><!></button>");function tm(t,e){const n=sl();So(e,!0);let r=hc(e,"id",19,()=>Pp(n)),i=hc(e,"ref",15,null),o=hc(e,"disabled",3,!1),s=hc(e,"type",3,"button"),a=cc(e,["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]);const l=Rf.create({id:vh(()=>r()),disabled:vh(()=>o()??!1),ref:vh(()=>i(),t=>i(t))}),c=as(()=>Kh(a,l.props,{type:s()}));!function(t,e){So(e,!0);let n=hc(e,"tooltip",3,!1);Hv.create({id:vh(()=>e.id),virtualEl:vh(()=>e.virtualEl),ref:e.ref},n());var r=il();xl(Ps(r),()=>e.children??Qi),ol(t,r),Ao()}(t,{get id(){return r()},get ref(){return l.opts.ref},children:(t,n)=>{var r=il(),i=Ps(r),o=t=>{var n=il();xl(Ps(n),()=>e.child,()=>({props:Pa(c)})),ol(t,n)},s=t=>{var n=Qv();jl(n,()=>({...Pa(c)})),xl(Es(n),()=>e.children??Qi),ol(t,n)};pl(i,t=>{e.child?t(o):t(s,!1)}),ol(t,r)},$$slots:{default:!0}}),Ao()}let em=fs(!1);const nm=class t{constructor(){Is(()=>(0===t._refs&&(t._cleanup=Bs(()=>{const t=[],e=t=>{vs(em,!1)};return t.push(Ua(document,"pointerdown",e,{capture:!0}),Ua(document,"pointermove",e,{capture:!0}),Ua(document,"keydown",t=>{vs(em,!0)},{capture:!0})),Ih(...t)})),t._refs++,()=>{var e;t._refs--,0===t._refs&&(vs(em,!1),null==(e=t._cleanup)||e.call(t))}))}get current(){return Pa(em)}set current(t){vs(em,t,!0)}};_i(nm,"_refs",0),_i(nm,"_cleanup");let rm=nm;var im=tl('<!> <p class="text-sm pointer-events-none">Logout</p>',1),om=tl("<!> <!>",1),sm=tl("<!> <!> <!>",1),am=tl('<div><div class="flex gap-6 items-center pl-10"><!> <div class="size-4 rounded-full bg-slate-600"></div></div> <!></div>');var lm=tl("<!> <!> <!>",1);function cm(e,n){So(n,!0),Wo("app",(e=>{const{projectId:n,wrapper:r}=e,i={win:new qc,navbar:new Yc,tabbar:new Xc,router:new Vd,auth:new Wc,pb:new t(th),project:new _c(n),folders:new Rc,pages:new Ic,events:new Sc,comments:new Zd,domains:new Gd,toolbar:new Oc(r),keys:new Ec,dom:new jc,environment:new Gc,hover:new Kd,home:new Jd};return Object.values(i).forEach(t=>{var e;t.init&&(null==(e=t.init)||e.call(t,i))}),eh("All modules initialized."),Object.values(i).forEach(t=>{var e;t.start&&(null==(e=t.start)||e.call(t))}),{modules:i}})({projectId:n.projectId,wrapper:n.wrapper}));var r=lm(),i=Ps(r);!function(t,e){So(e,!0);const{pages:n}=Qd(),r=as(()=>new Map([["filters",n.filters]]));var i=rh();vl(i,21,()=>Pa(r),gl,(t,e)=>{var n=as(()=>function(t){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const e=[];for(const n of t)if(e.push(n),2===e.length)break;return e}(Pa(e))),r=nh(),i=Es(r),o=Es(Ts(i));Ks(()=>{ll(i,`${Pa(n)[0]??""}: `),ll(o,Pa(n)[1])}),ol(t,r)}),ol(t,i),Ao()}(i,{});var o=Ts(i,2);lh(o,{}),function(t,e){So(e,!0);const{comments:n,win:r,toolbar:i}=Qd();pc(()=>{i.visible=!0});var o=am(),s=Es(o);!function(t){const e=cc({class:"h-16 shrink-0 mr-8"},["$$slots","$$events","$$legacy"]);var n=Ou();jl(n,()=>({viewBox:"0 0 56 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e})),ol(t,n)}(Es(s)),ud(Ts(s,2),{animate:"width",class:"flex items-center justify-end gap-2",children:(t,e)=>{var i=sm(),o=Ps(i),s=t=>{uh(t,{get icon(){return gu},iconSize:26,variant:"green",label:"Enable comments",title:"Enable comments"})};pl(o,t=>{n.canComment&&t(s)});var a=Ts(o,2);uh(a,{get active(){return r.opened},get icon(){return bu},variant:"sky",label:"Open inbox",title:"Open inbox",onclick:()=>r.toggle()}),function(t){So({},!0);const{toolbar:e,auth:n}=Qd();let r=ys({opened:!1,logo:!0});var i=il();kl(Ps(i),()=>Yv,(t,i)=>{i(t,{get open(){return r.opened},set open(t){r.opened=t},children:(t,i)=>{var o=om(),s=Ps(o);{const t=(t,e)=>{uh(t,dc({get icon(){return xu},label:"Open Menu",title:"Open Menu",get active(){return r.opened}},()=>null==e?void 0:e().props))};kl(s,()=>tm,(e,n)=>{n(e,{child:t,$$slots:{child:!0}})})}kl(Ts(s,2),()=>Hp,(t,r)=>{r(t,{get to(){return e.wrapper},children:(t,e)=>{var r=il();kl(Ps(r),()=>Jv,(t,e)=>{e(t,{align:"end",class:"bg-black/80 rim backdrop-blur-lg p-4 rounded-[12px] min-w-150 flex flex-col z-[1002]",sideOffset:8,children:(t,e)=>{var r=il();kl(Ps(r),()=>qv,(t,e)=>{e(t,{onclick:()=>n.logout(),class:"flex gap-6 items-center h-36 px-8 rounded-[8px] hover:bg-slate-500/20",children:(t,e)=>{var n=im();su(Ps(n),{get icon(){return Mu}}),ol(t,n)},$$slots:{default:!0}})}),ol(t,r)},$$slots:{default:!0}})}),ol(t,r)},$$slots:{default:!0}})}),ol(t,o)},$$slots:{default:!0}})}),ol(t,i),Ao()}(Ts(a,2)),ol(t,i)},$$slots:{default:!0}}),Ks(()=>El(o,1,Wl(["rim h-(--fubi-toolbar-height) bg-(--fubi-page-to-bg) px-4 touch:px-6 overflow-clip fixed bottom-4 left-1/2 -translate-x-1/2 text-white rounded-[16px] flex items-center justify-end gap-8 backdrop-blur-lg shadow-lg origin-bottom-right z-[1000]","transition-[scale,translate,width] duration-600 ease-out-expo origin-bottom-right","mouse:right-16 mouse:left-auto mouse:bottom-16 mouse:translate-x-0",!i.visible&&"translate-y-[calc(100%+var(--fubi-toolbar-bottom))] scale-80"]))),ol(t,o),Ao()}(Ts(o,2),{}),ol(e,r),Ao()}return function(t){if(!t)throw new Error("Please provide a projectId");const e=document.createElement("div");e.id="fubi-shadow-root";const n=e.attachShadow({mode:"open"});n.innerHTML='<style>/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-amber-600:oklch(66.6% .179 58.318);--color-yellow-500:oklch(79.5% .184 86.047);--color-green-200:oklch(92.5% .084 155.995);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-sky-700:oklch(50% .134 242.749);--color-sky-800:oklch(44.3% .11 240.79);--color-sky-900:oklch(39.1% .09 240.876);--color-sky-950:oklch(29.3% .066 243.157);--color-blue-600:oklch(54.6% .245 262.881);--color-indigo-500:oklch(58.5% .233 277.117);--color-purple-500:oklch(62.7% .265 303.9);--color-pink-500:oklch(65.6% .241 354.308);--color-slate-100:oklch(89.335% .00937 232.38);--color-slate-200:oklch(81.599% .01569 229.01);--color-slate-300:oklch(73.621% .02321 226.26);--color-slate-400:oklch(65.341% .0308 231.74);--color-slate-500:oklch(56.892% .03261 230.77);--color-slate-600:oklch(47.781% .02727 232.41);--color-gray-500:oklch(55.1% .027 264.364);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.0625rem;--text-xs:.75rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-xl:1.25rem;--font-weight-medium:500;--font-weight-semibold:600;--radius-lg:.5rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--blur-lg:16px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--ease-out-cubic:cubic-bezier(.2,.6,.35,1);--ease-in-out-cubic:cubic-bezier(.6,0,.35,1)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-4{inset:calc(var(--spacing)*4)}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.top-7{top:calc(var(--spacing)*7)}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.right-auto{right:auto}.-bottom-0\\.5{bottom:calc(var(--spacing)*-.5)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-8{bottom:calc(var(--spacing)*8)}.bottom-auto{bottom:auto}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.left-8{left:calc(var(--spacing)*8)}.isolate{isolation:isolate}.z-10{z-index:10}.z-\\[8\\]{z-index:8}.z-\\[1000\\]{z-index:1000}.z-\\[1001\\]{z-index:1001}.z-\\[1002\\]{z-index:1002}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-4{margin-top:calc(var(--spacing)*4)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-8{margin-right:calc(var(--spacing)*8)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-14{width:calc(var(--spacing)*14);height:calc(var(--spacing)*14)}.size-16{width:calc(var(--spacing)*16);height:calc(var(--spacing)*16)}.size-20{width:calc(var(--spacing)*20);height:calc(var(--spacing)*20)}.size-22{width:calc(var(--spacing)*22);height:calc(var(--spacing)*22)}.size-24{width:calc(var(--spacing)*24);height:calc(var(--spacing)*24)}.size-28{width:calc(var(--spacing)*28);height:calc(var(--spacing)*28)}.size-29{width:calc(var(--spacing)*29);height:calc(var(--spacing)*29)}.size-32{width:calc(var(--spacing)*32);height:calc(var(--spacing)*32)}.size-36{width:calc(var(--spacing)*36);height:calc(var(--spacing)*36)}.h-\\(--fubi-toolbar-height\\){height:var(--fubi-toolbar-height)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-14{height:calc(var(--spacing)*14)}.h-16{height:calc(var(--spacing)*16)}.h-18{height:calc(var(--spacing)*18)}.h-24{height:calc(var(--spacing)*24)}.h-28{height:calc(var(--spacing)*28)}.h-32{height:calc(var(--spacing)*32)}.h-36{height:calc(var(--spacing)*36)}.h-40{height:calc(var(--spacing)*40)}.h-62{height:calc(var(--spacing)*62)}.h-\\[99dvh\\]{height:99dvh}.h-full{height:100%}.min-h-52{min-height:calc(var(--spacing)*52)}.w-28{width:calc(var(--spacing)*28)}.w-36{width:calc(var(--spacing)*36)}.w-50{width:calc(var(--spacing)*50)}.w-54{width:calc(var(--spacing)*54)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-250{max-width:calc(var(--spacing)*250)}.min-w-24{min-width:calc(var(--spacing)*24)}.min-w-40{min-width:calc(var(--spacing)*40)}.min-w-150{min-width:calc(var(--spacing)*150)}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.origin-bottom-right{transform-origin:100% 100%}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-\\[200\\%\\]{--tw-translate-x: -200% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[calc\\(100\\%\\+var\\(--fubi-toolbar-bottom\\)\\)\\]{--tw-translate-y:calc(100% + var(--fubi-toolbar-bottom));translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-80{--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-90{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-140{--tw-scale-x:140%;--tw-scale-y:140%;--tw-scale-z:140%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-\\[1\\.03\\]{scale:1.03}.-rotate-90{rotate:-90deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:calc(var(--spacing)*0)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-16{gap:calc(var(--spacing)*16)}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}:where(.divide-white\\/10>:not(:last-child)){border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){:where(.divide-white\\/10>:not(:last-child)){border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.overflow-auto{overflow:auto}.overflow-clip{overflow:clip}.rounded-\\(--fubi-rounded\\){border-radius:var(--fubi-rounded)}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[8px\\]{border-radius:8px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[12px\\]{border-radius:12px}.rounded-\\[16px\\]{border-radius:16px}.rounded-\\[20px\\]{border-radius:20px}.rounded-\\[24px\\]{border-radius:24px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.border-b-\\[0\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:.5px}.border-neutral-700{border-color:var(--color-neutral-700)}.border-transparent{border-color:#0000}.border-white\\/5{border-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.border-white\\/5{border-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.bg-\\(--fubi-page-to-bg\\){background-color:var(--fubi-page-to-bg)}.bg-amber-600\\/10{background-color:#dd74001a}@supports (color:color-mix(in lab,red,red)){.bg-amber-600\\/10{background-color:color-mix(in oklab,var(--color-amber-600)10%,transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-blue-600{background-color:var(--color-blue-600)}.bg-current\\/10{background-color:currentColor}@supports (color:color-mix(in lab,red,red)){.bg-current\\/10{background-color:color-mix(in oklab,currentcolor 10%,transparent)}}.bg-green-600{background-color:var(--color-green-600)}.bg-neutral-500\\/10{background-color:#7373731a}@supports (color:color-mix(in lab,red,red)){.bg-neutral-500\\/10{background-color:color-mix(in oklab,var(--color-neutral-500)10%,transparent)}}.bg-red-500\\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\\/20{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}}.bg-sky-500\\/10{background-color:#00a5ef1a}@supports (color:color-mix(in lab,red,red)){.bg-sky-500\\/10{background-color:color-mix(in oklab,var(--color-sky-500)10%,transparent)}}.bg-sky-600{background-color:var(--color-sky-600)}.bg-sky-900{background-color:var(--color-sky-900)}.bg-slate-500\\/5{background-color:#647b870d}@supports (color:color-mix(in lab,red,red)){.bg-slate-500\\/5{background-color:color-mix(in oklab,var(--color-slate-500)5%,transparent)}}.bg-slate-500\\/10{background-color:#647b871a}@supports (color:color-mix(in lab,red,red)){.bg-slate-500\\/10{background-color:color-mix(in oklab,var(--color-slate-500)10%,transparent)}}.bg-slate-500\\/15{background-color:#647b8726}@supports (color:color-mix(in lab,red,red)){.bg-slate-500\\/15{background-color:color-mix(in oklab,var(--color-slate-500)15%,transparent)}}.bg-slate-500\\/20{background-color:#647b8733}@supports (color:color-mix(in lab,red,red)){.bg-slate-500\\/20{background-color:color-mix(in oklab,var(--color-slate-500)20%,transparent)}}.bg-slate-500\\/30{background-color:#647b874d}@supports (color:color-mix(in lab,red,red)){.bg-slate-500\\/30{background-color:color-mix(in oklab,var(--color-slate-500)30%,transparent)}}.bg-slate-600{background-color:var(--color-slate-600)}.bg-transparent,.bg-white\\/0{background-color:#0000}@supports (color:color-mix(in lab,red,red)){.bg-white\\/0{background-color:color-mix(in oklab,var(--color-white)0%,transparent)}}.bg-white\\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.bg-white\\/5{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.bg-white\\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.bg-white\\/80{background-color:#fffc}@supports (color:color-mix(in lab,red,red)){.bg-white\\/80{background-color:color-mix(in oklab,var(--color-white)80%,transparent)}}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-\\(--fubi-page-from-bg\\){--tw-gradient-from:var(--fubi-page-from-bg);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-green-400{--tw-gradient-from:var(--color-green-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-neutral-900\\/0{--tw-gradient-from:#0000}@supports (color:color-mix(in lab,red,red)){.from-neutral-900\\/0{--tw-gradient-from:color-mix(in oklab,var(--color-neutral-900)0%,transparent)}}.from-neutral-900\\/0{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-sky-400{--tw-gradient-from:var(--color-sky-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-slate-400{--tw-gradient-from:var(--color-slate-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-\\(--fubi-page-to-bg\\){--tw-gradient-to:var(--fubi-page-to-bg);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-green-600{--tw-gradient-to:var(--color-green-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-neutral-900{--tw-gradient-to:var(--color-neutral-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-sky-600{--tw-gradient-to:var(--color-sky-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-slate-500{--tw-gradient-to:var(--color-slate-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.p-4{padding:calc(var(--spacing)*4)}.p-10{padding:calc(var(--spacing)*10)}.p-16{padding:calc(var(--spacing)*16)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.px-12{padding-inline:calc(var(--spacing)*12)}.px-16{padding-inline:calc(var(--spacing)*16)}.py-6{padding-block:calc(var(--spacing)*6)}.py-10{padding-block:calc(var(--spacing)*10)}.py-14{padding-block:calc(var(--spacing)*14)}.pt-\\(--fubi-navbar-height\\){padding-top:var(--fubi-navbar-height)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-16{padding-top:calc(var(--spacing)*16)}.pr-6{padding-right:calc(var(--spacing)*6)}.pr-8{padding-right:calc(var(--spacing)*8)}.pr-10{padding-right:calc(var(--spacing)*10)}.pr-16{padding-right:calc(var(--spacing)*16)}.pb-\\(--fubi-tabbar-height\\){padding-bottom:var(--fubi-tabbar-height)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-6{padding-left:calc(var(--spacing)*6)}.pl-10{padding-left:calc(var(--spacing)*10)}.pl-12{padding-left:calc(var(--spacing)*12)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-\\[13px\\]\\/none{font-size:13px;line-height:1}.text-\\[14px\\]\\/none{font-size:14px;line-height:1}.text-\\[18px\\]\\/none{font-size:18px;line-height:1}.text-base\\/none{font-size:var(--text-base);line-height:1}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\\/\\[130\\%\\]{font-size:var(--text-sm);line-height:130%}.text-xs\\/none{font-size:var(--text-xs);line-height:1}.text-\\[13px\\]{font-size:13px}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-amber-600{color:var(--color-amber-600)}.text-gray-500{color:var(--color-gray-500)}.text-green-200{color:var(--color-green-200)}.text-green-500{color:var(--color-green-500)}.text-indigo-500{color:var(--color-indigo-500)}.text-neutral-200{color:var(--color-neutral-200)}.text-neutral-400{color:var(--color-neutral-400)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-500\\/60{color:#73737399}@supports (color:color-mix(in lab,red,red)){.text-neutral-500\\/60{color:color-mix(in oklab,var(--color-neutral-500)60%,transparent)}}.text-pink-500{color:var(--color-pink-500)}.text-purple-500{color:var(--color-purple-500)}.text-red-200{color:var(--color-red-200)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-sky-200{color:var(--color-sky-200)}.text-sky-500{color:var(--color-sky-500)}.text-slate-100{color:var(--color-slate-100)}.text-slate-200{color:var(--color-slate-200)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400\\/50{color:#7e94a080}@supports (color:color-mix(in lab,red,red)){.text-slate-400\\/50{color:color-mix(in oklab,var(--color-slate-400)50%,transparent)}}.text-slate-500{color:var(--color-slate-500)}.text-slate-500\\/30{color:#647b874d}@supports (color:color-mix(in lab,red,red)){.text-slate-500\\/30{color:color-mix(in oklab,var(--color-slate-500)30%,transparent)}}.text-slate-500\\/40{color:#647b8766}@supports (color:color-mix(in lab,red,red)){.text-slate-500\\/40{color:color-mix(in oklab,var(--color-slate-500)40%,transparent)}}.text-slate-500\\/80{color:#647b87cc}@supports (color:color-mix(in lab,red,red)){.text-slate-500\\/80{color:color-mix(in oklab,var(--color-slate-500)80%,transparent)}}.text-slate-600{color:var(--color-slate-600)}.text-white{color:var(--color-white)}.text-white\\/50{color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.text-white\\/50{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.text-white\\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\\/80{color:color-mix(in oklab,var(--color-white)80%,transparent)}}.text-yellow-500{color:var(--color-yellow-500)}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-\\[background-color\\,box-shadow\\,scale\\,width\\,height\\,top\\]{transition-property:background-color,box-shadow,scale,width,height,top;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[background-color\\,color\\]{transition-property:background-color,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[background-color\\,transform\\]{transition-property:background-color,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[background-color\\]{transition-property:background-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[border-color\\]{transition-property:border-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[max-height\\,opacity\\,scale\\]{transition-property:max-height,opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[padding-top\\]{transition-property:padding-top;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[scale\\,background-color\\,border-radius\\]{transition-property:scale,background-color,border-radius;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[scale\\,background-color\\,color\\]{transition-property:scale,background-color,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[scale\\,translate\\,width\\]{transition-property:scale,translate,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[scale\\]{transition-property:scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[translate\\,opacity\\]{transition-property:translate,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[translate\\,scale\\,opacity\\]{transition-property:translate,scale,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[translate\\,scale\\]{transition-property:translate,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[width\\,background-color\\,translate\\]{transition-property:width,background-color,translate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-0{--tw-duration:0s;transition-duration:0s}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-600{--tw-duration:.6s;transition-duration:.6s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out-cubic{--tw-ease:var(--ease-in-out-cubic);transition-timing-function:var(--ease-in-out-cubic)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.ease-out-cubic{--tw-ease:var(--ease-out-cubic);transition-timing-function:var(--ease-out-cubic)}.will-change-\\[background-color\\,box-shadow\\,scale\\,width\\,height\\,top\\]{will-change:background-color,box-shadow,scale,width,height,top}.will-change-\\[background-color\\]{will-change:background-color}.will-change-\\[max-height\\,opacity\\,scale\\]{will-change:max-height,opacity,scale}.will-change-\\[padding-top\\]{will-change:padding-top}.will-change-\\[scale\\]{will-change:scale}.will-change-\\[transform\\]{will-change:transform}.will-change-\\[translate\\,max-height\\,scale\\,opacity\\]{will-change:translate,max-height,scale,opacity}.will-change-\\[width\\,background-color\\,translate\\]{will-change:width,background-color,translate}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\\/listitem\\:text-white\\/80:is(:where(.group\\/listitem):hover *){color:#fffc}@supports (color:color-mix(in lab,red,red)){.group-hover\\/listitem\\:text-white\\/80:is(:where(.group\\/listitem):hover *){color:color-mix(in oklab,var(--color-white)80%,transparent)}}}.group-focus\\/listitem\\:text-neutral-300\\/80:is(:where(.group\\/listitem):focus *){color:#d4d4d4cc}@supports (color:color-mix(in lab,red,red)){.group-focus\\/listitem\\:text-neutral-300\\/80:is(:where(.group\\/listitem):focus *){color:color-mix(in oklab,var(--color-neutral-300)80%,transparent)}}.group-active\\/checkbox\\:w-32:is(:where(.group\\/checkbox):active *){width:calc(var(--spacing)*32)}.group-active\\/listitem\\:text-neutral-100:is(:where(.group\\/listitem):active *){color:var(--color-neutral-100)}.group-disabled\\/listitem\\:bg-transparent:is(:where(.group\\/listitem):disabled *){background-color:#0000}.group-disabled\\/listitem\\:text-neutral-500\\/20:is(:where(.group\\/listitem):disabled *){color:#73737333}@supports (color:color-mix(in lab,red,red)){.group-disabled\\/listitem\\:text-neutral-500\\/20:is(:where(.group\\/listitem):disabled *){color:color-mix(in oklab,var(--color-neutral-500)20%,transparent)}}.group-disabled\\/listitem\\:text-neutral-500\\/50:is(:where(.group\\/listitem):disabled *){color:#73737380}@supports (color:color-mix(in lab,red,red)){.group-disabled\\/listitem\\:text-neutral-500\\/50:is(:where(.group\\/listitem):disabled *){color:color-mix(in oklab,var(--color-neutral-500)50%,transparent)}}.group-disabled\\/listitem\\:text-slate-500\\/30:is(:where(.group\\/listitem):disabled *){color:#647b874d}@supports (color:color-mix(in lab,red,red)){.group-disabled\\/listitem\\:text-slate-500\\/30:is(:where(.group\\/listitem):disabled *){color:color-mix(in oklab,var(--color-slate-500)30%,transparent)}}.group-has-checked\\/checkbox\\:translate-x-14:is(:where(.group\\/checkbox):has(:checked) *){--tw-translate-x:calc(var(--spacing)*14);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-has-checked\\/checkbox\\:bg-white:is(:where(.group\\/checkbox):has(:checked) *){background-color:var(--color-white)}.group-has-checked\\/checkbox\\:group-active\\/checkbox\\:translate-x-10:is(:where(.group\\/checkbox):has(:checked) *):is(:where(.group\\/checkbox):active *){--tw-translate-x:calc(var(--spacing)*10);translate:var(--tw-translate-x)var(--tw-translate-y)}.peer-checked\\:text-red-400:is(:where(.peer):checked~*){color:var(--color-red-400)}@media (hover:hover){.peer-hover\\:text-slate-300:is(:where(.peer):hover~*){color:var(--color-slate-300)}.peer-checked\\:peer-hover\\:text-red-400:is(:where(.peer):checked~*):is(:where(.peer):hover~*){color:var(--color-red-400)}}.peer-active\\:text-red-400:is(:where(.peer):active~*),.peer-checked\\:peer-active\\:text-red-400:is(:where(.peer):checked~*):is(:where(.peer):active~*){color:var(--color-red-400)}.first\\:rounded-t-\\[18px\\]:first-child{border-top-left-radius:18px;border-top-right-radius:18px}.first\\:rounded-t-\\[20px\\]:first-child{border-top-left-radius:20px;border-top-right-radius:20px}.last\\:rounded-b-\\[18px\\]:last-child{border-bottom-right-radius:18px;border-bottom-left-radius:18px}.last\\:rounded-b-\\[20px\\]:last-child{border-bottom-right-radius:20px;border-bottom-left-radius:20px}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.checked\\:bg-red-400\\/10:checked{background-color:#ff65681a}@supports (color:color-mix(in lab,red,red)){.checked\\:bg-red-400\\/10:checked{background-color:color-mix(in oklab,var(--color-red-400)10%,transparent)}}@media (hover:hover){.hover\\:bg-neutral-500\\/20:hover{background-color:#73737333}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-neutral-500\\/20:hover{background-color:color-mix(in oklab,var(--color-neutral-500)20%,transparent)}}.hover\\:bg-sky-500:hover{background-color:var(--color-sky-500)}.hover\\:bg-sky-500\\/20:hover{background-color:#00a5ef33}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-sky-500\\/20:hover{background-color:color-mix(in oklab,var(--color-sky-500)20%,transparent)}}.hover\\:bg-sky-800:hover{background-color:var(--color-sky-800)}.hover\\:bg-slate-500\\/10:hover{background-color:#647b871a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-slate-500\\/10:hover{background-color:color-mix(in oklab,var(--color-slate-500)10%,transparent)}}.hover\\:bg-slate-500\\/20:hover{background-color:#647b8733}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-slate-500\\/20:hover{background-color:color-mix(in oklab,var(--color-slate-500)20%,transparent)}}.hover\\:bg-slate-500\\/40:hover{background-color:#647b8766}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-slate-500\\/40:hover{background-color:color-mix(in oklab,var(--color-slate-500)40%,transparent)}}.hover\\:bg-white\\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/10:hover{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.hover\\:text-neutral-300:hover{color:var(--color-neutral-300)}.hover\\:text-slate-300:hover{color:var(--color-slate-300)}.hover\\:text-slate-400:hover{color:var(--color-slate-400)}.hover\\:text-slate-500\\/80:hover{color:#647b87cc}@supports (color:color-mix(in lab,red,red)){.hover\\:text-slate-500\\/80:hover{color:color-mix(in oklab,var(--color-slate-500)80%,transparent)}}.checked\\:hover\\:bg-red-400\\/20:checked:hover{background-color:#ff656833}@supports (color:color-mix(in lab,red,red)){.checked\\:hover\\:bg-red-400\\/20:checked:hover{background-color:color-mix(in oklab,var(--color-red-400)20%,transparent)}}}.focus\\:bg-neutral-500\\/20:focus{background-color:#73737333}@supports (color:color-mix(in lab,red,red)){.focus\\:bg-neutral-500\\/20:focus{background-color:color-mix(in oklab,var(--color-neutral-500)20%,transparent)}}.focus\\:text-neutral-300:focus{color:var(--color-neutral-300)}.focus-visible\\:bg-slate-500\\/10:focus-visible{background-color:#647b871a}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:bg-slate-500\\/10:focus-visible{background-color:color-mix(in oklab,var(--color-slate-500)10%,transparent)}}.focus-visible\\:text-slate-400:focus-visible{color:var(--color-slate-400)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-sky-500\\/50:focus-visible{--tw-ring-color:#00a5ef80}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-sky-500\\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--color-sky-500)50%,transparent)}}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-neutral-900:focus-visible{--tw-ring-offset-color:var(--color-neutral-900)}.focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:scale-90:active{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-120:active{--tw-scale-x:120%;--tw-scale-y:120%;--tw-scale-z:120%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-\\[1\\.01\\]:active{scale:1.01}.active\\:rounded-\\[2px\\]:active{border-radius:2px}.active\\:bg-neutral-500\\/30:active{background-color:#7373734d}@supports (color:color-mix(in lab,red,red)){.active\\:bg-neutral-500\\/30:active{background-color:color-mix(in oklab,var(--color-neutral-500)30%,transparent)}}.active\\:bg-red-400\\/10:active{background-color:#ff65681a}@supports (color:color-mix(in lab,red,red)){.active\\:bg-red-400\\/10:active{background-color:color-mix(in oklab,var(--color-red-400)10%,transparent)}}.active\\:bg-sky-500\\/10:active{background-color:#00a5ef1a}@supports (color:color-mix(in lab,red,red)){.active\\:bg-sky-500\\/10:active{background-color:color-mix(in oklab,var(--color-sky-500)10%,transparent)}}.active\\:bg-sky-500\\/30:active{background-color:#00a5ef4d}@supports (color:color-mix(in lab,red,red)){.active\\:bg-sky-500\\/30:active{background-color:color-mix(in oklab,var(--color-sky-500)30%,transparent)}}.active\\:bg-sky-600:active{background-color:var(--color-sky-600)}.active\\:bg-sky-950:active{background-color:var(--color-sky-950)}.active\\:bg-slate-500\\/10:active{background-color:#647b871a}@supports (color:color-mix(in lab,red,red)){.active\\:bg-slate-500\\/10:active{background-color:color-mix(in oklab,var(--color-slate-500)10%,transparent)}}.active\\:bg-slate-500\\/20:active{background-color:#647b8733}@supports (color:color-mix(in lab,red,red)){.active\\:bg-slate-500\\/20:active{background-color:color-mix(in oklab,var(--color-slate-500)20%,transparent)}}.active\\:bg-white\\/15:active{background-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.active\\:bg-white\\/15:active{background-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.active\\:text-sky-300\\/50:active{color:#77d4ff80}@supports (color:color-mix(in lab,red,red)){.active\\:text-sky-300\\/50:active{color:color-mix(in oklab,var(--color-sky-300)50%,transparent)}}.active\\:text-slate-300:active{color:var(--color-slate-300)}.active\\:text-white:active{color:var(--color-white)}.checked\\:active\\:bg-red-400\\/10:checked:active{background-color:#ff65681a}@supports (color:color-mix(in lab,red,red)){.checked\\:active\\:bg-red-400\\/10:checked:active{background-color:color-mix(in oklab,var(--color-red-400)10%,transparent)}}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-slate-500\\/5:disabled{background-color:#647b870d}@supports (color:color-mix(in lab,red,red)){.disabled\\:bg-slate-500\\/5:disabled{background-color:color-mix(in oklab,var(--color-slate-500)5%,transparent)}}.disabled\\:bg-slate-500\\/7:disabled{background-color:#647b8712}@supports (color:color-mix(in lab,red,red)){.disabled\\:bg-slate-500\\/7:disabled{background-color:color-mix(in oklab,var(--color-slate-500)7%,transparent)}}.disabled\\:text-neutral-500\\/50:disabled{color:#73737380}@supports (color:color-mix(in lab,red,red)){.disabled\\:text-neutral-500\\/50:disabled{color:color-mix(in oklab,var(--color-neutral-500)50%,transparent)}}.disabled\\:text-white\\/20:disabled{color:#fff3}@supports (color:color-mix(in lab,red,red)){.disabled\\:text-white\\/20:disabled{color:color-mix(in oklab,var(--color-white)20%,transparent)}}.has-checked\\:bg-sky-500:has(:checked){background-color:var(--color-sky-500)}@media (min-width:48rem){.md\\:max-w-375{max-width:calc(var(--spacing)*375)}}@media (hover:none) and (pointer:coarse){.touch\\:pointer-events-auto{pointer-events:auto}.touch\\:top-8{top:calc(var(--spacing)*8)}.touch\\:bottom-auto{bottom:auto}.touch\\:hidden{display:none}.touch\\:size-18{width:calc(var(--spacing)*18);height:calc(var(--spacing)*18)}.touch\\:size-20{width:calc(var(--spacing)*20);height:calc(var(--spacing)*20)}.touch\\:size-22{width:calc(var(--spacing)*22);height:calc(var(--spacing)*22)}.touch\\:size-24{width:calc(var(--spacing)*24);height:calc(var(--spacing)*24)}.touch\\:size-26{width:calc(var(--spacing)*26);height:calc(var(--spacing)*26)}.touch\\:size-28{width:calc(var(--spacing)*28);height:calc(var(--spacing)*28)}.touch\\:size-34{width:calc(var(--spacing)*34);height:calc(var(--spacing)*34)}.touch\\:size-40{width:calc(var(--spacing)*40);height:calc(var(--spacing)*40)}.touch\\:h-40{height:calc(var(--spacing)*40)}.touch\\:h-48{height:calc(var(--spacing)*48)}.touch\\:h-76{height:calc(var(--spacing)*76)}.touch\\:w-56{width:calc(var(--spacing)*56)}.touch\\:min-w-48{min-width:calc(var(--spacing)*48)}.touch\\:-translate-y-4{--tw-translate-y:calc(var(--spacing)*-4);translate:var(--tw-translate-x)var(--tw-translate-y)}.touch\\:justify-center{justify-content:center}.touch\\:overflow-clip{overflow:clip}.touch\\:rounded-\\[8px\\]{border-radius:8px}.touch\\:rounded-\\[12px\\]{border-radius:12px}.touch\\:rounded-\\[26px\\]{border-radius:26px}.touch\\:rounded-t-\\(--fubi-rounded\\){border-top-left-radius:var(--fubi-rounded);border-top-right-radius:var(--fubi-rounded)}.touch\\:rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.touch\\:bg-neutral-900{background-color:var(--color-neutral-900)}.touch\\:bg-slate-500\\/0{background-color:#0000}@supports (color:color-mix(in lab,red,red)){.touch\\:bg-slate-500\\/0{background-color:color-mix(in oklab,var(--color-slate-500)0%,transparent)}}.touch\\:bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.touch\\:p-12{padding:calc(var(--spacing)*12)}.touch\\:px-6{padding-inline:calc(var(--spacing)*6)}.touch\\:px-16{padding-inline:calc(var(--spacing)*16)}.touch\\:py-16{padding-block:calc(var(--spacing)*16)}.touch\\:pt-\\(--fubi-navbar-height-touch\\){padding-top:var(--fubi-navbar-height-touch)}.touch\\:pt-16{padding-top:calc(var(--spacing)*16)}.touch\\:pr-8{padding-right:calc(var(--spacing)*8)}.touch\\:pr-16{padding-right:calc(var(--spacing)*16)}.touch\\:pb-\\(--fubi-tabbar-height-touch\\){padding-bottom:var(--fubi-tabbar-height-touch)}.touch\\:pl-8{padding-left:calc(var(--spacing)*8)}.touch\\:pl-12{padding-left:calc(var(--spacing)*12)}.touch\\:text-\\[15px\\]\\/none{font-size:15px;line-height:1}.touch\\:text-\\[18px\\]\\/none{font-size:18px;line-height:1}.touch\\:text-xl\\/none{font-size:var(--text-xl);line-height:1}.touch\\:text-\\[15px\\]{font-size:15px}.touch\\:active\\:bg-neutral-500\\/20:active{background-color:#73737333}@supports (color:color-mix(in lab,red,red)){.touch\\:active\\:bg-neutral-500\\/20:active{background-color:color-mix(in oklab,var(--color-neutral-500)20%,transparent)}}.touch\\:active\\:bg-sky-500\\/20:active{background-color:#00a5ef33}@supports (color:color-mix(in lab,red,red)){.touch\\:active\\:bg-sky-500\\/20:active{background-color:color-mix(in oklab,var(--color-sky-500)20%,transparent)}}.touch\\:active\\:bg-sky-700:active{background-color:var(--color-sky-700)}.touch\\:active\\:bg-sky-800:active{background-color:var(--color-sky-800)}.touch\\:active\\:bg-slate-500\\/20:active{background-color:#647b8733}@supports (color:color-mix(in lab,red,red)){.touch\\:active\\:bg-slate-500\\/20:active{background-color:color-mix(in oklab,var(--color-slate-500)20%,transparent)}}.touch\\:active\\:bg-white\\/10:active{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.touch\\:active\\:bg-white\\/10:active{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}}@media (pointer:fine){.mouse\\:top-auto{top:auto}.mouse\\:right-\\(--fubi-window-right\\){right:var(--fubi-window-right)}.mouse\\:right-16{right:calc(var(--spacing)*16)}.mouse\\:bottom-\\(--fubi-window-bottom\\){bottom:var(--fubi-window-bottom)}.mouse\\:bottom-16{bottom:calc(var(--spacing)*16)}.mouse\\:left-auto{left:auto}.mouse\\:hidden{display:none}.mouse\\:size-14{width:calc(var(--spacing)*14);height:calc(var(--spacing)*14)}.mouse\\:size-24{width:calc(var(--spacing)*24);height:calc(var(--spacing)*24)}.mouse\\:h-28{height:calc(var(--spacing)*28)}.mouse\\:h-500{height:calc(var(--spacing)*500)}.mouse\\:max-h-1\\/2\\!{max-height:50%!important}.mouse\\:min-h-44{min-height:calc(var(--spacing)*44)}.mouse\\:min-h-48{min-height:calc(var(--spacing)*48)}.mouse\\:min-h-\\[350px\\]{min-height:350px}.mouse\\:w-44{width:calc(var(--spacing)*44)}.mouse\\:w-300{width:calc(var(--spacing)*300)}.mouse\\:origin-bottom-right{transform-origin:100% 100%}.mouse\\:translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.mouse\\:scale-90{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.mouse\\:justify-center{justify-content:center}.mouse\\:gap-2{gap:calc(var(--spacing)*2)}.mouse\\:rounded-\\(--fubi-rounded-mouse\\){border-radius:var(--fubi-rounded-mouse)}.mouse\\:bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.mouse\\:text-\\[13px\\]\\/none{font-size:13px;line-height:1}.mouse\\:text-sm\\/none{font-size:var(--text-sm);line-height:1}.mouse\\:text-xs\\/none{font-size:var(--text-xs);line-height:1}.mouse\\:opacity-0{opacity:0}.mouse\\:duration-200{--tw-duration:.2s;transition-duration:.2s}}.\\[\\&_span\\]\\:text-white span{color:var(--color-white)}.\\[\\&\\>\\.listitem\\]\\:first\\:rounded-t-\\[18px\\]>.listitem:first-child{border-top-left-radius:18px;border-top-right-radius:18px}.\\[\\&\\>\\.listitem\\]\\:last\\:rounded-b-\\[18px\\]>.listitem:last-child{border-bottom-right-radius:18px;border-bottom-left-radius:18px}@media (hover:none) and (pointer:coarse){.touch\\:\\[\\&\\>\\.listitem\\]\\:first\\:rounded-t-\\[24px\\]>.listitem:first-child{border-top-left-radius:24px;border-top-right-radius:24px}.touch\\:\\[\\&\\>\\.listitem\\]\\:last\\:rounded-b-\\[24px\\]>.listitem:last-child{border-bottom-right-radius:24px;border-bottom-left-radius:24px}}.\\[\\&\\>\\.listitem\\:last-child\\>\\.listitem-content\\]\\:border-b-0>.listitem:last-child>.listitem-content{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.\\[\\&\\>\\:first-child\\>\\.listitem\\]\\:rounded-t-\\[18px\\]>:first-child>.listitem{border-top-left-radius:18px;border-top-right-radius:18px}@media (hover:none) and (pointer:coarse){.touch\\:\\[\\&\\>\\:first-child\\>\\.listitem\\]\\:rounded-t-\\[22px\\]>:first-child>.listitem{border-top-left-radius:22px;border-top-right-radius:22px}}.\\[\\&\\>\\:last-child\\>\\.listitem\\]\\:rounded-b-\\[18px\\]>:last-child>.listitem{border-bottom-right-radius:18px;border-bottom-left-radius:18px}@media (hover:none) and (pointer:coarse){.touch\\:\\[\\&\\>\\:last-child\\>\\.listitem\\]\\:rounded-b-\\[22px\\]>:last-child>.listitem{border-bottom-right-radius:22px;border-bottom-left-radius:22px}}.\\[\\&\\>\\:last-child\\>\\.listitem\\>\\.listitem-content\\]\\:border-b-0>:last-child>.listitem>.listitem-content{border-bottom-style:var(--tw-border-style);border-bottom-width:0}}.flex-center{justify-content:center;align-items:center;display:flex}.absolute-center{--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);position:absolute;top:50%;left:50%}:host{--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-space-x-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--px:.5px;--tw-scroll-snap-strictness:proximity;--fubi-toolbar-height:44px;--fubi-toolbar-bottom:1rem;--fubi-toolbar-right:1rem;--fubi-navbar-height:52px;--fubi-navbar-height-touch:66px;--fubi-tabbar-height:68px;--fubi-tabbar-height-touch:72px;--fubi-window-right:16px;--fubi-window-bottom:calc(var(--fubi-toolbar-height) + var(--fubi-toolbar-bottom) + 4px);--fubi-window-bg:transparent;--fubi-page-bg:#151c24;--fubi-page-from-bg:#1e2730;--fubi-page-to-bg:#101316;--fubi-ease-forward:cubic-bezier(.2,1,.3,1);--fubi-ease-back:cubic-bezier(.4,0,.7,.1);--fubi-router-duration-forward:.4s;--fubi-router-duration-back:.3s;--fubi-rounded:38px;--fubi-rounded-mouse:32px;--fubi-rotate-to:40deg;--fubi-translate-x-difference:0%;--fubi-translate-z-difference:-300px}@media (pointer:coarse){:host{--fubi-rotate-to:0deg;--fubi-translate-x-difference:-30%;--fubi-translate-z-difference:0px;--fubi-toolbar-height:50px}.router-transition-forward .page-current{animation-timing-function:var(--fubi-ease-forward)}}.page{transform:translate(calc(100% + var(--fubi-window-right)))rotateY(var(--fubi-rotate-to));transition:box-shadow .3s ease-out;position:absolute}.page.page-current{position:relative;transform:translate(0)}.window{perspective:1200px}.router-transition-forward .page-next{animation:next-to-current var(--fubi-router-duration-forward)forwards;animation-timing-function:var(--ease-out-cubic);z-index:2}.router-transition-forward .page-current{animation:current-to-prev var(--fubi-router-duration-forward)forwards;animation-timing-function:var(--ease-in-out);z-index:1}.router-transition-back .page-current{animation:current-to-next var(--fubi-router-duration-back)forwards;animation-timing-function:cubic-bezier(.2,0,.4,1)}.router-transition-back .page-previous{animation:prev-to-current var(--fubi-router-duration-forward)forwards;animation-timing-function:var(--ease-out)}@keyframes next-to-current{0%{transform:translate(calc(100% + var(--fubi-window-right)))rotateY(var(--fubi-rotate-to))}to{transform:translate(0)rotateY(0)}}@keyframes current-to-next{0%{transform:translate(0)rotateY(0)}to{transform:translate(calc(100% + var(--fubi-window-right)))rotateY(var(--fubi-rotate-to))}}@keyframes current-to-prev{0%{transform:translate(0)translateZ(0)rotateY(0)}to{transform:translate(var(--fubi-translate-x-difference))translateZ(var(--fubi-translate-z-difference))rotateY(0)}}@keyframes prev-to-current{0%{transform:translate(var(--fubi-translate-x-difference))translateZ(var(--fubi-translate-z-difference))rotateY(0)}to{transform:translate(0)translateZ(0)rotateY(0)}}[data-conte-portal]{isolation:isolate}.xxx{background-color:#00a5ef1a}@supports (color:color-mix(in lab,red,red)){.xxx{background-color:color-mix(in oklab,var(--color-sky-500)10%,transparent)}}.xxxx{border-style:var(--tw-border-style);border-width:1px;border-color:#00a5ef33}@supports (color:color-mix(in lab,red,red)){.xxxx{border-color:color-mix(in oklab,var(--color-sky-500)20%,transparent)}}.xxxx{background-color:#00a5ef1a}@supports (color:color-mix(in lab,red,red)){.xxxx{background-color:color-mix(in oklab,var(--color-sky-500)10%,transparent)}}.bordered{box-shadow:inset 0 0 0 1px #ffffff1a,inset 0 2px 4px #ffffff1a}.glass{box-shadow:inset .7px .7px .5px #ffffff26,inset -.7px -.7px .5px #ffffff26,0 8px 12px #00000026}.rim{box-shadow:inset 0 .7px 2px #fff3,inset 0 .5px .5px .7px #ffffff0d}.lift{box-shadow:inset 0 .7px 1px #ffffff1a,0 2px 10px #0000001a,0 4px 8px #0000000d}@media (pointer:coarse){.page.rim{box-shadow:inset 0 .7px #fff3}}input:-webkit-autofill{-webkit-text-fill-color:#ffffff80;-webkit-background-clip:text;transition:background-color 5000s ease-in-out;box-shadow:inset 0 0 20px 20px #0000}input:-webkit-autofill:hover{-webkit-text-fill-color:#ffffff80;-webkit-background-clip:text;transition:background-color 5000s ease-in-out;box-shadow:inset 0 0 20px 20px #0000}input:-webkit-autofill:focus{-webkit-text-fill-color:#ffffff80;-webkit-background-clip:text;transition:background-color 5000s ease-in-out;box-shadow:inset 0 0 20px 20px #0000}input:-webkit-autofill:active{-webkit-text-fill-color:#ffffff80;-webkit-background-clip:text;transition:background-color 5000s ease-in-out;box-shadow:inset 0 0 20px 20px #0000}input{min-width:0}.window-inner::-webkit-scrollbar{display:none}.hide-scrollbar::-webkit-scrollbar{display:none}@keyframes list-loading{0%{background-color:#64748b0f;transform:scale(1)}30%{background-color:#64748b14;transform:scale(1.02)}60%{background-color:#64748b0f;transform:scale(1)}to{background-color:#64748b0f;transform:scale(1)}}.animate-list-loading{animation:1s ease-in-out infinite list-loading}.animate-list-loading:first-child{animation-delay:0s}.animate-list-loading:nth-child(2){animation-delay:.1s}.animate-list-loading:nth-child(3){animation-delay:.2s}.focus-visible:focus{outline-style:var(--tw-outline-style);outline-width:0}.focus-visible:focus-visible,.focus-within:focus-within{outline-style:var(--tw-outline-style);outline-offset:2px;outline-width:1px;outline-color:var(--color-sky-500)}.focus-within:focus{outline-style:var(--tw-outline-style);outline-width:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}</style>';const r=document.createElement("div");r.id="fubi-wrapper",n.appendChild(r),document.body.appendChild(e),document.head.insertAdjacentHTML("beforeend",'<style id="fubi-global-styles">.fubi-scroll-disabled{overflow:hidden!important;touch-action:none}@media (pointer: coarse){.fubi-scroll-touch-disabled,.fubi-scroll-touch-disabled body{overflow:hidden!important;touch-action:none}}html{touch-action:pan-y}</style>'),cl(cm,{target:r,props:{projectId:t,wrapper:r}})}}(PocketBase);