@fde-desktop/fde-core 0.4.10 → 0.4.11

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 (221) hide show
  1. package/dist/AppEmptyState-Boej96TB.js +49 -0
  2. package/dist/AppEmptyState-CLc00OOG.cjs +1 -0
  3. package/dist/AppIcon-C8vHUVcb.cjs +1 -0
  4. package/dist/AppIcon-mtEoyzOb.js +22 -0
  5. package/dist/AppMenuBar-CAlkNHjj.cjs +1 -0
  6. package/dist/AppMenuBar-DmSfQRXU.js +197 -0
  7. package/dist/CalendarApp-DOmjWbpl.js +10 -0
  8. package/dist/CalendarApp-Z0bCCYsK.cjs +1 -0
  9. package/dist/ColorPicker-CQRRwY-y.cjs +1 -0
  10. package/dist/ColorPicker-WCeD3Wjf.js +35 -0
  11. package/dist/CreateItemApp-BkFFFdX1.cjs +1 -0
  12. package/dist/CreateItemApp-DR8Y4bwo.js +202 -0
  13. package/dist/DeviceInfoApp-BXQ9uOwF.cjs +1 -0
  14. package/dist/DeviceInfoApp-I63mJRWy.js +195 -0
  15. package/dist/DownloadProgress-CkTGTf0z.cjs +1 -0
  16. package/dist/DownloadProgress-DnVASsv5.js +39 -0
  17. package/dist/FilePickerApp-By6-vbag.cjs +1 -0
  18. package/dist/FilePickerApp-ClHuhm6Z.js +390 -0
  19. package/dist/FilesApp-BC4UPNuw.cjs +1 -0
  20. package/dist/FilesApp-D8MqvC5X.js +210 -0
  21. package/dist/ImageViewerApp-B1niWF75.cjs +1 -0
  22. package/dist/{ImageViewerApp-CWiP6zx-.js → ImageViewerApp-iojtyFEf.js} +18 -17
  23. package/dist/{ImageViewerMenuBar-BULkh_Ku.js → ImageViewerMenuBar-BIsUokxV.js} +15 -14
  24. package/dist/ImageViewerMenuBar-BgzgSF3v.cjs +1 -0
  25. package/dist/MenuEditApp-BHptoJbz.cjs +1 -0
  26. package/dist/MenuEditApp-CJUbJaqh.js +492 -0
  27. package/dist/MenuEditMenuBar-CCOSPAUe.cjs +1 -0
  28. package/dist/{MenuEditMenuBar-B94z4Umw.js → MenuEditMenuBar-DnCL-kaZ.js} +13 -12
  29. package/dist/NotesApp-BmQIBtJ2.cjs +1 -0
  30. package/dist/NotesApp-DJ2dGt4-.js +364 -0
  31. package/dist/NotesMenuBar-BzojwMtH.cjs +1 -0
  32. package/dist/{NotesMenuBar-BB4NkKGf.js → NotesMenuBar-DILZTjnT.js} +10 -9
  33. package/dist/PdfApp-IjY_GtnW.js +39 -0
  34. package/dist/PdfApp-krW8UI97.cjs +1 -0
  35. package/dist/PdfMenuBar-Bd5MTZcZ.js +39 -0
  36. package/dist/PdfMenuBar-DWD0Qa3F.cjs +1 -0
  37. package/dist/SettingsApp-BE22l5UP.cjs +1 -0
  38. package/dist/SettingsApp-BTFtTFY_.js +1228 -0
  39. package/dist/SettingsMenuBar-CZE2evG2.cjs +1 -0
  40. package/dist/SettingsMenuBar-ktC0viTd.js +42 -0
  41. package/dist/UploaderApp-CbypD538.js +263 -0
  42. package/dist/UploaderApp-D_qD3O70.cjs +1 -0
  43. package/dist/{VscIcon-DueRJVTe.js → VscIcon-AEENjKOE.js} +1 -1
  44. package/dist/VscIcon-BYb_Soyy.cjs +1 -0
  45. package/dist/buildBreadcrumbs-Ccd8i11b.cjs +1 -0
  46. package/dist/buildBreadcrumbs-noWhu8os.js +45 -0
  47. package/dist/{desktopStore-B0R1-BeA.js → desktopStore-8cSZlj7s.js} +342 -549
  48. package/dist/desktopStore-C1jR6Fdb.cjs +1 -0
  49. package/dist/{imageViewerStore-CJMRXaQh.js → imageViewerStore-COrD02Zu.js} +1 -1
  50. package/dist/imageViewerStore-Dfylg59V.cjs +1 -0
  51. package/dist/index.cjs +1 -53
  52. package/dist/index.css +1 -1
  53. package/dist/index.d.ts +16 -6
  54. package/dist/index.js +3024 -7513
  55. package/dist/menuEditStore-CYwtfD6H.cjs +1 -0
  56. package/dist/{menuEditStore-C8S_EedM.js → menuEditStore-CxsgLiQu.js} +1 -1
  57. package/dist/notesStore-CrWTO6oB.cjs +1 -0
  58. package/dist/{notesStore-DKRgTTFn.js → notesStore-Dgah46U5.js} +1 -1
  59. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  60. package/dist/{settingsAppStore-KOeWRO6h.js → settingsAppStore-DHZhi6Rl.js} +1 -1
  61. package/dist/settingsAppStore-DuYZNeFf.cjs +1 -0
  62. package/dist/useAdaptiveDimensions-3Lz4X0Tc.cjs +1 -0
  63. package/dist/{useAdaptiveDimensions-CunsU0mn.js → useAdaptiveDimensions-DxNLJ7R5.js} +1 -1
  64. package/dist/{useCloseInterceptor-CuKAAFnj.js → useCloseInterceptor-CIxhOZx1.js} +12 -12
  65. package/dist/useCloseInterceptor-CdX-09Ib.cjs +1 -0
  66. package/dist/useDynamicIcon-CK6SjEv5.cjs +1 -0
  67. package/dist/{useDynamicIcon-GJg3vWsJ.js → useDynamicIcon-_wGeWu-b.js} +1 -1
  68. package/dist/useOpenApp-D-FOY88T.cjs +1 -0
  69. package/dist/{useOpenApp-BVpSfNrG.js → useOpenApp-DkZLFFCH.js} +51 -67
  70. package/dist/{useResolvedUrl-DFKXq598.js → useResolvedUrl-B6x4xy0x.js} +1 -2
  71. package/dist/useResolvedUrl-Bb39DpVy.cjs +1 -0
  72. package/package.json +3 -4
  73. package/dist/AccordionChevron-CJXAq5o5.js +0 -26
  74. package/dist/AccordionChevron-DBXp38Lm.cjs +0 -1
  75. package/dist/ActionIcon-C_SfdBfx.cjs +0 -1
  76. package/dist/ActionIcon-CtVbYlGY.js +0 -145
  77. package/dist/AppEmptyState-BTujnL_b.js +0 -4962
  78. package/dist/AppEmptyState-Dc4GaDfu.cjs +0 -1
  79. package/dist/AppIcon--qzR4sgf.cjs +0 -1
  80. package/dist/AppIcon-DCDuaU-t.js +0 -80
  81. package/dist/AppMenuBar-BiHbNg9V.cjs +0 -9
  82. package/dist/AppMenuBar-CHJy8OF0.js +0 -2639
  83. package/dist/Box-DRm8EabO.js +0 -1593
  84. package/dist/Box-D_64wv6n.cjs +0 -1
  85. package/dist/Button-D0FXpkur.cjs +0 -1
  86. package/dist/Button-k7SxX1Xl.js +0 -178
  87. package/dist/CalendarApp-C1HvuJoa.cjs +0 -1
  88. package/dist/CalendarApp-DBEQqsS_.js +0 -1721
  89. package/dist/Center-CyryG5zn.js +0 -25
  90. package/dist/Center-T4No_FAa.cjs +0 -1
  91. package/dist/CheckIcon-C3WjIR2i.js +0 -25
  92. package/dist/CheckIcon-CBMLR6Gc.cjs +0 -1
  93. package/dist/CodeServerApp-B3l5QPuG.cjs +0 -1
  94. package/dist/CodeServerApp-BpeALSaX.js +0 -2
  95. package/dist/CodeServerApp-CRjCngFv.cjs +0 -1
  96. package/dist/CodeServerApp-DY94cy1a.js +0 -149
  97. package/dist/ColorPicker-BL4UbKCV.cjs +0 -1
  98. package/dist/ColorPicker-DvRR-wlQ.js +0 -997
  99. package/dist/CreateItemApp-BU9wmjKM.cjs +0 -1
  100. package/dist/CreateItemApp-CtdH1K1g.js +0 -400
  101. package/dist/CreateItemApp-t9F-a6wD.cjs +0 -1
  102. package/dist/DeviceInfoApp-C306YvtZ.js +0 -223
  103. package/dist/DeviceInfoApp-Cdju_LIB.cjs +0 -1
  104. package/dist/DeviceInfoApp-CyB01v4D.cjs +0 -1
  105. package/dist/DownloadProgress-IRw1dzLX.cjs +0 -1
  106. package/dist/DownloadProgress-hdupSUBT.js +0 -174
  107. package/dist/FileIcon-BCpGMI5U.js +0 -88
  108. package/dist/FileIcon-BCrsxmtt.cjs +0 -1
  109. package/dist/FilePickerApp-DMGuvahM.js +0 -409
  110. package/dist/FilePickerApp-Eu0cr2Cm.cjs +0 -1
  111. package/dist/FilesApp-BQFVHkEn.js +0 -225
  112. package/dist/FilesApp-BZ_dzZnF.cjs +0 -1
  113. package/dist/FilesApp-SIWXFPXt.cjs +0 -1
  114. package/dist/Group-BzwlMeob.js +0 -48
  115. package/dist/Group-DhwePB84.cjs +0 -1
  116. package/dist/ImageViewerApp-BOz59TGc.cjs +0 -1
  117. package/dist/ImageViewerApp-BeqY6voE.cjs +0 -1
  118. package/dist/ImageViewerApp-DBAfJPSo.js +0 -2
  119. package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +0 -2
  120. package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +0 -1
  121. package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +0 -1
  122. package/dist/MenuEditApp-BoKtj2GH.js +0 -2
  123. package/dist/MenuEditApp-D21sEp86.js +0 -2615
  124. package/dist/MenuEditApp-k3cPfTG9.cjs +0 -1
  125. package/dist/MenuEditApp-sz9GlLVH.cjs +0 -5
  126. package/dist/MenuEditMenuBar-6QxlIDpl.cjs +0 -1
  127. package/dist/MenuEditMenuBar-Bv6R42lf.js +0 -2
  128. package/dist/MenuEditMenuBar-CBsmH_-T.cjs +0 -1
  129. package/dist/NotesApp-BtR55Hva.cjs +0 -207
  130. package/dist/NotesApp-C59exz_9.js +0 -16154
  131. package/dist/NotesApp-D47I5LS_.js +0 -2
  132. package/dist/NotesApp-lOwsi2sg.cjs +0 -1
  133. package/dist/NotesMenuBar-BZITC74y.cjs +0 -1
  134. package/dist/NotesMenuBar-Bp0sPqyR.cjs +0 -1
  135. package/dist/NotesMenuBar-xlfODmMA.js +0 -2
  136. package/dist/Paper-DtUYKmYn.js +0 -30
  137. package/dist/Paper-DwCpwWwH.cjs +0 -1
  138. package/dist/PdfApp-1XbFGfoY.cjs +0 -1
  139. package/dist/PdfApp-BhIoJWeK.cjs +0 -1
  140. package/dist/PdfApp-C5Rt1Zaw.js +0 -2
  141. package/dist/PdfApp-C8Hwxxqh.js +0 -38
  142. package/dist/PdfMenuBar-BA9rKuMP.cjs +0 -1
  143. package/dist/PdfMenuBar-JXHqwxhZ.cjs +0 -1
  144. package/dist/PdfMenuBar-R0fu7oYF.js +0 -2
  145. package/dist/PdfMenuBar-sd-9Vk3h.js +0 -38
  146. package/dist/SettingsApp-7EhpjzUE.cjs +0 -1
  147. package/dist/SettingsApp-ByiPAj1I.cjs +0 -1
  148. package/dist/SettingsApp-d6fmBHxR.js +0 -1829
  149. package/dist/SettingsApp-qKJmC0lj.js +0 -2
  150. package/dist/SettingsMenuBar-BPwv8JQK.js +0 -41
  151. package/dist/SettingsMenuBar-D8R7hOik.js +0 -2
  152. package/dist/SettingsMenuBar-DDrjZLmg.cjs +0 -1
  153. package/dist/SettingsMenuBar-DQjUa8g1.cjs +0 -1
  154. package/dist/Slider-BNO-vDFn.js +0 -1175
  155. package/dist/Slider-Bg_EIBg6.cjs +0 -1
  156. package/dist/Stack-BOaJgV3N.cjs +0 -1
  157. package/dist/Stack-CuDEaP7e.js +0 -34
  158. package/dist/StorybookApp-Bkr-7mXp.cjs +0 -1
  159. package/dist/StorybookApp-WYninkJo.js +0 -10
  160. package/dist/TerminalApp-8XbsKAWa.js +0 -10041
  161. package/dist/TerminalApp-Bq2e7QQu.cjs +0 -1
  162. package/dist/TerminalApp-CVu3Axc9.js +0 -2
  163. package/dist/TerminalApp-b7_d0jRO.cjs +0 -36
  164. package/dist/TerminalMenuBar-Cb8x9laS.js +0 -2
  165. package/dist/TerminalMenuBar-De-FH5AE.cjs +0 -1
  166. package/dist/TerminalMenuBar-iKLydNda.js +0 -112
  167. package/dist/TerminalMenuBar-yOaWd-hn.cjs +0 -1
  168. package/dist/TextInput-C3qfxxWI.js +0 -980
  169. package/dist/TextInput-DcYns3hz.cjs +0 -1
  170. package/dist/Tooltip-CAOO-qdx.js +0 -3185
  171. package/dist/Tooltip-DDh_x-CB.cjs +0 -1
  172. package/dist/UnstyledButton-CI3kyRck.js +0 -25
  173. package/dist/UnstyledButton-Cl5RuIid.cjs +0 -1
  174. package/dist/UploaderApp-C76ydsd8.js +0 -487
  175. package/dist/UploaderApp-CHACW8Yr.js +0 -2
  176. package/dist/UploaderApp-Q_a3mBik.cjs +0 -1
  177. package/dist/UploaderApp-htj59ppo.cjs +0 -1
  178. package/dist/VscIcon-CxEmqD80.cjs +0 -1
  179. package/dist/chunk-BQCxAhux.js +0 -23
  180. package/dist/chunk-CiTBaPhY.cjs +0 -1
  181. package/dist/create-safe-context-95P-Bfg3.cjs +0 -1
  182. package/dist/create-safe-context-XT2cxc14.js +0 -12
  183. package/dist/desktopStore-Cox-Og1z.cjs +0 -1
  184. package/dist/fc-DejOsQyD.cjs +0 -1
  185. package/dist/fc-kd8WzIER.js +0 -20536
  186. package/dist/fc-xJ_v2ayq.cjs +0 -184
  187. package/dist/fi-BahYsbim.js +0 -9993
  188. package/dist/fi-BkhyTcZo.cjs +0 -1
  189. package/dist/getRuntime-BLXyQZBB.cjs +0 -1
  190. package/dist/getRuntime-CCRXVzJH.js +0 -63
  191. package/dist/iconBase-B4UCuSvv.cjs +0 -1
  192. package/dist/iconBase-D7iPes7B.js +0 -108
  193. package/dist/imageViewerStore-CH1qW6md.cjs +0 -1
  194. package/dist/is-element-BocgicRg.cjs +0 -1
  195. package/dist/is-element-Bu_JY8Qy.js +0 -7
  196. package/dist/menuEditStore-CU7IAg3L.cjs +0 -1
  197. package/dist/notesStore-zKmChTfF.cjs +0 -1
  198. package/dist/react-DYmzHD0X.js +0 -27
  199. package/dist/react-Dldg32sN.cjs +0 -1
  200. package/dist/settingsAppStore-BrlImdAH.cjs +0 -1
  201. package/dist/terminalStore-LWWjCvCe.js +0 -30
  202. package/dist/terminalStore-fZe5t7Ty.cjs +0 -1
  203. package/dist/use-merged-ref-BI9n1hUK.cjs +0 -1
  204. package/dist/use-merged-ref-BT8_u6vW.js +0 -25
  205. package/dist/use-resolved-styles-api-AVDygMKo.cjs +0 -1
  206. package/dist/use-resolved-styles-api-pEOi2wiK.js +0 -21
  207. package/dist/use-uncontrolled-A4hm9ATM.js +0 -23
  208. package/dist/use-uncontrolled-BPrfGv0W.cjs +0 -1
  209. package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +0 -1
  210. package/dist/useCloseInterceptor-a_6Lcuqj.cjs +0 -1
  211. package/dist/useDynamicIcon-SytdL1Tu.cjs +0 -1
  212. package/dist/useOpenApp-Br0jo4-y.cjs +0 -1
  213. package/dist/useResolvedUrl-Be5ZlCX7.cjs +0 -1
  214. package/dist/useTranslation-DMRGdqZi.js +0 -279
  215. package/dist/useTranslation-D_O7S4RJ.cjs +0 -1
  216. package/dist/vsc-Ciibqbxo.cjs +0 -1
  217. package/dist/vsc-DGKSpOAR.js +0 -9574
  218. /package/dist/{Colors-BxX4G8kX.cjs → Colors-CNJbU7oq.cjs} +0 -0
  219. /package/dist/{Colors-hca6raEG.js → Colors-CuABn2W4.js} +0 -0
  220. /package/dist/{useMenuBarUtils-ChmpZjwu.js → useMenuBarUtils-ChAfI7OA.js} +0 -0
  221. /package/dist/{useMenuBarUtils-Bp5PiztD.cjs → useMenuBarUtils-DAap0ukp.cjs} +0 -0
@@ -1 +0,0 @@
1
- const e=require(`./chunk-CiTBaPhY.cjs`),t=require(`./Colors-BxX4G8kX.cjs`);let n=require(`react`),r=require(`react/jsx-runtime`);var i=(0,n.createContext)({});function a(e){let t=(0,n.useRef)(null);return t.current===null&&(t.current=e()),t.current}var o=typeof window<`u`?n.useLayoutEffect:n.useEffect,s=(0,n.createContext)(null);function c(e,t){e.indexOf(t)===-1&&e.push(t)}function l(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var u=(e,t,n)=>n>t?t:n<e?e:n;function d(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var f=()=>{},p=()=>{};typeof process<`u`&&process.env.NODE_ENV!==`production`&&(f=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(d(t,n))},p=(e,t,n)=>{if(!e)throw Error(d(t,n))});var m={},h=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function g(e){return typeof e==`object`&&!!e}var _=e=>/^0[^.\s]+$/u.test(e);function v(e){let t;return()=>(t===void 0&&(t=e()),t)}var y=e=>e,b=(e,t)=>n=>t(e(n)),x=(...e)=>e.reduce(b),S=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},C=class{constructor(){this.subscriptions=[]}add(e){return c(this.subscriptions,e),()=>l(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},w=e=>e*1e3,T=e=>e/1e3;function E(e,t){return t?1e3/t*e:0}var D=new Set;function ee(e,t,n){e||D.has(t)||(console.warn(d(t,n)),D.add(t))}var te=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ne=1e-7,re=12;function ie(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=te(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>ne&&++s<re);return o}function ae(e,t,n,r){if(e===t&&n===r)return y;let i=t=>ie(t,0,1,e,n);return e=>e===0||e===1?e:te(i(e),t,r)}var oe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,se=e=>t=>1-e(1-t),ce=ae(.33,1.53,.69,.99),le=se(ce),ue=oe(le),de=e=>e>=1?1:(e*=2)<1?.5*le(e):.5*(2-2**(-10*(e-1))),fe=e=>1-Math.sin(Math.acos(e)),pe=se(fe),me=oe(fe),he=ae(.42,0,1,1),ge=ae(0,0,.58,1),_e=ae(.42,0,.58,1),ve=e=>Array.isArray(e)&&typeof e[0]!=`number`,ye=e=>Array.isArray(e)&&typeof e[0]==`number`,be={linear:y,easeIn:he,easeInOut:_e,easeOut:ge,circIn:fe,circInOut:me,circOut:pe,backIn:le,backInOut:ue,backOut:ce,anticipate:de},xe=e=>typeof e==`string`,Se=e=>{if(ye(e)){p(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return ae(t,n,r,i)}else if(xe(e))return p(be[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),be[e];return e},Ce=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],O={value:null,addProjectionMetrics:null};function we(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&O.value&&O.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Te=40;function Ee(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ce.reduce((e,n)=>(e[n]=we(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:h}=o,g=()=>{let a=m.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Te),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},_=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Ce.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||_(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Ce.length;t++)o[Ce[t]].cancel(e)},state:i,steps:o}}var{schedule:k,cancel:A,state:j,steps:De}=Ee(typeof requestAnimationFrame<`u`?requestAnimationFrame:y,!0),Oe;function ke(){Oe=void 0}var M={now:()=>(Oe===void 0&&M.set(j.isProcessing||m.useManualTiming?j.timestamp:performance.now()),Oe),set:e=>{Oe=e,queueMicrotask(ke)}},N={layout:0,mainThread:0,waapi:0},Ae=e=>t=>typeof t==`string`&&t.startsWith(e),je=Ae(`--`),Me=Ae(`var(--`),Ne=e=>Me(e)?Pe.test(e.split(`/*`)[0].trim()):!1,Pe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Fe(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Ie={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Le={...Ie,transform:e=>u(0,1,e)},Re={...Ie,default:1},ze=e=>Math.round(e*1e5)/1e5,Be=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ve(e){return e==null}var He=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ue=(e,t)=>n=>!!(typeof n==`string`&&He.test(n)&&n.startsWith(e)||t&&!Ve(n)&&Object.prototype.hasOwnProperty.call(n,t)),We=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Be);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ge=e=>u(0,255,e),Ke={...Ie,transform:e=>Math.round(Ge(e))},P={test:Ue(`rgb`,`red`),parse:We(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ke.transform(e)+`, `+Ke.transform(t)+`, `+Ke.transform(n)+`, `+ze(Le.transform(r))+`)`};function qe(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Je={test:Ue(`#`),parse:qe,transform:P.transform},Ye=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),F=Ye(`deg`),I=Ye(`%`),L=Ye(`px`),Xe=Ye(`vh`),Ze=Ye(`vw`),Qe={...I,parse:e=>I.parse(e)/100,transform:e=>I.transform(e*100)},$e={test:Ue(`hsl`,`hue`),parse:We(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+I.transform(ze(t))+`, `+I.transform(ze(n))+`, `+ze(Le.transform(r))+`)`},R={test:e=>P.test(e)||Je.test(e)||$e.test(e),parse:e=>P.test(e)?P.parse(e):$e.test(e)?$e.parse(e):Je.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?P.transform(e):$e.transform(e),getAnimatableNone:e=>{let t=R.parse(e);return t.alpha=0,R.transform(t)}},et=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tt(e){return isNaN(e)&&typeof e==`string`&&(e.match(Be)?.length||0)+(e.match(et)?.length||0)>0}var nt=`number`,rt=`color`,it=`var`,at=`var(`,ot="${}",st=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ct(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(st,e=>(R.test(e)?(r.color.push(a),i.push(rt),n.push(R.parse(e))):e.startsWith(at)?(r.var.push(a),i.push(it),n.push(e)):(r.number.push(a),i.push(nt),n.push(parseFloat(e))),++a,ot)).split(ot),indexes:r,types:i}}function lt(e){return ct(e).values}function ut({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===nt?i+=ze(r[a]):e===rt?i+=R.transform(r[a]):i+=r[a]}return i}}function dt(e){return ut(ct(e))}var ft=e=>typeof e==`number`?0:R.test(e)?R.getAnimatableNone(e):e,pt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:ft(e);function mt(e){let t=ct(e);return ut(t)(t.values.map((e,n)=>pt(e,t.split[n])))}var z={test:tt,parse:lt,createTransformer:dt,getAnimatableNone:mt};function ht(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ht(s,r,e+1/3),a=ht(s,r,e),o=ht(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function _t(e,t){return n=>n>0?t:e}var B=(e,t,n)=>e+(t-e)*n,vt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},yt=[Je,P,$e],bt=e=>yt.find(t=>t.test(e));function xt(e){let t=bt(e);if(f(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===$e&&(n=gt(n)),n}var St=(e,t)=>{let n=xt(e),r=xt(t);if(!n||!r)return _t(e,t);let i={...n};return e=>(i.red=vt(n.red,r.red,e),i.green=vt(n.green,r.green,e),i.blue=vt(n.blue,r.blue,e),i.alpha=B(n.alpha,r.alpha,e),P.transform(i))},Ct=new Set([`none`,`hidden`]);function wt(e,t){return Ct.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tt(e,t){return n=>B(e,t,n)}function Et(e){return typeof e==`number`?Tt:typeof e==`string`?Ne(e)?_t:R.test(e)?St:At:Array.isArray(e)?Dt:typeof e==`object`?R.test(e)?St:Ot:_t}function Dt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Et(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Ot(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Et(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function kt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var At=(e,t)=>{let n=z.createTransformer(t),r=ct(e),i=ct(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ct.has(e)&&!i.values.length||Ct.has(t)&&!r.values.length?wt(e,t):x(Dt(kt(r,i),i.values),n):(f(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),_t(e,t))};function jt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?B(e,t,n):Et(e)(e,t)}var Mt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>k.update(t,e),stop:()=>A(t),now:()=>j.isProcessing?j.timestamp:M.now()}},Nt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Pt=2e4;function Ft(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function It(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Ft(r),Pt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:T(i)}}var V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Lt(e,t){return e*Math.sqrt(1-t*t)}var Rt=12;function zt(e,t,n){let r=n;for(let n=1;n<Rt;n++)r-=e(r)/t(r);return r}var Bt=.001;function Vt({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:r=V.mass}){let i,a;f(e<=w(V.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=u(V.minDamping,V.maxDamping,o),e=u(V.minDuration,V.maxDuration,T(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Lt(t,o),c=Math.exp(-i);return Bt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Lt(t**2,o);return(-i(t)+Bt>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Bt+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=zt(i,a,s);if(e=w(e),isNaN(c))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Ht=[`duration`,`bounce`],Ut=[`stiffness`,`damping`,`mass`];function Wt(e,t){return t.some(t=>e[t]!==void 0)}function Gt(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Wt(e,Ut)&&Wt(e,Ht))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*u(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:a}}else{let n=Vt({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function Kt(e=V.visualDuration,t=V.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Gt({...n,velocity:-T(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=T(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?V.restSpeed.granular:V.restSpeed.default,i||=v?V.restDelta.granular:V.restDelta.default;let y,b,x,S,C,E;if(h<1)x=Lt(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,E=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+E*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let D={calculatedDuration:p&&d||null,velocity:e=>w(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=w(t*(C*n+E*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=w(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Ft(D),Pt),t=Nt(t=>D.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return D}Kt.applyToOptions=e=>{let t=It(e,100,Kt);return e.ease=t.ease,e.duration=w(t.duration),e.type=`keyframes`,e};var qt=5;function Jt(e,t,n){let r=Math.max(t-qt,0);return E(n-e(r),t-r)}function Yt({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Kt({keyframes:[f.value,m(f.value)],velocity:Jt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Xt(e,t,n){let r=[],i=n||m.mix||jt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=x(Array.isArray(t)?t[n]||y:t,a)),r.push(a)}return r}function Zt(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(p(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Xt(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=S(e[r],e[r+1],n);return s[r](i)};return n?t=>l(u(e[0],e[a-1],t)):l}function Qt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=S(0,t,r);e.push(B(n,1,i))}}function $t(e){let t=[0];return Qt(t,e.length-1),t}function en(e,t){return e.map(e=>e*t)}function tn(e,t){return e.map(()=>t||_e).splice(0,e.length-1)}function nn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ve(r)?r.map(Se):Se(r),a={done:!1,value:t[0]},o=Zt(en(n&&n.length===t.length?n:$t(t),e),t,{ease:Array.isArray(i)?i:tn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var rn=e=>e!==null;function an(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(rn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var on={decay:Yt,inertia:Yt,tween:nn,keyframes:nn,spring:Kt};function sn(e){typeof e.type==`string`&&(e.type=on[e.type])}var cn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},ln=e=>e/100,un=class extends cn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==M.now()&&this.tick(M.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},N.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;sn(e);let{type:t=nn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||nn;process.env.NODE_ENV!==`production`&&s!==nn&&p(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==nn&&typeof o[0]!=`number`&&(this.mixKeyframes=x(ln,jt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Ft(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let _=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?_<0:_>r;this.currentTime=Math.max(_,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,b=n;if(d){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,d+1),t%2&&(f===`reverse`?(n=1-n,p&&(n-=p/o)):f===`mirror`&&(b=a)),y=u(0,1,n)*o}let x;v?(this.delayState.value=l[0],x=this.delayState):x=b.next(y),i&&!v&&(x.value=i(x.value));let{done:S}=x;!v&&s!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&m!==Yt&&(x.value=an(l,this.options,g,this.speed)),h&&h(x.value),C&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return T(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+T(e)}get time(){return T(this.currentTime)}set time(e){e=w(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Jt(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(M.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=T(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Mt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(M.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,N.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function dn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var H=e=>e*180/Math.PI,fn=e=>mn(H(Math.atan2(e[1],e[0]))),pn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:fn,rotateZ:fn,skewX:e=>H(Math.atan(e[1])),skewY:e=>H(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},mn=e=>(e%=360,e<0&&(e+=360),e),hn=fn,gn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),_n=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),vn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:gn,scaleY:_n,scale:e=>(gn(e)+_n(e))/2,rotateX:e=>mn(H(Math.atan2(e[6],e[5]))),rotateY:e=>mn(H(Math.atan2(-e[2],e[0]))),rotateZ:hn,rotate:hn,skewX:e=>H(Math.atan(e[4])),skewY:e=>H(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function yn(e){return e.includes(`scale`)?1:0}function bn(e,t){if(!e||e===`none`)return yn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=vn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=pn,i=t}if(!i)return yn(t);let a=r[t],o=i[1].split(`,`).map(Sn);return typeof a==`function`?a(o):o[a]}var xn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return bn(n,t)};function Sn(e){return parseFloat(e.trim())}var Cn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],wn=new Set(Cn),Tn=e=>e===Ie||e===L,En=new Set([`x`,`y`,`z`]),Dn=Cn.filter(e=>!En.has(e));function On(e){let t=[];return Dn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}var U={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>bn(t,`x`),y:(e,{transform:t})=>bn(t,`y`)};U.translateX=U.x,U.translateY=U.y;var kn=new Set,An=!1,jn=!1,Mn=!1;function Nn(){if(jn){let e=Array.from(kn).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=On(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}jn=!1,An=!1,kn.forEach(e=>e.complete(Mn)),kn.clear()}function Pn(){kn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jn=!0)})}function Fn(){Mn=!0,Pn(),Nn(),Mn=!1}var In=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(kn.add(this),An||(An=!0,k.read(Pn),k.resolveKeyframes(Nn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}dn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),kn.delete(this)}cancel(){this.state===`scheduled`&&(kn.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Ln=e=>e.startsWith(`--`);function Rn(e,t,n){Ln(t)?e.style.setProperty(t,n):e.style[t]=n}var zn={};function Bn(e,t){let n=v(e);return()=>zn[t]??n()}var Vn=Bn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Hn=Bn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Un=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Wn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Un([0,.65,.55,1]),circOut:Un([.55,0,1,.45]),backIn:Un([.31,.01,.66,-.59]),backOut:Un([.33,1.53,.69,.99])};function Gn(e,t){if(e)return typeof e==`function`?Hn()?Nt(e,t):`ease-out`:ye(e)?Un(e):Array.isArray(e)?e.map(e=>Gn(e,t)||Wn.easeOut):Wn[e]}function Kn(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Gn(s,i);Array.isArray(d)&&(u.easing=d),O.value&&N.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return O.value&&p.finished.finally(()=>{N.waapi--}),p}function qn(e){return typeof e==`function`&&`applyToOptions`in e}function Jn({type:e,...t}){return qn(e)&&Hn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Yn=class extends cn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,p(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=Jn(e);this.animation=Kn(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=an(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Rn(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return T(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+T(e)}get time(){return T(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=w(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Vn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),y):r(this)}},Xn={anticipate:de,backInOut:ue,circInOut:me};function Zn(e){return e in Xn}function Qn(e){typeof e.ease==`string`&&Zn(e.ease)&&(e.ease=Xn[e.ease])}var $n=10,er=class extends Yn{constructor(e){Qn(e),sn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new un({...a,autoplay:!1}),s=Math.max($n,M.now()-this.startTime),c=u(0,$n,s-$n),l=o.sample(s).value,{name:d}=this.options;i&&d&&Rn(i,d,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},tr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(z.test(e)||e===`0`)&&!e.startsWith(`url(`));function nr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function rr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=tr(i,t),s=tr(a,t);return f(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:nr(e)||(n===`spring`||qn(n))&&r}function ir(e){e.duration=0,e.type=`keyframes`}var ar=new Set([`opacity`,`clipPath`,`filter`,`transform`]),or=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function sr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&or.test(e[t]))return!0;return!1}var cr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),lr=v(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function ur(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return lr()&&n&&(ar.has(n)||cr.has(n)&&sr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var dr=40,fr=class extends cn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=M.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||In)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=M.now();let u=!0;rr(e,i,a,o)||(u=!1,(m.instantAnimations||!s)&&l?.(an(e,n,t)),e[0]=e[e.length-1],ir(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>dr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&ur(d),p=d.motionValue?.owner?.current,h;if(f)try{h=new er({...d,element:p})}catch{h=new un(d)}else h=new un(d);h.finished.then(()=>{this.notifyFinished()}).catch(y),this.pendingTimeline&&=(this.stopTimeline=h.attachTimeline(this.pendingTimeline),void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Fn()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function pr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var mr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hr(e){let t=mr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var gr=4;function _r(e,t,n=1){p(n<=gr,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=hr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return h(e)?parseFloat(e):e}return Ne(i)?_r(i,t,n+1):i}var vr={type:`spring`,stiffness:500,damping:25,restSpeed:10},yr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),br={type:`keyframes`,duration:.8},xr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Sr=(e,{keyframes:t})=>t.length>2?br:wn.has(e)?e.startsWith(`scale`)?yr(t[1]):vr:xr;function Cr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function wr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Cr(n,e)}var Tr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Er(e){for(let t in e)if(!Tr.has(t))return!0;return!1}var Dr=(e,t,n,r={},i,a)=>o=>{let s=wr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=w(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Er(s)||Object.assign(u,Sr(e,u)),u.duration&&=w(u.duration),u.repeatDelay&&=w(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ir(u),u.delay===0&&(d=!0)),(m.instantAnimations||m.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,ir(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=an(u.keyframes,s);if(e!==void 0){k.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new un(u):new fr(u)};function Or(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function kr(e,t,n,r){if(typeof t==`function`){let[i,a]=Or(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Or(r);t=t(n===void 0?e.custom:n,i,a)}return t}function W(e,t,n){let r=e.getProps();return kr(r,t,n===void 0?r.custom:n,e)}var Ar=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Cn]),jr=30,Mr=e=>!isNaN(parseFloat(e)),Nr={current:void 0},Pr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=M.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=M.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Mr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&ee(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new C);let n=this.events[e].add(t);return e===`change`?()=>{n(),k.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Nr.current&&Nr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=M.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>jr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,jr);return E(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Fr(e,t){return new Pr(e,t)}var Ir=e=>Array.isArray(e);function Lr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fr(n))}function Rr(e){return Ir(e)?e[e.length-1]||0:e}function zr(e,t){let{transitionEnd:n={},transition:r={},...i}=W(e,t)||{};i={...i,...n};for(let t in i)Lr(e,t,Rr(i[t]))}var G=e=>!!(e&&e.getVelocity);function Br(e){return!!(G(e)&&e.add)}function Vr(e,t){let n=e.getValue(`willChange`);if(Br(n))return n.add(t);if(!n&&m.WillChange){let n=new m.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Hr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Ur=`data-`+Hr(`framerAppearId`);function Wr(e){return e.props[Ur]}function Gr({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Kr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Cr(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&Gr(d,t))continue;let o={delay:n,...wr(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){k.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Wr(e);if(n){let e=window.MotionHandoffAnimation(n,t,k);e!==null&&(o.startTime=e,f=!0)}}Vr(e,t);let p=l??e.shouldReduceMotion;r.start(Dr(t,r,i,p&&Ar.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>k.update(()=>{o&&zr(e,o)});u.length?Promise.all(u).then(t):t()}return u}function qr(e,t,n={}){let r=W(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Kr(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Jr(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Jr(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(qr(c,t,{...o,delay:n+(typeof r==`function`?0:r)+pr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Yr(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>qr(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=qr(e,t,n);else{let i=typeof t==`function`?W(e,t,n.custom):t;r=Promise.all(Kr(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Xr={test:e=>e===`auto`,parse:e=>e},Zr=e=>t=>t.test(e),Qr=[Ie,L,I,F,Ze,Xe,Xr],$r=e=>Qr.find(Zr(e));function ei(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||_(e)}var ti=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ni(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Be)||[];if(!r)return e;let i=n.replace(r,``),a=ti.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}var ri=/\b([a-z-]*)\(.*?\)/gu,ii={...z,getAnimatableNone:e=>{let t=e.match(ri);return t?t.map(ni).join(` `):e}},ai={...z,getAnimatableNone:e=>{let t=z.parse(e);return z.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},oi={...Ie,transform:Math.round},si={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,rotate:F,rotateX:F,rotateY:F,rotateZ:F,scale:Re,scaleX:Re,scaleY:Re,scaleZ:Re,skew:F,skewX:F,skewY:F,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:Le,originX:Qe,originY:Qe,originZ:L,zIndex:oi,fillOpacity:Le,strokeOpacity:Le,numOctaves:oi},ci={...si,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:ii,WebkitFilter:ii,mask:ai,WebkitMask:ai},li=e=>ci[e],ui=new Set([ii,ai]);function di(e,t){let n=li(e);return ui.has(n)||(n=z),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var fi=new Set([`auto`,`none`,`0`]);function pi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!fi.has(t)&&ct(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=di(n,i)}var mi=class extends In{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Ne(r))){let i=_r(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ar.has(n)||e.length!==2)return;let[r,i]=e,a=$r(r),o=$r(i);if(Fe(r)!==Fe(i)&&U[n]){this.needsMeasurement=!0;return}if(a!==o)if(Tn(a)&&Tn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else U[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ei(e[t]))&&n.push(t);n.length&&pi(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=U[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=U[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function hi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var gi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function _i(e){return g(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:vi,cancel:yi}=Ee(queueMicrotask,!1),K={x:!1,y:!1};function bi(){return K.x||K.y}function xi(e){return e===`x`||e===`y`?K[e]?null:(K[e]=!0,()=>{K[e]=!1}):K.x||K.y?null:(K.x=K.y=!0,()=>{K.x=K.y=!1})}function Si(e,t){let n=hi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Ci(e){return!(e.pointerType===`touch`||bi())}function wi(e,t,n={}){let[r,i,a]=Si(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Ci(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Ti=(e,t)=>t?e===t?!0:Ti(e,t.parentElement):!1,Ei=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Di=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Oi(e){return Di.has(e.tagName)||e.isContentEditable===!0}var ki=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Ai(e){return ki.has(e.tagName)||e.isContentEditable===!0}var ji=new WeakSet;function Mi(e){return t=>{t.key===`Enter`&&e(t)}}function Ni(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Pi=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Mi(()=>{if(ji.has(n))return;Ni(n,`down`);let e=Mi(()=>{Ni(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ni(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Fi(e){return Ei(e)&&!bi()}var Ii=new WeakSet;function Li(e,t,n={}){let[r,i,a]=Si(e,n),o=e=>{let r=e.currentTarget;if(!Fi(e)||Ii.has(e))return;ji.add(r),n.stopPropagation&&Ii.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),ji.has(r)&&ji.delete(r),Fi(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Ti(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),_i(e)&&(e.addEventListener(`focus`,e=>Pi(e,i)),!Oi(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Ri(e){return g(e)&&`ownerSVGElement`in e}var zi=new WeakMap,Bi,Vi=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Ri(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Hi=Vi(`inline`,`width`,`offsetWidth`),Ui=Vi(`block`,`height`,`offsetHeight`);function Wi({target:e,borderBoxSize:t}){zi.get(e)?.forEach(n=>{n(e,{get width(){return Hi(e,t)},get height(){return Ui(e,t)}})})}function Gi(e){e.forEach(Wi)}function Ki(){typeof ResizeObserver>`u`||(Bi=new ResizeObserver(Gi))}function qi(e,t){Bi||Ki();let n=hi(e);return n.forEach(e=>{let n=zi.get(e);n||(n=new Set,zi.set(e,n)),n.add(t),Bi?.observe(e)}),()=>{n.forEach(e=>{let n=zi.get(e);n?.delete(t),n?.size||Bi?.unobserve(e)})}}var Ji=new Set,Yi;function Xi(){Yi=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ji.forEach(t=>t(e))},window.addEventListener(`resize`,Yi)}function Zi(e){return Ji.add(e),Yi||Xi(),()=>{Ji.delete(e),!Ji.size&&typeof Yi==`function`&&(window.removeEventListener(`resize`,Yi),Yi=void 0)}}function Qi(e,t){return typeof e==`function`?Zi(e):qi(e,t)}function $i(e){return Ri(e)&&e.tagName===`svg`}var ea=[...Qr,R,z],ta=e=>ea.find(Zr(e)),na=()=>({translate:0,scale:1,origin:0,originPoint:0}),ra=()=>({x:na(),y:na()}),ia=()=>({min:0,max:0}),q=()=>({x:ia(),y:ia()}),aa=new WeakMap;function oa(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function sa(e){return typeof e==`string`||Array.isArray(e)}var ca=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],la=[`initial`,...ca];function ua(e){return oa(e.animate)||la.some(t=>sa(e[t]))}function da(e){return!!(ua(e)||e.variants)}function fa(e,t,n){for(let r in t){let i=t[r],a=n[r];if(G(i))e.addValue(r,i);else if(G(a))e.addValue(r,Fr(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Fr(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var pa={current:null},ma={current:!1},ha=typeof window<`u`;function ga(){if(ma.current=!0,ha)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>pa.current=e.matches;e.addEventListener(`change`,t),t()}else pa.current=!1}var _a=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],va={};function ya(e){va=e}function ba(){return va}var xa=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=In,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=M.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,k.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=ua(t),this.isVariantNode=da(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&G(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,aa.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ma.current||ga(),this.shouldReduceMotion=pa.current),process.env.NODE_ENV!==`production`&&ee(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),A(this.notifyUpdate),A(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&ar.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Yn({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:w(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=wn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&k.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in va){let t=va[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<_a.length;t++){let n=_a[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=fa(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Fr(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(h(n)||_(n))?n=parseFloat(n):!ta(n)&&z.test(t)&&(n=di(e,t)),this.setBaseTarget(e,G(n)?n.get():n)),G(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=kr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!G(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new C),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){vi.render(this.render)}},Sa=class extends xa{constructor(){super(...arguments),this.KeyframeResolver=mi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;G(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},J=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Ca({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function wa({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ta(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ea(e){return e===void 0||e===1}function Da({scale:e,scaleX:t,scaleY:n}){return!Ea(e)||!Ea(t)||!Ea(n)}function Y(e){return Da(e)||Oa(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Oa(e){return ka(e.x)||ka(e.y)}function ka(e){return e&&e!==`0%`}function Aa(e,t,n){return n+t*(e-n)}function ja(e,t,n,r,i){return i!==void 0&&(e=Aa(e,i,r)),Aa(e,n,r)+t}function Ma(e,t=0,n=1,r,i){e.min=ja(e.min,t,n,r,i),e.max=ja(e.max,t,n,r,i)}function Na(e,{x:t,y:n}){Ma(e.x,t.translate,t.scale,t.originPoint),Ma(e.y,n.translate,n.scale,n.originPoint)}var Pa=.999999999999,Fa=1.0000000000001;function Ia(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(X(e.x,-a.scroll.offset.x),X(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Na(e,o)),r&&Y(a.latestValues)&&za(e,a.latestValues,a.layout?.layoutBox))}t.x<Fa&&t.x>Pa&&(t.x=1),t.y<Fa&&t.y>Pa&&(t.y=1)}function X(e,t){e.min+=t,e.max+=t}function La(e,t,n,r,i=.5){Ma(e,t,n,B(e.min,e.max,i),r)}function Ra(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function za(e,t,n){let r=n??e;La(e.x,Ra(t.x,r.x),t.scaleX,t.scale,t.originX),La(e.y,Ra(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ba(e,t){return Ca(Ta(e.getBoundingClientRect(),t))}function Va(e,t,n){let r=Ba(e,n),{scroll:i}=t;return i&&(X(r.x,i.offset.x),X(r.y,i.offset.y)),r}var Ha={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ua=Cn.length;function Wa(e,t,n){let r=``,i=!0;for(let a=0;a<Ua;a++){let o=Cn[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===(o.startsWith(`scale`)?1:0);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=gi(s,si[o]);if(!c){i=!1;let t=Ha[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Ga(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(wn.has(e)){o=!0;continue}else if(je(e)){i[e]=n;continue}else{let t=gi(n,si[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Wa(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Ka(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function qa(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ja={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(L.test(e))e=parseFloat(e);else return e;return`${qa(e,t.target.x)}% ${qa(e,t.target.y)}%`}},Ya={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=z.parse(e);if(i.length>5)return r;let a=z.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=B(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Xa={borderRadius:{...Ja,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Ja,borderTopRightRadius:Ja,borderBottomLeftRadius:Ja,borderBottomRightRadius:Ja,boxShadow:Ya};function Za(e,{layout:t,layoutId:n}){return wn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Xa[e]||e===`opacity`)}function Qa(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(G(r[t])||i&&G(i[t])||Za(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function $a(e){return window.getComputedStyle(e)}var eo=class extends Sa{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Ka}readValueFromInstance(e,t){if(wn.has(t))return this.projection?.isProjecting?yn(t):xn(e,t);{let n=$a(e),r=(je(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ba(e,t)}build(e,t,n){Ga(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Qa(e,t,n)}},to={offset:`stroke-dashoffset`,array:`stroke-dasharray`},no={offset:`strokeDashoffset`,array:`strokeDasharray`};function ro(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?to:no;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var io=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ao(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Ga(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of io)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ro(d,i,a,o,!1)}var oo=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),so=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function co(e,t,n,r){Ka(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(oo.has(n)?n:Hr(n),t.attrs[n])}function lo(e,t,n){let r=Qa(e,t,n);for(let n in e)if(G(e[n])||G(t[n])){let t=Cn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var uo=class extends Sa{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(wn.has(t)){let e=li(t);return e&&e.default||0}return t=oo.has(t)?t:Hr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return lo(e,t,n)}build(e,t,n){ao(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){co(e,t,n,r)}mount(e){this.isSVGTag=so(e.tagName),super.mount(e)}},fo=la.length;function po(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&po(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<fo;n++){let r=la[n],i=e.props[r];(sa(i)||i===!1)&&(t[r]=i)}return t}function mo(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var ho=[...ca].reverse(),go=ca.length;function _o(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Yr(e,t,n)))}function vo(e){let t=_o(e),n=xo(),r=!0,i=!1,a=t=>(n,r)=>{let i=W(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=po(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<go;t++){let p=ho[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=sa(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||oa(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=yo(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Ir(t)&&Ir(n)?!mo(t,n):t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=W(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=pr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=W(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=xo(),i=!0}}}function yo(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!mo(t,e):!1}function bo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xo(){return{animate:bo(!0),whileInView:bo(),whileHover:bo(),whileTap:bo(),whileDrag:bo(),whileFocus:bo(),exit:bo()}}function So(e,t){e.min=t.min,e.max=t.max}function Z(e,t){So(e.x,t.x),So(e.y,t.y)}function Co(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var wo=1e-4,To=1-wo,Eo=1+wo,Do=.01,Oo=0-Do,ko=0+Do;function Q(e){return e.max-e.min}function Ao(e,t,n){return Math.abs(e-t)<=n}function jo(e,t,n,r=.5){e.origin=r,e.originPoint=B(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=B(n.min,n.max,e.origin)-e.originPoint,(e.scale>=To&&e.scale<=Eo||isNaN(e.scale))&&(e.scale=1),(e.translate>=Oo&&e.translate<=ko||isNaN(e.translate))&&(e.translate=0)}function Mo(e,t,n,r){jo(e.x,t.x,n.x,r?r.originX:void 0),jo(e.y,t.y,n.y,r?r.originY:void 0)}function No(e,t,n,r=0){e.min=(r?B(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function Po(e,t,n,r){No(e.x,t.x,n.x,r?.x),No(e.y,t.y,n.y,r?.y)}function Fo(e,t,n,r=0){let i=r?B(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function Io(e,t,n,r){Fo(e.x,t.x,n.x,r?.x),Fo(e.y,t.y,n.y,r?.y)}function Lo(e,t,n,r,i){return e-=t,e=Aa(e,1/n,r),i!==void 0&&(e=Aa(e,1/i,r)),e}function Ro(e,t=0,n=1,r=.5,i,a=e,o=e){if(I.test(t)&&(t=parseFloat(t),t=B(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=B(a.min,a.max,r);e===a&&(s-=t),e.min=Lo(e.min,t,n,s,i),e.max=Lo(e.max,t,n,s,i)}function zo(e,t,[n,r,i],a,o){Ro(e,t[n],t[r],t[i],t.scale,a,o)}var Bo=[`x`,`scaleX`,`originX`],Vo=[`y`,`scaleY`,`originY`];function Ho(e,t,n,r){zo(e.x,t,Bo,n?n.x:void 0,r?r.x:void 0),zo(e.y,t,Vo,n?n.y:void 0,r?r.y:void 0)}function Uo(e){return e.translate===0&&e.scale===1}function Wo(e){return Uo(e.x)&&Uo(e.y)}function Go(e,t){return e.min===t.min&&e.max===t.max}function Ko(e,t){return Go(e.x,t.x)&&Go(e.y,t.y)}function qo(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Jo(e,t){return qo(e.x,t.x)&&qo(e.y,t.y)}function Yo(e){return Q(e.x)/Q(e.y)}function Xo(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function $(e){return[e(`x`),e(`y`)]}function Zo(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Qo=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],$o=Qo.length,es=e=>typeof e==`string`?parseFloat(e):e,ts=e=>typeof e==`number`||L.test(e);function ns(e,t,n,r,i,a){i?(e.opacity=B(0,n.opacity??1,is(r)),e.opacityExit=B(t.opacity??1,0,as(r))):a&&(e.opacity=B(t.opacity??1,n.opacity??1,r));for(let i=0;i<$o;i++){let a=Qo[i],o=rs(t,a),s=rs(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||ts(o)===ts(s)?(e[a]=Math.max(B(es(o),es(s),r),0),(I.test(s)||I.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=B(t.rotate||0,n.rotate||0,r))}function rs(e,t){return e[t]===void 0?e.borderRadius:e[t]}var is=os(0,.5,pe),as=os(.5,.95,y);function os(e,t,n){return r=>r<e?0:r>t?1:n(S(e,t,r))}function ss(e,t,n){let r=G(e)?e:Fr(e);return r.start(Dr(``,r,t,n)),r.animation}function cs(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var ls=(e,t)=>e.depth-t.depth,us=class{constructor(){this.children=[],this.isDirty=!1}add(e){c(this.children,e),this.isDirty=!0}remove(e){l(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ls),this.isDirty=!1,this.children.forEach(e)}};function ds(e,t){let n=M.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(A(r),e(a-t))};return k.setup(r,!0),()=>A(r)}function fs(e){return G(e)?e.get():e}var ps=class{constructor(){this.members=[]}add(e){c(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(l(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(l(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},ms={hasAnimatedSinceResize:!0,hasEverUpdated:!1},hs={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},gs=[``,`X`,`Y`,`Z`],_s=1e3,vs=0;function ys(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function bs(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Wr(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,k,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&bs(r)}function xs({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=vs++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,O.value&&(hs.nodes=hs.calculatedTargetDeltas=hs.calculatedProjections=0),this.nodes.forEach(ws),this.nodes.forEach(Ns),this.nodes.forEach(Ps),this.nodes.forEach(Ts),O.addProjectionMetrics&&O.addProjectionMetrics(hs)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new us)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new C),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Ri(t)&&!$i(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;k.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=ds(i,250),ms.hasAnimatedSinceResize&&(ms.hasAnimatedSinceResize=!1,this.nodes.forEach(Ms)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Vs,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Jo(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...wr(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||Ms(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),A(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Fs),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&bs(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Os),this.nodes.forEach(Ds);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ks);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(As),this.nodes.forEach(js),this.nodes.forEach(Ss),this.nodes.forEach(Cs)):this.nodes.forEach(ks),this.clearAllSnapshots();let e=M.now();j.delta=u(0,1e3/60,e-j.timestamp),j.timestamp=e,j.isProcessing=!0,De.update.process(j),De.preRender.process(j),De.render.process(j),j.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Es),this.sharedNodes.forEach(Is)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=q(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Wo(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Y(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Gs(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return q();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(qs))){let{scroll:e}=this.root;e&&(X(t.x,e.offset.x),X(t.y,e.offset.y))}return t}removeElementScroll(e){let t=q();if(Z(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Z(t,e),X(t.x,i.offset.x),X(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||q();Z(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(X(r.x,-n.scroll.offset.x),X(r.y,-n.scroll.offset.y)),Y(n.latestValues)&&za(r,n.latestValues,n.layout?.layoutBox)}return Y(this.latestValues)&&za(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=q();Z(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Y(n.latestValues))continue;let r;n.instance&&(Da(n.latestValues)&&n.updateSnapshot(),r=q(),Z(r,n.measurePageBox())),Ho(t,n.latestValues,n.snapshot?.layoutBox,r)}return Y(this.latestValues)&&Ho(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==j.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=j.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Po(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Z(this.target,this.layout.layoutBox),Na(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),O.value&&hs.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Da(this.parent.latestValues)||Oa(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),Io(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===j.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Z(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ia(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=q());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Co(this.prevProjectionDelta.x,this.projectionDelta.x),Co(this.prevProjectionDelta.y,this.projectionDelta.y)),Mo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Xo(this.projectionDelta.x,this.prevProjectionDelta.x)||!Xo(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),O.value&&hs.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ra(),this.projectionDelta=ra(),this.projectionDeltaWithTransform=ra()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=ra();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=q(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(Bs));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;Ls(a.x,e.x,n),Ls(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Io(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),zs(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&Ko(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=q(),Z(d,this.relativeTarget)),s&&(this.animationValues=i,ns(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(A(this.pendingAnimation),void 0),this.pendingAnimation=k.update(()=>{ms.hasAnimatedSinceResize=!0,N.layout++,this.motionValue||=Fr(0),this.motionValue.jump(0,!1),this.currentAnimation=ss(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{N.layout--},onComplete:()=>{N.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_s),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Ks(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||q();let t=Q(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Q(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Z(t,n),za(t,i),Mo(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ps),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ys(`z`,e,r,this.animationValues);for(let t=0;t<gs.length;t++)ys(`rotate${gs[t]}`,e,r,this.animationValues),ys(`skew${gs[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=fs(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=fs(t?.pointerEvents)||``),this.hasProjected&&!Y(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Zo(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Xa){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Xa[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?fs(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Ds),this.root.sharedNodes.clear()}}}function Ss(e){e.updateLayout()}function Cs(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)$(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Q(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;So(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Ks(i,t.layoutBox,n)&&$(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Q(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=ra();Mo(o,n,t.layoutBox);let s=ra();a?Mo(s,e.applyTransform(r,!0),t.measuredBox):Mo(s,n,t.layoutBox);let c=!Wo(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=q();Io(s,t.layoutBox,i.layoutBox,o);let c=q();Io(c,n,a.layoutBox,o),Jo(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ws(e){O.value&&hs.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Ts(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Es(e){e.clearSnapshot()}function Ds(e){e.clearMeasurements()}function Os(e){e.isLayoutDirty=!0,e.updateLayout()}function ks(e){e.isLayoutDirty=!1}function As(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function js(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Ms(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ns(e){e.resolveTargetDelta()}function Ps(e){e.calcProjection()}function Fs(e){e.resetSkewAndRotation()}function Is(e){e.removeLeadSnapshot()}function Ls(e,t,n){e.translate=B(t.translate,0,n),e.scale=B(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Rs(e,t,n,r){e.min=B(t.min,n.min,r),e.max=B(t.max,n.max,r)}function zs(e,t,n,r){Rs(e.x,t.x,n.x,r),Rs(e.y,t.y,n.y,r)}function Bs(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Vs={duration:.45,ease:[.4,0,.1,1]},Hs=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Us=Hs(`applewebkit/`)&&!Hs(`chrome/`)?Math.round:y;function Ws(e){e.min=Us(e.min),e.max=Us(e.max)}function Gs(e){Ws(e.x),Ws(e.y)}function Ks(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ao(Yo(t),Yo(n),.2)}function qs(e){return e!==e.root&&e.scroll?.wasRoot}var Js=xs({attachResizeListener:(e,t)=>cs(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ys={current:void 0},Xs=xs({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ys.current){let e=new Js({});e.mount(window),e.setOptions({layoutScroll:!0}),Ys.current=e}return Ys.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Zs=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Qs(e=!0){let t=(0,n.useContext)(s);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:i,register:a}=t,o=(0,n.useId)();(0,n.useEffect)(()=>{if(e)return a(o)},[e]);let c=(0,n.useCallback)(()=>e&&i&&i(o),[o,i,e]);return!r&&i?[!1,c]:[!0]}var $s=(0,n.createContext)({strict:!1}),ec={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},tc=!1;function nc(){if(tc)return;let e={};for(let t in ec)e[t]={isEnabled:e=>ec[t].some(t=>!!e[t])};ya(e),tc=!0}function rc(){return nc(),ba()}function ic(e){let t=rc();for(let n in e)t[n]={...t[n],...e[n]};ya(t)}var ac=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function oc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||ac.has(e)}var sc=e.r({default:()=>cc}),cc,lc=e.n((()=>{throw cc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),uc=e=>!oc(e);function dc(e){typeof e==`function`&&(uc=t=>t.startsWith(`on`)?!oc(t):e(t))}try{dc((lc(),e.i(sc)).default)}catch{}function fc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||G(e[i])||(uc(i)||n===!0&&oc(i)||!t&&!oc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var pc=(0,n.createContext)({});function mc(e,t){if(ua(e)){let{initial:t,animate:n}=e;return{initial:t===!1||sa(t)?t:void 0,animate:sa(n)?n:void 0}}return e.inherit===!1?{}:t}function hc(e){let{initial:t,animate:r}=mc(e,(0,n.useContext)(pc));return(0,n.useMemo)(()=>({initial:t,animate:r}),[gc(t),gc(r)])}function gc(e){return Array.isArray(e)?e.join(` `):e}var _c=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vc(e,t,n){for(let r in t)!G(t[r])&&!Za(r,n)&&(e[r]=t[r])}function yc({transformTemplate:e},t){return(0,n.useMemo)(()=>{let n=_c();return Ga(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bc(e,t){let n=e.style||{},r={};return vc(r,n,e),Object.assign(r,yc(e,t)),r}function xc(e,t){let n={},r=bc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Sc=()=>({..._c(),attrs:{}});function Cc(e,t,r,i){let a=(0,n.useMemo)(()=>{let n=Sc();return ao(n,t,so(i),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};vc(t,e.style,e),a.style={...t,...a.style}}return a}var wc=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Tc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(wc.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ec(e,t,r,{latestValues:i},a,o=!1,s){let c=(s??Tc(e)?Cc:xc)(t,i,a,e),l=fc(t,typeof e==`string`,o),u=e===n.Fragment?{}:{...l,...c,ref:r},{children:d}=t,f=(0,n.useMemo)(()=>G(d)?d.get():d,[d]);return(0,n.createElement)(e,{...u,children:f})}function Dc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Oc(n,r,i,e),renderState:t()}}function Oc(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=fs(a[e]);let{initial:o,animate:s}=e,c=ua(e),l=da(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!oa(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=kr(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var kc=e=>(t,r)=>{let i=(0,n.useContext)(pc),o=(0,n.useContext)(s),c=()=>Dc(e,t,i,o);return r?c():a(c)},Ac=kc({scrapeMotionValuesFromProps:Qa,createRenderState:_c}),jc=kc({scrapeMotionValuesFromProps:lo,createRenderState:Sc}),Mc=Symbol.for(`motionComponentSymbol`);function Nc(e,t,r){let i=(0,n.useRef)(r);(0,n.useInsertionEffect)(()=>{i.current=r});let a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{n&&e.onMount?.(n);let r=i.current;if(typeof r==`function`)if(n){let e=r(n);typeof e==`function`&&(a.current=e)}else a.current?(a.current(),a.current=null):r(n);else r&&(r.current=n);t&&(n?t.mount(n):t.unmount())},[t])}var Pc=(0,n.createContext)({});function Fc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Ic(e,t,r,i,a,c){let{visualElement:l}=(0,n.useContext)(pc),u=(0,n.useContext)($s),d=(0,n.useContext)(s),f=(0,n.useContext)(Zs),p=f.reducedMotion,m=f.skipAnimations,h=(0,n.useRef)(null),g=(0,n.useRef)(!1);i||=u.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:l,props:r,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:p,skipAnimations:m,isSVG:c}),g.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let _=h.current,v=(0,n.useContext)(Pc);_&&!_.projection&&a&&(_.type===`html`||_.type===`svg`)&&Lc(h.current,r,a,v);let y=(0,n.useRef)(!1);(0,n.useInsertionEffect)(()=>{_&&y.current&&_.update(r,d)});let b=r[Ur],x=(0,n.useRef)(!!b&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return o(()=>{g.current=!0,_&&(y.current=!0,window.MotionIsMounted=!0,_.updateFeatures(),_.scheduleRenderMicrotask(),x.current&&_.animationState&&_.animationState.animateChanges())}),(0,n.useEffect)(()=>{_&&(!x.current&&_.animationState&&_.animationState.animateChanges(),x.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),!1),_.enteringChildren=void 0)}),_}function Lc(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Rc(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Fc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Rc(e){if(e)return e.options.allowProjection===!1?Rc(e.parent):e.projection}function zc(e,{forwardMotionProps:t=!1,type:i}={},a,o){a&&ic(a);let s=i?i===`svg`:Tc(e),c=s?jc:Ac;function l(i,l){let u,d={...(0,n.useContext)(Zs),...i,layoutId:Bc(i)},{isStatic:f}=d,p=hc(i),m=c(i,f);if(!f&&typeof window<`u`){Vc(d,a);let t=Hc(d);u=t.MeasureLayout,p.visualElement=Ic(e,m,d,o,t.ProjectionNode,s)}return(0,r.jsxs)(pc.Provider,{value:p,children:[u&&p.visualElement?(0,r.jsx)(u,{visualElement:p.visualElement,...d}):null,Ec(e,i,Nc(m,p.visualElement,l),m,f,t,s)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=(0,n.forwardRef)(l);return u[Mc]=e,u}function Bc({layoutId:e}){let t=(0,n.useContext)(i).id;return t&&e!==void 0?t+`-`+e:e}function Vc(e,t){let r=(0,n.useContext)($s).strict;if(process.env.NODE_ENV!==`production`&&t&&r){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?f(!1,t,`lazy-strict-mode`):p(!1,t,`lazy-strict-mode`)}}function Hc(e){let{drag:t,layout:n}=rc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Uc(e,t){if(typeof Proxy>`u`)return zc;let n=new Map,r=(n,r)=>zc(n,r,e,t);return new Proxy((e,t)=>(process.env.NODE_ENV!==`production`&&ee(!1,`motion() is deprecated. Use motion.create() instead.`),r(e,t)),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,zc(a,void 0,e,t)),n.get(a))})}var Wc=(e,t)=>t.isSVG??Tc(e)?new uo(t):new eo(t,{allowProjection:e!==n.Fragment}),Gc=class extends J{constructor(e){super(e),e.animationState||=vo(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();oa(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Kc=0,qc={animation:{Feature:Gc},exit:{Feature:class extends J{constructor(){super(...arguments),this.id=Kc++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`){let n=W(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Jc(e){return{point:{x:e.pageX,y:e.pageY}}}var Yc=e=>t=>Ei(t)&&e(t,Jc(t));function Xc(e,t,n,r){return cs(e,t,Yc(n),r)}var Zc=({current:e})=>e?e.ownerDocument.defaultView:null,Qc=(e,t)=>Math.abs(e-t);function $c(e,t){let n=Qc(e.x,t.x),r=Qc(e.y,t.y);return Math.sqrt(n**2+r**2)}var el=new Set([`auto`,`scroll`]),tl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=il(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=$c(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=j;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=nl(t,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=il(e.type===`pointercancel`?this.lastMoveEventInfo:nl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Ei(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=nl(Jc(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=j;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,il(s,this.history)),this.removeListeners=x(Xc(this.contextWindow,`pointermove`,this.handlePointerMove),Xc(this.contextWindow,`pointerup`,this.handlePointerUp),Xc(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(el.has(e.overflowX)||el.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),k.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),A(this.updatePoint)}};function nl(e,t){return t?{point:t(e.point)}:e}function rl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function il({point:e},t){return{point:e,delta:rl(e,ol(t)),offset:rl(e,al(t)),velocity:sl(t,.1)}}function al(e){return e[0]}function ol(e){return e[e.length-1]}function sl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ol(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>w(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>w(t)*2&&(r=e[1]);let a=T(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function cl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?B(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?B(n,e,r.max):Math.min(e,n)),e}function ll(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function ul(e,{top:t,left:n,bottom:r,right:i}){return{x:ll(e.x,n,i),y:ll(e.y,t,r)}}function dl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function fl(e,t){return{x:dl(e.x,t.x),y:dl(e.y,t.y)}}function pl(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=S(t.min,t.max-r,e.min):r>i&&(n=S(e.min,e.max-i,t.min)),u(0,1,n)}function ml(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var hl=.35;function gl(e=hl){return e===!1?e=0:e===!0&&(e=hl),{x:_l(e,`left`,`right`),y:_l(e,`top`,`bottom`)}}function _l(e,t,n){return{min:vl(e,t),max:vl(e,n)}}function vl(e,t){return typeof e==`number`?e:e[t]||0}var yl=new WeakMap,bl=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Jc(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xi(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$(e=>{let t=this.getAxisMotionValue(e).get()||0;if(I.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Q(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&k.update(()=>i(e,t),!1,!0),Vr(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=wl(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&k.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new tl(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Zc(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&k.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Cl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=cl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Fc(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=ul(n.layoutBox,e):this.constraints=!1,this.elastic=gl(t),r!==this.constraints&&!Fc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&$(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=ml(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Fc(e))return!1;let n=e.current;p(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.",`drag-constraints-ref`);let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=Va(n,r.root,this.visualElement.getTransformPagePoint()),a=fl(r.layout.layoutBox,i);if(t){let e=t(wa(a));this.hasMutatedConstraints=!!e,e&&(a=Ca(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=$(o=>{if(!Cl(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Vr(this.visualElement,e),n.start(Dr(e,n,0,t,this.visualElement,!1))}stopAnimation(){$(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){$(t=>{let{drag:n}=this.getProps();if(!Cl(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-B(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Fc(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};$(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=pl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),$(t=>{if(!Cl(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(B(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;yl.set(this.visualElement,this);let e=this.visualElement.current,t=Xc(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Ai(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Fc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Sl(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),k.read(r);let o=cs(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&($(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=hl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function xl(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Sl(e,t,n){let r=Qi(e,xl(n)),i=Qi(t,xl(n));return()=>{r(),i()}}function Cl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Tl=class extends J{constructor(e){super(e),this.removeGroupControls=y,this.removeListeners=y,this.controls=new bl(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||y}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},El=e=>(t,n)=>{e&&k.update(()=>e(t,n),!1,!0)},Dl=class extends J{constructor(){super(...arguments),this.removePointerDownListener=y}onPointerDown(e){this.session=new tl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zc(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:El(e),onStart:El(t),onMove:El(n),onEnd:(e,t)=>{delete this.session,r&&k.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Xc(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Ol=!1,kl=class extends n.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Ol&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ms.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Ol=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||k.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),vi.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Ol=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Al(e){let[t,a]=Qs(),o=(0,n.useContext)(i);return(0,r.jsx)(kl,{...e,layoutGroup:o,switchLayoutGroup:(0,n.useContext)(Pc),isPresent:t,safeToRemove:a})}var jl={pan:{Feature:Dl},drag:{Feature:Tl,ProjectionNode:Xs,MeasureLayout:Al}};function Ml(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&k.postRender(()=>i(t,Jc(t)))}var Nl=class extends J{mount(){let{current:e}=this.node;e&&(this.unmount=wi(e,(e,t)=>(Ml(this.node,t,`Start`),e=>Ml(this.node,e,`End`))))}unmount(){}},Pl=class extends J{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=x(cs(this.node.current,`focus`,()=>this.onFocus()),cs(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Fl(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&k.postRender(()=>i(t,Jc(t)))}var Il=class extends J{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Li(e,(e,t)=>(Fl(this.node,t,`Start`),(e,{success:t})=>Fl(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Ll=new WeakMap,Rl=new WeakMap,zl=e=>{let t=Ll.get(e.target);t&&t(e)},Bl=e=>{e.forEach(zl)};function Vl({root:e,...t}){let n=e||document;Rl.has(n)||Rl.set(n,{});let r=Rl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Bl,{root:e,...t})),r[i]}function Hl(e,t,n){let r=Vl(t);return Ll.set(e,n),r.observe(e),()=>{Ll.delete(e),r.unobserve(e)}}var Ul={some:0,all:1},Wl=class extends J{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Ul[r]};this.stopObserver=Hl(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Gl(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Gl({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Kl={inView:{Feature:Wl},tap:{Feature:Il},focus:{Feature:Pl},hover:{Feature:Nl}},ql={layout:{ProjectionNode:Xs,MeasureLayout:Al}},Jl=Uc({...qc,...Kl,...jl,...ql},Wc),Yl={root:`_root_19u7b_1`,container:`_container_19u7b_10`,item:`_item_19u7b_23`,label:`_label_19u7b_29`};function Xl(e=4){return[...t.t].sort(()=>Math.random()-.5).slice(0,e)}var Zl=Xl(),Ql={type:`spring`,damping:20,stiffness:300};function $l(e){return[...e].sort(()=>Math.random()-.5)}var eu=({label:e=`Work In Progress`})=>{let[t,i]=(0,n.useState)(Zl);return(0,n.useEffect)(()=>{let e=setTimeout(()=>i(e=>$l(e)),1e3);return()=>clearTimeout(e)},[t]),(0,r.jsxs)(`div`,{className:Yl.root,"data-testid":`app-empty-state`,children:[(0,r.jsx)(`ul`,{className:Yl.container,children:t.map(e=>(0,r.jsx)(Jl.li,{layout:!0,transition:Ql,className:Yl.item,style:{backgroundColor:e}},e))}),(0,r.jsx)(`p`,{className:Yl.label,children:e})]})};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Zs}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return zr}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Qs}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Xl}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return _i}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Jl}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Yr}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return eu}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return s}});
@@ -1 +0,0 @@
1
- require(`./chunk-CiTBaPhY.cjs`);const e=require(`./Box-D_64wv6n.cjs`),t=require(`./create-safe-context-95P-Bfg3.cjs`),n=require(`./Paper-DwCpwWwH.cjs`),r=require(`./desktopStore-Cox-Og1z.cjs`),i=require(`./useDynamicIcon-SytdL1Tu.cjs`);let a=require(`react`),o=require(`react/jsx-runtime`);var[s,c]=t.t(`Card component was not found in tree`),l={root:`m_e615b15f`,section:`m_599a2148`},u=e.n(t=>{let{classNames:n,className:r,style:i,styles:a,vars:s,withBorder:l,inheritPadding:u,mod:d,...f}=e.l(`CardSection`,null,t),p=c();return(0,o.jsx)(e.t,{mod:[{"with-border":l,"inherit-padding":u},d],...p.getStyles(`section`,{className:r,style:i,styles:a,classNames:n}),...f})});u.classes=l,u.displayName=`@mantine/core/CardSection`;var d=e.O((t,{padding:n})=>({root:{"--card-padding":e.P(n)}})),f={orientation:`vertical`},p=e.n(t=>{let r=e.l(`Card`,f,t),{classNames:i,className:c,style:p,styles:m,unstyled:h,vars:g,children:_,padding:v,attributes:y,orientation:b,...x}=r,S=e.c({name:`Card`,props:r,classes:l,className:c,style:p,classNames:i,styles:m,unstyled:h,attributes:y,vars:g,varsResolver:d}),C=a.Children.toArray(_),w=C.map((e,t)=>typeof e==`object`&&e&&`type`in e&&e.type===u?(0,a.cloneElement)(e,{"data-orientation":b,"data-first-section":t===0||void 0,"data-last-section":t===C.length-1||void 0}):e);return(0,o.jsx)(s,{value:{getStyles:S},children:(0,o.jsx)(n.t,{unstyled:h,"data-orientation":b,...S(`root`),...x,children:w})})});p.classes=l,p.varsResolver=d,p.displayName=`@mantine/core/Card`,p.Section=u;var m=({fcIcon:e,fallback:t,iconUrl:n,size:a=20,color:s})=>{let c=e?.startsWith(`Fi`),l=e?.startsWith(`Vsc`),u=i.i(!c&&!l?e??``:``,{size:a}),d=i.o(c?e??``:``,{size:a,color:s}),f=i.c(l?e??``:``,{size:a});return n?(0,o.jsx)(`img`,{src:r.g(n),alt:``,width:a,height:a,style:{objectFit:`contain`}}):c&&d?d:l&&f?f:u||(t?(0,o.jsx)(`span`,{"aria-hidden":`true`,children:t}):null)};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return m}});
@@ -1,80 +0,0 @@
1
- import { O as e, P as t, c as n, l as r, n as i, t as a } from "./Box-DRm8EabO.js";
2
- import { t as o } from "./create-safe-context-XT2cxc14.js";
3
- import { t as s } from "./Paper-DtUYKmYn.js";
4
- import { g as c } from "./desktopStore-B0R1-BeA.js";
5
- import { c as l, i as u, o as d } from "./useDynamicIcon-GJg3vWsJ.js";
6
- import { Children as f, cloneElement as p } from "react";
7
- import { jsx as m } from "react/jsx-runtime";
8
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Card/Card.context.mjs
9
- var [h, g] = o("Card component was not found in tree"), _ = {
10
- root: "m_e615b15f",
11
- section: "m_599a2148"
12
- }, v = i((e) => {
13
- let { classNames: t, className: n, style: i, styles: o, vars: s, withBorder: c, inheritPadding: l, mod: u, ...d } = r("CardSection", null, e), f = g();
14
- return /* @__PURE__ */ m(a, {
15
- mod: [{
16
- "with-border": c,
17
- "inherit-padding": l
18
- }, u],
19
- ...f.getStyles("section", {
20
- className: n,
21
- style: i,
22
- styles: o,
23
- classNames: t
24
- }),
25
- ...d
26
- });
27
- });
28
- v.classes = _, v.displayName = "@mantine/core/CardSection";
29
- //#endregion
30
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Card/Card.mjs
31
- var y = e((e, { padding: n }) => ({ root: { "--card-padding": t(n) } })), b = { orientation: "vertical" }, x = i((e) => {
32
- let t = r("Card", b, e), { classNames: i, className: a, style: o, styles: c, unstyled: l, vars: u, children: d, padding: g, attributes: x, orientation: S, ...C } = t, w = n({
33
- name: "Card",
34
- props: t,
35
- classes: _,
36
- className: a,
37
- style: o,
38
- classNames: i,
39
- styles: c,
40
- unstyled: l,
41
- attributes: x,
42
- vars: u,
43
- varsResolver: y
44
- }), T = f.toArray(d), E = T.map((e, t) => typeof e == "object" && e && "type" in e && e.type === v ? p(e, {
45
- "data-orientation": S,
46
- "data-first-section": t === 0 || void 0,
47
- "data-last-section": t === T.length - 1 || void 0
48
- }) : e);
49
- return /* @__PURE__ */ m(h, {
50
- value: { getStyles: w },
51
- children: /* @__PURE__ */ m(s, {
52
- unstyled: l,
53
- "data-orientation": S,
54
- ...w("root"),
55
- ...C,
56
- children: E
57
- })
58
- });
59
- });
60
- x.classes = _, x.varsResolver = y, x.displayName = "@mantine/core/Card", x.Section = v;
61
- //#endregion
62
- //#region src/components/Shared/AppIcon.tsx
63
- var S = ({ fcIcon: e, fallback: t, iconUrl: n, size: r = 20, color: i }) => {
64
- let a = e?.startsWith("Fi"), o = e?.startsWith("Vsc"), s = u(!a && !o ? e ?? "" : "", { size: r }), f = d(a ? e ?? "" : "", {
65
- size: r,
66
- color: i
67
- }), p = l(o ? e ?? "" : "", { size: r });
68
- return n ? /* @__PURE__ */ m("img", {
69
- src: c(n),
70
- alt: "",
71
- width: r,
72
- height: r,
73
- style: { objectFit: "contain" }
74
- }) : a && f ? f : o && p ? p : s || (t ? /* @__PURE__ */ m("span", {
75
- "aria-hidden": "true",
76
- children: t
77
- }) : null);
78
- };
79
- //#endregion
80
- export { x as n, S as t };
@@ -1,9 +0,0 @@
1
- const e=require(`./chunk-CiTBaPhY.cjs`),t=require(`./Box-D_64wv6n.cjs`),n=require(`./is-element-BocgicRg.cjs`),r=require(`./create-safe-context-95P-Bfg3.cjs`),i=require(`./Tooltip-DDh_x-CB.cjs`),a=require(`./use-uncontrolled-BPrfGv0W.cjs`),o=require(`./TextInput-DcYns3hz.cjs`),s=require(`./Slider-Bg_EIBg6.cjs`),c=require(`./use-merged-ref-BI9n1hUK.cjs`),l=require(`./use-resolved-styles-api-AVDygMKo.cjs`),u=require(`./UnstyledButton-Cl5RuIid.cjs`),d=require(`./AccordionChevron-DBXp38Lm.cjs`),f=require(`./CheckIcon-CBMLR6Gc.cjs`),p=require(`./useDynamicIcon-SytdL1Tu.cjs`);let m=require(`react`);m=e.a(m);let h=require(`react/jsx-runtime`);function g(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function _(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].disabled)return e}return e}function v(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].disabled)return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].disabled)return e}return e}function y(e,t,n){return g(e,n)===g(t,n)}function b({parentSelector:e,siblingSelector:t,onKeyDown:n,loop:r=!0,activateOnFocus:i=!1,dir:a=`rtl`,orientation:o}){return s=>{n?.(s);let c=Array.from(g(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>y(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=v(l,c,r),d=_(l,c,r),f=a===`rtl`?d:u,p=a===`rtl`?u:d;switch(s.key){case`ArrowRight`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),i&&c[f].click());break;case`ArrowLeft`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),i&&c[p].click());break;case`ArrowUp`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),i&&c[d].click());break;case`ArrowDown`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),i&&c[u].click());break;case`Home`:s.stopPropagation(),s.preventDefault(),!c[0].disabled&&c[0].focus();break;case`End`:{s.stopPropagation(),s.preventDefault();let e=c.length-1;!c[e].disabled&&c[e].focus();break}}}}function x(e,t){return n=>{e?.(n),t?.(n)}}function S(e,t,n){return n?Array.from(g(n,t)?.querySelectorAll(e)||[]).findIndex(e=>e===n):null}function C(e=!1,t={}){let[n,r]=(0,m.useState)(e),i=(0,m.useCallback)(()=>{r(e=>e||(t.onOpen?.(),!0))},[t.onOpen]),a=(0,m.useCallback)(()=>{r(e=>e&&(t.onClose?.(),!1))},[t.onClose]);return[n,{open:i,close:a,toggle:(0,m.useCallback)(()=>{n?a():i()},[a,i,n]),set:r}]}function w(e){let t=(0,m.useRef)(void 0);return(0,m.useEffect)(()=>{t.current=e},[e]),t.current}function T(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t<r.length;t+=1){let n=r[t];if(n.shadowRoot){let t=T(e,n.shadowRoot);if(t)return t}}return null}function E(e,t=document){let n=[],r=t.querySelectorAll(e);n.push(...Array.from(r));let i=t.querySelectorAll(`*`);for(let t=0;t<i.length;t+=1){let r=i[t];if(r.shadowRoot){let t=E(e,r.shadowRoot);n.push(...t)}}return n}function D(e){if(!e)return document;let t=e.getRootNode();return t instanceof ShadowRoot||t instanceof Document?t:document}function O({open:e,close:t,openDelay:n,closeDelay:r}){let i=(0,m.useRef)(-1),a=(0,m.useRef)(-1),o=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)};return(0,m.useEffect)(()=>o,[]),{openDropdown:()=>{o(),n===0||n===void 0?e():i.current=window.setTimeout(e,n)},closeDropdown:()=>{o(),r===0||r===void 0?t():a.current=window.setTimeout(t,r)}}}function k(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>k(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function A(e){return e?e.map(e=>k(e)):[]}function j(e){return e.reduce((e,t)=>`group`in t?{...e,...j(t.items)}:(e[`${t.value}`]=t,e),{})}var M={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},ee={error:null},N=t.O((e,{size:n,color:r})=>({chevron:{"--combobox-chevron-size":t.N(n,`combobox-chevron-size`),"--combobox-chevron-color":r?t.x(r,e):void 0}})),P=t.r(e=>{let n=t.l(`ComboboxChevron`,ee,e),{size:r,error:i,style:a,className:o,classNames:s,styles:c,unstyled:l,vars:u,attributes:d,mod:f,...p}=n,m=t.c({name:`ComboboxChevron`,classes:M,props:n,style:a,className:o,classNames:s,styles:c,unstyled:l,vars:u,varsResolver:N,attributes:d,rootSelector:`chevron`});return(0,h.jsx)(t.t,{component:`svg`,...p,...m(`chevron`),size:r,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:i},f],children:(0,h.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});P.classes=M,P.varsResolver=N,P.displayName=`@mantine/core/ComboboxChevron`;var[F,I]=r.t(`Combobox component was not found in tree`);function L({size:e,onMouseDown:t,onClick:n,onClear:r,...i}){return(0,h.jsx)(o.i.ClearButton,{tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:e=>{e.preventDefault(),t?.(e)},onClick:e=>{r(),n?.(e)}})}L.displayName=`@mantine/core/ComboboxClearButton`;var R=t.r(e=>{let{classNames:n,styles:r,className:a,style:o,hidden:s,...c}=t.l(`ComboboxDropdown`,null,e),l=I();return(0,h.jsx)(i.n.Dropdown,{...c,role:`presentation`,"data-hidden":s||void 0,...l.getStyles(`dropdown`,{className:a,style:o,classNames:n,styles:r})})});R.classes=M,R.displayName=`@mantine/core/ComboboxDropdown`;var z={refProp:`ref`},te=t.r(e=>{let{children:r,refProp:a,ref:o}=t.l(`ComboboxDropdownTarget`,z,e);if(I(),!n.t(r))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,h.jsx)(i.n.Target,{ref:o,refProp:a,children:r})});te.displayName=`@mantine/core/ComboboxDropdownTarget`;var B=t.r(e=>{let{classNames:n,className:r,style:i,styles:a,vars:o,...s}=t.l(`ComboboxEmpty`,null,e);return(0,h.jsx)(t.t,{...I().getStyles(`empty`,{className:r,classNames:n,styles:a,style:i}),...s})});B.classes=M,B.displayName=`@mantine/core/ComboboxEmpty`;function ne({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:r,targetType:i,autoComplete:a}){let o=I(),[s,c]=(0,m.useState)(null),l=n=>{if(e?.(n),!o.readOnly&&t){if(n.nativeEvent.isComposing)return;if(n.nativeEvent.code===`ArrowDown`&&(n.preventDefault(),o.store.dropdownOpened?c(o.store.selectNextOption()):(o.store.openDropdown(`keyboard`),c(o.store.selectActiveOption()),o.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),n.nativeEvent.code===`ArrowUp`&&(n.preventDefault(),o.store.dropdownOpened?c(o.store.selectPreviousOption()):(o.store.openDropdown(`keyboard`),c(o.store.selectActiveOption()),o.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),n.nativeEvent.code===`Enter`||n.nativeEvent.code===`NumpadEnter`){if(n.nativeEvent.keyCode===229)return;let e=o.store.getSelectedOptionIndex();o.store.dropdownOpened&&e!==-1?(n.preventDefault(),o.store.clickSelectedOption()):i===`button`&&(n.preventDefault(),o.store.openDropdown(`keyboard`))}n.key===`Escape`&&o.store.closeDropdown(`keyboard`),n.nativeEvent.code===`Space`&&i===`button`&&(n.preventDefault(),o.store.toggleDropdown(`keyboard`))}};return{...n?{...r?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":r?!!(o.store.listId&&o.store.dropdownOpened):void 0,"aria-controls":o.store.dropdownOpened&&o.store.listId?o.store.listId:void 0,"aria-activedescendant":o.store.dropdownOpened&&s||void 0,autoComplete:a,"data-expanded":o.store.dropdownOpened||void 0,"data-mantine-stop-propagation":o.store.dropdownOpened||void 0}:{},onKeyDown:l}}var re={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},ie=t.r(e=>{let{children:n,refProp:r,withKeyboardNavigation:a,withAriaAttributes:o,withExpandedAttribute:s,targetType:l,autoComplete:u,ref:d,...f}=t.l(`ComboboxEventsTarget`,re,e),p=i.l(n);if(!p)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let h=I();return(0,m.cloneElement)(p,{...ne({targetType:l,withAriaAttributes:o,withKeyboardNavigation:a,withExpandedAttribute:s,onKeyDown:p.props.onKeyDown,autoComplete:u}),...f,[r]:c.r(d,h.store.targetRef,i.u(p))})});ie.displayName=`@mantine/core/ComboboxEventsTarget`;var ae=t.r(e=>{let{classNames:n,className:r,style:i,styles:a,vars:o,...s}=t.l(`ComboboxFooter`,null,e);return(0,h.jsx)(t.t,{...I().getStyles(`footer`,{className:r,classNames:n,style:i,styles:a}),...s,onMouseDown:e=>{e.preventDefault()}})});ae.classes=M,ae.displayName=`@mantine/core/ComboboxFooter`;var oe=t.r(e=>{let{classNames:n,className:r,style:i,styles:a,vars:s,children:c,label:l,id:u,...d}=t.l(`ComboboxGroup`,null,e),f=I(),p=o.u(u);return(0,h.jsxs)(t.t,{role:`group`,"aria-labelledby":l?p:void 0,...f.getStyles(`group`,{className:r,classNames:n,style:i,styles:a}),...d,children:[l&&(0,h.jsx)(`div`,{id:p,...f.getStyles(`groupLabel`,{classNames:n,styles:a}),children:l}),c]})});oe.classes=M,oe.displayName=`@mantine/core/ComboboxGroup`;var se=t.r(e=>{let{classNames:n,className:r,style:i,styles:a,vars:o,...s}=t.l(`ComboboxHeader`,null,e);return(0,h.jsx)(t.t,{...I().getStyles(`header`,{className:r,classNames:n,style:i,styles:a}),...s,onMouseDown:e=>{e.preventDefault()}})});se.classes=M,se.displayName=`@mantine/core/ComboboxHeader`;function ce({value:e,valuesDivider:t=`,`,...n}){return(0,h.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}ce.displayName=`@mantine/core/ComboboxHiddenInput`;var le=t.r(e=>{let n=t.l(`ComboboxOption`,null,e),{classNames:r,className:i,style:a,styles:o,vars:s,onClick:c,id:l,active:u,onMouseDown:d,onMouseOver:f,disabled:p,selected:g,mod:_,...v}=n,y=I(),b=(0,m.useId)(),x=l||b;return(0,h.jsx)(t.t,{...y.getStyles(`option`,{className:i,classNames:r,styles:o,style:a}),...v,id:x,mod:[`combobox-option`,{"combobox-active":u,"combobox-disabled":p,"combobox-selected":g},_],role:`option`,onClick:e=>{p?e.preventDefault():(y.onOptionSubmit?.(n.value,n),c?.(e))},onMouseDown:e=>{e.preventDefault(),d?.(e)},onMouseOver:e=>{y.resetSelectionOnOptionHover&&y.store.resetSelectedOption(),f?.(e)}})});le.classes=M,le.displayName=`@mantine/core/ComboboxOption`;var ue=t.r(e=>{let{classNames:n,className:r,style:i,styles:a,id:s,onMouseDown:c,labelledBy:l,...u}=t.l(`ComboboxOptions`,null,e),d=I(),f=o.u(s);return(0,m.useEffect)(()=>{d.store.setListId(f)},[f]),(0,h.jsx)(t.t,{...d.getStyles(`options`,{className:r,style:i,classNames:n,styles:a}),...u,id:f,role:`listbox`,"aria-labelledby":l,onMouseDown:e=>{e.preventDefault(),c?.(e)}})});ue.classes=M,ue.displayName=`@mantine/core/ComboboxOptions`;var de={withAriaAttributes:!0,withKeyboardNavigation:!0},fe=t.r(e=>{let{classNames:n,styles:r,unstyled:i,vars:a,withAriaAttributes:s,onKeyDown:l,withKeyboardNavigation:u,size:d,ref:f,...p}=t.l(`ComboboxSearch`,de,e),m=I(),g=m.getStyles(`search`),_=ne({targetType:`input`,withAriaAttributes:s,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:l,autoComplete:`off`});return(0,h.jsx)(o.i,{ref:c.r(f,m.store.searchRef),classNames:[{input:g.className},n],styles:[{input:g.style},r],size:d||m.size,..._,...p,__staticSelector:`Combobox`})});fe.classes=M,fe.displayName=`@mantine/core/ComboboxSearch`;var pe={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},me=t.r(e=>{let{children:n,refProp:r,withKeyboardNavigation:a,withAriaAttributes:o,withExpandedAttribute:s,targetType:l,autoComplete:u,ref:d,...f}=t.l(`ComboboxTarget`,pe,e),p=i.l(n);if(!p)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let g=I(),_=(0,m.cloneElement)(p,{...ne({targetType:l,withAriaAttributes:o,withKeyboardNavigation:a,withExpandedAttribute:s,onKeyDown:p.props.onKeyDown,autoComplete:u}),...f});return(0,h.jsx)(i.n.Target,{ref:c.r(d,g.store.targetRef),children:_})});me.displayName=`@mantine/core/ComboboxTarget`;function he(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function ge(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function _e(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute(`data-combobox-disabled`))return t;return-1}function ve({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:o=!0,scrollBehavior:s=`instant`}={}){let[c,l]=a.t({value:t,defaultValue:e,finalValue:!1,onChange:n}),u=(0,m.useRef)(null),d=(0,m.useRef)(-1),f=(0,m.useRef)(null),p=(0,m.useRef)(null),h=(0,m.useRef)(-1),g=(0,m.useRef)(-1),_=(0,m.useRef)(-1),v=(0,m.useCallback)((e=`unknown`)=>{c||(l(!0),i?.(e))},[l,i,c]),y=(0,m.useCallback)((e=`unknown`)=>{c&&(l(!1),r?.(e))},[l,r,c]),b=(0,m.useCallback)((e=`unknown`)=>{c?y(e):v(e)},[y,v,c]),x=(0,m.useCallback)(()=>{let e=D(p.current),t=T(`#${u.current} [data-combobox-selected]`,e);t?.removeAttribute(`data-combobox-selected`),t?.removeAttribute(`aria-selected`)},[]),S=(0,m.useCallback)(e=>{let t=D(p.current),n=T(`#${u.current}`,t),r=n?E(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return d.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(x(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].setAttribute(`aria-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:s}),r[i].id):null},[s,x]),C=(0,m.useCallback)(()=>{let e=D(p.current),t=T(`#${u.current} [data-combobox-active]`,e);return S(t?E(`#${u.current} [data-combobox-option]`,e).findIndex(e=>e===t):0)},[S]),w=(0,m.useCallback)(()=>{let e=D(p.current),t=E(`#${u.current} [data-combobox-option]`,e);return S(ge(d.current,t,o))},[S,o]),O=(0,m.useCallback)(()=>{let e=D(p.current),t=E(`#${u.current} [data-combobox-option]`,e);return S(he(d.current,t,o))},[S,o]),k=(0,m.useCallback)(()=>{let e=D(p.current);return S(_e(E(`#${u.current} [data-combobox-option]`,e)))},[S]),A=(0,m.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){d.current=e;let n=D(p.current),r=E(`#${u.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:s});return}_.current=window.setTimeout(()=>{let n=D(p.current),r=E(`#${u.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));d.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:s})},0)},[]),j=(0,m.useCallback)(()=>{d.current=-1,x()},[x]),M=(0,m.useCallback)(()=>{let e=D(p.current);(E(`#${u.current} [data-combobox-option]`,e)?.[d.current])?.click()},[]),ee=(0,m.useCallback)(e=>{u.current=e},[]),N=(0,m.useCallback)(()=>{h.current=window.setTimeout(()=>f.current?.focus(),0)},[]),P=(0,m.useCallback)(()=>{g.current=window.setTimeout(()=>p.current?.focus(),0)},[]),F=(0,m.useCallback)(()=>d.current,[]);return(0,m.useEffect)(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(g.current),window.clearTimeout(_.current)},[]),{dropdownOpened:c,openDropdown:v,closeDropdown:y,toggleDropdown:b,selectedOptionIndex:d.current,getSelectedOptionIndex:F,selectOption:S,selectFirstOption:k,selectActiveOption:C,selectNextOption:w,selectPreviousOption:O,resetSelectedOption:j,updateSelectedOptionIndex:A,listId:u.current,setListId:ee,clickSelectedOption:M,searchRef:f,focusSearchInput:N,targetRef:p,focusTarget:P}}var V={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},ye=t.O((e,{size:n,dropdownPadding:r})=>({options:{"--combobox-option-fz":t.k(n),"--combobox-option-padding":t.N(n,`combobox-option-padding`)},dropdown:{"--combobox-padding":r===void 0?void 0:t.L(r),"--combobox-option-fz":t.k(n),"--combobox-option-padding":t.N(n,`combobox-option-padding`)}})),H=e=>{let n=t.l(`Combobox`,V,e),{classNames:r,styles:a,unstyled:o,children:s,store:c,vars:l,onOptionSubmit:u,onClose:d,size:f,dropdownPadding:p,resetSelectionOnOptionHover:m,__staticSelector:g,readOnly:_,attributes:v,...y}=n,b=ve(),x=c||b,S=t.c({name:g||`Combobox`,classes:M,props:n,classNames:r,styles:a,unstyled:o,attributes:v,vars:l,varsResolver:ye}),C=()=>{d?.(),x.closeDropdown()};return(0,h.jsx)(F,{value:{getStyles:S,store:x,onOptionSubmit:u,size:f,resetSelectionOnOptionHover:m,readOnly:_},children:(0,h.jsx)(i.n,{opened:x.dropdownOpened,preventPositionChangeWhenVisible:!1,...y,onChange:e=>!e&&C(),withRoles:!1,unstyled:o,children:s})})};H.extend=e=>e,H.classes=M,H.varsResolver=ye,H.displayName=`@mantine/core/Combobox`,H.Target=me,H.Dropdown=R,H.Options=ue,H.Option=le,H.Search=fe,H.Empty=B,H.Chevron=P,H.Footer=ae,H.Header=se,H.EventsTarget=ie,H.DropdownTarget=te,H.Group=oe,H.ClearButton=L,H.HiddenInput=ce;function U(e){return`group`in e}function be({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a<e.length;a+=1){let o=e[a];if(i.length===n)return i;U(o)&&i.push({group:o.group,items:be({options:o.items,search:t,limit:n-i.length})}),U(o)||o.label.toLowerCase().includes(r)&&i.push(o)}return i}function xe(e){if(e.length===0)return!0;for(let t of e)if(!(`group`in t)||t.items.length>0)return!1;return!0}function Se(e,t=new Set){if(Array.isArray(e))for(let n of e)if(U(n))Se(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function W(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ce({data:e,withCheckIcon:n,withAlignedLabels:r,value:i,checkIconPosition:a,unstyled:o,renderOption:s}){if(!U(e)){let c=W(i,e.value),l=n&&(c?(0,h.jsx)(f.t,{className:M.optionsDropdownCheckIcon}):r?(0,h.jsx)(`div`,{className:M.optionsDropdownCheckPlaceholder}):null),u=(0,h.jsxs)(h.Fragment,{children:[a===`left`&&l,(0,h.jsx)(`span`,{children:e.label}),a===`right`&&l]});return(0,h.jsx)(H.Option,{value:e.value,disabled:e.disabled,className:t.D({[M.optionsDropdownOption]:!o}),"data-reverse":a===`right`||void 0,"data-checked":c||void 0,"aria-selected":c,active:c,children:typeof s==`function`?s({option:e,checked:c}):u})}let c=e.items.map(e=>(0,h.jsx)(Ce,{data:e,value:i,unstyled:o,withCheckIcon:n,withAlignedLabels:r,checkIconPosition:a,renderOption:s},`${e.value}`));return(0,h.jsx)(H.Group,{label:e.group,children:c})}function we({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,withScrollArea:c=!0,filterOptions:l=!0,withCheckIcon:u=!1,withAlignedLabels:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:g,labelId:_,renderOption:v,scrollAreaProps:y,"aria-label":b}){Se(e);let x=typeof i==`string`?(r||be)({options:e,search:l?i:``,limit:a??1/0}):e,S=xe(x),C=x.map(e=>(0,h.jsx)(Ce,{data:e,withCheckIcon:u,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:g,renderOption:v},U(e)?e.group:`${e.value}`));return(0,h.jsx)(H.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,h.jsxs)(H.Options,{labelledBy:_,"aria-label":b,children:[c?(0,h.jsx)(s.a.Autosize,{mah:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...y,children:C}):C,S&&m&&(0,h.jsx)(H.Empty,{children:m})]})})}var[G,K]=r.t(`Menu component was not found in the tree`),q={dropdown:`m_dc9b7c9f`,label:`m_9bfac126`,divider:`m_efdf90cb`,item:`m_99ac2aa1`,itemLabel:`m_5476e0d3`,itemSection:`m_8b75e504`,chevron:`m_b85b0bed`},J=t.r(e=>{let{classNames:n,className:r,style:i,styles:a,vars:o,...s}=t.l(`MenuDivider`,null,e);return(0,h.jsx)(t.t,{...K().getStyles(`divider`,{className:r,style:i,styles:a,classNames:n}),...s})});J.classes=q,J.displayName=`@mantine/core/MenuDivider`;var Te=t.r(e=>{let{classNames:n,className:r,style:a,styles:o,vars:s,onMouseEnter:l,onMouseLeave:u,onKeyDown:d,children:f,ref:p,...g}=t.l(`MenuDropdown`,null,e),_=(0,m.useRef)(null),v=K(),y=x(d,e=>{(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),_.current?.querySelectorAll(`[data-menu-item]:not(:disabled)`)[0]?.focus())}),b=x(l,()=>(v.trigger===`hover`||v.trigger===`click-hover`)&&v.openDropdown()),S=x(u,()=>(v.trigger===`hover`||v.trigger===`click-hover`)&&v.closeDropdown());return(0,h.jsxs)(i.n.Dropdown,{...g,onMouseEnter:b,onMouseLeave:S,role:`menu`,"aria-orientation":`vertical`,ref:c.r(p,_),...v.getStyles(`dropdown`,{className:r,style:a,styles:o,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:y,children:[v.withInitialFocusPlaceholder&&(0,h.jsx)(`div`,{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),f]})});Te.classes=q,Te.displayName=`@mantine/core/MenuDropdown`;var Y=(0,m.createContext)(null),Ee=t.n(e=>{let{classNames:n,className:r,style:a,styles:o,vars:s,color:l,closeMenuOnClick:d,leftSection:f,rightSection:p,children:g,disabled:_,"data-disabled":v,ref:y,...S}=t.l(`MenuItem`,null,e),C=K(),w=(0,m.use)(Y),T=t.d(),{dir:E}=i.s(),D=(0,m.useRef)(null),O=S,k=x(O.onClick,()=>{v||(typeof d==`boolean`?d&&C.closeDropdownImmediately():C.closeOnItemClick&&C.closeDropdownImmediately())}),A=l?T.variantColorResolver({color:l,theme:T,variant:`light`}):void 0,j=l?t.S({color:l,theme:T}):null,M=x(O.onKeyDown,e=>{e.key===`ArrowLeft`&&w&&(w.close(),w.focusParentItem())});return(0,h.jsxs)(u.t,{onMouseDown:e=>e.preventDefault(),...S,unstyled:C.unstyled,tabIndex:C.menuItemTabIndex,...C.getStyles(`item`,{className:r,style:a,styles:o,classNames:n}),ref:c.r(D,y),role:`menuitem`,disabled:_,"data-menu-item":!0,"data-disabled":_||v||void 0,"data-mantine-stop-propagation":!0,onClick:k,onKeyDown:b({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:C.loop,dir:E,orientation:`vertical`,onKeyDown:M}),__vars:{"--menu-item-color":j?.isThemeColor&&j?.shade===void 0?`var(--mantine-color-${j.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[f&&(0,h.jsx)(`div`,{...C.getStyles(`itemSection`,{styles:o,classNames:n}),"data-position":`left`,children:f}),g&&(0,h.jsx)(`div`,{...C.getStyles(`itemLabel`,{styles:o,classNames:n}),children:g}),p&&(0,h.jsx)(`div`,{...C.getStyles(`itemSection`,{styles:o,classNames:n}),"data-position":`right`,children:p})]})});Ee.classes=q,Ee.displayName=`@mantine/core/MenuItem`;var De=t.r(e=>{let{classNames:n,className:r,style:i,styles:a,vars:o,...s}=t.l(`MenuLabel`,null,e);return(0,h.jsx)(t.t,{...K().getStyles(`label`,{className:r,style:i,styles:a,classNames:n}),...s})});De.classes=q,De.displayName=`@mantine/core/MenuLabel`;var X=t.r(e=>{let{classNames:n,className:r,style:a,styles:o,vars:s,onMouseEnter:l,onMouseLeave:u,onKeyDown:d,children:f,ref:p,...g}=t.l(`MenuSubDropdown`,null,e),_=(0,m.useRef)(null),v=K(),y=(0,m.use)(Y),b=x(l,y?.open),S=x(u,y?.close);return(0,h.jsx)(i.n.Dropdown,{...g,onMouseEnter:b,onMouseLeave:S,role:`menu`,"aria-orientation":`vertical`,ref:c.r(p,_),...v.getStyles(`dropdown`,{className:r,style:a,styles:o,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:f})});X.classes=q,X.displayName=`@mantine/core/MenuSubDropdown`;var Oe=t.n(e=>{let{classNames:n,className:r,style:a,styles:o,vars:s,color:l,leftSection:f,rightSection:p,children:g,disabled:_,"data-disabled":v,closeMenuOnClick:y,ref:S,...C}=t.l(`MenuSubItem`,null,e),w=K(),T=(0,m.use)(Y),E=t.d(),{dir:D}=i.s(),O=(0,m.useRef)(null),k=C,A=l?E.variantColorResolver({color:l,theme:E,variant:`light`}):void 0,j=l?t.S({color:l,theme:E}):null,M=x(k.onKeyDown,e=>{e.key===`ArrowRight`&&(T?.open(),T?.focusFirstItem()),e.key===`ArrowLeft`&&T?.parentContext&&(T.parentContext.close(),T.parentContext.focusParentItem())}),ee=x(k.onClick,()=>{!v&&y&&w.closeDropdownImmediately()}),N=x(k.onMouseEnter,T?.open),P=x(k.onMouseLeave,T?.close);return(0,h.jsxs)(u.t,{onMouseDown:e=>e.preventDefault(),...C,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles(`item`,{className:r,style:a,styles:o,classNames:n}),ref:c.r(O,S),role:`menuitem`,disabled:_,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":_||v||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:N,onMouseLeave:P,onClick:ee,onKeyDown:b({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:w.loop,dir:D,orientation:`vertical`,onKeyDown:M}),__vars:{"--menu-item-color":j?.isThemeColor&&j?.shade===void 0?`var(--mantine-color-${j.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[f&&(0,h.jsx)(`div`,{...w.getStyles(`itemSection`,{styles:o,classNames:n}),"data-position":`left`,children:f}),g&&(0,h.jsx)(`div`,{...w.getStyles(`itemLabel`,{styles:o,classNames:n}),children:g}),(0,h.jsx)(`div`,{...w.getStyles(`itemSection`,{styles:o,classNames:n}),"data-position":`right`,children:p||(0,h.jsx)(d.t,{...w.getStyles(`chevron`),size:14})})]})});Oe.classes=q,Oe.displayName=`@mantine/core/MenuSubItem`;function ke({children:e,refProp:t}){if(!n.t(e))throw Error(`Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return K(),(0,h.jsx)(i.n.Target,{refProp:t,popupType:`menu`,children:e})}ke.displayName=`@mantine/core/MenuSubTarget`;var Ae={offset:0,position:`right-start`,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function je(e){let{children:n,closeDelay:r,openDelay:a,...s}=t.l(`MenuSub`,Ae,e),c=o.u(),[l,{open:u,close:d}]=C(!1),f=(0,m.use)(Y),{openDropdown:p,closeDropdown:g}=O({open:u,close:d,closeDelay:r,openDelay:a});return(0,h.jsx)(Y,{value:{opened:l,close:g,open:p,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${c}-dropdown`)?.querySelectorAll(`[data-menu-item]:not([data-disabled])`)[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${c}-target`)?.focus()},16),parentContext:f},children:(0,h.jsx)(i.n,{opened:l,withinPortal:!1,withArrow:!1,id:c,...s,children:n})})}je.extend=e=>e,je.displayName=`@mantine/core/MenuSub`,je.Target=ke,je.Dropdown=X,je.Item=Oe;var Z={refProp:`ref`};function Me(e){let{children:n,refProp:r,...a}=t.l(`MenuTarget`,Z,e),o=i.l(n);if(!o)throw Error(`Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let s=K(),c=o.props,l=x(c.onClick,()=>{s.trigger===`click`?s.toggleDropdown():s.trigger===`click-hover`&&(s.setOpenedViaClick(!0),s.opened||s.openDropdown())}),u=x(c.onMouseEnter,()=>(s.trigger===`hover`||s.trigger===`click-hover`)&&s.openDropdown()),d=x(c.onMouseLeave,()=>{(s.trigger===`hover`||s.trigger===`click-hover`&&!s.openedViaClick)&&s.closeDropdown()});return(0,h.jsx)(i.n.Target,{refProp:r,popupType:`menu`,...a,children:(0,m.cloneElement)(o,{onClick:l,onMouseEnter:u,onMouseLeave:d,"data-expanded":s.opened?!0:void 0})})}Me.displayName=`@mantine/core/MenuTarget`;var Ne={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1},Q=t.r(e=>{let n=t.l(`Menu`,Ne,e),{children:r,onOpen:o,onClose:s,opened:c,defaultOpened:u,trapFocus:d,onChange:f,closeOnItemClick:p,loop:g,closeOnEscape:_,trigger:v,openDelay:y,closeDelay:b,classNames:x,styles:C,unstyled:w,variant:T,vars:E,menuItemTabIndex:D,keepMounted:k,withInitialFocusPlaceholder:A,attributes:j,...M}=n,ee=t.c({name:`Menu`,classes:q,props:n,classNames:x,styles:C,unstyled:w,attributes:j}),[N,P]=a.t({value:c,defaultValue:u,finalValue:!1,onChange:f}),[F,I]=(0,m.useState)(!1),L=()=>{P(!1),I(!1),N&&s?.()},R=()=>{P(!0),!N&&o?.()},z=()=>{N?L():R()},{openDropdown:te,closeDropdown:B}=O({open:R,close:L,closeDelay:b,openDelay:y}),ne=e=>S(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:re,resolvedStyles:ie}=l.t({classNames:x,styles:C,props:n});return(0,h.jsx)(G,{value:{getStyles:ee,opened:N,toggleDropdown:z,getItemIndex:ne,openedViaClick:F,setOpenedViaClick:I,closeOnItemClick:p,closeDropdown:v===`click`?L:B,openDropdown:v===`click`?R:te,closeDropdownImmediately:L,loop:g,trigger:v,unstyled:w,menuItemTabIndex:D,withInitialFocusPlaceholder:A},children:(0,h.jsx)(i.n,{returnFocus:!0,...M,opened:N,onChange:z,defaultOpened:u,trapFocus:k?!1:d,closeOnEscape:_,__staticSelector:`Menu`,classNames:re,styles:ie,unstyled:w,variant:T,keepMounted:k,children:r})})});Q.displayName=`@mantine/core/Menu`,Q.classes=q,Q.Item=Ee,Q.Label=De,Q.Dropdown=Te,Q.Target=Me,Q.Divider=J,Q.Sub=je;function Pe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Fe;(function(e){e.event=`event`,e.props=`prop`})(Fe||={});function Ie(){}function Le(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(e,n){return e===t[n]})?n:(t=r,n=e.apply(void 0,r),n)}}function Re(e){return!!(e||``).match(/\d/)}function ze(e){return e==null}function Be(e){return typeof e==`number`&&isNaN(e)}function Ve(e){return ze(e)||Be(e)||typeof e==`number`&&!isFinite(e)}function He(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function Ue(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function We(e,t,n){var r=Ue(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,`$1`+t)}function Ge(e){var t=(0,m.useRef)(e);return t.current=e,(0,m.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function Ke(e,t){t===void 0&&(t=!0);var n=e[0]===`-`,r=n&&t;e=e.replace(`-`,``);var i=e.split(`.`);return{beforeDecimal:i[0],afterDecimal:i[1]||``,hasNegation:n,addNegation:r}}function qe(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var n=e.split(`.`),r=n[0].replace(/^0+/,``)||`0`,i=n[1]||``;return(t?`-`:``)+r+(i?`.`+i:``)}function Je(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function Ye(e,t){return Array(t+1).join(e)}function Xe(e){var t=e+``,n=t[0]===`-`?`-`:``;n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(`.`,``);var o=1+a,s=i.length;return o<0?i=`0.`+Ye(`0`,Math.abs(o))+i:o>=s?i+=Ye(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function Ze(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=Ke(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=Je(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function Qe(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var $e=Le(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),et=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function tt(e,t,n){return Math.min(Math.max(e,t),n)}function nt(e){return Math.max(e.selectionStart,e.selectionEnd)}function rt(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function it(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function at(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function ot(e,t,n,r,i,a,o){o===void 0&&(o=at);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p<l;p++){f[p]=-1;for(var m=0,h=u;m<h;m++)if(o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:m})&&d[m]!==!0){f[p]=m,d[m]=!0;break}}for(var g=r;g<l&&(f[g]===-1||!a(n[g]));)g++;var _=g===l||f[g]===-1?u:f[g];for(g=r-1;g>0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function st(e,t,n,r){var i=e.length;if(t=tt(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function ct(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Re(e[n])||Re(e[n-1]));return t}function lt(e,t,n,r,i,a){a===void 0&&(a=Ie);var o=Ge(function(e,t){var n,a;return Ve(e)?(a=``,n=``):typeof e==`number`||t?(a=typeof e==`number`?Xe(e):e,n=r(a)):(a=i(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}}),s=(0,m.useState)(function(){return o(ze(e)?t:e,n)}),c=s[0],l=s[1],u=Ge(function(e,t){e.formattedValue!==c.formattedValue&&l({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}),d=e,f=n;ze(e)&&(d=c.numAsString,f=!0);var p=o(d,f);return(0,m.useMemo)(function(){l(p)},[p.formattedValue]),(0,m.useEffect)(function(){if(!ze(t)&&ze(e)&&c.formattedValue!==``){var n=parseFloat(c.numAsString);u({formattedValue:c.formattedValue,value:c.numAsString,floatValue:isNaN(n)?void 0:n},{event:void 0,source:Fe.props})}},[]),[c,u]}function ut(e){return e.replace(/[^0-9]/g,``)}function dt(e){return e}function ft(e){var t=e.type;t===void 0&&(t=`text`);var n=e.displayType;n===void 0&&(n=`input`);var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=dt);var s=e.removeFormatting;s===void 0&&(s=ut);var c=e.defaultValue,l=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=Ie);var p=e.onKeyDown;p===void 0&&(p=Ie);var h=e.onMouseUp;h===void 0&&(h=Ie);var g=e.onFocus;g===void 0&&(g=Ie);var _=e.onBlur;_===void 0&&(_=Ie);var v=e.value,y=e.getCaretBoundary;y===void 0&&(y=ct);var b=e.isValidInputCharacter;b===void 0&&(b=Re);var x=e.isCharacterSame,S=Pe(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),C=lt(v,c,!!l,o,s,u),w=C[0],T=w.formattedValue,E=w.numAsString,D=C[1],O=(0,m.useRef)(),k=(0,m.useRef)({formattedValue:T,numAsString:E}),A=function(e,t){k.current={formattedValue:e.formattedValue,numAsString:e.value},D(e,t)},j=(0,m.useState)(!1),M=j[0],ee=j[1],N=(0,m.useRef)(null),P=(0,m.useRef)({setCaretTimeout:null,focusTimeout:null});(0,m.useEffect)(function(){return ee(!0),function(){clearTimeout(P.current.setCaretTimeout),clearTimeout(P.current.focusTimeout)}},[]);var F=o,I=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},L=function(e,t,n){e.selectionStart===0&&e.selectionEnd===e.value.length||(Qe(e,t),P.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&Qe(e,t)},0))},R=function(e,t,n){return st(e,t,y(e),n)},z=function(e,t,n){var r=y(t),i=ot(t,T,e,n,r,b,x);return i=st(t,i,r),i},te=function(e){var t=e.formattedValue;t===void 0&&(t=``);var n=e.input,r=e.source,i=e.event,a=e.numAsString,o;if(n){var s=e.inputValue||n.value,c=nt(n);n.value=t,o=z(s,t,c),o!==void 0&&L(n,o,t)}t!==T&&A(I(t,a),{event:i,source:r})};(0,m.useEffect)(function(){var e=k.current,t=e.formattedValue,n=e.numAsString;(T!==t||E!==n)&&A(I(T,E),{event:void 0,source:Fe.props})},[T,E]);var B=N.current?nt(N.current):void 0;(typeof window<`u`?m.useLayoutEffect:m.useEffect)(function(){var e=N.current;if(T!==k.current.formattedValue&&e){var t=z(k.current.formattedValue,T,B);e.value=T,L(e,t,T)}},[T]);var ne=function(e,t,n){var r=t.target,i=O.current?et(O.current,r.selectionEnd):$e(T,e),a=Object.assign(Object.assign({},i),{lastValue:T}),o=s(e,a),c=F(o);if(o=s(c,void 0),d&&!d(I(c,o))){var l=t.target,u=z(e,T,nt(l));return l.value=T,L(l,u,T),!1}return te({formattedValue:c,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},re=function(e,t){t===void 0&&(t=0),O.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},ie=function(e){var t=e.target.value;ne(t,e,Fe.event)&&f(e),O.current=void 0},ae=function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o;n===`ArrowLeft`||n===`Backspace`?o=Math.max(r-1,0):n===`ArrowRight`?o=Math.min(r+1,a.length):n===`Delete`&&(o=r);var s=0;n===`Delete`&&r===i&&(s=1);var c=n===`ArrowLeft`||n===`ArrowRight`;if(o===void 0||r!==i&&!c){p(e),re(t,s);return}var l=o;c?(l=R(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!b(a[o])?l=R(a,o,`right`):n===`Backspace`&&!b(a[o])&&(l=R(a,o,`left`)),l!==o&&L(t,l,a),p(e),re(t,s)},oe=function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(r===void 0&&(r=``),e===n){var i=R(r,e);i!==e&&L(t,i,r)}};n(),requestAnimationFrame(function(){n()}),h(e),re(t)},se=function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;N.current=t,P.current.focusTimeout=setTimeout(function(){var r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o=R(a,r);o!==r&&!(r===0&&i===a.length)&&L(t,o,a),g(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},ce=function(e){N.current=null,clearTimeout(P.current.focusTimeout),clearTimeout(P.current.setCaretTimeout),_(e)},le=M&&rt()?`numeric`:void 0,ue=Object.assign({inputMode:le},S,{type:t,value:T,onChange:ie,onKeyDown:ae,onMouseUp:oe,onFocus:se,onBlur:ce});if(n===`text`)return i?m.default.createElement(m.default.Fragment,null,i(T,S)||null):m.default.createElement(`span`,Object.assign({},S,{ref:a}),T);if(r){var de=r;return m.default.createElement(de,Object.assign({},ue,{ref:a}))}return m.default.createElement(`input`,Object.assign({},ue,{ref:a}))}function pt(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i=``);var a=t.suffix;a===void 0&&(a=``);var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s=`thousand`),e===``||e===`-`)return e;var c=mt(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=Ke(e,o),p=f.beforeDecimal,m=f.afterDecimal,h=f.addNegation;return n!==void 0&&(m=Je(m,n,!!r)),l&&(p=We(p,l,s)),i&&(p=i+p),a&&(m+=a),h&&(p=`-`+p),e=p+(d&&u||``)+m,e}function mt(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=`,`),r||=[t,`.`],{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function ht(e,t){e===void 0&&(e=``);var n=RegExp(`(-)`),r=RegExp(`(-)(.)*(-)`),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,``),i&&!a&&t&&(e=`-`+e),e}function gt(e,t){return RegExp(`(^-)|[0-9]|`+He(e),t?`g`:void 0)}function _t(e,t,n){return e===``?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function vt(e,t,n){var r;t===void 0&&(t=it(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a=``);var o=n.suffix;o===void 0&&(o=``);var s=n.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=mt(n),p=f.allowedDecimalSeparators,m=f.decimalSeparator,h=e[d]===m;if(Re(e)&&(e===a||e===o)&&t.lastValue===``)return e;if(d-u===1&&p.indexOf(e[u])!==-1){var g=s===0?``:m;e=e.substring(0,u)+g+e.substring(u+1,e.length)}var _=function(e,t,n){var r=!1,i=!1;a.startsWith(`-`)?r=!1:e.startsWith(`--`)?(r=!1,i=!0):o.startsWith(`-`)&&e.length===o.length?r=!1:e[0]===`-`&&(r=!0);var s=r?1:0;return i&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=_(e,u,d),y=v.hasNegation;r=v,e=r.value,u=r.start,d=r.end;var b=_(t.lastValue,c.start,c.end),x=b.start,S=b.end,C=b.value,w=e.substring(u,d);e.length&&C.length&&(x>C.length-o.length||S<a.length)&&!(w&&o.startsWith(w))&&(e=C);var T=0;e.startsWith(a)?T+=a.length:u<a.length&&(T=u),e=e.substring(T),d-=T;var E=e.length,D=e.length-o.length;e.endsWith(o)?E=D:(d>D||d>e.length-o.length)&&(E=d),e=e.substring(0,E),e=ht(y?`-`+e:e,i),e=(e.match(gt(m,!0))||[]).join(``);var O=e.indexOf(m);e=e.replace(new RegExp(He(m),`g`),function(e,t){return t===O?`.`:``});var k=Ke(e,i),A=k.beforeDecimal,j=k.afterDecimal,M=k.addNegation;return l.end-l.start<c.end-c.start&&A===``&&h&&!parseFloat(j)&&(e=M?`-`:``),e}function yt(e,t){var n=t.prefix;n===void 0&&(n=``);var r=t.suffix;r===void 0&&(r=``);var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]===`-`;i.fill(!1,0,Math.min(n.length+(a?1:0),e.length));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function bt(e){var t=mt(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i=``);var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw Error(`
2
- Decimal separator can't be same as thousand separator.
3
- thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
4
- decimalSeparator: `+r+` (default value for decimalSeparator is .)
5
- `);return i.startsWith(`-`)&&a&&(console.error(`
6
- Prefix can't start with '-' when allowNegative is true.
7
- prefix: `+i+`
8
- allowNegative: `+a+`
9
- `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function xt(e){e=bt(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Ie);var a=e.onBlur;a===void 0&&(a=Ie);var o=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l=``);var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,m=Pe(e,[`decimalSeparator`,`allowedDecimalSeparators`,`thousandsGroupStyle`,`suffix`,`allowNegative`,`allowLeadingZeros`,`onKeyDown`,`onBlur`,`thousandSeparator`,`decimalScale`,`fixedDecimalScale`,`prefix`,`defaultValue`,`value`,`valueIsNumericString`,`onValueChange`]),h=mt(e),g=h.decimalSeparator,_=h.allowedDecimalSeparators,v=function(t){return pt(t,e)},y=function(t,n){return vt(t,n,e)},b=ze(d)?u:d,x=f??_t(b,l,t);ze(d)?ze(u)||(x||=typeof u==`number`):x||=typeof d==`number`;var S=function(e){return Ve(e)?e:(typeof e==`number`&&(e=Xe(e)),x&&typeof s==`number`?Ze(e,s,!!c):e)},C=lt(S(d),S(u),!!x,v,y,p),w=C[0],T=w.numAsString,E=w.formattedValue,D=C[1];return Object.assign(Object.assign({},m),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g?!0:Re(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,i=e.currentValueIndex,a=e.formattedValueIndex,o=t[i],u=r[a],f=$e(n,t).to,p=function(e){return y(e).indexOf(`.`)+l.length};return d===0&&c&&s&&t[f.start]===g&&p(t)<i&&p(r)>a?!1:i>=f.start&&i<f.end&&_&&_.includes(o)&&u===g?!0:o===u},onValueChange:D,format:v,removeFormatting:y,getCaretBoundary:function(t){return yt(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,u=t.selectionEnd,d=t.value;if(d===void 0&&(d=``),(r===`Backspace`||r===`Delete`)&&u<l.length&&d!==`-`){e.preventDefault();return}if(a!==u){i(e);return}r===`Backspace`&&d[0]===`-`&&a===l.length+1&&n&&Qe(t,1),s&&c&&(r===`Backspace`&&d[a-1]===g?(Qe(t,a-1),e.preventDefault()):r===`Delete`&&d[a]===g&&e.preventDefault()),_?.includes(r)&&d[a]===g&&Qe(t,a+1);var f=o===!0?`,`:o;r===`Backspace`&&d[a-1]===f&&Qe(t,a-1),r===`Delete`&&d[a]===f&&Qe(t,a+1),i(e)},onBlur:function(t){var n=T;n.match(/\d/g)||(n=``),r||(n=qe(n)),c&&s&&(n=Ze(n,s,c)),n!==T&&D({formattedValue:pt(n,e),value:n,floatValue:parseFloat(n)},{event:t,source:Fe.event}),a(t)}})}function St(e){var t=xt(e);return m.default.createElement(ft,Object.assign({},t))}function Ct({direction:e,style:t,...n}){return(0,h.jsx)(`svg`,{style:{width:`var(--ni-chevron-size)`,height:`var(--ni-chevron-size)`,transform:e===`up`?`rotate(180deg)`:void 0,...t},viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...n,children:(0,h.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var wt={root:`m_e2f5cd4e`,controls:`m_95e17d22`,control:`m_80b4b171`},Tt=/^(0\.0*|-0(\.0*)?)$/,Et=/^-?0\d+(\.\d+)?\.?$/,Dt=/\.\d*0$/,Ot=/^-?\d+\.$/;function kt(e){return typeof e==`string`&&e!==``&&!Number.isNaN(Number(e))}function At(e){return typeof e==`bigint`}function jt(e){return typeof e==`number`?e<2**53-1:e===``||kt(e)&&Number(e)<2**53-1}function Mt(e,t){return e===``||e===`-`||!t&&e.startsWith(`-`)?!1:/^-?\d+$/.test(e)}function Nt(e,t){return typeof e==`bigint`?!0:e===``||Mt(e,t)}function Pt(e){if(!/^-?\d+$/.test(e))return null;try{return BigInt(e)}catch{return null}}function Ft(e){if(typeof e==`bigint`)return e;if(typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e))return BigInt(e)}function It(e,t,n){return t!==void 0&&e<t?t:n!==void 0&&e>n?n:e}function Lt(e){return e.toString().replace(`.`,``).length}function Rt(e,t){return(typeof e==`number`?e<2**53-1:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&Lt(t)<14&&t!==``}function zt(e,t,n){return e===void 0?!0:(t===void 0||e>=t)&&(n===void 0||e<=n)}var Bt={step:1,clampBehavior:`blur`,allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[`.`,`,`]},Vt=t.O((e,{size:n})=>({controls:{"--ni-chevron-size":t.N(n,`ni-chevron-size`)}}));function Ht(e,t,n){let r=e.toString(),i=Ot.test(r),o=r.replace(/^0+(?=\d)/,``),s=parseFloat(o);if(Number.isNaN(s))return o;if(s>2**53-1)return t===void 0?o:t;let c=a.n(s,n,t);return i?`${c.toString().replace(/^0+(?=\d)/,``)}.`:c}function Ut(e,t){if(e===``||e===`-`)return e;let n=Pt(e);return n===null?e:t.clampBehavior===`blur`?It(n,t.min,t.max):n}var Wt=t.i(e=>{let n=t.l(`NumberInput`,Bt,e),{className:r,classNames:s,styles:d,unstyled:f,vars:p,onChange:g,onValueChange:_,value:v,defaultValue:y,max:b,min:x,step:S,hideControls:C,rightSection:w,isAllowed:T,clampBehavior:E,onBlur:D,allowDecimal:O,decimalScale:k,onKeyDown:A,onKeyDownCapture:j,handlersRef:M,startValue:ee,disabled:N,rightSectionPointerEvents:P,allowNegative:F,readOnly:I,size:L,rightSectionWidth:R,stepHoldInterval:z,stepHoldDelay:te,allowLeadingZeros:B,withKeyboardEvents:ne,trimLeadingZeroesOnBlur:re,allowedDecimalSeparators:ie,selectAllOnFocus:ae,onMinReached:oe,onMaxReached:se,onFocus:ce,attributes:le,ref:ue,...de}=n,fe=F??!0,pe=B??!0,me=t.c({name:`NumberInput`,classes:wt,props:n,classNames:s,styles:d,unstyled:f,attributes:le,vars:p,varsResolver:Vt}),{resolvedClassNames:he,resolvedStyles:ge}=l.t({classNames:s,styles:d,props:n}),_e=(0,m.useRef)(At(v)||At(y)?`bigint`:`number`);At(v)?_e.current=`bigint`:typeof v==`number`&&(_e.current=`number`);let ve=_e.current===`bigint`,[V,ye]=a.t({value:v,defaultValue:y,finalValue:``,onChange:g}),H=te!==void 0&&z!==void 0,U=(0,m.useRef)(null),be=(0,m.useRef)(null),xe=(0,m.useRef)(0),Se=typeof x==`number`?x:void 0,W=typeof b==`number`?b:void 0,Ce=typeof S==`number`?S:Bt.step,we=typeof ee==`number`?ee:Bt.startValue,G=Ft(x),K=Ft(b),q=Ft(S)??BigInt(1),J=Ft(ee)??BigInt(0),Te=e=>!Mt(e,fe)||pe&&Et.test(e)?e:Pt(e)??e,Y=e=>{let t=Number(e);return Number.isSafeInteger(t)?t:void 0},Ee=(e,t)=>{t.source===`event`&&ye(ve?Te(e.value):Rt(e.floatValue,e.value)&&!Tt.test(e.value)&&!(pe&&Et.test(e.value))&&!Dt.test(e.value)&&!Ot.test(e.value)?e.floatValue:e.value),_?.(e,t)},De=e=>{let t=String(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},X=e=>{U.current&&e!==void 0&&U.current.setSelectionRange(e,e)},Oe=(0,m.useRef)(i.m);Oe.current=()=>{if(ve){if(!Nt(V,fe))return;let e,t=V;if(typeof t==`bigint`){let n=t+q;K!==void 0&&n>K&&se?.(),e=K!==void 0&&n>K?K:n}else if(typeof t==`string`&&t!==``){let n=Pt(t);if(n===null)return;let r=n+q;K!==void 0&&r>K&&se?.(),e=K!==void 0&&r>K?K:r}else e=It(J,G,K);let n=e.toString();ye(e),_?.({floatValue:Y(e),formattedValue:n,value:n},{source:`increment`}),setTimeout(()=>X(U.current?.value.length),0);return}if(!jt(V))return;let e,t=De(V),n=De(Ce),r=Math.max(t,n),i=10**r;if(!kt(V)&&(typeof V!=`number`||Number.isNaN(V)))e=a.n(we,Se,W);else if(W!==void 0){let t=(Math.round(Number(V)*i)+Math.round(Ce*i))/i;t>W&&se?.(),e=t<=W?t:W}else e=(Math.round(Number(V)*i)+Math.round(Ce*i))/i;let o=e.toFixed(r);ye(parseFloat(o)),_?.({floatValue:parseFloat(o),formattedValue:o,value:o},{source:`increment`}),setTimeout(()=>X(U.current?.value.length),0)};let ke=(0,m.useRef)(i.m);ke.current=()=>{if(ve){if(!Nt(V,fe))return;let e,t=G===void 0?fe?void 0:BigInt(0):G,n=V;if(typeof n==`bigint`){let r=n-q;t!==void 0&&r<t&&oe?.(),e=t!==void 0&&r<t?t:r}else if(typeof n==`string`&&n!==``){let r=Pt(n);if(r===null)return;let i=r-q;t!==void 0&&i<t&&oe?.(),e=t!==void 0&&i<t?t:i}else e=It(J,t,K);let r=e.toString();ye(e),_?.({floatValue:Y(e),formattedValue:r,value:r},{source:`decrement`}),setTimeout(()=>X(U.current?.value.length),0);return}if(!jt(V))return;let e,t=Se===void 0?fe?-(2**53-1):0:Se,n=De(V),r=De(Ce),i=Math.max(n,r),o=10**i;if(!kt(V)&&typeof V!=`number`||Number.isNaN(V))e=a.n(we,t,W);else{let n=(Math.round(Number(V)*o)-Math.round(Ce*o))/o;t!==void 0&&n<t&&oe?.(),e=t!==void 0&&n<t?t:n}let s=e.toFixed(i);ye(parseFloat(s)),_?.({floatValue:parseFloat(s),formattedValue:s,value:s},{source:`decrement`}),setTimeout(()=>X(U.current?.value.length),0)};let Ae=e=>{let t=e.clipboardData.getData(`text`),n=de.decimalSeparator||`.`,r=(ie||[`.`,`,`]).filter(e=>e!==n);if(r.some(e=>t.includes(e))){e.preventDefault();let i=t;r.forEach(e=>{i=i.split(e).join(n)});let a=U.current;if(a){let e=a.selectionStart??0,t=a.selectionEnd??0,n=a.value,r=n.substring(0,e)+i+n.substring(t);(Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(a,r),a.dispatchEvent(new Event(`change`,{bubbles:!0}));let o=e+i.length;setTimeout(()=>X(o),0)}}de.onPaste?.(e)},je=e=>{A?.(e),!(I||!ne)&&(e.key===`ArrowUp`&&(e.preventDefault(),Oe.current?.()),e.key===`ArrowDown`&&(e.preventDefault(),ke.current?.()))},Z=e=>{if(j?.(e),e.key===`Backspace`){let t=U.current;t&&t.selectionStart===0&&t.selectionStart===t.selectionEnd&&(e.preventDefault(),window.setTimeout(()=>X(0),0))}},Me=e=>{ae&&setTimeout(()=>e.currentTarget.select(),0),ce?.(e)},Ne=e=>{let t=V;ve?(E===`blur`&&typeof t==`bigint`&&(t=It(t,G,K)),re&&typeof t==`string`&&(t=Ut(t,{min:G,max:K,clampBehavior:E}))):(E===`blur`&&typeof t==`number`&&(t=a.n(t,Se,W)),re&&typeof t==`string`&&De(t)<15&&(t=Ht(t,W,Se))),V!==t&&ye(t),D?.(e)};c.t(M,{increment:Oe.current,decrement:ke.current});let Q=e=>{e?Oe.current?.():ke.current?.(),xe.current+=1},Pe=e=>{if(Q(e),H){let t=typeof z==`number`?z:z(xe.current);be.current=window.setTimeout(()=>Pe(e),t)}},Fe=(e,t)=>{e.preventDefault(),U.current?.focus(),Q(t),H&&(be.current=window.setTimeout(()=>Pe(t),te))},Ie=()=>{be.current&&window.clearTimeout(be.current),be.current=null,xe.current=0},Le=(0,h.jsxs)(`div`,{...me(`controls`),children:[(0,h.jsx)(u.t,{...me(`control`),tabIndex:-1,"aria-hidden":!0,disabled:N||typeof V==`number`&&W!==void 0&&V>=W||typeof V==`bigint`&&K!==void 0&&V>=K,mod:{direction:`up`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Fe(e,!0)},onPointerUp:Ie,onPointerLeave:Ie,children:(0,h.jsx)(Ct,{direction:`up`})}),(0,h.jsx)(u.t,{...me(`control`),tabIndex:-1,"aria-hidden":!0,disabled:N||typeof V==`number`&&Se!==void 0&&V<=Se||typeof V==`bigint`&&G!==void 0&&V<=G,mod:{direction:`down`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Fe(e,!1)},onPointerUp:Ie,onPointerLeave:Ie,children:(0,h.jsx)(Ct,{direction:`down`})})]});return(0,h.jsx)(o.n,{component:St,allowNegative:F,className:t.D(wt.root,r),size:L,...de,inputMode:ve?`numeric`:`decimal`,readOnly:I,disabled:N,value:typeof V==`bigint`?V.toString():V,getInputRef:c.r(ue,U),onValueChange:Ee,rightSection:C||I||!(ve?Nt(V,fe):jt(V))?w:w||Le,classNames:he,styles:ge,unstyled:f,__staticSelector:`NumberInput`,decimalScale:ve?0:O?k:0,onPaste:Ae,onFocus:Me,onKeyDown:je,onKeyDownCapture:Z,rightSectionPointerEvents:P??(N?`none`:void 0),rightSectionWidth:R??`var(--ni-right-section-width-${L||`sm`})`,allowLeadingZeros:B,allowedDecimalSeparators:ie,onBlur:Ne,attributes:le,isAllowed:e=>{if(!(!T||T(e)))return!1;if(E!==`strict`)return!0;if(!ve)return zt(e.floatValue,Se,W);if(e.value===``||e.value===`-`)return!0;let t=Pt(e.value);return t===null?!0:(G===void 0||t>=G)&&(K===void 0||t<=K)}})});Wt.classes={...o.n.classes,...wt},Wt.varsResolver=Vt,Wt.displayName=`@mantine/core/NumberInput`;var Gt={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},Kt=t.i(e=>{let n=t.l(`Select`,Gt,e),{classNames:r,styles:i,unstyled:s,vars:c,dropdownOpened:u,defaultDropdownOpened:d,onDropdownClose:f,onDropdownOpen:p,onFocus:g,onBlur:_,onClick:v,onChange:y,data:b,value:x,defaultValue:S,selectFirstOptionOnChange:C,selectFirstOptionOnDropdownOpen:T,onOptionSubmit:E,comboboxProps:D,readOnly:O,disabled:k,filter:M,limit:ee,withScrollArea:N,maxDropdownHeight:P,size:F,searchable:I,rightSection:L,checkIconPosition:R,withCheckIcon:z,withAlignedLabels:te,nothingFoundMessage:B,name:ne,form:re,searchValue:ie,defaultSearchValue:ae,onSearchChange:oe,allowDeselect:se,error:ce,rightSectionPointerEvents:le,id:ue,clearable:de,clearSectionMode:fe,clearButtonProps:pe,hiddenInputProps:me,renderOption:he,onClear:ge,autoComplete:_e,scrollAreaProps:V,__defaultRightSection:ye,__clearSection:U,__clearable:be,chevronColor:xe,autoSelectOnBlur:Se,openOnFocus:W,attributes:Ce,...G}=n,K=(0,m.useMemo)(()=>A(b),[b]),q=(0,m.useRef)({}),J=(0,m.useMemo)(()=>j(K),[K]),Te=o.u(ue),[Y,Ee,De]=a.t({value:x,defaultValue:S,finalValue:null,onChange:y}),X=Y==null?void 0:`${Y}`in J?J[`${Y}`]:q.current[`${Y}`],Oe=w(X),[ke,Ae,je]=a.t({value:ie,defaultValue:ae,finalValue:X?X.label:``,onChange:oe}),Z=ve({opened:u,defaultOpened:d,onDropdownOpen:()=>{p?.(),T?Z.selectFirstOption():Z.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{f?.(),setTimeout(Z.resetSelectedOption,0)}}),Me=e=>{Ae(e),Z.resetSelectedOption()},{resolvedClassNames:Ne,resolvedStyles:Q}=l.t({props:n,styles:i,classNames:r});(0,m.useEffect)(()=>{C&&Z.selectFirstOption()},[C,ke]),(0,m.useEffect)(()=>{x===null&&Me(``),x!=null&&X&&(Oe?.value!==X.value||Oe?.label!==X.label)&&Me(X.label)},[x,X]),(0,m.useEffect)(()=>{!De&&!je&&Me(Y==null?``:`${Y}`in J?J[`${Y}`]?.label:q.current[`${Y}`]?.label||``)},[J,Y]),(0,m.useEffect)(()=>{Y&&`${Y}`in J&&(q.current[`${Y}`]=J[`${Y}`])},[J,Y]);let Pe=(0,h.jsx)(H.ClearButton,{...pe,onClear:()=>{Ee(null,null),Me(``),ge?.()}}),Fe=de&&!!Y&&!k&&!O;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(H,{store:Z,__staticSelector:`Select`,classNames:Ne,styles:Q,unstyled:s,readOnly:O,size:F,attributes:Ce,keepMounted:Se,onOptionSubmit:e=>{E?.(e);let t=se&&`${J[e].value}`==`${Y}`?null:J[e],n=t?t.value:null;n!==Y&&Ee(n,t),!De&&Me(n==null?``:t?.label||``),Z.closeDropdown()},...D,children:[(0,h.jsx)(H.Target,{targetType:I?`input`:`button`,autoComplete:_e,withExpandedAttribute:!0,children:(0,h.jsx)(o.n,{id:Te,__defaultRightSection:(0,h.jsx)(H.Chevron,{size:F,error:ce,unstyled:s,color:xe}),__clearSection:Pe,__clearable:Fe,__clearSectionMode:fe,rightSection:L,rightSectionPointerEvents:le||`none`,...G,size:F,__staticSelector:`Select`,disabled:k,readOnly:O||!I,value:ke,onChange:e=>{Me(e.currentTarget.value),Z.openDropdown(),C&&Z.selectFirstOption()},onFocus:e=>{W&&I&&Z.openDropdown(),g?.(e)},onBlur:e=>{Se&&Z.clickSelectedOption(),I&&Z.closeDropdown();let t=Y!=null&&(`${Y}`in J?J[`${Y}`]:q.current[`${Y}`]);Me(t&&t.label||``),_?.(e)},onClick:e=>{I?Z.openDropdown():Z.toggleDropdown(),v?.(e)},classNames:Ne,styles:Q,unstyled:s,pointer:!I,error:ce,attributes:Ce})}),(0,h.jsx)(we,{data:K,hidden:O||k,filter:M,search:ke,limit:ee,hiddenWhenEmpty:!B,withScrollArea:N,maxDropdownHeight:P,filterOptions:!!I&&X?.label!==ke,value:Y,checkIconPosition:R,withCheckIcon:z,withAlignedLabels:te,nothingFoundMessage:B,unstyled:s,labelId:G.label?`${Te}-label`:void 0,"aria-label":G.label?void 0:G[`aria-label`],renderOption:he,scrollAreaProps:V})]}),(0,h.jsx)(H.HiddenInput,{value:Y,name:ne,form:re,disabled:k,...me})]})});Kt.classes={...o.n.classes,...H.classes},Kt.displayName=`@mantine/core/Select`;var qt=(0,m.createContext)(null),Jt={hiddenInputValuesSeparator:`,`},Yt=t.i((e=>{let{value:n,defaultValue:r,onChange:i,size:c,wrapperProps:l,children:u,readOnly:d,name:f,hiddenInputValuesSeparator:p,hiddenInputProps:m,maxSelectedValues:g,disabled:_,...v}=t.l(`SwitchGroup`,Jt,e),[y,b]=a.t({value:n,defaultValue:r,finalValue:[],onChange:i}),x=e=>{let t=e.currentTarget.value;if(d)return;let n=y.includes(t);!n&&g&&y.length>=g||b(n?y.filter(e=>e!==t):[...y,t])},S=e=>{if(_)return!0;if(!g)return!1;let t=y.includes(e),n=y.length>=g;return!t&&n},C=y.join(p);return(0,h.jsx)(qt,{value:{value:y,onChange:x,size:c,isDisabled:S},children:(0,h.jsxs)(o.i.Wrapper,{size:c,...l,...v,labelElement:`div`,__staticSelector:`SwitchGroup`,children:[(0,h.jsx)(s.i,{role:`group`,children:u}),(0,h.jsx)(`input`,{type:`hidden`,name:f,value:C,...m})]})})}));Yt.classes=o.i.Wrapper.classes,Yt.displayName=`@mantine/core/SwitchGroup`;var Xt={root:`m_5f93f3bb`,input:`m_926b4011`,track:`m_9307d992`,thumb:`m_93039a1d`,trackLabel:`m_8277e082`},Zt={labelPosition:`right`,withThumbIndicator:!0},Qt=t.O((e,{radius:n,color:r,size:i})=>({root:{"--switch-radius":n===void 0?void 0:t.j(n),"--switch-height":t.N(i,`switch-height`),"--switch-width":t.N(i,`switch-width`),"--switch-thumb-size":t.N(i,`switch-thumb-size`),"--switch-label-font-size":t.N(i,`switch-label-font-size`),"--switch-track-label-padding":t.N(i,`switch-track-label-padding`),"--switch-color":r?t.x(r,e):void 0}})),$t=t.r(e=>{let n=t.l(`Switch`,Zt,e),{classNames:r,className:i,style:c,styles:l,unstyled:u,vars:d,color:f,label:p,offLabel:g,onLabel:_,id:v,size:y,radius:b,wrapperProps:x,thumbIcon:S,checked:C,defaultChecked:w,onChange:T,labelPosition:E,description:D,error:O,disabled:k,variant:A,rootRef:j,mod:M,withThumbIndicator:ee,attributes:N,...P}=n,F=(0,m.use)(qt),I=y||F?.size,L=t.c({name:`Switch`,props:n,classes:Xt,className:i,style:c,classNames:r,styles:l,unstyled:u,attributes:N,vars:d,varsResolver:Qt}),{styleProps:R,rest:z}=t.o(P),te=o.u(v),B={checked:F?.value.includes(z.value)??C,onChange:e=>{F?.onChange(e),T?.(e)}},ne=k||F?.isDisabled?.(z.value),[re,ie]=a.t({value:B.checked??C,defaultValue:w,finalValue:!1});return(0,h.jsxs)(s.n,{...L(`root`),__staticSelector:`Switch`,__stylesApiProps:n,id:te,size:I,labelPosition:E,label:p,description:D,error:O,disabled:ne,bodyElement:`label`,labelElement:`span`,classNames:r,styles:l,unstyled:u,"data-checked":B.checked,variant:A,ref:j,mod:M,attributes:N,inert:z.inert,...R,...x,children:[(0,h.jsx)(`input`,{...z,...B,disabled:ne,checked:re,"data-checked":B.checked,onChange:e=>{B.onChange?.(e),ie(e.currentTarget.checked)},id:te,type:`checkbox`,role:`switch`,inert:z.inert,...L(`input`)}),(0,h.jsxs)(t.t,{"aria-hidden":`true`,component:`span`,mod:{error:O,"label-position":E,"without-labels":!_&&!g},...L(`track`),children:[(0,h.jsx)(t.t,{component:`span`,mod:{"reduce-motion":!0,"with-thumb-indicator":ee&&!S},...L(`thumb`),children:S}),(0,h.jsx)(`span`,{...L(`trackLabel`),children:re?_:g})]})]})});$t.classes={...Xt,...s.r},$t.varsResolver=Qt,$t.displayName=`@mantine/core/Switch`,$t.Group=Yt;var en=({size:e=16})=>(0,h.jsx)(`span`,{style:{color:`orange`,fontWeight:`bold`,marginLeft:`8px`,display:`flex`,alignItems:`center`},title:`Unsaved changes`,children:p.i(`FcSynchronize`,{size:e})}),$={root:`_root_1aqog_1`,menuTrigger:`_menuTrigger_1aqog_19`,element:`_element_1aqog_37`,sliderLabel:`_sliderLabel_1aqog_44`,select:`_select_1aqog_50`,textInput:`_textInput_1aqog_51`,numberInput:`_numberInput_1aqog_52`,slider:`_slider_1aqog_44`},tn={size:16,style:{display:`block`}},nn=({name:e})=>p.i(e,tn),rn=({label:e,icon:t,items:n,rightSection:r})=>{let[i,a]=(0,m.useState)(!1);return(0,h.jsxs)(Q,{opened:i,onClose:()=>a(!1),withinPortal:!0,keepMounted:!0,closeOnItemClick:!0,closeOnEscape:!0,closeOnClickOutside:!0,position:`bottom-start`,children:[(0,h.jsx)(Q.Target,{children:(0,h.jsxs)(`button`,{className:$.menuTrigger,onClick:()=>a(e=>!e),children:[t&&(0,h.jsx)(()=>p.i(t??``,tn),{}),(0,h.jsx)(`span`,{children:e}),r&&(0,h.jsx)(`span`,{style:{marginLeft:`auto`},children:r})]})}),(0,h.jsx)(Q.Dropdown,{children:n.map((e,t)=>e.type===`divider`?(0,h.jsx)(Q.Divider,{},t):e.type===`slider`?(0,h.jsx)(Q.Item,{closeMenuOnClick:!1,children:(0,h.jsxs)(`div`,{style:{minWidth:120},children:[e.label&&(0,h.jsx)(`div`,{style:{marginBottom:4},children:e.label}),(0,h.jsx)(s.t,{min:e.min,max:e.max,value:e.value,onChange:e.onChange,size:`sm`})]})},t):(0,h.jsx)(Q.Item,{disabled:e.disabled,onClick:e.onClick,leftSection:e.icon?(0,h.jsx)(nn,{name:e.icon}):void 0,children:e.label},t))})]})},an=({elements:e})=>{let[t,n]=(0,m.useState)({}),r=(e,t)=>{n(n=>({...n,[e]:{...n[e]??{isHovered:!1,isDragging:!1},...t}}))};return(0,h.jsx)(`div`,{className:$.root,role:`menubar`,"aria-label":`Application menu`,children:e.map((e,n)=>{switch(e.type){case`menu`:return(0,h.jsx)(rn,{label:e.label,icon:e.icon,items:e.items,rightSection:e.rightSection},n);case`combobox`:return(0,h.jsx)(`div`,{className:$.element,children:(0,h.jsx)(Kt,{data:e.options,value:e.value,onChange:t=>t&&e.onChange(t),placeholder:e.label,size:`sm`,className:$.select,comboboxProps:{withinPortal:!0}})},n);case`switch`:return(0,h.jsx)(`div`,{className:$.element,children:(0,h.jsx)($t,{label:e.label,checked:e.checked,onChange:t=>e.onChange(t.currentTarget.checked),size:`sm`})},n);case`slider`:{let a=t[n]??{isHovered:!1,isDragging:!1},o=a.isHovered||a.isDragging;return(0,h.jsx)(i.t,{label:(e.labelFormat??(e=>String(e)))(e.value),position:`bottom`,withArrow:!0,opened:o,children:(0,h.jsxs)(`div`,{className:$.element,onMouseEnter:()=>r(n,{isHovered:!0}),onMouseLeave:()=>r(n,{isHovered:!1}),children:[e.label&&(0,h.jsx)(`span`,{className:$.sliderLabel,children:e.label}),(0,h.jsx)(s.t,{min:e.min,max:e.max,value:e.value,onChange:t=>{e.onChange(t),r(n,{isDragging:!0})},onChangeEnd:t=>{e.onChange(t),r(n,{isDragging:!1})},size:`sm`,className:$.slider,marks:e.marks})]})},n)}case`text-input`:return(0,h.jsx)(`div`,{className:$.element,children:(0,h.jsx)(o.t,{placeholder:e.placeholder,value:e.value,onChange:t=>e.onChange(t.currentTarget.value),size:`sm`,className:$.textInput})},n);case`number-input`:return(0,h.jsx)(`div`,{className:$.element,children:(0,h.jsx)(Wt,{label:e.label,value:e.value,onChange:t=>e.onChange(typeof t==`number`?t:0),min:e.min,max:e.max,step:e.step??1,placeholder:e.placeholder,size:`sm`,className:$.numberInput})},n);case`select`:return(0,h.jsx)(`div`,{className:$.element,children:(0,h.jsx)(Kt,{label:e.label,data:e.options,value:e.value,onChange:t=>t&&e.onChange(t),size:`sm`,className:$.select,comboboxProps:{withinPortal:!0}})},n);case`dirty-indicator`:return(0,h.jsx)(`span`,{style:{marginLeft:`auto`},children:(0,h.jsx)(en,{})},n)}})})};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return en}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return an}});