@styleflow.app/flowpress-astro-core 1.0.0-beta.3 → 1.0.0-beta.31

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 (304) hide show
  1. package/CHANGELOG.md +197 -1
  2. package/README.md +111 -3
  3. package/dist/accessibility-panel.d.ts +2 -0
  4. package/dist/accessibility-panel.d.ts.map +1 -0
  5. package/dist/accessibility-panel.js +81 -0
  6. package/dist/accessibility-panel.js.map +1 -0
  7. package/dist/astro/BaseLayout.astro +34 -17
  8. package/dist/astro/CompositionRenderer.astro +168 -0
  9. package/dist/astro/DefaultBlockAdapter.astro +36 -0
  10. package/dist/astro/DefaultTemplate.astro +12 -7
  11. package/dist/astro/FontStylesheets.astro +35 -0
  12. package/dist/astro/GutenbergRenderer.astro +280 -81
  13. package/dist/astro/Media.astro +24 -0
  14. package/dist/astro/StyleflowElement.astro +24 -0
  15. package/dist/astro/ThemeRuntime.astro +26 -0
  16. package/dist/astro/blocks/CarouselBlock.astro +11 -10
  17. package/dist/astro/blocks/CarouselItemBlock.astro +4 -4
  18. package/dist/astro/blocks/ColumnBlock.astro +4 -5
  19. package/dist/astro/blocks/CoverBlock.astro +156 -0
  20. package/dist/astro/blocks/FormBlock.astro +23 -20
  21. package/dist/astro/blocks/GridBlock.astro +4 -4
  22. package/dist/astro/blocks/HeroBlock.astro +6 -6
  23. package/dist/astro/blocks/ImageBlock.astro +6 -6
  24. package/dist/astro/blocks/ListItemFallback.astro +12 -8
  25. package/dist/astro/blocks/NumberSpinnerBlock.astro +29 -22
  26. package/dist/astro/blocks/SemanticElement.astro +35 -0
  27. package/dist/astro/blocks/SiteLogoBlock.astro +54 -0
  28. package/dist/astro/blocks/TextBlock.astro +33 -28
  29. package/dist/astro/blocks/ThemeToggleBlock.astro +13 -0
  30. package/dist/astro/blocks/cover.d.ts +13 -0
  31. package/dist/astro/blocks/cover.d.ts.map +1 -0
  32. package/dist/astro/blocks/cover.js +105 -0
  33. package/dist/astro/blocks/cover.js.map +1 -0
  34. package/dist/astro/blocks/cover.ts +119 -0
  35. package/dist/astro/blocks/helpers.d.ts +10 -1
  36. package/dist/astro/blocks/helpers.d.ts.map +1 -1
  37. package/dist/astro/blocks/helpers.js +57 -44
  38. package/dist/astro/blocks/helpers.js.map +1 -1
  39. package/dist/astro/blocks/helpers.ts +71 -49
  40. package/dist/astro/motion/AccordionRuntime.astro +9 -0
  41. package/dist/astro/motion/MotionBoot.astro +21 -0
  42. package/dist/astro/motion/MotionRuntime.astro +31 -0
  43. package/dist/astro/motion/accordion.css +163 -0
  44. package/dist/astro/motion/accordion.d.ts +3 -0
  45. package/dist/astro/motion/accordion.d.ts.map +1 -0
  46. package/dist/astro/motion/accordion.js +98 -0
  47. package/dist/astro/motion/accordion.js.map +1 -0
  48. package/dist/astro/motion/accordion.ts +109 -0
  49. package/dist/astro/motion/motion-controller.d.ts +12 -0
  50. package/dist/astro/motion/motion-controller.d.ts.map +1 -0
  51. package/dist/astro/motion/motion-controller.js +293 -0
  52. package/dist/astro/motion/motion-controller.js.map +1 -0
  53. package/dist/astro/motion/motion-controller.ts +377 -0
  54. package/dist/astro/motion/motion.css +546 -0
  55. package/dist/astro/motion/motion.d.ts +127 -0
  56. package/dist/astro/motion/motion.d.ts.map +1 -0
  57. package/dist/astro/motion/motion.js +255 -0
  58. package/dist/astro/motion/motion.js.map +1 -0
  59. package/dist/astro/motion/motion.ts +419 -0
  60. package/dist/astro/native/Blob.astro +113 -0
  61. package/dist/astro/native/BlobBlock.astro +52 -0
  62. package/dist/astro/native/CustomFieldValue.astro +88 -0
  63. package/dist/astro/native/LevelTag.astro +20 -0
  64. package/dist/astro/native/MapBlock.astro +41 -0
  65. package/dist/astro/native/NativeHtmlBlock.astro +12 -0
  66. package/dist/astro/native/NativeIconBlock.astro +42 -0
  67. package/dist/astro/native/ProjectTimelineBlock.astro +34 -0
  68. package/dist/astro/native/ReservedLogin.astro +107 -0
  69. package/dist/astro/native/ResolvedBlocks.astro +91 -0
  70. package/dist/astro/native/SyncedPatternContent.astro +94 -0
  71. package/dist/astro/native/TermFieldValue.astro +39 -0
  72. package/dist/astro/native/Timeline.astro +22 -0
  73. package/dist/astro/native/TimelineCardBlock.astro +7 -0
  74. package/dist/astro/native/blob/blob-shapes.generated.d.ts +2 -0
  75. package/dist/astro/native/blob/blob-shapes.generated.d.ts.map +1 -0
  76. package/dist/astro/native/blob/blob-shapes.generated.js +2 -0
  77. package/dist/astro/native/blob/blob-shapes.generated.js.map +1 -0
  78. package/dist/astro/native/blob/blob-shapes.generated.ts +1 -0
  79. package/dist/astro/native/blob/config.d.ts +49 -0
  80. package/dist/astro/native/blob/config.d.ts.map +1 -0
  81. package/dist/astro/native/blob/config.js +86 -0
  82. package/dist/astro/native/blob/config.js.map +1 -0
  83. package/dist/astro/native/blob/config.ts +132 -0
  84. package/dist/astro/native/blob/controller.d.ts +11 -0
  85. package/dist/astro/native/blob/controller.d.ts.map +1 -0
  86. package/dist/astro/native/blob/controller.js +240 -0
  87. package/dist/astro/native/blob/controller.js.map +1 -0
  88. package/dist/astro/native/blob/controller.ts +248 -0
  89. package/dist/astro/native/blob/geometry.d.ts +2 -0
  90. package/dist/astro/native/blob/geometry.d.ts.map +1 -0
  91. package/dist/astro/native/blob/geometry.js +2 -0
  92. package/dist/astro/native/blob/geometry.js.map +1 -0
  93. package/dist/astro/native/blob/geometry.ts +1 -0
  94. package/dist/astro/native/blob/ids.d.ts +7 -0
  95. package/dist/astro/native/blob/ids.d.ts.map +1 -0
  96. package/dist/astro/native/blob/ids.js +11 -0
  97. package/dist/astro/native/blob/ids.js.map +1 -0
  98. package/dist/astro/native/blob/ids.ts +11 -0
  99. package/dist/astro/native/blob.css +83 -0
  100. package/dist/astro/native/button-template.d.ts +31 -0
  101. package/dist/astro/native/button-template.d.ts.map +1 -0
  102. package/dist/astro/native/button-template.js +54 -0
  103. package/dist/astro/native/button-template.js.map +1 -0
  104. package/dist/astro/native/button-template.ts +92 -0
  105. package/dist/astro/native/button.d.ts +13 -0
  106. package/dist/astro/native/button.d.ts.map +1 -0
  107. package/dist/astro/native/button.js +26 -0
  108. package/dist/astro/native/button.js.map +1 -0
  109. package/dist/astro/native/button.ts +26 -0
  110. package/dist/astro/native/core-block.astro +18 -0
  111. package/dist/astro/native/core-button-fallback.astro +43 -0
  112. package/dist/astro/native/core-button.astro +65 -0
  113. package/dist/astro/native/core-buttons.astro +14 -0
  114. package/dist/astro/native/core-group.astro +25 -0
  115. package/dist/astro/native/core-home-link.astro +12 -0
  116. package/dist/astro/native/core-html.astro +8 -0
  117. package/dist/astro/native/core-icon.astro +7 -0
  118. package/dist/astro/native/core-image.astro +125 -0
  119. package/dist/astro/native/core-navigation-link.astro +71 -0
  120. package/dist/astro/native/core-navigation-submenu.astro +33 -0
  121. package/dist/astro/native/core-navigation.astro +101 -0
  122. package/dist/astro/native/core-page-list-data-item.astro +19 -0
  123. package/dist/astro/native/core-page-list-item.astro +8 -0
  124. package/dist/astro/native/core-page-list.astro +40 -0
  125. package/dist/astro/native/core-post-date.astro +21 -0
  126. package/dist/astro/native/core-post-excerpt.astro +26 -0
  127. package/dist/astro/native/core-post-featured-image.astro +38 -0
  128. package/dist/astro/native/core-post-template-fallback.astro +30 -0
  129. package/dist/astro/native/core-post-template.astro +23 -0
  130. package/dist/astro/native/core-post-terms.astro +47 -0
  131. package/dist/astro/native/core-post-title.astro +23 -0
  132. package/dist/astro/native/core-query-no-results.astro +12 -0
  133. package/dist/astro/native/core-query.astro +22 -0
  134. package/dist/astro/native/core-separator.astro +20 -0
  135. package/dist/astro/native/core-site-title.astro +16 -0
  136. package/dist/astro/native/core-term-description.astro +12 -0
  137. package/dist/astro/native/core-term-name.astro +21 -0
  138. package/dist/astro/native/core-term-template.astro +30 -0
  139. package/dist/astro/native/core-terms-query.astro +19 -0
  140. package/dist/astro/native/core-transparent.astro +11 -0
  141. package/dist/astro/native/flowpress-navigation-controller.d.ts +2 -0
  142. package/dist/astro/native/flowpress-navigation-controller.d.ts.map +1 -0
  143. package/dist/astro/native/flowpress-navigation-controller.js +217 -0
  144. package/dist/astro/native/flowpress-navigation-controller.js.map +1 -0
  145. package/dist/astro/native/flowpress-navigation-controller.ts +215 -0
  146. package/dist/astro/native/flowpress-navigation.css +17 -0
  147. package/dist/astro/native/grid-bleed.d.ts +2 -0
  148. package/dist/astro/native/grid-bleed.d.ts.map +1 -0
  149. package/dist/astro/native/grid-bleed.js +123 -0
  150. package/dist/astro/native/grid-bleed.js.map +1 -0
  151. package/dist/astro/native/grid.css +180 -0
  152. package/dist/astro/native/grid.d.ts +17 -0
  153. package/dist/astro/native/grid.d.ts.map +1 -0
  154. package/dist/astro/native/grid.js +103 -0
  155. package/dist/astro/native/grid.js.map +1 -0
  156. package/dist/astro/native/grid.ts +118 -0
  157. package/dist/astro/native/group.css +36 -0
  158. package/dist/astro/native/group.d.ts +15 -0
  159. package/dist/astro/native/group.d.ts.map +1 -0
  160. package/dist/astro/native/group.js +66 -0
  161. package/dist/astro/native/group.js.map +1 -0
  162. package/dist/astro/native/group.ts +61 -0
  163. package/dist/astro/native/html.d.ts +6 -0
  164. package/dist/astro/native/html.d.ts.map +1 -0
  165. package/dist/astro/native/html.js +10 -0
  166. package/dist/astro/native/html.js.map +1 -0
  167. package/dist/astro/native/html.ts +9 -0
  168. package/dist/astro/native/icon.d.ts +3 -0
  169. package/dist/astro/native/icon.d.ts.map +1 -0
  170. package/dist/astro/native/icon.js +23 -0
  171. package/dist/astro/native/icon.js.map +1 -0
  172. package/dist/astro/native/icon.ts +21 -0
  173. package/dist/astro/native/inline-text.css +15 -0
  174. package/dist/astro/native/map.d.ts +14 -0
  175. package/dist/astro/native/map.d.ts.map +1 -0
  176. package/dist/astro/native/map.js +60 -0
  177. package/dist/astro/native/map.js.map +1 -0
  178. package/dist/astro/native/map.ts +70 -0
  179. package/dist/astro/native/motion-preference.d.ts +50 -0
  180. package/dist/astro/native/motion-preference.d.ts.map +1 -0
  181. package/dist/astro/native/motion-preference.js +132 -0
  182. package/dist/astro/native/motion-preference.js.map +1 -0
  183. package/dist/astro/native/motion-preference.ts +158 -0
  184. package/dist/astro/native/motion.d.ts +101 -0
  185. package/dist/astro/native/motion.d.ts.map +1 -0
  186. package/dist/astro/native/motion.js +168 -0
  187. package/dist/astro/native/motion.js.map +1 -0
  188. package/dist/astro/native/motion.ts +312 -0
  189. package/dist/astro/native/query-carousel.d.ts +12 -0
  190. package/dist/astro/native/query-carousel.d.ts.map +1 -0
  191. package/dist/astro/native/query-carousel.js +36 -0
  192. package/dist/astro/native/query-carousel.js.map +1 -0
  193. package/dist/astro/native/query-carousel.ts +56 -0
  194. package/dist/astro/native/query-loop.d.ts +38 -0
  195. package/dist/astro/native/query-loop.d.ts.map +1 -0
  196. package/dist/astro/native/query-loop.js +20 -0
  197. package/dist/astro/native/query-loop.js.map +1 -0
  198. package/dist/astro/native/query-loop.ts +67 -0
  199. package/dist/astro/native/registry.d.ts +3 -0
  200. package/dist/astro/native/registry.d.ts.map +1 -0
  201. package/dist/astro/native/registry.js +84 -0
  202. package/dist/astro/native/registry.js.map +1 -0
  203. package/dist/astro/native/registry.ts +85 -0
  204. package/dist/astro/native/sf-block-binding.astro +20 -0
  205. package/dist/astro/native/sf-post-field.astro +9 -0
  206. package/dist/astro/native/sf-term-field.astro +9 -0
  207. package/dist/astro/native/timeline.css +4 -0
  208. package/dist/astro/native/timeline.d.ts +28 -0
  209. package/dist/astro/native/timeline.d.ts.map +1 -0
  210. package/dist/astro/native/timeline.js +43 -0
  211. package/dist/astro/native/timeline.js.map +1 -0
  212. package/dist/astro/native/timeline.ts +79 -0
  213. package/dist/astro/preferences/AccessibilityPanel.astro +105 -0
  214. package/dist/astro/preferences/ColorModeToggle.astro +26 -0
  215. package/dist/astro/preferences/MotionToggle.astro +27 -0
  216. package/dist/astro/preferences/PreferencesRuntime.astro +9 -0
  217. package/dist/astro/preferences/ThemeToggle.astro +30 -0
  218. package/dist/astro/preferences/Toggle.astro +50 -0
  219. package/dist/astro/preferences/preferences.css +125 -0
  220. package/dist/block-renderers.d.ts +22 -3
  221. package/dist/block-renderers.d.ts.map +1 -1
  222. package/dist/block-renderers.js.map +1 -1
  223. package/dist/client.d.ts +17 -1
  224. package/dist/client.d.ts.map +1 -1
  225. package/dist/client.js +63 -9
  226. package/dist/client.js.map +1 -1
  227. package/dist/composition.d.ts +14 -0
  228. package/dist/composition.d.ts.map +1 -0
  229. package/dist/composition.js +125 -0
  230. package/dist/composition.js.map +1 -0
  231. package/dist/default-blocks.d.ts +9 -0
  232. package/dist/default-blocks.d.ts.map +1 -0
  233. package/dist/default-blocks.js +120 -0
  234. package/dist/default-blocks.js.map +1 -0
  235. package/dist/env.d.ts +9 -0
  236. package/dist/env.d.ts.map +1 -1
  237. package/dist/env.js +20 -0
  238. package/dist/env.js.map +1 -1
  239. package/dist/index.d.ts +8 -0
  240. package/dist/index.d.ts.map +1 -1
  241. package/dist/index.js +7 -0
  242. package/dist/index.js.map +1 -1
  243. package/dist/links.d.ts +5 -0
  244. package/dist/links.d.ts.map +1 -0
  245. package/dist/links.js +32 -0
  246. package/dist/links.js.map +1 -0
  247. package/dist/media.d.ts +28 -0
  248. package/dist/media.d.ts.map +1 -0
  249. package/dist/media.js +212 -0
  250. package/dist/media.js.map +1 -0
  251. package/dist/motion-preference.d.ts +50 -0
  252. package/dist/motion-preference.d.ts.map +1 -0
  253. package/dist/motion-preference.js +132 -0
  254. package/dist/motion-preference.js.map +1 -0
  255. package/dist/preferences-runtime.d.ts +3 -0
  256. package/dist/preferences-runtime.d.ts.map +1 -0
  257. package/dist/preferences-runtime.js +23 -0
  258. package/dist/preferences-runtime.js.map +1 -0
  259. package/dist/preferences-styleflow.d.ts +3 -0
  260. package/dist/preferences-styleflow.d.ts.map +1 -0
  261. package/dist/preferences-styleflow.js +14 -0
  262. package/dist/preferences-styleflow.js.map +1 -0
  263. package/dist/preferences.d.ts +4 -0
  264. package/dist/preferences.d.ts.map +1 -0
  265. package/dist/preferences.js +4 -0
  266. package/dist/preferences.js.map +1 -0
  267. package/dist/reserved-area.d.ts +10 -0
  268. package/dist/reserved-area.d.ts.map +1 -0
  269. package/dist/reserved-area.js +93 -0
  270. package/dist/reserved-area.js.map +1 -0
  271. package/dist/styleflow.d.ts +18 -1
  272. package/dist/styleflow.d.ts.map +1 -1
  273. package/dist/styleflow.js +82 -11
  274. package/dist/styleflow.js.map +1 -1
  275. package/dist/svg-media-runtime.d.ts +3 -0
  276. package/dist/svg-media-runtime.d.ts.map +1 -0
  277. package/dist/svg-media-runtime.js +33 -0
  278. package/dist/svg-media-runtime.js.map +1 -0
  279. package/dist/svg-media-types.d.ts +11 -0
  280. package/dist/svg-media-types.d.ts.map +1 -0
  281. package/dist/svg-media-types.js +2 -0
  282. package/dist/svg-media-types.js.map +1 -0
  283. package/dist/svg-media.d.ts +10 -0
  284. package/dist/svg-media.d.ts.map +1 -0
  285. package/dist/svg-media.js +34 -0
  286. package/dist/svg-media.js.map +1 -0
  287. package/dist/templates.d.ts +16 -16
  288. package/dist/text.d.ts +3 -0
  289. package/dist/text.d.ts.map +1 -0
  290. package/dist/text.js +6 -0
  291. package/dist/text.js.map +1 -0
  292. package/dist/theme-runtime.d.ts +16 -0
  293. package/dist/theme-runtime.d.ts.map +1 -0
  294. package/dist/theme-runtime.js +100 -0
  295. package/dist/theme-runtime.js.map +1 -0
  296. package/dist/tsconfig.tsbuildinfo +1 -1
  297. package/dist/types.d.ts +84 -1
  298. package/dist/types.d.ts.map +1 -1
  299. package/dist/types.js.map +1 -1
  300. package/dist/vivid-colors-preference.d.ts +31 -0
  301. package/dist/vivid-colors-preference.d.ts.map +1 -0
  302. package/dist/vivid-colors-preference.js +102 -0
  303. package/dist/vivid-colors-preference.js.map +1 -0
  304. package/package.json +53 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flowpress-navigation-controller.js","sourceRoot":"","sources":["../../../src/astro/native/flowpress-navigation-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,w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mB,CAAC,CAAC;IACrE,CAAC;AACH,CAAC","sourcesContent":["import { SF_MOTION_DRAWER_EXIT_MS } from \"./motion.js\";\nimport { getMotionPreference } from \"./motion-preference.js\";\n\nconst DEFAULT_OVERLAY_BREAKPOINT = \"64rem\";\nconst FOCUSABLE = \"a, button, summary, [tabindex]:not([tabindex='-1'])\";\nconst scrollLocks = new Set<HTMLElement>();\nlet previousRootOverflow = \"\";\n\n/** `64rem` becomes `(max-width: 63.999rem)`, the exact complement of `min-width: 64rem`. */\nfunction overlayQuery(breakpoint: string) {\n const match = /^(\\d+(?:\\.\\d+)?)rem$/.exec(breakpoint.trim());\n const rem = match ? Number(match[1]) : Number.parseFloat(DEFAULT_OVERLAY_BREAKPOINT);\n return `(max-width: ${(rem - 0.001).toFixed(3)}rem)`;\n}\n\nclass FlowpressNavigation extends HTMLElement {\n private toggleButton: HTMLButtonElement | null = null;\n private panel: HTMLElement | null = null;\n private backdrop: HTMLElement | null = null;\n private media!: MediaQueryList;\n private closeTimer: number | undefined;\n\n connectedCallback() {\n if (this.dataset.ready === \"true\") return;\n this.toggleButton = this.querySelector<HTMLButtonElement>(\"[data-navigation-toggle]\");\n this.panel = this.querySelector<HTMLElement>(\"[data-navigation-panel]\");\n this.backdrop = this.querySelector<HTMLElement>(\"[data-navigation-backdrop]\");\n if (!this.toggleButton || !this.panel) return;\n this.media = window.matchMedia(\n overlayQuery(this.dataset.overlayBreakpoint || DEFAULT_OVERLAY_BREAKPOINT),\n );\n\n this.toggleButton.addEventListener(\"click\", this.handleToggle);\n this.backdrop?.addEventListener(\"click\", this.handleBackdrop);\n this.panel.addEventListener(\"click\", this.handlePanelClick);\n this.addEventListener(\"keydown\", this.handleKeydown);\n this.media.addEventListener(\"change\", this.syncMode);\n document.addEventListener(\"pointerdown\", this.handleOutsidePointer);\n this.querySelectorAll<HTMLDetailsElement>(\"details[data-navigation-disclosure]\")\n .forEach((details) => details.addEventListener(\"toggle\", this.handleDisclosure));\n this.syncMode();\n this.dataset.ready = \"true\";\n }\n\n disconnectedCallback() {\n this.toggleButton?.removeEventListener(\"click\", this.handleToggle);\n this.backdrop?.removeEventListener(\"click\", this.handleBackdrop);\n this.panel?.removeEventListener(\"click\", this.handlePanelClick);\n this.removeEventListener(\"keydown\", this.handleKeydown);\n this.media?.removeEventListener(\"change\", this.syncMode);\n document.removeEventListener(\"pointerdown\", this.handleOutsidePointer);\n this.querySelectorAll<HTMLDetailsElement>(\"details[data-navigation-disclosure]\")\n .forEach((details) => details.removeEventListener(\"toggle\", this.handleDisclosure));\n this.unlockDocumentScroll();\n window.clearTimeout(this.closeTimer);\n delete this.dataset.ready;\n }\n\n private usesOverlay = () => {\n const mode = this.dataset.overlay || \"mobile\";\n return mode === \"always\" || (mode === \"mobile\" && this.media.matches);\n };\n\n private isOpen = () => this.toggleButton?.getAttribute(\"aria-expanded\") === \"true\";\n private label = (state: \"open\" | \"close\") =>\n this.dataset[state === \"open\" ? \"openLabel\" : \"closeLabel\"] ??\n (state === \"open\" ? \"Open menu\" : \"Close menu\");\n\n private setToggleState = (expanded: boolean) => {\n if (!this.toggleButton) return;\n const label = this.label(expanded ? \"close\" : \"open\");\n this.toggleButton.setAttribute(\"aria-expanded\", String(expanded));\n this.toggleButton.setAttribute(\"aria-label\", label);\n const accessibleLabel = this.toggleButton.querySelector<HTMLElement>(\".sr-only\");\n if (accessibleLabel) accessibleLabel.textContent = label;\n };\n\n // Locked on <html>, not <body>: with a non-visible overflow on <html> (the site clips it\n // horizontally) a locked <body> becomes a scroll container of its own, and the sticky\n // header stops sticking and jumps away from the open menu.\n private lockDocumentScroll = () => {\n if (scrollLocks.has(this)) return;\n if (scrollLocks.size === 0) {\n previousRootOverflow = document.documentElement.style.overflow;\n document.documentElement.style.overflow = \"hidden\";\n }\n scrollLocks.add(this);\n };\n\n private unlockDocumentScroll = () => {\n if (!scrollLocks.delete(this)) return;\n if (scrollLocks.size === 0) document.documentElement.style.overflow = previousRootOverflow;\n };\n\n private open = () => {\n if (!this.toggleButton || !this.panel) return;\n window.clearTimeout(this.closeTimer);\n this.panel.hidden = false;\n this.panel.inert = false;\n if (this.backdrop) this.backdrop.hidden = false;\n this.setToggleState(true);\n this.lockDocumentScroll();\n // Commit the closed styles once the panel is displayed, so the open state transitions.\n void this.panel.offsetWidth;\n requestAnimationFrame(() => {\n this.panel?.setAttribute(\"data-sf-motion-state\", \"open\");\n this.backdrop?.setAttribute(\"data-sf-motion-state\", \"open\");\n // The panel only becomes focusable once the open state has been rendered.\n requestAnimationFrame(() => {\n if (this.isOpen()) this.panel?.querySelector<HTMLElement>(FOCUSABLE)?.focus();\n });\n });\n };\n\n private close = (restoreFocus = false, immediate = false) => {\n if (!this.toggleButton || !this.panel) return;\n this.setToggleState(false);\n this.panel.inert = true;\n this.panel.setAttribute(\"data-sf-motion-state\", \"closed\");\n this.backdrop?.setAttribute(\"data-sf-motion-state\", \"closed\");\n this.querySelectorAll(\"details[open]\").forEach((details) => details.removeAttribute(\"open\"));\n this.unlockDocumentScroll();\n\n const reducedMotion = getMotionPreference() === \"reduce\";\n const delay = immediate || reducedMotion ? 0 : SF_MOTION_DRAWER_EXIT_MS;\n window.clearTimeout(this.closeTimer);\n this.closeTimer = window.setTimeout(() => {\n if (!this.isOpen() && this.usesOverlay()) {\n if (this.panel) this.panel.hidden = true;\n if (this.backdrop) this.backdrop.hidden = true;\n }\n }, delay);\n if (restoreFocus) this.toggleButton.focus();\n };\n\n private syncMode = () => {\n if (!this.toggleButton || !this.panel) return;\n const overlay = this.usesOverlay();\n this.dataset.overlayActive = String(overlay);\n this.toggleButton.hidden = !overlay;\n if (overlay) {\n this.close(false, true);\n return;\n }\n\n window.clearTimeout(this.closeTimer);\n this.setToggleState(false);\n this.panel.hidden = false;\n this.panel.inert = false;\n this.panel.setAttribute(\"data-sf-motion-state\", \"open\");\n if (this.backdrop) {\n this.backdrop.hidden = true;\n this.backdrop.setAttribute(\"data-sf-motion-state\", \"closed\");\n }\n this.unlockDocumentScroll();\n };\n\n private handleToggle = () => this.isOpen() ? this.close(true) : this.open();\n private handleBackdrop = () => this.close(true);\n private handlePanelClick = (event: Event) => {\n if (this.usesOverlay() && event.target instanceof Element && event.target.closest(\"a\")) {\n this.close(false);\n }\n };\n private handleDisclosure = (event: Event) => {\n const current = event.currentTarget;\n if (!(current instanceof HTMLDetailsElement) || !current.open) return;\n current.closest(\"ul\")?.querySelectorAll<HTMLDetailsElement>(\":scope > li > details[open]\")\n .forEach((details) => {\n if (details !== current) details.removeAttribute(\"open\");\n });\n };\n private handleOutsidePointer = (event: PointerEvent) => {\n if (this.usesOverlay() || this.contains(event.target as Node)) return;\n this.querySelectorAll(\"details[open]\").forEach((details) => details.removeAttribute(\"open\"));\n };\n private handleKeydown = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n if (this.usesOverlay() && this.isOpen()) {\n event.preventDefault();\n this.close(true);\n } else {\n const disclosure = this.querySelector<HTMLDetailsElement>(\"details[open]\");\n if (disclosure) {\n event.preventDefault();\n disclosure.removeAttribute(\"open\");\n disclosure.querySelector<HTMLElement>(\"summary\")?.focus();\n }\n }\n return;\n }\n if (event.key !== \"Tab\" || !this.usesOverlay() || !this.isOpen() || !this.panel || !this.toggleButton) return;\n // The toggle closes the menu, so it belongs to the same tab cycle as the links.\n const focusable = [this.toggleButton, ...this.panel.querySelectorAll<HTMLElement>(FOCUSABLE)]\n .filter((element): element is HTMLElement => element instanceof HTMLElement)\n .filter((element) => !element.hasAttribute(\"disabled\") && !element.closest(\"[inert]\"));\n const visibleFocusable = focusable.filter((element) => element.getClientRects().length > 0);\n const first = visibleFocusable[0];\n const last = visibleFocusable[visibleFocusable.length - 1];\n if (!first || !last) return;\n if (event.shiftKey && document.activeElement === first) {\n event.preventDefault();\n last.focus();\n } else if (!event.shiftKey && document.activeElement === last) {\n event.preventDefault();\n first.focus();\n }\n };\n}\n\nexport function registerFlowpressNavigation() {\n if (!customElements.get(\"flowpress-navigation\")) {\n customElements.define(\"flowpress-navigation\", FlowpressNavigation);\n }\n}\n"]}
@@ -0,0 +1,215 @@
1
+ import { SF_MOTION_DRAWER_EXIT_MS } from "./motion.js";
2
+ import { getMotionPreference } from "./motion-preference.js";
3
+
4
+ const DEFAULT_OVERLAY_BREAKPOINT = "64rem";
5
+ const FOCUSABLE = "a, button, summary, [tabindex]:not([tabindex='-1'])";
6
+ const scrollLocks = new Set<HTMLElement>();
7
+ let previousRootOverflow = "";
8
+
9
+ /** `64rem` becomes `(max-width: 63.999rem)`, the exact complement of `min-width: 64rem`. */
10
+ function overlayQuery(breakpoint: string) {
11
+ const match = /^(\d+(?:\.\d+)?)rem$/.exec(breakpoint.trim());
12
+ const rem = match ? Number(match[1]) : Number.parseFloat(DEFAULT_OVERLAY_BREAKPOINT);
13
+ return `(max-width: ${(rem - 0.001).toFixed(3)}rem)`;
14
+ }
15
+
16
+ class FlowpressNavigation extends HTMLElement {
17
+ private toggleButton: HTMLButtonElement | null = null;
18
+ private panel: HTMLElement | null = null;
19
+ private backdrop: HTMLElement | null = null;
20
+ private media!: MediaQueryList;
21
+ private closeTimer: number | undefined;
22
+
23
+ connectedCallback() {
24
+ if (this.dataset.ready === "true") return;
25
+ this.toggleButton = this.querySelector<HTMLButtonElement>("[data-navigation-toggle]");
26
+ this.panel = this.querySelector<HTMLElement>("[data-navigation-panel]");
27
+ this.backdrop = this.querySelector<HTMLElement>("[data-navigation-backdrop]");
28
+ if (!this.toggleButton || !this.panel) return;
29
+ this.media = window.matchMedia(
30
+ overlayQuery(this.dataset.overlayBreakpoint || DEFAULT_OVERLAY_BREAKPOINT),
31
+ );
32
+
33
+ this.toggleButton.addEventListener("click", this.handleToggle);
34
+ this.backdrop?.addEventListener("click", this.handleBackdrop);
35
+ this.panel.addEventListener("click", this.handlePanelClick);
36
+ this.addEventListener("keydown", this.handleKeydown);
37
+ this.media.addEventListener("change", this.syncMode);
38
+ document.addEventListener("pointerdown", this.handleOutsidePointer);
39
+ this.querySelectorAll<HTMLDetailsElement>("details[data-navigation-disclosure]")
40
+ .forEach((details) => details.addEventListener("toggle", this.handleDisclosure));
41
+ this.syncMode();
42
+ this.dataset.ready = "true";
43
+ }
44
+
45
+ disconnectedCallback() {
46
+ this.toggleButton?.removeEventListener("click", this.handleToggle);
47
+ this.backdrop?.removeEventListener("click", this.handleBackdrop);
48
+ this.panel?.removeEventListener("click", this.handlePanelClick);
49
+ this.removeEventListener("keydown", this.handleKeydown);
50
+ this.media?.removeEventListener("change", this.syncMode);
51
+ document.removeEventListener("pointerdown", this.handleOutsidePointer);
52
+ this.querySelectorAll<HTMLDetailsElement>("details[data-navigation-disclosure]")
53
+ .forEach((details) => details.removeEventListener("toggle", this.handleDisclosure));
54
+ this.unlockDocumentScroll();
55
+ window.clearTimeout(this.closeTimer);
56
+ delete this.dataset.ready;
57
+ }
58
+
59
+ private usesOverlay = () => {
60
+ const mode = this.dataset.overlay || "mobile";
61
+ return mode === "always" || (mode === "mobile" && this.media.matches);
62
+ };
63
+
64
+ private isOpen = () => this.toggleButton?.getAttribute("aria-expanded") === "true";
65
+ private label = (state: "open" | "close") =>
66
+ this.dataset[state === "open" ? "openLabel" : "closeLabel"] ??
67
+ (state === "open" ? "Open menu" : "Close menu");
68
+
69
+ private setToggleState = (expanded: boolean) => {
70
+ if (!this.toggleButton) return;
71
+ const label = this.label(expanded ? "close" : "open");
72
+ this.toggleButton.setAttribute("aria-expanded", String(expanded));
73
+ this.toggleButton.setAttribute("aria-label", label);
74
+ const accessibleLabel = this.toggleButton.querySelector<HTMLElement>(".sr-only");
75
+ if (accessibleLabel) accessibleLabel.textContent = label;
76
+ };
77
+
78
+ // Locked on <html>, not <body>: with a non-visible overflow on <html> (the site clips it
79
+ // horizontally) a locked <body> becomes a scroll container of its own, and the sticky
80
+ // header stops sticking and jumps away from the open menu.
81
+ private lockDocumentScroll = () => {
82
+ if (scrollLocks.has(this)) return;
83
+ if (scrollLocks.size === 0) {
84
+ previousRootOverflow = document.documentElement.style.overflow;
85
+ document.documentElement.style.overflow = "hidden";
86
+ }
87
+ scrollLocks.add(this);
88
+ };
89
+
90
+ private unlockDocumentScroll = () => {
91
+ if (!scrollLocks.delete(this)) return;
92
+ if (scrollLocks.size === 0) document.documentElement.style.overflow = previousRootOverflow;
93
+ };
94
+
95
+ private open = () => {
96
+ if (!this.toggleButton || !this.panel) return;
97
+ window.clearTimeout(this.closeTimer);
98
+ this.panel.hidden = false;
99
+ this.panel.inert = false;
100
+ if (this.backdrop) this.backdrop.hidden = false;
101
+ this.setToggleState(true);
102
+ this.lockDocumentScroll();
103
+ // Commit the closed styles once the panel is displayed, so the open state transitions.
104
+ void this.panel.offsetWidth;
105
+ requestAnimationFrame(() => {
106
+ this.panel?.setAttribute("data-sf-motion-state", "open");
107
+ this.backdrop?.setAttribute("data-sf-motion-state", "open");
108
+ // The panel only becomes focusable once the open state has been rendered.
109
+ requestAnimationFrame(() => {
110
+ if (this.isOpen()) this.panel?.querySelector<HTMLElement>(FOCUSABLE)?.focus();
111
+ });
112
+ });
113
+ };
114
+
115
+ private close = (restoreFocus = false, immediate = false) => {
116
+ if (!this.toggleButton || !this.panel) return;
117
+ this.setToggleState(false);
118
+ this.panel.inert = true;
119
+ this.panel.setAttribute("data-sf-motion-state", "closed");
120
+ this.backdrop?.setAttribute("data-sf-motion-state", "closed");
121
+ this.querySelectorAll("details[open]").forEach((details) => details.removeAttribute("open"));
122
+ this.unlockDocumentScroll();
123
+
124
+ const reducedMotion = getMotionPreference() === "reduce";
125
+ const delay = immediate || reducedMotion ? 0 : SF_MOTION_DRAWER_EXIT_MS;
126
+ window.clearTimeout(this.closeTimer);
127
+ this.closeTimer = window.setTimeout(() => {
128
+ if (!this.isOpen() && this.usesOverlay()) {
129
+ if (this.panel) this.panel.hidden = true;
130
+ if (this.backdrop) this.backdrop.hidden = true;
131
+ }
132
+ }, delay);
133
+ if (restoreFocus) this.toggleButton.focus();
134
+ };
135
+
136
+ private syncMode = () => {
137
+ if (!this.toggleButton || !this.panel) return;
138
+ const overlay = this.usesOverlay();
139
+ this.dataset.overlayActive = String(overlay);
140
+ this.toggleButton.hidden = !overlay;
141
+ if (overlay) {
142
+ this.close(false, true);
143
+ return;
144
+ }
145
+
146
+ window.clearTimeout(this.closeTimer);
147
+ this.setToggleState(false);
148
+ this.panel.hidden = false;
149
+ this.panel.inert = false;
150
+ this.panel.setAttribute("data-sf-motion-state", "open");
151
+ if (this.backdrop) {
152
+ this.backdrop.hidden = true;
153
+ this.backdrop.setAttribute("data-sf-motion-state", "closed");
154
+ }
155
+ this.unlockDocumentScroll();
156
+ };
157
+
158
+ private handleToggle = () => this.isOpen() ? this.close(true) : this.open();
159
+ private handleBackdrop = () => this.close(true);
160
+ private handlePanelClick = (event: Event) => {
161
+ if (this.usesOverlay() && event.target instanceof Element && event.target.closest("a")) {
162
+ this.close(false);
163
+ }
164
+ };
165
+ private handleDisclosure = (event: Event) => {
166
+ const current = event.currentTarget;
167
+ if (!(current instanceof HTMLDetailsElement) || !current.open) return;
168
+ current.closest("ul")?.querySelectorAll<HTMLDetailsElement>(":scope > li > details[open]")
169
+ .forEach((details) => {
170
+ if (details !== current) details.removeAttribute("open");
171
+ });
172
+ };
173
+ private handleOutsidePointer = (event: PointerEvent) => {
174
+ if (this.usesOverlay() || this.contains(event.target as Node)) return;
175
+ this.querySelectorAll("details[open]").forEach((details) => details.removeAttribute("open"));
176
+ };
177
+ private handleKeydown = (event: KeyboardEvent) => {
178
+ if (event.key === "Escape") {
179
+ if (this.usesOverlay() && this.isOpen()) {
180
+ event.preventDefault();
181
+ this.close(true);
182
+ } else {
183
+ const disclosure = this.querySelector<HTMLDetailsElement>("details[open]");
184
+ if (disclosure) {
185
+ event.preventDefault();
186
+ disclosure.removeAttribute("open");
187
+ disclosure.querySelector<HTMLElement>("summary")?.focus();
188
+ }
189
+ }
190
+ return;
191
+ }
192
+ if (event.key !== "Tab" || !this.usesOverlay() || !this.isOpen() || !this.panel || !this.toggleButton) return;
193
+ // The toggle closes the menu, so it belongs to the same tab cycle as the links.
194
+ const focusable = [this.toggleButton, ...this.panel.querySelectorAll<HTMLElement>(FOCUSABLE)]
195
+ .filter((element): element is HTMLElement => element instanceof HTMLElement)
196
+ .filter((element) => !element.hasAttribute("disabled") && !element.closest("[inert]"));
197
+ const visibleFocusable = focusable.filter((element) => element.getClientRects().length > 0);
198
+ const first = visibleFocusable[0];
199
+ const last = visibleFocusable[visibleFocusable.length - 1];
200
+ if (!first || !last) return;
201
+ if (event.shiftKey && document.activeElement === first) {
202
+ event.preventDefault();
203
+ last.focus();
204
+ } else if (!event.shiftKey && document.activeElement === last) {
205
+ event.preventDefault();
206
+ first.focus();
207
+ }
208
+ };
209
+ }
210
+
211
+ export function registerFlowpressNavigation() {
212
+ if (!customElements.get("flowpress-navigation")) {
213
+ customElements.define("flowpress-navigation", FlowpressNavigation);
214
+ }
215
+ }
@@ -0,0 +1,17 @@
1
+ /* Scoped structural navigation. StyleFlow supplies its colors, spacing and type. */
2
+ flowpress-navigation { display: block; position: relative; }
3
+ flowpress-navigation .site-nav__list { list-style: none; }
4
+ flowpress-navigation .site-nav__toggle[hidden], flowpress-navigation [hidden] { display: none; }
5
+ flowpress-navigation .site-nav__toggle { min-inline-size: 2.75rem; min-block-size: 2.75rem; }
6
+ flowpress-navigation .site-nav__panel { position: relative; }
7
+ flowpress-navigation[data-ready="true"][data-overlay-active="true"] .site-nav__panel { position: absolute; inset-block-start: 100%; inset-inline: 0; z-index: var(--fp-navigation-z, 20); }
8
+ flowpress-navigation .site-nav__sheet { position: absolute; inset: 0; z-index: -1; }
9
+ flowpress-navigation .site-nav__backdrop { position: fixed; inset: 0; z-index: var(--fp-navigation-backdrop-z, -1); }
10
+ flowpress-navigation[data-overlay-active="false"][data-orientation="horizontal"] .site-nav__list { flex-direction: row; flex-wrap: wrap; }
11
+ flowpress-navigation .site-nav__summary { cursor: pointer; }
12
+ flowpress-navigation .site-nav__link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
13
+ flowpress-navigation .sf-motion-menu-toggle__icon { display: block; inline-size: 1.25rem; block-size: 1.25rem; position: relative; }
14
+ flowpress-navigation .sf-motion-menu-toggle__line { position: absolute; inset-inline: 0; block-size: 2px; background: currentColor; inset-block-start: 35%; }
15
+ flowpress-navigation .sf-motion-menu-toggle__line + .sf-motion-menu-toggle__line { inset-block-start: 65%; }
16
+ flowpress-navigation [aria-expanded="true"] .sf-motion-menu-toggle__line { inset-block-start: 50%; transform: rotate(45deg); }
17
+ flowpress-navigation [aria-expanded="true"] .sf-motion-menu-toggle__line + .sf-motion-menu-toggle__line { transform: rotate(-45deg); }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=grid-bleed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-bleed.d.ts","sourceRoot":"","sources":["../../../src/astro/native/grid-bleed.js"],"names":[],"mappings":""}
@@ -0,0 +1,123 @@
1
+ /* Exact logical viewport offset for grid items inside nested Styleflow containers. */
2
+ (function () {
3
+ const breakpoints = ["base", "sm", "md", "lg", "xl", "2xl"];
4
+ const thresholds = [0, 640, 768, 1024, 1280, 1536];
5
+ const installed = new WeakSet();
6
+ const resizeObservers = new WeakMap();
7
+ const resizeObserved = new WeakMap();
8
+
9
+ const setOffset = (element, property, value) => {
10
+ if (element.style.getPropertyValue(property) !== value) {
11
+ element.style.setProperty(property, value);
12
+ }
13
+ };
14
+
15
+ const update = (doc) => {
16
+ if (!doc?.defaultView) return;
17
+ const win = doc.defaultView;
18
+ const viewportWidth = doc.documentElement.clientWidth;
19
+ const breakpoint = breakpoints.reduce((current, name, index) =>
20
+ win.innerWidth >= thresholds[index] ? name : current, "base");
21
+ for (const item of doc.querySelectorAll(".fp-grid > .fp-bleed-managed")) {
22
+ const grid = item.parentElement;
23
+ const container = grid.closest('[data-layout-role="container"], .sf-container');
24
+ const resizeObserver = resizeObservers.get(doc);
25
+ const observed = resizeObserved.get(doc);
26
+ for (const element of [grid, container]) {
27
+ if (element && !observed?.has(element)) {
28
+ resizeObserver?.observe(element);
29
+ observed?.add(element);
30
+ }
31
+ }
32
+ if (!container) {
33
+ item.style.removeProperty("--fp-bleed-start-offset");
34
+ item.style.removeProperty("--fp-bleed-end-offset");
35
+ continue;
36
+ }
37
+ const active = item.classList.contains(`fp-bleed-${breakpoint}-start`) ||
38
+ item.classList.contains(`fp-bleed-${breakpoint}-end`);
39
+ if (!active) continue;
40
+ const rect = grid.getBoundingClientRect();
41
+ const style = win.getComputedStyle(grid);
42
+ const rtl = style.direction === "rtl";
43
+ const insetStart = (Number.parseFloat(style.paddingInlineStart) || 0) +
44
+ (Number.parseFloat(style.borderInlineStartWidth) || 0);
45
+ const insetEnd = (Number.parseFloat(style.paddingInlineEnd) || 0) +
46
+ (Number.parseFloat(style.borderInlineEndWidth) || 0);
47
+ const start = rtl ? viewportWidth - rect.right + insetStart : rect.left + insetStart;
48
+ const end = rtl ? rect.left + insetEnd : viewportWidth - rect.right + insetEnd;
49
+ setOffset(item, "--fp-bleed-start-offset", `${-Math.max(0, start)}px`);
50
+ setOffset(item, "--fp-bleed-end-offset", `${-Math.max(0, end)}px`);
51
+ }
52
+ };
53
+
54
+ const install = (doc) => {
55
+ if (!doc?.body || !doc.defaultView || installed.has(doc)) return;
56
+ installed.add(doc);
57
+ const view = doc.defaultView;
58
+ let frame = 0;
59
+ let active = true;
60
+ const cleanup = () => {
61
+ if (!active) return;
62
+ active = false;
63
+ if (frame) view.cancelAnimationFrame(frame);
64
+ frame = 0;
65
+ observer.disconnect();
66
+ resizeObserver.disconnect();
67
+ resizeObservers.delete(doc);
68
+ resizeObserved.delete(doc);
69
+ view.removeEventListener("resize", schedule);
70
+ view.removeEventListener("pagehide", cleanup);
71
+ };
72
+ const schedule = () => {
73
+ if (!active) return;
74
+ if (!doc.defaultView) { cleanup(); return; }
75
+ if (frame) return;
76
+ frame = view.requestAnimationFrame(() => {
77
+ frame = 0;
78
+ if (!active || !doc.defaultView) { cleanup(); return; }
79
+ update(doc);
80
+ });
81
+ };
82
+ const observer = new MutationObserver((mutations) => {
83
+ if (mutations.some((mutation) => mutation.type === "childList" ||
84
+ (mutation.type === "attributes" &&
85
+ (mutation.target.classList.contains("fp-grid") ||
86
+ mutation.target.classList.contains("fp-bleed-managed") ||
87
+ ["data-layout-role", "data-layout-density", "dir"].includes(mutation.attributeName))))) {
88
+ schedule();
89
+ }
90
+ });
91
+ observer.observe(doc.body, { childList: true, subtree: true, attributes: true, attributeFilter: ["class", "data-layout-role", "data-layout-density", "dir"] });
92
+ view.addEventListener("resize", schedule, { passive: true });
93
+ view.addEventListener("pagehide", cleanup, { once: true });
94
+ const resizeObserver = new ResizeObserver(schedule);
95
+ resizeObservers.set(doc, resizeObserver);
96
+ resizeObserved.set(doc, new WeakSet());
97
+ resizeObserver.observe(doc.documentElement);
98
+ update(doc);
99
+ };
100
+
101
+ const installCanvas = () => {
102
+ install(document);
103
+ for (const frame of document.querySelectorAll('iframe[name="editor-canvas"]')) {
104
+ try {
105
+ install(frame.contentDocument);
106
+ if (!frame.dataset.fpGridBleedListener) {
107
+ frame.addEventListener("load", installCanvas);
108
+ frame.dataset.fpGridBleedListener = "true";
109
+ }
110
+ } catch {
111
+ // The WordPress canvas is same-origin; ignore unrelated frames.
112
+ }
113
+ }
114
+ };
115
+
116
+ window.flowpressGridBleedUpdate = update;
117
+ if (document.readyState === "loading") {
118
+ document.addEventListener("DOMContentLoaded", installCanvas, { once: true });
119
+ } else {
120
+ installCanvas();
121
+ }
122
+ new MutationObserver(installCanvas).observe(document.documentElement, { childList: true, subtree: true });
123
+ })();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-bleed.js","sourceRoot":"","sources":["../../../src/astro/native/grid-bleed.js"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,CAAC;IACC,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5D,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,GAAG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CAAC;IAEF,MAAM,CAAC,wBAAwB,GAAG,MAAM,CAAC;IACzC,IAAI,QAAQ,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;QACtC,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,aAAa,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/E,CAAC;SAAM,CAAC;QACN,aAAa,EAAE,CAAC;IAClB,CAAC;IACD,IAAI,gBAAgB,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AAC5G,CAAC,CAAC,EAAE,CAAC","sourcesContent":["/* Exact logical viewport offset for grid items inside nested Styleflow containers. */\n(function () {\n const breakpoints = [\"base\", \"sm\", \"md\", \"lg\", \"xl\", \"2xl\"];\n const thresholds = [0, 640, 768, 1024, 1280, 1536];\n const installed = new WeakSet();\n const resizeObservers = new WeakMap();\n const resizeObserved = new WeakMap();\n\n const setOffset = (element, property, value) => {\n if (element.style.getPropertyValue(property) !== value) {\n element.style.setProperty(property, value);\n }\n };\n\n const update = (doc) => {\n if (!doc?.defaultView) return;\n const win = doc.defaultView;\n const viewportWidth = doc.documentElement.clientWidth;\n const breakpoint = breakpoints.reduce((current, name, index) =>\n win.innerWidth >= thresholds[index] ? name : current, \"base\");\n for (const item of doc.querySelectorAll(\".fp-grid > .fp-bleed-managed\")) {\n const grid = item.parentElement;\n const container = grid.closest('[data-layout-role=\"container\"], .sf-container');\n const resizeObserver = resizeObservers.get(doc);\n const observed = resizeObserved.get(doc);\n for (const element of [grid, container]) {\n if (element && !observed?.has(element)) {\n resizeObserver?.observe(element);\n observed?.add(element);\n }\n }\n if (!container) {\n item.style.removeProperty(\"--fp-bleed-start-offset\");\n item.style.removeProperty(\"--fp-bleed-end-offset\");\n continue;\n }\n const active = item.classList.contains(`fp-bleed-${breakpoint}-start`) ||\n item.classList.contains(`fp-bleed-${breakpoint}-end`);\n if (!active) continue;\n const rect = grid.getBoundingClientRect();\n const style = win.getComputedStyle(grid);\n const rtl = style.direction === \"rtl\";\n const insetStart = (Number.parseFloat(style.paddingInlineStart) || 0) +\n (Number.parseFloat(style.borderInlineStartWidth) || 0);\n const insetEnd = (Number.parseFloat(style.paddingInlineEnd) || 0) +\n (Number.parseFloat(style.borderInlineEndWidth) || 0);\n const start = rtl ? viewportWidth - rect.right + insetStart : rect.left + insetStart;\n const end = rtl ? rect.left + insetEnd : viewportWidth - rect.right + insetEnd;\n setOffset(item, \"--fp-bleed-start-offset\", `${-Math.max(0, start)}px`);\n setOffset(item, \"--fp-bleed-end-offset\", `${-Math.max(0, end)}px`);\n }\n };\n\n const install = (doc) => {\n if (!doc?.body || !doc.defaultView || installed.has(doc)) return;\n installed.add(doc);\n const view = doc.defaultView;\n let frame = 0;\n let active = true;\n const cleanup = () => {\n if (!active) return;\n active = false;\n if (frame) view.cancelAnimationFrame(frame);\n frame = 0;\n observer.disconnect();\n resizeObserver.disconnect();\n resizeObservers.delete(doc);\n resizeObserved.delete(doc);\n view.removeEventListener(\"resize\", schedule);\n view.removeEventListener(\"pagehide\", cleanup);\n };\n const schedule = () => {\n if (!active) return;\n if (!doc.defaultView) { cleanup(); return; }\n if (frame) return;\n frame = view.requestAnimationFrame(() => {\n frame = 0;\n if (!active || !doc.defaultView) { cleanup(); return; }\n update(doc);\n });\n };\n const observer = new MutationObserver((mutations) => {\n if (mutations.some((mutation) => mutation.type === \"childList\" ||\n (mutation.type === \"attributes\" &&\n (mutation.target.classList.contains(\"fp-grid\") ||\n mutation.target.classList.contains(\"fp-bleed-managed\") ||\n [\"data-layout-role\", \"data-layout-density\", \"dir\"].includes(mutation.attributeName))))) {\n schedule();\n }\n });\n observer.observe(doc.body, { childList: true, subtree: true, attributes: true, attributeFilter: [\"class\", \"data-layout-role\", \"data-layout-density\", \"dir\"] });\n view.addEventListener(\"resize\", schedule, { passive: true });\n view.addEventListener(\"pagehide\", cleanup, { once: true });\n const resizeObserver = new ResizeObserver(schedule);\n resizeObservers.set(doc, resizeObserver);\n resizeObserved.set(doc, new WeakSet());\n resizeObserver.observe(doc.documentElement);\n update(doc);\n };\n\n const installCanvas = () => {\n install(document);\n for (const frame of document.querySelectorAll('iframe[name=\"editor-canvas\"]')) {\n try {\n install(frame.contentDocument);\n if (!frame.dataset.fpGridBleedListener) {\n frame.addEventListener(\"load\", installCanvas);\n frame.dataset.fpGridBleedListener = \"true\";\n }\n } catch {\n // The WordPress canvas is same-origin; ignore unrelated frames.\n }\n }\n };\n\n window.flowpressGridBleedUpdate = update;\n if (document.readyState === \"loading\") {\n document.addEventListener(\"DOMContentLoaded\", installCanvas, { once: true });\n } else {\n installCanvas();\n }\n new MutationObserver(installCanvas).observe(document.documentElement, { childList: true, subtree: true });\n})();\n"]}
@@ -0,0 +1,180 @@
1
+ /* Shared by Gutenberg, WordPress output and Astro. Geometry only; Styleflow owns spacing. */
2
+ [data-layout-role="container"], .sf-container { container: sf-container / inline-size; }
3
+ .fp-grid { display: grid !important; --fp-current-cols: 1; grid-template-columns: repeat(var(--fp-current-cols), minmax(0, 1fr)) !important; }
4
+ .fp-grid > .fp-grid-item { min-width: 0; --fp-used-span: 1; grid-column: span var(--fp-used-span) !important; }
5
+ .fp-align-start { align-items: start; }
6
+ .fp-align-center { align-items: center; }
7
+ .fp-align-end { align-items: end; }
8
+ .fp-align-stretch { align-items: stretch; }
9
+ .fp-grid > .fp-bleed-managed { margin-inline-start: 0; margin-inline-end: 0; }
10
+ .fp-cols-base-1 { --fp-current-cols: 1; }
11
+ .fp-grid > .fp-used-span-base-1 { --fp-used-span: 1; }
12
+ .fp-cols-base-2 { --fp-current-cols: 2; }
13
+ .fp-grid > .fp-used-span-base-2 { --fp-used-span: 2; }
14
+ .fp-cols-base-3 { --fp-current-cols: 3; }
15
+ .fp-grid > .fp-used-span-base-3 { --fp-used-span: 3; }
16
+ .fp-cols-base-4 { --fp-current-cols: 4; }
17
+ .fp-grid > .fp-used-span-base-4 { --fp-used-span: 4; }
18
+ .fp-cols-base-5 { --fp-current-cols: 5; }
19
+ .fp-grid > .fp-used-span-base-5 { --fp-used-span: 5; }
20
+ .fp-cols-base-6 { --fp-current-cols: 6; }
21
+ .fp-grid > .fp-used-span-base-6 { --fp-used-span: 6; }
22
+ .fp-cols-base-7 { --fp-current-cols: 7; }
23
+ .fp-grid > .fp-used-span-base-7 { --fp-used-span: 7; }
24
+ .fp-cols-base-8 { --fp-current-cols: 8; }
25
+ .fp-grid > .fp-used-span-base-8 { --fp-used-span: 8; }
26
+ .fp-cols-base-9 { --fp-current-cols: 9; }
27
+ .fp-grid > .fp-used-span-base-9 { --fp-used-span: 9; }
28
+ .fp-cols-base-10 { --fp-current-cols: 10; }
29
+ .fp-grid > .fp-used-span-base-10 { --fp-used-span: 10; }
30
+ .fp-cols-base-11 { --fp-current-cols: 11; }
31
+ .fp-grid > .fp-used-span-base-11 { --fp-used-span: 11; }
32
+ .fp-cols-base-12 { --fp-current-cols: 12; }
33
+ .fp-grid > .fp-used-span-base-12 { --fp-used-span: 12; }
34
+ @media (width < 640px) { @container sf-container (min-width: 0px) { .fp-grid > .fp-bleed-base-start { margin-inline-start: var(--fp-bleed-start-offset, 0px); inline-size: auto; max-inline-size: none; justify-self: stretch; } } }
35
+ @media (width < 640px) { @container sf-container (min-width: 0px) { .fp-grid > .fp-bleed-base-end { margin-inline-end: var(--fp-bleed-end-offset, 0px); inline-size: auto; max-inline-size: none; justify-self: stretch; } } }
36
+ @media (min-width: 640px) {
37
+ .fp-cols-sm-1 { --fp-current-cols: 1; }
38
+ .fp-grid > .fp-used-span-sm-1 { --fp-used-span: 1; }
39
+ .fp-cols-sm-2 { --fp-current-cols: 2; }
40
+ .fp-grid > .fp-used-span-sm-2 { --fp-used-span: 2; }
41
+ .fp-cols-sm-3 { --fp-current-cols: 3; }
42
+ .fp-grid > .fp-used-span-sm-3 { --fp-used-span: 3; }
43
+ .fp-cols-sm-4 { --fp-current-cols: 4; }
44
+ .fp-grid > .fp-used-span-sm-4 { --fp-used-span: 4; }
45
+ .fp-cols-sm-5 { --fp-current-cols: 5; }
46
+ .fp-grid > .fp-used-span-sm-5 { --fp-used-span: 5; }
47
+ .fp-cols-sm-6 { --fp-current-cols: 6; }
48
+ .fp-grid > .fp-used-span-sm-6 { --fp-used-span: 6; }
49
+ .fp-cols-sm-7 { --fp-current-cols: 7; }
50
+ .fp-grid > .fp-used-span-sm-7 { --fp-used-span: 7; }
51
+ .fp-cols-sm-8 { --fp-current-cols: 8; }
52
+ .fp-grid > .fp-used-span-sm-8 { --fp-used-span: 8; }
53
+ .fp-cols-sm-9 { --fp-current-cols: 9; }
54
+ .fp-grid > .fp-used-span-sm-9 { --fp-used-span: 9; }
55
+ .fp-cols-sm-10 { --fp-current-cols: 10; }
56
+ .fp-grid > .fp-used-span-sm-10 { --fp-used-span: 10; }
57
+ .fp-cols-sm-11 { --fp-current-cols: 11; }
58
+ .fp-grid > .fp-used-span-sm-11 { --fp-used-span: 11; }
59
+ .fp-cols-sm-12 { --fp-current-cols: 12; }
60
+ .fp-grid > .fp-used-span-sm-12 { --fp-used-span: 12; }
61
+ .fp-grid > .fp-bleed-managed { margin-inline-start: 0; margin-inline-end: 0; }
62
+ @media (width < 768px) { @container sf-container (min-width: 0px) { .fp-grid > .fp-bleed-sm-start { margin-inline-start: var(--fp-bleed-start-offset, 0px); inline-size: auto; max-inline-size: none; justify-self: stretch; } } }
63
+ @media (width < 768px) { @container sf-container (min-width: 0px) { .fp-grid > .fp-bleed-sm-end { margin-inline-end: var(--fp-bleed-end-offset, 0px); inline-size: auto; max-inline-size: none; justify-self: stretch; } } }
64
+ }
65
+ @media (min-width: 768px) {
66
+ .fp-cols-md-1 { --fp-current-cols: 1; }
67
+ .fp-grid > .fp-used-span-md-1 { --fp-used-span: 1; }
68
+ .fp-cols-md-2 { --fp-current-cols: 2; }
69
+ .fp-grid > .fp-used-span-md-2 { --fp-used-span: 2; }
70
+ .fp-cols-md-3 { --fp-current-cols: 3; }
71
+ .fp-grid > .fp-used-span-md-3 { --fp-used-span: 3; }
72
+ .fp-cols-md-4 { --fp-current-cols: 4; }
73
+ .fp-grid > .fp-used-span-md-4 { --fp-used-span: 4; }
74
+ .fp-cols-md-5 { --fp-current-cols: 5; }
75
+ .fp-grid > .fp-used-span-md-5 { --fp-used-span: 5; }
76
+ .fp-cols-md-6 { --fp-current-cols: 6; }
77
+ .fp-grid > .fp-used-span-md-6 { --fp-used-span: 6; }
78
+ .fp-cols-md-7 { --fp-current-cols: 7; }
79
+ .fp-grid > .fp-used-span-md-7 { --fp-used-span: 7; }
80
+ .fp-cols-md-8 { --fp-current-cols: 8; }
81
+ .fp-grid > .fp-used-span-md-8 { --fp-used-span: 8; }
82
+ .fp-cols-md-9 { --fp-current-cols: 9; }
83
+ .fp-grid > .fp-used-span-md-9 { --fp-used-span: 9; }
84
+ .fp-cols-md-10 { --fp-current-cols: 10; }
85
+ .fp-grid > .fp-used-span-md-10 { --fp-used-span: 10; }
86
+ .fp-cols-md-11 { --fp-current-cols: 11; }
87
+ .fp-grid > .fp-used-span-md-11 { --fp-used-span: 11; }
88
+ .fp-cols-md-12 { --fp-current-cols: 12; }
89
+ .fp-grid > .fp-used-span-md-12 { --fp-used-span: 12; }
90
+ .fp-grid > .fp-bleed-managed { margin-inline-start: 0; margin-inline-end: 0; }
91
+ @media (width < 1024px) { @container sf-container (min-width: 0px) { .fp-grid > .fp-bleed-md-start { margin-inline-start: var(--fp-bleed-start-offset, 0px); inline-size: auto; max-inline-size: none; justify-self: stretch; } } }
92
+ @media (width < 1024px) { @container sf-container (min-width: 0px) { .fp-grid > .fp-bleed-md-end { margin-inline-end: var(--fp-bleed-end-offset, 0px); inline-size: auto; max-inline-size: none; justify-self: stretch; } } }
93
+ }
94
+ @media (min-width: 1024px) {
95
+ .fp-cols-lg-1 { --fp-current-cols: 1; }
96
+ .fp-grid > .fp-used-span-lg-1 { --fp-used-span: 1; }
97
+ .fp-cols-lg-2 { --fp-current-cols: 2; }
98
+ .fp-grid > .fp-used-span-lg-2 { --fp-used-span: 2; }
99
+ .fp-cols-lg-3 { --fp-current-cols: 3; }
100
+ .fp-grid > .fp-used-span-lg-3 { --fp-used-span: 3; }
101
+ .fp-cols-lg-4 { --fp-current-cols: 4; }
102
+ .fp-grid > .fp-used-span-lg-4 { --fp-used-span: 4; }
103
+ .fp-cols-lg-5 { --fp-current-cols: 5; }
104
+ .fp-grid > .fp-used-span-lg-5 { --fp-used-span: 5; }
105
+ .fp-cols-lg-6 { --fp-current-cols: 6; }
106
+ .fp-grid > .fp-used-span-lg-6 { --fp-used-span: 6; }
107
+ .fp-cols-lg-7 { --fp-current-cols: 7; }
108
+ .fp-grid > .fp-used-span-lg-7 { --fp-used-span: 7; }
109
+ .fp-cols-lg-8 { --fp-current-cols: 8; }
110
+ .fp-grid > .fp-used-span-lg-8 { --fp-used-span: 8; }
111
+ .fp-cols-lg-9 { --fp-current-cols: 9; }
112
+ .fp-grid > .fp-used-span-lg-9 { --fp-used-span: 9; }
113
+ .fp-cols-lg-10 { --fp-current-cols: 10; }
114
+ .fp-grid > .fp-used-span-lg-10 { --fp-used-span: 10; }
115
+ .fp-cols-lg-11 { --fp-current-cols: 11; }
116
+ .fp-grid > .fp-used-span-lg-11 { --fp-used-span: 11; }
117
+ .fp-cols-lg-12 { --fp-current-cols: 12; }
118
+ .fp-grid > .fp-used-span-lg-12 { --fp-used-span: 12; }
119
+ .fp-grid > .fp-bleed-managed { margin-inline-start: 0; margin-inline-end: 0; }
120
+ @media (width < 1280px) { @container sf-container (min-width: 0px) { .fp-grid > .fp-bleed-lg-start { margin-inline-start: var(--fp-bleed-start-offset, 0px); inline-size: auto; max-inline-size: none; justify-self: stretch; } } }
121
+ @media (width < 1280px) { @container sf-container (min-width: 0px) { .fp-grid > .fp-bleed-lg-end { margin-inline-end: var(--fp-bleed-end-offset, 0px); inline-size: auto; max-inline-size: none; justify-self: stretch; } } }
122
+ }
123
+ @media (min-width: 1280px) {
124
+ .fp-cols-xl-1 { --fp-current-cols: 1; }
125
+ .fp-grid > .fp-used-span-xl-1 { --fp-used-span: 1; }
126
+ .fp-cols-xl-2 { --fp-current-cols: 2; }
127
+ .fp-grid > .fp-used-span-xl-2 { --fp-used-span: 2; }
128
+ .fp-cols-xl-3 { --fp-current-cols: 3; }
129
+ .fp-grid > .fp-used-span-xl-3 { --fp-used-span: 3; }
130
+ .fp-cols-xl-4 { --fp-current-cols: 4; }
131
+ .fp-grid > .fp-used-span-xl-4 { --fp-used-span: 4; }
132
+ .fp-cols-xl-5 { --fp-current-cols: 5; }
133
+ .fp-grid > .fp-used-span-xl-5 { --fp-used-span: 5; }
134
+ .fp-cols-xl-6 { --fp-current-cols: 6; }
135
+ .fp-grid > .fp-used-span-xl-6 { --fp-used-span: 6; }
136
+ .fp-cols-xl-7 { --fp-current-cols: 7; }
137
+ .fp-grid > .fp-used-span-xl-7 { --fp-used-span: 7; }
138
+ .fp-cols-xl-8 { --fp-current-cols: 8; }
139
+ .fp-grid > .fp-used-span-xl-8 { --fp-used-span: 8; }
140
+ .fp-cols-xl-9 { --fp-current-cols: 9; }
141
+ .fp-grid > .fp-used-span-xl-9 { --fp-used-span: 9; }
142
+ .fp-cols-xl-10 { --fp-current-cols: 10; }
143
+ .fp-grid > .fp-used-span-xl-10 { --fp-used-span: 10; }
144
+ .fp-cols-xl-11 { --fp-current-cols: 11; }
145
+ .fp-grid > .fp-used-span-xl-11 { --fp-used-span: 11; }
146
+ .fp-cols-xl-12 { --fp-current-cols: 12; }
147
+ .fp-grid > .fp-used-span-xl-12 { --fp-used-span: 12; }
148
+ .fp-grid > .fp-bleed-managed { margin-inline-start: 0; margin-inline-end: 0; }
149
+ @media (width < 1536px) { @container sf-container (min-width: 0px) { .fp-grid > .fp-bleed-xl-start { margin-inline-start: var(--fp-bleed-start-offset, 0px); inline-size: auto; max-inline-size: none; justify-self: stretch; } } }
150
+ @media (width < 1536px) { @container sf-container (min-width: 0px) { .fp-grid > .fp-bleed-xl-end { margin-inline-end: var(--fp-bleed-end-offset, 0px); inline-size: auto; max-inline-size: none; justify-self: stretch; } } }
151
+ }
152
+ @media (min-width: 1536px) {
153
+ .fp-cols-2xl-1 { --fp-current-cols: 1; }
154
+ .fp-grid > .fp-used-span-2xl-1 { --fp-used-span: 1; }
155
+ .fp-cols-2xl-2 { --fp-current-cols: 2; }
156
+ .fp-grid > .fp-used-span-2xl-2 { --fp-used-span: 2; }
157
+ .fp-cols-2xl-3 { --fp-current-cols: 3; }
158
+ .fp-grid > .fp-used-span-2xl-3 { --fp-used-span: 3; }
159
+ .fp-cols-2xl-4 { --fp-current-cols: 4; }
160
+ .fp-grid > .fp-used-span-2xl-4 { --fp-used-span: 4; }
161
+ .fp-cols-2xl-5 { --fp-current-cols: 5; }
162
+ .fp-grid > .fp-used-span-2xl-5 { --fp-used-span: 5; }
163
+ .fp-cols-2xl-6 { --fp-current-cols: 6; }
164
+ .fp-grid > .fp-used-span-2xl-6 { --fp-used-span: 6; }
165
+ .fp-cols-2xl-7 { --fp-current-cols: 7; }
166
+ .fp-grid > .fp-used-span-2xl-7 { --fp-used-span: 7; }
167
+ .fp-cols-2xl-8 { --fp-current-cols: 8; }
168
+ .fp-grid > .fp-used-span-2xl-8 { --fp-used-span: 8; }
169
+ .fp-cols-2xl-9 { --fp-current-cols: 9; }
170
+ .fp-grid > .fp-used-span-2xl-9 { --fp-used-span: 9; }
171
+ .fp-cols-2xl-10 { --fp-current-cols: 10; }
172
+ .fp-grid > .fp-used-span-2xl-10 { --fp-used-span: 10; }
173
+ .fp-cols-2xl-11 { --fp-current-cols: 11; }
174
+ .fp-grid > .fp-used-span-2xl-11 { --fp-used-span: 11; }
175
+ .fp-cols-2xl-12 { --fp-current-cols: 12; }
176
+ .fp-grid > .fp-used-span-2xl-12 { --fp-used-span: 12; }
177
+ .fp-grid > .fp-bleed-managed { margin-inline-start: 0; margin-inline-end: 0; }
178
+ @container sf-container (min-width: 0px) { .fp-grid > .fp-bleed-2xl-start { margin-inline-start: var(--fp-bleed-start-offset, 0px); inline-size: auto; max-inline-size: none; justify-self: stretch; } }
179
+ @container sf-container (min-width: 0px) { .fp-grid > .fp-bleed-2xl-end { margin-inline-end: var(--fp-bleed-end-offset, 0px); inline-size: auto; max-inline-size: none; justify-self: stretch; } }
180
+ }
@@ -0,0 +1,17 @@
1
+ import type { FlowpressBlock } from "../../index.js";
2
+ export declare const gridBreakpoints: readonly ["base", "sm", "md", "lg", "xl", "2xl"];
3
+ export type GridBreakpoint = typeof gridBreakpoints[number];
4
+ type Values = Partial<Record<GridBreakpoint, number>>;
5
+ type GridAttributes = Record<string, any>;
6
+ export declare const isGrid: (name: string, attributes?: GridAttributes) => boolean;
7
+ export declare const gridValues: (attributes: GridAttributes) => Values;
8
+ export declare const spanValues: (attributes: GridAttributes) => Values;
9
+ export declare const effectiveValues: (values: Values) => Record<GridBreakpoint, number>;
10
+ export declare const gridClasses: (attributes: GridAttributes) => string[];
11
+ export declare const spanClasses: (attributes: GridAttributes) => string[];
12
+ export declare const usedSpanClasses: (parent: GridAttributes, child: GridAttributes) => string[];
13
+ export declare const bleedClasses: (parent: GridAttributes, children: GridAttributes[]) => string[][];
14
+ /** Adds render-only classes. Gutenberg's serialized block HTML is never changed. */
15
+ export declare const decorateGridBlocks: (blocks: FlowpressBlock[]) => FlowpressBlock[];
16
+ export {};
17
+ //# sourceMappingURL=grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/astro/native/grid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,eAAO,MAAM,eAAe,kDAAmD,CAAC;AAChF,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AAC5D,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;AACtD,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAO1C,eAAO,MAAM,MAAM,GAAI,MAAM,MAAM,EAAE,aAAY,cAAmB,KAAG,OAEhC,CAAC;AAExC,eAAO,MAAM,UAAU,GAAI,YAAY,cAAc,KAAG,MAQvD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,YAAY,cAAc,KAAG,MAQvD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,MAAM,CAAC,cAAc,EAAE,MAAM,CAM7E,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,YAAY,cAAc,KAAG,MAAM,EAQ9D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,YAAY,cAAc,KAAG,MAAM,EAK9D,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,QAAQ,cAAc,EAAE,OAAO,cAAc,KAAG,MAAM,EAMrF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,QAAQ,cAAc,EAAE,UAAU,cAAc,EAAE,KAAG,MAAM,EAAE,EAsBzF,CAAC;AAOF,oFAAoF;AACpF,eAAO,MAAM,kBAAkB,GAAI,QAAQ,cAAc,EAAE,KAAG,cAAc,EAkB1E,CAAC"}