@useprint/preview 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +5 -5
  3. package/.next/diagnostics/framework.json +1 -1
  4. package/.next/images-manifest.json +1 -0
  5. package/.next/next-minimal-server.js.nft.json +1 -1
  6. package/.next/next-server.js.nft.json +1 -1
  7. package/.next/prerender-manifest.json +3 -5
  8. package/.next/required-server-files.js +324 -0
  9. package/.next/required-server-files.json +11 -8
  10. package/.next/routes-manifest.json +1 -1
  11. package/.next/server/app/_global-error/page.js +3 -3
  12. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  13. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/_global-error.html +2 -2
  15. package/.next/server/app/_global-error.meta +2 -1
  16. package/.next/server/app/_global-error.rsc +2 -3
  17. package/.next/server/app/_global-error.segments/_full.segment.rsc +2 -3
  18. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  19. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  20. package/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
  21. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  22. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -8
  23. package/.next/server/app/_not-found/page.js +2 -2
  24. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  25. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  26. package/.next/server/app/favicon.ico/route.js +1 -1
  27. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  28. package/.next/server/app/favicon.ico.body +0 -0
  29. package/.next/server/app/page.js +2 -2
  30. package/.next/server/app/page.js.nft.json +1 -1
  31. package/.next/server/app/page_client-reference-manifest.js +1 -1
  32. package/.next/server/app/preview/[...slug]/page.js +102 -219
  33. package/.next/server/app/preview/[...slug]/page.js.nft.json +1 -1
  34. package/.next/server/app/preview/[...slug]/page_client-reference-manifest.js +1 -1
  35. package/.next/server/chunks/337.js +3 -0
  36. package/.next/server/chunks/377.js +1 -0
  37. package/.next/server/chunks/394.js +1 -0
  38. package/.next/server/chunks/445.js +22 -0
  39. package/.next/server/chunks/471.js +13 -0
  40. package/.next/server/chunks/95.js +4 -4
  41. package/.next/server/chunks/static/media/pdf.worker.min.3327dba1.mjs +8 -0
  42. package/.next/server/middleware-build-manifest.js +1 -1
  43. package/.next/server/next-font-manifest.js +1 -1
  44. package/.next/server/next-font-manifest.json +1 -1
  45. package/.next/server/pages/500.html +2 -2
  46. package/.next/server/server-reference-manifest.js +1 -1
  47. package/.next/server/server-reference-manifest.json +1 -1
  48. package/.next/server/webpack-runtime.js +1 -1
  49. package/.next/static/chunks/134-e1901aa4c8d7c5e4.js +1 -0
  50. package/.next/static/chunks/399-82b1df7ae5633759.js +1 -0
  51. package/.next/static/chunks/4bd1b696-096d35a2bd1da3af.js +1 -0
  52. package/.next/static/chunks/576-c76dd52ea4e7fe70.js +1 -0
  53. package/.next/static/chunks/794-96cfa93198fb4e82.js +2 -0
  54. package/.next/static/chunks/818-09ed5fa3e6aa2cec.js +9 -0
  55. package/.next/static/chunks/aad4249a-49e9609864e9e734.js +2 -0
  56. package/.next/static/chunks/app/layout-ab1f12a855e9ab71.js +1 -0
  57. package/.next/static/chunks/app/preview/[...slug]/page-21d4bab9478629da.js +1 -0
  58. package/.next/static/chunks/{c828b8b5-6f56633e9da941cb.js → c828b8b5-fe0be434537dde60.js} +2 -2
  59. package/.next/static/chunks/framework-2d4b35820b5e3e1e.js +1 -0
  60. package/.next/static/chunks/main-d2bae8996dc5307c.js +5 -0
  61. package/.next/static/chunks/{webpack-b8e17eaab329ee72.js → webpack-96cba10d3fe872ec.js} +1 -1
  62. package/.next/static/css/30dcbab3549c2dfe.css +4 -0
  63. package/.next/static/media/inter-cyrillic-400-normal.372704ff.woff2 +0 -0
  64. package/.next/static/media/inter-cyrillic-400-normal.a6b6ef6f.woff +0 -0
  65. package/.next/static/media/inter-cyrillic-500-normal.7c15bba8.woff2 +0 -0
  66. package/.next/static/media/inter-cyrillic-500-normal.b9f8c929.woff +0 -0
  67. package/.next/static/media/inter-cyrillic-600-normal.2f42892a.woff2 +0 -0
  68. package/.next/static/media/inter-cyrillic-600-normal.c3987adc.woff +0 -0
  69. package/.next/static/media/inter-cyrillic-700-normal.93eba3c3.woff +0 -0
  70. package/.next/static/media/inter-cyrillic-700-normal.e9e5b2dc.woff2 +0 -0
  71. package/.next/static/media/inter-cyrillic-ext-400-normal.2a31c04b.woff +0 -0
  72. package/.next/static/media/inter-cyrillic-ext-400-normal.f572b170.woff2 +0 -0
  73. package/.next/static/media/inter-cyrillic-ext-500-normal.5a6bb1da.woff +0 -0
  74. package/.next/static/media/inter-cyrillic-ext-500-normal.fe0d9b14.woff2 +0 -0
  75. package/.next/static/media/inter-cyrillic-ext-600-normal.ecbdecad.woff +0 -0
  76. package/.next/static/media/inter-cyrillic-ext-600-normal.f7b3c15b.woff2 +0 -0
  77. package/.next/static/media/inter-cyrillic-ext-700-normal.4b4022a6.woff +0 -0
  78. package/.next/static/media/inter-cyrillic-ext-700-normal.74b516d2.woff2 +0 -0
  79. package/.next/static/media/inter-greek-400-normal.cc58c11b.woff +0 -0
  80. package/.next/static/media/inter-greek-400-normal.d7020e3c.woff2 +0 -0
  81. package/.next/static/media/inter-greek-500-normal.d9a33207.woff +0 -0
  82. package/.next/static/media/inter-greek-500-normal.f41f43db.woff2 +0 -0
  83. package/.next/static/media/inter-greek-600-normal.4ec0c1c1.woff +0 -0
  84. package/.next/static/media/inter-greek-600-normal.cc532937.woff2 +0 -0
  85. package/.next/static/media/inter-greek-700-normal.5ec6c758.woff +0 -0
  86. package/.next/static/media/inter-greek-700-normal.97f0eeeb.woff2 +0 -0
  87. package/.next/static/media/inter-greek-ext-400-normal.4ce1df5d.woff2 +0 -0
  88. package/.next/static/media/inter-greek-ext-400-normal.88ede1ea.woff +0 -0
  89. package/.next/static/media/inter-greek-ext-500-normal.7a4aa726.woff +0 -0
  90. package/.next/static/media/inter-greek-ext-500-normal.cbd51e2d.woff2 +0 -0
  91. package/.next/static/media/inter-greek-ext-600-normal.089a95ee.woff +0 -0
  92. package/.next/static/media/inter-greek-ext-600-normal.1f33d317.woff2 +0 -0
  93. package/.next/static/media/inter-greek-ext-700-normal.31f1075d.woff +0 -0
  94. package/.next/static/media/inter-greek-ext-700-normal.827cd618.woff2 +0 -0
  95. package/.next/static/media/inter-latin-400-normal.2c7a775c.woff +0 -0
  96. package/.next/static/media/inter-latin-400-normal.ef6d3f52.woff2 +0 -0
  97. package/.next/static/media/inter-latin-500-normal.b7b43ace.woff2 +0 -0
  98. package/.next/static/media/inter-latin-500-normal.cb4c8ceb.woff +0 -0
  99. package/.next/static/media/inter-latin-600-normal.8fb1a964.woff2 +0 -0
  100. package/.next/static/media/inter-latin-600-normal.ce0f5f43.woff +0 -0
  101. package/.next/static/media/inter-latin-700-normal.953b7aa5.woff2 +0 -0
  102. package/.next/static/media/inter-latin-700-normal.9c21d4dc.woff +0 -0
  103. package/.next/static/media/inter-latin-ext-400-normal.32a25442.woff2 +0 -0
  104. package/.next/static/media/inter-latin-ext-400-normal.4edcaace.woff +0 -0
  105. package/.next/static/media/inter-latin-ext-500-normal.a19a84a6.woff +0 -0
  106. package/.next/static/media/inter-latin-ext-500-normal.d9b491de.woff2 +0 -0
  107. package/.next/static/media/inter-latin-ext-600-normal.38b075d8.woff2 +0 -0
  108. package/.next/static/media/inter-latin-ext-600-normal.49faa47a.woff +0 -0
  109. package/.next/static/media/inter-latin-ext-700-normal.93534b50.woff +0 -0
  110. package/.next/static/media/inter-latin-ext-700-normal.b63daa1a.woff2 +0 -0
  111. package/.next/static/media/inter-vietnamese-400-normal.a9dd2faf.woff +0 -0
  112. package/.next/static/media/inter-vietnamese-400-normal.de4fc44f.woff2 +0 -0
  113. package/.next/static/media/inter-vietnamese-500-normal.7c0a695f.woff2 +0 -0
  114. package/.next/static/media/inter-vietnamese-500-normal.a3a73b95.woff +0 -0
  115. package/.next/static/media/inter-vietnamese-600-normal.9d518599.woff2 +0 -0
  116. package/.next/static/media/inter-vietnamese-600-normal.c5ce3fcb.woff +0 -0
  117. package/.next/static/media/inter-vietnamese-700-normal.bc68b199.woff +0 -0
  118. package/.next/static/media/inter-vietnamese-700-normal.faf12809.woff2 +0 -0
  119. package/.next/static/media/pdf.worker.min.67f75a11.mjs +8 -0
  120. package/.next/trace +32 -32
  121. package/.next/trace-build +1 -1
  122. package/CHANGELOG.md +19 -0
  123. package/next.config.js +5 -1
  124. package/package.json +4 -3
  125. package/public/apple-touch-icon.png +0 -0
  126. package/public/favicon-96x96.png +0 -0
  127. package/public/favicon.ico +0 -0
  128. package/public/favicon.svg +3 -0
  129. package/public/site.webmanifest +21 -0
  130. package/public/web-app-manifest-192x192.png +0 -0
  131. package/public/web-app-manifest-512x512.png +0 -0
  132. package/readme.md +9 -27
  133. package/scripts/utils/default-seed/contracts/project-proposal.tsx +68 -0
  134. package/scripts/utils/default-seed/finance/payment-summary.tsx +55 -0
  135. package/scripts/utils/default-seed/reports/incident-report.tsx +49 -0
  136. package/scripts/utils/default-seed/updates/release-notes.tsx +58 -0
  137. package/src/actions/generate-pdf-from-html.ts +0 -8
  138. package/src/actions/render-document-by-path.tsx +0 -3
  139. package/src/app/favicon.ico +0 -0
  140. package/src/app/fonts.ts +0 -7
  141. package/src/app/globals.css +9 -0
  142. package/src/app/layout.tsx +13 -8
  143. package/src/app/page.tsx +14 -12
  144. package/src/app/preview/[...slug]/page.tsx +9 -61
  145. package/src/app/preview/[...slug]/preview.tsx +5 -6
  146. package/src/components/logo.tsx +21 -13
  147. package/src/components/pdf-viewer.tsx +61 -20
  148. package/src/components/print.tsx +37 -5
  149. package/src/components/shell.tsx +1 -2
  150. package/src/utils/__snapshots__/get-document-component.spec.ts.snap +25 -181
  151. package/src/utils/canidocument/ast/get-object-variables.ts +1 -1
  152. package/src/utils/canidocument/ast/get-used-style-properties.ts +1 -1
  153. package/src/utils/canidocument/get-compatibility-stats-for-entry.ts +1 -1
  154. package/src/utils/canidocument/tailwind/get-tailwind-config.ts +1 -1
  155. package/src/utils/canidocument/tailwind/get-tailwind-metadata.spec.ts +2 -2
  156. package/src/utils/canidocument/tailwind/get-tailwind-metadata.ts +1 -1
  157. package/src/utils/canidocument/types.ts +12 -0
  158. package/src/utils/contains-document-template.spec.ts +1 -1
  159. package/src/utils/esbuild/renderring-utilities-exporter.ts +248 -0
  160. package/src/utils/get-document-component.spec.ts +6 -4
  161. package/src/utils/get-document-component.ts +61 -10
  162. package/src/utils/get-documents-directory-metadata.spec.ts +18 -55
  163. package/src/utils/iframe-processing.spec.ts +13 -25
  164. package/src/utils/js-document-detection.spec.ts +11 -5
  165. package/src/utils/linting.ts +29 -33
  166. package/src/utils/margin-calculation.spec.ts +5 -5
  167. package/src/utils/testing/js-document-export-default.js +3 -0
  168. package/src/utils/testing/js-document-test.js +3 -0
  169. package/src/utils/testing/mdx-document-test.js +3 -0
  170. package/src/utils/testing/request-response-document.tsx +15 -0
  171. package/.next/server/chunks/134.js +0 -22
  172. package/.next/server/chunks/286.js +0 -27
  173. package/.next/server/chunks/489.js +0 -13
  174. package/.next/server/chunks/731.js +0 -1
  175. package/.next/server/chunks/static/media/pdf.worker.min.3fa7f4f1.mjs +0 -8
  176. package/.next/static/chunks/134-488429db271f07ce.js +0 -1
  177. package/.next/static/chunks/399-38210d4b480adc3a.js +0 -1
  178. package/.next/static/chunks/4bd1b696-f2999b4e17b2fd5f.js +0 -1
  179. package/.next/static/chunks/576-d2a7761fb68a178e.js +0 -1
  180. package/.next/static/chunks/794-de04f3efd45c53dd.js +0 -20
  181. package/.next/static/chunks/818-708fabc8a2438ba2.js +0 -9
  182. package/.next/static/chunks/aad4249a-8397af6f169152d5.js +0 -2
  183. package/.next/static/chunks/app/layout-38d6d79a819ab362.js +0 -1
  184. package/.next/static/chunks/app/preview/[...slug]/page-1097b557142aa22c.js +0 -1
  185. package/.next/static/chunks/framework-9fb1a057e8adf51d.js +0 -1
  186. package/.next/static/chunks/main-66c819c51fec57bf.js +0 -23
  187. package/.next/static/css/2f4a632dc94d1fb7.css +0 -3
  188. package/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
  189. package/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
  190. package/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
  191. package/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
  192. package/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
  193. package/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
  194. package/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
  195. package/.next/static/media/pdf.worker.min.539a26ca.mjs +0 -8
  196. package/.next/types/app/layout.ts +0 -86
  197. package/.next/types/cache-life.d.ts +0 -145
  198. package/scripts/utils/default-seed/auth/account-confirmation.tsx +0 -68
  199. package/scripts/utils/default-seed/auth/forgot-password.tsx +0 -71
  200. package/scripts/utils/default-seed/communications/payment-overdue.tsx +0 -82
  201. package/scripts/utils/default-seed/communications/team-invite.tsx +0 -78
  202. package/scripts/utils/default-seed/communications/webhooks-failed.tsx +0 -89
  203. package/scripts/utils/default-seed/feedback-request.tsx +0 -78
  204. package/scripts/utils/default-seed/marketing/changelog.tsx +0 -98
  205. package/src/actions/document-validation/__snapshots__/check-images.spec.tsx.snap +0 -84
  206. package/src/actions/document-validation/canidocument-data.ts +0 -85993
  207. package/src/actions/document-validation/check-compatibility.ts +0 -333
  208. package/src/actions/document-validation/check-images.spec.tsx +0 -21
  209. package/src/actions/document-validation/check-images.ts +0 -160
  210. package/src/actions/document-validation/check-links.spec.tsx +0 -113
  211. package/src/actions/document-validation/check-links.ts +0 -113
  212. package/src/actions/document-validation/get-code-location-from-ast-element.ts +0 -18
  213. package/src/actions/document-validation/quick-fetch.ts +0 -14
  214. package/src/animated-icons-data/help.json +0 -1082
  215. package/src/animated-icons-data/link.json +0 -1309
  216. package/src/animated-icons-data/mail.json +0 -1320
  217. package/src/components/toolbar/checking-results.tsx +0 -150
  218. package/src/components/toolbar/code-preview-line-link.tsx +0 -39
  219. package/src/components/toolbar/compatibility.tsx +0 -113
  220. package/src/components/toolbar/linter.tsx +0 -278
  221. package/src/components/toolbar/results-table.tsx +0 -0
  222. package/src/components/toolbar/results.tsx +0 -52
  223. package/src/components/toolbar/spam-assassin.tsx +0 -153
  224. package/src/components/toolbar/toolbar-button.tsx +0 -52
  225. package/src/components/toolbar/use-cached-state.ts +0 -33
  226. package/src/components/toolbar.tsx +0 -349
  227. /package/.next/static/{ZCqBZ8ZswPjX7K5Zalrpy → w_xYcS_2x1gNv-LaTlIOy}/_buildManifest.js +0 -0
  228. /package/.next/static/{ZCqBZ8ZswPjX7K5Zalrpy → w_xYcS_2x1gNv-LaTlIOy}/_ssgManifest.js +0 -0
@@ -1,9 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[818],{91:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r={formatUrl:function(){return s},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let o=n(927)._(n(1393)),a=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:n}=e,r=e.protocol||"",i=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(o.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||a.test(r))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${r}${u}${i}${c}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},162:(e,t,n)=>{n.d(t,{l:()=>r});let r=e=>e},256:(e,t,n)=>{n.d(t,{C:()=>a});var r=n(2115),i=n(9528),o=n(9967),a=e=>{var t;let n,a,{present:l,children:u}=e,c=function(e){var t,n;let[i,a]=r.useState(),l=r.useRef({}),u=r.useRef(e),c=r.useRef("none"),[d,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=l.current,n=u.current;if(n!==e){let r=c.current,i=s(t);e?p("MOUNT"):"none"===i||t?.display==="none"?p("UNMOUNT"):n&&r!==i?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,o.N)(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=s(l.current).includes(n.animationName);if(n.target===i&&r&&(p("ANIMATION_END"),!u.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(c.current=s(l.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(l.current=getComputedStyle(e)),a(e)},[])}}(l),d="function"==typeof u?u({present:c.isPresent}):r.Children.only(u),p=(0,i.s)(c.ref,(t=d,(a=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(a=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof u||c.isPresent?r.cloneElement(d,{ref:p}):null};function s(e){return e?.animationName||"none"}a.displayName="Presence"},857:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return x},MissingStaticPage:function(){return v},NormalizeError:function(){return y},PageNotFoundError:function(){return b},SP:function(){return f},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return c},getLocationOrigin:function(){return l},getURL:function(){return u},isAbsoluteUrl:function(){return s},isResSent:function(){return d},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>a.test(e);function l(){let{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function u(){let{href:e}=window.location,t=l();return e.substring(t.length)}function c(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&d(n))return r;if(!r)throw Object.defineProperty(Error(`"${c(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let f="undefined"!=typeof performance,m=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class y extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class x extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},1042:(e,t,n)=>{n.d(t,{o:()=>c});var r=n(5155),i=n(2115),o=n(4802);let a=(0,i.createContext)(null);var s=n(6936),l=n(6047);let u=e=>!e.isLayoutDirty&&e.willUpdate(!1),c=({children:e,id:t,inherit:n=!0})=>{let c=(0,i.useContext)(o.L),d=(0,i.useContext)(a),[p,h]=function(){let e,t=(e=(0,i.useRef)(!1),(0,l.E)(()=>(e.current=!0,()=>{e.current=!1}),[]),e),[n,r]=(0,i.useState)(0),o=(0,i.useCallback)(()=>{t.current&&r(n+1)},[n]);return[(0,i.useCallback)(()=>s.Gt.postRender(o),[o]),n]}(),f=(0,i.useRef)(null),m=c.id||d;if(null===f.current){let e,r,i,o;(!0==(!0===(o=n))||"id"===o)&&m&&(t=t?m+"-"+t:m),f.current={id:t,group:!0===n&&c.group||(e=new Set,r=new WeakMap,{add:t=>{e.add(t),r.set(t,t.addEventListener("willUpdate",i))},remove:t=>{e.delete(t);let n=r.get(t);n&&(n(),r.delete(t)),i()},dirty:i=()=>e.forEach(u)})}}let g=(0,i.useMemo)(()=>({...f.current,forceRender:p}),[h]);return(0,r.jsx)(o.L.Provider,{value:g,children:e})}},1172:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(2115);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=o(e,r)),t&&(i.current=o(t,r))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1268:(e,t,n)=>{n.d(t,{hO:()=>l,sG:()=>s});var r=n(2115),i=n(7650),o=n(3105),a=n(5155),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,o.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?n:t,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},1393:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={assign:function(){return s},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});function i(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,o(e));else t.set(n,o(r));return t}function s(e,...t){for(let n of t){for(let t of n.keys())e.delete(t);for(let[t,r]of n.entries())e.append(t,r)}return e}},2099:(e,t,n)=>{n.d(t,{B:()=>r});let r="undefined"!=typeof window},2384:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(2115);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},2408:(e,t,n)=>{n.d(t,{B:()=>l});var r,i=n(2115),o=n(9967),a=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.N)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},2483:(e,t,n)=>{n.d(t,{qW:()=>p});var r,i=n(2115),o=n(8118),a=n(1268),s=n(9528),l=n(2384),u=n(5155),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:y,onDismiss:b,...v}=e,x=i.useContext(d),[w,k]=i.useState(null),E=w?.ownerDocument??globalThis?.document,[,S]=i.useState({}),T=(0,s.s)(t,e=>k(e)),A=Array.from(x.layers),[P]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),R=A.indexOf(P),C=w?A.indexOf(w):-1,F=x.layersWithOutsidePointerEventsDisabled.size>0,L=C>=R,D=function(e,t=globalThis?.document){let n=(0,l.c)(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){f("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));L&&!n&&(m?.(e),y?.(e),e.defaultPrevented||b?.())},E),M=function(e,t=globalThis?.document){let n=(0,l.c)(e),r=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!r.current&&f("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(g?.(e),y?.(e),e.defaultPrevented||b?.())},E);return!function(e,t=globalThis?.document){let n=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{C===x.layers.size-1&&(p?.(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},E),i.useEffect(()=>{if(w)return n&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(w)),x.layers.add(w),h(),()=>{n&&1===x.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=r)}},[w,E,n,x]),i.useEffect(()=>()=>{w&&(x.layers.delete(w),x.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,x]),i.useEffect(()=>{let e=()=>S({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.sG.div,{...v,ref:T,style:{pointerEvents:F?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,D.onPointerDownCapture)})});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function f(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,a.hO)(i,o):i.dispatchEvent(o)}p.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(d),r=i.useRef(null),o=(0,s.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(a.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},2591:(e,t,n)=>{let r,i;function o(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function a(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function s(e,t,n,r){if("function"==typeof t){let[i,o]=a(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=a(r);t=t(void 0!==n?n:e.custom,i,o)}return t}function l(e,t,n){let r=e.getProps();return s(r,t,void 0!==n?n:r.custom,e)}function u(e,t){return e?.[t]??e?.default??e}n.d(t,{P:()=>of});var c,d,p,h=n(6936);let f=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],m=new Set(f),g=new Set(["width","height","top","left","right","bottom",...f]);function y(e,t){-1===e.indexOf(t)&&e.push(t)}function b(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class v{constructor(){this.subscriptions=[]}add(e){return y(this.subscriptions,e),()=>b(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)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}}var x=n(9080);function w(){r=void 0}let k={now:()=>(void 0===r&&k.set(h.uv.isProcessing||x.W.useManualTiming?h.uv.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(w)}},E;class S{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=k.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=k.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new v);let n=this.events[e].add(t);return"change"===e?()=>{n(),h.Gt.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||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return E&&E.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}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 T(e,t){return new S(e,t)}let A=e=>Array.isArray(e),P=e=>A(e)?e[e.length-1]||0:e,R=e=>!!(e&&e.getVelocity);function C(e,t){let n=e.getValue("willChange");if(R(n)&&n.add)return n.add(t);if(!n&&x.W.WillChange){let n=new x.W.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let F=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),L="data-"+F("framerAppearId");var D=n(162);let M=(e,t)=>n=>t(e(n)),O=(...e)=>e.reduce(M),j=(e,t,n)=>n>t?t:n<e?e:n,N=e=>1e3*e,I={layout:0,mainThread:0,waapi:0},_=()=>{},B=()=>{},$=e=>t=>"string"==typeof t&&t.startsWith(e),V=$("--"),z=$("var(--"),U=e=>!!z(e)&&W.test(e.split("/*")[0].trim()),W=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,G={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},H={...G,transform:e=>j(0,1,e)},Y={...G,default:1},Z=e=>Math.round(1e5*e)/1e5,q=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,X=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,K=(e,t)=>n=>!!("string"==typeof n&&X.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),Q=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,a,s]=r.match(q);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},J={...G,transform:e=>Math.round(j(0,255,e))},ee={test:K("rgb","red"),parse:Q("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+J.transform(e)+", "+J.transform(t)+", "+J.transform(n)+", "+Z(H.transform(r))+")"},et={test:K("#"),parse:function(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}},transform:ee.transform},en=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),er=en("deg"),ei=en("%"),eo=en("px"),ea=en("vh"),es=en("vw"),el={...ei,parse:e=>ei.parse(e)/100,transform:e=>ei.transform(100*e)},eu={test:K("hsl","hue"),parse:Q("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ei.transform(Z(t))+", "+ei.transform(Z(n))+", "+Z(H.transform(r))+")"},ec={test:e=>ee.test(e)||et.test(e)||eu.test(e),parse:e=>ee.test(e)?ee.parse(e):eu.test(e)?eu.parse(e):et.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?ee.transform(e):eu.transform(e),getAnimatableNone:e=>{let t=ec.parse(e);return t.alpha=0,ec.transform(t)}},ed=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ep="number",eh="color",ef=/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 em(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,a=t.replace(ef,e=>(ec.test(e)?(r.color.push(o),i.push(eh),n.push(ec.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(ep),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function eg(e){return em(e).values}function ey(e){let{split:t,types:n}=em(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){let t=n[o];t===ep?i+=Z(e[o]):t===eh?i+=ec.transform(e[o]):i+=e[o]}return i}}let eb=e=>"number"==typeof e?0:ec.test(e)?ec.getAnimatableNone(e):e,ev={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(q)?.length||0)+(e.match(ed)?.length||0)>0},parse:eg,createTransformer:ey,getAnimatableNone:function(e){let t=eg(e);return ey(e)(t.map(eb))}};function ex(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ew(e,t){return n=>n>0?t:e}let ek=(e,t,n)=>e+(t-e)*n,eE=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},eS=[et,ee,eu];function eT(e){let t=eS.find(t=>t.test(e));if(_(!!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===eu&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ex(s,r,e+1/3),o=ex(s,r,e),a=ex(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let eA=(e,t)=>{let n=eT(e),r=eT(t);if(!n||!r)return ew(e,t);let i={...n};return e=>(i.red=eE(n.red,r.red,e),i.green=eE(n.green,r.green,e),i.blue=eE(n.blue,r.blue,e),i.alpha=ek(n.alpha,r.alpha,e),ee.transform(i))},eP=new Set(["none","hidden"]);function eR(e,t){return n=>ek(e,t,n)}function eC(e){return"number"==typeof e?eR:"string"==typeof e?U(e)?ew:ec.test(e)?eA:eD:Array.isArray(e)?eF:"object"==typeof e?ec.test(e)?eA:eL:ew}function eF(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>eC(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function eL(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=eC(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let eD=(e,t)=>{let n=ev.createTransformer(t),r=em(e),i=em(t);if(!(r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length))return _(!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"),ew(e,t);if(eP.has(e)&&!i.values.length||eP.has(t)&&!r.values.length)return eP.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return O(eF(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}(r,i),i.values),n)};function eM(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?ek(e,t,n):eC(e)(e,t)}let eO=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>h.Gt.update(t,e),stop:()=>(0,h.WG)(t),now:()=>h.uv.isProcessing?h.uv.timestamp:k.now()}},ej=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function eN(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 eI(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}let e_=.01,eB=2,e$=.005,eV=.5;function ez(e,t){return e*Math.sqrt(1-t*t)}let eU=["duration","bounce"],eW=["stiffness","damping","mass"];function eG(e,t){return t.some(t=>void 0!==e[t])}function eH(e=.3,t=.3){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:o}=r,a=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:p,velocity:h,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!eG(e,eW)&&eG(e,eU))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*j(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,o;_(e<=N(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=j(.05,1,a),e=j(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/ez(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=ez(Math.pow(t,2),a);return(r*n+n-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=N(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),m=h||0,g=c/(2*Math.sqrt(u*d)),y=s-a,b=Math.sqrt(u/d)/1e3,v=5>Math.abs(y);if(i||(i=v?e_:eB),o||(o=v?e$:eV),g<1){let e=ez(b,g);n=t=>s-Math.exp(-g*b*t)*((m+g*b*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)n=e=>s-Math.exp(-b*e)*(y+(m+b*y)*e);else{let e=b*Math.sqrt(g*g-1);n=t=>{let n=Math.exp(-g*b*t),r=Math.min(e*t,300);return s-n*((m+g*b*y)*Math.sinh(r)+e*y*Math.cosh(r))/e}}let x={calculatedDuration:f&&p||null,next:e=>{let t=n(e);if(f)l.done=e>=p;else{let r=0===e?m:0;g<1&&(r=0===e?N(m):eI(n,e,t));let a=Math.abs(s-t)<=o;l.done=Math.abs(r)<=i&&a}return l.value=l.done?s:t,l},toString:()=>{let e=Math.min(eN(x),2e4),t=ej(t=>x.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return x}function eY({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,p,h=e[0],f={done:!1,value:h},m=n*t,g=h+m,y=void 0===a?g:a(g);y!==g&&(m=y-h);let b=e=>-m*Math.exp(-e/r),v=e=>y+b(e),x=e=>{let t=b(e),n=v(e);f.done=Math.abs(t)<=u,f.value=f.done?y:n},w=e=>{let t;if(t=f.value,void 0!==s&&t<s||void 0!==l&&t>l){var n;d=e,p=eH({keyframes:[f.value,(n=f.value,void 0===s?l:void 0===l||Math.abs(s-n)<Math.abs(l-n)?s:l)],velocity:eI(v,e,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(p||void 0!==d||(t=!0,x(e),w(e)),void 0!==d&&e>=d)?p.next(e-d):(t||x(e),f)}}}eH.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(eN(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,eH);return e.ease=t.ease,e.duration=N(t.duration),e.type="keyframes",e};let eZ=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function eq(e,t,n,r){return e===t&&n===r?D.l:i=>0===i||1===i?i:eZ(function(e,t,n,r,i){let o,a,s=0;do(o=eZ(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a}(i,0,1,e,n),t,r)}let eX=eq(.42,0,1,1),eK=eq(0,0,.58,1),eQ=eq(.42,0,.58,1),eJ=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,e0=e=>t=>1-e(1-t),e1=eq(.33,1.53,.69,.99),e2=e0(e1),e5=eJ(e2),e3=e=>(e*=2)<1?.5*e2(e):.5*(2-Math.pow(2,-10*(e-1))),e9=e=>1-Math.sin(Math.acos(e)),e8=e0(e9),e4=eJ(e9),e6=e=>Array.isArray(e)&&"number"==typeof e[0],e7={linear:D.l,easeIn:eX,easeInOut:eQ,easeOut:eK,circIn:e9,circInOut:e4,circOut:e8,backIn:e2,backInOut:e5,backOut:e1,anticipate:e3},te=e=>{if(e6(e)){B(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return eq(t,n,r,i)}return"string"==typeof e?(B(void 0!==e7[e],`Invalid easing type '${e}'`,"invalid-easing-type"),e7[e]):e},tt=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};function tn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o,a=Array.isArray(r)&&"number"!=typeof r[0]?r.map(te):te(r),s={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(B(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],i=n||x.W.mix||eM,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=O(Array.isArray(t)?t[n]||D.l:t,o)),r.push(o)}return r}(t,r,i),l=s.length,u=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=tt(e[r],e[r+1],n);return s[r](i)};return n?t=>u(j(e[0],e[o-1],t)):u}((i=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=tt(0,t,r);e.push(ek(n,1,i))}}(o=[0],t.length-1),o),i.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||eQ).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let tr=e=>null!==e;function ti(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(tr),a=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}let to={decay:eY,inertia:eY,tween:tn,keyframes:tn,spring:eH};function ta(e){"string"==typeof e.type&&(e.type=to[e.type])}class ts{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)}}let tl=e=>e/100;class tu extends ts{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==k.now()&&this.tick(k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},I.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;ta(e);let{type:t=tn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:a}=e,s=t||tn;s!==tn&&"number"!=typeof a[0]&&(this.mixKeyframes=O(tl,eM(a[0],a[1])),a=[0,100]);let l=s({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=eN(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:p,type:h,onUpdate:f,finalKeyframe:m}=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 g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,v=n;if(c){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(n=1-n,p&&(n-=p/a)):"mirror"===d&&(v=o)),b=j(0,1,n)*a}let x=y?{done:!1,value:u[0]}:v.next(b);i&&(x.value=i(x.value));let{done:w}=x;y||null===s||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&h!==eY&&(x.value=ti(u,this.options,m,this.speed)),f&&f(x.value),k&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=N(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(k.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=eO,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&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,I.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=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)}}let tc=e=>180*e/Math.PI,td=e=>th(tc(Math.atan2(e[1],e[0]))),tp={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:td,rotateZ:td,skewX:e=>tc(Math.atan(e[1])),skewY:e=>tc(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},th=e=>((e%=360)<0&&(e+=360),e),tf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tm=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),tg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tf,scaleY:tm,scale:e=>(tf(e)+tm(e))/2,rotateX:e=>th(tc(Math.atan2(e[6],e[5]))),rotateY:e=>th(tc(Math.atan2(-e[2],e[0]))),rotateZ:td,rotate:td,skewX:e=>tc(Math.atan(e[4])),skewY:e=>tc(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ty(e){return+!!e.includes("scale")}function tb(e,t){let n,r;if(!e||"none"===e)return ty(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=tg,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=tp,r=t}if(!r)return ty(t);let o=n[t],a=r[1].split(",").map(tv);return"function"==typeof o?o(a):a[o]}function tv(e){return parseFloat(e.trim())}let tx=e=>e===G||e===eo,tw=new Set(["x","y","z"]),tk=f.filter(e=>!tw.has(e)),tE={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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})=>tb(t,"x"),y:(e,{transform:t})=>tb(t,"y")};tE.translateX=tE.x,tE.translateY=tE.y;let tS=new Set,tT=!1,tA=!1,tP=!1;function tR(){if(tA){let e=Array.from(tS).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],tk.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),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=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}tA=!1,tT=!1,tS.forEach(e=>e.complete(tP)),tS.clear()}function tC(){tS.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tA=!0)})}class tF{constructor(e,t,n,r,i,o=!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=o}scheduleResolve(){this.state="scheduled",this.isAsync?(tS.add(this),tT||(tT=!0,h.Gt.read(tC),h.Gt.resolveKeyframes(tR))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),tS.delete(this)}cancel(){"scheduled"===this.state&&(tS.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function tL(e){let t;return()=>(void 0===t&&(t=e()),t)}let tD=tL(()=>void 0!==window.ScrollTimeline);var tM=n(8505);let tO={},tj=(i=tL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>tO.linearEasing??i()),tN=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tI={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tN([0,.65,.55,1]),circOut:tN([.55,0,1,.45]),backIn:tN([.31,.01,.66,-.59]),backOut:tN([.33,1.53,.69,.99])};function t_(e){return"function"==typeof e&&"applyToOptions"in e}class tB extends ts{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,B("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return t_(e)&&tj()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?tj()?ej(t,n):"ease-out":e6(t)?tN(t):Array.isArray(t)?t.map(t=>e(t,n)||tI.easeOut):tI[t]}(s,i);Array.isArray(d)&&(c.easing=d),tM.Q.value&&I.waapi++;let p={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};u&&(p.pseudoElement=u);let h=e.animate(c,p);return tM.Q.value&&h.finished.finally(()=>{I.waapi--}),h}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ti(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):n.startsWith("--")?t.style.setProperty(n,e):t.style[n]=e,this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=N(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&tD())?(this.animation.timeline=e,D.l):t(this)}}let t$={anticipate:e3,backInOut:e5,circInOut:e4};class tV extends tB{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in t$&&(e.ease=t$[e.ease])}(e),ta(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new tu({...o,autoplay:!1}),s=N(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}let tz=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ev.test(e)||"0"===e)&&!e.startsWith("url(")),tU=new Set(["opacity","clipPath","filter","transform"]),tW=tL(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tG extends ts{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=k.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:s,motionValue:l,element:u,...c},p=u?.KeyframeResolver||tF;this.keyframeResolver=new p(a,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:o,velocity:a,delay:s,isHandoff:l,onUpdate:u}=n;(this.resolvedAt=k.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=tz(i,t),s=tz(o,t);return _(a===s,`You are trying to animate ${t} from "${i}" to "${o}". "${a?o:i}" is not an animatable value.`,"value-not-animatable"),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||t_(n))&&r)}(e,i,o,a))&&((x.W.instantAnimations||!s)&&u?.(ti(e,n,t)),e[0]=e[e.length-1],n.duration=0,n.type="keyframes",n.repeat=0);let c={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:l}=t.owner.getProps();return tW()&&n&&tU.has(n)&&("transform"!==n||!l)&&!s&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}(c)?new tV({...c,element:c.motionValue.owner.current}):new tu(c);d.finished.then(()=>this.notifyFinished()).catch(D.l),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}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(),tP=!0,tC(),tR(),tP=!1),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()}}let tH=e=>null!==e,tY={type:"spring",stiffness:500,damping:25,restSpeed:10},tZ={type:"keyframes",duration:.8},tq={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tX=(e,t,n,r={},i,o)=>a=>{let s=u(r,e)||{},l=s.delay||r.delay||0,{elapsed:c=0}=r;c-=N(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(s)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?tZ:m.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:tY:tq)(e,d)),d.duration&&(d.duration=N(d.duration)),d.repeatDelay&&(d.repeatDelay=N(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0===d.delay&&(p=!0)),(x.W.instantAnimations||x.W.skipAnimations)&&(p=!0,d.duration=0,d.delay=0),d.allowFlatten=!s.type&&!s.ease,p&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(tH),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return i[o]}(d.keyframes,s);if(void 0!==e)return void h.Gt.update(()=>{d.onUpdate(e),d.onComplete()})}return new tG(d)};function tK(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=t;r&&(o=r);let c=[],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(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let a={delay:n,...u(o||{},t)},l=!1;if(window.MotionHandoffAnimation){let n=e.props[L];if(n){let e=window.MotionHandoffAnimation(n,t,h.Gt);null!==e&&(a.startTime=e,l=!0)}}C(e,t),r.start(tX(t,r,i,e.shouldReduceMotion&&g.has(t)?{type:!1}:a,e,l));let p=r.animation;p&&c.push(p)}return a&&Promise.all(c).then(()=>{h.Gt.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=l(e,t)||{};for(let t in i={...i,...n}){let n=P(i[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,T(n))}}(e,a)})}),c}function tQ(e,t,n={}){let r=l(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(tK(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(tJ).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(tQ(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function tJ(e,t){return e.sortNodePosition(t)}function t0(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}function t1(e){return"string"==typeof e||Array.isArray(e)}let t2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t5=["initial",...t2],t3=t5.length,t9=[...t2].reverse(),t8=t2.length;function t4(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t6(){return{animate:t4(!0),whileInView:t4(),whileHover:t4(),whileTap:t4(),whileDrag:t4(),whileFocus:t4(),exit:t4()}}class t7{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ne extends t7{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>tQ(e,t,n)));else if("string"==typeof t)r=tQ(e,t,n);else{let i="function"==typeof t?l(e,t,n.custom):t;r=Promise.all(tK(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=t6(),r=!0,i=t=>(n,r)=>{let i=l(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(a){let{props:s}=e,u=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<t3;e++){let r=t5[e],i=t.props[r];(t1(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},c=[],d=new Set,p={},h=1/0;for(let t=0;t<t8;t++){var f,m;let l=t9[t],g=n[l],y=void 0!==s[l]?s[l]:u[l],b=t1(y),v=l===a?g.isActive:null;!1===v&&(h=t);let x=y===u[l]&&y!==s[l]&&b;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...p},!g.isActive&&null===v||!y&&!g.prevProp||o(y)||"boolean"==typeof y)continue;let w=(f=g.prevProp,"string"==typeof(m=y)?m!==f:!!Array.isArray(m)&&!t0(m,f)),k=w||l===a&&g.isActive&&!x&&b||t>h&&b,E=!1,S=Array.isArray(y)?y:[y],T=S.reduce(i(l),{});!1===v&&(T={});let{prevResolvedValues:P={}}=g,R={...P,...T},C=t=>{k=!0,d.has(t)&&(E=!0,d.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in R){let t=T[e],n=P[e];if(!p.hasOwnProperty(e))(A(t)&&A(n)?t0(t,n):t===n)?void 0!==t&&d.has(e)?C(e):g.protectedKeys[e]=!0:null!=t?C(e):d.add(e)}g.prevProp=y,g.prevResolvedValues=T,g.isActive&&(p={...p,...T}),r&&e.blockInitialAnimation&&(k=!1);let F=!(x&&w)||E;k&&F&&c.push(...S.map(e=>({animation:e,options:{type:l}})))}if(d.size){let t={};if("boolean"!=typeof s.initial){let n=l(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let g=!!c.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(c):Promise.resolve()}return{animateChanges:a,setActive:function(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=a(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=t6(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();o(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?.()}}let nt=0;class nn extends t7{constructor(){super(...arguments),this.id=nt++}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;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let nr={x:!1,y:!1};function ni(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let no=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function na(e){return{point:{x:e.pageX,y:e.pageY}}}function ns(e,t,n,r){return ni(e,t,e=>no(e)&&n(e,na(e)),r)}function nl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nu(e){return e.max-e.min}function nc(e,t,n,r=.5){e.origin=r,e.originPoint=ek(t.min,t.max,e.origin),e.scale=nu(n)/nu(t),e.translate=ek(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nd(e,t,n,r){nc(e.x,t.x,n.x,r?r.originX:void 0),nc(e.y,t.y,n.y,r?r.originY:void 0)}function np(e,t,n){e.min=n.min+t.min,e.max=e.min+nu(t)}function nh(e,t,n){e.min=t.min-n.min,e.max=e.min+nu(t)}function nf(e,t,n){nh(e.x,t.x,n.x),nh(e.y,t.y,n.y)}let nm=()=>({translate:0,scale:1,origin:0,originPoint:0}),ng=()=>({x:nm(),y:nm()}),ny=()=>({min:0,max:0}),nb=()=>({x:ny(),y:ny()});function nv(e){return[e("x"),e("y")]}function nx(e){return void 0===e||1===e}function nw({scale:e,scaleX:t,scaleY:n}){return!nx(e)||!nx(t)||!nx(n)}function nk(e){return nw(e)||nE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nE(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function nS(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function nT(e,t=0,n=1,r,i){e.min=nS(e.min,t,n,r,i),e.max=nS(e.max,t,n,r,i)}function nA(e,{x:t,y:n}){nT(e.x,t.translate,t.scale,t.originPoint),nT(e.y,n.translate,n.scale,n.originPoint)}function nP(e,t){e.min=e.min+t,e.max=e.max+t}function nR(e,t,n,r,i=.5){let o=ek(e.min,e.max,i);nT(e,t,n,o,r)}function nC(e,t){nR(e.x,t.x,t.scaleX,t.scale,t.originX),nR(e.y,t.y,t.scaleY,t.scale,t.originY)}function nF(e,t){return nl(function(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}}(e.getBoundingClientRect(),t))}let nL=({current:e})=>e?e.ownerDocument.defaultView:null;function nD(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let nM=(e,t)=>Math.abs(e-t);class nO{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=nI(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(nM(e.x,t.x)**2+nM(e.y,t.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:a}=h.uv;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nj(t,this.transformPagePoint),h.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nI("pointercancel"===e.type?this.lastMoveEventInfo:nj(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!no(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const o=nj(na(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=h.uv;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,nI(o,this.history)),this.removeListeners=O(ns(this.contextWindow,"pointermove",this.handlePointerMove),ns(this.contextWindow,"pointerup",this.handlePointerUp),ns(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,h.WG)(this.updatePoint)}}function nj(e,t){return t?{point:t(e.point)}:e}function nN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nI({point:e},t){return{point:e,delta:nN(e,n_(t)),offset:nN(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=n_(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>N(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function n_(e){return e[e.length-1]}function nB(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function n$(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 nV(e,t,n){return{min:nz(e,t),max:nz(e,n)}}function nz(e,t){return"number"==typeof e?e:e[t]||0}let nU=new WeakMap;class nW{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=nb(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(na(e).point)},i=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(nr[e])return null;else return nr[e]=!0,()=>{nr[e]=!1};return nr.x||nr.y?null:(nr.x=nr.y=!0,()=>{nr.x=nr.y=!1})}(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nv(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ei.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=nu(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&h.Gt.postRender(()=>i(e,t)),C(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},o=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},a=(e,t)=>this.stop(e,t),s=()=>nv(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new nO(e,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:nL(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&h.Gt.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!nG(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?ek(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?ek(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}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&&nD(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:nB(e.x,n,i),y:nB(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nV(e,"left","right"),y:nV(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&nv(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nD(t))return!1;let r=t.current;B(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=nF(e,n),{scroll:i}=t;return i&&(nP(r.x,i.offset.x),nP(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:n$(e.x,o.x),y:n$(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=nl(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(nv(a=>{if(!nG(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return C(this.visualElement,e),n.start(tX(e,n,0,t,this.visualElement,!1))}stopAnimation(){nv(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nv(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}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){nv(t=>{let{drag:n}=this.getProps();if(!nG(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-ek(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nD(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nv(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let o,a,s,l=t.get();r[e]=(n={min:l,max:l},i=this.constraints[e],o=.5,a=nu(n),(s=nu(i))>a?o=tt(i.min,i.max-a,n.min):a>s&&(o=tt(n.min,n.max-s,i.min)),j(0,1,o))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nv(t=>{if(!nG(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(ek(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;nU.set(this.visualElement,this);let e=ns(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();nD(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),h.Gt.read(t);let i=ni(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nv(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function nG(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class nH extends t7{constructor(e){super(e),this.removeGroupControls=D.l,this.removeListeners=D.l,this.controls=new nW(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||D.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let nY=e=>(t,n)=>{e&&h.Gt.postRender(()=>e(t,n))};class nZ extends t7{constructor(){super(...arguments),this.removePointerDownListener=D.l}onPointerDown(e){this.session=new nO(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nL(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:nY(e),onStart:nY(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&h.Gt.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ns(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nq=n(5155);let{schedule:nX}=(0,n(9534).I)(queueMicrotask,!1);var nK=n(2115),nQ=n(3280),nJ=n(4802);let n0=(0,nK.createContext)({}),n1={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function n2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let n5={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!eo.test(e))return e;else e=parseFloat(e);let n=n2(e,t.target.x),r=n2(e,t.target.y);return`${n}% ${r}%`}},n3={};class n9 extends nK.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;for(let e in n4)n3[e]=n4[e],V(e)&&(n3[e].isCSSVariable=!0);i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),n1.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||h.Gt.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),nX.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;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 n8(e){let[t,n]=(0,nQ.xQ)(),r=(0,nK.useContext)(nJ.L);return(0,nq.jsx)(n9,{...e,layoutGroup:r,switchLayoutGroup:(0,nK.useContext)(n0),isPresent:t,safeToRemove:n})}let n4={borderRadius:{...n5,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n5,borderTopRightRadius:n5,borderBottomLeftRadius:n5,borderBottomRightRadius:n5,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=ev.parse(e);if(r.length>5)return e;let i=ev.createTransformer(e),o=+("number"!=typeof r[0]),a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let l=ek(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}},n6=(e,t)=>e.depth-t.depth;class n7{constructor(){this.children=[],this.isDirty=!1}add(e){y(this.children,e),this.isDirty=!0}remove(e){b(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(n6),this.isDirty=!1,this.children.forEach(e)}}function re(e){let t=R(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let rt=["TopLeft","TopRight","BottomLeft","BottomRight"],rn=rt.length,rr=e=>"string"==typeof e?parseFloat(e):e,ri=e=>"number"==typeof e||eo.test(e);function ro(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let ra=rl(0,.5,e8),rs=rl(.5,.95,D.l);function rl(e,t,n){return r=>r<e?0:r>t?1:n(tt(e,t,r))}function ru(e,t){e.min=t.min,e.max=t.max}function rc(e,t){ru(e.x,t.x),ru(e.y,t.y)}function rd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rp(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function rh(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(ei.test(t)&&(t=parseFloat(t),t=ek(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=ek(o.min,o.max,r);e===o&&(s-=t),e.min=rp(e.min,t,n,s,i),e.max=rp(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let rf=["x","scaleX","originX"],rm=["y","scaleY","originY"];function rg(e,t,n,r){rh(e.x,t,rf,n?n.x:void 0,r?r.x:void 0),rh(e.y,t,rm,n?n.y:void 0,r?r.y:void 0)}function ry(e){return 0===e.translate&&1===e.scale}function rb(e){return ry(e.x)&&ry(e.y)}function rv(e,t){return e.min===t.min&&e.max===t.max}function rx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rw(e,t){return rx(e.x,t.x)&&rx(e.y,t.y)}function rk(e){return nu(e.x)/nu(e.y)}function rE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rS{constructor(){this.members=[]}add(e){y(this.members,e),e.scheduleRender()}remove(e){if(b(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){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rT={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rA=["","X","Y","Z"],rP={visibility:"hidden"},rR=0;function rC(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function rF({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=rR++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tM.Q.value&&(rT.nodes=rT.calculatedTargetDeltas=rT.calculatedProjections=0),this.nodes.forEach(rM),this.nodes.forEach(r$),this.nodes.forEach(rV),this.nodes.forEach(rO),tM.Q.addProjectionMetrics&&tM.Q.addProjectionMetrics(rT)},this.resolvedRelativeTargetAt=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 n7)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new v),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,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{let e,t;this.root.updateBlockedByResize=!0,n&&n(),e=k.now(),t=({timestamp:n})=>{let i=n-e;i>=250&&((0,h.WG)(t),r(i-250))},h.Gt.setup(t,!0),n=()=>(0,h.WG)(t),n1.hasAnimatedSinceResize&&(n1.hasAnimatedSinceResize=!1,this.nodes.forEach(rB))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||rY,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!rw(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);let t={...u(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||rB(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,(0,h.WG)(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(rz),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&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[L];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",h.Gt,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(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,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!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()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rN);return}this.isUpdating||this.nodes.forEach(rI),this.isUpdating=!1,this.nodes.forEach(r_),this.nodes.forEach(rL),this.nodes.forEach(rD),this.clearAllSnapshots();let e=k.now();h.uv.delta=j(0,1e3/60,e-h.uv.timestamp),h.uv.timestamp=e,h.uv.isProcessing=!0,h.PP.update.process(h.uv),h.PP.preRender.process(h.uv),h.PP.render.process(h.uv),h.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nX.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rj),this.sharedNodes.forEach(rU)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,h.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){h.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nu(this.snapshot.measuredBox.x)||nu(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.layoutCorrected=nb(),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){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&&!rb(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||nk(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),rX((t=r).x),rX(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return nb();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rQ))){let{scroll:e}=this.root;e&&(nP(t.x,e.offset.x),nP(t.y,e.offset.y))}return t}removeElementScroll(e){let t=nb();if(rc(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&rc(t,e),nP(t.x,i.offset.x),nP(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=nb();rc(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nC(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nk(r.latestValues)&&nC(n,r.latestValues)}return nk(this.latestValues)&&nC(n,this.latestValues),n}removeTransform(e){let t=nb();rc(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!nk(n.latestValues))continue;nw(n.latestValues)&&n.updateSnapshot();let r=nb();rc(r,n.measurePageBox()),rg(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return nk(this.latestValues)&&rg(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||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!==h.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(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)){if(this.resolvedRelativeTargetAt=h.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nb(),this.relativeTargetOrigin=nb(),nf(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=nb(),this.targetWithTransforms=nb()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,s;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,s=this.relativeParent.target,np(o.x,a.x,s.x),np(o.y,a.y,s.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rc(this.target,this.layout.layoutBox),nA(this.target,this.targetDelta)):rc(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nb(),this.relativeTargetOrigin=nb(),nf(this.relativeTargetOrigin,this.target,e.target),rc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tM.Q.value&&rT.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nw(this.parent.latestValues)||nE(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}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===h.uv.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;rc(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,o,a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nC(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nA(e,o)),r&&nk(i.latestValues)&&nC(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=nb());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rd(this.prevProjectionDelta.x,this.projectionDelta.x),rd(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nd(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&rE(this.projectionDelta.x,this.prevProjectionDelta.x)&&rE(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),tM.Q.value&&rT.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=ng(),this.projectionDelta=ng(),this.projectionDeltaWithTransform=ng()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},a=ng();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=nb(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(rH));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(rW(a.x,e.x,r),rW(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,h,f,m,g;nf(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,f=this.relativeTargetOrigin,m=s,g=r,rG(h.x,f.x,m.x,g),rG(h.y,f.y,m.y,g),n&&(u=this.relativeTarget,p=n,rv(u.x,p.x)&&rv(u.y,p.y))&&(this.isProjectionDirty=!1),n||(n=nb()),rc(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=ek(0,n.opacity??1,ra(r)),e.opacityExit=ek(t.opacity??1,0,rs(r))):o&&(e.opacity=ek(t.opacity??1,n.opacity??1,r));for(let i=0;i<rn;i++){let o=`border${rt[i]}Radius`,a=ro(t,o),s=ro(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||ri(a)===ri(s)?(e[o]=Math.max(ek(rr(a),rr(s),r),0),(ei.test(s)||ei.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=ek(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,h.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=h.Gt.update(()=>{var t;let n;n1.hasAnimatedSinceResize=!0,I.layout++,this.currentAnimation=(t={...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{I.layout--},onComplete:()=>{I.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(n=R(0)?0:T(0)).start(tX("",n,1e3,t)),n.animation),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(1e3),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&&rK(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||nb();let t=nu(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=nu(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rc(t,n),nC(t,i),nd(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rS),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}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)}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&&rC("z",e,r,this.animationValues);for(let t=0;t<rA.length;t++)rC(`rotate${rA[t]}`,e,r,this.animationValues),rC(`skew${rA[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return rP;let t={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity="",t.pointerEvents=re(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none",t;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=re(e?.pointerEvents)||""),this.hasProjected&&!nk(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}let i=r.animationValues||r.latestValues;this.applyTransformsToTarget(),t.transform=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=n?.z||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),n&&(t.transform=n(i,t.transform));let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,r.animationValues?t.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:t.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,n3){if(void 0===i[e])continue;let{correct:n,applyTo:o,isCSSVariable:a}=n3[e],s="none"===t.transform?i[e]:n(i[e],r);if(o){let e=o.length;for(let n=0;n<e;n++)t[o[n]]=s}else a?this.options.visualElement.renderState.vars[e]=s:t[e]=s}return this.options.layoutId&&(t.pointerEvents=r===this?re(e?.pointerEvents)||"":"none"),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(rN),this.root.sharedNodes.clear()}}}function rL(e){e.updateLayout()}function rD(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,o=t.source!==e.layout.source;"size"===i?nv(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=nu(r);r.min=n[e].min,r.max=r.min+i}):rK(i,t.layoutBox,n)&&nv(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],a=nu(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=ng();nd(a,n,t.layoutBox);let s=ng();o?nd(s,e.applyTransform(r,!0),t.measuredBox):nd(s,n,t.layoutBox);let l=!rb(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=nb();nf(a,t.layoutBox,i.layoutBox);let s=nb();nf(s,n,o.layoutBox),rw(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rM(e){tM.Q.value&&rT.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rj(e){e.clearSnapshot()}function rN(e){e.clearMeasurements()}function rI(e){e.isLayoutDirty=!1}function r_(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rB(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r$(e){e.resolveTargetDelta()}function rV(e){e.calcProjection()}function rz(e){e.resetSkewAndRotation()}function rU(e){e.removeLeadSnapshot()}function rW(e,t,n){e.translate=ek(t.translate,0,n),e.scale=ek(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rG(e,t,n,r){e.min=ek(t.min,n.min,r),e.max=ek(t.max,n.max,r)}function rH(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rY={duration:.45,ease:[.4,0,.1,1]},rZ=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rq=rZ("applewebkit/")&&!rZ("chrome/")?Math.round:D.l;function rX(e){e.min=rq(e.min),e.max=rq(e.max)}function rK(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rk(t)-rk(n)))}function rQ(e){return e!==e.root&&e.scroll?.wasRoot}let rJ=rF({attachResizeListener:(e,t)=>ni(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),r0={current:void 0},r1=rF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!r0.current){let e=new rJ({});e.mount(window),e.setOptions({layoutScroll:!0}),r0.current=e}return r0.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function r2(e,t){let n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,n=(void 0)??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function r5(e){return!("touch"===e.pointerType||nr.x||nr.y)}function r3(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&h.Gt.postRender(()=>i(t,na(t)))}class r9 extends t7{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=r2(e,n),a=e=>{if(!r5(e))return;let{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;let o=e=>{r5(e)&&(r(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,i)};return r.forEach(e=>{e.addEventListener("pointerenter",a,i)}),o}(e,(e,t)=>(r3(this.node,t,"Start"),e=>r3(this.node,e,"End"))))}unmount(){}}class r8 extends t7{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){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=O(ni(this.node.current,"focus",()=>this.onFocus()),ni(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let r4=(e,t)=>!!t&&(e===t||r4(e,t.parentElement)),r6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),r7=new WeakSet;function ie(e){return t=>{"Enter"===t.key&&e(t)}}function it(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function ir(e){return no(e)&&!(nr.x||nr.y)}function ii(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&h.Gt.postRender(()=>i(t,na(t)))}class io extends t7{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=r2(e,n),a=e=>{let r=e.currentTarget;if(!ir(e))return;r7.add(r);let o=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),r7.has(r)&&r7.delete(r),ir(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||r4(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),"object"==typeof e&&null!==e&&"offsetHeight"in e&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=ie(()=>{if(r7.has(n))return;it(n,"down");let e=ie(()=>{it(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>it(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),r6.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(ii(this.node,t,"Start"),(e,{success:t})=>ii(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let ia=new WeakMap,is=new WeakMap,il=e=>{let t=ia.get(e.target);t&&t(e)},iu=e=>{e.forEach(il)},ic={some:0,all:1};class id extends t7{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:o="some",once:a}=n,s={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof o?o:ic[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!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(),i=t?n:r;i&&i(e)};return e=this.node.current,t=function({root:e,...t}){let n=e||document;is.has(n)||is.set(n,{});let r=is.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(iu,{root:e,...t})),r[i]}(s),ia.set(e,l),t.observe(e),()=>{ia.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let ip=(0,nK.createContext)({strict:!1});var ih=n(3621);let im=(0,nK.createContext)({});function ig(e){return o(e.animate)||t5.some(t=>t1(e[t]))}function iy(e){return!!(ig(e)||e.variants)}function ib(e){return Array.isArray(e)?e.join(" "):e}var iv=n(2099);let ix={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"]},iw={};for(let e in ix)iw[e]={isEnabled:t=>ix[e].some(e=>!!t[e])};let ik=Symbol.for("motionComponentSymbol");var iE=n(6324),iS=n(6047);function iT(e,{layout:t,layoutId:n}){return m.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!n3[e]||"opacity"===e)}let iA=(e,t)=>t&&"number"==typeof e?t.transform(e):e,iP={...G,transform:Math.round},iR={borderWidth:eo,borderTopWidth:eo,borderRightWidth:eo,borderBottomWidth:eo,borderLeftWidth:eo,borderRadius:eo,radius:eo,borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomRightRadius:eo,borderBottomLeftRadius:eo,width:eo,maxWidth:eo,height:eo,maxHeight:eo,top:eo,right:eo,bottom:eo,left:eo,padding:eo,paddingTop:eo,paddingRight:eo,paddingBottom:eo,paddingLeft:eo,margin:eo,marginTop:eo,marginRight:eo,marginBottom:eo,marginLeft:eo,backgroundPositionX:eo,backgroundPositionY:eo,rotate:er,rotateX:er,rotateY:er,rotateZ:er,scale:Y,scaleX:Y,scaleY:Y,scaleZ:Y,skew:er,skewX:er,skewY:er,distance:eo,translateX:eo,translateY:eo,translateZ:eo,x:eo,y:eo,z:eo,perspective:eo,transformPerspective:eo,opacity:H,originX:el,originY:el,originZ:eo,zIndex:iP,fillOpacity:H,strokeOpacity:H,numOctaves:iP},iC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iF=f.length;function iL(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,a=!1,s=!1;for(let e in t){let n=t[e];if(m.has(e)){a=!0;continue}if(V(e)){i[e]=n;continue}{let t=iA(n,iR[e]);e.startsWith("origin")?(s=!0,o[e]=t):r[e]=t}}if(!t.transform&&(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<iF;o++){let a=f[o],s=e[a];if(void 0===s)continue;let l=!0;if(!(l="number"==typeof s?s===+!!a.startsWith("scale"):0===parseFloat(s))||n){let e=iA(s,iR[a]);if(!l){i=!1;let t=iC[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}let iD=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iM(e,t,n){for(let r in t)R(t[r])||iT(r,n)||(e[r]=t[r])}let iO=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","ignoreStrict","viewport"]);function ij(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iO.has(e)}let iN=e=>!ij(e);try{(c=require("@emotion/is-prop-valid").default)&&(iN=e=>e.startsWith("on")?!ij(e):c(e))}catch{}let iI=["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 i_(e){if("string"!=typeof e||e.includes("-"));else if(iI.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let iB={offset:"stroke-dashoffset",array:"stroke-dasharray"},i$={offset:"strokeDashoffset",array:"strokeDasharray"};function iV(e,t,n){return"string"==typeof e?e:eo.transform(t+n*e)}function iz(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d){let p,h;if(iL(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:m,dimensions:g}=e;f.transform&&(g&&(m.transform=f.transform),delete f.transform),g&&(void 0!==i||void 0!==o||m.transform)&&(p=iV(void 0!==i?i:.5,g.x,g.width),h=iV(void 0!==o?o:.5,g.y,g.height),m.transformOrigin=`${p} ${h}`),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?iB:i$;e[o.offset]=eo.transform(-r);let a=eo.transform(t),s=eo.transform(n);e[o.array]=`${a} ${s}`}(f,a,s,l,!1)}let iU=()=>({...iD(),attrs:{}}),iW=e=>"string"==typeof e&&"svg"===e.toLowerCase();var iG=n(2990);let iH=e=>(t,n)=>{let r=(0,nK.useContext)(im),i=(0,nK.useContext)(iE.t),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){let l={latestValues:function(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=re(a[e]);let{initial:l,animate:u}=e,c=ig(e),d=iy(e);t&&d&&!c&&!1!==e.inherit&&(void 0===l&&(l=t.initial),void 0===u&&(u=t.animate));let p=!!n&&!1===n.initial,h=(p=p||!1===l)?u:l;if(h&&"boolean"!=typeof h&&!o(h)){let t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){let r=s(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=p?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(r,i,a,e),renderState:t()};return n&&(l.onMount=e=>n({props:r,current:e,...l}),l.onUpdate=e=>n(e)),l})(e,t,r,i);return n?a():(0,iG.M)(a)};function iY(e,t,n){let{style:r}=e,i={};for(let o in r)(R(r[o])||t.style&&R(t.style[o])||iT(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}let iZ={useVisualState:iH({scrapeMotionValuesFromProps:iY,createRenderState:iD})};function iq(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}function iX(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let iK=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"]);function iQ(e,t,n,r){for(let n in iX(e,t,void 0,r),t.attrs)e.setAttribute(iK.has(n)?n:F(n),t.attrs[n])}function iJ(e,t,n){let r=iY(e,t,n);for(let n in e)(R(e[n])||R(t[n]))&&(r[-1!==f.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}let i0=["x","y","width","height","cx","cy","r"],i1={useVisualState:iH({scrapeMotionValuesFromProps:iJ,createRenderState:iU,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(let e in i)if(m.has(e)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let n=0;n<i0.length;n++){let r=i0[n];e[r]!==t[r]&&(a=!0)}a&&h.Gt.read(()=>{iq(n,r),h.Gt.render(()=>{iz(r,i,iW(n.tagName),e.transformTemplate),iQ(n,r)})})}})},i2=e=>t=>t.test(e),i5=[G,eo,ei,er,es,ea,{test:e=>"auto"===e,parse:e=>e}],i3=e=>i5.find(i2(e)),i9=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,i8=new Set(["brightness","contrast","saturate","opacity"]);function i4(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(q)||[];if(!r)return e;let i=n.replace(r,""),o=+!!i8.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let i6=/\b([a-z-]*)\(.*?\)/gu,i7={...ev,getAnimatableNone:e=>{let t=e.match(i6);return t?t.map(i4).join(" "):e}},oe={...iR,color:ec,backgroundColor:ec,outlineColor:ec,fill:ec,stroke:ec,borderColor:ec,borderTopColor:ec,borderRightColor:ec,borderBottomColor:ec,borderLeftColor:ec,filter:i7,WebkitFilter:i7},ot=e=>oe[e];function on(e,t){let n=ot(e);return n!==i7&&(n=ev),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let or=new Set(["auto","none","0"]);class oi extends tF{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("string"==typeof r&&U(r=r.trim())){let i=function e(t,n,r=1){B(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(e){let t=i9.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return U(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!g.has(n)||2!==e.length)return;let[r,i]=e,o=i3(r),a=i3(i);if(o!==a)if(tx(o)&&tx(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else tE[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!or.has(t)&&em(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=on(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tE[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&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,o=n[i];n[i]=tE[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let oo=[...i5,ec,ev],oa={current:null},os={current:!1},ol=new WeakMap,ou=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class oc{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tF,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=k.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,h.Gt.render(this.render,!1,!0))};const{latestValues:s,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=ig(t),this.isVariantNode=iy(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==s[e]&&R(t)&&t.set(s[e],!1)}}mount(e){this.current=e,ol.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)),os.current||function(){if(os.current=!0,iv.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>oa.current=e.matches;e.addListener(t),t()}else oa.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||oa.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,h.WG)(this.notifyUpdate),(0,h.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),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}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=m.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&h.Gt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),o(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in iw){let t=iw[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):nb()}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<ou.length;t++){let n=ou[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=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(R(i))e.addValue(r,i);else if(R(o))e.addValue(r,T(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,T(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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 void 0===n&&void 0!==t&&(n=T(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,i;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let r;r=n,!oo.find(i2(r))&&ev.test(t)&&(n=on(e,t))}this.setBaseTarget(e,R(n)?n.get():n)}return R(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=s(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||R(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class od extends oc{constructor(){super(...arguments),this.KeyframeResolver=oi}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[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;R(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class op extends od{constructor(){super(...arguments),this.type="html",this.renderInstance=iX}readValueFromInstance(e,t){if(m.has(t))return((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return tb(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(V(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nF(e,t)}build(e,t,n){iL(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return iY(e,t,n)}}class oh extends od{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nb,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&iq(this.current,this.renderState)}}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(m.has(t)){let e=ot(t);return e&&e.default||0}return t=iK.has(t)?t:F(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return iJ(e,t,n)}onBindTransform(){this.current&&!this.renderState.dimensions&&h.Gt.postRender(this.updateDimensions)}build(e,t,n){iz(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){iQ(e,t,n,r)}mount(e){this.isSVGTag=iW(e.tagName),super.mount(e)}}let of=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}((d={animation:{Feature:ne},exit:{Feature:nn},inView:{Feature:id},tap:{Feature:io},focus:{Feature:r8},hover:{Feature:r9},pan:{Feature:nZ},drag:{Feature:nH,ProjectionNode:r1,MeasureLayout:n8},layout:{ProjectionNode:r1,MeasureLayout:n8}},p=(e,t)=>i_(e)?new oh(t):new op(t,{allowProjection:e!==nK.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function o(e,o){var a;let s,l={...(0,nK.useContext)(ih.Q),...e,layoutId:function({layoutId:e}){let t=(0,nK.useContext)(nJ.L).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:u}=l,c=function(e){let{initial:t,animate:n}=function(e,t){if(ig(e)){let{initial:t,animate:n}=e;return{initial:!1===t||t1(t)?t:void 0,animate:t1(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,nK.useContext)(im));return(0,nK.useMemo)(()=>({initial:t,animate:n}),[ib(t),ib(n)])}(e),d=r(e,u);if(!u&&iv.B){(0,nK.useContext)(ip).strict;let e=function(e){let{drag:t,layout:n}=iw;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);s=e.MeasureLayout,c.visualElement=function(e,t,n,r,i){let{visualElement:o}=(0,nK.useContext)(im),a=(0,nK.useContext)(ip),s=(0,nK.useContext)(iE.t),l=(0,nK.useContext)(ih.Q).reducedMotion,u=(0,nK.useRef)(null);r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));let c=u.current,d=(0,nK.useContext)(n0);c&&!c.projection&&i&&("html"===c.type||"svg"===c.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&nD(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(u.current,n,i,d);let p=(0,nK.useRef)(!1);(0,nK.useInsertionEffect)(()=>{c&&p.current&&c.update(n,s)});let h=n[L],f=(0,nK.useRef)(!!h&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return(0,iS.E)(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),nX.render(c.render),f.current&&c.animationState&&c.animationState.animateChanges())}),(0,nK.useEffect)(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),f.current=!1))}),c}(i,d,l,t,e.ProjectionNode)}return(0,nq.jsxs)(im.Provider,{value:c,children:[s&&c.visualElement?(0,nq.jsx)(s,{visualElement:c.visualElement,...l}):null,n(i,e,(a=c.visualElement,(0,nK.useCallback)(e=>{e&&d.onMount&&d.onMount(e),a&&(e?a.mount(e):a.unmount()),o&&("function"==typeof o?o(e):nD(o)&&(o.current=e))},[a])),d,u,c.visualElement)]})}e&&function(e){for(let t in e)iw[t]={...iw[t],...e[t]}}(e),o.displayName=`motion.${"string"==typeof i?i:`create(${i.displayName??i.name??""})`}`;let a=(0,nK.forwardRef)(o);return a[ik]=i,a}({...i_(e)?i1:iZ,preloadedFeatures:d,useRender:function(e=!1){return(t,n,r,{latestValues:i},o)=>{let a=(i_(t)?function(e,t,n,r){let i=(0,nK.useMemo)(()=>{let n=iU();return iz(n,t,iW(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};iM(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},o=(n=e.style||{},iM(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,nK.useMemo)(()=>{let n=iD();return iL(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i})(n,i,o,t),s=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(iN(i)||!0===n&&ij(i)||!t&&!ij(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),l=t!==nK.Fragment?{...s,...a,ref:r}:{},{children:u}=n,c=(0,nK.useMemo)(()=>R(u)?u.get():u,[u]);return(0,nK.createElement)(t,{...l,children:c})}}(t),createVisualElement:p,Component:e})}))},2639:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(2115),i=n(7650),o=n(1268),a=n(9967),s=n(5155),l=r.forwardRef((e,t)=>{let{container:n,...l}=e,[u,c]=r.useState(!1);(0,a.N)(()=>c(!0),[]);let d=n||u&&globalThis?.document?.body;return d?i.createPortal((0,s.jsx)(o.sG.div,{...l,ref:t}),d):null});l.displayName="Portal"},2990:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(2115);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},3105:(e,t,n)=>{n.d(t,{DX:()=>s,Dc:()=>u,TL:()=>a,xV:()=>c});var r=n(2115),i=n(9528),o=n(5155);function a(e){var t;let n,a=(t=e,(n=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var a;let e,s,l=(a=n,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,i.t)(t,l):l),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null})).displayName=`${t}.SlotClone`,n),s=r.forwardRef((e,t)=>{let{children:n,...i}=e,s=r.Children.toArray(n),l=s.find(d);if(l){let e=l.props.children,n=s.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(a,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,o.jsx)(a,{...i,ref:t,children:n})});return s.displayName=`${e}.Slot`,s}var s=a("Slot"),l=Symbol("radix.slottable");function u(e){let t=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=l,t}var c=u("Slottable");function d(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},3280:(e,t,n)=>{n.d(t,{xQ:()=>o});var r=n(2115),i=n(6324);function o(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:a,register:s}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return s(l)},[e]);let u=(0,r.useCallback)(()=>e&&a&&a(l),[l,a,e]);return!n&&a?[!1,u]:[!0]}},3314:(e,t,n)=>{let r,i,o,a,s;n.d(t,{f4:()=>eb});var l,u,c,d,p,h,f,m,g,y,b,v,x,w,k,E,S,T,A=n(2115),P=n(7227),R=Object.create,C=Object.defineProperty,F=Object.defineProperties,L=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertyNames,O=Object.getOwnPropertySymbols,j=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,_=(e,t,n)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))N.call(t,n)&&_(e,n,t[n]);if(O)for(var n of O(t))I.call(t,n)&&_(e,n,t[n]);return e},$=(e,t)=>{var n={};for(var r in e)N.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&O)for(var r of O(e))0>t.indexOf(r)&&I.call(e,r)&&(n[r]=e[r]);return n},V=(s=null!=(o=(r={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var i,o;switch(n=n||{},r.util.type(t)){case"Object":if(n[o=r.util.objId(t)])return n[o];for(var a in i={},n[o]=i,t)t.hasOwnProperty(a)&&(i[a]=e(t[a],n));return i;case"Array":if(n[o=r.util.objId(t)])return n[o];return i=[],n[o]=i,t.forEach(function(t,r){i[r]=e(t,n)}),i;default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var i in t)n[i]=t[i];return n},insertBefore:function(e,t,n,i){var o=(i=i||r.languages)[e],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=o[s])}var u=i[e];return i[e]=a,r.languages.DFS(r.languages,function(t,n){n===u&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,i,o){o=o||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],i||s);var l=t[s],u=r.util.type(l);"Object"!==u||o[a(l)]?"Array"!==u||o[a(l)]||(o[a(l)]=!0,e(l,n,s,o)):(o[a(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",o),!o.grammar)throw Error('The language "'+o.language+'" has no grammar.');return o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),i.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var l in n)t[l]=n[l];delete t.rest}var u=new a;return s(u,u.head,e),function e(t,n,a,l,u,c){for(var d in a)if(a.hasOwnProperty(d)&&a[d]){var p=a[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(c&&c.cause==d+","+h)return;var f=p[h],m=f.inside,g=!!f.lookbehind,y=!!f.greedy,b=f.alias;if(y&&!f.pattern.global){var v=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,v+"g")}for(var x=f.pattern||f,w=l.next,k=u;w!==n.tail&&(!c||!(k>=c.reach));k+=w.value.length,w=w.next){var E,S=w.value;if(n.length>t.length)return;if(!(S instanceof i)){var T=1;if(y){if(!(E=o(x,k,t,g))||E.index>=t.length)break;var A=E.index,P=E.index+E[0].length,R=k;for(R+=w.value.length;A>=R;)R+=(w=w.next).value.length;if(R-=w.value.length,k=R,w.value instanceof i)continue;for(var C=w;C!==n.tail&&(R<P||"string"==typeof C.value);C=C.next)T++,R+=C.value.length;T--,S=t.slice(k,R),E.index-=k}else if(!(E=o(x,0,S,g)))continue;var A=E.index,F=E[0],L=S.slice(0,A),D=S.slice(A+F.length),M=k+S.length;c&&M>c.reach&&(c.reach=M);var O=w.prev;if(L&&(O=s(n,O,L),k+=L.length),function(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}(n,O,T),w=s(n,O,new i(d,m?r.tokenize(F,m):F,b,F)),D&&s(n,w,D),T>1){var j={cause:d+","+h,reach:M};e(t,n,a,w.prev,k,j),c&&j.reach>c.reach&&(c.reach=j.reach)}}}}}}(e,u,t,u.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(u)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var i,o=0;i=n[o++];)i(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function a(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}return i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var i="";return t.forEach(function(t){i+=e(t,n)}),i}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),r.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},r}();t.exports=n,n.default=n}},function(){return i||(0,r[M(r)[0]])((i={exports:{}}).exports,i),i.exports})())?R(j(o)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of M(t))N.call(e,i)||i===n||C(e,i,{get:()=>t[i],enumerable:!(r=L(t,i))||r.enumerable});return e})(!a&&o&&o.__esModule?s:C(s,"default",{value:o,enumerable:!0}),o));V.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},V.languages.markup.tag.inside["attr-value"].inside.entity=V.languages.markup.entity,V.languages.markup.doctype.inside["internal-subset"].inside=V.languages.markup,V.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(V.languages.markup.tag,"addInlined",{value:function(e,t){var n={},n=(n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:V.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}),t=(n["language-"+t]={pattern:/[\s\S]+/,inside:V.languages[t]},{});t[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},V.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(V.languages.markup.tag,"addAttribute",{value:function(e,t){V.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:V.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),V.languages.html=V.languages.markup,V.languages.mathml=V.languages.markup,V.languages.svg=V.languages.markup,V.languages.xml=V.languages.extend("markup",{}),V.languages.ssml=V.languages.xml,V.languages.atom=V.languages.xml,V.languages.rss=V.languages.xml,l={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},c=RegExp((c="(?:[^\\\\-]|"+(u=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")")+"-"+c),d={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},V.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:c,inside:{escape:u,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":l,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:u}},"special-escape":l,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":d}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:u,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":d}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},V.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},V.languages.javascript=V.languages.extend("clike",{"class-name":[V.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),V.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,V.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:V.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:V.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:V.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:V.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:V.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),V.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:V.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),V.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),V.languages.markup&&(V.languages.markup.tag.addInlined("script","javascript"),V.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),V.languages.js=V.languages.javascript,V.languages.actionscript=V.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),V.languages.actionscript["class-name"].alias="function",delete V.languages.actionscript.parameter,delete V.languages.actionscript["literal-property"],V.languages.markup&&V.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:V.languages.markup}}),p=/#(?!\{).+/,h={pattern:/#\{[^}]+\}/,alias:"variable"},V.languages.coffeescript=V.languages.extend("javascript",{comment:p,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:h}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),V.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:p,interpolation:h}}}),V.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:V.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:h}}]}),V.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete V.languages.coffeescript["template-string"],V.languages.coffee=V.languages.coffeescript,Object.defineProperty(f=V.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/},"addSupport",{value:function(e,t){(e="string"==typeof e?[e]:e).forEach(function(e){var n=function(e){e.inside||(e.inside={}),e.inside.rest=t},r="doc-comment";if(i=V.languages[e]){var i,o=i[r];if((o=o||(i=V.languages.insertBefore(e,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[r])instanceof RegExp&&(o=i[r]={pattern:o}),Array.isArray(o))for(var a=0,s=o.length;a<s;a++)o[a]instanceof RegExp&&(o[a]={pattern:o[a]}),n(o[a]);else n(o)}})}}),f.addSupport(["java","javascript","php"],f),m=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,V.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+m.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+m.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+m.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+m.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:m,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},V.languages.css.atrule.inside.rest=V.languages.css,(m=V.languages.markup)&&(m.tag.addInlined("style","css"),m.tag.addAttribute("style","css")),g=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,V.languages.css.selector={pattern:V.languages.css.selector.pattern,lookbehind:!0,inside:g={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+g.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[g,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},V.languages.css.atrule.inside["selector-function-argument"].inside=g,V.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),g={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},y={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},V.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:g,number:y,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:g,number:y}),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){return t=(t||"").replace(/m/g,"")+"m",RegExp(/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return e}),t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return"(?:"+i+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(o),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(V),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var i,o=t[n];"code"!==o.type?e(o.content):(i=o.content[1],o=o.content[3],i&&o&&"code-language"===i.type&&"code-block"===o.type&&"string"==typeof i.content&&(i=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),i="language-"+(i=(/[a-z][\w-]*/i.exec(i)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,i]:o.alias.push(i):o.alias=[i]))}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n,r="",i=0,o=t.classes.length;i<o;i++){var u=t.classes[i],u=/language-(.+)/.exec(u);if(u){r=u[1];break}}var c,d=e.languages[r];d?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){return"#"===(t=t.toLowerCase())[0]?l("x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1))):s[t]||e}),d,r):r&&"none"!==r&&e.plugins.autoloader&&(c="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(r,function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[r],r))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(V),V.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:V.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},V.hooks.add("after-tokenize",function(e){if("graphql"===e.language)for(var t=e.tokens.filter(function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type}),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var i=[];if(c(["definition-mutation","punctuation"])&&"("===t[n+1].content){n+=2;var o=d(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var a=t[n+0];"variable"===a.type&&(p(a,"variable-input"),i.push(a.content))}n=o+1}if(c(["punctuation","property-query"])&&"{"===t[n+0].content&&(p(t[++n+0],"property-mutation"),0<i.length)){var s=d(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var u=t[l];"variable"===u.type&&0<=i.indexOf(u.content)&&p(u,"variable-input")}}}}function c(e,r){r=r||0;for(var i=0;i<e.length;i++){var o=t[n+(i+r)];if(!o||o.type!==e[i])return}return 1}function d(e,r){for(var i=1,o=n;o<t.length;o++){var a=t[o],s=a.content;if("punctuation"===a.type&&"string"==typeof s){if(e.test(s))i++;else if(r.test(s)&&0==--i)return o}}return -1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}}),V.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,i=r.inside["interpolation-punctuation"],o=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var l={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};e.hooks.add("after-tokenize",function(t){t.language in l&&function t(n){for(var a=0,l=n.length;a<l;a++){var u,c,d,p=n[a];"string"!=typeof p&&(Array.isArray(u=p.content)?"template-string"===p.type?(p=u[1],3===u.length&&"string"!=typeof p&&"embedded-code"===p.type&&(c=function e(t){return"string"==typeof t?t:Array.isArray(t)?t.map(e).join(""):e(t.content)}(p),p=Array.isArray(p=p.alias)?p[0]:p,d=e.languages[p])&&(u[1]=function(t,n,a){var l=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),u=0,c={},l=s(l.map(function(e){if("string"==typeof e)return e;for(var n,r,e=e.content;-1!==t.indexOf((r=u++,n="___"+a.toUpperCase()+"_"+r+"___")););return c[n]=e,n}).join(""),n,a),d=Object.keys(c);return u=0,function t(n){for(var o=0;o<n.length;o++){if(u>=d.length)return;var a,l,p,h,f,m,g,y=n[o];"string"==typeof y||"string"==typeof y.content?(a=d[u],-1!==(g=(m="string"==typeof y?y:y.content).indexOf(a))&&(++u,l=m.substring(0,g),f=c[a],p=void 0,(h={})["interpolation-punctuation"]=i,3===(h=e.tokenize(f,h)).length&&((p=[1,1]).push.apply(p,s(h[1],e.languages.javascript,"javascript")),h.splice.apply(h,p)),p=new e.Token("interpolation",h,r.alias,f),h=m.substring(g+a.length),f=[],l&&f.push(l),f.push(p),h&&(t(m=[h]),f.push.apply(f,m)),"string"==typeof y?(n.splice.apply(n,[o,1].concat(f)),o+=f.length-1):y.content=f)):Array.isArray(g=y.content)?t(g):t([g])}}(l),new e.Token(a,l,"language-"+a,t)}(c,d,p))):t(u):"string"!=typeof u&&t([u]))}}(t.tokens)})}(V),V.languages.typescript=V.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),V.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete V.languages.typescript.parameter,delete V.languages.typescript["literal-property"],b=V.languages.extend("typescript",{}),delete b["class-name"],V.languages.typescript["class-name"].inside=b,V.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:b}}}}),V.languages.ts=V.languages.typescript,v=V.languages.javascript,w="(@(?:arg|argument|param|property)\\s+(?:"+(x=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source)+"\\s+)?)",V.languages.jsdoc=V.languages.extend("javadoclike",{parameter:{pattern:RegExp(w+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),V.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(w+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:v,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return x})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+x),lookbehind:!0,inside:{string:v.string,number:v.number,boolean:v.boolean,keyword:V.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:v,alias:"language-javascript"}}}}),V.languages.javadoclike.addSupport("javascript",V.languages.jsdoc),V.languages.flow=V.languages.extend("javascript",{}),V.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),V.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete V.languages.flow.parameter,V.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(V.languages.flow.keyword)||(V.languages.flow.keyword=[V.languages.flow.keyword]),V.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0}),V.languages.n4js=V.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),V.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),V.languages.n4jsd=V.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var i=n[r],o=e.languages.javascript[i],i=(o="RegExp"===e.util.type(o)?e.languages.javascript[i]={pattern:o}:o).inside||{};(o.inside=i)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(V),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return RegExp(e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),t)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""};e.hooks.add("after-tokenize",function(t){"jsx"!==t.language&&"tsx"!==t.language||function t(n){for(var r=[],i=0;i<n.length;i++){var o=n[i],s=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<r.length&&r[r.length-1].tagName===a(o.content[0].content[1])&&r.pop():"/>"!==o.content[o.content.length-1].content&&r.push({tagName:a(o.content[0].content[1]),openedBraces:0}):0<r.length&&"punctuation"===o.type&&"{"===o.content?r[r.length-1].openedBraces++:0<r.length&&0<r[r.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?r[r.length-1].openedBraces--:s=!0),(s||"string"==typeof o)&&0<r.length&&0===r[r.length-1].openedBraces&&(s=a(o),i<n.length-1&&("string"==typeof n[i+1]||"plain-text"===n[i+1].type)&&(s+=a(n[i+1]),n.splice(i+1,1)),0<i&&("string"==typeof n[i-1]||"plain-text"===n[i-1].type)&&(s=a(n[i-1])+s,n.splice(i-1,1),i--),n[i]=new e.Token("plain-text",s,null,s)),o.content&&"string"!=typeof o.content&&t(o.content)}}(t.tokens)})}(V),k=V.util.clone(V.languages.typescript),(V.languages.tsx=V.languages.extend("jsx",k),delete V.languages.tsx.parameter,delete V.languages.tsx["literal-property"],k=V.languages.tsx.tag).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+k.pattern.source+")",k.pattern.flags),k.lookbehind=!0,V.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},V.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=V.languages.swift}),V.languages.kotlin=V.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete V.languages.kotlin["class-name"],E={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:V.languages.kotlin}},V.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:E},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:E},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete V.languages.kotlin.string,V.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),V.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),V.languages.kt=V.languages.kotlin,V.languages.kts=V.languages.kotlin,V.languages.c=V.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),V.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),V.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},V.languages.c.string],char:V.languages.c.char,comment:V.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:V.languages.c}}}}),V.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete V.languages.c.boolean,V.languages.objectivec=V.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete V.languages.objectivec["class-name"],V.languages.objc=V.languages.objectivec,V.languages.reason=V.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),V.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete V.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(V),V.languages.go=V.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),V.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete V.languages.go["class-name"],S=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,T=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return S.source}),V.languages.cpp=V.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return S.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:S,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),V.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return T})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),V.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:V.languages.cpp}}}}),V.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),V.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:V.languages.extend("cpp",{})}}),V.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},V.languages.cpp["base-clause"]),V.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},V.languages.python["string-interpolation"].inside.interpolation.inside.rest=V.languages.python,V.languages.py=V.languages.python,V.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},V.languages.webmanifest=V.languages.json;var z={},U={dracula:()=>G,duotoneDark:()=>H,duotoneLight:()=>Y,github:()=>Z,gruvboxMaterialDark:()=>ed,gruvboxMaterialLight:()=>ep,jettwaveDark:()=>es,jettwaveLight:()=>el,nightOwl:()=>q,nightOwlLight:()=>X,oceanicNext:()=>J,okaidia:()=>ee,oneDark:()=>eu,oneLight:()=>ec,palenight:()=>et,shadesOfPurple:()=>en,synthwave84:()=>er,ultramin:()=>ei,vsDark:()=>eo,vsLight:()=>ea};for(var W in U)C(z,W,{get:U[W],enumerable:!0});var G={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},H={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},Y={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Z={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},q={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},X={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},K="#c5a5c5",Q="#8dc891",J={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:K}},{types:["attr-value"],style:{color:Q}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:Q}},{types:["punctuation"],style:{color:Q}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:K}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},ee={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},et={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},en={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},er={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},ei={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},eo={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},ea={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},es={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},el={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},eu={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},ec={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},ed={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},ep={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},eh=/\r\n|\r|\n/,ef=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},em=(e,t)=>{let n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},eg=e=>{let t=[[]],n=[e],r=[0],i=[e.length],o=0,a=0,s=[],l=[s];for(;a>-1;){for(;(o=r[a]++)<i[a];){let e,u=t[a],c=n[a][o];if("string"==typeof c?(u=a>0?u:["plain"],e=c):(u=em(u,c.type),c.alias&&(u=em(u,c.alias)),e=c.content),"string"!=typeof e){a++,t.push(u),n.push(e),r.push(0),i.push(e.length);continue}let d=e.split(eh),p=d.length;s.push({types:u,content:d[0]});for(let e=1;e<p;e++)ef(s),l.push(s=[]),s.push({types:u,content:d[e]})}a--,t.pop(),n.pop(),r.pop(),i.pop()}return ef(s),l},ey=({children:e,language:t,code:n,theme:r,prism:i})=>{let o,a=t.toLowerCase(),s=((e,t)=>{let{plain:n}=e,r=e.styles.reduce((e,n)=>{let{languages:r,style:i}=n;return r&&!r.includes(t)||n.types.forEach(t=>{let n=B(B({},e[t]),i);e[t]=n}),e},{});return r.root=n,r.plain=F(B({},n),D({backgroundColor:void 0})),r})(r,a),l=(0,A.useCallback)(e=>{var{className:t,style:n,line:r}=e;let i=F(B({},$(e,["className","style","line"])),D({className:(0,P.A)("token-line",t)}));return"object"==typeof s&&"plain"in s&&(i.style=s.plain),"object"==typeof n&&(i.style=B(B({},i.style||{}),n)),i},[s]),u=(o=(0,A.useCallback)(({types:e,empty:t})=>{if(null!=s)return 1===e.length&&"plain"===e[0]?null!=t?{display:"inline-block"}:void 0:1===e.length&&null!=t?s[e[0]]:Object.assign(null!=t?{display:"inline-block"}:{},...e.map(e=>s[e]))},[s]),(0,A.useCallback)(e=>{var{token:t,className:n,style:r}=e;let i=F(B({},$(e,["token","className","style"])),D({className:(0,P.A)("token",...t.types,n),children:t.content,style:o(t)}));return null!=r&&(i.style=B(B({},i.style||{}),r)),i},[o])),c=i.languages[a];return e({tokens:(({prism:e,code:t,grammar:n,language:r})=>(0,A.useMemo)(()=>{if(null==n)return eg([t]);let i={code:t,grammar:n,language:r,tokens:[]};return e.hooks.run("before-tokenize",i),i.tokens=e.tokenize(t,n),e.hooks.run("after-tokenize",i),eg(i.tokens)},[t,n,r,e]))({prism:i,language:a,code:n,grammar:c}),className:`prism-code language-${a}`,style:null!=s?s.root:{},getLineProps:l,getTokenProps:u})},eb=e=>(0,A.createElement)(ey,F(B({},e),D({prism:e.prism||V,theme:e.theme||eo,code:e.code,language:e.language})))},3321:(e,t,n)=>{var r=n(4645);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},3621:(e,t,n)=>{n.d(t,{Q:()=>r});let r=(0,n(2115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},4439:(e,t,n)=>{n.d(t,{i:()=>s});var r,i=n(2115),o=n(9967),a=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function s({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,s,l]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return a(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[c,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else s(t)},[u,e,s,l])]}Symbol("RADIX:SYNC_STATE")},4802:(e,t,n)=>{n.d(t,{L:()=>r});let r=(0,n(2115).createContext)({})},5415:(e,t,n)=>{n.d(t,{YQ:()=>i});var r=n(2115);function i(e,t,n){var i=this,o=(0,r.useRef)(null),a=(0,r.useRef)(0),s=(0,r.useRef)(null),l=(0,r.useRef)([]),u=(0,r.useRef)(),c=(0,r.useRef)(),d=(0,r.useRef)(e),p=(0,r.useRef)(!0);d.current=e;var h="undefined"!=typeof window,f=!t&&0!==t&&h;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b="debounceOnServer"in n&&!!n.debounceOnServer,v=y?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return p.current=!0,function(){p.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,a.current=e,c.current=d.current.apply(n,t)},n=function(e,t){f&&cancelAnimationFrame(s.current),s.current=f?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!p.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||y&&e-a.current>=v},x=function(t){return s.current=null,g&&l.current?e(t):(l.current=u.current=null,c.current)},w=function e(){var i=Date.now();if(r(i))return x(i);if(p.current){var s=t-(i-o.current);n(e,y?Math.min(s,v-(i-a.current)):s)}},k=function(){if(h||b){var d=Date.now(),f=r(d);if(l.current=[].slice.call(arguments),u.current=i,o.current=d,f){if(!s.current&&p.current)return a.current=o.current,n(w,t),m?e(o.current):c.current;if(y)return n(w,t),e(o.current)}return s.current||n(w,t),c.current}};return k.cancel=function(){s.current&&(f?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},k.isPending=function(){return!!s.current},k.flush=function(){return s.current?x(Date.now()):c.current},k},[m,y,t,v,g,f,h,b])}},5799:(e,t,n)=>{n.d(t,{UC:()=>Y,ZL:()=>H,bL:()=>G,PR:()=>W,Bc:()=>T,k$:()=>L});var r=n(2115),i=n(8118),o=n(9528),a=n(7746),s=n(2483),l=n(2408),u=n(9020),c=n(2639),d=n(256),p=n(1268),h=n(3105),f=n(4439),m=n(5155),g=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),y=r.forwardRef((e,t)=>(0,m.jsx)(p.sG.span,{...e,ref:t,style:{...g,...e.style}}));y.displayName="VisuallyHidden";var[b,v]=(0,a.A)("Tooltip",[u.Bk]),x=(0,u.Bk)(),w="TooltipProvider",k="tooltip.open",[E,S]=b(w),T=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:a}=e,s=r.useRef(!0),l=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(E,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:l,onPointerInTransitChange:r.useCallback(e=>{l.current=e},[]),disableHoverableContent:o,children:a})};T.displayName=w;var A="Tooltip",[P,R]=b(A),C=e=>{let{__scopeTooltip:t,children:n,open:i,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,d=S(A,e.__scopeTooltip),p=x(t),[h,g]=r.useState(null),y=(0,l.B)(),b=r.useRef(0),v=s??d.disableHoverableContent,w=c??d.delayDuration,E=r.useRef(!1),[T,R]=(0,f.i)({prop:i,defaultProp:o??!1,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(k))):d.onClose(),a?.(e)},caller:A}),C=r.useMemo(()=>T?E.current?"delayed-open":"instant-open":"closed",[T]),F=r.useCallback(()=>{window.clearTimeout(b.current),b.current=0,E.current=!1,R(!0)},[R]),L=r.useCallback(()=>{window.clearTimeout(b.current),b.current=0,R(!1)},[R]),D=r.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{E.current=!0,R(!0),b.current=0},w)},[w,R]);return r.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),(0,m.jsx)(u.bL,{...p,children:(0,m.jsx)(P,{scope:t,contentId:y,open:T,stateAttribute:C,trigger:h,onTriggerChange:g,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?D():F()},[d.isOpenDelayedRef,D,F]),onTriggerLeave:r.useCallback(()=>{v?L():(window.clearTimeout(b.current),b.current=0)},[L,v]),onOpen:F,onClose:L,disableHoverableContent:v,children:n})})};C.displayName=A;var F="TooltipTrigger",L=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...a}=e,s=R(F,n),l=S(F,n),c=x(n),d=r.useRef(null),h=(0,o.s)(t,d,s.onTriggerChange),f=r.useRef(!1),g=r.useRef(!1),y=r.useCallback(()=>f.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,m.jsx)(u.Mz,{asChild:!0,...c,children:(0,m.jsx)(p.sG.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:h,onPointerMove:(0,i.m)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(g.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),g.current=!0))}),onPointerLeave:(0,i.m)(e.onPointerLeave,()=>{s.onTriggerLeave(),g.current=!1}),onPointerDown:(0,i.m)(e.onPointerDown,()=>{s.open&&s.onClose(),f.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,i.m)(e.onFocus,()=>{f.current||s.onOpen()}),onBlur:(0,i.m)(e.onBlur,s.onClose),onClick:(0,i.m)(e.onClick,s.onClose)})})});L.displayName=F;var D="TooltipPortal",[M,O]=b(D,{forceMount:void 0}),j=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=R(D,t);return(0,m.jsx)(M,{scope:t,forceMount:n,children:(0,m.jsx)(d.C,{present:n||o.open,children:(0,m.jsx)(c.Z,{asChild:!0,container:i,children:r})})})};j.displayName=D;var N="TooltipContent",I=r.forwardRef((e,t)=>{let n=O(N,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=R(N,e.__scopeTooltip);return(0,m.jsx)(d.C,{present:r||a.open,children:a.disableHoverableContent?(0,m.jsx)(z,{side:i,...o,ref:t}):(0,m.jsx)(_,{side:i,...o,ref:t})})}),_=r.forwardRef((e,t)=>{let n=R(N,e.__scopeTooltip),i=S(N,e.__scopeTooltip),a=r.useRef(null),s=(0,o.s)(t,a),[l,u]=r.useState(null),{trigger:c,onClose:d}=n,p=a.current,{onPointerInTransitChange:h}=i,f=r.useCallback(()=>{u(null),h(!1)},[h]),g=r.useCallback((e,t)=>{let n,r=e.currentTarget,i={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(i,r.getBoundingClientRect());u(((n=[...function(e,t,n=5){let r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(i,o),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(n))),h(!0)},[h]);return r.useEffect(()=>()=>f(),[f]),r.useEffect(()=>{if(c&&p){let e=e=>g(e,p),t=e=>g(e,c);return c.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[c,p,g,f]),r.useEffect(()=>{if(l){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||p?.contains(t),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],s=t[o],l=a.x,u=a.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(i=!i)}return i}(n,l);r?f():i&&(f(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,p,l,d,f]),(0,m.jsx)(z,{...e,ref:s})}),[B,$]=b(A,{isInside:!1}),V=(0,h.Dc)("TooltipContent"),z=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:l,...c}=e,d=R(N,n),p=x(n),{onClose:h}=d;return r.useEffect(()=>(document.addEventListener(k,h),()=>document.removeEventListener(k,h)),[h]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;t?.contains(d.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,h]),(0,m.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,m.jsxs)(u.UC,{"data-state":d.stateAttribute,...p,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,m.jsx)(V,{children:i}),(0,m.jsx)(B,{scope:n,isInside:!0,children:(0,m.jsx)(y,{id:d.contentId,role:"tooltip",children:o||i})})]})})});I.displayName=N;var U="TooltipArrow",W=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=x(n);return $(U,n).isInside?null:(0,m.jsx)(u.i3,{...i,...r,ref:t})});W.displayName=U;var G=C,H=j,Y=I},5823:(e,t,n)=>{n.d(t,{QP:()=>ee});let r=(e,t)=>{if(0===e.length)return t.classGroupId;let n=e[0],i=t.nextPart.get(n),o=i?r(e.slice(1),i):void 0;if(o)return o;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},i=/^\[(.+)\]$/,o=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:a(t,e)).classGroupId=n;return}"function"==typeof e?s(e)?o(e(r),t,n,r):t.validators.push({validator:e,classGroupId:n}):Object.entries(e).forEach(([e,i])=>{o(i,a(t,e),n,r)})})},a=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},s=e=>e.isThemeGetter,l=/\s+/;function u(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=c(e))&&(r&&(r+=" "),r+=t);return r}let c=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=c(e[r]))&&(n&&(n+=" "),n+=t);return n},d=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},p=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,h=/^\((?:(\w[\w-]*):)?(.+)\)$/i,f=/^\d+\/\d+$/,m=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,y=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,b=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,v=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,x=e=>f.test(e),w=e=>!!e&&!Number.isNaN(Number(e)),k=e=>!!e&&Number.isInteger(Number(e)),E=e=>e.endsWith("%")&&w(e.slice(0,-1)),S=e=>m.test(e),T=()=>!0,A=e=>g.test(e)&&!y.test(e),P=()=>!1,R=e=>b.test(e),C=e=>v.test(e),F=e=>!D(e)&&!_(e),L=e=>G(e,q,P),D=e=>p.test(e),M=e=>G(e,X,A),O=e=>G(e,K,w),j=e=>G(e,Y,P),N=e=>G(e,Z,C),I=e=>G(e,J,R),_=e=>h.test(e),B=e=>H(e,X),$=e=>H(e,Q),V=e=>H(e,Y),z=e=>H(e,q),U=e=>H(e,Z),W=e=>H(e,J,!0),G=(e,t,n)=>{let r=p.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},H=(e,t,n=!1)=>{let r=h.exec(e);return!!r&&(r[1]?t(r[1]):n)},Y=e=>"position"===e||"percentage"===e,Z=e=>"image"===e||"url"===e,q=e=>"length"===e||"size"===e||"bg-size"===e,X=e=>"length"===e,K=e=>"number"===e,Q=e=>"family-name"===e,J=e=>"shadow"===e,ee=function(e,...t){let n,a,s,c=function(l){var u;let p;return a=(n={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,o)=>{n.set(i,o),++t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}})((u=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t,n,r=[],i=0,o=0,a=0;for(let t=0;t<e.length;t++){let s=e[t];if(0===i&&0===o){if(":"===s){r.push(e.slice(a,t)),a=t+1;continue}if("/"===s){n=t;continue}}"["===s?i++:"]"===s?i--:"("===s?o++:")"===s&&o--}let s=0===r.length?e:e.substring(a),l=(t=s).endsWith("!")?t.substring(0,t.length-1):t.startsWith("!")?t.substring(1):t;return{modifiers:r,hasImportantModifier:l!==s,baseClassName:l,maybePostfixModifierPosition:n&&n>a?n-a:void 0}};if(t){let e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r})(u),sortModifiers:(p=Object.fromEntries(u.orderSensitiveModifiers.map(e=>[e,!0])),e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{"["===e[0]||p[e]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(let e in n)o(n[e],r,e,t);return r})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:e=>{let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),r(n,t)||(e=>{if(i.test(e)){let t=i.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}})(e)},getConflictingClassGroupIds:(e,t)=>{let r=n[e]||[];return t&&a[e]?[...r,...a[e]]:r}}})(u)}).cache.get,s=n.cache.set,c=d,d(l)};function d(e){let t=a(e);if(t)return t;let r=((e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(l),u="";for(let e=s.length-1;e>=0;e-=1){let t=s[e],{isExternal:l,modifiers:c,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:h}=n(t);if(l){u=t+(u.length>0?" "+u:u);continue}let f=!!h,m=r(f?p.substring(0,h):p);if(!m){if(!f||!(m=r(p))){u=t+(u.length>0?" "+u:u);continue}f=!1}let g=o(c).join(":"),y=d?g+"!":g,b=y+m;if(a.includes(b))continue;a.push(b);let v=i(m,f);for(let e=0;e<v.length;++e){let t=v[e];a.push(y+t)}u=t+(u.length>0?" "+u:u)}return u})(e,n);return s(e,r),r}return function(){return c(u.apply(null,arguments))}}(()=>{let e=d("color"),t=d("font"),n=d("text"),r=d("font-weight"),i=d("tracking"),o=d("leading"),a=d("breakpoint"),s=d("container"),l=d("spacing"),u=d("radius"),c=d("shadow"),p=d("inset-shadow"),h=d("text-shadow"),f=d("drop-shadow"),m=d("blur"),g=d("perspective"),y=d("aspect"),b=d("ease"),v=d("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...P(),_,D],C=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],H=()=>[_,D,l],Y=()=>[x,"full","auto",...H()],Z=()=>[k,"none","subgrid",_,D],q=()=>["auto",{span:["full",k,_,D]},k,_,D],X=()=>[k,"auto",_,D],K=()=>["auto","min","max","fr",_,D],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...H()],et=()=>[x,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],en=()=>[e,_,D],er=()=>[...P(),V,j,{position:[_,D]}],ei=()=>["no-repeat",{repeat:["","x","y","space","round"]}],eo=()=>["auto","cover","contain",z,L,{size:[_,D]}],ea=()=>[E,B,M],es=()=>["","none","full",u,_,D],el=()=>["",w,B,M],eu=()=>["solid","dashed","dotted","double"],ec=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ed=()=>[w,E,V,j],ep=()=>["","none",m,_,D],eh=()=>["none",w,_,D],ef=()=>["none",w,_,D],em=()=>[w,_,D],eg=()=>[x,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[S],breakpoint:[S],color:[T],container:[S],"drop-shadow":[S],ease:["in","out","in-out"],font:[F],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[S],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[S],shadow:[S],spacing:["px",w],text:[S],"text-shadow":[S],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",x,D,_,y]}],container:["container"],columns:[{columns:[w,D,_,s]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{start:Y()}],end:[{end:Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[k,"auto",_,D]}],basis:[{basis:[x,"full","auto",s,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[w,x,"auto","initial","none",D]}],grow:[{grow:["",w,_,D]}],shrink:[{shrink:["",w,_,D]}],order:[{order:[k,"first","last","none",_,D]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[s,"screen",...et()]}],"min-w":[{"min-w":[s,"screen","none",...et()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...et()]}],h:[{h:["screen",...et()]}],"min-h":[{"min-h":["screen","none",...et()]}],"max-h":[{"max-h":["screen",...et()]}],"font-size":[{text:["base",n,B,M]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_,O]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",E,D]}],"font-family":[{font:[$,D,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,_,D]}],"line-clamp":[{"line-clamp":[w,"none",_,O]}],leading:[{leading:[o,...H()]}],"list-image":[{"list-image":["none",_,D]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:en()}],"text-color":[{text:en()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...eu(),"wavy"]}],"text-decoration-thickness":[{decoration:[w,"from-font","auto",_,M]}],"text-decoration-color":[{decoration:en()}],"underline-offset":[{"underline-offset":[w,"auto",_,D]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,D]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_,D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:er()}],"bg-repeat":[{bg:ei()}],"bg-size":[{bg:eo()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},k,_,D],radial:["",_,D],conic:[k,_,D]},U,N]}],"bg-color":[{bg:en()}],"gradient-from-pos":[{from:ea()}],"gradient-via-pos":[{via:ea()}],"gradient-to-pos":[{to:ea()}],"gradient-from":[{from:en()}],"gradient-via":[{via:en()}],"gradient-to":[{to:en()}],rounded:[{rounded:es()}],"rounded-s":[{"rounded-s":es()}],"rounded-e":[{"rounded-e":es()}],"rounded-t":[{"rounded-t":es()}],"rounded-r":[{"rounded-r":es()}],"rounded-b":[{"rounded-b":es()}],"rounded-l":[{"rounded-l":es()}],"rounded-ss":[{"rounded-ss":es()}],"rounded-se":[{"rounded-se":es()}],"rounded-ee":[{"rounded-ee":es()}],"rounded-es":[{"rounded-es":es()}],"rounded-tl":[{"rounded-tl":es()}],"rounded-tr":[{"rounded-tr":es()}],"rounded-br":[{"rounded-br":es()}],"rounded-bl":[{"rounded-bl":es()}],"border-w":[{border:el()}],"border-w-x":[{"border-x":el()}],"border-w-y":[{"border-y":el()}],"border-w-s":[{"border-s":el()}],"border-w-e":[{"border-e":el()}],"border-w-t":[{"border-t":el()}],"border-w-r":[{"border-r":el()}],"border-w-b":[{"border-b":el()}],"border-w-l":[{"border-l":el()}],"divide-x":[{"divide-x":el()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":el()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...eu(),"hidden","none"]}],"divide-style":[{divide:[...eu(),"hidden","none"]}],"border-color":[{border:en()}],"border-color-x":[{"border-x":en()}],"border-color-y":[{"border-y":en()}],"border-color-s":[{"border-s":en()}],"border-color-e":[{"border-e":en()}],"border-color-t":[{"border-t":en()}],"border-color-r":[{"border-r":en()}],"border-color-b":[{"border-b":en()}],"border-color-l":[{"border-l":en()}],"divide-color":[{divide:en()}],"outline-style":[{outline:[...eu(),"none","hidden"]}],"outline-offset":[{"outline-offset":[w,_,D]}],"outline-w":[{outline:["",w,B,M]}],"outline-color":[{outline:en()}],shadow:[{shadow:["","none",c,W,I]}],"shadow-color":[{shadow:en()}],"inset-shadow":[{"inset-shadow":["none",p,W,I]}],"inset-shadow-color":[{"inset-shadow":en()}],"ring-w":[{ring:el()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:en()}],"ring-offset-w":[{"ring-offset":[w,M]}],"ring-offset-color":[{"ring-offset":en()}],"inset-ring-w":[{"inset-ring":el()}],"inset-ring-color":[{"inset-ring":en()}],"text-shadow":[{"text-shadow":["none",h,W,I]}],"text-shadow-color":[{"text-shadow":en()}],opacity:[{opacity:[w,_,D]}],"mix-blend":[{"mix-blend":[...ec(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ec()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[w]}],"mask-image-linear-from-pos":[{"mask-linear-from":ed()}],"mask-image-linear-to-pos":[{"mask-linear-to":ed()}],"mask-image-linear-from-color":[{"mask-linear-from":en()}],"mask-image-linear-to-color":[{"mask-linear-to":en()}],"mask-image-t-from-pos":[{"mask-t-from":ed()}],"mask-image-t-to-pos":[{"mask-t-to":ed()}],"mask-image-t-from-color":[{"mask-t-from":en()}],"mask-image-t-to-color":[{"mask-t-to":en()}],"mask-image-r-from-pos":[{"mask-r-from":ed()}],"mask-image-r-to-pos":[{"mask-r-to":ed()}],"mask-image-r-from-color":[{"mask-r-from":en()}],"mask-image-r-to-color":[{"mask-r-to":en()}],"mask-image-b-from-pos":[{"mask-b-from":ed()}],"mask-image-b-to-pos":[{"mask-b-to":ed()}],"mask-image-b-from-color":[{"mask-b-from":en()}],"mask-image-b-to-color":[{"mask-b-to":en()}],"mask-image-l-from-pos":[{"mask-l-from":ed()}],"mask-image-l-to-pos":[{"mask-l-to":ed()}],"mask-image-l-from-color":[{"mask-l-from":en()}],"mask-image-l-to-color":[{"mask-l-to":en()}],"mask-image-x-from-pos":[{"mask-x-from":ed()}],"mask-image-x-to-pos":[{"mask-x-to":ed()}],"mask-image-x-from-color":[{"mask-x-from":en()}],"mask-image-x-to-color":[{"mask-x-to":en()}],"mask-image-y-from-pos":[{"mask-y-from":ed()}],"mask-image-y-to-pos":[{"mask-y-to":ed()}],"mask-image-y-from-color":[{"mask-y-from":en()}],"mask-image-y-to-color":[{"mask-y-to":en()}],"mask-image-radial":[{"mask-radial":[_,D]}],"mask-image-radial-from-pos":[{"mask-radial-from":ed()}],"mask-image-radial-to-pos":[{"mask-radial-to":ed()}],"mask-image-radial-from-color":[{"mask-radial-from":en()}],"mask-image-radial-to-color":[{"mask-radial-to":en()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[w]}],"mask-image-conic-from-pos":[{"mask-conic-from":ed()}],"mask-image-conic-to-pos":[{"mask-conic-to":ed()}],"mask-image-conic-from-color":[{"mask-conic-from":en()}],"mask-image-conic-to-color":[{"mask-conic-to":en()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:er()}],"mask-repeat":[{mask:ei()}],"mask-size":[{mask:eo()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,D]}],filter:[{filter:["","none",_,D]}],blur:[{blur:ep()}],brightness:[{brightness:[w,_,D]}],contrast:[{contrast:[w,_,D]}],"drop-shadow":[{"drop-shadow":["","none",f,W,I]}],"drop-shadow-color":[{"drop-shadow":en()}],grayscale:[{grayscale:["",w,_,D]}],"hue-rotate":[{"hue-rotate":[w,_,D]}],invert:[{invert:["",w,_,D]}],saturate:[{saturate:[w,_,D]}],sepia:[{sepia:["",w,_,D]}],"backdrop-filter":[{"backdrop-filter":["","none",_,D]}],"backdrop-blur":[{"backdrop-blur":ep()}],"backdrop-brightness":[{"backdrop-brightness":[w,_,D]}],"backdrop-contrast":[{"backdrop-contrast":[w,_,D]}],"backdrop-grayscale":[{"backdrop-grayscale":["",w,_,D]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w,_,D]}],"backdrop-invert":[{"backdrop-invert":["",w,_,D]}],"backdrop-opacity":[{"backdrop-opacity":[w,_,D]}],"backdrop-saturate":[{"backdrop-saturate":[w,_,D]}],"backdrop-sepia":[{"backdrop-sepia":["",w,_,D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,D]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[w,"initial",_,D]}],ease:[{ease:["linear","initial",b,_,D]}],delay:[{delay:[w,_,D]}],animate:[{animate:["none",v,_,D]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,_,D]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:eh()}],"rotate-x":[{"rotate-x":eh()}],"rotate-y":[{"rotate-y":eh()}],"rotate-z":[{"rotate-z":eh()}],scale:[{scale:ef()}],"scale-x":[{"scale-x":ef()}],"scale-y":[{"scale-y":ef()}],"scale-z":[{"scale-z":ef()}],"scale-3d":["scale-3d"],skew:[{skew:em()}],"skew-x":[{"skew-x":em()}],"skew-y":[{"skew-y":em()}],transform:[{transform:[_,D,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eg()}],"translate-x":[{"translate-x":eg()}],"translate-y":[{"translate-y":eg()}],"translate-z":[{"translate-z":eg()}],"translate-none":["translate-none"],accent:[{accent:en()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:en()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_,D]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,D]}],fill:[{fill:["none",...en()]}],"stroke-w":[{stroke:[w,B,M,O]}],stroke:[{stroke:["none",...en()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})},5889:(e,t,n)=>{n.d(t,{N:()=>y});var r=n(5155),i=n(2115),o=n(4802),a=n(2990),s=n(6047),l=n(6324),u=n(3621);class c extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=e instanceof HTMLElement&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:e,isPresent:t,anchorX:n}){let o=(0,i.useId)(),a=(0,i.useRef)(null),s=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=(0,i.useContext)(u.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:u,right:c}=s.current;if(t||!a.current||!e||!r)return;let d="left"===n?`left: ${u}`:`right: ${c}`;a.current.dataset.motionPopId=o;let p=document.createElement("style");return l&&(p.nonce=l),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(`
2
- [data-motion-pop-id="${o}"] {
3
- position: absolute !important;
4
- width: ${e}px !important;
5
- height: ${r}px !important;
6
- ${d}px !important;
7
- top: ${i}px !important;
8
- }
9
- `),()=>{document.head.removeChild(p)}},[t]),(0,r.jsx)(c,{isPresent:t,childRef:a,sizeRef:s,children:i.cloneElement(e,{ref:a})})}let p=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:s,presenceAffectsLayout:u,mode:c,anchorX:p})=>{let f=(0,a.M)(h),m=(0,i.useId)(),g=!0,y=(0,i.useMemo)(()=>(g=!1,{id:m,initial:t,isPresent:n,custom:s,onExitComplete:e=>{for(let t of(f.set(e,!0),f.values()))if(!t)return;o&&o()},register:e=>(f.set(e,!1),()=>f.delete(e))}),[n,f,o]);return u&&g&&(y={...y}),(0,i.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[n]),i.useEffect(()=>{n||f.size||!o||o()},[n]),"popLayout"===c&&(e=(0,r.jsx)(d,{isPresent:n,anchorX:p,children:e})),(0,r.jsx)(l.t.Provider,{value:y,children:e})};function h(){return new Map}var f=n(3280);let m=e=>e.key||"";function g(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let y=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:h="left"})=>{let[y,b]=(0,f.xQ)(d),v=(0,i.useMemo)(()=>g(e),[e]),x=d&&!y?[]:v.map(m),w=(0,i.useRef)(!0),k=(0,i.useRef)(v),E=(0,a.M)(()=>new Map),[S,T]=(0,i.useState)(v),[A,P]=(0,i.useState)(v);(0,s.E)(()=>{w.current=!1,k.current=v;for(let e=0;e<A.length;e++){let t=m(A[e]);x.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[A,x.length,x.join("-")]);let R=[];if(v!==S){let e=[...v];for(let t=0;t<A.length;t++){let n=A[t],r=m(n);x.includes(r)||(e.splice(t,0,n),R.push(n))}return"wait"===c&&R.length&&(e=R),P(g(e)),T(v),null}let{forceRender:C}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:A.map(e=>{let i=m(e),o=(!d||!!y)&&(v===A||x.includes(i));return(0,r.jsx)(p,{isPresent:o,initial:(!w.current||!!n)&&void 0,custom:t,presenceAffectsLayout:u,mode:c,onExitComplete:o?void 0:()=>{if(!E.has(i))return;E.set(i,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(C?.(),P(k.current),d&&b?.(),l&&l())},anchorX:h,children:e},i)})})}},6047:(e,t,n)=>{n.d(t,{E:()=>i});var r=n(2115);let i=n(2099).B?r.useLayoutEffect:r.useEffect},6324:(e,t,n)=>{n.d(t,{t:()=>r});let r=(0,n(2115).createContext)(null)},6936:(e,t,n)=>{n.d(t,{Gt:()=>i,PP:()=>s,WG:()=>o,uv:()=>a});var r=n(162);let{schedule:i,cancel:o,state:a,steps:s}=(0,n(9534).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.l,!0)},7227:(e,t,n)=>{function r(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{$:()=>r,A:()=>i});let i=r},7746:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2115),i=n(5155);function o(e,t=[]){let n=[],a=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return a.scopeName=e,[function(t,o){let a=r.createContext(o),s=n.length;n=[...n,o];let l=t=>{let{scope:n,children:o,...l}=t,u=n?.[e]?.[s]||a,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[s]||a,u=r.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(a,...t)]}},8118:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},8500:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r={default:function(){return y},useLinkStatus:function(){return v}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let o=n(927),a=n(5155),s=o._(n(2115)),l=n(91),u=n(2909),c=n(1172),d=n(857),p=n(127);n(7284);let h=n(4972),f=n(9470),m=n(7551);function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function y(e){var t;let r,i,o,[l,y]=(0,s.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,s.useRef)(null),{href:x,as:w,children:k,prefetch:E=null,passHref:S,replace:T,shallow:A,scroll:P,onClick:R,onMouseEnter:C,onTouchStart:F,legacyBehavior:L=!1,onNavigate:D,ref:M,unstable_dynamicOnHover:O,...j}=e;r=k,L&&("string"==typeof r||"number"==typeof r)&&(r=(0,a.jsx)("a",{children:r}));let N=s.default.useContext(u.AppRouterContext),I=!1!==E,_=!1!==E?null===(t=E)||"auto"===t?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:B,as:$}=s.default.useMemo(()=>{let e=g(x);return{href:e,as:w?g(w):e}},[x,w]);if(L){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=s.default.Children.only(r)}let V=L?i&&"object"==typeof i&&i.ref:M,z=s.default.useCallback(e=>(null!==N&&(v.current=(0,h.mountLinkInstance)(e,B,N,_,I,y)),()=>{v.current&&((0,h.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,h.unmountPrefetchableInstance)(e)}),[I,B,N,_,y]),U={ref:(0,c.useMergedRef)(z,V),onClick(e){L||"function"!=typeof R||R(e),L&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),!N||e.defaultPrevented||function(e,t,r,i,o,a,l){{let u,{nodeName:c}=e.currentTarget;if("A"===c.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,f.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=n(156);s.default.startTransition(()=>{d(r||t,o?"replace":"push",a??!0,i.current)})}}(e,B,$,v,T,P,D)},onMouseEnter(e){L||"function"!=typeof C||C(e),L&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),N&&I&&(0,h.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){L||"function"!=typeof F||F(e),L&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),N&&I&&(0,h.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,d.isAbsoluteUrl)($)?U.href=$:L&&!S&&("a"!==i.type||"href"in i.props)||(U.href=(0,p.addBasePath)($)),o=L?s.default.cloneElement(i,U):(0,a.jsx)("a",{...j,...U,children:r}),(0,a.jsx)(b.Provider,{value:l,children:o})}n(9842);let b=(0,s.createContext)(h.IDLE_LINK_STATUS),v=()=>(0,s.useContext)(b);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8505:(e,t,n)=>{n.d(t,{Q:()=>r});let r={value:null,addProjectionMetrics:null}},9005:(e,t,n)=>{n.d(t,{UC:()=>P,bL:()=>T,l9:()=>A});var r=n(2115),i=n(8118),o=n(7746),a=n(4439),s=n(9967),l=n(9528),u=n(1268),c=n(256),d=n(2408),p=n(5155),h="Collapsible",[f,m]=(0,o.A)(h),[g,y]=f(h),b=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:i,defaultOpen:o,disabled:s,onOpenChange:l,...c}=e,[f,m]=(0,a.i)({prop:i,defaultProp:o??!1,onChange:l,caller:h});return(0,p.jsx)(g,{scope:n,disabled:s,contentId:(0,d.B)(),open:f,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),children:(0,p.jsx)(u.sG.div,{"data-state":S(f),"data-disabled":s?"":void 0,...c,ref:t})})});b.displayName=h;var v="CollapsibleTrigger",x=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=y(v,n);return(0,p.jsx)(u.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":S(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,i.m)(e.onClick,o.onOpenToggle)})});x.displayName=v;var w="CollapsibleContent",k=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=y(w,e.__scopeCollapsible);return(0,p.jsx)(c.C,{present:n||i.open,children:({present:e})=>(0,p.jsx)(E,{...r,ref:t,present:e})})});k.displayName=w;var E=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:i,children:o,...a}=e,c=y(w,n),[d,h]=r.useState(i),f=r.useRef(null),m=(0,l.s)(t,f),g=r.useRef(0),b=g.current,v=r.useRef(0),x=v.current,k=c.open||d,E=r.useRef(k),T=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.N)(()=>{let e=f.current;if(e){T.current=T.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,v.current=t.width,E.current||(e.style.transitionDuration=T.current.transitionDuration,e.style.animationName=T.current.animationName),h(i)}},[c.open,i]),(0,p.jsx)(u.sG.div,{"data-state":S(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!k,...a,ref:m,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:k&&o})});function S(e){return e?"open":"closed"}var T=b,A=x,P=k},9020:(e,t,n)=>{n.d(t,{Mz:()=>e0,i3:()=>e2,UC:()=>e1,bL:()=>eJ,Bk:()=>eI});var r=n(2115);let i=["top","right","bottom","left"],o=Math.min,a=Math.max,s=Math.round,l=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function p(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}let y=new Set(["top","bottom"]);function b(e){return y.has(h(e))?"y":"x"}function v(e){return e.replace(/start|end/g,e=>d[e])}let x=["left","right"],w=["right","left"],k=["top","bottom"],E=["bottom","top"];function S(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function T(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function A(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function P(e,t,n){let r,{reference:i,floating:o}=e,a=b(t),s=m(b(t)),l=g(s),u=h(t),c="y"===a,d=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,y=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:p};break;case"left":r={x:i.x-o.width,y:p};break;default:r={x:i.x,y:i.y}}switch(f(t)){case"start":r[s]-=y*(n&&c?-1:1);break;case"end":r[s]+=y*(n&&c?-1:1)}return r}let R=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=P(u,r,l),p=r,h={},f=0;for(let n=0;n<s.length;n++){let{name:o,fn:m}=s[n],{x:g,y:y,data:b,reset:v}=await m({x:c,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,h={...h,[o]:{...h[o],...b}},v&&f<=50&&(f++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(u=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):v.rects),{x:c,y:d}=P(u,p,l)),n=-1)}return{x:c,y:d,placement:p,strategy:i,middlewareData:h}};async function C(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=p(t,e),m=T(f),g=s[h?"floating"===d?"reference":"floating":d],y=A(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),b="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),x=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},w=A(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:v,strategy:l}):b);return{top:(y.top-w.top+m.top)/x.y,bottom:(w.bottom-y.bottom+m.bottom)/x.y,left:(y.left-w.left+m.left)/x.x,right:(w.right-y.right+m.right)/x.x}}function F(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function L(e){return i.some(t=>e[t]>=0)}let D=new Set(["left","top"]);async function M(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=h(n),s=f(n),l="y"===b(n),u=D.has(a)?-1:1,c=o&&l?-1:1,d=p(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof y&&(g="end"===s?-1*y:y),l?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function O(){return"undefined"!=typeof window}function j(e){return _(e)?(e.nodeName||"").toLowerCase():"#document"}function N(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=(_(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function _(e){return!!O()&&(e instanceof Node||e instanceof N(e).Node)}function B(e){return!!O()&&(e instanceof Element||e instanceof N(e).Element)}function $(e){return!!O()&&(e instanceof HTMLElement||e instanceof N(e).HTMLElement)}function V(e){return!!O()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof N(e).ShadowRoot)}let z=new Set(["inline","contents"]);function U(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!z.has(i)}let W=new Set(["table","td","th"]),G=[":popover-open",":modal"];function H(e){return G.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let Y=["transform","translate","scale","rotate","perspective"],Z=["transform","translate","scale","rotate","perspective","filter"],q=["paint","layout","strict","content"];function X(e){let t=K(),n=B(e)?ee(e):e;return Y.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Z.some(e=>(n.willChange||"").includes(e))||q.some(e=>(n.contain||"").includes(e))}function K(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Q=new Set(["html","body","#document"]);function J(e){return Q.has(j(e))}function ee(e){return N(e).getComputedStyle(e)}function et(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if("html"===j(e))return e;let t=e.assignedSlot||e.parentNode||V(e)&&e.host||I(e);return V(t)?t.host:t}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=en(t);return J(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&U(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=N(i);if(o){let e=ei(a);return t.concat(a,a.visualViewport||[],U(i)?i:[],e&&n?er(e):[])}return t.concat(i,er(i,[],n))}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eo(e){let t=ee(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=$(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=s(n)!==o||s(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function ea(e){return B(e)?e:e.contextElement}function es(e){let t=ea(e);if(!$(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=eo(t),a=(o?s(n.width):n.width)/r,l=(o?s(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let el=u(0);function eu(e){let t=N(e);return K()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function ec(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=ea(e),s=u(1);t&&(r?B(r)&&(s=es(r)):s=es(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===N(a))&&i)?eu(a):u(0),c=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,p=o.width/s.x,h=o.height/s.y;if(a){let e=N(a),t=r&&B(r)?N(r):r,n=e,i=ei(n);for(;i&&r&&t!==n;){let e=es(i),t=i.getBoundingClientRect(),r=ee(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,p*=e.x,h*=e.y,c+=o,d+=a,i=ei(n=N(i))}}return A({width:p,height:h,x:c,y:d})}function ed(e,t){let n=et(e).scrollLeft;return t?t.left+n:ec(I(e)).left+n}function ep(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ed(e,n),y:n.top+t.scrollTop}}let eh=new Set(["absolute","fixed"]);function ef(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=N(e),r=I(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=K();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}let u=ed(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else u<=25&&(o+=u);return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t){let t,n,o,s,l,u,c;r=I(e),t=I(r),n=et(r),o=r.ownerDocument.body,s=a(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=a(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),u=-n.scrollLeft+ed(r),c=-n.scrollTop,"rtl"===ee(o).direction&&(u+=a(t.clientWidth,o.clientWidth)-s),i={width:s,height:l,x:u,y:c}}else if(B(t)){let e,r,o,a,s,l;r=(e=ec(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,a=$(t)?es(t):u(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,i={width:s,height:l,x:o*a.x,y:r*a.y}}else{let n=eu(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return A(i)}function em(e){return"static"===ee(e).position}function eg(e,t){if(!$(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return I(e)===n&&(n=n.ownerDocument.body),n}function ey(e,t){var n;let r=N(e);if(H(e))return r;if(!$(e)){let t=en(e);for(;t&&!J(t);){if(B(t)&&!em(t))return t;t=en(t)}return r}let i=eg(e,t);for(;i&&(n=i,W.has(j(n)))&&em(i);)i=eg(i,t);return i&&J(i)&&em(i)&&!X(i)?r:i||function(e){let t=en(e);for(;$(t)&&!J(t);){if(X(t))return t;if(H(t))break;t=en(t)}return null}(e)||r}let eb=async function(e){let t=this.getOffsetParent||ey,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=$(t),i=I(t),o="fixed"===n,a=ec(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=u(0);if(r||!r&&!o)if(("body"!==j(t)||U(i))&&(s=et(t)),r){let e=ec(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ed(i));o&&!r&&i&&(l.x=ed(i));let c=!i||r||o?u(0):ep(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ev={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=I(r),s=!!t&&H(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=u(1),d=u(0),p=$(r);if((p||!p&&!o)&&(("body"!==j(r)||U(a))&&(l=et(r)),$(r))){let e=ec(r);c=es(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let h=!a||p||o?u(0):ep(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:I,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,s=[..."clippingAncestors"===n?H(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(e=>B(e)&&"body"!==j(e)),i=null,o="fixed"===ee(e).position,a=o?en(e):e;for(;B(a)&&!J(a);){let t=ee(a),n=X(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&eh.has(i.position)||U(a)&&!n&&function e(t,n){let r=en(t);return!(r===n||!B(r)||J(r))&&("fixed"===ee(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=en(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=s[0],u=s.reduce((e,n)=>{let r=ef(t,n,i);return e.top=a(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=a(r.left,e.left),e},ef(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ey,getElementRects:eb,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eo(e);return{width:t,height:n}},getScale:es,isElement:B,isRTL:function(e){return"rtl"===ee(e).direction}};function ex(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ew=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:s,platform:l,elements:u,middlewareData:c}=t,{element:d,padding:h=0}=p(e,t)||{};if(null==d)return{};let y=T(h),v={x:n,y:r},x=m(b(i)),w=g(x),k=await l.getDimensions(d),E="y"===x,S=E?"clientHeight":"clientWidth",A=s.reference[w]+s.reference[x]-v[x]-s.floating[w],P=v[x]-s.reference[x],R=await (null==l.getOffsetParent?void 0:l.getOffsetParent(d)),C=R?R[S]:0;C&&await (null==l.isElement?void 0:l.isElement(R))||(C=u.floating[S]||s.floating[w]);let F=C/2-k[w]/2-1,L=o(y[E?"top":"left"],F),D=o(y[E?"bottom":"right"],F),M=C-k[w]-D,O=C/2-k[w]/2+(A/2-P/2),j=a(L,o(O,M)),N=!c.arrow&&null!=f(i)&&O!==j&&s.reference[w]/2-(O<L?L:D)-k[w]/2<0,I=N?O<L?O-L:O-M:0;return{[x]:v[x]+I,data:{[x]:j,centerOffset:O-j-I,...N&&{alignmentOffset:I}},reset:N}}});var ek=n(7650),eE="undefined"!=typeof document?r.useLayoutEffect:function(){};function eS(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eS(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eS(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eT(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eA(e,t){let n=eT(e);return Math.round(t*n)/n}function eP(e){let t=r.useRef(e);return eE(()=>{t.current=e}),t}var eR=n(1268),eC=n(5155),eF=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eC.jsx)(eR.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eC.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eF.displayName="Arrow";var eL=n(9528),eD=n(7746),eM=n(2384),eO=n(9967),ej="Popper",[eN,eI]=(0,eD.A)(ej),[e_,eB]=eN(ej),e$=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,eC.jsx)(e_,{scope:t,anchor:i,onAnchorChange:o,children:n})};e$.displayName=ej;var eV="PopperAnchor",ez=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,a=eB(eV,n),s=r.useRef(null),l=(0,eL.s)(t,s);return r.useEffect(()=>{a.onAnchorChange(i?.current||s.current)}),i?null:(0,eC.jsx)(eR.sG.div,{...o,ref:l})});ez.displayName=eV;var eU="PopperContent",[eW,eG]=eN(eU),eH=r.forwardRef((e,t)=>{var n,i,s,u,c,d,y,T,A,P,O,j,N,_,B,$,V,z,U,W,G;let{__scopePopper:H,side:Y="bottom",sideOffset:Z=0,align:q="center",alignOffset:X=0,arrowPadding:K=0,avoidCollisions:Q=!0,collisionBoundary:J=[],collisionPadding:ee=0,sticky:et="partial",hideWhenDetached:en=!1,updatePositionStrategy:ei="optimized",onPlaced:eo,...es}=e,el=eB(eU,H),[eu,ed]=r.useState(null),ep=(0,eL.s)(t,e=>ed(e)),[eh,ef]=r.useState(null),em=function(e){let[t,n]=r.useState(void 0);return(0,eO.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(eh),eg=em?.width??0,ey=em?.height??0,eb="number"==typeof ee?ee:{top:0,right:0,bottom:0,left:0,...ee},eF=Array.isArray(J)?J:[J],eD=eF.length>0,ej={padding:eb,boundary:eF.filter(eX),altBoundary:eD},{refs:eN,floatingStyles:eI,placement:e_,isPositioned:e$,middlewareData:eV}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=r.useState(i);eS(h,i)||f(i);let[m,g]=r.useState(null),[y,b]=r.useState(null),v=r.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),x=r.useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),w=a||m,k=s||y,E=r.useRef(null),S=r.useRef(null),T=r.useRef(d),A=null!=u,P=eP(u),C=eP(o),F=eP(c),L=r.useCallback(()=>{var e,r;let i,o,a;if(!E.current||!S.current)return;let s={placement:t,strategy:n,middleware:h};C.current&&(s.platform=C.current),(e=E.current,r=S.current,i=new Map,a={...(o={platform:ev,...s}).platform,_c:i},R(e,r,{...o,platform:a})).then(e=>{let t={...e,isPositioned:!1!==F.current};D.current&&!eS(T.current,t)&&(T.current=t,ek.flushSync(()=>{p(t)}))})},[h,t,n,C,F]);eE(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);let D=r.useRef(!1);eE(()=>(D.current=!0,()=>{D.current=!1}),[]),eE(()=>{if(w&&(E.current=w),k&&(S.current=k),w&&k){if(P.current)return P.current(w,k,L);L()}},[w,k,L,P,A]);let M=r.useMemo(()=>({reference:E,floating:S,setReference:v,setFloating:x}),[v,x]),O=r.useMemo(()=>({reference:w,floating:k}),[w,k]),j=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=eA(O.floating,d.x),r=eA(O.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eT(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,O.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:L,refs:M,elements:O,floatingStyles:j}),[d,L,M,O,j])}({strategy:"fixed",placement:Y+("center"!==q?"-"+q:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:p=!1}=r,h=ea(e),f=s||u?[...h?er(h):[],...er(t)]:[];f.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=h&&d?function(e,t){let n,r=null,i=I(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),s();let p=e.getBoundingClientRect(),{left:h,top:f,width:m,height:g}=p;if(c||t(),!m||!g)return;let y={rootMargin:-l(f)+"px "+-l(i.clientWidth-(h+m))+"px "+-l(i.clientHeight-(f+g))+"px "+-l(h)+"px",threshold:a(0,o(1,d))||1},b=!0;function v(t){let r=t[0].intersectionRatio;if(r!==d){if(!b)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||ex(p,e.getBoundingClientRect())||u(),b=!1}try{r=new IntersectionObserver(v,{...y,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(v,y)}r.observe(e)}(!0),s}(h,n):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),h&&!p&&y.observe(h),y.observe(t));let b=p?ec(e):null;return p&&function t(){let r=ec(e);b&&!ex(b,r)&&n(),b=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,p&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===ei}),elements:{reference:el.anchor},middleware:[{...{name:"offset",options:s=n={mainAxis:Z+ey,alignmentAxis:X},async fn(e){var t,n;let{x:r,y:i,placement:o,middlewareData:a}=e,l=await M(e,s);return o===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:o}}}},options:[n,i]},Q&&{...{name:"shift",options:A=y={mainAxis:!0,crossAxis:!1,limiter:"partial"===et?{...(void 0===(d=u)&&(d={}),{options:d,fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=p(d,e),u={x:t,y:n},c=b(r),f=m(c),g=u[f],y=u[c],v=p(a,e),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+x.mainAxis,n=i.reference[f]+i.reference[e]-x.mainAxis;g<t?g=t:g>n&&(g=n)}if(l){var w,k;let e="y"===f?"width":"height",t=D.has(h(r)),n=i.reference[c]-i.floating[e]+(t&&(null==(w=o.offset)?void 0:w[c])||0)+(t?0:x.crossAxis),a=i.reference[c]+i.reference[e]+(t?0:(null==(k=o.offset)?void 0:k[c])||0)-(t?x.crossAxis:0);y<n?y=n:y>a&&(y=a)}return{[f]:g,[c]:y}}}),options:[u,c]}:void 0,...ej},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=p(A,e),c={x:t,y:n},d=await C(e,u),f=b(h(r)),g=m(f),y=c[g],v=c[f];if(i){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=y+d[e],r=y-d[t];y=a(n,o(y,r))}if(s){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=v+d[e],r=v-d[t];v=a(n,o(v,r))}let x=l.fn({...e,[g]:y,[f]:v});return{...x,data:{x:x.x-t,y:x.y-n,enabled:{[g]:i,[f]:s}}}}},options:[y,T]},Q&&{...{name:"flip",options:j=P={...ej},async fn(e){var t,n,r,i,o,a,s,l;let u,c,d,{placement:y,middlewareData:T,rects:A,initialPlacement:P,platform:R,elements:F}=e,{mainAxis:L=!0,crossAxis:D=!0,fallbackPlacements:M,fallbackStrategy:O="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:I=!0,..._}=p(j,e);if(null!=(t=T.arrow)&&t.alignmentOffset)return{};let B=h(y),$=b(P),V=h(P)===P,z=await (null==R.isRTL?void 0:R.isRTL(F.floating)),U=M||(V||!I?[S(P)]:(u=S(P),[v(P),u,v(u)])),W="none"!==N;!M&&W&&U.push(...(c=f(P),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?w:x;return t?x:w;case"left":case"right":return t?k:E;default:return[]}}(h(P),"start"===N,z),c&&(d=d.map(e=>e+"-"+c),I&&(d=d.concat(d.map(v)))),d));let G=[P,...U],H=await C(e,_),Y=[],Z=(null==(n=T.flip)?void 0:n.overflows)||[];if(L&&Y.push(H[B]),D){let e,t,n,r,i=(a=y,s=A,void 0===(l=z)&&(l=!1),e=f(a),n=g(t=m(b(a))),r="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[n]>s.floating[n]&&(r=S(r)),[r,S(r)]);Y.push(H[i[0]],H[i[1]])}if(Z=[...Z,{placement:y,overflows:Y}],!Y.every(e=>e<=0)){let e=((null==(r=T.flip)?void 0:r.index)||0)+1,t=G[e];if(t&&("alignment"!==D||$===b(t)||Z.every(e=>b(e.placement)!==$||e.overflows[0]>0)))return{data:{index:e,overflows:Z},reset:{placement:t}};let n=null==(i=Z.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(O){case"bestFit":{let e=null==(o=Z.filter(e=>{if(W){let t=b(e.placement);return t===$||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=P}if(y!==n)return{reset:{placement:n}}}return{}}},options:[P,O]},{...{name:"size",options:B=N={...ej,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,n;let r,i,{placement:s,rects:l,platform:u,elements:c}=e,{apply:d=()=>{},...m}=p(B,e),g=await C(e,m),y=h(s),v=f(s),x="y"===b(s),{width:w,height:k}=l.floating;"top"===y||"bottom"===y?(r=y,i=v===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(i=y,r="end"===v?"top":"bottom");let E=k-g.top-g.bottom,S=w-g.left-g.right,T=o(k-g[r],E),A=o(w-g[i],S),P=!e.middlewareData.shift,R=T,F=A;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(F=S),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(R=E),P&&!v){let e=a(g.left,0),t=a(g.right,0),n=a(g.top,0),r=a(g.bottom,0);x?F=w-2*(0!==e||0!==t?e+t:a(g.left,g.right)):R=k-2*(0!==n||0!==r?n+r:a(g.top,g.bottom))}await d({...e,availableWidth:F,availableHeight:R});let L=await u.getDimensions(c.floating);return w!==L.width||k!==L.height?{reset:{rects:!0}}:{}}},options:[N,_]},eh&&{...{name:"arrow",options:z=$={element:eh,padding:K},fn(e){let{element:t,padding:n}="function"==typeof z?z(e):z;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?ew({element:t.current,padding:n}).fn(e):{}:t?ew({element:t,padding:n}).fn(e):{}}},options:[$,V]},eK({arrowWidth:eg,arrowHeight:ey}),en&&{...{name:"hide",options:G=U={strategy:"referenceHidden",...ej},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=p(G,e);switch(n){case"referenceHidden":{let n=F(await C(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:L(n)}}}case"escaped":{let n=F(await C(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:L(n)}}}default:return{}}}},options:[U,W]}]}),[ez,eG]=eQ(e_),eH=(0,eM.c)(eo);(0,eO.N)(()=>{e$&&eH?.()},[e$,eH]);let eY=eV.arrow?.x,eZ=eV.arrow?.y,eq=eV.arrow?.centerOffset!==0,[eJ,e0]=r.useState();return(0,eO.N)(()=>{eu&&e0(window.getComputedStyle(eu).zIndex)},[eu]),(0,eC.jsx)("div",{ref:eN.setFloating,"data-radix-popper-content-wrapper":"",style:{...eI,transform:e$?eI.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eJ,"--radix-popper-transform-origin":[eV.transformOrigin?.x,eV.transformOrigin?.y].join(" "),...eV.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eC.jsx)(eW,{scope:H,placedSide:ez,onArrowChange:ef,arrowX:eY,arrowY:eZ,shouldHideArrow:eq,children:(0,eC.jsx)(eR.sG.div,{"data-side":ez,"data-align":eG,...es,ref:ep,style:{...es.style,animation:e$?void 0:"none"}})})})});eH.displayName=eU;var eY="PopperArrow",eZ={top:"bottom",right:"left",bottom:"top",left:"right"},eq=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eG(eY,n),o=eZ[i.placedSide];return(0,eC.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eC.jsx)(eF,{...r,ref:t,style:{...r.style,display:"block"}})})});function eX(e){return null!==e}eq.displayName=eY;var eK=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[l,u]=eQ(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+a/2,p=(i.arrow?.y??0)+s/2,h="",f="";return"bottom"===l?(h=o?c:`${d}px`,f=`${-s}px`):"top"===l?(h=o?c:`${d}px`,f=`${r.floating.height+s}px`):"right"===l?(h=`${-s}px`,f=o?c:`${p}px`):"left"===l&&(h=`${r.floating.width+s}px`,f=o?c:`${p}px`),{data:{x:h,y:f}}}});function eQ(e){let[t,n="center"]=e.split("-");return[t,n]}var eJ=e$,e0=ez,e1=eH,e2=eq},9080:(e,t,n)=>{n.d(t,{W:()=>r});let r={}},9470:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(857),i=n(8512);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},9528:(e,t,n)=>{n.d(t,{s:()=>a,t:()=>o});var r=n(2115);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function a(...e){return r.useCallback(o(...e),e)}},9534:(e,t,n)=>{n.d(t,{I:()=>a});var r=n(9080);let i=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var o=n(8505);function a(e,t){let n=!1,a=!0,s={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=i.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,a=!1,s=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function c(t){s.has(t)&&(d.schedule(t),e()),u++,t(l)}let d={schedule:(e,t=!1,o=!1)=>{let a=o&&i?n:r;return t&&s.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),s.delete(e)},process:e=>{if(l=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),t&&o.Q.value&&o.Q.value.frameloop[t].push(u),u=0,n.clear(),i=!1,a&&(a=!1,d.process(e))}};return d}(l,t?n:void 0),e),{}),{setup:c,read:d,resolveKeyframes:p,preUpdate:h,update:f,preRender:m,render:g,postRender:y}=u,b=()=>{let i=r.W.useManualTiming?s.timestamp:performance.now();n=!1,r.W.useManualTiming||(s.delta=a?1e3/60:Math.max(Math.min(i-s.timestamp,40),1)),s.timestamp=i,s.isProcessing=!0,c.process(s),d.process(s),p.process(s),h.process(s),f.process(s),m.process(s),g.process(s),y.process(s),s.isProcessing=!1,n&&t&&(a=!1,e(b))};return{schedule:i.reduce((t,r)=>{let i=u[r];return t[r]=(t,r=!1,o=!1)=>(!n&&(n=!0,a=!0,s.isProcessing||e(b)),i.schedule(t,r,o)),t},{}),cancel:e=>{for(let t=0;t<i.length;t++)u[i[t]].cancel(e)},state:s,steps:u}}},9842:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},9967:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(2115),i=globalThis?.document?r.useLayoutEffect:()=>{}}}]);