@everfur/sdk 0.19.0 → 0.21.0

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 (203) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/{Chat.d-BHovj6Ku.d.ts → Chat.d-CoGJrK3t.d.ts} +1 -1
  3. package/dist/{Chat.d-BO-XtVYe.d.cts → Chat.d-JDtlG_EW.d.cts} +1 -1
  4. package/dist/{DepthViews.d-DKoZgF8l.d.ts → DepthViews.d-CNQn-eEr.d.ts} +1 -1
  5. package/dist/{DepthViews.d-CBUunxP1.d.ts → DepthViews.d-D31VlFKU.d.ts} +1 -1
  6. package/dist/{DepthViews.d-BwIkdmWZ.d.cts → DepthViews.d-XTv4s3ru.d.cts} +1 -1
  7. package/dist/{DepthViews.d-Bx85LeiP.d.cts → DepthViews.d-zxM_xbP9.d.cts} +1 -1
  8. package/dist/{RecordsPage.d-DRFp2LXH.d.cts → RecordsPage.d-CSZHrtWJ.d.cts} +11 -5
  9. package/dist/{RecordsPage.d-CsvBhU0f.d.ts → RecordsPage.d-D_y-ZB3S.d.ts} +11 -5
  10. package/dist/animations/index.d.cts +3 -3
  11. package/dist/animations/index.d.ts +3 -3
  12. package/dist/{attachments.d-DWUsHPf9.d.cts → attachments.d-D74wbmQU.d.cts} +1 -1
  13. package/dist/{attachments.d-DOZjCdkb.d.ts → attachments.d-Dm6NUJTR.d.ts} +1 -1
  14. package/dist/{bookingCopy.d-BlMWlvgv.d.ts → bookingCopy.d-DMmLKY5Q.d.ts} +2 -2
  15. package/dist/{bookingCopy.d-tvO7y6MK.d.cts → bookingCopy.d-iaYDPvPd.d.cts} +2 -2
  16. package/dist/{casesRepository.d-C7qbrOL-.d.ts → casesRepository.d-CCJJQXnl.d.ts} +1 -1
  17. package/dist/{casesRepository.d-sSo6oakf.d.cts → casesRepository.d-G2dahIKO.d.cts} +1 -1
  18. package/dist/chat/index.d.cts +10 -10
  19. package/dist/chat/index.d.ts +10 -10
  20. package/dist/chat/lite/index.d.cts +10 -10
  21. package/dist/chat/lite/index.d.ts +10 -10
  22. package/dist/{chatHandoffToken.d-C4tEyuCT.d.ts → chatHandoffToken.d-DVv9tl8h.d.ts} +5 -5
  23. package/dist/{chatHandoffToken.d-D6GUoBvs.d.cts → chatHandoffToken.d-xmnHrTA5.d.cts} +5 -5
  24. package/dist/{chatTypes.d-CSyw9em_.d.cts → chatTypes.d-CQC7GTdE.d.cts} +4 -4
  25. package/dist/{chatTypes.d-BI4vidgu.d.ts → chatTypes.d-hS1AilYl.d.ts} +4 -4
  26. package/dist/chunk-2NA7TPUA.js +5 -0
  27. package/dist/chunk-IJU5TV5N.js +12 -0
  28. package/dist/chunk-TFX6WMDN.js +30 -0
  29. package/dist/chunk-WZNPR5TY.js +34 -0
  30. package/dist/client/index.cjs +1 -1
  31. package/dist/client/index.d.cts +6 -6
  32. package/dist/client/index.d.ts +6 -6
  33. package/dist/client/index.js +1 -1
  34. package/dist/{clinicBatch.d-BxA_uGBb.d.cts → clinicBatch.d-4PFwKJfw.d.cts} +3 -3
  35. package/dist/{clinicBatch.d-T5oSAhY-.d.ts → clinicBatch.d-BpP2NBb3.d.ts} +3 -3
  36. package/dist/{clinicRequestProps.d-CjsMg_OD.d.ts → clinicRequestProps.d-BuMuGoVZ.d.ts} +1 -1
  37. package/dist/{clinicRequestProps.d-1dCtouGA.d.cts → clinicRequestProps.d-DjzUdDFx.d.cts} +1 -1
  38. package/dist/{config.d-N5Xzy53V.d.ts → config.d-D9igq-vT.d.ts} +1 -1
  39. package/dist/{config.d-jCmrhM4a.d.cts → config.d-cX5E6DAw.d.cts} +1 -1
  40. package/dist/consent/index.cjs +1 -1
  41. package/dist/consent/index.d.cts +5 -5
  42. package/dist/consent/index.d.ts +5 -5
  43. package/dist/consent/index.js +1 -1
  44. package/dist/{context.d-l4HkFJI8.d.cts → context.d-BrRRNw9I.d.cts} +4 -4
  45. package/dist/{context.d-BJEpEERH.d.ts → context.d-hPfsEsNf.d.ts} +4 -4
  46. package/dist/{copy.d-hFRaovog.d.ts → copy.d-CDlirTR4.d.ts} +2 -2
  47. package/dist/{copy.d-hS49oJ4w.d.cts → copy.d-DWjSkbrZ.d.cts} +2 -2
  48. package/dist/core/index.cjs +1 -1
  49. package/dist/core/index.d.cts +14 -14
  50. package/dist/core/index.d.ts +14 -14
  51. package/dist/core/index.js +1 -1
  52. package/dist/{depth.d-C99_xup2.d.ts → depth.d-CfBorxcQ.d.ts} +3 -3
  53. package/dist/{depth.d-BYwddMNU.d.cts → depth.d-KkrGx98U.d.cts} +3 -3
  54. package/dist/{entitlementRepository.d-CiU_QIPL.d.cts → entitlementRepository.d-BvnWpcQH.d.cts} +2 -2
  55. package/dist/{entitlementRepository.d-qZAlET7C.d.ts → entitlementRepository.d-DpQrIgW6.d.ts} +2 -2
  56. package/dist/{focus.d-RJMXplJc.d.cts → focus.d-9loikWy8.d.cts} +2 -2
  57. package/dist/{focus.d-CG6KhDBK.d.ts → focus.d-CYwVLDvR.d.ts} +2 -2
  58. package/dist/health-plan/index.cjs +53 -37
  59. package/dist/health-plan/index.d.cts +10 -10
  60. package/dist/health-plan/index.d.ts +10 -10
  61. package/dist/health-plan/index.js +54 -38
  62. package/dist/{idempotency.d-DJyOZDPb.d.cts → idempotency.d-CVKkUhY4.d.cts} +1 -1
  63. package/dist/{idempotency.d-D-ZWpO9p.d.ts → idempotency.d-DGQ_xML5.d.ts} +1 -1
  64. package/dist/{identity.d-CA7mW59I.d.cts → identity.d-Bnl5Z0MM.d.cts} +1 -1
  65. package/dist/{identity.d-DIOnFzXL.d.ts → identity.d-DR5YwO6E.d.ts} +1 -1
  66. package/dist/index.cjs +1 -1
  67. package/dist/index.d.cts +13 -13
  68. package/dist/index.d.ts +13 -13
  69. package/dist/index.js +1 -1
  70. package/dist/{introEvents.d-BjqfFgE1.d.ts → introEvents.d-D_yL7lnE.d.ts} +1 -1
  71. package/dist/{introEvents.d-7wNDMhEF.d.cts → introEvents.d-JmPqEqMQ.d.cts} +1 -1
  72. package/dist/{models.d-BSqvbTE1.d.cts → models.d-BN53M9sU.d.cts} +52 -1
  73. package/dist/{models.d-DOwnr8fi.d.ts → models.d-Bhq9p6Wa.d.ts} +52 -1
  74. package/dist/notifications/inbox/index.d.cts +4 -4
  75. package/dist/notifications/inbox/index.d.ts +4 -4
  76. package/dist/notifications/index.d.cts +7 -7
  77. package/dist/notifications/index.d.ts +7 -7
  78. package/dist/{optInView.d-BQhHPleh.d.cts → optInView.d-BizcW_QG.d.cts} +2 -2
  79. package/dist/{optInView.d-B5v4cDDW.d.ts → optInView.d-CZvKlq-o.d.ts} +2 -2
  80. package/dist/{pets.d-DRqMaP8A.d.cts → pets.d-C4CWxQPh.d.cts} +1 -1
  81. package/dist/{pets.d-DVrOb-Bj.d.ts → pets.d-uCzgFbGi.d.ts} +1 -1
  82. package/dist/{petsRepository.d-tZADfKA1.d.cts → petsRepository.d-DOcVv9bd.d.cts} +1 -1
  83. package/dist/{petsRepository.d-CpYWRWFq.d.ts → petsRepository.d-DRW7NkKm.d.ts} +1 -1
  84. package/dist/records/depth/index.cjs +1 -1
  85. package/dist/records/depth/index.d.cts +11 -11
  86. package/dist/records/depth/index.d.ts +11 -11
  87. package/dist/records/depth/index.js +1 -1
  88. package/dist/records/index.cjs +16 -14
  89. package/dist/records/index.d.cts +47 -17
  90. package/dist/records/index.d.ts +47 -17
  91. package/dist/records/index.js +16 -14
  92. package/dist/{requestFunnel.d-B8OVGh0p.d.ts → requestFunnel.d-BYLycQMI.d.ts} +2 -2
  93. package/dist/{requestFunnel.d-C4abgvt9.d.cts → requestFunnel.d-CQ0O8fMG.d.cts} +2 -2
  94. package/dist/{route.d-BAZqGLfl.d.ts → route.d-DFJ0gXj8.d.ts} +2 -2
  95. package/dist/{route.d-CTf8h9vS.d.cts → route.d-q9yndhFy.d.cts} +2 -2
  96. package/dist/{runtimeTypes.d-DbaQKGLv.d.cts → runtimeTypes.d-3LRuzxr7.d.cts} +4 -4
  97. package/dist/{runtimeTypes.d-DrIz5e6L.d.ts → runtimeTypes.d-BJHYj2MI.d.ts} +4 -4
  98. package/dist/{screenProps.d-Di3wYGCn.d.cts → screenProps.d-DfAmuKkr.d.cts} +2 -2
  99. package/dist/{screenProps.d-BP8LAZWn.d.ts → screenProps.d-tVzlXGaN.d.ts} +2 -2
  100. package/dist/server/events/index.cjs +1 -1
  101. package/dist/server/events/index.d.cts +2 -2
  102. package/dist/server/events/index.d.ts +2 -2
  103. package/dist/server/events/index.js +1 -1
  104. package/dist/server/index.cjs +1 -1
  105. package/dist/server/index.d.cts +3 -3
  106. package/dist/server/index.d.ts +3 -3
  107. package/dist/server/index.js +1 -1
  108. package/dist/{sheetSeam.d-BBuEIVsa.d.cts → sheetSeam.d-B9iQqG_I.d.cts} +2 -2
  109. package/dist/{sheetSeam.d-B09jf4YC.d.ts → sheetSeam.d-CtuKILqp.d.ts} +2 -2
  110. package/dist/shop/index.cjs +187 -145
  111. package/dist/shop/index.d.cts +3 -3
  112. package/dist/shop/index.d.ts +3 -3
  113. package/dist/shop/index.js +188 -146
  114. package/dist/tabs/index.cjs +1 -1
  115. package/dist/tabs/index.d.cts +8 -8
  116. package/dist/tabs/index.d.ts +8 -8
  117. package/dist/tabs/index.js +1 -1
  118. package/dist/televet/booking/index.d.cts +6 -6
  119. package/dist/televet/booking/index.d.ts +6 -6
  120. package/dist/testing/index.cjs +1 -1
  121. package/dist/testing/index.d.cts +1 -1
  122. package/dist/testing/index.d.ts +1 -1
  123. package/dist/testing/index.js +1 -1
  124. package/dist/testing/rn/index.d.cts +8 -8
  125. package/dist/testing/rn/index.d.ts +8 -8
  126. package/dist/testing/web/index.d.cts +9 -9
  127. package/dist/testing/web/index.d.ts +9 -9
  128. package/dist/texting/index.d.cts +5 -5
  129. package/dist/texting/index.d.ts +5 -5
  130. package/dist/{threadOptions.d-Cwmyu8pc.d.ts → threadOptions.d-DfH26dy7.d.ts} +2 -2
  131. package/dist/{threadOptions.d-REwBuXAY.d.cts → threadOptions.d-I6G3BdlP.d.cts} +2 -2
  132. package/dist/{timelineRows.d-CTlGQTB0.d.ts → timelineRows.d-CugnCOfZ.d.ts} +1 -1
  133. package/dist/{timelineRows.d-CongJG58.d.cts → timelineRows.d-uSfr2IP3.d.cts} +1 -1
  134. package/dist/{types.d-d3RdaeAA.d.cts → types.d-BOKzNuuF.d.cts} +87 -85
  135. package/dist/{types.d-d3RdaeAA.d.ts → types.d-BOKzNuuF.d.ts} +87 -85
  136. package/dist/ui/index.cjs +98 -46
  137. package/dist/ui/index.d.cts +4 -3
  138. package/dist/ui/index.d.ts +4 -3
  139. package/dist/ui/index.js +98 -46
  140. package/dist/{useHealthPlanSubscription.d-BSo5kFT9.d.ts → useHealthPlanSubscription.d-CVVQIFpG.d.ts} +2 -2
  141. package/dist/{useHealthPlanSubscription.d-Br7GKHTt.d.cts → useHealthPlanSubscription.d-DylPMm_m.d.cts} +2 -2
  142. package/dist/{useInboxUnread.d-Blxu00eY.d.ts → useInboxUnread.d-DDoSII8D.d.ts} +1 -1
  143. package/dist/{useInboxUnread.d-pi6FNnK-.d.cts → useInboxUnread.d-Dq3CCAa3.d.cts} +1 -1
  144. package/dist/{usePresentation.d-yd9Gh4GB.d.ts → usePresentation.d-CDNK4MDY.d.ts} +2 -2
  145. package/dist/{usePresentation.d-C6ci1s3j.d.cts → usePresentation.d-CrobH0d_.d.cts} +2 -2
  146. package/dist/{useRecords.d-BYNX01El.d.cts → useRecords.d-BMSW4aRD.d.cts} +46 -3
  147. package/dist/{useRecords.d-DWk61a4c.d.ts → useRecords.d-Cv1nhZrv.d.ts} +46 -3
  148. package/dist/{useRecordsDepth.d-C5snbNxR.d.ts → useRecordsDepth.d-BvBYIPii.d.ts} +1 -1
  149. package/dist/{useRecordsDepth.d-BIDVPfx7.d.cts → useRecordsDepth.d-Cd5Vyb7D.d.cts} +1 -1
  150. package/dist/{useUnread.d-CORommFJ.d.cts → useUnread.d-B4Yqcteg.d.cts} +3 -3
  151. package/dist/{useUnread.d-w0dKMnx7.d.ts → useUnread.d-ElAEfgl1.d.ts} +3 -3
  152. package/dist/{view.d-CK2UN4qn.d.ts → view.d-2RWoY9kd.d.ts} +5 -5
  153. package/dist/{view.d-DUhKppyl.d.cts → view.d-utmOR2ee.d.cts} +5 -5
  154. package/dist/web/consent/index.cjs +1 -1
  155. package/dist/web/consent/index.d.cts +5 -5
  156. package/dist/web/consent/index.d.ts +5 -5
  157. package/dist/web/consent/index.js +1 -1
  158. package/dist/web/health-plan/index.cjs +43 -16
  159. package/dist/web/health-plan/index.d.cts +12 -12
  160. package/dist/web/health-plan/index.d.ts +12 -12
  161. package/dist/web/health-plan/index.js +32 -27
  162. package/dist/web/health-plan/styles.css +160 -1
  163. package/dist/web/inbox/index.cjs +1 -1
  164. package/dist/web/inbox/index.d.cts +5 -5
  165. package/dist/web/inbox/index.d.ts +5 -5
  166. package/dist/web/inbox/index.js +1 -1
  167. package/dist/web/index.cjs +1 -1
  168. package/dist/web/index.d.cts +27 -27
  169. package/dist/web/index.d.ts +27 -27
  170. package/dist/web/index.js +1 -1
  171. package/dist/web/intro/index.cjs +1 -1
  172. package/dist/web/intro/index.d.cts +8 -8
  173. package/dist/web/intro/index.d.ts +8 -8
  174. package/dist/web/intro/index.js +1 -1
  175. package/dist/web/notifications/index.d.cts +6 -6
  176. package/dist/web/notifications/index.d.ts +6 -6
  177. package/dist/web/records/depth/index.cjs +1 -1
  178. package/dist/web/records/depth/index.d.cts +11 -11
  179. package/dist/web/records/depth/index.d.ts +11 -11
  180. package/dist/web/records/depth/index.js +1 -1
  181. package/dist/web/records/index.cjs +15 -13
  182. package/dist/web/records/index.d.cts +43 -19
  183. package/dist/web/records/index.d.ts +43 -19
  184. package/dist/web/records/index.js +15 -13
  185. package/dist/web/records-sheet/index.cjs +1 -1
  186. package/dist/web/records-sheet/index.d.cts +4 -4
  187. package/dist/web/records-sheet/index.d.ts +4 -4
  188. package/dist/web/records-sheet/index.js +1 -1
  189. package/dist/web/shop/index.cjs +110 -88
  190. package/dist/web/shop/index.d.cts +3 -3
  191. package/dist/web/shop/index.d.ts +3 -3
  192. package/dist/web/shop/index.js +67 -81
  193. package/dist/web/televet/booking/index.d.cts +6 -6
  194. package/dist/web/televet/booking/index.d.ts +6 -6
  195. package/dist/web/texting/index.d.cts +5 -5
  196. package/dist/web/texting/index.d.ts +5 -5
  197. package/dist/web/ui/index.cjs +96 -57
  198. package/dist/web/ui/index.d.cts +4 -3
  199. package/dist/web/ui/index.d.ts +4 -3
  200. package/dist/web/ui/index.js +41 -46
  201. package/dist/web/ui/styles.css +481 -1
  202. package/package.json +5 -5
  203. package/dist/chunk-Y3Q4GW47.js +0 -31
package/dist/ui/index.cjs CHANGED
@@ -1,68 +1,120 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
- "use strict";var reactNative=require("react-native"),react=require("react"),jsxRuntime=require("react/jsx-runtime");var everfurTokens=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var everfurMetrics={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},progress:{track:{shown:true,w:361,h:4,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"line",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},fill:"go",move:300},divider:{width:1,color:"line",label:{shown:true,size:12,weight:400,lineHeight:18.6,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},labelGap:12,labelLine:{width:1,color:"line"}},errorInline:{text:{shown:true,size:15,weight:400,lineHeight:21,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:361,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},linkPressedOpacity:.6},variants:{drawer:{frame:{shown:true,w:393,h:226.594,padding:[10,20,40,20],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[28,0],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:293.406,dy:0},maxHeight:.8,grab:{shown:true,w:40,h:5,padding:[0,0,0,0],marginTop:0,marginBottom:10,gap:[0,0],minHeight:0,radius:[2.5,2.5],bg:"#DAD7D1",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},top:{shown:true,w:353,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:11,weight:400,lineHeight:16.5,color:"muted",tracking:.88,face:"mono",upper:true,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},close:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},closeEnd:-8,closeIcon:22,title:{shown:true,size:24,weight:800,lineHeight:27.6,color:"ink",tracking:-.24,face:"serif",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,w:353,h:82,padding:[0,0,0,0],marginTop:12,marginBottom:0,gap:[10,10],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:16,weight:400,lineHeight:24,color:"text",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scrim:"ink/0.38",motion:{enterMs:320,enterEasing:[.32,.72,0,1],exitMs:220,exitEasing:[.23,1,.32,1],scrimEnterMs:240,scrimExitMs:200,scrimEasing:[.25,.1,.25,1]}},button:{ink:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:0,ring:false,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},outline:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:1.5,ring:true,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},sm:{fill:false,minHeight:40,paddingX:16,gap:8,borderWidth:1.5,ring:true,fontSize:15,fontWeight:700,lineHeight:1.5,iconSize:20},lg:{fill:false,minHeight:56,paddingX:28,gap:8,borderWidth:0,ring:false,fontSize:17,fontWeight:700,lineHeight:1.5,iconSize:20},disabledOpacity:.32,press:.97,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease"},segmented:{track:{shown:true,w:361,h:44,padding:[4,4,4,4],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[22,22],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},option:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},label:{shown:true,size:14,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},chosen:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:0,y:0,dy:0},chosenLabel:{shown:true,size:14,weight:700,lineHeight:21,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},press:.96,transition:"background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},stepper:{track:{shown:true,w:110,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},button:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},icon:16,value:{shown:true,size:15.5,weight:800,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},valueWidth:30,disabledOpacity:.3,press:.9,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},summary:{box:{shown:true,w:361,h:144,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},row:{shown:true,w:329,h:34,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:34,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},term:{shown:true,size:15,weight:400,lineHeight:22.5,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},value:{shown:true,size:15,weight:400,lineHeight:22.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},totalRow:{shown:true,w:329,h:42,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:42,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},totalTerm:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renewRow:{shown:true,w:329,h:28,padding:[0,0,0,0],marginTop:-6,marginBottom:0,gap:[12,12],minHeight:28,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},renewTerm:{shown:true,size:14,weight:400,lineHeight:21,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renew:{shown:true,size:14,weight:400,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},inset:{shown:true,w:361,h:88,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"bg",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0}},toast:{box:{shown:true,w:361,h:64.594,padding:[12,15,12,15],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:16,y:62,dy:0},text:{shown:true,size:14.5,weight:400,lineHeight:20.3,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:12},motion:{enterMs:220,exitMs:160,easing:[.23,1,.32,1],rise:-8}},focus:{width:2,offset:2,color:"ink"}},press:{button:.97,iconButton:.94,card:.98},colors:{grab:"#C9C9C9",scrim:"rgba(0, 0, 0, 0.32)",watch:"#F9E6B9"}};function deepFreeze(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value))for(let v of Object.values(value))deepFreeze(v);return value}var k=everfurTokens,PRESET=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function asPreset(theme){return Object.defineProperty(theme,PRESET,{value:theme,enumerable:true}),deepFreeze(theme)}var SCALE_CAPS={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},everfurTheme=asPreset({name:"everfur",colors:{bg:k.color.bg,surface:k.color.efWhite,text:k.color.text,ink:k.role.color.ink,onInk:k.color.efWhite,muted:k.role.color.muted,line:k.role.color.line,go:k.role.color.go,onGo:k.role.color.ink,pink:k.color.efDustyPink,onPink:k.role.color.ink,alert:k.color.alert,alertDeep:k.color.alertDeep,icoSage:k.role.color.icoSage,bgMist:k.color.bgMist,tintSage:k.role.color.tintSage,tintBlue:k.role.color.tintBlue,tintGo:k.role.color.tintGo,tintPink:k.role.color.tintPink,tintYellowEdge:k.role.color.tintYellowEdge,tintWatch:everfurMetrics.colors.watch,tintRed:k.role.color.tintRed,scrim:everfurMetrics.colors.scrim,grab:everfurMetrics.colors.grab,focus:k.role.color.ink},radius:{...k.radius},space:{...k.space},type:{family:k.font.family.base,mono:k.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:k.font.size.xs,sm:k.font.size.sm,md:k.font.size.md,lg:k.font.size.lg,xl:k.font.size.xl},weight:{...k.font.weight},lineHeight:{...k.font.lineHeight},scaleCaps:SCALE_CAPS},motion:{duration:{press:k.motion.duration.press,fade:k.motion.duration.fade,enter:k.motion.duration.enter,sheet:k.motion.duration.sheet,sheetOut:k.motion.duration.sheetOut},easing:{out:k.motion.easing.out,drawer:k.motion.easing.drawer},pop:{duration:k.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:everfurMetrics});function presetOf(theme){return theme[PRESET]??everfurTheme}function isObject(v){return v!==null&&typeof v=="object"&&!Array.isArray(v)}function merge(base,over){if(!isObject(base)||!isObject(over))return over===void 0?base:over;let out={...base};for(let[key,value]of Object.entries(over))value!==void 0&&(out[key]=merge(base[key],value));return out}function resolveTheme(partial,base=everfurTheme){return partial?deepFreeze(merge(base,partial)):base}var ThemeContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),host=globalThis,context=host[key]??(host[key]=react.createContext(null));return context.displayName??(context.displayName="EverfurThemeContext"),context})();function ThemeProvider({theme:theme,children:children}){let outer=useTheme(),key=theme===void 0||isComplete(theme)?theme:contentKey(theme),value=react.useMemo(()=>isComplete(theme)?filled(theme):resolveTheme(theme,outer),[key,outer]);return react.createElement(ThemeContext.Provider,{value:value},children)}function contentKey(value){return JSON.stringify(value,(_,v)=>isObject(v)&&!Array.isArray(v)?Object.fromEntries(Object.keys(v).sort().map(k2=>[k2,v[k2]])):v)}function isComplete(theme){return theme!==void 0&&Object.isFrozen(theme)&&GROUPS.every(g=>g in theme)}var GROUPS=["name","colors","radius","space","type","motion","metrics"];function hasEvery(shape,value){if(shape===void 0)return true;if(!isObject(shape))return value!==void 0;if(!isObject(value))return false;for(let key of Object.keys(shape))if(!hasEvery(shape[key],value[key]))return false;return true}var fills=/* @__PURE__ */new WeakMap;function filled(theme){let hit=fills.get(theme);if(hit)return hit;if(hasEvery(everfurTheme,theme))return fills.set(theme,theme),theme;let preset=presetOf(theme),merged=merge(everfurTheme,preset===everfurTheme?theme:merge(preset,theme));merged[PRESET]=preset;let out=deepFreeze(merged);return fills.set(theme,out),out}function useTheme(){let explicit=react.useContext(ThemeContext);return explicit?filled(explicit):everfurTheme}var px=n=>Math.round(n*1e3)/1e3;function faceOf(weight,mono=false){return mono?weight>450?"monoBold":"mono":weight>650?"bold":weight>450?"medium":"regular"}function withAlpha(color,alpha){let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(!m)return color;let[r,g,b]=[m[1],m[2],m[3]].map(h=>parseInt(h,16));return`rgba(${r}, ${g}, ${b}, ${alpha})`}function colorOf(t,value){let m=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(value),role=m?.[1];if(!m||role===void 0||!(role in t.colors))return value;let c=t.colors[role];return m[2]===void 0?c:withAlpha(c,Number(m[2]))}function fillOf(t,value){return value==="none"?"transparent":colorOf(t,value)}var DISABLED_OPACITY=.45;function buttonSpec(t,tone,size,inSheet=false){let b=t.metrics.button;if(tone==="text"){let m2=b.text;return{minHeight:0,paddingX:0,gap:b.ink.gap,radius:0,borderWidth:0,borderColor:"transparent",background:"transparent",iconSize:b.inkSm.iconSize,text:{size:m2.fontSize,weight:m2.fontWeight,lineHeight:px(m2.fontSize*m2.lineHeight),color:colorOf(t,m2.color)},pressScale:1,pressOpacity:m2.pressOpacity,disabledOpacity:b.blockedOpacity??DISABLED_OPACITY,fill:false,ring:false}}let v=t.metrics.variants.button,compact=isCompactSize(size),edged=tone==="outline"||tone==="danger"||tone==="warn",m=compact?{...size==="compactSm"?v.sm:size==="compactLg"?v.lg:v.ink,borderWidth:edged?v.outline.borderWidth:0,ring:v.outline.ring}:size==="row"?b.row:tone==="danger"?b.danger:size==="sm"?b[`${tone}Sm`]:b[tone],c=t.colors,own=tone==="money"||tone==="warn"?b[tone]:void 0,paint={ink:{bg:c.ink,fg:c.onInk,edge:c.ink},go:{bg:c.go,fg:c.onGo,edge:c.ink},outline:{bg:"transparent",fg:c.ink,edge:c.ink},pink:{bg:c.pink,fg:c.onPink,edge:c.ink},danger:{bg:c.surface,fg:c.alert,edge:c.alert}},p=own?{bg:fillOf(t,own.bg),fg:colorOf(t,own.fg),edge:colorOf(t,own.edgeColor)}:paint[tone],weight=tone==="outline"&&inSheet&&!compact?b.outlineInSheetWeight:m.fontWeight;return{minHeight:m.minHeight,paddingX:m.paddingX,gap:m.gap,radius:t.radius.pill,borderWidth:m.borderWidth,borderColor:p.edge,background:p.bg,iconSize:m.iconSize,text:{size:m.fontSize,weight:weight,lineHeight:px(m.fontSize*m.lineHeight),color:p.fg},pressScale:t.motion.reduced?1:compact?v.press:t.metrics.press.button,pressOpacity:1,disabledOpacity:compact?v.disabledOpacity:b.blockedOpacity??DISABLED_OPACITY,fill:m.fill,ring:m.ring}}function isCompactSize(size){return size==="compact"||size==="compactSm"||size==="compactLg"}function pillSpec(t,tone){let m=t.metrics.pill,p=m.tones[tone],fg=tone==="clear"?t.colors.ink:colorOf(t,p.fg);return{minHeight:m.minHeight,paddingX:m.paddingX,radius:t.radius.pill,background:colorOf(t,p.bg),ring:p.ring>0?{width:p.ring,color:colorOf(t,p.ringColor)}:null,dot:tone==="new"?{size:m.dot,gap:m.dotGap,color:t.colors.go}:tone==="allergy"?{size:m.allergyDot.size,gap:m.allergyDot.gap,color:colorOf(t,m.allergyDot.color)}:null,text:{size:m.fontSize,weight:m.fontWeight,lineHeight:px(m.fontSize*m.lineHeight),color:fg,mono:m.mono,tracking:m.letterSpacing,upper:m.upper}}}function sheetTitleSpec(t,narrow){let m=t.metrics.sheet,size=m.titleSize,lineHeight=m.titleLineHeight??t.metrics.card.titleLineHeight;return{size:size,weight:m.titleWeight??t.metrics.card.titleWeight,lineHeight:px(size*lineHeight),color:colorOf(t,m.titleColor??"ink"),tracking:m.titleTracking??t.metrics.card.titleTracking}}function textSpecs(t){let m=t.metrics,c=t.colors;return{cardTitle:{size:m.card.titleSize,weight:m.card.titleWeight,lineHeight:px(m.card.titleSize*m.card.titleLineHeight),color:c.ink,tracking:m.card.titleTracking},cardLead:{size:m.card.leadSize,weight:t.type.weight.regular,lineHeight:px(m.card.leadSize*m.card.leadLineHeight),color:c.text},body:{size:m.card.bodySize,weight:t.type.weight.regular,lineHeight:px(m.card.bodySize*m.card.bodyLineHeight),color:c.text},kicker:{size:m.kicker.fontSize,weight:m.kicker.fontWeight,lineHeight:px(m.kicker.fontSize*m.kicker.lineHeight),color:c.muted,mono:true,tracking:m.kicker.letterSpacing,upper:true},sheetTitle:sheetTitleSpec(t),stepperValue:{size:m.quantityStepper.valueSize,weight:m.quantityStepper.valueWeight,lineHeight:px(m.quantityStepper.valueSize*m.quantityStepper.valueLineHeight),color:colorOf(t,m.quantityStepper.valueColor??"text")},tab:{size:m.tabs.fontSize,weight:m.tabs.fontWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.muted},tabCurrent:{size:m.tabs.fontSize,weight:m.tabs.currentWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.ink},emptyTitle:{size:m.empty.titleSize,weight:m.empty.titleWeight,lineHeight:px(m.empty.titleSize*m.empty.titleLineHeight),color:c.ink,tracking:m.empty.titleTracking},emptyLead:{size:m.empty.leadSize,weight:t.type.weight.regular,lineHeight:px(m.empty.leadSize*m.empty.leadLineHeight),color:c.text},emptyLink:{size:m.empty.linkSize,weight:m.empty.linkWeight,lineHeight:px(m.empty.linkSize*m.card.bodyLineHeight),color:c.ink},sumTerm:{size:m.summary.termSize,weight:t.type.weight.regular,lineHeight:px(m.summary.termSize*m.summary.termLineHeight),color:c.muted},sumValue:{size:m.summary.valueSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.valueSize*m.summary.valueLineHeight),color:c.ink},sumTotal:{size:m.summary.totalSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.totalSize*m.summary.totalLineHeight),color:c.ink}}}function quantityStepperSpec(t){let m=t.metrics.quantityStepper;return{edge:{width:m.borderWidth,color:colorOf(t,m.borderColor),inset:m.ring},button:m.button,icon:m.icon,valueMinWidth:m.valueMinWidth,fill:fillOf(t,m.fill??"none"),glyph:colorOf(t,m.glyph??"ink"),off:{color:colorOf(t,m.offColor),opacity:m.offOpacity}}}function textPartSpec(t,p){return{size:p.size,weight:p.weight,lineHeight:p.lineHeight,color:colorOf(t,p.color),...p.face==="mono"?{mono:true}:{},...p.face==="serif"?{serif:true}:{},...p.tracking?{tracking:p.tracking}:{},...p.upper?{upper:true}:{},...p.deco==="none"?{}:{deco:p.deco==="strike"?"strike":"underline",decoOffset:p.decoOffset,decoThickness:p.decoThickness},...p.tabular?{tabular:true}:{},...p.wrap==="auto"?{}:{wrap:p.wrap==="balance"?"balance":"pretty"}}}function partFill(t,value){return value==="none"?void 0:colorOf(t,value)}function summarySpec(t){let m=t.metrics.summary,lh=(size,ratio)=>px(size*ratio);return{paddingX:m.paddingX,paddingY:m.paddingY,radius:m.radius,borderWidth:m.borderWidth,borderColor:t.colors.line,background:colorOf(t,m.background),shadow:m.shadow,row:{paddingY:m.rowPaddingY,minHeight:m.rowMinHeight,gapX:m.rowGapX,gapY:m.rowGapY,divider:m.rowDivider,center:m.rowCenter},totalRowMinHeight:m.totalRowMinHeight,gap:m.gap??0,totalMarginTop:m.totalMarginTop??0,tabular:m.tabular,term:{size:m.termSize,weight:t.type.weight.regular,lineHeight:lh(m.termSize,m.termLineHeight),color:colorOf(t,m.termColor)},value:{size:m.valueSize,weight:m.valueWeight,lineHeight:lh(m.valueSize,m.valueLineHeight),color:colorOf(t,m.valueColor)},totalTerm:{size:m.totalTermSize,weight:m.totalTermWeight,lineHeight:lh(m.totalTermSize,m.termLineHeight),color:colorOf(t,m.totalTermColor)},total:{size:m.totalSize,weight:m.totalWeight,lineHeight:lh(m.totalSize,m.totalLineHeight),color:colorOf(t,m.valueColor)},off:textPartSpec(t,t.metrics.summary.off)}}function skeletonWidth(t,index){let widths=t.metrics.skeleton.widths;return`${widths[index%widths.length]}%`}function clampStep(value,min,max){return Math.max(min,max===void 0?value:Math.min(max,value))}function itemTestID(parent,key,own){return own!==void 0?own:parent===void 0?void 0:`${parent}-${key}`}var UiSurfaceContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#SurfaceContext@v1"),host=globalThis;return host[key]??(host[key]=react.createContext(null))})();function useUiSurface(){return react.useContext(UiSurfaceContext)}var TEXT_VARIANT_TIERS={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function textToneColor(t,tone){let c=t.colors;switch(tone){case"ink":return c.ink;case"text":return c.text;case"muted":return c.muted;case"danger":return c.alertDeep;case"inverse":return c.onInk;default:return}}function textVariantSpec(t,variant,tone,weight){let base=textPartSpec(t,t.metrics.text[variant]),color=textToneColor(t,tone);return{...base,...color?{color:color}:{},...weight?{weight:t.type.weight[weight]}:{}}}var PressFeedbackContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),host=globalThis,context=host[key]??(host[key]=react.createContext(null));return context.displayName??(context.displayName="EverfurPressFeedbackContext"),context})();function usePressFeedback(){return react.useContext(PressFeedbackContext)}function pressHandlers(feedback,event,onPress,options={}){if(!feedback||options.disabled)return{onPress:onPress,onPressIn:void 0};let{onPressIn:reportIn,onPress:report,haptic:haptic}=feedback,tick=options.haptics!==false&&event.haptic&&haptic?haptic:void 0;return{onPress:onPress&&(report||tick)?()=>{tick?.(event),report?.(event),onPress()}:onPress,onPressIn:reportIn?()=>reportIn(event):void 0}}function pressScaleFor(feedback,component,designScale=1){return feedback?.pressScale?.[component]??designScale}var TEXT_VARIANT_BREAKS={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function textVariantTier(t,variant){return t.type.variantTiers?.[variant]??TEXT_VARIANT_TIERS[variant]}var ReducedMotionContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),host=globalThis,context=host[key]??(host[key]=react.createContext(null));return context.displayName??(context.displayName="EverfurReducedMotionContext"),context})();function useKnownReducedMotion(){return react.useContext(ReducedMotionContext)}function rnText(t,spec){let face2=faceOf(spec.weight,spec.mono===true);return{fontFamily:spec.serif?t.type.faces.serif??t.type.faces.bold:t.type.faces[face2],...t.type.namedFaces?{}:{fontWeight:String(spec.weight)},fontSize:spec.size,lineHeight:spec.lineHeight,color:spec.color,...spec.tracking?{letterSpacing:spec.tracking}:{},...spec.upper?{textTransform:"uppercase"}:{},...spec.deco?rnDeco(spec):{},...spec.tabular?{fontVariant:["tabular-nums"]}:{},...spec.wrap&&reactNative.Platform.OS==="web"?{textWrap:spec.wrap}:{}}}function rnDeco(spec){let base={textDecorationLine:spec.deco==="strike"?"line-through":"underline"};return reactNative.Platform.OS!=="web"?base:{...base,...spec.decoOffset?{textUnderlineOffset:spec.decoOffset}:{},...spec.decoThickness?{textDecorationThickness:spec.decoThickness}:{}}}function rnBox(t,b){let[pt=0,pr=0,pb=0,pl=0]=b.padding,[rt=0,rb=0]=b.radius,fill=partFill(t,b.bg);return{paddingTop:pt,paddingRight:pr,paddingBottom:pb,paddingLeft:pl,...b.marginTop?{marginTop:b.marginTop}:{},...b.gap[0]?{columnGap:b.gap[0]}:{},...b.gap[1]?{rowGap:b.gap[1]}:{},...rt===rb?rt?{borderRadius:rt}:{}:{borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomLeftRadius:rb,borderBottomRightRadius:rb},...fill?{backgroundColor:fill}:{},...b.edge.width>0&&!b.edge.ring?{borderWidth:b.edge.width,borderColor:colorOf(t,b.edge.color)}:{},...b.minHeight?{minHeight:b.minHeight}:{},...rnShadow(b.shadow)}}function rnRing(t,b){return b.edge.width>0&&b.edge.ring?ringOverlay(b.edge.width,colorOf(t,b.edge.color),b.radius[0]??0):null}function webReducedMotion(){if(reactNative.Platform.OS!=="web")return false;let g=globalThis;return typeof g.matchMedia=="function"&&g.matchMedia("(prefers-reduced-motion: reduce)").matches}function useOsReducedMotion(known){let[reduced,setReduced]=react.useState(()=>known===null&&webReducedMotion());return react.useEffect(()=>{if(known!==null)return;let mounted=true,query=reactNative.AccessibilityInfo?.isReduceMotionEnabled;if(typeof query=="function"){let result=query.call(reactNative.AccessibilityInfo);result!=null&&typeof result.then=="function"&&result.then(value=>{mounted&&setReduced(value===true)},()=>{})}let subscription=reactNative.AccessibilityInfo?.addEventListener?.("reduceMotionChanged",value=>setReduced(value===true));return()=>{mounted=false,subscription?.remove?.()}},[known]),known??reduced}function useRnReduced(t){let os=useOsReducedMotion(useKnownReducedMotion());return t.motion.reduced||os}function ariaState(expanded,pressed,current){return{...expanded===void 0?{}:{expanded:expanded},...pressed===void 0?{}:{checked:pressed},...current===void 0?{}:{selected:current!==false}}}function slopFor(size){let pad=Math.max(0,Math.ceil((44-size)/2));return pad===0?void 0:{top:pad,bottom:pad,left:pad,right:pad}}function rnShadow(s){return s.blur===0&&s.y===0&&s.x===0?null:{shadowColor:s.color,shadowOffset:{width:s.x,height:s.y},shadowOpacity:1,shadowRadius:s.blur,elevation:1}}function ringOverlay(width,color,radius){let fill={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:radius};return reactNative.Platform.OS==="web"?{...fill,boxShadow:`inset 0 0 0 ${width}px ${color}`}:{...fill,borderWidth:width,borderColor:color}}function breakProps(mode){return mode==="auto"?null:reactNative.Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:reactNative.Platform.OS==="android"&&mode==="balance"?{textBreakStrategy:"balanced"}:null}function weightStyle(t,weight){let w=t.type.weight[weight];return t.type.namedFaces?{fontFamily:t.type.faces[faceOf(w)]}:{fontWeight:String(w)}}function Text({tier:tier,variant:variant,tone:tone,weight:weight,level:level,lineBreak:lineBreak,...props}){let t=useTheme(),cap=t.type.scaleCaps[tier??(variant?textVariantTier(t,variant):"content")],breaks=breakProps(lineBreak??(variant?TEXT_VARIANT_BREAKS[variant]:"auto"));if(variant===void 0&&tone===void 0&&weight===void 0&&level===void 0)return breaks?react.createElement(reactNative.Text,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...props}):react.createElement(reactNative.Text,cap>0?{maxFontSizeMultiplier:cap,...props}:props);let color=textToneColor(t,tone),own=variant?rnText(t,textVariantSpec(t,variant,tone,weight)):{...color?{color:color}:{},...weight?weightStyle(t,weight):{}},heading=level===void 0?{}:{accessibilityRole:"header",...reactNative.Platform.OS==="web"?{"aria-level":level}:{}};return react.createElement(reactNative.Text,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...heading,...props,style:[own,props.style]})}var BOX=24,FINE=16,SEAM=.8,fine=dp=>Math.round(dp*FINE);function place(cx,cy,W,H,ux,uy){let left=cx-W/2,top=cy-H/2,x=Math.round(left),y=Math.round(top);return{position:"absolute",left:x,top:y,width:W,height:H,transform:[{translateX:left-x},{translateY:top-y},{rotate:`${Math.atan2(uy,ux)*180/Math.PI}deg`},{scale:1/FINE}]}}function strokePieces(icon,k2,out){for(let s of icon.strokes){let w=s.width*k2,pts=s.points,n=pts.length/2,last=s.closed?n:n-1;for(let i=0;i<last;i+=1){let j=(i+1)%n,px2=(pts[i*2]??0)*k2,py=(pts[i*2+1]??0)*k2,dx=(pts[j*2]??0)*k2-px2,dy=(pts[j*2+1]??0)*k2-py,len=Math.hypot(dx,dy);if(len===0&&!(n===2&&s.cap))continue;let ux=len===0?1:dx/len,uy=len===0?0:dy/len,e0=s.closed||i>0||s.cap?w/2:0,e1=s.closed||j!==n-1||s.cap?w/2:0,along=(len+e1-e0)/2;out.push({paint:"backgroundColor",style:{...place(px2+ux*along,py+uy*along,fine(len+e0+e1),fine(w),ux,uy),borderTopLeftRadius:e0>0?fine(w)/2:0,borderBottomLeftRadius:e0>0?fine(w)/2:0,borderTopRightRadius:e1>0?fine(w)/2:0,borderBottomRightRadius:e1>0?fine(w)/2:0,...s.opacity===void 0?{}:{opacity:s.opacity}}})}}}function boxPieces(icon,k2,out){for(let b of icon.boxes){let w=(b.w+b.width)*k2,h=(b.h+b.width)*k2;out.push({paint:"borderColor",style:{...place((b.x-b.width/2)*k2+w/2,(b.y-b.width/2)*k2+h/2,fine(w),fine(h),1,0),borderWidth:fine(b.width*k2),borderRadius:(b.radius+b.width/2)*k2*FINE,...b.opacity===void 0?{}:{opacity:b.opacity}}})}}function trianglePieces(icon,k2,out){for(let t of icon.triangles){let p=[0,1,2].map(i=>[(t[i*2]??0)*k2,(t[i*2+1]??0)*k2]),base=0,len=-1;for(let i=0;i<3;i+=1){let a2=p[i]??[0,0],b=p[(i+1)%3]??[0,0],d=Math.hypot(b[0]-a2[0],b[1]-a2[1]);d>len&&(len=d,base=i)}if(len<=0)continue;let b0=p[base]??[0,0],b1=p[(base+1)%3]??[0,0],a=p[(base+2)%3]??[0,0],ux=(b1[0]-b0[0])/len,uy=(b1[1]-b0[1])/len,along=(a[0]-b0[0])*ux+(a[1]-b0[1])*uy,across=(a[0]-b0[0])*-uy+(a[1]-b0[1])*ux,h=Math.abs(across),up=across<0,mid=up?-h/2:h/2,bl=fine(along),br=fine(len)-bl,bh=fine(h);out.push({paint:up?"borderBottomColor":"borderTopColor",style:{...place(b0[0]+ux*(len/2)-uy*mid,b0[1]+uy*(len/2)+ux*mid,bl+br,bh,ux,uy),width:0,height:0,borderLeftWidth:bl,borderRightWidth:br,borderLeftColor:"transparent",borderRightColor:"transparent",...up?{borderBottomWidth:bh}:{borderTopWidth:bh}}})}for(let e of icon.seams){let x0=(e[0]??0)*k2,y0=(e[1]??0)*k2,dx=(e[2]??0)*k2-x0,dy=(e[3]??0)*k2-y0,d=Math.hypot(dx,dy),in0=SEAM*(e[4]??0),in1=SEAM*(e[5]??0),bar=d-in0-in1;if(d===0||bar<=0)continue;let mid=in0+bar/2;out.push({paint:"backgroundColor",style:place(x0+dx/d*mid,y0+dy/d*mid,fine(bar),fine(SEAM),dx/d,dy/d)})}}var cache=/* @__PURE__ */new WeakMap;function piecesOf(icon,size){let sizes=cache.get(icon);sizes===void 0&&(sizes=/* @__PURE__ */new Map,cache.set(icon,sizes));let hit=sizes.get(size);if(hit!==void 0)return hit;let out=[],k2=size/BOX;return boxPieces(icon,k2,out),strokePieces(icon,k2,out),trianglePieces(icon,k2,out),sizes.set(size,out),out}function Glyph({icon:icon,size:size,color:color,label:label,testID:testID,style:style}){let t=useTheme(),side=size??t.metrics.icon.size,ink=color??t.colors.ink;/* @__PURE__ */
3
- return jsxRuntime.jsx(reactNative.View,{testID:testID,pointerEvents:"none",style:[{width:side,height:side},style],...label?{accessible:true,accessibilityRole:"image",accessibilityLabel:label}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:piecesOf(icon,side).map((piece,i)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[piece.style,{[piece.paint]:ink}]},i))})}var UI_RN_ICON_ALERT={strokes:[{width:2,cap:true,closed:false,points:[21.73,18,13.73,4,12.997,3.258,11.99,2.986,10.983,3.258,10.25,4,2.25,18,1.982,19.005,2.254,20.008,2.994,20.739,4,21,20,21,20.999,20.731,21.731,19.999,21.998,18.999,21.73,18]},{width:2,cap:true,closed:false,points:[12,9,12,13]},{width:2,cap:true,closed:false,points:[12,17,12.01,17]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_ARROW_LEFT={strokes:[{width:2,cap:true,closed:false,points:[12,19,5,12,12,5]},{width:2,cap:true,closed:false,points:[19,12,5,12]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_BAG={strokes:[{width:2,cap:true,closed:true,points:[6,2,3,6,3,20,3.268,21,4,21.732,5,22,19,22,20,21.732,20.732,21,21,20,21,6,18,2]},{width:2,cap:true,closed:false,points:[3,6,21,6]},{width:2,cap:true,closed:false,points:[16,10,15.696,11.531,14.828,12.828,13.531,13.696,12,14,10.469,13.696,9.172,12.828,8.304,11.531,8,10]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_BELL={strokes:[{width:2,cap:true,closed:false,points:[10.034,20.999,10.765,21.732,11.766,22,12.766,21.732,13.498,20.999]},{width:2,cap:true,closed:false,points:[21.766,8,21.514,5.799,20.818,3.8,19.765,1.999]},{width:2,cap:true,closed:false,points:[3.766,1.999,2.714,3.8,2.018,5.799,1.765,8]},{width:2,cap:true,closed:true,points:[3.028,15.325,2.78,15.838,2.851,16.402,3.22,16.837,3.766,16.999,19.765,16.999,20.312,16.838,20.681,16.404,20.753,15.84,20.506,15.327,19.71,14.47,18.967,13.451,18.347,12.128,17.923,10.358,17.766,8,17.309,5.704,16.009,3.758,14.061,2.457,11.766,1.999,9.47,2.457,7.524,3.758,6.223,5.704,5.765,8,5.609,10.358,5.184,12.128,4.565,13.451,3.822,14.47,3.028,15.325]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_BOWL={strokes:[{width:2,cap:true,closed:false,points:[2,11,22,11]},{width:2,cap:true,closed:false,points:[4,11,4.287,13.12,5.096,15.03,6.35,16.65,7.97,17.904,9.88,18.713,12,19,14.12,18.713,16.03,17.904,17.65,16.65,18.904,15.03,19.713,13.12,20,11]},{width:2,cap:true,closed:false,points:[8.5,8,9.352,7.333,10.581,6.933,12,6.8,13.419,6.933,14.648,7.333,15.5,8]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_BOX={strokes:[{width:2,cap:true,closed:true,points:[11,21.73,12,21.998,13,21.73,20,17.73,20.732,16.999,21,16,21,8,20.732,7.001,20,6.27,13,2.27,12,2.002,11,2.27,4,6.27,3.268,7.001,3,8,3,16,3.268,16.999,4,17.73]},{width:2,cap:true,closed:false,points:[12,22,12,12]},{width:2,cap:true,closed:false,points:[3.29,7,12,12,20.71,7]},{width:2,cap:true,closed:false,points:[7.5,4.27,16.5,9.42]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_CALENDAR={strokes:[{width:2,cap:true,closed:false,points:[8,2,8,6]},{width:2,cap:true,closed:false,points:[16,2,16,6]},{width:2,cap:true,closed:false,points:[3,10,21,10]}],boxes:[{x:3,y:4,w:18,h:18,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_CAMERA={strokes:[{width:2,cap:true,closed:true,points:[14.5,4,9.5,4,7,7,4,7,3,7.268,2.268,8,2,9,2,18,2.268,19,3,19.732,4,20,20,20,21,19.732,21.732,19,22,18,22,9,21.732,8,21,7.268,20,7,17,7,14.5,4]}],boxes:[{x:9,y:10,w:6,h:6,radius:3,width:2}],triangles:[],seams:[]},UI_RN_ICON_CHECK={strokes:[{width:2,cap:true,closed:false,points:[20,6,9,17,4,12]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_CHEVRON={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_CLOCK={strokes:[{width:2,cap:true,closed:true,points:[12,22,14.658,21.643,17.048,20.635,19.071,19.071,20.635,17.048,21.643,14.658,22,12,21.643,9.342,20.635,6.953,19.071,4.929,17.048,3.366,14.658,2.357,12,2,9.341,2.357,6.953,3.366,4.929,4.929,3.365,6.953,2.357,9.342,2,12,2.357,14.658,3.365,17.048,4.929,19.071,6.953,20.635,9.341,21.643,12,22]},{width:2,cap:true,closed:false,points:[12,6.001,12,12,16,14.001]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_DOWNLOAD={strokes:[{width:2,cap:true,closed:false,points:[12,15,12,3]},{width:2,cap:true,closed:false,points:[17,10,12,15,7,10]},{width:2,cap:true,closed:false,points:[21,15,21,19.001,20.847,19.765,20.414,20.414,19.765,20.847,19,21,5,21,4.235,20.847,3.586,20.414,3.153,19.765,3,19.001,3,15]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_EDIT={strokes:[{width:2,cap:true,closed:false,points:[12,3,5,3,4,3.268,3.268,4,3,5,3,19,3.268,20,4,20.732,5,21,19,21,20,20.732,20.732,20,21,19,21,12]},{width:2,cap:true,closed:true,points:[18.375,2.625,19.326,2.076,20.424,2.076,21.375,2.625,21.924,3.576,21.924,4.674,21.375,5.625,12.362,14.639,11.509,15.144,8.636,15.984,8.142,15.858,8.016,15.364,8.856,12.491,9.362,11.639]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_FILE={strokes:[{width:2,cap:true,closed:true,points:[15,2,6,2,5,2.268,4.268,3,4,4,4,20,4.268,21,5,21.732,6,22,18,22,19,21.732,19.732,21,20,20,20,7]},{width:2,cap:true,closed:false,points:[14,2,14,6,14.268,7,15,7.732,16,8,20,8]},{width:2,cap:true,closed:false,points:[10,9,8,9]},{width:2,cap:true,closed:false,points:[16,13,8,13]},{width:2,cap:true,closed:false,points:[16,17,8,17]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_FLASK={strokes:[{width:2,cap:true,closed:false,points:[14.001,2,14.001,8,14.245,8.96,19.755,19.039,20,20.034,19.721,21.019,18.99,21.738,18,21.999,6,21.999,5.01,21.738,4.279,21.019,3.999,20.034,4.245,19.039,9.755,8.96,10,8,10,2]},{width:2,cap:true,closed:false,points:[6.453,15,17.547,15]},{width:2,cap:true,closed:false,points:[8.5,2,15.5,2]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_FOLDER={strokes:[{width:2,cap:true,closed:true,points:[20,20,20.765,19.847,21.415,19.413,21.847,18.765,22,18,22,8,21.847,7.235,21.415,6.585,20.765,6.152,20,6,12.1,6,11.14,5.765,10.41,5.099,9.6,3.899,8.879,3.239,7.93,2.999,4,2.999,3.234,3.152,2.586,3.586,2.152,4.234,2,5,2,18,2.152,18.765,2.586,19.413,3.234,19.847,4,20,20,20]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_HEART={strokes:[{width:2,cap:true,closed:true,points:[2,9.499,2.247,7.868,2.968,6.383,4.096,5.179,5.532,4.364,7.144,4.011,8.788,4.152,10.316,4.776,11.591,5.824,11.777,5.955,12,6.001,12.223,5.955,12.409,5.824,13.682,4.768,15.211,4.139,16.859,3.995,18.475,4.347,19.913,5.165,21.041,6.374,21.759,7.863,22,9.499,21.742,11.114,21.063,12.546,20.101,13.829,19,15,13.508,20.313,12.834,20.817,12.012,20.999,11.189,20.827,10.508,20.332,5,15,3.899,13.831,2.937,12.55,2.258,11.119,2,9.499]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_HELP={strokes:[{width:2,cap:true,closed:false,points:[9.09,9,9.842,7.832,11.04,7.127,12.427,7.039,13.705,7.584,14.6,8.648,14.92,10,14.608,11.08,13.864,11.92,12.976,12.52,12.232,12.88,11.92,13]},{width:2,cap:true,closed:false,points:[12,17,12.01,17]}],boxes:[{x:2,y:2,w:20,h:20,radius:10,width:2}],triangles:[],seams:[]},UI_RN_ICON_HOUSE={strokes:[{width:2,cap:true,closed:false,points:[15,21,15,13,14.707,12.293,14,12,10,12,9.293,12.293,9,13,9,21]},{width:2,cap:true,closed:true,points:[3,10,3.186,9.158,3.709,8.472,10.709,2.473,11.536,2.055,12.464,2.055,13.291,2.473,20.291,8.472,20.814,9.158,21,10,21,19,20.732,20,20,20.732,19,21,5,21,4,20.732,3.268,20,3,19]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_IMAGE={strokes:[{width:2,cap:true,closed:false,points:[21,15,17.914,11.914,17.018,11.397,15.982,11.397,15.086,11.914,6,21]}],boxes:[{x:3,y:3,w:18,h:18,radius:2,width:2},{x:7,y:7,w:4,h:4,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_INFO={strokes:[{width:2,cap:true,closed:false,points:[12,16,12,12]},{width:2,cap:true,closed:false,points:[12,8,12.01,8]}],boxes:[{x:2,y:2,w:20,h:20,radius:10,width:2}],triangles:[],seams:[]},UI_RN_ICON_LEAF={strokes:[{width:2,cap:true,closed:true,points:[11,20,8.727,19.628,6.697,18.538,5.131,16.848,4.199,14.741,4.001,12.446,4.558,10.211,5.811,8.278,7.624,6.856,9.8,6.1,12.322,5.587,14.274,5.099,15.788,4.568,16.993,3.921,18.02,3.088,19,2,19.734,3.557,20.375,5.318,20.828,7.42,21,10,20.72,12.286,19.931,14.388,18.708,16.245,17.127,17.796,15.265,18.98,13.198,19.735,11,20]},{width:2,cap:true,closed:false,points:[2,21,2.218,19.285,2.858,17.776,3.896,16.524,5.311,15.582,7.08,15,8.885,14.469,10.573,13.695,11.993,12.823,13,12]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_LOCK={strokes:[{width:2,cap:true,closed:false,points:[7,11,7,7,7.381,5.087,8.464,3.464,10.087,2.381,12,2,13.913,2.381,15.536,3.464,16.619,5.087,17,7,17,11]}],boxes:[{x:3,y:11,w:18,h:11,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_MAIL={strokes:[{width:2,cap:true,closed:false,points:[22,7,13.03,12.7,12,12.996,10.97,12.7,2,7]}],boxes:[{x:2,y:4,w:20,h:16,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_MESSAGE={strokes:[{width:2,cap:true,closed:true,points:[7.9,20,10.431,20.853,13.102,20.925,15.676,20.211,17.927,18.772,19.656,16.736,20.712,14.282,21,11.627,20.497,9.003,19.246,6.643,17.357,4.754,14.997,3.503,12.373,3,9.718,3.288,7.264,4.344,5.228,6.073,3.789,8.324,3.075,10.898,3.147,13.569,4,16.1,2,22]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_MINUS={strokes:[{width:2,cap:true,closed:false,points:[5,12,19,12]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_MORE={strokes:[],boxes:[{x:4.65,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7},{x:11.15,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7},{x:17.65,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7}],triangles:[],seams:[]},UI_RN_ICON_PAW={strokes:[{width:2,cap:true,closed:true,points:[9,10,10.913,10.381,12.536,11.464,13.619,13.087,14,15,14,18.5,13.615,20.094,12.547,21.338,11.029,21.959,9.395,21.82,8.003,20.952,7.16,19.545,6.576,18.327,5.676,17.425,4.46,16.84,3.054,15.997,2.186,14.607,2.046,12.974,2.665,11.456,3.907,10.387,5.5,10]}],boxes:[{x:9,y:2,w:4,h:4,radius:2,width:2},{x:16,y:6,w:4,h:4,radius:2,width:2},{x:18,y:14,w:4,h:4,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_PHONE={strokes:[{width:2,cap:true,closed:false,points:[13.832,16.568,14.492,16.629,15.045,16.265,15.4,15.8,16.106,15.211,17,15,20,15,21,15.268,21.732,16,22,17,22,20,21.732,21,21,21.732,20,22,16.488,21.654,13.112,20.63,10,18.966,7.272,16.728,5.034,14,3.37,10.888,2.346,7.512,2,4,2.268,3,3,2.268,4,2,7,2,8,2.268,8.732,3,9,4,9,7,8.789,7.894,8.2,8.6,7.732,8.951,7.366,9.515,7.44,10.184,9.084,12.765,11.249,14.928,13.832,16.568]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_PILL={strokes:[{width:2,cap:true,closed:true,points:[10.5,20.5,20.5,10.5,21.594,8.894,21.985,6.99,21.613,5.082,20.536,3.464,18.918,2.387,17.01,2.015,15.106,2.406,13.5,3.5,3.5,13.5,2.406,15.106,2.015,17.01,2.387,18.918,3.464,20.536,5.082,21.613,6.99,21.985,8.894,21.594,10.5,20.5]},{width:2,cap:true,closed:false,points:[8.5,8.5,15.5,15.5]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_PIN={strokes:[{width:2,cap:true,closed:false,points:[20,10,19.688,12.141,18.859,14.242,17.674,16.234,16.294,18.053,14.881,19.631,13.597,20.902,12.601,21.799,12,22,11.399,21.799,10.403,20.902,9.119,19.631,7.706,18.053,6.326,16.234,5.141,14.242,4.312,12.141,4,10,4.392,7.528,5.528,5.298,7.298,3.528,9.528,2.392,12,2,14.472,2.392,16.702,3.528,18.472,5.298,19.608,7.528,20,10]}],boxes:[{x:9,y:7,w:6,h:6,radius:3,width:2}],triangles:[],seams:[]},UI_RN_ICON_PLUS={strokes:[{width:2,cap:true,closed:false,points:[5,12,19.001,12]},{width:2,cap:true,closed:false,points:[12,5,12,19.001]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_SEARCH={strokes:[{width:2,cap:true,closed:false,points:[21,21,16.7,16.7]}],boxes:[{x:3,y:3,w:16,h:16,radius:8,width:2}],triangles:[],seams:[]},UI_RN_ICON_SEND={strokes:[{width:2,cap:true,closed:true,points:[14.536,21.686,15.013,22,15.473,21.662,21.973,2.662,21.857,2.143,21.338,2.027,2.338,8.527,2,8.987,2.314,9.464,10.244,12.644,10.914,13.085,11.356,13.754]},{width:2,cap:true,closed:false,points:[21.854,2.147,10.914,13.086]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_SHIELD={strokes:[{width:2,cap:true,closed:true,points:[20,12.999,19.722,15.298,18.938,17.22,17.73,18.806,16.175,20.096,14.352,21.131,12.34,21.949,11.67,21.94,9.654,21.125,7.828,20.093,6.272,18.805,5.062,17.22,4.279,15.298,4,12.999,4,6,4.293,5.293,5,5,6.574,4.788,8.218,4.21,9.812,3.346,11.24,2.28,12,1.999,12.76,2.28,14.192,3.35,15.786,4.213,17.427,4.79,19,5,19.707,5.293,20,6,20,12.999]},{width:2,cap:true,closed:false,points:[9,12,11,13.999,15,10]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_SPARKLE={strokes:[{width:2,cap:true,closed:true,points:[12,3.5,12.503,5.742,13.338,7.465,14.57,8.727,16.269,9.586,18.5,10.1,16.269,10.603,14.57,11.438,13.338,12.67,12.503,14.369,12,16.6,11.497,14.369,10.662,12.67,9.43,11.438,7.731,10.603,5.5,10.1,7.731,9.586,9.43,8.727,10.662,7.465,11.497,5.742,12,3.5]},{width:2,cap:true,closed:true,points:[19,15.5,19.426,16.793,20.207,17.574,21.5,18,20.207,18.426,19.426,19.207,19,20.5,18.574,19.207,17.793,18.426,16.5,18,17.793,17.574,18.574,16.793,19,15.5]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_SYRINGE={strokes:[{width:2,cap:true,closed:false,points:[17.798,2,21.798,6]},{width:2,cap:true,closed:false,points:[16.799,7.001,19.798,4]},{width:2,cap:true,closed:false,points:[18.8,9,8.5,19.3,7.374,19.967,6.159,19.967,5.1,19.3,4.5,18.7,3.834,17.574,3.834,16.359,4.5,15.3,14.8,5.001]},{width:2,cap:true,closed:false,points:[8.8,11,12.8,15]},{width:2,cap:true,closed:false,points:[4.799,19,1.799,22]},{width:2,cap:true,closed:false,points:[13.799,4,19.8,10]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_UPLOAD={strokes:[{width:2,cap:true,closed:false,points:[12.001,3,12.001,15]},{width:2,cap:true,closed:false,points:[7,8,12.001,3,17,8]},{width:2,cap:true,closed:false,points:[21,15,21,19,20.847,19.765,20.414,20.414,19.765,20.847,19.001,21,5,21,4.235,20.847,3.586,20.414,3.153,19.765,3,19,3,15]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_USER={strokes:[{width:1.75,cap:true,closed:false,points:[19,21,19,19,18.696,17.469,17.828,16.172,16.531,15.304,15,15,9,15,7.469,15.304,6.172,16.172,5.304,17.469,5,19,5,21]}],boxes:[{x:8,y:3,w:8,h:8,radius:4,width:1.75}],triangles:[],seams:[]},UI_RN_ICON_VIDEO={strokes:[{width:2,cap:true,closed:false,points:[16,13,21.223,16.482,21.736,16.507,22,16.066,22,7.87,21.749,7.436,21.248,7.438,16,10.5]}],boxes:[{x:2,y:6,w:14,h:12,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_X={strokes:[{width:2,cap:true,closed:false,points:[18,6,6,18]},{width:2,cap:true,closed:false,points:[6,6,18,18]}],boxes:[],triangles:[],seams:[]},UI_RN_ICONS={alert:UI_RN_ICON_ALERT,"arrow-left":UI_RN_ICON_ARROW_LEFT,bag:UI_RN_ICON_BAG,bell:UI_RN_ICON_BELL,bowl:UI_RN_ICON_BOWL,box:UI_RN_ICON_BOX,calendar:UI_RN_ICON_CALENDAR,camera:UI_RN_ICON_CAMERA,check:UI_RN_ICON_CHECK,chevron:UI_RN_ICON_CHEVRON,clock:UI_RN_ICON_CLOCK,download:UI_RN_ICON_DOWNLOAD,edit:UI_RN_ICON_EDIT,file:UI_RN_ICON_FILE,flask:UI_RN_ICON_FLASK,folder:UI_RN_ICON_FOLDER,heart:UI_RN_ICON_HEART,help:UI_RN_ICON_HELP,house:UI_RN_ICON_HOUSE,image:UI_RN_ICON_IMAGE,info:UI_RN_ICON_INFO,leaf:UI_RN_ICON_LEAF,lock:UI_RN_ICON_LOCK,mail:UI_RN_ICON_MAIL,message:UI_RN_ICON_MESSAGE,minus:UI_RN_ICON_MINUS,more:UI_RN_ICON_MORE,paw:UI_RN_ICON_PAW,phone:UI_RN_ICON_PHONE,pill:UI_RN_ICON_PILL,pin:UI_RN_ICON_PIN,plus:UI_RN_ICON_PLUS,search:UI_RN_ICON_SEARCH,send:UI_RN_ICON_SEND,shield:UI_RN_ICON_SHIELD,sparkle:UI_RN_ICON_SPARKLE,syringe:UI_RN_ICON_SYRINGE,upload:UI_RN_ICON_UPLOAD,user:UI_RN_ICON_USER,video:UI_RN_ICON_VIDEO,x:UI_RN_ICON_X};function Icon({name:name,...rest}){let icon=UI_RN_ICONS[name];return icon?/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:icon,...rest}):null}function usePressLayer(component,info,onPress,designScale=1){return pressLayerOf(usePressFeedback(),component,info,onPress,designScale)}function pressLayerOf(feedback,component,info,onPress,designScale=1){let h=pressHandlers(feedback,{component:component,testID:info.testID,...info.item===void 0?{}:{item:info.item},label:info.label,trackId:info.trackId,haptic:info.haptic===true},onPress,{disabled:info.disabled});return{props:h.onPressIn?{onPress:h.onPress,onPressIn:h.onPressIn}:{onPress:h.onPress},scale:pressScaleFor(feedback,component,designScale)}}var cubic=e=>`cubic-bezier(${e.join(", ")})`,styleAt=(style,pressed)=>typeof style=="function"?style({pressed:pressed}):style,animatedPressable;function animatedPressableOf(){return animatedPressable??(animatedPressable=reactNative.Animated.createAnimatedComponent(reactNative.Pressable))}function pressTiming(t,value,toValue){let[a,b,c,d]=t.motion.easing.out;return reactNative.Animated.timing(value,{toValue:toValue,duration:t.motion.duration.press,easing:reactNative.Easing.bezier(a,b,c,d),useNativeDriver:true})}function PressBox({style:style,scale:scale,still:still,pop:pop,onPressIn:onPressIn,onPressOut:onPressOut,...props}){let t=useTheme(),value=react.useRef(null),[held,setHeld]=react.useState(false),scales=!still&&scale!==1,popping=!still&&pop?.scale!=null;if(reactNative.Platform.OS==="web"){let motion=scales?{transitionProperty:"transform",transitionDuration:`${t.motion.duration.press}ms`,transitionTimingFunction:cubic(t.motion.easing.out)}:null;return react.createElement(reactNative.Pressable,{...props,...pop?{ref:pop.ref}:null,onPressIn:onPressIn,onPressOut:onPressOut,style:({pressed:pressed})=>[styleAt(style,pressed),motion,scales&&pressed?{transform:[{scale:scale}]}:null]})}if(!scales&&!popping)return react.createElement(reactNative.Pressable,{...props,onPressIn:onPressIn,onPressOut:onPressOut,style:style});let v=value.current??(value.current=new reactNative.Animated.Value(0)),pressScale=scales?v.interpolate({inputRange:[0,1],outputRange:[1,scale]}):null,both=pressScale&&popping?reactNative.Animated.multiply(pressScale,pop?.scale):pressScale??pop?.scale;return react.createElement(animatedPressableOf(),{...props,onPressIn:e=>{props.disabled||(setHeld(true),scales&&pressTiming(t,v,1).start(),onPressIn?.(e))},onPressOut:e=>{setHeld(false),scales&&pressTiming(t,v,0).start(),onPressOut?.(e)},style:[styleAt(style,held),{transform:[{scale:both}]}]})}function Button({label:label,onPress:onPress,tone:tone="ink",size:size="md",icon:icon,disabled:disabled=false,loading:loading=false,loadingLabel:loadingLabel,loadingIndicator:loadingIndicator="spinner",fullWidth:fullWidth,accessibilityLabel:accessibilityLabel,trackId:trackId,haptic:haptic,testID:testID,style:style,children:children,nativeID:nativeID,onPressIn:onPressIn,"aria-expanded":expanded,"aria-pressed":pressed,"aria-current":current}){let t=useTheme(),inSheet=useUiSurface()==="sheet",reduced=useRnReduced(t),s=buttonSpec(t,tone,size,inSheet),blocked=disabled||loading,block=fullWidth??(inSheet||s.fill),spinner=loading&&loadingIndicator!=="none",spoken=spinner&&loadingLabel?loadingLabel:accessibilityLabel??(spinner&&loadingLabel?loadingLabel:label),press=usePressLayer("Button",{testID:testID,label:spoken,trackId:trackId,haptic:haptic,disabled:blocked},onPress,s.pressScale),layerIn=press.props.onPressIn,pressIn=onPressIn&&layerIn?()=>{layerIn(),onPressIn()}:onPressIn??layerIn;/* @__PURE__ */
2
+ "use strict";var react=require("react"),reactNative=require("react-native"),jsxRuntime=require("react/jsx-runtime");var everfurTokens=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var BLOCK_BOX={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},BLOCK_TEXT={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},blockBox=p=>({...BLOCK_BOX,...p}),blockText=p=>({...BLOCK_TEXT,...p}),everfurMetrics={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},progress:{track:{shown:true,w:361,h:4,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"line",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},fill:"go",move:300},divider:{width:1,color:"line",label:{shown:true,size:12,weight:400,lineHeight:18.6,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},labelGap:12,labelLine:{width:1,color:"line"}},errorInline:{text:{shown:true,size:15,weight:400,lineHeight:21,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:361,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},linkPressedOpacity:.6},variants:{drawer:{frame:{shown:true,w:393,h:226.594,padding:[10,20,40,20],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[28,0],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:293.406,dy:0},maxHeight:.8,grab:{shown:true,w:40,h:5,padding:[0,0,0,0],marginTop:0,marginBottom:10,gap:[0,0],minHeight:0,radius:[2.5,2.5],bg:"#DAD7D1",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},top:{shown:true,w:353,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:11,weight:400,lineHeight:16.5,color:"muted",tracking:.88,face:"mono",upper:true,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},close:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},closeEnd:-8,closeIcon:22,title:{shown:true,size:24,weight:800,lineHeight:27.6,color:"ink",tracking:-.24,face:"serif",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,w:353,h:82,padding:[0,0,0,0],marginTop:12,marginBottom:0,gap:[10,10],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:16,weight:400,lineHeight:24,color:"text",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scrim:"ink/0.38",motion:{enterMs:320,enterEasing:[.32,.72,0,1],exitMs:220,exitEasing:[.23,1,.32,1],scrimEnterMs:240,scrimExitMs:200,scrimEasing:[.25,.1,.25,1]}},button:{ink:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:0,ring:false,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},outline:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:1.5,ring:true,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},sm:{fill:false,minHeight:40,paddingX:16,gap:8,borderWidth:1.5,ring:true,fontSize:15,fontWeight:700,lineHeight:1.5,iconSize:20},lg:{fill:false,minHeight:56,paddingX:28,gap:8,borderWidth:0,ring:false,fontSize:17,fontWeight:700,lineHeight:1.5,iconSize:20},disabledOpacity:.32,press:.97,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease"},segmented:{track:{shown:true,w:361,h:44,padding:[4,4,4,4],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[22,22],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},option:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},label:{shown:true,size:14,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},chosen:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:0,y:0,dy:0},chosenLabel:{shown:true,size:14,weight:700,lineHeight:21,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},press:.96,transition:"background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},stepper:{track:{shown:true,w:110,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},button:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},icon:16,value:{shown:true,size:15.5,weight:800,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},valueWidth:30,disabledOpacity:.3,press:.9,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},summary:{box:{shown:true,w:361,h:144,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},row:{shown:true,w:329,h:34,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:34,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},term:{shown:true,size:15,weight:400,lineHeight:22.5,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},value:{shown:true,size:15,weight:400,lineHeight:22.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},totalRow:{shown:true,w:329,h:42,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:42,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},totalTerm:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renewRow:{shown:true,w:329,h:28,padding:[0,0,0,0],marginTop:-6,marginBottom:0,gap:[12,12],minHeight:28,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},renewTerm:{shown:true,size:14,weight:400,lineHeight:21,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renew:{shown:true,size:14,weight:400,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},inset:{shown:true,w:361,h:88,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"bg",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0}},toast:{box:{shown:true,w:361,h:64.594,padding:[12,15,12,15],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:16,y:62,dy:0},text:{shown:true,size:14.5,weight:400,lineHeight:20.3,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:12},motion:{enterMs:220,exitMs:160,easing:[.23,1,.32,1],rise:-8}},focus:{width:2,offset:2,color:"ink"}},press:{button:.97,iconButton:.94,card:.98},colors:{grab:"#C9C9C9",scrim:"rgba(0, 0, 0, 0.32)",watch:"#F9E6B9",planInk:"#262523",planOnInk:"#FFFFFF",planAccent:"#FFCE34",planLink:"#00707C",planAccentWash:"#FFF7DC",planAccentChip:"#FFE7A1",planLinkWash:"#E0FDFF",planLinkChip:"#C8F4F8"}},everfurBlocksMetrics={order:{card:blockBox({w:361,h:163.547}),top:blockBox({w:361,h:39.547,gap:[12,12]}),title:blockText({size:16,weight:700,lineHeight:20,tracking:-.16}),meta:blockText({size:13,weight:400,lineHeight:17.55,color:"muted"}),total:blockText({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:blockBox({w:361,h:64,marginTop:8,gap:[8,8]}),acts:blockBox({w:361,h:40,marginTop:12,gap:[8,8]}),go:blockBox({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"go",center:true}),goText:blockText({size:14,weight:700,lineHeight:21.7}),plain:blockBox({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:blockText({size:14,weight:700,lineHeight:21.7}),note:blockText({size:13,weight:500,lineHeight:17.55,marginTop:8}),icon:blockBox({w:16,h:16}),actsColumns:2,shotPressScale:.96},orderQuiet:{top:blockBox({w:361,h:43.547,gap:[12,12]}),when:blockBox({w:300.063,h:24,gap:[8,4],center:true}),title:blockText({size:16,weight:700,lineHeight:20.8}),chip:blockBox({w:86.031,h:24,padding:[0,9,0,5],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:blockText({size:12,weight:700,lineHeight:15.6,color:"ink"}),chipIcon:blockBox({w:14,h:14,color:"ink"}),meta:blockText({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),total:blockText({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:blockBox({w:361,h:64,marginTop:8,gap:[8,8]}),shot:blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),shotImg:blockBox({w:64,h:64,padding:[6.391,6.391,6.391,6.391],fit:"contain"}),shotBlend:"multiply",acts:blockBox({w:361,h:44,marginTop:12,gap:[12,12],center:true}),plain:blockBox({w:162.109,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:blockText({size:14,weight:700,lineHeight:21.7}),icon:blockBox({w:16,h:16}),link:blockBox({w:62.578,h:44,padding:[0,6,0,6],minHeight:44}),linkText:blockText({size:14,weight:700,lineHeight:21.7,deco:"underline",decoOffset:3,decoThickness:1.5})},orderWeb:{card:blockBox({w:952,h:127.781,padding:[16,24,16,16],gap:[24,16],radius:[20,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.04)",x:0,y:1,blur:2,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.05)",x:0,y:6,blur:20,spread:0},shots:blockBox({w:172,h:72}),sq:blockBox({w:72,h:72,radius:[14,14],bg:"#F3F3F3"}),sqRing:3,sqOverlap:22,imgInset:.1,imgFit:"contain",imgBlend:"multiply",text:blockBox({w:446.547,h:95.781,gap:[2,2]}),when:blockBox({w:446.547,h:26,gap:[12,4],center:true}),title:blockText({size:19,weight:700,lineHeight:24.7,tabular:true}),total:blockText({size:19,weight:900,lineHeight:24.7,tabular:true}),chip:blockBox({w:94.547,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:blockText({size:13,weight:700,lineHeight:16.9,color:"ink",tabular:true}),chipIcon:blockBox({w:16,h:16,color:"ink"}),meta:blockText({size:16,weight:400,lineHeight:22.4}),note:blockText({size:15,weight:400,lineHeight:21}),acts:blockBox({w:245.453,h:46,gap:[24,8],center:true}),plain:blockBox({w:160.031,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:blockText({size:16,weight:700,lineHeight:19.2,color:"ink"}),icon:blockBox({w:18,h:18,color:"ink"}),link:blockBox({w:61.422,h:44,gap:[8,8],minHeight:44,center:true,color:"ink"}),linkText:blockText({size:17,weight:700,lineHeight:20.4,color:"ink",deco:"underline",decoOffset:4}),go:blockBox({w:228.75,h:52,padding:[0,24,0,24],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),goText:blockText({size:17,weight:700,lineHeight:20.4,color:"surface",wrap:"auto"}),pressScale:.97,hoverFill:{color:"ink",share:.06,over:"surface"},chipOff:blockBox({w:97.422,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],center:true,color:"ink"}),metaLink:blockText({size:16,weight:400,lineHeight:22.4,deco:"underline"}),narrow:{upTo:599,card:blockBox({w:560,h:247.391,padding:[16,16,16,16],gap:[24,16],radius:[20,20],bg:"surface",center:true}),sq:blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:3}}),sqOverlap:16},phone:{upTo:639,card:blockBox({w:335,h:120.984,gap:[12,8],center:true}),sq:blockBox({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),sqRing:2,sqOverlap:18,when:blockBox({w:215,h:46.797,gap:[12,2],center:true}),title:blockText({size:16,weight:700,lineHeight:20.8,tabular:true}),total:blockText({size:16,weight:900,lineHeight:20.8,tabular:true}),chip:blockBox({w:90.031,h:24,padding:[0,10,0,6],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:blockText({size:12,weight:700,lineHeight:15.6,color:"ink",tabular:true}),whatHidden:true,note:blockText({size:13,weight:400,lineHeight:18.2}),acts:blockBox({w:335,h:46,gap:[24,8],center:true}),plain:blockBox({w:144.531,h:46,padding:[0,16,0,16],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:blockText({size:15,weight:700,lineHeight:18,color:"ink"}),linkText:blockText({size:15,weight:700,lineHeight:18,color:"ink",deco:"underline",decoOffset:4})}},product:{card:blockBox({w:156,h:310.969,gap:[4,4]}),kicker:blockText({size:12,weight:400,lineHeight:15.6,color:"muted",tracking:.12,face:"mono"}),name:blockText({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),meta:blockText({size:13,weight:400,lineHeight:18.2,color:"muted"}),buy:blockBox({w:156,h:36,marginTop:6,gap:[8,8],center:true}),price:blockText({size:15,weight:700,lineHeight:23.25,tabular:true})},productCard:{card:blockBox({w:174.5,h:249.219,gap:[2,2]}),tag:blockBox({w:84.563,h:26,padding:[0,9,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"surface",center:true,x:8,y:8}),tagIcon:blockBox({w:16,h:16,color:"#CA4463"}),tagText:blockText({size:12,weight:700,lineHeight:12}),price:blockBox({w:174.5,h:26.344,gap:[6,6]}),priceText:blockText({size:17,weight:700,lineHeight:26.35,tracking:-.17,tabular:true}),was:blockText({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"}),name:blockText({size:14,weight:500,lineHeight:18.2,wrap:"balance"}),meta:blockText({size:12,weight:400,lineHeight:16.2,color:"muted"}),metaAuto:blockText({size:12,weight:500,lineHeight:16.2,color:"#16864A"}),step:blockBox({w:112,h:38,radius:[19,19],bg:"surface",center:true,x:54.5,y:128.5}),stepIn:blockBox({w:112,h:38,radius:[19,19],bg:"ink",center:true,color:"surface",x:54.5,y:128.5}),stepAt:{right:8,bottom:8},stepButton:blockBox({w:38,h:38,radius:[19,19],center:true}),stepIcon:blockBox({w:18,h:18}),count:blockText({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),lift:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},per:blockText({size:12,weight:400,lineHeight:16.2,color:"muted",tabular:true}),metaAutoDark:blockText({size:12,weight:500,lineHeight:16.2,color:"ink"}),pill:blockBox({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"go",center:true,x:104.266,y:130.5}),pillText:blockText({size:14,weight:700,lineHeight:21.7}),pillOn:blockBox({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"text",ring:true},center:true,x:76.484,y:130.5}),pillOnText:blockText({size:14,weight:700,lineHeight:21.7}),pillIcon:blockBox({w:16,h:16}),pillSoft:blockBox({w:80.125,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true,x:86.375,y:130.5}),pillSoftText:blockText({size:14,weight:700,lineHeight:21.7}),pillAt:{right:8,bottom:8},pillPressScale:.96},productBlend:{img:blockBox({w:174.5,h:174.5,padding:[32,14,16,14],fit:"contain"}),imgBlend:"multiply",lift:{color:"rgba(0, 0, 0, 0.08)",x:0,y:2,blur:8,spread:0},pill:blockBox({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink",x:104.266,y:130.5}),pillText:blockText({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillOn:blockBox({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink",x:76.484,y:130.5}),pillOnText:blockText({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillPressScale:.97},productWeb:{card:blockBox({w:306.656,h:370.641,gap:[2,2]}),square:blockBox({w:306.656,h:306.656,marginBottom:10,radius:[20,20],bg:"#F5F5F5"}),imgInsetTag:{share:[.11,.11,.1,.11],px:[26,0,0,0]},imgInset:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgFit:"contain",imgBlend:"multiply",tag:blockBox({w:112.516,h:30,padding:[0,12,0,8],gap:[5,5],minHeight:30,radius:[999,999],bg:"#F7E3E8",center:true,color:"ink",x:10,y:10}),tagText:blockText({size:13,weight:700,lineHeight:14.3,color:"ink"}),tagIcon:blockBox({w:16,h:16,color:"#CA4463"}),tagMix:.15,name:blockText({size:17,weight:500,lineHeight:22.1,wrap:"balance"}),nameLeading:1.3,coverRadius:20,price:blockBox({w:306.656,h:27.891,gap:[8,2]}),priceText:blockText({size:18,weight:700,lineHeight:27.9,tracking:-.18,tabular:true}),was:blockText({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),per:blockText({size:15,weight:400,lineHeight:23.25,tabular:true}),badge:blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:blockText({size:13,weight:700,lineHeight:13,tabular:true}),meta:blockText({size:15,weight:400,lineHeight:21}),add:blockBox({w:44,h:44,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),addIcon:blockBox({w:20,h:20}),actAt:{right:10,bottom:10},step:blockBox({w:116,h:44,radius:[22,22],bg:"ink",center:true,color:"surface"}),stepButton:blockBox({w:44,h:44,radius:[22,22],center:true,color:"surface"}),stepIcon:blockBox({w:18,h:18,color:"surface"}),count:blockText({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),pill:blockBox({w:68.688,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"ink",center:true,color:"surface"}),pillText:blockText({size:15,weight:700,lineHeight:15,color:"surface"}),pillOn:blockBox({w:101.016,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink"}),pillOnText:blockText({size:15,weight:700,lineHeight:15,color:"ink"}),pillIcon:blockBox({w:18,h:18,color:"ink"}),pillSoft:blockBox({w:87.859,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),pillSoftText:blockText({size:15,weight:700,lineHeight:15}),nameSteps:[{upTo:599,name:blockText({size:16,weight:500,lineHeight:20.8,wrap:"balance"})},{upTo:399,name:blockText({size:14,weight:500,lineHeight:18.2,wrap:"balance"})}],addPressScale:.94,stepPressScale:.88,pillPressScale:.97,imgInsetEven:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgInsetWhite:{share:[.11,.11,.14,.11],px:[0,0,0,0]},groundWhite:"surface",focusOffset:3,hover:{ring:{width:1.5,share:.45,color:"ink"},underlineOffset:3}},productRow:{card:blockBox({shown:false,w:361,h:109.328,gap:[12,12],center:true}),name:blockText({shown:false,size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:blockText({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2})},cart:{line:blockBox({w:361,h:109.328,gap:[12,12],center:true}),name:blockBox({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:blockText({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:blockText({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:blockText({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:blockText({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:blockBox({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:blockText({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:blockBox({w:53.016,h:20.141,color:"ink"}),end:blockBox({w:289,h:26.344,gap:[4,4]})},cartSquare:{line:blockBox({w:361,h:95.094,gap:[12,12]}),sm:blockBox({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:blockBox({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:blockBox({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:blockBox({w:239.109,h:20,gap:[6,4],center:true}),nameText:blockText({size:15,weight:700,lineHeight:19.5}),link:blockText({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:blockBox({w:29.344,h:20,padding:[0,7,0,7],radius:[999,999],bg:"#E0E6F2",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:blockText({size:12,weight:700,lineHeight:12}),meta:blockText({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:blockBox({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:blockText({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:blockBox({w:84.531,h:32,minHeight:32,color:"ink"}),price:blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),was:blockText({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},cartWeb:{line:blockBox({w:404,h:88,gap:[16,0],center:true}),sq:blockBox({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:blockBox({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:blockText({size:19,weight:700,lineHeight:24.7}),link:blockText({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:blockText({size:13,weight:700,lineHeight:13}),meta:blockText({size:15,weight:400,lineHeight:21,marginTop:2}),price:blockText({size:19,weight:700,lineHeight:29.45,tabular:true}),was:blockText({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:blockBox({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:blockText({size:17,weight:700,lineHeight:22.1}),link:blockText({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:blockBox({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:blockBox({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:blockText({size:17,weight:700,lineHeight:22.1}),link:blockText({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:blockBox({w:303,h:81.25,gap:[12,0],center:true}),sq:blockBox({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:blockBox({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:blockText({size:15,weight:700,lineHeight:19.5}),link:blockText({size:15,weight:700,lineHeight:19.5}),meta:blockText({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),was:blockText({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},price:{note:blockText({size:13,weight:400,lineHeight:19.5,color:"muted",marginTop:12}),noteStrong:blockText({size:13,weight:700,lineHeight:19.5,color:"muted"})},priceWeb:{rows:blockBox({w:536,h:166.625,gap:[10,10]}),row:blockBox({w:536,h:26.344,gap:[16,16]}),term:blockText({size:17,weight:400,lineHeight:26.35,wrap:"balance"}),value:blockText({size:17,weight:700,lineHeight:26.35,tabular:true}),off:blockText({size:17,weight:700,lineHeight:26.35,color:"ink",wrap:"balance"}),total:blockBox({w:536,h:49.594,marginTop:8,gap:[16,16]}),totalTerm:blockText({size:20,weight:700,lineHeight:31,wrap:"balance"}),totalValue:blockText({size:32,weight:700,lineHeight:49.6,tracking:-.64,tabular:true}),note:blockText({size:15,weight:400,lineHeight:22.5,marginTop:16}),noteStrong:blockText({size:15,weight:700,lineHeight:22.5,color:"ink"}),phone:{upTo:639,rows:blockBox({w:239,h:145.141,gap:[8,8]}),term:blockText({size:15,weight:400,lineHeight:23.25,wrap:"balance"}),value:blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),totalTerm:blockText({size:18,weight:700,lineHeight:27.9,wrap:"balance"}),totalValue:blockText({size:28,weight:700,lineHeight:43.4,tracking:-.56,tabular:true}),note:blockText({size:15,weight:400,lineHeight:22.5,marginTop:12})},drawer:{rows:blockBox({w:360,h:154.219,marginTop:32,gap:[10,10]}),term:blockText({size:17,weight:400,lineHeight:26.35,wrap:"balance"}),value:blockText({size:17,weight:700,lineHeight:26.35,tabular:true}),totalTerm:blockText({size:20,weight:700,lineHeight:31,wrap:"balance"}),totalValue:blockText({size:24,weight:700,lineHeight:37.2,tabular:true}),note:blockText({size:15,weight:400,lineHeight:22.5,marginTop:12})}},need:{card:blockBox({w:325,h:125.25,padding:[14,16,14,16],radius:[0,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:2,blur:3,spread:-1}}),kicker:blockBox({w:293,h:24,gap:[8,8],center:true}),kickerText:blockText({size:15,weight:700,lineHeight:23.25}),source:blockBox({w:116.719,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#DAF6E8",center:true,color:"ink"}),sourceText:blockText({size:12,weight:700,lineHeight:18.6,color:"ink"}),title:blockText({shown:false,size:15,weight:700,lineHeight:23.25}),signal:blockBox({w:293,h:65.25,marginTop:8,gap:[9,9],color:"#4D4D4D"}),signalText:blockText({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),signalLead:blockText({size:15,weight:700,lineHeight:21.75}),dot:blockBox({w:9,h:9,radius:[4.5,4.5],bg:"alert",color:"#4D4D4D",dy:-1}),score:blockBox({w:293,h:99.859,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[10,10],bg:"#FCF0D6",center:true}),scoreLabel:blockText({size:14,weight:600,lineHeight:18.9,color:"#4D4D4D"}),scoreTag:blockBox({w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,radius:[6,6],bg:"surface"}),scoreTagText:blockText({size:12,weight:600,lineHeight:16.2,tracking:.72,face:"mono",upper:true,marginTop:3,paddingTop:2}),scoreNums:blockBox({w:106.109,h:51.141,gap:[6,0],center:true}),scoreWas:blockText({size:17,weight:700,lineHeight:26.35,color:"muted",deco:"strike",decoThickness:1.5}),scoreArrow:blockBox({w:16,h:16,color:"muted"}),scoreArrowFlip:true,scoreNow:blockText({size:28,weight:700,lineHeight:28,tracking:-.84,tabular:true}),scoreOf:blockText({size:15,weight:700,lineHeight:15,color:"#4D4D4D",tabular:true}),scoreSince:blockText({size:13,weight:700,lineHeight:20.15,color:"ink",marginTop:3})},needPlan:{card:blockBox({w:329,h:380.172,padding:[16,16,16,16],marginTop:14,radius:[22,22],bg:"surface",shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},color:"#262523"}),kicker:blockBox({w:297,h:24,gap:[8,8],center:true,color:"#262523"}),kickerText:blockText({size:15,weight:800,lineHeight:22.5,color:"#262523"}),source:blockBox({w:83.375,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#F2F1EE",center:true,color:"#4A4845"}),sourceText:blockText({size:12,weight:700,lineHeight:18,color:"#4A4845"}),title:blockText({size:19,weight:800,lineHeight:23.18,color:"#262523",marginTop:12}),signal:blockBox({w:297,h:65.25,marginTop:6,gap:[9,9],color:"#4A4845"}),signalText:blockText({size:15,weight:400,lineHeight:21.75,color:"#4A4845"}),signalLead:blockText({size:15,weight:800,lineHeight:21.75,color:"#262523"}),dot:blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#E5372B",color:"#4A4845",dy:-1}),score:blockBox({w:297,h:69.75,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[14,14],bg:"planAccentWash",center:true,color:"#262523"}),scoreLabel:blockText({size:13.5,weight:600,lineHeight:18.225,color:"#4A4845",wrap:"balance"}),scoreTag:blockBox({w:51.609,h:17.5,padding:[2,6,2,6],marginTop:3,radius:[5,5],bg:"surface",color:"#262523"}),scoreTagText:blockText({size:10,weight:600,lineHeight:13.5,color:"#262523",tracking:.6,face:"mono",upper:true,wrap:"balance",marginTop:3,paddingTop:2}),scoreNums:blockBox({w:94.75,h:49.75,gap:[6,0],center:true,color:"#262523"}),scoreWas:blockText({size:17,weight:700,lineHeight:25.5,color:"#6B6863",deco:"strike"}),scoreArrow:blockBox({w:16,h:16,color:"#6B6863"}),scoreArrowFlip:true,scoreNow:blockText({size:28,weight:800,lineHeight:28,color:"#262523"}),scoreOf:blockText({size:13,weight:800,lineHeight:13,color:"muted"}),scoreSince:blockText({size:12.5,weight:700,lineHeight:18.75,color:"planLink",marginTop:3}),sources:blockBox({w:131.375,h:24,gap:[4,4],color:"#262523"}),sourceDna:blockBox({w:44,h:24,padding:[0,9,0,9],radius:[999,999],bg:"planLinkWash",center:true,color:"planLink"}),sourceDnaText:blockText({size:12,weight:700,lineHeight:18,color:"planLink"}),dotWatch:blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#E5A000",color:"#4A4845",dy:-1}),dotClear:blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#5FA82B",color:"#4A4845",dy:-1}),scoreLabelMax:135,says:blockBox({w:297,h:52,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysImg:blockBox({w:32,h:32,radius:[16,16],color:"#262523"}),saysText:blockText({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845"}),saysBy:blockText({size:14.5,weight:800,lineHeight:20.3,color:"#262523"}),saysByGap:2,saysTag:blockBox({w:51.609,h:15,padding:[2,6,2,6],radius:[5,5],bg:"surface",color:"#262523"}),saysTagText:blockText({size:10,weight:400,lineHeight:14,color:"#262523",tracking:.6,face:"mono",upper:true,paddingTop:2}),saysBare:blockBox({w:297,h:81,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysKicker:blockText({size:17,weight:400,lineHeight:25.5,color:"#262523"}),saysSerif:blockText({size:17,weight:800,lineHeight:25.5,color:"#262523",tracking:-.17,wrap:"balance"}),jump:blockBox({w:297,h:60,padding:[8,14,8,8],marginTop:12,gap:[12,12],radius:[14,14],bg:"planInk",center:true,color:"planOnInk"}),jumpImg:blockBox({w:44,h:44,radius:[10,10],bg:"surface",color:"surface"}),jumpKicker:blockText({size:13,weight:800,lineHeight:19.5,color:"planAccent"}),jumpTitle:blockText({size:15,weight:800,lineHeight:18.75,color:"planOnInk"}),jumpGo:blockText({size:14,weight:800,lineHeight:21,color:"planOnInk"}),jumpPressScale:.98,more:blockBox({w:87.547,h:36,marginTop:6,marginBottom:-4,gap:[4,4],minHeight:36,center:true,color:"planLink"}),moreText:blockText({size:15,weight:800,lineHeight:22.5,color:"planLink"}),moreIcon:blockBox({w:16,h:16,color:"planLink"}),moreInset:16,moreTurn:{closed:90,open:-90},rep:blockBox({w:297,h:48.5,padding:[14,14,12,14],marginTop:10,radius:[16,16],bg:"#F8F7F4",color:"#262523"})},tip:{card:blockBox({w:201.5,h:275.031,padding:[8,10,10,10],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"tintBlue",g:"tintGo",r:"tintPink"},img:blockBox({w:181.5,h:113.438,radius:[10,10],bg:"#F3F3F3"}),n:blockBox({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:blockText({size:14,weight:700,lineHeight:14}),title:blockText({size:16,weight:700,lineHeight:20,marginTop:10}),text:blockText({size:15,weight:400,lineHeight:21,color:"#4D4D4D",marginTop:4}),foot:blockBox({w:181.5,h:26.594,padding:[8,0,0,0],gap:[4,4],center:true,color:"ink"}),footText:blockText({size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,paddingTop:8}),footArrow:blockBox({w:14,h:14,color:"ink"}),footArrowFlip:true,pressScale:.98,bare:blockBox({w:181.5,h:42,padding:[2,0,0,0],center:true}),thumb:blockBox({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:blockBox({w:22,h:22})},tipPhoto:{card:blockBox({w:221,h:152,padding:[8,8,12,8],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},img:blockBox({w:205,h:102.5,radius:[10,10],bg:"#F3F3F3"}),imgAspect:2,n:blockBox({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:blockText({size:14,weight:700,lineHeight:14}),title:blockText({size:15,weight:700,lineHeight:19.5,marginTop:10}),titleInset:4,pressScale:.98,bare:blockBox({w:205,h:42,padding:[2,0,0,0],center:true}),thumb:blockBox({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:blockBox({w:22,h:22,color:"ink"})},tipWeb:{card:blockBox({w:226,h:172.047,gap:[10,10]}),img:blockBox({w:226,h:141.25,radius:[14,14]}),imgAspect:1.6,title:blockText({size:16,weight:700,lineHeight:20.8,wrap:"balance"}),coverRadius:10,row:{from:440,card:blockBox({w:400,h:80,padding:[6,0,6,0],gap:[10,10],minHeight:80,center:true}),img:blockBox({w:64,h:64,radius:[10,10]}),arrowColumn:18,arrow:blockBox({w:18,h:18,color:"ink"}),arrowTurn:180},phone:{upTo:639,card:blockBox({w:216,h:162.5,gap:[8,8]}),img:blockBox({w:216,h:135,radius:[14,14]}),imgAspect:1.6,title:blockText({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),smallUpTo:359,smallW:208},mark:{tile:blockBox({w:226,h:141.25,radius:[14,14],bg:"#F5F5F5",center:true,color:"ink"}),icon:{share:.36,min:16,max:40,color:"ink"}},ring:{width:2,offset:2,color:"text"},hoverOffset:3},tipPlan:{card:blockBox({w:225.406,h:182.844,padding:[14,14,12,14],radius:[18,18],bg:"planAccentChip",color:"#262523"}),tones:{y:"planAccentChip",c:"planLinkChip",g:"#DDEFC4",r:"#FFD8D6"},top:blockBox({w:197.406,h:30,center:true,color:"#262523"}),nText:blockText({size:30,weight:900,lineHeight:30,color:"#262523"}),icon:blockBox({w:26,h:26,color:"#262523"}),title:blockText({size:17,weight:800,lineHeight:21.25,color:"#262523",marginTop:14}),text:blockText({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845",marginTop:4}),foot:blockBox({w:197.406,h:25.75,padding:[10,0,0,0],color:"planLink"}),footText:blockText({size:10.5,weight:400,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true,paddingTop:10})},cartPlan:{line:blockBox({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:blockBox({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:blockBox({w:28,h:28,color:"planLink"}),name:blockText({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:blockBox({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:blockText({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:blockText({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:blockText({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:blockBox({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:blockBox({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:blockBox({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:blockText({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})}};function deepFreeze(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value))for(let v of Object.values(value))deepFreeze(v);return value}var k=everfurTokens,PRESET=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function asPreset(theme){return Object.defineProperty(theme,PRESET,{value:theme,enumerable:true}),deepFreeze(theme)}var SCALE_CAPS={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},everfurTheme=asPreset({name:"everfur",colors:{bg:k.color.bg,surface:k.color.efWhite,text:k.color.text,ink:k.role.color.ink,onInk:k.color.efWhite,muted:k.role.color.muted,line:k.role.color.line,go:k.role.color.go,onGo:k.role.color.ink,pink:k.color.efDustyPink,onPink:k.role.color.ink,alert:k.color.alert,alertDeep:k.color.alertDeep,icoSage:k.role.color.icoSage,bgMist:k.color.bgMist,tintSage:k.role.color.tintSage,tintBlue:k.role.color.tintBlue,tintGo:k.role.color.tintGo,tintPink:k.role.color.tintPink,tintYellowEdge:k.role.color.tintYellowEdge,tintWatch:everfurMetrics.colors.watch,tintRed:k.role.color.tintRed,scrim:everfurMetrics.colors.scrim,grab:everfurMetrics.colors.grab,focus:k.role.color.ink,planInk:everfurMetrics.colors.planInk,planOnInk:everfurMetrics.colors.planOnInk,planAccent:everfurMetrics.colors.planAccent,planLink:everfurMetrics.colors.planLink,planAccentWash:everfurMetrics.colors.planAccentWash,planAccentChip:everfurMetrics.colors.planAccentChip,planLinkWash:everfurMetrics.colors.planLinkWash,planLinkChip:everfurMetrics.colors.planLinkChip},radius:{...k.radius},space:{...k.space},type:{family:k.font.family.base,mono:k.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:k.font.size.xs,sm:k.font.size.sm,md:k.font.size.md,lg:k.font.size.lg,xl:k.font.size.xl},weight:{...k.font.weight},lineHeight:{...k.font.lineHeight},scaleCaps:SCALE_CAPS},motion:{duration:{press:k.motion.duration.press,fade:k.motion.duration.fade,enter:k.motion.duration.enter,sheet:k.motion.duration.sheet,sheetOut:k.motion.duration.sheetOut},easing:{out:k.motion.easing.out,drawer:k.motion.easing.drawer},pop:{duration:k.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:everfurMetrics});function presetOf(theme){return theme[PRESET]??everfurTheme}function isObject(v){return v!==null&&typeof v=="object"&&!Array.isArray(v)}function merge(base,over){if(!isObject(base)||!isObject(over))return over===void 0?base:over;let out={...base};for(let[key,value]of Object.entries(over))value!==void 0&&(out[key]=merge(base[key],value));return out}function resolveTheme(partial,base=everfurTheme){if(!partial)return base;let merged=merge(base,partial),given=partial.colors;if(given){let colors=merged.colors;for(let[wash,from,share]of PLAN_WASHES){let c=given[from];c!==void 0&&given[wash]===void 0&&(colors[wash]=mixHex(c,share,colors.surface)??colors[wash]??c)}}return deepFreeze(merged)}var PLAN_WASHES=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function mixHex(color,share,ground){let ch=v=>{let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(v??"");return m?[m[1],m[2],m[3]].map(h=>parseInt(h,16)):void 0},[c,g]=[ch(color),ch(ground)];if(!(!c||!g))return`#${c.map((v,i)=>Math.round(v*share+(g[i]??0)*(1-share)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var ThemeContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),host=globalThis,context=host[key]??(host[key]=react.createContext(null));return context.displayName??(context.displayName="EverfurThemeContext"),context})();function ThemeProvider({theme:theme,children:children}){let outer=useTheme(),key=theme===void 0||isComplete(theme)?theme:contentKey(theme),value=react.useMemo(()=>isComplete(theme)?filled(theme):resolveTheme(theme,outer),[key,outer]);return react.createElement(ThemeContext.Provider,{value:value},children)}function contentKey(value){return JSON.stringify(value,(_,v)=>isObject(v)&&!Array.isArray(v)?Object.fromEntries(Object.keys(v).sort().map(k2=>[k2,v[k2]])):v)}function isComplete(theme){return theme!==void 0&&Object.isFrozen(theme)&&GROUPS.every(g=>g in theme)}var GROUPS=["name","colors","radius","space","type","motion","metrics"];function hasEvery(shape,value){if(shape===void 0)return true;if(!isObject(shape))return value!==void 0;if(!isObject(value))return false;for(let key of Object.keys(shape))if(!hasEvery(shape[key],value[key]))return false;return true}var fills=/* @__PURE__ */new WeakMap;function filled(theme){let hit=fills.get(theme);if(hit)return hit;if(hasEvery(everfurTheme,theme))return fills.set(theme,theme),theme;let preset=presetOf(theme),merged=merge(everfurTheme,preset===everfurTheme?theme:merge(preset,theme));merged[PRESET]=preset;let out=deepFreeze(merged);return fills.set(theme,out),out}function useTheme(){let explicit=react.useContext(ThemeContext);return explicit?filled(explicit):everfurTheme}var px=n=>Math.round(n*1e3)/1e3;function faceOf(weight,mono=false){return mono?weight>450?"monoBold":"mono":weight>500?"bold":weight>450?"medium":"regular"}function withAlpha(color,alpha){let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(!m)return color;let[r,g,b]=[m[1],m[2],m[3]].map(h=>parseInt(h,16));return`rgba(${r}, ${g}, ${b}, ${alpha})`}function channelsOf(color){let hex=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(hex)return[hex[1],hex[2],hex[3]].map(h=>parseInt(h,16));let rgb=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(color);return rgb?[rgb[1],rgb[2],rgb[3]].map(Number):void 0}function mixColor(color,share,base,fallback){let[c,b]=[channelsOf(color),channelsOf(base)];return!c||!b?fallback:`rgb(${c.map((v,i)=>Math.round(v*share+(b[i]??0)*(1-share))).join(", ")})`}function colorOf(t,value){let m=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(value),role=m?.[1];if(!m||role===void 0||!(role in t.colors))return value;let c=t.colors[role];return m[2]===void 0?c:withAlpha(c,Number(m[2]))}function fillOf(t,value){return value==="none"?"transparent":colorOf(t,value)}var DISABLED_OPACITY=.45;function buttonSpec(t,tone,size,inSheet=false){let b=t.metrics.button;if(tone==="text"){let m2=b.text;return{minHeight:0,paddingX:0,gap:b.ink.gap,radius:0,borderWidth:0,borderColor:"transparent",background:"transparent",iconSize:b.inkSm.iconSize,text:{size:m2.fontSize,weight:m2.fontWeight,lineHeight:px(m2.fontSize*m2.lineHeight),color:colorOf(t,m2.color)},pressScale:1,pressOpacity:m2.pressOpacity,disabledOpacity:b.blockedOpacity??DISABLED_OPACITY,fill:false,ring:false}}let v=t.metrics.variants.button,compact=isCompactSize(size),edged=tone==="outline"||tone==="danger"||tone==="warn",m=compact?{...size==="compactSm"?v.sm:size==="compactLg"?v.lg:v.ink,borderWidth:edged?v.outline.borderWidth:0,ring:v.outline.ring}:size==="row"?b.row:tone==="danger"?b.danger:size==="sm"?b[`${tone}Sm`]:b[tone],c=t.colors,own=tone==="money"||tone==="warn"?b[tone]:void 0,paint={ink:{bg:c.ink,fg:c.onInk,edge:c.ink},go:{bg:c.go,fg:c.onGo,edge:c.ink},outline:{bg:"transparent",fg:c.ink,edge:c.ink},pink:{bg:c.pink,fg:c.onPink,edge:c.ink},danger:{bg:c.surface,fg:c.alert,edge:c.alert}},p=own?{bg:fillOf(t,own.bg),fg:colorOf(t,own.fg),edge:colorOf(t,own.edgeColor)}:paint[tone],weight=tone==="outline"&&inSheet&&!compact?b.outlineInSheetWeight:m.fontWeight;return{minHeight:m.minHeight,paddingX:m.paddingX,gap:m.gap,radius:t.radius.pill,borderWidth:m.borderWidth,borderColor:p.edge,background:p.bg,iconSize:m.iconSize,text:{size:m.fontSize,weight:weight,lineHeight:px(m.fontSize*m.lineHeight),color:p.fg},pressScale:t.motion.reduced?1:compact?v.press:t.metrics.press.button,pressOpacity:1,disabledOpacity:compact?v.disabledOpacity:b.blockedOpacity??DISABLED_OPACITY,fill:m.fill,ring:m.ring}}function isCompactSize(size){return size==="compact"||size==="compactSm"||size==="compactLg"}function pillSpec(t,tone){let m=t.metrics.pill,p=m.tones[tone],fg=tone==="clear"?t.colors.ink:colorOf(t,p.fg);return{minHeight:m.minHeight,paddingX:m.paddingX,radius:t.radius.pill,background:colorOf(t,p.bg),ring:p.ring>0?{width:p.ring,color:colorOf(t,p.ringColor)}:null,dot:tone==="new"?{size:m.dot,gap:m.dotGap,color:t.colors.go}:tone==="allergy"?{size:m.allergyDot.size,gap:m.allergyDot.gap,color:colorOf(t,m.allergyDot.color)}:null,text:{size:m.fontSize,weight:m.fontWeight,lineHeight:px(m.fontSize*m.lineHeight),color:fg,mono:m.mono,tracking:m.letterSpacing,upper:m.upper}}}function sheetTitleSpec(t,narrow){let m=t.metrics.sheet,size=m.titleSize,lineHeight=m.titleLineHeight??t.metrics.card.titleLineHeight;return{size:size,weight:m.titleWeight??t.metrics.card.titleWeight,lineHeight:px(size*lineHeight),color:colorOf(t,m.titleColor??"ink"),tracking:m.titleTracking??t.metrics.card.titleTracking}}function textSpecs(t){let m=t.metrics,c=t.colors;return{cardTitle:{size:m.card.titleSize,weight:m.card.titleWeight,lineHeight:px(m.card.titleSize*m.card.titleLineHeight),color:c.ink,tracking:m.card.titleTracking},cardLead:{size:m.card.leadSize,weight:t.type.weight.regular,lineHeight:px(m.card.leadSize*m.card.leadLineHeight),color:c.text},body:{size:m.card.bodySize,weight:t.type.weight.regular,lineHeight:px(m.card.bodySize*m.card.bodyLineHeight),color:c.text},kicker:{size:m.kicker.fontSize,weight:m.kicker.fontWeight,lineHeight:px(m.kicker.fontSize*m.kicker.lineHeight),color:c.muted,mono:true,tracking:m.kicker.letterSpacing,upper:true},sheetTitle:sheetTitleSpec(t),stepperValue:{size:m.quantityStepper.valueSize,weight:m.quantityStepper.valueWeight,lineHeight:px(m.quantityStepper.valueSize*m.quantityStepper.valueLineHeight),color:colorOf(t,m.quantityStepper.valueColor??"text")},tab:{size:m.tabs.fontSize,weight:m.tabs.fontWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.muted},tabCurrent:{size:m.tabs.fontSize,weight:m.tabs.currentWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.ink},emptyTitle:{size:m.empty.titleSize,weight:m.empty.titleWeight,lineHeight:px(m.empty.titleSize*m.empty.titleLineHeight),color:c.ink,tracking:m.empty.titleTracking},emptyLead:{size:m.empty.leadSize,weight:t.type.weight.regular,lineHeight:px(m.empty.leadSize*m.empty.leadLineHeight),color:c.text},emptyLink:{size:m.empty.linkSize,weight:m.empty.linkWeight,lineHeight:px(m.empty.linkSize*m.card.bodyLineHeight),color:c.ink},sumTerm:{size:m.summary.termSize,weight:t.type.weight.regular,lineHeight:px(m.summary.termSize*m.summary.termLineHeight),color:c.muted},sumValue:{size:m.summary.valueSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.valueSize*m.summary.valueLineHeight),color:c.ink},sumTotal:{size:m.summary.totalSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.totalSize*m.summary.totalLineHeight),color:c.ink}}}function quantityStepperSpec(t){let m=t.metrics.quantityStepper;return{edge:{width:m.borderWidth,color:colorOf(t,m.borderColor),inset:m.ring},button:m.button,icon:m.icon,valueMinWidth:m.valueMinWidth,fill:fillOf(t,m.fill??"none"),glyph:colorOf(t,m.glyph??"ink"),off:{color:colorOf(t,m.offColor),opacity:m.offOpacity}}}function textPartSpec(t,p){return{size:p.size,weight:p.weight,lineHeight:p.lineHeight,color:colorOf(t,p.color),...p.face==="mono"?{mono:true}:{},...p.face==="serif"?{serif:true}:{},...p.tracking?{tracking:p.tracking}:{},...p.upper?{upper:true}:{},...p.deco==="none"?{}:{deco:p.deco==="strike"?"strike":"underline",decoOffset:p.decoOffset,decoThickness:p.decoThickness},...p.tabular?{tabular:true}:{},...p.wrap==="auto"?{}:{wrap:p.wrap==="balance"?"balance":"pretty"}}}function partFill(t,value){return value==="none"?void 0:colorOf(t,value)}function summarySpec(t){let m=t.metrics.summary,lh=(size,ratio)=>px(size*ratio);return{paddingX:m.paddingX,paddingY:m.paddingY,radius:m.radius,borderWidth:m.borderWidth,borderColor:t.colors.line,background:colorOf(t,m.background),shadow:m.shadow,row:{paddingY:m.rowPaddingY,minHeight:m.rowMinHeight,gapX:m.rowGapX,gapY:m.rowGapY,divider:m.rowDivider,center:m.rowCenter},totalRowMinHeight:m.totalRowMinHeight,gap:m.gap??0,totalMarginTop:m.totalMarginTop??0,tabular:m.tabular,term:{size:m.termSize,weight:t.type.weight.regular,lineHeight:lh(m.termSize,m.termLineHeight),color:colorOf(t,m.termColor)},value:{size:m.valueSize,weight:m.valueWeight,lineHeight:lh(m.valueSize,m.valueLineHeight),color:colorOf(t,m.valueColor)},totalTerm:{size:m.totalTermSize,weight:m.totalTermWeight,lineHeight:lh(m.totalTermSize,m.termLineHeight),color:colorOf(t,m.totalTermColor)},total:{size:m.totalSize,weight:m.totalWeight,lineHeight:lh(m.totalSize,m.totalLineHeight),color:colorOf(t,m.valueColor)},off:textPartSpec(t,t.metrics.summary.off)}}function skeletonWidth(t,index){let widths=t.metrics.skeleton.widths;return`${widths[index%widths.length]}%`}function clampStep(value,min,max){return Math.max(min,max===void 0?value:Math.min(max,value))}function itemTestID(parent,key,own){return own!==void 0?own:parent===void 0?void 0:`${parent}-${key}`}var nums=group=>group,isBox=v=>"edge"in v&&"shadow"in v&&"fit"in v,isText=v=>"deco"in v&&"face"in v&&"tabular"in v;function byValue(group){let out=/* @__PURE__ */new Map;for(let[k2,v]of Object.entries(group))out.has(v)||out.set(v,k2);return out}var groups,derived=/* @__PURE__ */new WeakMap;function tokenOf(map,theme,v){let k2=map.get(v),t=k2===void 0?void 0:theme[k2];return typeof t=="number"?t:v}function blocksMetrics(theme){let base=everfurBlocksMetrics,p=everfurTheme;if(theme.space===p.space&&theme.radius===p.radius&&theme.type.size===p.type.size&&theme.type.weight===p.type.weight)return base;let hit=derived.get(theme);if(hit)return hit;groups??(groups={space:byValue(nums(p.space)),radius:byValue(nums(p.radius)),size:byValue(nums(p.type.size)),weight:byValue(nums(p.type.weight))});let g=groups,space=v=>tokenOf(g.space,nums(theme.space),v),radius=v=>tokenOf(g.radius,nums(theme.radius),v),walk=v=>Array.isArray(v)?v.map(walk):v===null||typeof v!="object"?v:isBox(v)?{...v,padding:v.padding.map(space),gap:v.gap.map(space),marginTop:space(v.marginTop),marginBottom:space(v.marginBottom),radius:v.radius.map(radius)}:isText(v)?{...v,size:tokenOf(g.size,nums(theme.type.size),v.size),weight:tokenOf(g.weight,nums(theme.type.weight),v.weight),marginTop:space(v.marginTop),paddingTop:space(v.paddingTop)}:Object.fromEntries(Object.entries(v).map(([k2,x])=>[k2,walk(x)])),out=walk(base);return derived.set(theme,out),out}var UiSurfaceContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#SurfaceContext@v1"),host=globalThis;return host[key]??(host[key]=react.createContext(null))})();function useUiSurface(){return react.useContext(UiSurfaceContext)}var TEXT_VARIANT_TIERS={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function textToneColor(t,tone){let c=t.colors;switch(tone){case"ink":return c.ink;case"text":return c.text;case"muted":return c.muted;case"danger":return c.alertDeep;case"inverse":return c.onInk;default:return}}function textVariantSpec(t,variant,tone,weight){let base=textPartSpec(t,t.metrics.text[variant]),color=textToneColor(t,tone);return{...base,...color?{color:color}:{},...weight?{weight:t.type.weight[weight]}:{}}}var PressFeedbackContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),host=globalThis,context=host[key]??(host[key]=react.createContext(null));return context.displayName??(context.displayName="EverfurPressFeedbackContext"),context})();function usePressFeedback(){return react.useContext(PressFeedbackContext)}function pressHandlers(feedback,event,onPress,options={}){if(!feedback||options.disabled)return{onPress:onPress,onPressIn:void 0};let{onPressIn:reportIn,onPress:report,haptic:haptic}=feedback,tick=options.haptics!==false&&event.haptic&&haptic?haptic:void 0;return{onPress:onPress&&(report||tick)?()=>{tick?.(event),report?.(event),onPress()}:onPress,onPressIn:reportIn?()=>reportIn(event):void 0}}function pressScaleFor(feedback,component,designScale=1){return feedback?.pressScale?.[component]??designScale}var TEXT_VARIANT_BREAKS={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function textVariantTier(t,variant){return t.type.variantTiers?.[variant]??TEXT_VARIANT_TIERS[variant]}var ReducedMotionContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),host=globalThis,context=host[key]??(host[key]=react.createContext(null));return context.displayName??(context.displayName="EverfurReducedMotionContext"),context})();function useKnownReducedMotion(){return react.useContext(ReducedMotionContext)}function rnText(t,spec){let face2=faceOf(spec.weight,spec.mono===true);return{fontFamily:spec.serif?t.type.faces.serif??t.type.faces.bold:t.type.faces[face2],...t.type.namedFaces?{}:{fontWeight:String(spec.weight)},fontSize:spec.size,lineHeight:spec.lineHeight,color:spec.color,...spec.tracking?{letterSpacing:spec.tracking}:{},...spec.upper?{textTransform:"uppercase"}:{},...spec.deco?rnDeco(spec):{},...spec.tabular?{fontVariant:["tabular-nums"]}:{},...spec.wrap&&reactNative.Platform.OS==="web"?{textWrap:spec.wrap}:{}}}function rnDeco(spec){let base={textDecorationLine:spec.deco==="strike"?"line-through":"underline"};return reactNative.Platform.OS!=="web"?base:{...base,...spec.decoOffset?{textUnderlineOffset:spec.decoOffset}:{},...spec.decoThickness?{textDecorationThickness:spec.decoThickness}:{}}}function rnBox(t,b){let[pt=0,pr=0,pb=0,pl=0]=b.padding,[rt=0,rb=0]=b.radius,fill=partFill(t,b.bg);return{paddingTop:pt,paddingRight:pr,paddingBottom:pb,paddingLeft:pl,...b.marginTop?{marginTop:b.marginTop}:{},...b.gap[0]?{columnGap:b.gap[0]}:{},...b.gap[1]?{rowGap:b.gap[1]}:{},...rt===rb?rt?{borderRadius:rt}:{}:{borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomLeftRadius:rb,borderBottomRightRadius:rb},...fill?{backgroundColor:fill}:{},...b.edge.width>0&&!b.edge.ring?{borderWidth:b.edge.width,borderColor:colorOf(t,b.edge.color)}:{},...b.minHeight?{minHeight:b.minHeight}:{},...rnShadow(b.shadow)}}function rnRing(t,b){return b.edge.width>0&&b.edge.ring?ringOverlay(b.edge.width,colorOf(t,b.edge.color),b.radius[0]??0):null}function webReducedMotion(){if(reactNative.Platform.OS!=="web")return false;let g=globalThis;return typeof g.matchMedia=="function"&&g.matchMedia("(prefers-reduced-motion: reduce)").matches}function useOsReducedMotion(known){let[reduced,setReduced]=react.useState(()=>known===null&&webReducedMotion());return react.useEffect(()=>{if(known!==null)return;let mounted=true,query=reactNative.AccessibilityInfo?.isReduceMotionEnabled;if(typeof query=="function"){let result=query.call(reactNative.AccessibilityInfo);result!=null&&typeof result.then=="function"&&result.then(value=>{mounted&&setReduced(value===true)},()=>{})}let subscription=reactNative.AccessibilityInfo?.addEventListener?.("reduceMotionChanged",value=>setReduced(value===true));return()=>{mounted=false,subscription?.remove?.()}},[known]),known??reduced}function useRnReduced(t){let os=useOsReducedMotion(useKnownReducedMotion());return t.motion.reduced||os}function ariaState(expanded,pressed,current){return{...expanded===void 0?{}:{expanded:expanded},...pressed===void 0?{}:{checked:pressed},...current===void 0?{}:{selected:current!==false}}}function slopFor(size){let pad=Math.max(0,Math.ceil((44-size)/2));return pad===0?void 0:{top:pad,bottom:pad,left:pad,right:pad}}function rnShadow(s){return s.blur===0&&s.y===0&&s.x===0?null:{shadowColor:s.color,shadowOffset:{width:s.x,height:s.y},shadowOpacity:1,shadowRadius:s.blur,elevation:1}}function ringOverlay(width,color,radius){let fill={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:radius};return reactNative.Platform.OS==="web"?{...fill,boxShadow:`inset 0 0 0 ${width}px ${color}`}:{...fill,borderWidth:width,borderColor:color}}function breakProps(mode){return mode==="auto"?null:reactNative.Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:reactNative.Platform.OS==="android"&&mode==="balance"?{textBreakStrategy:"balanced"}:null}function weightStyle(t,weight){let w=t.type.weight[weight];return t.type.namedFaces?{fontFamily:t.type.faces[faceOf(w)]}:{fontWeight:String(w)}}function Text({tier:tier,variant:variant,tone:tone,weight:weight,level:level,lineBreak:lineBreak,...props}){let t=useTheme(),cap=t.type.scaleCaps[tier??(variant?textVariantTier(t,variant):"content")],breaks=breakProps(lineBreak??(variant?TEXT_VARIANT_BREAKS[variant]:"auto"));if(variant===void 0&&tone===void 0&&weight===void 0&&level===void 0)return breaks?react.createElement(reactNative.Text,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...props}):react.createElement(reactNative.Text,cap>0?{maxFontSizeMultiplier:cap,...props}:props);let color=textToneColor(t,tone),own=variant?rnText(t,textVariantSpec(t,variant,tone,weight)):{...color?{color:color}:{},...weight?weightStyle(t,weight):{}},heading=level===void 0?{}:{accessibilityRole:"header",...reactNative.Platform.OS==="web"?{"aria-level":level}:{}};return react.createElement(reactNative.Text,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...heading,...props,style:[own,props.style]})}var BOX=24,FINE=16,SEAM=.8,fine=dp=>Math.round(dp*FINE);function place(cx,cy,W,H,ux,uy){let left=cx-W/2,top=cy-H/2,x=Math.round(left),y=Math.round(top);return{position:"absolute",left:x,top:y,width:W,height:H,transform:[{translateX:left-x},{translateY:top-y},{rotate:`${Math.atan2(uy,ux)*180/Math.PI}deg`},{scale:1/FINE}]}}function strokePieces(icon,k2,out){for(let s of icon.strokes){let w=s.width*k2,pts=s.points,n=pts.length/2,last=s.closed?n:n-1;for(let i=0;i<last;i+=1){let j=(i+1)%n,px2=(pts[i*2]??0)*k2,py=(pts[i*2+1]??0)*k2,dx=(pts[j*2]??0)*k2-px2,dy=(pts[j*2+1]??0)*k2-py,len=Math.hypot(dx,dy);if(len===0&&!(n===2&&s.cap))continue;let ux=len===0?1:dx/len,uy=len===0?0:dy/len,e0=s.closed||i>0||s.cap?w/2:0,e1=s.closed||j!==n-1||s.cap?w/2:0,along=(len+e1-e0)/2;out.push({paint:"backgroundColor",style:{...place(px2+ux*along,py+uy*along,fine(len+e0+e1),fine(w),ux,uy),borderTopLeftRadius:e0>0?fine(w)/2:0,borderBottomLeftRadius:e0>0?fine(w)/2:0,borderTopRightRadius:e1>0?fine(w)/2:0,borderBottomRightRadius:e1>0?fine(w)/2:0,...s.opacity===void 0?{}:{opacity:s.opacity}}})}}}function boxPieces(icon,k2,out){for(let b of icon.boxes){let w=(b.w+b.width)*k2,h=(b.h+b.width)*k2;out.push({paint:"borderColor",style:{...place((b.x-b.width/2)*k2+w/2,(b.y-b.width/2)*k2+h/2,fine(w),fine(h),1,0),borderWidth:fine(b.width*k2),borderRadius:(b.radius+b.width/2)*k2*FINE,...b.opacity===void 0?{}:{opacity:b.opacity}}})}}function trianglePieces(icon,k2,out){for(let t of icon.triangles){let p=[0,1,2].map(i=>[(t[i*2]??0)*k2,(t[i*2+1]??0)*k2]),base=0,len=-1;for(let i=0;i<3;i+=1){let a2=p[i]??[0,0],b=p[(i+1)%3]??[0,0],d=Math.hypot(b[0]-a2[0],b[1]-a2[1]);d>len&&(len=d,base=i)}if(len<=0)continue;let b0=p[base]??[0,0],b1=p[(base+1)%3]??[0,0],a=p[(base+2)%3]??[0,0],ux=(b1[0]-b0[0])/len,uy=(b1[1]-b0[1])/len,along=(a[0]-b0[0])*ux+(a[1]-b0[1])*uy,across=(a[0]-b0[0])*-uy+(a[1]-b0[1])*ux,h=Math.abs(across),up=across<0,mid=up?-h/2:h/2,bl=fine(along),br=fine(len)-bl,bh=fine(h);out.push({paint:up?"borderBottomColor":"borderTopColor",style:{...place(b0[0]+ux*(len/2)-uy*mid,b0[1]+uy*(len/2)+ux*mid,bl+br,bh,ux,uy),width:0,height:0,borderLeftWidth:bl,borderRightWidth:br,borderLeftColor:"transparent",borderRightColor:"transparent",...up?{borderBottomWidth:bh}:{borderTopWidth:bh}}})}for(let e of icon.seams){let x0=(e[0]??0)*k2,y0=(e[1]??0)*k2,dx=(e[2]??0)*k2-x0,dy=(e[3]??0)*k2-y0,d=Math.hypot(dx,dy),in0=SEAM*(e[4]??0),in1=SEAM*(e[5]??0),bar=d-in0-in1;if(d===0||bar<=0)continue;let mid=in0+bar/2;out.push({paint:"backgroundColor",style:place(x0+dx/d*mid,y0+dy/d*mid,fine(bar),fine(SEAM),dx/d,dy/d)})}}var cache=/* @__PURE__ */new WeakMap;function piecesOf(icon,size){let sizes=cache.get(icon);sizes===void 0&&(sizes=/* @__PURE__ */new Map,cache.set(icon,sizes));let hit=sizes.get(size);if(hit!==void 0)return hit;let out=[],k2=size/BOX;return boxPieces(icon,k2,out),strokePieces(icon,k2,out),trianglePieces(icon,k2,out),sizes.set(size,out),out}function Glyph({icon:icon,size:size,color:color,label:label,testID:testID,style:style}){let t=useTheme(),side=size??t.metrics.icon.size,ink=color??t.colors.ink;/* @__PURE__ */
3
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,pointerEvents:"none",style:[{width:side,height:side},style],...label?{accessible:true,accessibilityRole:"image",accessibilityLabel:label}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:piecesOf(icon,side).map((piece,i)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[piece.style,{[piece.paint]:ink}]},i))})}var REGISTRY=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),host=globalThis;return host[key]??(host[key]={icons:{},warned:/* @__PURE__ */new Set})})();function registerIcons(icons){Object.assign(REGISTRY.icons,icons)}function iconNamed(name){let icon=REGISTRY.icons[name];return icon===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!REGISTRY.warned.has(name)&&(REGISTRY.warned.add(name),console.warn(`@everfur-health/ui-native: no icon "${name}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),icon}function Icon({name:name,...rest}){let icon=iconNamed(name);return icon?/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:icon,...rest}):null}function usePressLayer(component,info,onPress,designScale=1){return pressLayerOf(usePressFeedback(),component,info,onPress,designScale)}function pressLayerOf(feedback,component,info,onPress,designScale=1){let h=pressHandlers(feedback,{component:component,testID:info.testID,...info.item===void 0?{}:{item:info.item},label:info.label,trackId:info.trackId,haptic:info.haptic===true},onPress,{disabled:info.disabled});return{props:h.onPressIn?{onPress:h.onPress,onPressIn:h.onPressIn}:{onPress:h.onPress},scale:pressScaleFor(feedback,component,designScale)}}var cubic=e=>`cubic-bezier(${e.join(", ")})`,styleAt=(style,pressed)=>typeof style=="function"?style({pressed:pressed}):style,animatedPressable;function animatedPressableOf(){return animatedPressable??(animatedPressable=reactNative.Animated.createAnimatedComponent(reactNative.Pressable))}function pressTiming(t,value,toValue){let[a,b,c,d]=t.motion.easing.out;return reactNative.Animated.timing(value,{toValue:toValue,duration:t.motion.duration.press,easing:reactNative.Easing.bezier(a,b,c,d),useNativeDriver:true})}function PressBox({style:style,scale:scale,still:still,pop:pop,onPressIn:onPressIn,onPressOut:onPressOut,...props}){let t=useTheme(),value=react.useRef(null),[held,setHeld]=react.useState(false),scales=!still&&scale!==1,popping=!still&&pop?.scale!=null;if(reactNative.Platform.OS==="web"){let motion=scales?{transitionProperty:"transform",transitionDuration:`${t.motion.duration.press}ms`,transitionTimingFunction:cubic(t.motion.easing.out)}:null;return react.createElement(reactNative.Pressable,{...props,...pop?{ref:pop.ref}:null,onPressIn:onPressIn,onPressOut:onPressOut,style:({pressed:pressed})=>[styleAt(style,pressed),motion,scales&&pressed?{transform:[{scale:scale}]}:null]})}if(!scales&&!popping)return react.createElement(reactNative.Pressable,{...props,onPressIn:onPressIn,onPressOut:onPressOut,style:style});let v=value.current??(value.current=new reactNative.Animated.Value(0)),pressScale=scales?v.interpolate({inputRange:[0,1],outputRange:[1,scale]}):null,both=pressScale&&popping?reactNative.Animated.multiply(pressScale,pop?.scale):pressScale??pop?.scale;return react.createElement(animatedPressableOf(),{...props,onPressIn:e=>{props.disabled||(setHeld(true),scales&&pressTiming(t,v,1).start(),onPressIn?.(e))},onPressOut:e=>{setHeld(false),scales&&pressTiming(t,v,0).start(),onPressOut?.(e)},style:[styleAt(style,held),{transform:[{scale:both}]}]})}function Button({label:label,onPress:onPress,tone:tone="ink",size:size="md",icon:icon,disabled:disabled=false,loading:loading=false,loadingLabel:loadingLabel,loadingIndicator:loadingIndicator="spinner",fullWidth:fullWidth,accessibilityLabel:accessibilityLabel,trackId:trackId,haptic:haptic,testID:testID,style:style,children:children,nativeID:nativeID,onPressIn:onPressIn,"aria-expanded":expanded,"aria-pressed":pressed,"aria-current":current}){let t=useTheme(),inSheet=useUiSurface()==="sheet",reduced=useRnReduced(t),s=buttonSpec(t,tone,size,inSheet),blocked=disabled||loading,block=fullWidth??(inSheet||s.fill),spinner=loading&&loadingIndicator!=="none",spoken=spinner&&loadingLabel?loadingLabel:accessibilityLabel??(spinner&&loadingLabel?loadingLabel:label),press=usePressLayer("Button",{testID:testID,label:spoken,trackId:trackId,haptic:haptic,disabled:blocked},onPress,s.pressScale),layerIn=press.props.onPressIn,pressIn=onPressIn&&layerIn?()=>{layerIn(),onPressIn()}:onPressIn??layerIn;/* @__PURE__ */
4
4
  return jsxRuntime.jsxs(PressBox,{...press.props,onPressIn:pressIn,scale:press.scale,still:reduced,disabled:blocked,nativeID:nativeID,hitSlop:slopFor(Math.max(s.minHeight,s.text.lineHeight)),accessibilityRole:"button",accessibilityLabel:spoken,accessibilityState:{disabled:blocked,busy:loading,...ariaState(expanded,pressed,current)},"aria-busy":loading,testID:testID,style:({pressed:pressed2})=>[styles.base,{minHeight:Math.max(s.minHeight,0),paddingHorizontal:s.paddingX,columnGap:s.gap,borderRadius:s.radius,borderWidth:s.ring?0:s.borderWidth,borderColor:s.borderColor,backgroundColor:s.background},block?styles.block:styles.auto,blocked?{opacity:s.disabledOpacity}:null,pressed2&&s.pressOpacity!==1&&!blocked?{opacity:s.pressOpacity}:null,style],children:[spinner?/* @__PURE__ */jsxRuntime.jsx(reactNative.ActivityIndicator,{size:"small",color:s.text.color,animating:!reduced,hidesWhenStopped:false,accessibilityLabel:spoken}):icon?/* @__PURE__ */jsxRuntime.jsx(Icon,{name:icon,size:s.iconSize,color:s.text.color}):null,
5
5
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:styles.labelBox,children:/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",style:[rnText(t,s.text),styles.label],children:spinner&&loadingLabel?loadingLabel:children??label})}),s.ring&&s.borderWidth>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ringOverlay(s.borderWidth,s.borderColor,s.radius)}):null]})}var styles=reactNative.StyleSheet.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});reactNative.StyleSheet.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});reactNative.StyleSheet.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});reactNative.StyleSheet.create({st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},acts:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});reactNative.StyleSheet.create({acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"},st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},stActs:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});function Pill({label:label,tone:tone="plain",testID:testID,style:style,maxFontSizeMultiplier:maxFontSizeMultiplier,grouped:grouped=true}){let t=useTheme(),s=pillSpec(t,tone);/* @__PURE__ */
6
6
  return jsxRuntime.jsxs(reactNative.View,{testID:testID,...grouped?{accessible:true,accessibilityLabel:label}:null,style:[styles6.pill,{minHeight:s.minHeight,paddingHorizontal:s.paddingX,borderRadius:s.radius,backgroundColor:s.background,...s.dot?{columnGap:s.dot.gap}:{}},style],children:[s.ring?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ringOverlay(s.ring.width,s.ring.color,s.radius)}):null,s.dot?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:s.dot.size,height:s.dot.size,borderRadius:s.dot.size/2,backgroundColor:s.dot.color}}):null,
7
- /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",numberOfLines:1,...maxFontSizeMultiplier===void 0?{}:{maxFontSizeMultiplier:maxFontSizeMultiplier},style:[rnText(t,s.text),styles6.label],children:label})]})}var styles6=reactNative.StyleSheet.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}});function QuantityStepper({value:value,min:min=1,max:max,label:label,fewerLabel:fewerLabel,moreLabel:moreLabel,disabled:disabled=false,variant:variant="standard",onChange:onChange,trackId:trackId,haptic:haptic,testID:testID,style:style}){let t=useTheme(),reduced=useRnReduced(t),s=quantityStepperSpec(t),st=t.metrics.variants.stepper,compact=variant==="compact",lessOff=disabled||value<=min,moreOff=disabled||max!==void 0&&value>=max,designScale=compact?st.press:t.metrics.press.iconButton,fewer=usePressLayer("QuantityStepper",{testID:testID?`${testID}-fewer`:void 0,item:"fewer",label:fewerLabel,trackId:trackId,haptic:haptic,disabled:lessOff},()=>onChange(clampStep(value-1,min,max)),designScale),more=usePressLayer("QuantityStepper",{testID:testID?`${testID}-more`:void 0,item:"more",label:moreLabel,trackId:trackId,haptic:haptic,disabled:moreOff},()=>onChange(clampStep(value+1,min,max)),designScale),last=react.useRef(value);react.useEffect(()=>{last.current!==value&&(last.current=value,reactNative.Platform.OS==="ios"&&reactNative.AccessibilityInfo.announceForAccessibility(`${label}, ${value}`))},[label,value]);let compactButton=(off,name,a11y,press,id)=>/* @__PURE__ */jsxRuntime.jsx(PressBox,{...press.props,scale:press.scale,still:reduced,disabled:off,hitSlop:slopFor(st.button.h),accessibilityRole:"button",accessibilityLabel:a11y,accessibilityState:{disabled:off},testID:testID?`${testID}-${id}`:void 0,style:[styles7.button,{width:st.button.w,height:st.button.h,borderRadius:st.button.radius[0]??0},off?{opacity:st.disabledOpacity}:null],children:/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:name==="plus"?UI_RN_ICON_PLUS:UI_RN_ICON_MINUS,size:st.icon,color:colorOf(t,st.button.color)})}),button=(off,name,a11y,press,id)=>compact?compactButton(off,name,a11y,press,id):/* @__PURE__ */jsxRuntime.jsx(PressBox,{...press.props,scale:press.scale,still:reduced,disabled:off,hitSlop:slopFor(s.button),accessibilityRole:"button",accessibilityLabel:a11y,accessibilityState:{disabled:off},testID:testID?`${testID}-${id}`:void 0,style:[styles7.button,{width:s.button,height:s.button,borderRadius:s.button/2},off&&s.off.opacity!==1?{opacity:s.off.opacity}:null],children:/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:name==="plus"?UI_RN_ICON_PLUS:UI_RN_ICON_MINUS,size:s.icon,color:off?s.off.color:t.colors.ink})}),ring=compact?rnRing(t,st.track):null;/* @__PURE__ */
7
+ /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",numberOfLines:1,...maxFontSizeMultiplier===void 0?{}:{maxFontSizeMultiplier:maxFontSizeMultiplier},style:[rnText(t,s.text),styles6.label],children:label})]})}var styles6=reactNative.StyleSheet.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}}),UI_RN_ICON_ALERT={strokes:[{width:2,cap:true,closed:false,points:[21.73,18,13.73,4,12.997,3.258,11.99,2.986,10.983,3.258,10.25,4,2.25,18,1.982,19.005,2.254,20.008,2.994,20.739,4,21,20,21,20.999,20.731,21.731,19.999,21.998,18.999,21.73,18]},{width:2,cap:true,closed:false,points:[12,9,12,13]},{width:2,cap:true,closed:false,points:[12,17,12.01,17]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_ARROW_LEFT={strokes:[{width:2,cap:true,closed:false,points:[12,19,5,12,12,5]},{width:2,cap:true,closed:false,points:[19,12,5,12]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_BAG={strokes:[{width:2,cap:true,closed:true,points:[6,2,3,6,3,20,3.268,21,4,21.732,5,22,19,22,20,21.732,20.732,21,21,20,21,6,18,2]},{width:2,cap:true,closed:false,points:[3,6,21,6]},{width:2,cap:true,closed:false,points:[16,10,15.696,11.531,14.828,12.828,13.531,13.696,12,14,10.469,13.696,9.172,12.828,8.304,11.531,8,10]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_BELL={strokes:[{width:2,cap:true,closed:false,points:[10.034,20.999,10.765,21.732,11.766,22,12.766,21.732,13.498,20.999]},{width:2,cap:true,closed:false,points:[21.766,8,21.514,5.799,20.818,3.8,19.765,1.999]},{width:2,cap:true,closed:false,points:[3.766,1.999,2.714,3.8,2.018,5.799,1.765,8]},{width:2,cap:true,closed:true,points:[3.028,15.325,2.78,15.838,2.851,16.402,3.22,16.837,3.766,16.999,19.765,16.999,20.312,16.838,20.681,16.404,20.753,15.84,20.506,15.327,19.71,14.47,18.967,13.451,18.347,12.128,17.923,10.358,17.766,8,17.309,5.704,16.009,3.758,14.061,2.457,11.766,1.999,9.47,2.457,7.524,3.758,6.223,5.704,5.765,8,5.609,10.358,5.184,12.128,4.565,13.451,3.822,14.47,3.028,15.325]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_BOWL={strokes:[{width:2,cap:true,closed:false,points:[2,11,22,11]},{width:2,cap:true,closed:false,points:[4,11,4.287,13.12,5.096,15.03,6.35,16.65,7.97,17.904,9.88,18.713,12,19,14.12,18.713,16.03,17.904,17.65,16.65,18.904,15.03,19.713,13.12,20,11]},{width:2,cap:true,closed:false,points:[8.5,8,9.352,7.333,10.581,6.933,12,6.8,13.419,6.933,14.648,7.333,15.5,8]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_BOX={strokes:[{width:2,cap:true,closed:true,points:[11,21.73,12,21.998,13,21.73,20,17.73,20.732,16.999,21,16,21,8,20.732,7.001,20,6.27,13,2.27,12,2.002,11,2.27,4,6.27,3.268,7.001,3,8,3,16,3.268,16.999,4,17.73]},{width:2,cap:true,closed:false,points:[12,22,12,12]},{width:2,cap:true,closed:false,points:[3.29,7,12,12,20.71,7]},{width:2,cap:true,closed:false,points:[7.5,4.27,16.5,9.42]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_CALENDAR={strokes:[{width:2,cap:true,closed:false,points:[8,2,8,6]},{width:2,cap:true,closed:false,points:[16,2,16,6]},{width:2,cap:true,closed:false,points:[3,10,21,10]}],boxes:[{x:3,y:4,w:18,h:18,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_CAMERA={strokes:[{width:2,cap:true,closed:true,points:[14.5,4,9.5,4,7,7,4,7,3,7.268,2.268,8,2,9,2,18,2.268,19,3,19.732,4,20,20,20,21,19.732,21.732,19,22,18,22,9,21.732,8,21,7.268,20,7,17,7,14.5,4]}],boxes:[{x:9,y:10,w:6,h:6,radius:3,width:2}],triangles:[],seams:[]},UI_RN_ICON_CHECK={strokes:[{width:2,cap:true,closed:false,points:[20,6,9,17,4,12]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_CHEVRON={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_CLOCK={strokes:[{width:2,cap:true,closed:true,points:[12,22,14.658,21.643,17.048,20.635,19.071,19.071,20.635,17.048,21.643,14.658,22,12,21.643,9.342,20.635,6.953,19.071,4.929,17.048,3.366,14.658,2.357,12,2,9.341,2.357,6.953,3.366,4.929,4.929,3.365,6.953,2.357,9.342,2,12,2.357,14.658,3.365,17.048,4.929,19.071,6.953,20.635,9.341,21.643,12,22]},{width:2,cap:true,closed:false,points:[12,6.001,12,12,16,14.001]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_DOWNLOAD={strokes:[{width:2,cap:true,closed:false,points:[12,15,12,3]},{width:2,cap:true,closed:false,points:[17,10,12,15,7,10]},{width:2,cap:true,closed:false,points:[21,15,21,19.001,20.847,19.765,20.414,20.414,19.765,20.847,19,21,5,21,4.235,20.847,3.586,20.414,3.153,19.765,3,19.001,3,15]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_EDIT={strokes:[{width:2,cap:true,closed:false,points:[12,3,5,3,4,3.268,3.268,4,3,5,3,19,3.268,20,4,20.732,5,21,19,21,20,20.732,20.732,20,21,19,21,12]},{width:2,cap:true,closed:true,points:[18.375,2.625,19.326,2.076,20.424,2.076,21.375,2.625,21.924,3.576,21.924,4.674,21.375,5.625,12.362,14.639,11.509,15.144,8.636,15.984,8.142,15.858,8.016,15.364,8.856,12.491,9.362,11.639]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_FILE={strokes:[{width:2,cap:true,closed:true,points:[15,2,6,2,5,2.268,4.268,3,4,4,4,20,4.268,21,5,21.732,6,22,18,22,19,21.732,19.732,21,20,20,20,7]},{width:2,cap:true,closed:false,points:[14,2,14,6,14.268,7,15,7.732,16,8,20,8]},{width:2,cap:true,closed:false,points:[10,9,8,9]},{width:2,cap:true,closed:false,points:[16,13,8,13]},{width:2,cap:true,closed:false,points:[16,17,8,17]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_FLASK={strokes:[{width:2,cap:true,closed:false,points:[14.001,2,14.001,8,14.245,8.96,19.755,19.039,20,20.034,19.721,21.019,18.99,21.738,18,21.999,6,21.999,5.01,21.738,4.279,21.019,3.999,20.034,4.245,19.039,9.755,8.96,10,8,10,2]},{width:2,cap:true,closed:false,points:[6.453,15,17.547,15]},{width:2,cap:true,closed:false,points:[8.5,2,15.5,2]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_FOLDER={strokes:[{width:2,cap:true,closed:true,points:[20,20,20.765,19.847,21.415,19.413,21.847,18.765,22,18,22,8,21.847,7.235,21.415,6.585,20.765,6.152,20,6,12.1,6,11.14,5.765,10.41,5.099,9.6,3.899,8.879,3.239,7.93,2.999,4,2.999,3.234,3.152,2.586,3.586,2.152,4.234,2,5,2,18,2.152,18.765,2.586,19.413,3.234,19.847,4,20,20,20]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_HEART={strokes:[{width:2,cap:true,closed:true,points:[2,9.499,2.247,7.868,2.968,6.383,4.096,5.179,5.532,4.364,7.144,4.011,8.788,4.152,10.316,4.776,11.591,5.824,11.777,5.955,12,6.001,12.223,5.955,12.409,5.824,13.682,4.768,15.211,4.139,16.859,3.995,18.475,4.347,19.913,5.165,21.041,6.374,21.759,7.863,22,9.499,21.742,11.114,21.063,12.546,20.101,13.829,19,15,13.508,20.313,12.834,20.817,12.012,20.999,11.189,20.827,10.508,20.332,5,15,3.899,13.831,2.937,12.55,2.258,11.119,2,9.499]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_HELP={strokes:[{width:2,cap:true,closed:false,points:[9.09,9,9.842,7.832,11.04,7.127,12.427,7.039,13.705,7.584,14.6,8.648,14.92,10,14.608,11.08,13.864,11.92,12.976,12.52,12.232,12.88,11.92,13]},{width:2,cap:true,closed:false,points:[12,17,12.01,17]}],boxes:[{x:2,y:2,w:20,h:20,radius:10,width:2}],triangles:[],seams:[]},UI_RN_ICON_HOUSE={strokes:[{width:2,cap:true,closed:false,points:[15,21,15,13,14.707,12.293,14,12,10,12,9.293,12.293,9,13,9,21]},{width:2,cap:true,closed:true,points:[3,10,3.186,9.158,3.709,8.472,10.709,2.473,11.536,2.055,12.464,2.055,13.291,2.473,20.291,8.472,20.814,9.158,21,10,21,19,20.732,20,20,20.732,19,21,5,21,4,20.732,3.268,20,3,19]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_IMAGE={strokes:[{width:2,cap:true,closed:false,points:[21,15,17.914,11.914,17.018,11.397,15.982,11.397,15.086,11.914,6,21]}],boxes:[{x:3,y:3,w:18,h:18,radius:2,width:2},{x:7,y:7,w:4,h:4,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_INFO={strokes:[{width:2,cap:true,closed:false,points:[12,16,12,12]},{width:2,cap:true,closed:false,points:[12,8,12.01,8]}],boxes:[{x:2,y:2,w:20,h:20,radius:10,width:2}],triangles:[],seams:[]},UI_RN_ICON_LEAF={strokes:[{width:2,cap:true,closed:true,points:[11,20,8.727,19.628,6.697,18.538,5.131,16.848,4.199,14.741,4.001,12.446,4.558,10.211,5.811,8.278,7.624,6.856,9.8,6.1,12.322,5.587,14.274,5.099,15.788,4.568,16.993,3.921,18.02,3.088,19,2,19.734,3.557,20.375,5.318,20.828,7.42,21,10,20.72,12.286,19.931,14.388,18.708,16.245,17.127,17.796,15.265,18.98,13.198,19.735,11,20]},{width:2,cap:true,closed:false,points:[2,21,2.218,19.285,2.858,17.776,3.896,16.524,5.311,15.582,7.08,15,8.885,14.469,10.573,13.695,11.993,12.823,13,12]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_LOCK={strokes:[{width:2,cap:true,closed:false,points:[7,11,7,7,7.381,5.087,8.464,3.464,10.087,2.381,12,2,13.913,2.381,15.536,3.464,16.619,5.087,17,7,17,11]}],boxes:[{x:3,y:11,w:18,h:11,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_MAIL={strokes:[{width:2,cap:true,closed:false,points:[22,7,13.03,12.7,12,12.996,10.97,12.7,2,7]}],boxes:[{x:2,y:4,w:20,h:16,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_MESSAGE={strokes:[{width:2,cap:true,closed:true,points:[7.9,20,10.431,20.853,13.102,20.925,15.676,20.211,17.927,18.772,19.656,16.736,20.712,14.282,21,11.627,20.497,9.003,19.246,6.643,17.357,4.754,14.997,3.503,12.373,3,9.718,3.288,7.264,4.344,5.228,6.073,3.789,8.324,3.075,10.898,3.147,13.569,4,16.1,2,22]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_MINUS={strokes:[{width:2,cap:true,closed:false,points:[5,12,19,12]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_MORE={strokes:[],boxes:[{x:4.65,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7},{x:11.15,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7},{x:17.65,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7}],triangles:[],seams:[]},UI_RN_ICON_PAW={strokes:[{width:2,cap:true,closed:true,points:[9,10,10.913,10.381,12.536,11.464,13.619,13.087,14,15,14,18.5,13.615,20.094,12.547,21.338,11.029,21.959,9.395,21.82,8.003,20.952,7.16,19.545,6.576,18.327,5.676,17.425,4.46,16.84,3.054,15.997,2.186,14.607,2.046,12.974,2.665,11.456,3.907,10.387,5.5,10]}],boxes:[{x:9,y:2,w:4,h:4,radius:2,width:2},{x:16,y:6,w:4,h:4,radius:2,width:2},{x:18,y:14,w:4,h:4,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_PHONE={strokes:[{width:2,cap:true,closed:false,points:[13.832,16.568,14.492,16.629,15.045,16.265,15.4,15.8,16.106,15.211,17,15,20,15,21,15.268,21.732,16,22,17,22,20,21.732,21,21,21.732,20,22,16.488,21.654,13.112,20.63,10,18.966,7.272,16.728,5.034,14,3.37,10.888,2.346,7.512,2,4,2.268,3,3,2.268,4,2,7,2,8,2.268,8.732,3,9,4,9,7,8.789,7.894,8.2,8.6,7.732,8.951,7.366,9.515,7.44,10.184,9.084,12.765,11.249,14.928,13.832,16.568]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_PILL={strokes:[{width:2,cap:true,closed:true,points:[10.5,20.5,20.5,10.5,21.594,8.894,21.985,6.99,21.613,5.082,20.536,3.464,18.918,2.387,17.01,2.015,15.106,2.406,13.5,3.5,3.5,13.5,2.406,15.106,2.015,17.01,2.387,18.918,3.464,20.536,5.082,21.613,6.99,21.985,8.894,21.594,10.5,20.5]},{width:2,cap:true,closed:false,points:[8.5,8.5,15.5,15.5]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_PIN={strokes:[{width:2,cap:true,closed:false,points:[20,10,19.688,12.141,18.859,14.242,17.674,16.234,16.294,18.053,14.881,19.631,13.597,20.902,12.601,21.799,12,22,11.399,21.799,10.403,20.902,9.119,19.631,7.706,18.053,6.326,16.234,5.141,14.242,4.312,12.141,4,10,4.392,7.528,5.528,5.298,7.298,3.528,9.528,2.392,12,2,14.472,2.392,16.702,3.528,18.472,5.298,19.608,7.528,20,10]}],boxes:[{x:9,y:7,w:6,h:6,radius:3,width:2}],triangles:[],seams:[]},UI_RN_ICON_PLUS={strokes:[{width:2,cap:true,closed:false,points:[5,12,19.001,12]},{width:2,cap:true,closed:false,points:[12,5,12,19.001]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_SEARCH={strokes:[{width:2,cap:true,closed:false,points:[21,21,16.7,16.7]}],boxes:[{x:3,y:3,w:16,h:16,radius:8,width:2}],triangles:[],seams:[]},UI_RN_ICON_SEND={strokes:[{width:2,cap:true,closed:true,points:[14.536,21.686,15.013,22,15.473,21.662,21.973,2.662,21.857,2.143,21.338,2.027,2.338,8.527,2,8.987,2.314,9.464,10.244,12.644,10.914,13.085,11.356,13.754]},{width:2,cap:true,closed:false,points:[21.854,2.147,10.914,13.086]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_SHIELD={strokes:[{width:2,cap:true,closed:true,points:[20,12.999,19.722,15.298,18.938,17.22,17.73,18.806,16.175,20.096,14.352,21.131,12.34,21.949,11.67,21.94,9.654,21.125,7.828,20.093,6.272,18.805,5.062,17.22,4.279,15.298,4,12.999,4,6,4.293,5.293,5,5,6.574,4.788,8.218,4.21,9.812,3.346,11.24,2.28,12,1.999,12.76,2.28,14.192,3.35,15.786,4.213,17.427,4.79,19,5,19.707,5.293,20,6,20,12.999]},{width:2,cap:true,closed:false,points:[9,12,11,13.999,15,10]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_SPARKLE={strokes:[{width:2,cap:true,closed:true,points:[12,3.5,12.503,5.742,13.338,7.465,14.57,8.727,16.269,9.586,18.5,10.1,16.269,10.603,14.57,11.438,13.338,12.67,12.503,14.369,12,16.6,11.497,14.369,10.662,12.67,9.43,11.438,7.731,10.603,5.5,10.1,7.731,9.586,9.43,8.727,10.662,7.465,11.497,5.742,12,3.5]},{width:2,cap:true,closed:true,points:[19,15.5,19.426,16.793,20.207,17.574,21.5,18,20.207,18.426,19.426,19.207,19,20.5,18.574,19.207,17.793,18.426,16.5,18,17.793,17.574,18.574,16.793,19,15.5]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_SYRINGE={strokes:[{width:2,cap:true,closed:false,points:[17.798,2,21.798,6]},{width:2,cap:true,closed:false,points:[16.799,7.001,19.798,4]},{width:2,cap:true,closed:false,points:[18.8,9,8.5,19.3,7.374,19.967,6.159,19.967,5.1,19.3,4.5,18.7,3.834,17.574,3.834,16.359,4.5,15.3,14.8,5.001]},{width:2,cap:true,closed:false,points:[8.8,11,12.8,15]},{width:2,cap:true,closed:false,points:[4.799,19,1.799,22]},{width:2,cap:true,closed:false,points:[13.799,4,19.8,10]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_UPLOAD={strokes:[{width:2,cap:true,closed:false,points:[12.001,3,12.001,15]},{width:2,cap:true,closed:false,points:[7,8,12.001,3,17,8]},{width:2,cap:true,closed:false,points:[21,15,21,19,20.847,19.765,20.414,20.414,19.765,20.847,19.001,21,5,21,4.235,20.847,3.586,20.414,3.153,19.765,3,19,3,15]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_USER={strokes:[{width:1.75,cap:true,closed:false,points:[19,21,19,19,18.696,17.469,17.828,16.172,16.531,15.304,15,15,9,15,7.469,15.304,6.172,16.172,5.304,17.469,5,19,5,21]}],boxes:[{x:8,y:3,w:8,h:8,radius:4,width:1.75}],triangles:[],seams:[]},UI_RN_ICON_VIDEO={strokes:[{width:2,cap:true,closed:false,points:[16,13,21.223,16.482,21.736,16.507,22,16.066,22,7.87,21.749,7.436,21.248,7.438,16,10.5]}],boxes:[{x:2,y:6,w:14,h:12,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_X={strokes:[{width:2,cap:true,closed:false,points:[18,6,6,18]},{width:2,cap:true,closed:false,points:[6,6,18,18]}],boxes:[],triangles:[],seams:[]},UI_RN_ICONS={alert:UI_RN_ICON_ALERT,"arrow-left":UI_RN_ICON_ARROW_LEFT,bag:UI_RN_ICON_BAG,bell:UI_RN_ICON_BELL,bowl:UI_RN_ICON_BOWL,box:UI_RN_ICON_BOX,calendar:UI_RN_ICON_CALENDAR,camera:UI_RN_ICON_CAMERA,check:UI_RN_ICON_CHECK,chevron:UI_RN_ICON_CHEVRON,clock:UI_RN_ICON_CLOCK,download:UI_RN_ICON_DOWNLOAD,edit:UI_RN_ICON_EDIT,file:UI_RN_ICON_FILE,flask:UI_RN_ICON_FLASK,folder:UI_RN_ICON_FOLDER,heart:UI_RN_ICON_HEART,help:UI_RN_ICON_HELP,house:UI_RN_ICON_HOUSE,image:UI_RN_ICON_IMAGE,info:UI_RN_ICON_INFO,leaf:UI_RN_ICON_LEAF,lock:UI_RN_ICON_LOCK,mail:UI_RN_ICON_MAIL,message:UI_RN_ICON_MESSAGE,minus:UI_RN_ICON_MINUS,more:UI_RN_ICON_MORE,paw:UI_RN_ICON_PAW,phone:UI_RN_ICON_PHONE,pill:UI_RN_ICON_PILL,pin:UI_RN_ICON_PIN,plus:UI_RN_ICON_PLUS,search:UI_RN_ICON_SEARCH,send:UI_RN_ICON_SEND,shield:UI_RN_ICON_SHIELD,sparkle:UI_RN_ICON_SPARKLE,syringe:UI_RN_ICON_SYRINGE,upload:UI_RN_ICON_UPLOAD,user:UI_RN_ICON_USER,video:UI_RN_ICON_VIDEO,x:UI_RN_ICON_X};function QuantityStepper(props){return useStepper(props,void 0)}function InkedQuantityStepper({ink:ink,...props}){return useStepper(props,ink)}function useStepper({value:value,min:min=1,max:max,label:label,fewerLabel:fewerLabel,moreLabel:moreLabel,disabled:disabled=false,variant:variant="standard",onChange:onChange,trackId:trackId,haptic:haptic,testID:testID,style:style},ink){let t=useTheme(),reduced=useRnReduced(t),s=quantityStepperSpec(t),st=t.metrics.variants.stepper,compact=variant==="compact",lessOff=disabled||value<=min,moreOff=disabled||max!==void 0&&value>=max,designScale=compact?st.press:t.metrics.press.iconButton,fewer=usePressLayer("QuantityStepper",{testID:testID?`${testID}-fewer`:void 0,item:"fewer",label:fewerLabel,trackId:trackId,haptic:haptic,disabled:lessOff},()=>onChange(clampStep(value-1,min,max)),designScale),more=usePressLayer("QuantityStepper",{testID:testID?`${testID}-more`:void 0,item:"more",label:moreLabel,trackId:trackId,haptic:haptic,disabled:moreOff},()=>onChange(clampStep(value+1,min,max)),designScale),last=react.useRef(value);react.useEffect(()=>{last.current!==value&&(last.current=value,reactNative.Platform.OS==="ios"&&reactNative.AccessibilityInfo.announceForAccessibility(`${label}, ${value}`))},[label,value]);let compactButton=(off,name,a11y,press,id)=>/* @__PURE__ */jsxRuntime.jsx(PressBox,{...press.props,scale:press.scale,still:reduced,disabled:off,hitSlop:slopFor(st.button.h),accessibilityRole:"button",accessibilityLabel:a11y,accessibilityState:{disabled:off},testID:testID?`${testID}-${id}`:void 0,style:[styles7.button,{width:st.button.w,height:st.button.h,borderRadius:st.button.radius[0]??0},off?{opacity:st.disabledOpacity}:null],children:/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:name==="plus"?UI_RN_ICON_PLUS:UI_RN_ICON_MINUS,size:st.icon,color:ink??colorOf(t,st.button.color)})}),button=(off,name,a11y,press,id)=>compact?compactButton(off,name,a11y,press,id):/* @__PURE__ */jsxRuntime.jsx(PressBox,{...press.props,scale:press.scale,still:reduced,disabled:off,hitSlop:slopFor(s.button),accessibilityRole:"button",accessibilityLabel:a11y,accessibilityState:{disabled:off},testID:testID?`${testID}-${id}`:void 0,style:[styles7.button,{width:s.button,height:s.button,borderRadius:s.button/2},off&&s.off.opacity!==1?{opacity:s.off.opacity}:null],children:/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:name==="plus"?UI_RN_ICON_PLUS:UI_RN_ICON_MINUS,size:s.icon,color:off?s.off.color:t.colors.ink})}),ring=compact?rnRing(t,st.track):null;/* @__PURE__ */
8
8
  return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[styles7.qty,compact?[rnBox(t,st.track),{height:st.track.h}]:{borderWidth:s.edge.inset?0:s.edge.width,borderColor:s.edge.color,borderRadius:t.radius.pill},style],children:[compact?ring?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ring}):null:s.edge.inset?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ringOverlay(s.edge.width,s.edge.color,t.radius.pill)}):null,button(lessOff,"minus",fewerLabel,fewer,"fewer"),
9
- /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:label,accessibilityValue:{now:value,min:min,...max!==void 0?{max:max}:{},text:String(value)},"aria-valuenow":value,"aria-valuemin":min,"aria-valuemax":max,accessibilityState:{disabled:disabled},"aria-disabled":disabled||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:e=>{e.nativeEvent.actionName==="increment"&&!moreOff&&onChange(clampStep(value+1,min,max)),e.nativeEvent.actionName==="decrement"&&!lessOff&&onChange(clampStep(value-1,min,max))},accessibilityLiveRegion:"polite",style:compact?[rnText(t,textPartSpec(t,st.value)),{width:st.valueWidth,textAlign:"center"}]:[rnText(t,textSpecs(t).stepperValue),{minWidth:s.valueMinWidth,textAlign:"center",fontVariant:["tabular-nums"]}],children:String(value)}),button(moreOff,"plus",moreLabel,more,"more")]})}var styles7=reactNative.StyleSheet.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});reactNative.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1}});reactNative.StyleSheet.create({row:{flexDirection:"row",alignSelf:"stretch"},hairline:{position:"absolute",left:0,right:0},tab:{flex:1,flexBasis:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},center:{flexShrink:1,textAlign:"center"}});reactNative.StyleSheet.create({scrim:{flex:1,justifyContent:"flex-end"},sheet:{maxHeight:"100%"},grab:{alignItems:"center",justifyContent:"center"},head:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1,flexGrow:1},close:{alignItems:"center",justifyContent:"center"},closeEnd:{marginLeft:"auto"},scroll:{flexGrow:0},top:{flexDirection:"row",alignItems:"center"}});function Skeleton({lines:lines=3,label:label,testID:testID,style:style}){let t=useTheme(),m=t.metrics.skeleton;/* @__PURE__ */
10
- return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[{rowGap:m.gap,alignSelf:"stretch"},style],...label?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:label,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:Array.from({length:Math.max(1,lines)},(_,i)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{height:m.lineHeight,width:skeletonWidth(t,i),borderRadius:t.radius.pill,backgroundColor:t.colors.tintSage}},i))})}function SummaryList({rows:given,total:total=false,loading:loading=false,loadingLabel:loadingLabel,variant:variant="standard",note:note,grouped:grouped=true,lineBreak:lineBreak,testID:testID,style:style}){let t=useTheme(),s=summarySpec(t);if(loading)/* @__PURE__ */
11
- return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[{padding:s.paddingX,borderRadius:s.radius,backgroundColor:t.colors.surface},style],children:/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:4,label:loadingLabel})});let rows=typeof total=="object"?[...given,{...total,key:total.key??"total"}]:given,large=total!==false;if(rows.length===0)return null;let read=row=>grouped?{accessible:true,accessibilityLabel:`${row.term}, ${row.value}`}:null,breaks=lineBreak===void 0?null:{lineBreak:lineBreak},noteRow=note?{...note,key:note.key??"note"}:void 0;if(variant!=="standard"){let su=t.metrics.variants.summary;/* @__PURE__ */
12
- return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[rnBox(t,variant==="inset"?su.inset:su.box),style],children:[...rows,...noteRow?[noteRow]:[]].map((row,i)=>{let kind=row===noteRow?"note":large&&i===rows.length-1?"total":"row",box=kind==="note"?su.renewRow:kind==="total"?su.totalRow:su.row,term=kind==="note"?su.renewTerm:kind==="total"?su.totalTerm:su.term,value=kind==="note"?su.renew:kind==="total"?su.total:su.value;/* @__PURE__ */
9
+ /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:label,accessibilityValue:{now:value,min:min,...max!==void 0?{max:max}:{},text:String(value)},"aria-valuenow":value,"aria-valuemin":min,"aria-valuemax":max,accessibilityState:{disabled:disabled},"aria-disabled":disabled||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:e=>{e.nativeEvent.actionName==="increment"&&!moreOff&&onChange(clampStep(value+1,min,max)),e.nativeEvent.actionName==="decrement"&&!lessOff&&onChange(clampStep(value-1,min,max))},accessibilityLiveRegion:"polite",style:compact?[rnText(t,textPartSpec(t,st.value)),{width:st.valueWidth,textAlign:"center"},ink?{color:ink}:null]:[rnText(t,textSpecs(t).stepperValue),{minWidth:s.valueMinWidth,textAlign:"center",fontVariant:["tabular-nums"]}],children:String(value)}),button(moreOff,"plus",moreLabel,more,"more")]})}var styles7=reactNative.StyleSheet.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});reactNative.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1}});reactNative.StyleSheet.create({row:{flexDirection:"row",alignSelf:"stretch"},hairline:{position:"absolute",left:0,right:0},tab:{flex:1,flexBasis:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},center:{flexShrink:1,textAlign:"center"}});reactNative.StyleSheet.create({scrim:{flex:1,justifyContent:"flex-end"},sheet:{maxHeight:"100%"},grab:{alignItems:"center",justifyContent:"center"},head:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1,flexGrow:1},close:{alignItems:"center",justifyContent:"center"},closeEnd:{marginLeft:"auto"},scroll:{flexGrow:0},top:{flexDirection:"row",alignItems:"center"}});function Skeleton({lines:lines=3,label:label,testID:testID,style:style}){let t=useTheme(),m=t.metrics.skeleton;/* @__PURE__ */
10
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[{rowGap:m.gap,alignSelf:"stretch"},style],...label?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:label,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:Array.from({length:Math.max(1,lines)},(_,i)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{height:m.lineHeight,width:skeletonWidth(t,i),borderRadius:t.radius.pill,backgroundColor:t.colors.tintSage}},i))})}function SummaryList({rows:given,total:total=false,trailingRows:trailingRows=[],loading:loading=false,loadingLabel:loadingLabel,variant:variant="standard",note:note,grouped:grouped=true,lineBreak:lineBreak,testID:testID,style:style}){let t=useTheme(),s=summarySpec(t);if(loading)/* @__PURE__ */
11
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[{padding:s.paddingX,borderRadius:s.radius,backgroundColor:t.colors.surface},style],children:/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:4,label:loadingLabel})});let rows=typeof total=="object"?[...given,{...total,key:total.key??"total"}]:given,large=total!==false;if(rows.length===0)return null;let read=row=>grouped?{accessible:true,accessibilityLabel:`${row.term}, ${row.value}`}:null,breaks=lineBreak===void 0?null:{lineBreak:lineBreak},noteRow=note?{...note,key:note.key??"note"}:void 0,all=[...rows,...trailingRows,...noteRow?[noteRow]:[]];if(variant!=="standard"&&variant!=="flush"){let su=t.metrics.variants.summary;/* @__PURE__ */
12
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[rnBox(t,variant==="inset"?su.inset:su.box),style],children:all.map((row,i)=>{let kind=row===noteRow?"note":large&&i===rows.length-1?"total":"row",box=kind==="note"?su.renewRow:kind==="total"?su.totalRow:su.row,term=kind==="note"?su.renewTerm:kind==="total"?su.totalTerm:su.term,value=kind==="note"?su.renew:kind==="total"?su.total:su.value;/* @__PURE__ */
13
13
  return jsxRuntime.jsxs(reactNative.View,{testID:itemTestID(testID,row.key??i,row.testID),...read(row),style:[styles11.cardRow,{columnGap:box.gap[0]??0,minHeight:box.minHeight||void 0,marginTop:box.marginTop||void 0}],children:[
14
14
  /* @__PURE__ */jsxRuntime.jsx(Text,{...breaks,style:rnText(t,textPartSpec(t,term)),children:row.term}),
15
- /* @__PURE__ */jsxRuntime.jsx(Text,{...breaks,style:rnText(t,textPartSpec(t,value)),children:row.value})]},row.key??`${i}`)})})}let all=noteRow?[...rows,noteRow]:rows;/* @__PURE__ */
16
- return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[{paddingHorizontal:s.paddingX,paddingVertical:s.paddingY,borderWidth:s.borderWidth,borderColor:s.borderColor,borderRadius:s.radius,backgroundColor:s.background},rnShadow(s.shadow),style],children:all.map((row,i)=>{let last=i===all.length-1,isTotal=large&&i===rows.length-1,minHeight=isTotal?s.totalRowMinHeight:s.row.minHeight;/* @__PURE__ */
15
+ /* @__PURE__ */jsxRuntime.jsx(Text,{...breaks,style:rnText(t,textPartSpec(t,value)),children:row.value})]},row.key??`${i}`)})})}let flush=variant==="flush";/* @__PURE__ */
16
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[{paddingHorizontal:flush?0:s.paddingX,paddingVertical:flush?0:s.paddingY,borderWidth:flush?0:s.borderWidth,borderColor:s.borderColor,borderRadius:s.radius,backgroundColor:s.background},rnShadow(s.shadow),style],children:all.map((row,i)=>{let last=i===all.length-1,isTotal=large&&i===rows.length-1,minHeight=isTotal?s.totalRowMinHeight:s.row.minHeight;/* @__PURE__ */
17
17
  return jsxRuntime.jsxs(reactNative.View,{testID:itemTestID(testID,row.key??i,row.testID),...read(row),style:[styles11.row,{alignItems:s.row.center?"center":"baseline",paddingVertical:s.row.paddingY,columnGap:s.row.gapX,rowGap:s.row.gapY},minHeight?{minHeight:minHeight}:null,last||s.row.divider===0?null:{borderBottomWidth:s.row.divider,borderBottomColor:s.borderColor}],children:[
18
18
  /* @__PURE__ */jsxRuntime.jsx(Text,{...breaks,style:rnText(t,isTotal?s.totalTerm:s.term),children:row.term}),
19
- /* @__PURE__ */jsxRuntime.jsx(Text,{...breaks,style:[rnText(t,isTotal?s.total:row.tone==="off"?s.off:s.value),styles11.value,s.tabular?styles11.tabular:null],children:row.value})]},row.key??`${i}`)})})}var styles11=reactNative.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"},cardRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},value:{marginLeft:"auto",textAlign:"right"},tabular:{fontVariant:["tabular-nums"]}});function Thumbnail({src:src,alt:alt,size:size="xs",icon:icon="box",tint:tint,iconColor:iconColor,testID:testID,style:style}){let t=useTheme(),p=t.metrics.thumbnail[size],[failed,setFailed]=react.useState(null),[aspect,setAspect]=react.useState(null),photo=src&&failed!==src?src:null,top=p.top;react.useEffect(()=>{if(!top||!photo)return;let live=true;return reactNative.Image.getSize(photo,(w,h)=>{live&&w>0&&h>0&&setAspect(w/h)},()=>{}),()=>{live=false}},[top,photo]);let frame=photo?p.frame:p.empty,[pt=0,pr=0,pb=0,pl=0]=frame.padding,[ipt=0,ipr=0,ipb=0,ipl=0]=p.img.padding,ring=rnRing(t,frame),tall=p.top&&aspect!==null;/* @__PURE__ */
20
- return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,frame),size==="md"||size==="lg"?{width:"100%",aspectRatio:1}:{width:frame.w,height:frame.h},{alignItems:"center",justifyContent:"center",overflow:"hidden"},!photo&&tint!==void 0?{backgroundColor:tint}:null,style],...photo?{}:alt?{accessible:true,accessibilityRole:"image",accessibilityLabel:alt}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:[photo?/* @__PURE__ */jsxRuntime.jsx(reactNative.Image,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onError:()=>setFailed(photo),resizeMode:tall?"stretch":p.img.fit==="contain"?"contain":"cover",style:tall?{position:"absolute",top:pt,left:pl,width:frame.w-pl-pr,height:(frame.w-pl-pr)/aspect}:{position:"absolute",top:pt+ipt,right:pr+ipr,bottom:pb+ipb,left:pl+ipl}}):/* @__PURE__ */jsxRuntime.jsx(Icon,{name:icon,size:p.icon.w,color:iconColor??colorOf(t,p.icon.color)}),ring?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ring}):null]})}reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});reactNative.StyleSheet.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});reactNative.StyleSheet.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});reactNative.StyleSheet.create({base:{alignSelf:"flex-start"}});reactNative.StyleSheet.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});reactNative.StyleSheet.create({box:{flexDirection:"row"},line:{alignItems:"center"},area:{alignItems:"stretch"},input:{flex:1,minWidth:0,margin:0,borderWidth:0,backgroundColor:"transparent"},hidden:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0}});reactNative.StyleSheet.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});reactNative.StyleSheet.create({leadAuto:{flexShrink:0},words:{flex:1,minWidth:0},below:{alignSelf:"flex-start"},end:{flexDirection:"row",alignItems:"center",flexShrink:1,maxWidth:"45%",justifyContent:"flex-end"},flush:{marginTop:0}});reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},copy:{flex:1,minWidth:0},acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}});reactNative.StyleSheet.create({fill:{flex:1},host:{position:"absolute",left:0,right:0,alignItems:"center"},cardHost:{position:"absolute"},card:{alignSelf:"stretch"},start:{textAlign:"left"},pill:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",alignSelf:"center",maxWidth:"100%"},center:{textAlign:"center"},shrink:{flexShrink:1}});reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"}});var freezeInPlace=Object.freeze;function deepFreeze2(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value)){freezeInPlace(value);for(let key of Object.keys(value))deepFreeze2(value[key])}return value}var TEXT_SCALE_TIER_CAPS=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3}),SPACE={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},RADIUS={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},TYPE_SIZE={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},LINE_HEIGHT={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},WEIGHT={regular:"400",medium:"500",bold:"700"},LETTER_SPACING={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},DEFAULT_MAX_FONT_SCALE=0,SYSTEM_FONT_FAMILY="System",SYSTEM_MONO_FAMILY="monospace",TIERS=["content","heading","control","compact","badge"];function authoredTierSizes(size){let out={};for(let tier of TIERS)out[tier]=size;return out}var NO_FONT_SOURCES=[];function baseType(){return{family:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,fontUrl:null,families:{regular:SYSTEM_FONT_FAMILY,medium:SYSTEM_FONT_FAMILY,bold:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,monoMedium:SYSTEM_MONO_FAMILY,monoBold:SYSTEM_MONO_FAMILY},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:TYPE_SIZE,tierSizes:authoredTierSizes(TYPE_SIZE),lineHeight:LINE_HEIGHT,weight:WEIGHT,letterSpacing:LETTER_SPACING,scale:1,maxScale:DEFAULT_MAX_FONT_SCALE,scaleCaps:TEXT_SCALE_TIER_CAPS,headingFamily:null,headingWeight:null,fontSources:NO_FONT_SOURCES}}var NO_SLOTS={},EASING_CURVES=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(curve){return`cubic-bezier(${curve.join(", ")})`}var MOTION={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(EASING_CURVES.standard),emphasized:cssCubicBezier(EASING_CURVES.emphasized),exit:cssCubicBezier(EASING_CURVES.exit)},reducedMotion:false},LIGHT_COLOR={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},EVERFUR_LIGHT=deepFreeze2({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:LIGHT_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS}),DARK_COLOR={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},EVERFUR_DARK=deepFreeze2({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:DARK_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS});var FACE_WEIGHT=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(theme,weight){let type=theme.type,fontFamily=type.families[weight];return weight==="mono"||type.namedFaces[weight]?{fontFamily:fontFamily}:{fontFamily:fontFamily,fontWeight:type.weight[FACE_WEIGHT[weight]]}}function headingFace(theme,fallback="bold"){let{headingFamily:headingFamily,headingWeight:headingWeight}=theme.type;if(headingFamily===null&&headingWeight===null)return face(theme,fallback);if(headingFamily!==null)return{fontFamily:headingFamily,fontWeight:headingWeight??theme.type.weight[FACE_WEIGHT[fallback]]};let base=face(theme,fallback);return base.fontWeight===void 0||headingWeight===null?base:{fontFamily:base.fontFamily,fontWeight:headingWeight}}var EVERFUR_THEME_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),globalThemeHost=globalThis,EverfurThemeContext=globalThemeHost[EVERFUR_THEME_CONTEXT_SYMBOL]??(globalThemeHost[EVERFUR_THEME_CONTEXT_SYMBOL]=react.createContext(EVERFUR_LIGHT));EverfurThemeContext.displayName??="EverfurThemeContext";function useEverfurTheme(){return react.useContext(EverfurThemeContext)}var blockMetrics={order:{card:{padding:[0,0,0,0],marginTop:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false},top:{gap:[12,12]},title:{size:16,weight:700,lineHeight:20,color:"text",tracking:-.16,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},meta:{size:13,weight:400,lineHeight:17.55,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},total:{size:16,weight:700,lineHeight:24.8,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0},shots:{marginTop:8,gap:[8,8]},acts:{marginTop:12,gap:[8,8]},go:{h:40,padding:[0,12,0,12],marginTop:0,gap:[6,6],minHeight:40,radius:[999,999],bg:"go",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0}},goText:{size:14,weight:700,lineHeight:21.7,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},plain:{h:40,padding:[0,12,0,12],marginTop:0,gap:[6,6],minHeight:40,radius:[999,999],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0}},plainText:{size:14,weight:700,lineHeight:21.7,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},icon:{w:16},actsColumns:2,shotPressScale:.96},product:{card:{padding:[0,0,0,0],marginTop:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0}},kicker:{size:12,weight:400,lineHeight:15.6,color:"muted",tracking:.12,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},name:{size:15,weight:700,lineHeight:19.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0},meta:{size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},buy:{marginTop:6,gap:[8,8]},price:{size:15,weight:700,lineHeight:23.25,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0}},productCard:{card:{padding:[0,0,0,0],marginTop:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0}},tag:{h:26,padding:[0,9,0,6],marginTop:0,gap:[4,4],minHeight:26,radius:[999,999],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},x:8,y:8},tagIcon:{w:16,color:"#CA4463"},tagText:{size:12,weight:700,lineHeight:12,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},price:{gap:[6,6]},priceText:{size:17,weight:700,lineHeight:26.35,color:"text",tracking:-.17,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0},was:{size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"strike",decoOffset:0,decoThickness:0},name:{size:14,weight:500,lineHeight:18.2,color:"text",tracking:0,face:"sans",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0},meta:{size:12,weight:400,lineHeight:16.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},metaAuto:{size:12,weight:500,lineHeight:16.2,color:"#16864A",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},step:{bg:"surface",color:"text"},stepIn:{w:112,h:38,padding:[0,0,0,0],marginTop:0,gap:[0,0],minHeight:0,radius:[19,19],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},color:"surface"},stepAt:{right:8,bottom:8},stepButton:{w:38,h:38,radius:[19,19]},stepIcon:{w:18},count:{size:15,weight:700,lineHeight:23.25,color:"surface",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0},lift:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0}},productRow:{card:{padding:[0,0,0,0],marginTop:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true},name:{size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},meta:{size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2}},cart:{line:{padding:[0,0,0,0],marginTop:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true},name:{gap:[8,4]},nameText:{size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},meta:{size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2},price:{size:17,weight:700,lineHeight:26.35,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0},was:{size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},acts:{marginTop:6,gap:[16,16]},remove:{size:13,weight:700,lineHeight:20.15,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0},end:{gap:[4,4]}},need:{card:{padding:[14,16,14,16],marginTop:0,gap:[0,0],minHeight:0,radius:[0,20],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:2,blur:3,spread:-1}},kicker:{h:24,gap:[8,8]},kickerText:{size:15,weight:700,lineHeight:23.25,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},source:{h:24,padding:[0,9,0,9],marginTop:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#DAF6E8",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0}},sourceText:{size:12,weight:700,lineHeight:18.6,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},title:{size:15,weight:700,lineHeight:23.25,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0},signal:{marginTop:8,gap:[9,9]},signalText:{size:15,weight:400,lineHeight:21.75,color:"#4D4D4D",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},signalLead:{size:15,weight:700,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},dot:{w:9,h:9,bg:"alert",dy:-1},score:{padding:[10,14,10,14],marginTop:12,gap:[12,12],minHeight:0,radius:[10,10],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0}},scoreLabel:{size:14,weight:600,lineHeight:18.9,color:"#4D4D4D",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},scoreTag:{padding:[2,6,2,6],marginTop:3,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0}},scoreTagText:{size:12,weight:600,lineHeight:16.2,color:"text",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},scoreNums:{gap:[6,0]},scoreWas:{size:17,weight:700,lineHeight:26.35,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"strike",decoOffset:0,decoThickness:1.5},scoreArrow:{w:16,color:"muted"},scoreNow:{size:28,weight:700,lineHeight:28,color:"text",tracking:-.84,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0},scoreOf:{size:15,weight:700,lineHeight:15,color:"#4D4D4D",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0},scoreSince:{size:13,weight:700,lineHeight:20.15,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:3}},tip:{card:{padding:[8,10,10,10],marginTop:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0}},tones:{y:"#FCF0D6",c:"tintBlue",g:"tintGo",r:"tintPink"},img:{w:181.5,h:113.438,padding:[0,0,0,0],marginTop:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0}},n:{w:28,h:28,padding:[0,0,0,0],marginTop:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},x:8,y:8},nText:{size:14,weight:700,lineHeight:14,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},title:{size:16,weight:700,lineHeight:20,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:10},text:{size:15,weight:400,lineHeight:21,color:"#4D4D4D",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:4},foot:{padding:[8,0,0,0],gap:[4,4]},footText:{size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0},footArrow:{w:14},pressScale:.98}};var rnBlockFonts=theme=>{let n=theme.type.namedFaces,family=key=>face(theme,key).fontFamily;return{family:family("regular"),mono:family("mono"),faces:{regular:family("regular"),medium:family("medium"),bold:family("bold"),mono:family("mono"),monoBold:family("monoBold"),serif:headingFace(theme,"bold").fontFamily},namedFaces:n.regular&&n.medium&&n.bold}},mapped=/* @__PURE__ */new WeakMap;function themeInputFromEverfur(theme,fonts,base=everfurTheme){if(base!==everfurTheme)return mapEverfur(theme,fonts,base);let byTheme=mapped.get(fonts);byTheme===void 0&&mapped.set(fonts,byTheme=/* @__PURE__ */new WeakMap);let input=byTheme.get(theme);return input===void 0&&byTheme.set(theme,input=mapEverfur(theme,fonts,base)),input}function mapEverfur(theme,fonts,base){let c=theme.color,d=EVERFUR_LIGHT.color,dark=theme.brightness==="dark",compiled=dark?EVERFUR_DARK:EVERFUR_LIGHT,moved=key=>c[key]!==d[key],colors={};if(moved("primary")?(Object.assign(colors,{ink:c.primary,onInk:c.onPrimary,focus:c.primary}),moved("accent")||Object.assign(colors,{go:c.primary,onGo:c.onPrimary})):moved("onPrimary")&&(colors.onInk=c.onPrimary),moved("accent")&&Object.assign(colors,{go:c.accent,onGo:c.onAccent}),moved("brandSoft")&&(colors.tintSage=c.brandSoft),moved("danger")&&Object.assign(colors,{alert:c.danger,alertDeep:c.danger}),dark)Object.assign(colors,{bg:c.background,surface:c.surface,text:c.text.primary,muted:c.text.muted,line:c.borderRingCream});else{let k2=compiled.color;c.background!==k2.background&&(colors.bg=c.background),c.surface!==k2.surface&&(colors.surface=c.surface),c.text.primary!==k2.text.primary&&(colors.text=c.text.primary),c.text.muted!==k2.text.muted&&(colors.muted=c.text.muted)}let over={};Object.keys(colors).length>0&&(over.colors=colors);let r=theme.radius,kr=compiled.radius;if(r.xs!==kr.xs||r.sm!==kr.sm||r.lg!==kr.lg||r.xl!==kr.xl||r.pill!==kr.pill){let radius={};r.xs!==kr.xs&&(radius.sm=r.xs),r.sm!==kr.sm&&(radius.md=r.sm),r.lg!==kr.lg&&(radius.lg=r.lg),r.xl!==kr.xl&&(radius.xl=r.xl),r.pill!==kr.pill&&(radius.pill=r.pill),over.radius=radius,(r.lg!==kr.lg||r.xl!==kr.xl)&&(over.metrics={...r.lg!==kr.lg?{card:{radius:r.lg},summary:{radius:r.lg}}:{},...r.xl!==kr.xl?{sheet:{radius:r.xl}}:{}})}if(theme.space.xs!==compiled.space.xs){let f=theme.space.xs/compiled.space.xs,s=base.space,n=v=>Math.round(v*f);over.space={1:n(s[1]),2:n(s[2]),3:n(s[3]),4:n(s[4]),5:n(s[5]),6:n(s[6]),7:n(s[7]),8:n(s[8]),9:n(s[9])}}let ts=theme.type.size,ks=compiled.type.size,sizeMoved=ts.caption!==ks.caption||ts.bodyTight!==ks.bodyTight||ts.body!==ks.body||ts.subtitle!==ks.subtitle||ts.verdict!==ks.verdict,lh=theme.type.lineHeight,klh=compiled.type.lineHeight,lineMoved=lh.relaxed!==klh.relaxed||lh.tight!==klh.tight,caps=theme.type.scaleCaps,kcaps=compiled.type.scaleCaps,capsMoved=caps.content!==kcaps.content||caps.heading!==kcaps.heading||caps.control!==kcaps.control||caps.compact!==kcaps.compact||caps.badge!==kcaps.badge,typeMoved=sizeMoved||lineMoved||capsMoved;return over.type={...sizeMoved?{size:{xs:ts.caption,sm:ts.bodyTight,md:ts.body,lg:ts.subtitle,xl:ts.verdict}}:{},...lineMoved?{lineHeight:{body:lh.relaxed,display:lh.tight}}:{},...capsMoved?{scaleCaps:{content:caps.content,heading:caps.heading,control:caps.control,compact:caps.compact,badge:caps.badge}}:{},...fonts(theme)},theme.motion.reducedMotion&&!base.motion.reduced&&(over.motion={reduced:true}),typeMoved||Object.keys(over).some(k2=>k2!=="type")||theme.type.families.regular!==EVERFUR_LIGHT.type.families.regular?{name:"partner",...over}:over}function useBlockThemeInput(fonts){let everfur=useEverfurTheme();return react.useMemo(()=>themeInputFromEverfur(everfur,fonts),[everfur,fonts])}function BlockScope({children:children}){let input=useBlockThemeInput(rnBlockFonts);return react.createElement(ThemeProvider,{theme:input},children)}function CartLine(props){/* @__PURE__ */
21
- return jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(CartLineBody,{...props})})}function CartLineBody(props){let{name:name,image:image,imageAlt:imageAlt,badge:badge,meta:meta,price:price,wasPrice:wasPrice,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,actions:actions,fallback:fallback,error:error,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=blockMetrics.cart,shot=t.metrics.thumbnail.xs,text=p=>rnText(t,textPartSpec(t,p)),side=image?shot.frame.w:shot.empty.w,[gx=0,gy=0]=m.line.gap,row={flexDirection:"row",alignItems:m.line.center?"center":"flex-start",columnGap:gx};if(loading)/* @__PURE__ */
19
+ /* @__PURE__ */jsxRuntime.jsx(Text,{...breaks,style:[rnText(t,isTotal?s.total:row.tone==="off"?s.off:s.value),styles11.value,s.tabular?styles11.tabular:null],children:row.value})]},row.key??`${i}`)})})}var styles11=reactNative.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"},cardRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},value:{marginLeft:"auto",textAlign:"right"},tabular:{fontVariant:["tabular-nums"]}});function BlockIcon({icon:icon,size:size,color:color,style:style}){let t=useTheme();return typeof icon=="function"?icon({size:size,color:color??t.colors.ink}):typeof icon!="string"?/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:icon,size:size,color:color,style:style}):/* @__PURE__ */jsxRuntime.jsx(Icon,{name:icon,size:size,color:color,style:style})}function stepTo(q,next){next>q.value&&q.onMore?q.onMore():next<q.value&&q.onFewer?q.onFewer():q.onChange?.(next)}function useShown(key){let[loaded,setLoaded]=react.useState(null);return{shown:key!==null&&loaded===key,onShown:()=>setLoaded(key)}}function FadeImage({onShown:onShown,onLoad:onLoad,style:style,...props}){let t=useTheme(),reduced=useRnReduced(t),fade=react.useRef(new reactNative.Animated.Value(0)).current;/* @__PURE__ */
20
+ return jsxRuntime.jsx(reactNative.Animated.Image,{...props,fadeDuration:0,onLoad:e=>{onLoad?.(e);let ms=t.motion.duration.fade;if(reduced||ms<=0){fade.setValue(1),onShown?.();return}reactNative.Animated.timing(fade,{toValue:1,duration:ms,easing:reactNative.Easing.out(reactNative.Easing.cubic),useNativeDriver:reactNative.Platform.OS!=="web"}).start(()=>onShown?.())},style:[style,{opacity:fade}]})}function BlockThumbnail({src:src,alt:alt,size:size="xs",icon:icon=UI_RN_ICON_BOX,iconSize:iconSize,tint:tint,iconColor:iconColor,onError:onError,testID:testID,style:style}){let t=useTheme(),p=t.metrics.thumbnail[size],[failed,setFailed]=react.useState(null),[aspect,setAspect]=react.useState(null),photo=src&&failed!==src?src:null,top=p.top;react.useEffect(()=>{if(!top||!photo)return;let live=true;return reactNative.Image.getSize(photo,(w,h)=>{live&&w>0&&h>0&&setAspect(w/h)},()=>{}),()=>{live=false}},[top,photo]);let frame=photo?p.frame:p.empty,[pt=0,pr=0,pb=0,pl=0]=frame.padding,[ipt=0,ipr=0,ipb=0,ipl=0]=p.img.padding,ring=rnRing(t,frame),tall=p.top&&aspect!==null;/* @__PURE__ */
21
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,frame),size==="md"||size==="lg"?{width:"100%",aspectRatio:1}:{width:frame.w,height:frame.h},{alignItems:"center",justifyContent:"center",overflow:"hidden"},!photo&&tint!==void 0?{backgroundColor:tint}:null,style],...photo?{}:alt?{accessible:true,accessibilityRole:"image",accessibilityLabel:alt}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:[photo?/* @__PURE__ */jsxRuntime.jsx(FadeImage,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:tall?"stretch":p.img.fit==="contain"?"contain":"cover",style:tall?{position:"absolute",top:pt,left:pl,width:frame.w-pl-pr,height:(frame.w-pl-pr)/aspect}:{position:"absolute",top:pt+ipt,right:pr+ipr,bottom:pb+ipb,left:pl+ipl}},photo):/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:icon,size:iconSize??p.icon.w,color:iconColor??colorOf(t,p.icon.color)}),ring?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ring}):null]})}reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});reactNative.StyleSheet.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});reactNative.StyleSheet.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});reactNative.StyleSheet.create({base:{alignSelf:"flex-start"}});reactNative.StyleSheet.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});reactNative.StyleSheet.create({box:{flexDirection:"row"},line:{alignItems:"center"},area:{alignItems:"stretch"},input:{flex:1,minWidth:0,margin:0,borderWidth:0,backgroundColor:"transparent"},hidden:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0}});reactNative.StyleSheet.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});reactNative.StyleSheet.create({leadAuto:{flexShrink:0},words:{flex:1,minWidth:0},below:{alignSelf:"flex-start"},end:{flexDirection:"row",alignItems:"center",flexShrink:1,maxWidth:"45%",justifyContent:"flex-end"},flush:{marginTop:0}});reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},copy:{flex:1,minWidth:0},acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}});reactNative.StyleSheet.create({fill:{flex:1},host:{position:"absolute",left:0,right:0,alignItems:"center"},cardHost:{position:"absolute"},card:{alignSelf:"stretch"},start:{textAlign:"left"},pill:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",alignSelf:"center",maxWidth:"100%"},center:{textAlign:"center"},shrink:{flexShrink:1}});reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"}});function Square({size:size,web:web,src:src,alt:alt,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),q=web?blocksMetrics(t).cartWeb:blocksMetrics(t).cartSquare,box=web?blocksMetrics(t).cartWeb.sq:blocksMetrics(t).cartSquare[size],icon=t.metrics.thumbnail.xs.icon,[failed,setFailed]=react.useState(null),photo=src&&failed!==src?src:null,{shown:shown,onShown:onShown}=useShown(photo),inset=box.w*q.imgInset,blend=q.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
22
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,accessible:!photo&&!!alt,accessibilityRole:!photo&&alt?"image":void 0,accessibilityLabel:photo?void 0:alt,style:[rnBox(t,box),{width:box.w,height:box.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!shown&&fallback?.tint!==void 0?{backgroundColor:fallback.tint}:null],children:[shown?null:/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:fallback?.icon??UI_RN_ICON_BOX,size:fallback?.iconSize??icon.w,color:fallback?.iconColor??colorOf(t,icon.color)}),photo?/* @__PURE__ */jsxRuntime.jsx(FadeImage,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onShown:onShown,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:q.imgFit,style:[{position:"absolute",top:inset,right:inset,bottom:inset,left:inset},blend]},photo):null]})}function PlanLine({name:name,image:image,imageAlt:imageAlt,price:price,wasPrice:wasPrice,smalls:smalls,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,actions:actions,fallback:fallback,onImageError:onImageError,error:error,testID:testID,style:style}){let t=useTheme(),p=blocksMetrics(t).cartPlan,text=x=>rnText(t,textPartSpec(t,x)),[failed,setFailed]=react.useState(null),photo=image&&failed!==image?image:null,{shown:shown,onShown:onShown}=useShown(photo),part=n=>testID===void 0?void 0:`${testID}-${n}`,[gx=0]=p.line.gap,acts=actions!==void 0?actions.map(a=>({...a,testID:itemTestID(testID,a.key,a.testID)})):removeLabel&&onRemove?[{key:"remove",label:removeLabel,onPress:onRemove,testID:part("remove"),disabled:void 0,accessibilityLabel:void 0}]:[];/* @__PURE__ */
23
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:gx},style],children:[
24
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:part("image"),accessible:!photo&&!!imageAlt,accessibilityRole:!photo&&imageAlt?"image":void 0,accessibilityLabel:photo?void 0:imageAlt,style:[rnBox(t,p.img),{width:p.img.w,height:p.img.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!shown&&fallback?.tint!==void 0?{backgroundColor:fallback.tint}:null],children:[shown?null:/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:fallback?.icon??UI_RN_ICON_BOX,size:fallback?.iconSize??p.icon.w,color:fallback?.iconColor??colorOf(t,p.icon.color)}),photo?/* @__PURE__ */jsxRuntime.jsx(FadeImage,{source:{uri:photo},accessibilityLabel:imageAlt,accessible:!!imageAlt,onShown:onShown,onError:()=>{setFailed(photo),onImageError?.(photo)},resizeMode:"cover",style:{position:"absolute",top:0,right:0,bottom:0,left:0}},photo):null]}),
25
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flex:1,minWidth:0},children:[
26
+ /* @__PURE__ */jsxRuntime.jsx(Text,{testID:part("name"),style:text(p.name),children:name}),price||wasPrice||smalls&&smalls.length>0?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:p.prices.gap[0],rowGap:p.prices.gap[1],marginTop:p.prices.marginTop},children:[price?/* @__PURE__ */jsxRuntime.jsx(Text,{testID:part("price"),style:text(p.price),children:price}):null,wasPrice?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(p.was),children:wasPrice}):null,smalls?.map((line,i)=>/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(p.small),children:line},`${i}-${line}`))]}):null,quantity||acts.length>0?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"center",columnGap:p.acts.gap[0],marginTop:p.acts.marginTop},children:[quantity?/* @__PURE__ */jsxRuntime.jsx(InkedQuantityStepper,{ink:colorOf(t,p.step.color),variant:"compact",value:quantity.value,min:quantity.min,max:quantity.max,label:quantity.label,fewerLabel:quantity.fewerLabel,moreLabel:quantity.moreLabel,onChange:v=>stepTo(quantity,v)}):null,acts.map(a=>/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:a.testID,onPress:a.disabled?void 0:a.onPress,disabled:a.disabled,accessibilityRole:"button",accessibilityLabel:a.accessibilityLabel??a.label,accessibilityState:a.disabled?{disabled:true}:void 0,hitSlop:slopFor(p.remove.h),style:[{minHeight:p.remove.minHeight||void 0,justifyContent:"center"},a.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",style:text(p.removeText),children:a.label})},a.key))]}):null,error?/* @__PURE__ */jsxRuntime.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(p.small),{marginTop:p.acts.marginTop,color:t.colors.alert}],children:error}):null]})]})}function CartLine(props){let{name:name,image:image,imageAlt:imageAlt,badge:badge,meta:meta,price:price,wasPrice:wasPrice,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,actions:actions,fallback:fallback,onImageError:onImageError,variant:variant="standard",thumbSize:thumbSize="md",align:align="top",namePress:namePress,error:error,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=blocksMetrics(t).cart,shot=t.metrics.thumbnail.xs,text=p=>rnText(t,textPartSpec(t,p)),side=image?shot.frame.w:shot.empty.w,[gx=0,gy=0]=m.line.gap,row={flexDirection:"row",alignItems:m.line.center?"center":"flex-start",columnGap:gx};if(loading)/* @__PURE__ */
22
27
  return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,m.line),row,style],children:[
23
28
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:side,height:side,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage}}),
24
- /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1},children:/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:2,label:loadingLabel})})]});let metaEl=meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(m.meta),{marginTop:m.meta.marginTop}],children:meta}):null,part=n=>testID===void 0?void 0:`${testID}-${n}`,act=(key,label,onPress,extra)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:extra?.testID,onPress:extra?.disabled?void 0:onPress,disabled:extra?.disabled,accessibilityRole:"button",accessibilityLabel:extra?.accessibilityLabel??label,accessibilityState:extra?.disabled?{disabled:true}:void 0,hitSlop:slopFor(m.remove.lineHeight),style:[{minHeight:void 0,justifyContent:"center"},extra?.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",style:text(m.remove),children:label})},key),remove=actions!==void 0?actions.length>0?actions.map(a=>act(a.key,a.label,a.onPress,{disabled:a.disabled,accessibilityLabel:a.accessibilityLabel,testID:itemTestID(testID,a.key,a.testID)})):null:removeLabel&&onRemove?act("remove",removeLabel,onRemove):null,stepper=quantity?/* @__PURE__ */jsxRuntime.jsx(QuantityStepper,{value:quantity.value,min:quantity.min,max:quantity.max,label:quantity.label,fewerLabel:quantity.fewerLabel,moreLabel:quantity.moreLabel,onChange:quantity.onChange}):null;/* @__PURE__ */
29
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1},children:/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:2,label:loadingLabel})})]});let metaEl=meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(m.meta),{marginTop:m.meta.marginTop}],children:meta}):null,part=n=>testID===void 0?void 0:`${testID}-${n}`,act=(key,label,onPress,extra)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:extra?.testID,onPress:extra?.disabled?void 0:onPress,disabled:extra?.disabled,accessibilityRole:"button",accessibilityLabel:extra?.accessibilityLabel??label,accessibilityState:extra?.disabled?{disabled:true}:void 0,hitSlop:slopFor(m.removeBox.minHeight||m.remove.lineHeight),style:[{minHeight:m.removeBox.minHeight||void 0,justifyContent:"center"},extra?.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",style:text(m.remove),children:label})},key),remove=actions!==void 0?actions.length>0?actions.map(a=>act(a.key,a.label,a.onPress,{disabled:a.disabled,accessibilityLabel:a.accessibilityLabel,testID:itemTestID(testID,a.key,a.testID)})):null:removeLabel&&onRemove?act("remove",removeLabel,onRemove):null;if(variant==="square"||variant==="web"){let web=variant==="web",q=web?{...blocksMetrics(t).cartSquare,...blocksMetrics(t).cartWeb}:blocksMetrics(t).cartSquare,ring=rnRing(t,q.badge),sqAct=(key,label,onPress,extra)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:extra?.testID,onPress:extra?.disabled?void 0:onPress,disabled:extra?.disabled,accessibilityRole:"button",accessibilityLabel:extra?.accessibilityLabel??label,accessibilityState:extra?.disabled?{disabled:true}:void 0,hitSlop:slopFor(q.actBox.minHeight||q.act.lineHeight),style:[{minHeight:q.actBox.minHeight||void 0,justifyContent:"center"},extra?.disabled?{opacity:DISABLED_OPACITY}:null],children:/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",style:text(q.act),children:label})},key),acts=web?[]:actions!==void 0?actions.map(a=>sqAct(a.key,a.label,a.onPress,{disabled:a.disabled,accessibilityLabel:a.accessibilityLabel,testID:itemTestID(testID,a.key,a.testID)})):removeLabel&&onRemove?[sqAct("remove",removeLabel,onRemove)]:[],lifted=namePress!==void 0&&acts.length>0;/* @__PURE__ */
30
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[{flexDirection:"row",alignItems:align==="center"||q.line.center?"center":"flex-start",columnGap:q.line.gap[0]},style],children:[
31
+ /* @__PURE__ */jsxRuntime.jsx(Square,{size:thumbSize,web:web,src:image,alt:imageAlt,fallback:fallback,onError:onImageError,testID:part("image")}),
32
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[{flex:1,minWidth:0},lifted?{zIndex:1}:null],children:[
33
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:q.name.center?"center":"baseline",columnGap:q.name.gap[0],rowGap:q.name.gap[1]},children:[
34
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(namePress?q.link:q.nameText),onPress:lifted?namePress.onPress:void 0,children:name}),badge?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[rnBox(t,q.badge),{height:q.badge.h,justifyContent:"center"}],children:[
35
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(q.badgeText),children:badge.label}),ring?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ring}):null]}):null]}),meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(q.meta),{marginTop:q.meta.marginTop}],children:meta}):null,acts.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:q.acts.gap[0],rowGap:q.acts.gap[1],marginTop:q.acts.marginTop},children:acts}):null,error?/* @__PURE__ */jsxRuntime.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(q.meta),{marginTop:q.acts.marginTop,color:t.colors.alert}],children:error}):null]}),price||wasPrice?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{alignItems:"flex-end"},children:[price?/* @__PURE__ */jsxRuntime.jsx(Text,{testID:part("price"),style:text(q.price),children:price}):null,wasPrice?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(q.was),children:wasPrice}):null]}):null,namePress?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:namePress.testID??part("name"),onPress:namePress.onPress,accessibilityRole:"button",accessibilityLabel:namePress.accessibilityLabel??name,style:{position:"absolute",top:-q.linkReach,right:0,bottom:-q.linkReach,left:0}}):null]})}if(variant==="plan")/* @__PURE__ */return jsxRuntime.jsx(PlanLine,{...props});let stepper=quantity?/* @__PURE__ */jsxRuntime.jsx(QuantityStepper,{value:quantity.value,min:quantity.min,max:quantity.max,label:quantity.label,fewerLabel:quantity.fewerLabel,moreLabel:quantity.moreLabel,onChange:v=>stepTo(quantity,v)}):null;/* @__PURE__ */
25
36
  return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,m.line),{rowGap:gy,columnGap:0},style],children:[
26
37
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:row,children:[
27
- /* @__PURE__ */jsxRuntime.jsx(Thumbnail,{size:"xs",src:image,alt:imageAlt,icon:fallback?.icon,tint:fallback?.tint,iconColor:fallback?.iconColor,testID:part("image")}),
38
+ /* @__PURE__ */jsxRuntime.jsx(BlockThumbnail,{size:"xs",src:image,alt:imageAlt,icon:fallback?.icon,iconSize:fallback?.iconSize,tint:fallback?.tint,iconColor:fallback?.iconColor,onError:onImageError,testID:part("image")}),
28
39
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flex:1,minWidth:0},children:[
29
40
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:m.name.gap[0],rowGap:m.name.gap[1]},children:[
30
- /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.nameText),children:name}),badge?/* @__PURE__ */jsxRuntime.jsx(Pill,{label:badge.label,tone:badge.tone??"rx"}):null]}),metaEl,stepper||remove?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"center",...actions&&actions.length>1?{flexWrap:"wrap",rowGap:m.acts.gap[1]}:{},columnGap:m.acts.gap[0],marginTop:m.acts.marginTop},children:[stepper,remove]}):null,error?/* @__PURE__ */jsxRuntime.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(m.meta),{marginTop:m.acts.marginTop,color:t.colors.alert}],children:error}):null]})]}),price||wasPrice?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{marginLeft:side+gx,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:m.end.gap[0],rowGap:m.end.gap[1]},children:[price?/* @__PURE__ */jsxRuntime.jsx(Text,{testID:part("price"),style:text(m.price),children:price}):null,wasPrice?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.was),children:wasPrice}):null]}):null]})}function Action({action:action,testID:testID}){let t=useTheme(),m=blockMetrics.order,off=action.disabled===true||action.busy===true,box=action.tone==="go"?m.go:m.plain,label=rnText(t,textPartSpec(t,action.tone==="go"?m.goText:m.plainText));/* @__PURE__ */
31
- return jsxRuntime.jsxs(reactNative.Pressable,{testID:testID,onPress:off?void 0:action.onPress,disabled:off,hitSlop:slopFor(box.h),accessibilityRole:"button",accessibilityLabel:action.label,accessibilityState:{disabled:off,busy:action.busy===true},style:[rnBox(t,box),{flex:1,minWidth:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},off?{opacity:DISABLED_OPACITY}:null],children:[action.icon?/* @__PURE__ */jsxRuntime.jsx(Icon,{name:action.icon,size:m.icon.w,color:typeof label.color=="string"?label.color:void 0}):null,
32
- /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",numberOfLines:1,style:label,children:action.label})]})}function Shot({shot:shot,pressable:pressable,testID:testID,onMeasure:onMeasure}){let t=useTheme(),m=blockMetrics.order,reduced=useRnReduced(t),ref=react.useRef(null),p=t.metrics.thumbnail.sm,frame=shot.src?p.frame:p.empty,measure=react.useCallback(()=>new Promise(resolve=>{let v=ref.current;if(!v||typeof v.measureInWindow!="function"){resolve(null);return}let[pt=0,pr=0,pb=0,pl=0]=frame.padding;v.measureInWindow((x,y,width,height)=>{resolve(width>0||height>0?{x:x+pl,y:y+pt,width:Math.max(0,width-pl-pr),height:Math.max(0,height-pt-pb)}:null)})}),[frame]),key=shot.key;react.useEffect(()=>{if(onMeasure)return onMeasure(key,measure),()=>onMeasure(key,null)},[onMeasure,key,measure]);let live=pressable&&shot.onPress!==void 0,art=/* @__PURE__ */jsxRuntime.jsx(Thumbnail,{size:"sm",src:shot.src,alt:live?void 0:shot.alt,icon:shot.icon,tint:shot.tint,iconColor:shot.iconColor,testID:live||onMeasure?void 0:testID});return live?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{ref:ref,collapsable:false,testID:testID,onPress:shot.onPress,hitSlop:slopFor(frame.h),accessibilityRole:"button",accessibilityLabel:shot.alt,style:({pressed:pressed})=>pressed&&!reduced?{transform:[{scale:m.shotPressScale}]}:null,children:art}):onMeasure?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{ref:ref,collapsable:false,testID:testID,children:art}):art}function gridRows(items,columns){let rows=[];for(let i=0;i<items.length;i+=columns){let row=items.slice(i,i+columns);for(;row.length<columns;)row.push(null);rows.push(row)}return rows}function OrderRow(props){/* @__PURE__ */
33
- return jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(OrderRowBody,{...props})})}function OrderRowBody(props){let{title:title,meta:meta,total:total,shots:shots=[],actions:actions=[],onPress:onPress,accessibilityLabel:accessibilityLabel,error:error,loading:loading=false,loadingLabel:loadingLabel,actionGrid:actionGrid=false,onShotMeasure:onShotMeasure,testID:testID,style:style}=props,t=useTheme(),m=blockMetrics.order,text=p=>rnText(t,textPartSpec(t,p));if(loading)/* @__PURE__ */
34
- return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[rnBox(t,m.card),style],children:/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:3,label:loadingLabel})});let totalEl=total?/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(m.total),{marginLeft:"auto"}],children:total}):null,body=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
35
- /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",columnGap:m.top.gap[0],rowGap:m.top.gap[1]},children:[
41
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.nameText),children:name}),badge?/* @__PURE__ */jsxRuntime.jsx(Pill,{label:badge.label,tone:badge.tone??"rx"}):null]}),metaEl,stepper||remove?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"center",...actions&&actions.length>1?{flexWrap:"wrap",rowGap:m.acts.gap[1]}:{},columnGap:m.acts.gap[0],marginTop:m.acts.marginTop},children:[stepper,remove]}):null,error?/* @__PURE__ */jsxRuntime.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(m.meta),{marginTop:m.acts.marginTop,color:t.colors.alert}],children:error}):null]})]}),price||wasPrice?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{marginLeft:side+gx,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:m.end.gap[0],rowGap:m.end.gap[1]},children:[price?/* @__PURE__ */jsxRuntime.jsx(Text,{testID:part("price"),style:text(m.price),children:price}):null,wasPrice?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.was),children:wasPrice}):null]}):null]})}function Action({action:action,testID:testID,quiet:quiet,web:web=false}){let t=useTheme(),m=blocksMetrics(t).order,q=blocksMetrics(t).orderQuiet,w=blocksMetrics(t).orderWeb,reduced=useRnReduced(t),off=action.disabled===true||action.busy===true,[box,words]=web?action.tone==="link"?[w.link,w.linkText]:action.tone==="go"?[w.go,w.goText]:[w.plain,w.plainText]:action.tone==="link"?[q.link,q.linkText]:action.tone==="go"?[m.go,m.goText]:quiet?[q.plain,q.plainText]:[m.plain,m.plainText],label=rnText(t,textPartSpec(t,words)),iconSize=web?w.icon.w:quiet?q.icon.w:m.icon.w,ring=web?rnRing(t,box):null;if(web){let settles=action.tone!=="link"&&!reduced;/* @__PURE__ */
42
+ return jsxRuntime.jsxs(reactNative.Pressable,{testID:testID,onPress:off?void 0:action.onPress,disabled:off,hitSlop:slopFor(box.h),accessibilityRole:"button",accessibilityLabel:action.label,accessibilityState:{disabled:off,busy:action.busy===true},style:({pressed:pressed})=>[rnBox(t,box),{flexDirection:"row",alignItems:"center",justifyContent:"center"},off?{opacity:DISABLED_OPACITY}:null,pressed&&settles?{transform:[{scale:w.pressScale}]}:null],children:[action.icon?/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:action.icon,size:iconSize,color:typeof label.color=="string"?label.color:void 0}):null,
43
+ /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",numberOfLines:1,style:label,children:action.label}),ring?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ring}):null]})}/* @__PURE__ */
44
+ return jsxRuntime.jsxs(reactNative.Pressable,{testID:testID,onPress:off?void 0:action.onPress,disabled:off,hitSlop:slopFor(box.h),accessibilityRole:"button",accessibilityLabel:action.label,accessibilityState:{disabled:off,busy:action.busy===true},style:[rnBox(t,box),quiet?{flexShrink:1,minWidth:0}:{flex:1,minWidth:0},{flexDirection:"row",alignItems:"center",justifyContent:"center"},off?{opacity:DISABLED_OPACITY}:null],children:[action.icon?/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:action.icon,size:iconSize,color:typeof label.color=="string"?label.color:void 0}):null,
45
+ /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",numberOfLines:1,style:label,children:action.label})]})}function Shot({shot:shot,pressable:pressable,testID:testID,onMeasure:onMeasure,quiet:quiet,web:web=false}){let t=useTheme(),m=blocksMetrics(t).order,q=blocksMetrics(t).orderQuiet,w=blocksMetrics(t).orderWeb,reduced=useRnReduced(t),ref=react.useRef(null),p=t.metrics.thumbnail.sm,sqInset=w.sq.w*w.imgInset,hasSrc=!!shot.src,sqSide=w.sq.h,frame=react.useMemo(()=>web?{padding:[sqInset,sqInset,sqInset,sqInset],h:sqSide}:quiet&&hasSrc?q.shotImg:hasSrc?p.frame:p.empty,[web,sqInset,sqSide,quiet,hasSrc,q,p]),measure=react.useCallback(()=>new Promise(resolve=>{let v=ref.current;if(!v||typeof v.measureInWindow!="function"){resolve(null);return}let[pt=0,pr=0,pb=0,pl=0]=frame.padding;v.measureInWindow((x,y,width,height)=>{resolve(width>0||height>0?{x:x+pl,y:y+pt,width:Math.max(0,width-pl-pr),height:Math.max(0,height-pt-pb)}:null)})}),[frame]),key=shot.key;react.useEffect(()=>{if(onMeasure)return onMeasure(key,measure),()=>onMeasure(key,null)},[onMeasure,key,measure]);let live=pressable&&shot.onPress!==void 0,art=web?/* @__PURE__ */jsxRuntime.jsx(WebSquare,{shot:shot,alt:live?void 0:shot.alt,testID:live||onMeasure?void 0:testID}):quiet?/* @__PURE__ */jsxRuntime.jsx(Square2,{shot:shot,alt:live?void 0:shot.alt,testID:live||onMeasure?void 0:testID}):/* @__PURE__ */jsxRuntime.jsx(BlockThumbnail,{size:"sm",src:shot.src,alt:live?void 0:shot.alt,icon:shot.icon,iconSize:shot.iconSize,tint:shot.tint,iconColor:shot.iconColor,onError:shot.onError,testID:live||onMeasure?void 0:testID});return live?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{ref:ref,collapsable:false,testID:testID,onPress:shot.onPress,hitSlop:slopFor(frame.h),accessibilityRole:"button",accessibilityLabel:shot.alt,style:({pressed:pressed})=>pressed&&!reduced?{transform:[{scale:m.shotPressScale}]}:null,children:art}):onMeasure?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{ref:ref,collapsable:false,testID:testID,children:art}):art}function Square2({shot:shot,alt:alt,testID:testID}){let t=useTheme(),q=blocksMetrics(t).orderQuiet,[failed,setFailed]=react.useState(null),src=shot.src&&failed!==shot.src?shot.src:null;if(!src)/* @__PURE__ */return jsxRuntime.jsx(BlockThumbnail,{size:"sm",src:null,alt:alt,icon:shot.icon,iconSize:shot.iconSize,tint:shot.tint,iconColor:shot.iconColor,testID:testID});let[pt=0,pr=0,pb=0,pl=0]=q.shotImg.padding,blend=q.shotBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
46
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[rnBox(t,q.shot),{width:q.shot.w,height:q.shot.h,overflow:"hidden"}],children:/* @__PURE__ */jsxRuntime.jsx(reactNative.Image,{source:{uri:src},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(src),shot.onError?.(src)},resizeMode:q.shotImg.fit==="contain"?"contain":"cover",style:[{position:"absolute",top:pt,right:pr,bottom:pb,left:pl},blend]})})}function WebSquare({shot:shot,alt:alt,testID:testID}){let t=useTheme(),w=blocksMetrics(t).orderWeb,icon=t.metrics.thumbnail.sm.icon,[failed,setFailed]=react.useState(null),src=shot.src&&failed!==shot.src?shot.src:null,inset=w.sq.w*w.imgInset,blend=w.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null,band=w.sqRing;/* @__PURE__ */
47
+ return jsxRuntime.jsx(reactNative.View,{style:{margin:-band,padding:band,borderRadius:(w.sq.radius[0]??0)+band,backgroundColor:colorOf(t,w.card.bg)||void 0},children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:testID,accessible:!src&&!!alt,accessibilityRole:!src&&alt?"image":void 0,accessibilityLabel:src?void 0:alt,style:[rnBox(t,w.sq),{width:w.sq.w,height:w.sq.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!src&&shot.tint!==void 0?{backgroundColor:shot.tint}:null],children:src?/* @__PURE__ */jsxRuntime.jsx(reactNative.Image,{source:{uri:src},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(src),shot.onError?.(src)},resizeMode:w.imgFit,style:[{position:"absolute",top:inset,right:inset,bottom:inset,left:inset},blend]}):/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:shot.icon??UI_RN_ICON_BOX,size:shot.iconSize??icon.w,color:shot.iconColor??colorOf(t,icon.color)})})})}function gridRows(items,columns){let rows=[];for(let i=0;i<items.length;i+=columns){let row=items.slice(i,i+columns);for(;row.length<columns;)row.push(null);rows.push(row)}return rows}function OrderRow(props){let{title:title,meta:meta,metaLink:metaLink,notes:notes,total:total,status:status,shots:shots=[],actions:actions=[],onPress:onPress,accessibilityLabel:accessibilityLabel,error:error,loading:loading=false,loadingLabel:loadingLabel,actionGrid:actionGrid=false,variant:variant="standard",onShotMeasure:onShotMeasure,testID:testID,style:style}=props,t=useTheme(),m=blocksMetrics(t).order,q=blocksMetrics(t).orderQuiet,w=blocksMetrics(t).orderWeb,quiet=variant==="quiet",web=variant==="web",text=p=>rnText(t,textPartSpec(t,p));if(loading)/* @__PURE__ */
48
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[rnBox(t,web?w.card:m.card),style],children:/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:3,label:loadingLabel})});if(web){let[rt=0]=w.card.radius,lifted=onPress?{zIndex:1}:null;/* @__PURE__ */
49
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[{borderRadius:rt,backgroundColor:colorOf(t,w.card.bg)||void 0},rnShadow(w.lift),style],children:/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[rnBox(t,w.card),{flexDirection:"row",alignItems:w.card.center?"center":"flex-start"}],children:[onPress?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{onPress:onPress,accessibilityRole:"button",accessibilityLabel:accessibilityLabel,style:{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:rt}}):null,shots.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[{flexDirection:"row",width:w.shots.w},lifted],children:shots.map((s,i)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:i>0?{marginLeft:-w.sqOverlap}:null,children:/* @__PURE__ */jsxRuntime.jsx(Shot,{web:true,quiet:false,shot:s,pressable:onPress===void 0,testID:itemTestID(testID===void 0?void 0:`${testID}-shot`,s.key,s.testID),onMeasure:onShotMeasure})},s.key))}):null,
50
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{pointerEvents:"box-none",style:{flex:1,minWidth:0,rowGap:w.text.gap[1]},children:[
51
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:w.when.center?"center":"baseline",columnGap:w.when.gap[0],rowGap:w.when.gap[1]},children:[
52
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(w.title),children:title}),total?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(w.total),children:total}):null,status?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[rnBox(t,status.stopped?w.chipOff:w.chip),{flexDirection:"row",alignItems:"center",columnGap:w.chip.gap[0]}],children:[status.icon?/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:status.icon,size:w.chipIcon.w,color:colorOf(t,w.chipIcon.color)}):null,
53
+ /* @__PURE__ */jsxRuntime.jsx(Text,{numberOfLines:1,style:text(w.chipText),children:status.label})]}):null]}),meta?/* @__PURE__ */jsxRuntime.jsx(Text,{onPress:metaLink?.onPress,accessibilityRole:metaLink?.onPress?"link":void 0,testID:metaLink?.testID,style:text(w.meta),children:meta}):null,notes?.map((n,i)=>typeof n=="string"?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(w.note),children:n},i):/* @__PURE__ */jsxRuntime.jsx(Text,{onPress:n.onPress,accessibilityRole:n.onPress?"link":void 0,testID:n.testID,style:text(w.note),children:n.text},i)),error?/* @__PURE__ */jsxRuntime.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(w.note),{color:t.colors.alert}],children:error}):null]}),actions.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[{flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:w.acts.center?"center":void 0,columnGap:w.acts.gap[0],rowGap:w.acts.gap[1]},lifted],children:actions.map(a=>/* @__PURE__ */jsxRuntime.jsx(Action,{web:true,action:a,testID:itemTestID(testID,a.key,a.testID),quiet:false},a.key))}):null]})})}let totalEl=total?/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(quiet?q.total:m.total),{marginLeft:"auto"}],children:total}):null,chipText=text(q.chipText),top=quiet?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",columnGap:q.top.gap[0],rowGap:q.top.gap[1]},children:[
54
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexShrink:1,minWidth:0},children:[
55
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:q.when.center?"center":"baseline",columnGap:q.when.gap[0],rowGap:q.when.gap[1]},children:[
56
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(q.title),children:title}),status?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[rnBox(t,q.chip),{flexDirection:"row",alignItems:"center",columnGap:q.chip.gap[0]}],children:[status.icon?/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:status.icon,size:q.chipIcon.w,color:colorOf(t,q.chipIcon.color)}):null,
57
+ /* @__PURE__ */jsxRuntime.jsx(Text,{numberOfLines:1,style:chipText,children:status.label})]}):null]}),meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(q.meta),{marginTop:q.meta.marginTop}],children:meta}):null]}),totalEl]}):/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",columnGap:m.top.gap[0],rowGap:m.top.gap[1]},children:[
36
58
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexShrink:1,minWidth:0},children:[
37
- /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.title),children:title}),meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.meta),children:meta}):null]}),totalEl]}),shots.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",columnGap:m.shots.gap[0],rowGap:m.shots.gap[0],marginTop:m.shots.marginTop},children:shots.map(s=>/* @__PURE__ */jsxRuntime.jsx(Shot,{shot:s,pressable:onPress===void 0,testID:itemTestID(testID===void 0?void 0:`${testID}-shot`,s.key,s.testID),onMeasure:onShotMeasure},s.key))}):null]});/* @__PURE__ */
59
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.title),children:title}),meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.meta),children:meta}):null]}),totalEl]}),sh=quiet?q.shots:m.shots,body=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[top,shots.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",columnGap:sh.gap[0],rowGap:sh.gap[0],marginTop:sh.marginTop},children:shots.map(s=>/* @__PURE__ */jsxRuntime.jsx(Shot,{shot:s,pressable:onPress===void 0,testID:itemTestID(testID===void 0?void 0:`${testID}-shot`,s.key,s.testID),onMeasure:onShotMeasure,quiet:quiet},s.key))}):null]});/* @__PURE__ */
38
60
  return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,m.card),{columnGap:0},style],children:[
39
- /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flexDirection:"row",alignItems:m.card.center?"center":"flex-start",columnGap:m.card.gap[0]},children:onPress?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{onPress:onPress,accessibilityRole:"button",accessibilityLabel:accessibilityLabel,style:{flex:1,minWidth:0},children:body}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1,minWidth:0},children:body})}),error?/* @__PURE__ */jsxRuntime.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(m.meta),{marginTop:m.acts.marginTop,color:t.colors.alert}],children:error}):null,actions.length>0&&!actionGrid?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flexDirection:"row",columnGap:m.acts.gap[0],marginTop:m.acts.marginTop},children:actions.map(a=>/* @__PURE__ */jsxRuntime.jsx(Action,{action:a,testID:itemTestID(testID,a.key,a.testID)},a.key))}):null,actions.length>0&&actionGrid?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{rowGap:m.acts.gap[1],marginTop:m.acts.marginTop},children:gridRows(actions,m.actsColumns).map((row,r)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flexDirection:"row",columnGap:m.acts.gap[0]},children:row.map((a,c)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1,minWidth:0,flexDirection:"row"},children:a?/* @__PURE__ */jsxRuntime.jsx(Action,{action:a,testID:itemTestID(testID,a.key,a.testID)}):null},a?a.key:`gap-${c}`))},r))}):null]})}function PlanNeedCard(props){/* @__PURE__ */
40
- return jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(PlanNeedCardBody,{...props})})}function PlanNeedCardBody({kicker:kicker,source:source,title:title,signals:signals,score:score,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}){let t=useTheme(),m=blockMetrics.need,text=p=>rnText(t,textPartSpec(t,p)),card=[rnBox(t,m.card),{marginTop:0},style];if(loading)/* @__PURE__ */
61
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flexDirection:"row",alignItems:m.card.center?"center":"flex-start",columnGap:m.card.gap[0]},children:onPress?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{onPress:onPress,accessibilityRole:"button",accessibilityLabel:accessibilityLabel,style:{flex:1,minWidth:0},children:body}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1,minWidth:0},children:body})}),error?/* @__PURE__ */jsxRuntime.jsx(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[text(m.note),{marginTop:m.note.marginTop,color:t.colors.alert}],children:error}):null,actions.length>0&&quiet?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:q.acts.center?"center":void 0,columnGap:q.acts.gap[0],rowGap:q.acts.gap[1],marginTop:q.acts.marginTop},children:actions.map(a=>/* @__PURE__ */jsxRuntime.jsx(Action,{action:a,testID:itemTestID(testID,a.key,a.testID),quiet:true},a.key))}):null,actions.length>0&&!quiet&&!actionGrid?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flexDirection:"row",columnGap:m.acts.gap[0],marginTop:m.acts.marginTop},children:actions.map(a=>/* @__PURE__ */jsxRuntime.jsx(Action,{action:a,testID:itemTestID(testID,a.key,a.testID),quiet:false},a.key))}):null,actions.length>0&&!quiet&&actionGrid?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{rowGap:m.acts.gap[1],marginTop:m.acts.marginTop},children:gridRows(actions,m.actsColumns).map((row,r)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flexDirection:"row",columnGap:m.acts.gap[0]},children:row.map((a,c)=>/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1,minWidth:0,flexDirection:"row"},children:a?/* @__PURE__ */jsxRuntime.jsx(Action,{action:a,testID:itemTestID(testID,a.key,a.testID),quiet:false}):null},a?a.key:`gap-${c}`))},r))}):null]})}function rnSource(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function Photo({image:image,onImageError:onImageError,box:box,testID:testID}){let t=useTheme(),[failed,setFailed]=react.useState(null),source=rnSource(image),style=[rnBox(t,box),{width:box.w,height:box.h,overflow:"hidden"}];return!source||failed===image?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:style}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:style,children:/* @__PURE__ */jsxRuntime.jsx(FadeImage,{testID:testID,source:source,resizeMode:"cover",onError:()=>{image!=null&&(setFailed(image),onImageError?.(image))},style:{position:"absolute",top:0,right:0,bottom:0,left:0}},JSON.stringify(source))})}function Quote({quote:quote,m:m,testID:testID}){let t=useTheme(),text=p=>rnText(t,textPartSpec(t,p)),tag=quote.tag?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:testID===void 0?void 0:`${testID}-tag`,style:rnBox(t,m.saysTag),children:/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(m.saysTagText),{paddingTop:0,lineHeight:m.saysTag.h-(m.saysTag.padding?.[0]??0)-(m.saysTag.padding?.[2]??0)}],children:quote.tag})}):null;return rnSource(quote.image)===null?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,m.says),{flexDirection:"column",rowGap:m.saysBare.gap[1],marginTop:m.says.marginTop}],children:[quote.by||tag?/* @__PURE__ */jsxRuntime.jsxs(Text,{style:text(m.saysKicker),children:[quote.by,quote.by&&tag?" ":null,tag]}):null,
62
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.saysSerif),children:quote.text})]}):/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,m.says),{flexDirection:"row",alignItems:"flex-start",columnGap:m.says.gap[0],marginTop:m.says.marginTop}],children:[
63
+ /* @__PURE__ */jsxRuntime.jsx(Photo,{image:quote.image,onImageError:quote.onImageError,box:m.saysImg}),
64
+ /* @__PURE__ */jsxRuntime.jsxs(Text,{style:[text(m.saysText),{flex:1}],children:[quote.by?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.saysBy),children:quote.by}):null,quote.by?" ":null,quote.text,tag?" ":null,tag]})]})}function Jump({jump:jump,m:m,testID:testID}){let t=useTheme(),reduced=useRnReduced(t),text=p=>rnText(t,textPartSpec(t,p)),photo=rnSource(jump.image)!==null,strip=[rnBox(t,m.jump),{flexDirection:"row",alignItems:"center",columnGap:m.jump.gap[0],marginTop:m.jump.marginTop}],inner=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[photo?/* @__PURE__ */jsxRuntime.jsx(Photo,{image:jump.image,onImageError:jump.onImageError,box:m.jumpImg}):null,
65
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flex:1,minWidth:0},children:[
66
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.jumpKicker),children:jump.kicker}),
67
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.jumpTitle),children:jump.title})]}),
68
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.jumpGo),children:jump.go})]});return jump.onPress?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:testID,onPress:jump.onPress,accessibilityRole:"button",accessibilityLabel:jump.accessibilityLabel??`${jump.kicker}, ${jump.title}`,style:({pressed:pressed})=>[...strip,pressed&&!reduced?{transform:[{scale:m.jumpPressScale}]}:null],children:inner}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:testID,style:strip,children:inner})}function PlanNeedCard({kicker:kicker,source:source,sources:givenSources,title:title,signals:signals,score:score,more:more,quote:quote,jump:jump,variant:variant="standard",children:children,beforeJump:beforeJump,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}){let t=useTheme(),plan=variant==="plan",mp=blocksMetrics(t).needPlan,m=plan?mp:blocksMetrics(t).need,part=n=>testID===void 0?void 0:`${testID}-${n}`,sources=givenSources??(source?[{label:source}]:[]),text=p=>rnText(t,textPartSpec(t,p)),card=[rnBox(t,m.card),{marginTop:0},style];if(loading)/* @__PURE__ */
41
69
  return jsxRuntime.jsx(reactNative.View,{testID:testID,style:card,children:/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:3,label:loadingLabel})});let signalText=text(m.signalText);/* @__PURE__ */
42
70
  return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:card,children:[
43
- /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"center",columnGap:m.kicker.gap[0],minHeight:m.kicker.h},children:[
44
- /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.kickerText),children:kicker}),source?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[rnBox(t,m.source),{marginLeft:"auto",height:m.source.h,justifyContent:"center"}],children:/* @__PURE__ */jsxRuntime.jsx(Text,{numberOfLines:1,style:text(m.sourceText),children:source})}):null]}),title?/* @__PURE__ */jsxRuntime.jsx(Text,{accessibilityRole:"header",style:[text(m.title),{marginTop:m.title.marginTop}],children:title}):null,signals.map(s=>/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",columnGap:m.signal.gap[0],marginTop:m.signal.marginTop},children:[s.dot===false?null:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{height:signalText.lineHeight,justifyContent:"center",paddingTop:(signalText.fontSize??0)*.4-m.dot.h/2},children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:m.dot.w,height:m.dot.h,borderRadius:m.dot.w/2,backgroundColor:colorOf(t,m.dot.bg),transform:[{translateY:m.dot.dy}]}})}),
45
- /* @__PURE__ */jsxRuntime.jsxs(Text,{style:[signalText,{flex:1}],children:[s.lead?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.signalLead),children:s.lead}):null,s.lead?" ":null,s.text]})]},s.key)),score?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:testID===void 0?void 0:`${testID}-score`,style:[rnBox(t,m.score),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
46
- /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexShrink:1,minWidth:0},children:[
47
- /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.scoreLabel),children:score.label}),score.tag?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[rnBox(t,m.scoreTag),{alignSelf:"flex-start"}],children:/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.scoreTagText),children:score.tag})}):null]}),
71
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"center",columnGap:m.kicker.gap[0],minHeight:sources.length>0?m.kicker.h:void 0},children:[
72
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.kickerText),children:kicker}),sources.length>0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{marginLeft:"auto",flexDirection:"row",columnGap:mp.sources.gap[0],flexShrink:1},children:sources.map((s,i)=>{let dna=s.kind==="dna";/* @__PURE__ */
73
+ return jsxRuntime.jsx(reactNative.View,{testID:part(givenSources?`source-${i}`:"source"),style:[rnBox(t,m.source),dna?{backgroundColor:colorOf(t,mp.sourceDna.bg)}:null,{height:m.source.h,justifyContent:"center"}],children:/* @__PURE__ */jsxRuntime.jsx(Text,{numberOfLines:1,style:text(dna?mp.sourceDnaText:m.sourceText),children:s.label})},`${i}-${s.label}`)})}):null]}),title?/* @__PURE__ */jsxRuntime.jsx(Text,{accessibilityRole:"header",style:[text(m.title),{marginTop:m.title.marginTop}],children:title}):null,signals.map(s=>/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",columnGap:m.signal.gap[0],marginTop:m.signal.marginTop},children:[s.dot===false?null:s.dot==="space"?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:m.dot.w}}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{height:signalText.lineHeight,justifyContent:"center",paddingTop:(signalText.fontSize??0)*.4-m.dot.h/2},children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:m.dot.w,height:m.dot.h,borderRadius:m.dot.w/2,backgroundColor:colorOf(t,plan&&s.tone==="watch"?mp.dotWatch.bg:plan&&s.tone==="clear"?mp.dotClear.bg:m.dot.bg),transform:[{translateY:m.dot.dy}]}})}),
74
+ /* @__PURE__ */jsxRuntime.jsxs(Text,{style:[signalText,{flex:1}],children:[s.lead?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.signalLead),children:s.lead}):null,s.lead?" ":null,s.text]})]},s.key)),plan&&more?/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
75
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.Pressable,{testID:part("more"),onPress:more.onPress,accessibilityRole:"button",accessibilityState:{expanded:more.expanded},"aria-expanded":more.expanded,style:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",columnGap:mp.more.gap[0],minHeight:mp.more.minHeight,marginTop:mp.more.marginTop,marginBottom:mp.more.marginBottom,marginLeft:mp.moreInset},children:[
76
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(mp.moreText),children:more.label}),
77
+ /* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:UI_RN_ICON_CHEVRON,size:mp.moreIcon.w,color:colorOf(t,mp.moreText.color),style:{transform:[{rotate:`${more.expanded?mp.moreTurn.open:mp.moreTurn.closed}deg`}]}})]}),more.expanded?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:part("more-panel"),nativeID:more.panelId,style:[rnBox(t,mp.rep),{marginTop:mp.rep.marginTop}],children:more.content}):null]}):null,score?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:testID===void 0?void 0:`${testID}-score`,style:[rnBox(t,m.score),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
78
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flexShrink:1,minWidth:0,maxWidth:plan&&mp.scoreLabelMax?mp.scoreLabelMax:void 0},children:/* @__PURE__ */jsxRuntime.jsxs(Text,{style:text(m.scoreLabel),children:[score.label,score.tag?" ":null,score.tag?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:part("tag"),style:rnBox(t,m.scoreTag),children:/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.scoreTagText),children:score.tag})}):null]})}),
48
79
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{accessible:score.accessibilityLabel!==void 0,accessibilityLabel:score.accessibilityLabel,style:{flexShrink:0,alignItems:"flex-end"},children:[
49
- /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"center",columnGap:m.scoreNums.gap[0]},children:[score.was?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.scoreWas),children:score.was}):null,score.was?/* @__PURE__ */jsxRuntime.jsx(Icon,{name:"arrow-left",size:m.scoreArrow.w,color:colorOf(t,m.scoreArrow.color),style:{transform:[{rotate:"180deg"}]}}):null,
50
- /* @__PURE__ */jsxRuntime.jsxs(Text,{style:text(m.scoreNow),children:[score.now,score.of?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.scoreOf),children:score.of}):null]})]}),score.since?/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(m.scoreSince),{marginTop:m.scoreSince.marginTop}],children:score.since}):null]})]}):null]})}function PriceSummary(props){/* @__PURE__ */
51
- return jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(PriceSummaryBody,{...props})})}function PriceSummaryBody({rows:rows,total:total,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}){let t=useTheme();if(loading){let m=t.metrics.summary;/* @__PURE__ */
52
- return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[{padding:m.paddingX,borderRadius:m.radius,backgroundColor:t.colors.surface},style],children:/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:4,label:loadingLabel})})}let all=total?[...rows,{...total,key:total.key??"total"}]:rows;return all.length===0?null:/* @__PURE__ */jsxRuntime.jsx(SummaryList,{testID:testID,style:style,rows:all,total:total!==void 0})}var THUMBNAIL_SIZE={tile:"md",row:"xs",card:"lg"};function StepButton({icon:icon,label:label,onPress:onPress,disabled:disabled,color:color,testID:testID}){let c=blockMetrics.productCard;/* @__PURE__ */
53
- return jsxRuntime.jsx(reactNative.Pressable,{testID:testID,onPress:disabled?void 0:onPress,disabled:disabled,accessibilityRole:"button",accessibilityLabel:label,accessibilityState:disabled?{disabled:true}:void 0,hitSlop:slopFor(c.stepButton.w),style:{width:c.stepButton.w,height:c.stepButton.h,borderRadius:c.stepButton.radius[0],alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */jsxRuntime.jsx(Icon,{name:icon,size:c.stepIcon.w,color:color})})}function CardStepper({q:q,testID:testID}){let t=useTheme(),c=blockMetrics.productCard,min=q.min??0,max=q.max??Number.POSITIVE_INFINITY,part=n=>testID===void 0?void 0:`${testID}-${n}`,at={position:"absolute",right:c.stepAt.right,bottom:c.stepAt.bottom};if(q.value<=0){let fill=partFill(t,c.step.bg);/* @__PURE__ */
54
- return jsxRuntime.jsx(reactNative.View,{testID:testID,accessibilityLabel:q.label,style:[at,{borderRadius:c.stepButton.radius[0]},fill?{backgroundColor:fill}:null,rnShadow({...c.lift})],children:/* @__PURE__ */jsxRuntime.jsx(StepButton,{icon:"plus",label:q.moreLabel,onPress:()=>q.onChange(Math.min(max,q.value+1)),disabled:q.value>=max,color:colorOf(t,c.step.color),testID:part("more")})})}let ink=colorOf(t,c.stepIn.color);/* @__PURE__ */
80
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"center",columnGap:m.scoreNums.gap[0]},children:[score.was?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.scoreWas),children:score.was}):null,score.was?score.icon!==void 0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:part("arrow"),children:/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:score.icon,size:m.scoreArrow.w,color:colorOf(t,m.scoreArrow.color)})}):/* @__PURE__ */jsxRuntime.jsx(Glyph,{testID:part("arrow"),icon:UI_RN_ICON_ARROW_LEFT,size:m.scoreArrow.w,color:colorOf(t,m.scoreArrow.color),style:m.scoreArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,
81
+ /* @__PURE__ */jsxRuntime.jsxs(Text,{style:text(m.scoreNow),children:[score.now,score.of?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.scoreOf),children:score.of}):null]})]}),score.since?/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(m.scoreSince),{marginTop:m.scoreSince.marginTop}],children:score.since}):null]})]}):null,plan&&quote?/* @__PURE__ */jsxRuntime.jsx(Quote,{quote:quote,m:mp,testID:part("quote")}):null,plan?beforeJump:null,plan&&jump?/* @__PURE__ */jsxRuntime.jsx(Jump,{jump:jump,m:mp,testID:part("jump")}):null,children]})}function runsOf(note){return(typeof note=="string"?[note]:note).map(r=>typeof r=="string"?{text:r}:r)}function PriceSummary({rows:rows,total:total,note:note,...rest}){let t=useTheme();if(note===void 0||note.length===0||rest.loading)/* @__PURE__ */return jsxRuntime.jsx(SummaryList,{...rest,rows:rows,total:total??false});let{testID:testID,style:style,...list}=rest,m=blocksMetrics(t).price,own=(row,i)=>({...row,testID:itemTestID(testID,row.key??i,row.testID)}),strong=rnText(t,textPartSpec(t,m.noteStrong));/* @__PURE__ */
82
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:style,children:[
83
+ /* @__PURE__ */jsxRuntime.jsx(SummaryList,{...list,rows:rows.map((r,i)=>own(r,i)),total:total?own({...total,key:total.key??"total"},"total"):false}),
84
+ /* @__PURE__ */jsxRuntime.jsx(Text,{testID:testID===void 0?void 0:`${testID}-note`,style:[rnText(t,textPartSpec(t,m.note)),{marginTop:m.note.marginTop}],children:runsOf(note).map((r,i)=>r.strong?/* @__PURE__ */jsxRuntime.jsx(Text,{style:strong,children:r.text},i):r.text)})]})}var THUMBNAIL_SIZE={tile:"md",row:"xs",card:"lg"};function StepButton({icon:icon,label:label,onPress:onPress,disabled:disabled,color:color,testID:testID}){let t=useTheme(),c=blocksMetrics(t).productCard;/* @__PURE__ */
85
+ return jsxRuntime.jsx(reactNative.Pressable,{testID:testID,onPress:disabled?void 0:onPress,disabled:disabled,accessibilityRole:"button",accessibilityLabel:label,accessibilityState:disabled?{disabled:true}:void 0,hitSlop:slopFor(c.stepButton.w),style:{width:c.stepButton.w,height:c.stepButton.h,borderRadius:c.stepButton.radius[0],alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:icon==="minus"?UI_RN_ICON_MINUS:UI_RN_ICON_PLUS,size:c.stepIcon.w,color:color})})}function CardStepper({q:q,blend:blend,lift:lift,testID:testID}){let t=useTheme(),c=blocksMetrics(t).productCard,min=q.min??0,max=q.max??Number.POSITIVE_INFINITY,part=n=>testID===void 0?void 0:`${testID}-${n}`,at={position:"absolute",right:c.stepAt.right,bottom:c.stepAt.bottom};if(q.value<=0){let fill=partFill(t,c.step.bg);/* @__PURE__ */
86
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,accessibilityLabel:q.label,style:[at,{borderRadius:c.stepButton.radius[0]},fill?{backgroundColor:fill}:null,lift?rnShadow({...blend?blocksMetrics(t).productBlend.lift:c.lift}):null],children:/* @__PURE__ */jsxRuntime.jsx(StepButton,{icon:"plus",label:q.moreLabel,onPress:()=>stepTo(q,Math.min(max,q.value+1)),disabled:q.value>=max,color:colorOf(t,c.step.color),testID:part("more")})})}let ink=colorOf(t,c.stepIn.color);/* @__PURE__ */
55
87
  return jsxRuntime.jsxs(reactNative.View,{testID:testID,accessibilityLabel:q.label,style:[at,rnBox(t,c.stepIn),{flexDirection:"row",alignItems:"center",width:c.stepIn.w,height:c.stepIn.h}],children:[
56
- /* @__PURE__ */jsxRuntime.jsx(StepButton,{icon:"minus",label:q.fewerLabel,onPress:()=>q.onChange(Math.max(min,q.value-1)),disabled:q.value<=min,color:ink,testID:part("fewer")}),
88
+ /* @__PURE__ */jsxRuntime.jsx(StepButton,{icon:"minus",label:q.fewerLabel,onPress:()=>stepTo(q,Math.max(min,q.value-1)),disabled:q.value<=min,color:ink,testID:part("fewer")}),
57
89
  /* @__PURE__ */jsxRuntime.jsx(Text,{testID:part("count"),accessibilityLiveRegion:"polite",style:[rnText(t,textPartSpec(t,c.count)),{flex:1,textAlign:"center"}],children:q.value}),
58
- /* @__PURE__ */jsxRuntime.jsx(StepButton,{icon:"plus",label:q.moreLabel,onPress:()=>q.onChange(Math.min(max,q.value+1)),disabled:q.value>=max,color:ink,testID:part("more")})]})}function ProductTile(props){/* @__PURE__ */
59
- return jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(ProductTileBody,{...props})})}function ProductTileBody(props){let{name:name,image:image,imageAlt:imageAlt,kicker:kicker,meta:meta,price:price,wasPrice:wasPrice,metaTone:metaTone,tag:tag,stepper:stepper,fallback:fallback,action:action,onPress:onPress,layout:layout="tile",loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),text=p=>rnText(t,textPartSpec(t,p)),m=blockMetrics.product,r=blockMetrics.productRow,shot=t.metrics.thumbnail[THUMBNAIL_SIZE[layout]],part=n=>testID===void 0?void 0:`${testID}-${n}`;if(layout==="card"){let c=blockMetrics.productCard,photo=loading?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:"100%",aspectRatio:1,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage}}):/* @__PURE__ */jsxRuntime.jsx(Thumbnail,{size:"lg",src:image,alt:imageAlt,icon:fallback?.icon,tint:fallback?.tint,iconColor:fallback?.iconColor,testID:part("image")}),content=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
60
- /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{marginBottom:shot.frame.marginBottom},children:[photo,!loading&&tag?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:part("tag"),style:[rnBox(t,c.tag),{position:"absolute",left:c.tag.x,top:c.tag.y,height:c.tag.h,flexDirection:"row",alignItems:"center"}],children:[tag.icon?/* @__PURE__ */jsxRuntime.jsx(Icon,{name:tag.icon,size:c.tagIcon.w,color:tag.color??colorOf(t,c.tagIcon.color)}):null,
61
- /* @__PURE__ */jsxRuntime.jsx(Text,{numberOfLines:1,style:text(c.tagText),children:tag.label})]}):null]}),loading?/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:3,label:loadingLabel}):/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{rowGap:c.card.gap[1],marginTop:c.card.gap[1]},children:[price||wasPrice?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"baseline",columnGap:c.price.gap[0]},children:[price?/* @__PURE__ */jsxRuntime.jsx(Text,{testID:part("price"),style:text(c.priceText),children:price}):null,wasPrice?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(c.was),children:wasPrice}):null]}):null,
62
- /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(c.name),children:name}),meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(metaTone==="auto"?c.metaAuto:c.meta),children:meta}):null]})]});/* @__PURE__ */
63
- return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,c.card),{rowGap:0},style],children:[onPress&&!loading?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:part("open"),onPress:onPress,accessibilityRole:"link",accessibilityLabel:name,children:content}):content,!loading&&stepper?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:/* @__PURE__ */jsxRuntime.jsx(CardStepper,{q:stepper,testID:part("stepper")})}):null]})}let nameText=/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(layout==="row"?r.name:m.name),children:name}),nameEl=onPress?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{onPress:onPress,accessibilityRole:"link",accessibilityLabel:name,children:nameText}):nameText,buy=price||action?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",columnGap:m.buy.gap[0],marginTop:layout==="row"?0:m.buy.marginTop},children:[price?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.price),children:price}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{}),action?/* @__PURE__ */jsxRuntime.jsx(Button,{tone:"outline",size:"row",label:action.label,onPress:action.onPress,loading:action.busy,disabled:action.disabled}):null]}):null;return layout==="row"?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,r.card),{flexDirection:"row",alignItems:r.card.center?"center":"flex-start"},style],children:[loading?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:shot.frame.w,height:shot.frame.h,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage}}):/* @__PURE__ */jsxRuntime.jsx(Thumbnail,{size:"xs",src:image,alt:imageAlt,icon:fallback?.icon,tint:fallback?.tint,iconColor:fallback?.iconColor}),
64
- /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1,minWidth:0},children:loading?/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:2,label:loadingLabel}):/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[nameEl,meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(r.meta),{marginTop:r.meta.marginTop}],children:meta}):null]})}),loading?null:buy]}):/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,m.card),style],children:[loading?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:"100%",aspectRatio:1,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage,marginBottom:shot.frame.marginBottom}}):/* @__PURE__ */jsxRuntime.jsx(Thumbnail,{size:"md",src:image,alt:imageAlt,icon:fallback?.icon,tint:fallback?.tint,iconColor:fallback?.iconColor,style:{marginBottom:shot.frame.marginBottom}}),loading?/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:3,label:loadingLabel}):/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[kicker?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.kicker),children:kicker}):null,nameEl,meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.meta),children:meta}):null,buy]})]})}function rnSource(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function TipCard(props){/* @__PURE__ */
65
- return jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(TipCardBody,{...props})})}function TipCardBody(props){let{number:number,title:title,text:line,foot:foot,footArrow:footArrow=false,footPress:footPress,tone:tone="y",image:image,onPress:onPress,pressTarget:pressTarget="title",accessibilityLabel:accessibilityLabel,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),reduced=useRnReduced(t),m=blockMetrics.tip,text=p=>rnText(t,textPartSpec(t,p)),card=[rnBox(t,m.card),{backgroundColor:colorOf(t,m.tones[tone])},style];if(loading)/* @__PURE__ */
66
- return jsxRuntime.jsx(reactNative.View,{testID:testID,style:card,children:/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:3,label:loadingLabel})});let n=/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[rnBox(t,m.n),{position:"absolute",left:m.n.x,top:m.n.y,width:m.n.w,height:m.n.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.nText),children:number})}),titleText=/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.title),children:title}),cover=onPress!==void 0&&pressTarget==="card",part=n2=>testID===void 0?void 0:`${testID}-${n2}`,source=rnSource(image),footStyle=text(m.footText),arrow=footArrow||footPress?/* @__PURE__ */jsxRuntime.jsx(Icon,{name:"arrow-left",size:m.footArrow.w,color:typeof footStyle.color=="string"?footStyle.color:void 0,style:{transform:[{rotate:"180deg"}]}}):null,footText=/* @__PURE__ */jsxRuntime.jsx(Text,{style:footStyle,children:foot}),footRow={flexDirection:"row",alignItems:"center",columnGap:m.foot.gap[0]},footEl=foot?footPress?/* @__PURE__ */jsxRuntime.jsxs(reactNative.Pressable,{testID:footPress.testID??part("foot"),onPress:footPress.onPress,accessibilityRole:"link",accessibilityLabel:footPress.accessibilityLabel??foot,hitSlop:slopFor(footStyle.lineHeight??m.footArrow.w),style:[footRow,{marginTop:"auto",paddingTop:m.foot.padding[0],alignSelf:"flex-start"}],children:[footText,arrow]}):arrow?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[footRow,{marginTop:"auto",paddingTop:m.foot.padding[0]}],children:[footText,arrow]}):/* @__PURE__ */jsxRuntime.jsx(Text,{style:[footStyle,{marginTop:"auto",paddingTop:m.foot.padding[0]}],children:foot}):null,body=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
67
- /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[rnBox(t,m.img),{width:"100%",aspectRatio:m.img.w/m.img.h,overflow:"hidden"}],children:[source?/* @__PURE__ */jsxRuntime.jsx(reactNative.Image,{testID:part("image"),source:source,resizeMode:"cover",style:{position:"absolute",top:0,right:0,bottom:0,left:0}}):null,n]}),
68
- /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{marginTop:m.title.marginTop},children:onPress&&!cover?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{onPress:onPress,accessibilityRole:"button",accessibilityLabel:title,children:titleText}):titleText}),line?/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(m.text),{marginTop:m.text.marginTop}],children:line}):null,footEl]});return cover?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:testID,onPress:onPress,accessibilityRole:"button",accessibilityLabel:accessibilityLabel??title,style:({pressed:pressed})=>[...card,pressed&&!reduced?{transform:[{scale:m.pressScale}]}:null],children:body}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:testID,style:card,children:body})}exports.CartLine=CartLine;exports.OrderRow=OrderRow;exports.PlanNeedCard=PlanNeedCard;exports.PriceSummary=PriceSummary;exports.ProductTile=ProductTile;exports.TipCard=TipCard;
90
+ /* @__PURE__ */jsxRuntime.jsx(StepButton,{icon:"plus",label:q.moreLabel,onPress:()=>stepTo(q,Math.min(max,q.value+1)),disabled:q.value>=max,color:ink,testID:part("more")})]})}function CardPill({action:action,blend:blend,testID:testID}){let t=useTheme(),c=blocksMetrics(t).productCard,bl=blocksMetrics(t).productBlend,reduced=useRnReduced(t),kind=action.kind??"refill",[box,words,settle]=kind==="manage"?[c.pillSoft,c.pillSoftText,c.pillPressScale]:kind==="inCart"?blend?[bl.pillOn,bl.pillOnText,bl.pillPressScale]:[c.pillOn,c.pillOnText,c.pillPressScale]:blend?[bl.pill,bl.pillText,bl.pillPressScale]:[c.pill,c.pillText,c.pillPressScale],label=rnText(t,textPartSpec(t,words)),ring=rnRing(t,box),off=action.disabled===true||action.busy===true;/* @__PURE__ */
91
+ return jsxRuntime.jsxs(reactNative.Pressable,{testID:testID,onPress:off?void 0:action.onPress,disabled:off,accessibilityRole:kind==="refill"?"button":"link",accessibilityLabel:action.label,accessibilityState:{disabled:off,busy:action.busy===true},hitSlop:slopFor(box.minHeight),style:({pressed:pressed})=>[{position:"absolute",right:c.pillAt.right,bottom:c.pillAt.bottom,flexDirection:"row",alignItems:"center"},rnBox(t,box),off?{opacity:DISABLED_OPACITY}:null,pressed&&!reduced&&!off?{transform:[{scale:settle}]}:null],children:[action.icon?/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:action.icon,size:c.pillIcon.w,color:typeof label.color=="string"?label.color:void 0}):null,
92
+ /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",numberOfLines:1,style:label,children:action.label}),ring?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ring}):null]})}function BlendPhoto({src:src,alt:alt,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),bl=blocksMetrics(t).productBlend,frame=t.metrics.thumbnail.lg.frame,[failed,setFailed]=react.useState(null),photo=src&&failed!==src?src:null;if(!photo)/* @__PURE__ */return jsxRuntime.jsx(BlockThumbnail,{size:"lg",src:null,alt:alt,icon:fallback?.icon,iconSize:fallback?.iconSize,tint:fallback?.tint,iconColor:fallback?.iconColor,testID:testID});let[pt=0,pr=0,pb=0,pl=0]=bl.img.padding.map((v,i)=>v+(frame.padding[i]??0)),blendStyle=bl.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
93
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[rnBox(t,frame),{width:"100%",aspectRatio:1,overflow:"hidden"}],children:/* @__PURE__ */jsxRuntime.jsx(reactNative.Image,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:t.metrics.thumbnail.lg.img.fit==="contain"?"contain":"cover",style:[{position:"absolute",top:pt,right:pr,bottom:pb,left:pl},blendStyle]})})}function webInsetOf(w,tagged,even,white){return even?w.imgInsetEven:tagged?w.imgInsetTag:white?w.imgInsetWhite:w.imgInset}function webInset(t,tagged,side,even=false,white=false){let w=blocksMetrics(t).productWeb,i=webInsetOf(w,tagged,even,white);return i.share.map((sh,k2)=>sh*side+(i.px[k2]??0))}function WebStepButton({icon:icon,size:size,label:label,onPress:onPress,disabled:disabled,color:color,settle:settle,testID:testID}){let t=useTheme(),w=blocksMetrics(t).productWeb,reduced=useRnReduced(t);/* @__PURE__ */
94
+ return jsxRuntime.jsx(reactNative.Pressable,{testID:testID,onPress:disabled?void 0:onPress,disabled:disabled,accessibilityRole:"button",accessibilityLabel:label,accessibilityState:disabled?{disabled:true}:void 0,hitSlop:slopFor(w.stepButton.w),style:({pressed:pressed})=>[{width:w.stepButton.w,height:w.stepButton.h,borderRadius:w.stepButton.radius[0],alignItems:"center",justifyContent:"center"},pressed&&!reduced&&!disabled?{transform:[{scale:settle}]}:null],children:/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:icon==="minus"?UI_RN_ICON_MINUS:UI_RN_ICON_PLUS,size:size,color:color})})}function WebStepper({q:q,lift:lift,testID:testID}){let t=useTheme(),w=blocksMetrics(t).productWeb,min=q.min??0,max=q.max??Number.POSITIVE_INFINITY,part=n=>testID===void 0?void 0:`${testID}-${n}`;if(q.value<=0)/* @__PURE__ */
95
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,accessibilityLabel:q.label,style:rnBox(t,lift?w.add:{...w.add,shadow:{...w.add.shadow,x:0,y:0,blur:0}}),children:/* @__PURE__ */jsxRuntime.jsx(WebStepButton,{icon:"plus",size:w.addIcon.w,label:q.moreLabel,onPress:()=>stepTo(q,Math.min(max,q.value+1)),disabled:q.value>=max,color:colorOf(t,w.add.color),settle:w.addPressScale,testID:part("more")})});let ink=colorOf(t,w.step.color);/* @__PURE__ */
96
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,accessibilityLabel:q.label,style:[rnBox(t,w.step),{flexDirection:"row",alignItems:"center",height:w.step.h}],children:[
97
+ /* @__PURE__ */jsxRuntime.jsx(WebStepButton,{icon:"minus",size:w.stepIcon.w,label:q.fewerLabel,onPress:()=>stepTo(q,Math.max(min,q.value-1)),disabled:q.value<=min,color:ink,settle:w.stepPressScale,testID:part("fewer")}),
98
+ /* @__PURE__ */jsxRuntime.jsx(Text,{testID:part("count"),accessibilityLiveRegion:"polite",style:[rnText(t,textPartSpec(t,w.count)),{minWidth:w.step.w-2*w.stepButton.w,textAlign:"center"}],children:q.value}),
99
+ /* @__PURE__ */jsxRuntime.jsx(WebStepButton,{icon:"plus",size:w.stepIcon.w,label:q.moreLabel,onPress:()=>stepTo(q,Math.min(max,q.value+1)),disabled:q.value>=max,color:ink,settle:w.stepPressScale,testID:part("more")})]})}function WebPill({action:action,testID:testID}){let t=useTheme(),w=blocksMetrics(t).productWeb,reduced=useRnReduced(t),kind=action.kind??"refill",[box,words]=kind==="manage"?[w.pillSoft,w.pillSoftText]:kind==="inCart"?[w.pillOn,w.pillOnText]:[w.pill,w.pillText],label=rnText(t,textPartSpec(t,words)),ring=rnRing(t,box),off=action.disabled===true||action.busy===true;/* @__PURE__ */
100
+ return jsxRuntime.jsxs(reactNative.Pressable,{testID:testID,onPress:off?void 0:action.onPress,disabled:off,accessibilityRole:kind==="refill"?"button":"link",accessibilityLabel:action.label,accessibilityState:{disabled:off,busy:action.busy===true},hitSlop:slopFor(box.minHeight),style:({pressed:pressed})=>[{flexDirection:"row",alignItems:"center",justifyContent:"center"},rnBox(t,box),off?{opacity:DISABLED_OPACITY}:null,pressed&&!reduced&&!off?{transform:[{scale:w.pillPressScale}]}:null],children:[action.icon?/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:action.icon,size:w.pillIcon.w,color:typeof label.color=="string"?label.color:void 0}):null,
101
+ /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"control",numberOfLines:1,style:label,children:action.label}),ring?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ring}):null]})}function WebPhoto({src:src,alt:alt,tagged:tagged,even:even,white:white,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),w=blocksMetrics(t).productWeb,[failed,setFailed]=react.useState(null),photo=src&&failed!==src?src:null,i=webInsetOf(w,tagged,even,white),pct=k2=>`${Math.round((i.share[k2]??0)*1e5)/1e3}%`,blendStyle=w.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
102
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:[rnBox(t,w.square),{width:"100%",aspectRatio:1,overflow:"hidden"},white?{backgroundColor:colorOf(t,w.groundWhite)}:null,!photo&&fallback?.tint?{backgroundColor:fallback.tint}:null],children:photo?/* @__PURE__ */jsxRuntime.jsx(reactNative.Image,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:w.imgFit,style:[{position:"absolute",top:pct(0),right:pct(1),bottom:pct(2),left:pct(3),marginTop:i.px[0]??0,marginRight:i.px[1]??0,marginBottom:i.px[2]??0,marginLeft:i.px[3]??0},blendStyle]}):fallback?.icon?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:fallback.icon,size:fallback.iconSize??w.addIcon.w,color:fallback.iconColor})}):null})}function WebCard({props:props,media:media}){let{name:name,image:image,imageAlt:imageAlt,meta:meta,price:price,wasPrice:wasPrice,per:per,badge:badge,tag:tag,stepper:stepper,addLift:addLift=true,fallback:fallback,onImageError:onImageError,action:action,onPress:onPress,loading:loading=false,loadingLabel:loadingLabel,ground:ground="shelf",imageInset:imageInset="standard",testID:testID,style:style}=props,t=useTheme(),w=blocksMetrics(t).productWeb,text=p=>rnText(t,textPartSpec(t,p)),part=n=>testID===void 0?void 0:`${testID}-${n}`,tagInk=tag?.color??colorOf(t,w.tagIcon.color),ring=rnRing(t,w.badge),content=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
103
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{ref:media,collapsable:false,style:{marginBottom:w.square.marginBottom},children:[loading?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:"100%",aspectRatio:1,borderRadius:w.square.radius[0],backgroundColor:t.colors.tintSage}}):/* @__PURE__ */jsxRuntime.jsx(WebPhoto,{src:image,alt:imageAlt,tagged:tag!==void 0,even:imageInset==="even",white:ground==="white",fallback:fallback,onError:onImageError,testID:part("image")}),!loading&&tag?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:part("tag"),style:[rnBox(t,w.tag),{position:"absolute",left:w.tag.x,top:w.tag.y,maxWidth:"100%",flexDirection:"row",alignItems:"center",backgroundColor:mixColor(tagInk,w.tagMix,t.colors.surface,colorOf(t,w.tag.bg))}],children:[tag.icon?/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:tag.icon,size:w.tagIcon.w,color:tagInk}):null,
104
+ /* @__PURE__ */jsxRuntime.jsx(Text,{numberOfLines:1,style:text(w.tagText),children:tag.label})]}):null]}),loading?/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:3,label:loadingLabel}):/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{rowGap:w.card.gap[1],marginTop:w.card.gap[1]},children:[
105
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(w.name),children:name}),price||wasPrice||per||badge?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:w.price.gap[0],rowGap:w.price.gap[1]},children:[price?/* @__PURE__ */jsxRuntime.jsx(Text,{testID:part("price"),style:text(w.priceText),children:price}):null,wasPrice?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(w.was),children:wasPrice}):null,per?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(w.per),children:per}):null,badge?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:part("badge"),style:[rnBox(t,w.badge),{alignSelf:"center",height:w.badge.h,flexDirection:"row",alignItems:"center"}],children:[
106
+ /* @__PURE__ */jsxRuntime.jsx(Text,{numberOfLines:1,style:text(w.badgeText),children:badge}),ring?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"none",style:ring}):null]}):null]}):null,meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(w.meta),children:meta}):null]})]});/* @__PURE__ */
107
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[{rowGap:0},style],children:[onPress&&!loading?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:part("open"),onPress:onPress,accessibilityRole:"link",accessibilityLabel:name,children:content}):content,!loading&&(stepper||action)?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{position:"absolute",right:w.actAt.right,bottom:w.actAt.bottom,flexDirection:"row"},children:stepper?/* @__PURE__ */jsxRuntime.jsx(WebStepper,{q:stepper,lift:addLift,testID:part("stepper")}):action?/* @__PURE__ */jsxRuntime.jsx(WebPill,{action:action,testID:part("action")}):null})}):null]})}function ProductTile(props){let{name:name,image:image,imageAlt:imageAlt,kicker:kicker,meta:meta,price:price,wasPrice:wasPrice,per:per,metaTone:metaTone,tag:tag,stepper:stepper,addLift:addLift=true,fallback:fallback,onImageError:onImageError,action:action,onPress:onPress,layout:layout="tile",variant:variant="standard",onImageMeasure:onImageMeasure,imageInset:imageInset,ground:ground,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),blend=variant==="blend",web=variant==="web",tagged=tag!==void 0,media=react.useRef(null),frameInset=t.metrics.thumbnail.lg.frame.padding,imgInset=blend?blocksMetrics(t).productBlend.img.padding:t.metrics.thumbnail.lg.img.padding,measure=react.useCallback(()=>new Promise(resolve=>{let v=media.current;if(!v||typeof v.measureInWindow!="function"){resolve(null);return}v.measureInWindow((x,y,width,height)=>{let[pt=0,pr=0,pb=0,pl=0]=web?webInset(t,tagged,width,imageInset==="even",ground==="white"):imgInset.map((n,i)=>n+(frameInset[i]??0));resolve(width>0||height>0?{x:x+pl,y:y+pt,width:Math.max(0,width-pl-pr),height:Math.max(0,height-pt-pb)}:null)})}),[imgInset,frameInset,web,t,tagged,imageInset,ground]),measured=layout==="card"&&!loading&&onImageMeasure!==void 0;react.useEffect(()=>{if(!(!measured||!onImageMeasure))return onImageMeasure(measure),()=>onImageMeasure(null)},[measured,onImageMeasure,measure]);let text=p=>rnText(t,textPartSpec(t,p)),m=blocksMetrics(t).product,r=blocksMetrics(t).productRow,shot=t.metrics.thumbnail[THUMBNAIL_SIZE[layout]],part=n=>testID===void 0?void 0:`${testID}-${n}`;if(layout==="card"&&web)/* @__PURE__ */return jsxRuntime.jsx(WebCard,{props:props,media:media});if(layout==="card"){let c=blocksMetrics(t).productCard,photo=loading?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:"100%",aspectRatio:1,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage}}):blend?/* @__PURE__ */jsxRuntime.jsx(BlendPhoto,{src:image,alt:imageAlt,fallback:fallback,onError:onImageError,testID:part("image")}):/* @__PURE__ */jsxRuntime.jsx(BlockThumbnail,{size:"lg",src:image,alt:imageAlt,icon:fallback?.icon,iconSize:fallback?.iconSize,tint:fallback?.tint,iconColor:fallback?.iconColor,onError:onImageError,testID:part("image")}),content=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
108
+ /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{ref:media,collapsable:false,style:{marginBottom:shot.frame.marginBottom},children:[photo,!loading&&tag?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:part("tag"),style:[rnBox(t,c.tag),{position:"absolute",left:c.tag.x,top:c.tag.y,height:c.tag.h,flexDirection:"row",alignItems:"center"}],children:[tag.icon?/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:tag.icon,size:c.tagIcon.w,color:tag.color??colorOf(t,c.tagIcon.color)}):null,
109
+ /* @__PURE__ */jsxRuntime.jsx(Text,{numberOfLines:1,style:text(c.tagText),children:tag.label})]}):null]}),loading?/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:3,label:loadingLabel}):/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{rowGap:c.card.gap[1],marginTop:c.card.gap[1]},children:[price||wasPrice||per?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"baseline",columnGap:c.price.gap[0]},children:[price?/* @__PURE__ */jsxRuntime.jsx(Text,{testID:part("price"),style:text(c.priceText),children:price}):null,wasPrice?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(c.was),children:wasPrice}):null,per?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(c.per),children:per}):null]}):null,
110
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(c.name),children:name}),meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(metaTone==="auto"?c.metaAuto:metaTone==="autoDark"?c.metaAutoDark:c.meta),children:meta}):null]})]});/* @__PURE__ */
111
+ return jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,c.card),{rowGap:0},style],children:[onPress&&!loading?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:part("open"),onPress:onPress,accessibilityRole:"link",accessibilityLabel:name,children:content}):content,!loading&&(stepper||action)?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:stepper?/* @__PURE__ */jsxRuntime.jsx(CardStepper,{q:stepper,blend:blend,lift:addLift,testID:part("stepper")}):action?/* @__PURE__ */jsxRuntime.jsx(CardPill,{action:action,blend:blend,testID:part("action")}):null}):null]})}let nameText=/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(layout==="row"?r.name:m.name),children:name}),nameEl=onPress?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{onPress:onPress,accessibilityRole:"link",accessibilityLabel:name,children:nameText}):nameText,buy=price||action?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",columnGap:m.buy.gap[0],marginTop:layout==="row"?0:m.buy.marginTop},children:[price?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.price),children:price}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{}),action?/* @__PURE__ */jsxRuntime.jsx(Button,{tone:"outline",size:"row",label:action.label,onPress:action.onPress,loading:action.busy,disabled:action.disabled}):null]}):null;return layout==="row"?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,r.card),{flexDirection:"row",alignItems:r.card.center?"center":"flex-start"},style],children:[loading?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:shot.frame.w,height:shot.frame.h,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage}}):/* @__PURE__ */jsxRuntime.jsx(BlockThumbnail,{size:"xs",src:image,alt:imageAlt,icon:fallback?.icon,iconSize:fallback?.iconSize,tint:fallback?.tint,iconColor:fallback?.iconColor,onError:onImageError}),
112
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{flex:1,minWidth:0},children:loading?/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:2,label:loadingLabel}):/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[nameEl,meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(r.meta),{marginTop:r.meta.marginTop}],children:meta}):null]})}),loading?null:buy]}):/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[rnBox(t,m.card),style],children:[loading?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:{width:"100%",aspectRatio:1,borderRadius:shot.frame.radius[0],backgroundColor:t.colors.tintSage,marginBottom:shot.frame.marginBottom}}):/* @__PURE__ */jsxRuntime.jsx(BlockThumbnail,{size:"md",src:image,alt:imageAlt,icon:fallback?.icon,iconSize:fallback?.iconSize,tint:fallback?.tint,iconColor:fallback?.iconColor,onError:onImageError,style:{marginBottom:shot.frame.marginBottom}}),loading?/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:3,label:loadingLabel}):/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[kicker?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.kicker),children:kicker}):null,nameEl,meta?/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(m.meta),children:meta}):null,buy]})]})}function rnSource2(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function TipCard(props){let{number:number,title:title,text:line,foot:foot,footArrow:footArrow=false,footPress:footPress,tone:tone="y",image:image,onImageError:onImageError,icon:icon=UI_RN_ICON_LEAF,onPress:onPress,pressTarget:pressTarget="title",accessibilityLabel:accessibilityLabel,variant:variant="standard",loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),reduced=useRnReduced(t),m=blocksMetrics(t).tip,ph=blocksMetrics(t).tipPhoto,w=blocksMetrics(t).tipWeb,pl=blocksMetrics(t).tipPlan,web=variant==="web",photo=variant==="photo",plan=variant==="plan",[down,setDown]=react.useState(false),[failed,setFailed]=react.useState(null),text=p=>rnText(t,textPartSpec(t,p)),kit=photo?{...m,card:ph.card,tones:ph.tones,img:ph.img,n:ph.n,nText:ph.nText,title:ph.title,pressScale:ph.pressScale,bare:ph.bare,thumb:ph.thumb,thumbIcon:ph.thumbIcon}:plan?{...m,card:pl.card,tones:pl.tones,title:pl.title,text:pl.text,footText:pl.footText,foot:pl.foot,pressScale:1}:m,card=web?[rnBox(t,w.card),style]:[rnBox(t,kit.card),{backgroundColor:colorOf(t,kit.tones[tone])},style],aspect=web?w.imgAspect:photo?ph.imgAspect:m.img.w/m.img.h,press=web?1:kit.pressScale;if(loading)/* @__PURE__ */
113
+ return jsxRuntime.jsx(reactNative.View,{testID:testID,style:card,children:/* @__PURE__ */jsxRuntime.jsx(Skeleton,{lines:3,label:loadingLabel})});let kn=kit.n,n=web?null:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[rnBox(t,kn),{position:"absolute",left:kn.x,top:kn.y,width:kn.w,height:kn.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(kit.nText),children:number})}),titleText=/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(web?w.title:kit.title),children:title}),cover=onPress!==void 0&&(web||pressTarget==="card"),part=n2=>testID===void 0?void 0:`${testID}-${n2}`,given=plan?null:rnSource2(image),source=given&&failed!==image?given:null,footStyle=text(kit.footText),arrow=footArrow||footPress?/* @__PURE__ */jsxRuntime.jsx(Glyph,{icon:UI_RN_ICON_ARROW_LEFT,size:m.footArrow.w,color:typeof footStyle.color=="string"?footStyle.color:void 0,style:m.footArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,footText=/* @__PURE__ */jsxRuntime.jsx(Text,{style:footStyle,children:foot}),footRow={flexDirection:"row",alignItems:"center",columnGap:m.foot.gap[0]},footEl=foot&&!web&&!photo?footPress?/* @__PURE__ */jsxRuntime.jsxs(reactNative.Pressable,{testID:footPress.testID??part("foot"),onPress:footPress.onPress,accessibilityRole:"link",accessibilityLabel:footPress.accessibilityLabel??foot,hitSlop:slopFor(footStyle.lineHeight??m.footArrow.w),style:[footRow,{marginTop:"auto",paddingTop:kit.foot.padding[0],alignSelf:"flex-start",zIndex:1}],children:[footText,arrow]}):arrow?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[footRow,{marginTop:"auto",paddingTop:kit.foot.padding[0]}],children:[footText,arrow]}):/* @__PURE__ */jsxRuntime.jsx(Text,{style:[footStyle,{marginTop:"auto",paddingTop:kit.foot.padding[0]}],children:foot}):null,failOn=()=>{image!=null&&(setFailed(image),onImageError?.(image))},thumbIcon=spec=>/* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:icon,size:spec.w,color:colorOf(t,spec.color)}),top=plan?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",minHeight:pl.top.h},children:[
114
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:text(pl.nText),children:number}),
115
+ /* @__PURE__ */jsxRuntime.jsx(BlockIcon,{icon:icon,size:pl.icon.w,color:colorOf(t,pl.icon.color)})]}):!web&&!source?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:part("thumb"),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[rnBox(t,kit.bare),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
116
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[rnBox(t,kn),{width:kn.w,height:kn.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */jsxRuntime.jsx(Text,{style:text(kit.nText),children:number})}),
117
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[rnBox(t,kit.thumb),{width:kit.thumb.w,height:kit.thumb.h,alignItems:"center",justifyContent:"center"}],children:thumbIcon(kit.thumbIcon)})]}):/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[rnBox(t,web?w.img:kit.img),{width:"100%",aspectRatio:aspect,overflow:"hidden"}],children:[source?/* @__PURE__ */jsxRuntime.jsx(FadeImage,{testID:part("image"),source:source,resizeMode:"cover",onError:failOn,style:{position:"absolute",top:0,right:0,bottom:0,left:0}},typeof image=="string"?image:JSON.stringify(image)):null,n]}),body=/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[top,
118
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:web?null:{marginTop:kit.title.marginTop,marginHorizontal:photo?ph.titleInset:0},children:onPress&&!cover?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{onPress:onPress,accessibilityRole:"button",accessibilityLabel:title,children:titleText}):titleText}),line&&!web&&!photo?/* @__PURE__ */jsxRuntime.jsx(Text,{style:[text(kit.text),{marginTop:kit.text.marginTop}],children:line}):null,footEl]});return cover&&footPress?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{testID:testID,style:[...card,down&&!reduced?{transform:[{scale:press}]}:null],children:[body,
119
+ /* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:part("cover"),onPress:onPress,onPressIn:()=>setDown(true),onPressOut:()=>setDown(false),accessibilityRole:"button",accessibilityLabel:accessibilityLabel??title,style:{position:"absolute",top:0,right:0,bottom:0,left:0}})]}):cover?/* @__PURE__ */jsxRuntime.jsx(reactNative.Pressable,{testID:testID,onPress:onPress,accessibilityRole:"button",accessibilityLabel:accessibilityLabel??title,style:({pressed:pressed})=>[...card,pressed&&!reduced&&press!==1?{transform:[{scale:press}]}:null],children:body}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:testID,style:card,children:body})}var freezeInPlace=Object.freeze;function deepFreeze2(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value)){freezeInPlace(value);for(let key of Object.keys(value))deepFreeze2(value[key])}return value}var TEXT_SCALE_TIER_CAPS=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3}),SPACE={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},RADIUS={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},TYPE_SIZE={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},LINE_HEIGHT={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},WEIGHT={regular:"400",medium:"500",bold:"700"},LETTER_SPACING={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},DEFAULT_MAX_FONT_SCALE=0,SYSTEM_FONT_FAMILY="System",SYSTEM_MONO_FAMILY="monospace",TIERS=["content","heading","control","compact","badge"];function authoredTierSizes(size){let out={};for(let tier of TIERS)out[tier]=size;return out}var NO_FONT_SOURCES=[];function baseType(){return{family:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,fontUrl:null,families:{regular:SYSTEM_FONT_FAMILY,medium:SYSTEM_FONT_FAMILY,bold:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,monoMedium:SYSTEM_MONO_FAMILY,monoBold:SYSTEM_MONO_FAMILY},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:TYPE_SIZE,tierSizes:authoredTierSizes(TYPE_SIZE),lineHeight:LINE_HEIGHT,weight:WEIGHT,letterSpacing:LETTER_SPACING,scale:1,maxScale:DEFAULT_MAX_FONT_SCALE,scaleCaps:TEXT_SCALE_TIER_CAPS,headingFamily:null,headingWeight:null,fontSources:NO_FONT_SOURCES}}var NO_SLOTS={},EASING_CURVES=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(curve){return`cubic-bezier(${curve.join(", ")})`}var MOTION={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(EASING_CURVES.standard),emphasized:cssCubicBezier(EASING_CURVES.emphasized),exit:cssCubicBezier(EASING_CURVES.exit)},reducedMotion:false},LIGHT_COLOR={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},EVERFUR_LIGHT=deepFreeze2({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:LIGHT_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS}),DARK_COLOR={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},EVERFUR_DARK=deepFreeze2({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:DARK_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS});var FACE_WEIGHT=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(theme,weight){let type=theme.type,fontFamily=type.families[weight];return weight==="mono"||type.namedFaces[weight]?{fontFamily:fontFamily}:{fontFamily:fontFamily,fontWeight:type.weight[FACE_WEIGHT[weight]]}}function headingFace(theme,fallback="bold"){let{headingFamily:headingFamily,headingWeight:headingWeight}=theme.type;if(headingFamily===null&&headingWeight===null)return face(theme,fallback);if(headingFamily!==null)return{fontFamily:headingFamily,fontWeight:headingWeight??theme.type.weight[FACE_WEIGHT[fallback]]};let base=face(theme,fallback);return base.fontWeight===void 0||headingWeight===null?base:{fontFamily:base.fontFamily,fontWeight:headingWeight}}function toRgba(value){if(typeof value=="number")return argbIntToRgba(value);if(typeof value!="string")return null;let s=value.trim();if(s.length===0)return null;if(s.startsWith("#"))return fromHex(s.slice(1));if(s.toLowerCase().startsWith("0x"))return fromHex(s.slice(2));if(s.toLowerCase().startsWith("rgb"))return fromRgbFunc(s);if(/^[0-9a-fA-F]+$/.test(s)){let hex=fromHex(s);if(hex!==null)return hex}return/^\d+$/.test(s)?argbIntToRgba(Number.parseInt(s,10)):null}function fromHex(hex){let h=hex.trim();if(!/^[0-9a-fA-F]+$/.test(h))return null;if(h.length===3)return{r:dup(h[0]),g:dup(h[1]),b:dup(h[2]),a:1};if(h.length===6)return{r:byte(h,0),g:byte(h,2),b:byte(h,4),a:1};if(h.length===8){let a=byte(h,0);return{r:byte(h,2),g:byte(h,4),b:byte(h,6),a:a/255}}return null}function fromRgbFunc(input){let open=input.indexOf("("),close=input.indexOf(")");if(open<0||close<0||close<open)return null;let parts=input.slice(open+1,close).split(",").map(p=>p.trim());if(parts.length<3)return null;let r=clampByte(Number(parts[0])),g=clampByte(Number(parts[1])),b=clampByte(Number(parts[2]));if(r===null||g===null||b===null)return null;let a=1;if(parts.length>=4){let alpha=Number(parts[3]);if(!Number.isFinite(alpha))return null;a=Math.min(1,Math.max(0,alpha))}return{r:r,g:g,b:b,a:a}}function argbIntToRgba(n){if(!Number.isFinite(n))return null;let int=Math.trunc(n)>>>0,a=int>>>24&255;return{r:int>>>16&255,g:int>>>8&255,b:int&255,a:a===0?1:a/255}}function byte(hex,at){return Number.parseInt(hex.slice(at,at+2),16)}function dup(nibble){return Number.parseInt(`${nibble??"0"}${nibble??"0"}`,16)}function clampByte(n){return Number.isFinite(n)?Math.min(255,Math.max(0,Math.round(n))):null}function rgbToHex(r,g,b){return`#${hex2(r)}${hex2(g)}${hex2(b)}`.toUpperCase()}function hex2(n){return n.toString(16).padStart(2,"0")}var NEAR_BLACK="#111111",WHITE="#FFFFFF",BLACK="#000000";function readableOn(background){let rgba=toRgba(background);if(rgba===null)return WHITE;let bg=relativeLuminance(rgba),black=relativeLuminance({r:17,g:17,b:17}),white=relativeLuminance({r:255,g:255,b:255});return luminanceContrast(bg,white)>=luminanceContrast(bg,black)?WHITE:NEAR_BLACK}function legibleOn(background,target){let first=readableOn(background);return contrastRatio(first,background)>=target?first:contrastRatio(WHITE,background)>=contrastRatio(BLACK,background)?WHITE:BLACK}function poleForGrounds(grounds){let worst=ink=>grounds.reduce((low,ground)=>Math.min(low,contrastRatio(ink,ground)),Number.POSITIVE_INFINITY);return worst(WHITE)>=worst(BLACK)?WHITE:BLACK}function relativeLuminance(rgba){let r=linearize(rgba.r/255),g=linearize(rgba.g/255),b=linearize(rgba.b/255);return.2126*r+.7152*g+.0722*b}function linearize(channel){return channel<=.03928?channel/12.92:Math.pow((channel+.055)/1.055,2.4)}function luminanceContrast(l1,l2){let lighter=Math.max(l1,l2),darker=Math.min(l1,l2);return(lighter+.05)/(darker+.05)}function contrastRatio(a,b){let fg=toRgba(a),bg=toRgba(b);if(fg===null||bg===null)return 1;let ground=bg.a>=1?bg:{...bg},fore=fg.a>=1?fg:composite(fg,ground);return luminanceContrast(relativeLuminance(fore),relativeLuminance(ground))}function composite(fg,bg){let a=fg.a,mix=(f,g)=>Math.round(f*a+g*(1-a));return{r:mix(fg.r,bg.r),g:mix(fg.g,bg.g),b:mix(fg.b,bg.b),a:1}}function flattenOnto(color,background){let fg=toRgba(color),bg=toRgba(background);if(fg===null||bg===null)return null;let out=fg.a>=1?fg:composite(fg,{...bg});return rgbToHex(out.r,out.g,out.b)}var PUSH_STEP=.05;function pushToContrast(color,grounds,pole,target){let first=grounds[0];if(first===void 0)return pole;let reads=candidate=>grounds.every(ground=>contrastRatio(candidate,ground)>=target);if(toRgba(color)===null)return pole;if(reads(color))return color;let flat=flattenOnto(color,first),from=flat===null?null:toRgba(flat),to=toRgba(pole);if(from===null||to===null)return pole;for(let step=1;step<1/PUSH_STEP;step+=1){let t=step*PUSH_STEP,mix=(a,b)=>Math.round(a+(b-a)*t),candidate=rgbToHex(mix(from.r,to.r),mix(from.g,to.g),mix(from.b,to.b));if(reads(candidate))return candidate}return pole}var DESIGN_V3_LIGHT=/* @__PURE__ */Object.freeze({ink:"#262523",ink2:"#4A4845",ink3:"#6B6863",paper:"#F8F7F4",card:"#FFFFFF",line:"#E7E6E2",tile:"#F2F1EE",shadow:"rgba(38, 37, 35, .07)",riskBg:"#FFE3E1",riskInk:"#B0231B",riskDot:"#E5372B",clearBg:"#E6F4D3",clearInk:"#2F6A12",clearDot:"#5FA82B",watchDot:"#E5A000"}),cache2=/* @__PURE__ */new WeakMap;function v3Palette(theme){let hit=cache2.get(theme);if(hit!==void 0)return hit;let c=theme.color,dark=theme.brightness==="dark",neutrals=dark?{dark:dark,ink:c.text.primary,ink2:c.text.secondary,ink3:c.text.muted,paper:c.background,card:c.surface,line:c.borderRingCream,tile:c.surfaceSubtle,shadow:c.shadow,riskBg:c.badgeBgCritical,riskInk:c.danger,riskDot:c.danger,clearBg:c.badgeBgPositive,clearInk:c.success,clearDot:c.success,watchDot:c.warningStrong}:{dark:dark,...DESIGN_V3_LIGHT},textOn=(ink,grounds)=>pushToContrast(ink,grounds,poleForGrounds(grounds),V3_TEXT_CONTRAST),labelOn=(ink,fill)=>contrastRatio(ink,fill)>=V3_TEXT_CONTRAST?ink:legibleOn(fill,V3_TEXT_CONTRAST),badgeGrounds=[neutrals.card,neutrals.paper].map(under=>flattenOnto(c.brandSoft,under)??under),brand={primary:c.primary,onPrimary:labelOn(c.onPrimary,c.primary),accent:c.accent,onAccent:labelOn(c.onAccent,c.accent),link:textOn(c.linkInk,[neutrals.card,neutrals.paper,neutrals.tile]),badge:c.brandSoft,onBadge:textOn(c.brandInk,badgeGrounds)},palette=/* @__PURE__ */Object.freeze({...neutrals,...brand});return cache2.set(theme,palette),palette}var V3_TEXT_CONTRAST=4.5;var EVERFUR_THEME_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),globalThemeHost=globalThis,EverfurThemeContext=globalThemeHost[EVERFUR_THEME_CONTEXT_SYMBOL]??(globalThemeHost[EVERFUR_THEME_CONTEXT_SYMBOL]=react.createContext(EVERFUR_LIGHT));EverfurThemeContext.displayName??="EverfurThemeContext";function useEverfurTheme(){return react.useContext(EverfurThemeContext)}var rnBlockFonts=theme=>{let n=theme.type.namedFaces,family=key=>face(theme,key).fontFamily;return{family:family("regular"),mono:family("mono"),faces:{regular:family("regular"),medium:family("medium"),bold:family("bold"),mono:family("mono"),monoBold:family("monoBold"),serif:headingFace(theme,"bold").fontFamily},namedFaces:n.regular&&n.medium&&n.bold}},mapped=/* @__PURE__ */new WeakMap;function themeInputFromEverfur(theme,fonts,base=everfurTheme){if(base!==everfurTheme)return mapEverfur(theme,fonts,base);let byTheme=mapped.get(fonts);byTheme===void 0&&mapped.set(fonts,byTheme=/* @__PURE__ */new WeakMap);let input=byTheme.get(theme);return input===void 0&&byTheme.set(theme,input=mapEverfur(theme,fonts,base)),input}function mapEverfur(theme,fonts,base){let c=theme.color,d=EVERFUR_LIGHT.color,dark=theme.brightness==="dark",compiled=dark?EVERFUR_DARK:EVERFUR_LIGHT,moved=key=>c[key]!==d[key],colors={};if(moved("primary")?(Object.assign(colors,{ink:c.primary,onInk:c.onPrimary,focus:c.primary}),moved("accent")||Object.assign(colors,{go:c.primary,onGo:c.onPrimary})):moved("onPrimary")&&(colors.onInk=c.onPrimary),moved("accent")&&Object.assign(colors,{go:c.accent,onGo:c.onAccent}),moved("brandSoft")&&(colors.tintSage=c.brandSoft),moved("danger")&&Object.assign(colors,{alert:c.danger,alertDeep:c.danger}),dark)Object.assign(colors,{bg:c.background,surface:c.surface,text:c.text.primary,muted:c.text.muted,line:c.borderRingCream});else{let k2=compiled.color;c.background!==k2.background&&(colors.bg=c.background),c.surface!==k2.surface&&(colors.surface=c.surface),c.text.primary!==k2.text.primary&&(colors.text=c.text.primary),c.text.muted!==k2.text.muted&&(colors.muted=c.text.muted)}let over={};Object.keys(colors).length>0&&(over.colors={...colors});let r=theme.radius,kr=compiled.radius;if(r.xs!==kr.xs||r.sm!==kr.sm||r.lg!==kr.lg||r.xl!==kr.xl||r.pill!==kr.pill){let radius={};r.xs!==kr.xs&&(radius.sm=r.xs),r.sm!==kr.sm&&(radius.md=r.sm),r.lg!==kr.lg&&(radius.lg=r.lg),r.xl!==kr.xl&&(radius.xl=r.xl),r.pill!==kr.pill&&(radius.pill=r.pill),over.radius=radius,(r.lg!==kr.lg||r.xl!==kr.xl)&&(over.metrics={...r.lg!==kr.lg?{card:{radius:r.lg},summary:{radius:r.lg}}:{},...r.xl!==kr.xl?{sheet:{radius:r.xl}}:{}})}if(theme.space.xs!==compiled.space.xs){let f=theme.space.xs/compiled.space.xs,s=base.space,n=v=>Math.round(v*f);over.space={1:n(s[1]),2:n(s[2]),3:n(s[3]),4:n(s[4]),5:n(s[5]),6:n(s[6]),7:n(s[7]),8:n(s[8]),9:n(s[9])}}let ts=theme.type.size,ks=compiled.type.size,sizeMoved=ts.caption!==ks.caption||ts.bodyTight!==ks.bodyTight||ts.body!==ks.body||ts.subtitle!==ks.subtitle||ts.verdict!==ks.verdict,lh=theme.type.lineHeight,klh=compiled.type.lineHeight,lineMoved=lh.relaxed!==klh.relaxed||lh.tight!==klh.tight,caps=theme.type.scaleCaps,kcaps=compiled.type.scaleCaps,capsMoved=caps.content!==kcaps.content||caps.heading!==kcaps.heading||caps.control!==kcaps.control||caps.compact!==kcaps.compact||caps.badge!==kcaps.badge,typeMoved=sizeMoved||lineMoved||capsMoved;over.type={...sizeMoved?{size:{xs:ts.caption,sm:ts.bodyTight,md:ts.body,lg:ts.subtitle,xl:ts.verdict}}:{},...lineMoved?{lineHeight:{body:lh.relaxed,display:lh.tight}}:{},...capsMoved?{scaleCaps:{content:caps.content,heading:caps.heading,control:caps.control,compact:caps.compact,badge:caps.badge}}:{},...fonts(theme)},theme.motion.reducedMotion&&!base.motion.reduced&&(over.motion={reduced:true});let branded=typeMoved||Object.keys(colors).length>0||Object.keys(over).some(k2=>k2!=="type"&&k2!=="colors")||theme.type.families.regular!==EVERFUR_LIGHT.type.families.regular,plan=planColors(theme,compiled,colors.surface??base.colors.surface),ownPlan=Object.entries(plan).filter(([k2,v])=>v!==base.colors[k2]);return ownPlan.length>0&&(over.colors={...colors,...Object.fromEntries(ownPlan)}),branded?{name:"partner",...over}:over}var DS_PLAN={planAccent:everfurTheme.colors.planAccent,planLink:everfurTheme.colors.planLink},PLAN_WASHES2={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function planColors(theme,compiled,surface){let v=v3Palette(theme),k2=v3Palette(compiled),c=theme.color,out={};(c.primary!==compiled.color.primary||c.onPrimary!==compiled.color.onPrimary)&&Object.assign(out,{planInk:c.primary,planOnInk:v.onPrimary}),c.accent!==compiled.color.accent&&(out.planAccent=c.accent),v.link!==k2.link&&(out.planLink=v.link);let ink={accent:out.planAccent??DS_PLAN.planAccent,link:out.planLink??DS_PLAN.planLink},slot={planLinkWash:v.dark?void 0:theme.slots.planWash?.backgroundColor,planLinkChip:v.dark?void 0:theme.slots.planChip?.backgroundColor},ownCard=surface.toLowerCase()!==v.card.toLowerCase();for(let[key,[from,share]]of Object.entries(PLAN_WASHES2)){let given=slot[key];given!==void 0?out[key]=given:ownCard&&(out[key]=mixColor(ink[from],share,v.card,v.card))}return out}function useBlockThemeInput(fonts){let everfur=useEverfurTheme();return react.useMemo(()=>themeInputFromEverfur(everfur,fonts),[everfur,fonts])}function BlockScope({children:children}){let input=useBlockThemeInput(rnBlockFonts);return react.createElement(ThemeProvider,{theme:input},children)}var registered=false;function registerIconSet(){registered||(registered=true,registerIcons(UI_RN_ICONS))}function CartLine2(props){return registerIconSet(),/* @__PURE__ */jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(CartLine,{...props})})}function OrderRow2(props){return registerIconSet(),/* @__PURE__ */jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(OrderRow,{...props})})}function PlanNeedCard2(props){return registerIconSet(),/* @__PURE__ */jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(PlanNeedCard,{...props})})}function PriceSummary2(props){/* @__PURE__ */
120
+ return jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(PriceSummary,{...props})})}function ProductTile2(props){return registerIconSet(),/* @__PURE__ */jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(ProductTile,{...props})})}function TipCard2(props){return registerIconSet(),/* @__PURE__ */jsxRuntime.jsx(BlockScope,{children:/* @__PURE__ */jsxRuntime.jsx(TipCard,{...props})})}exports.CartLine=CartLine2;exports.OrderRow=OrderRow2;exports.PlanNeedCard=PlanNeedCard2;exports.PriceSummary=PriceSummary2;exports.ProductTile=ProductTile2;exports.TipCard=TipCard2;