@everfur/sdk 1.6.0 → 1.7.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 (218) hide show
  1. package/dist/{Chat.d-B4GybUU4.d.ts → Chat.d-BIr_4AJt.d.ts} +1 -1
  2. package/dist/{Chat.d-DPM2ncxi.d.cts → Chat.d-BhevtXn9.d.cts} +1 -1
  3. package/dist/{DepthViews.d-BGspxovy.d.cts → DepthViews.d-C8KdfzwR.d.cts} +1 -1
  4. package/dist/{DepthViews.d-BaLh7Lsi.d.cts → DepthViews.d-DWQ-J208.d.cts} +1 -1
  5. package/dist/{DepthViews.d-BIHVrf9r.d.ts → DepthViews.d-DYVUq4Xk.d.ts} +1 -1
  6. package/dist/{DepthViews.d-CEVk9poG.d.ts → DepthViews.d-oKr9R0Ql.d.ts} +1 -1
  7. package/dist/{IntakeMedia.d-CwSkSLNM.d.ts → IntakeMedia.d-B-ZZK6vd.d.ts} +1 -1
  8. package/dist/{IntakeMedia.d-LRXO38_z.d.cts → IntakeMedia.d-CuVkzIsO.d.cts} +1 -1
  9. package/dist/{IntakeMedia.d-DmaeGU6T.d.cts → IntakeMedia.d-CyF6NPHx.d.cts} +1 -1
  10. package/dist/{IntakeMedia.d-Dyb9R8b0.d.ts → IntakeMedia.d-vU8g9OM5.d.ts} +1 -1
  11. package/dist/{RecordsPage.d-D10RIgdc.d.ts → RecordsPage.d-DU8Nswzh.d.ts} +1 -1
  12. package/dist/{RecordsPage.d-DbhYNSbq.d.cts → RecordsPage.d-DzPhqMHW.d.cts} +1 -1
  13. package/dist/animations/index.d.cts +3 -3
  14. package/dist/animations/index.d.ts +3 -3
  15. package/dist/{attachments.d-CF4lLuGK.d.cts → attachments.d-0nOPDIng.d.cts} +1 -1
  16. package/dist/{attachments.d-BlukNfIf.d.ts → attachments.d-BlyI-RCY.d.ts} +1 -1
  17. package/dist/{bookingCopy.d-Bn8bdo89.d.ts → bookingCopy.d-ClL8OxBS.d.ts} +3 -3
  18. package/dist/{bookingCopy.d-Dg7bPM-U.d.cts → bookingCopy.d-DUVqhF5f.d.cts} +3 -3
  19. package/dist/{branding.d-XrZYClN4.d.ts → branding.d-D0LV3aFE.d.ts} +1 -1
  20. package/dist/{branding.d-CqDLKj1U.d.cts → branding.d-DzSPLZKl.d.cts} +1 -1
  21. package/dist/{casesRepository.d-CVuKTkJo.d.cts → casesRepository.d-DnanKXJ1.d.cts} +1 -1
  22. package/dist/{casesRepository.d-Dn1fK1b2.d.ts → casesRepository.d-_4QucKVC.d.ts} +1 -1
  23. package/dist/chat/index.cjs +239 -238
  24. package/dist/chat/index.d.cts +11 -11
  25. package/dist/chat/index.d.ts +11 -11
  26. package/dist/chat/index.js +241 -240
  27. package/dist/chat/lite/index.cjs +239 -238
  28. package/dist/chat/lite/index.d.cts +11 -11
  29. package/dist/chat/lite/index.d.ts +11 -11
  30. package/dist/chat/lite/index.js +239 -238
  31. package/dist/chat-cards/index.cjs +2 -2
  32. package/dist/chat-cards/index.js +9 -9
  33. package/dist/{chatHandoffToken.d-zdp23Ukr.d.ts → chatHandoffToken.d-BoZGGbIB.d.ts} +5 -5
  34. package/dist/{chatHandoffToken.d-Cap2z62P.d.cts → chatHandoffToken.d-DhhGdLNH.d.cts} +5 -5
  35. package/dist/{checkin.d-CuIUahcd.d.cts → checkin.d-DB-HlK7r.d.cts} +9 -4
  36. package/dist/{checkin.d-BoZXWjxX.d.ts → checkin.d-DogrR06X.d.ts} +9 -4
  37. package/dist/{chunk-LMIBOI3I.js → chunk-6E3J6IVM.js} +13 -13
  38. package/dist/{chunk-6AIEUA4V.js → chunk-J5ZUBY3S.js} +1 -1
  39. package/dist/{chunk-BN7OAFBS.js → chunk-LPHBCDJP.js} +21 -21
  40. package/dist/{chunk-IXHLESYC.js → chunk-ULQDOC75.js} +1 -1
  41. package/dist/client/index.cjs +28 -27
  42. package/dist/client/index.d.cts +13 -13
  43. package/dist/client/index.d.ts +13 -13
  44. package/dist/client/index.js +25 -24
  45. package/dist/{clinicBatch.d-C0xx5L4j.d.cts → clinicBatch.d-BvPF6vXS.d.cts} +2 -2
  46. package/dist/{clinicBatch.d-DNi4UURs.d.ts → clinicBatch.d-CF0GIvpx.d.ts} +2 -2
  47. package/dist/{config.d-B7Z-KTGq.d.ts → config.d-Bc41Ax6M.d.ts} +5 -1
  48. package/dist/{config.d-ClAI2RZ6.d.cts → config.d-Bn6GEGfl.d.cts} +5 -1
  49. package/dist/consent/index.d.cts +5 -5
  50. package/dist/consent/index.d.ts +5 -5
  51. package/dist/{context.d-D7zX6Q0J.d.ts → context.d-0QfLaI3W.d.ts} +5 -5
  52. package/dist/{context.d-guaLkx5t.d.cts → context.d-CyQpedoU.d.cts} +5 -5
  53. package/dist/{copy.d--F5A9cXK.d.cts → copy.d-B55PpLxr.d.cts} +2 -2
  54. package/dist/{copy.d-DmxuFJFe.d.ts → copy.d-B8wIE6cH.d.ts} +2 -2
  55. package/dist/core/index.cjs +32 -31
  56. package/dist/core/index.d.cts +22 -16
  57. package/dist/core/index.d.ts +22 -16
  58. package/dist/core/index.js +37 -36
  59. package/dist/{depth.d-CgzYE6_n.d.ts → depth.d-CrtZXnLy.d.ts} +2 -2
  60. package/dist/{depth.d-DLaP0o8Y.d.cts → depth.d-Cxz6VisZ.d.cts} +2 -2
  61. package/dist/{entitlementRepository.d-CkUTlVAb.d.ts → entitlementRepository.d-BaZTIe1B.d.ts} +3 -3
  62. package/dist/{entitlementRepository.d-DVTp-BB9.d.cts → entitlementRepository.d-YeNG2TKI.d.cts} +3 -3
  63. package/dist/{focus.d-u-HYvim0.d.ts → focus.d-520VEHKB.d.ts} +1 -1
  64. package/dist/{focus.d-CLTjm6In.d.cts → focus.d-DoempN1I.d.cts} +1 -1
  65. package/dist/health-plan/index.cjs +236 -235
  66. package/dist/health-plan/index.d.cts +15 -15
  67. package/dist/health-plan/index.d.ts +15 -15
  68. package/dist/health-plan/index.js +236 -235
  69. package/dist/{healthPlanRepository.d-CwRXeoM7.d.ts → healthPlanRepository.d-BHu9LO0r.d.ts} +2 -2
  70. package/dist/{healthPlanRepository.d-B22kjrYa.d.cts → healthPlanRepository.d-tUR1f_5s.d.cts} +2 -2
  71. package/dist/{idempotency.d-DrxKLPPe.d.cts → idempotency.d-CcFLvzYW.d.cts} +1 -1
  72. package/dist/{idempotency.d-CbB07p64.d.ts → idempotency.d-CvqKG3Uq.d.ts} +1 -1
  73. package/dist/{identity.d-D4VtpqRr.d.ts → identity.d-Bex_XJZx.d.ts} +1 -1
  74. package/dist/{identity.d-DDpXOtas.d.cts → identity.d-Dm0Buvn8.d.cts} +1 -1
  75. package/dist/{inbox.d-B2JXK0uI.d.ts → inbox.d-9ajb0oiJ.d.ts} +1 -1
  76. package/dist/{inbox.d-CwA1ogzV.d.cts → inbox.d-CGCYOZIq.d.cts} +1 -1
  77. package/dist/index.cjs +259 -258
  78. package/dist/index.d.cts +17 -17
  79. package/dist/index.d.ts +17 -17
  80. package/dist/index.js +258 -257
  81. package/dist/{introEvents.d-DW3gLljE.d.ts → introEvents.d-CuVaufTy.d.ts} +1 -1
  82. package/dist/{introEvents.d-B7acmGwf.d.cts → introEvents.d-DU6feqx4.d.cts} +1 -1
  83. package/dist/{layout.d-C8y_ki1V.d.ts → layout.d-BQ5IVS-m.d.ts} +1 -1
  84. package/dist/{layout.d-DfaFM_lp.d.cts → layout.d-CSPr33BP.d.cts} +1 -1
  85. package/dist/notifications/inbox/index.d.cts +6 -6
  86. package/dist/notifications/inbox/index.d.ts +6 -6
  87. package/dist/notifications/index.d.cts +7 -7
  88. package/dist/notifications/index.d.ts +7 -7
  89. package/dist/{optInView.d-Cps7aLQN.d.ts → optInView.d-DpGXnpGw.d.ts} +21 -3
  90. package/dist/{optInView.d-ChJyJMBA.d.cts → optInView.d-dLjrI3co.d.cts} +21 -3
  91. package/dist/{pets.d-BpLObpfM.d.ts → pets.d-CHdSIoBf.d.ts} +1 -1
  92. package/dist/{pets.d-DXhzTNuI.d.cts → pets.d-jnhrJhqm.d.cts} +1 -1
  93. package/dist/{petsRepository.d-ai_tZ3lu.d.cts → petsRepository.d-BeKRiNao.d.cts} +1 -1
  94. package/dist/{petsRepository.d-_QfM7F6T.d.ts → petsRepository.d-BjwB1vku.d.ts} +1 -1
  95. package/dist/{presentation.d-BkIvMtIl.d.cts → presentation.d-Br3TnwA6.d.cts} +17 -1
  96. package/dist/{presentation.d-BkIvMtIl.d.ts → presentation.d-Br3TnwA6.d.ts} +17 -1
  97. package/dist/records/depth/index.d.cts +9 -9
  98. package/dist/records/depth/index.d.ts +9 -9
  99. package/dist/records/index.cjs +237 -228
  100. package/dist/records/index.d.cts +39 -12
  101. package/dist/records/index.d.ts +39 -12
  102. package/dist/records/index.js +155 -146
  103. package/dist/{requestFunnel.d-DKBPTpsy.d.ts → requestFunnel.d-C_NMgz9R.d.ts} +2 -2
  104. package/dist/{requestFunnel.d-BwZDfWVD.d.cts → requestFunnel.d-DoJWLySc.d.cts} +2 -2
  105. package/dist/{route.d-QBCoO62z.d.cts → route.d-BW2abFVK.d.cts} +2 -2
  106. package/dist/{route.d-B3u14HJT.d.ts → route.d-Olr_gXaa.d.ts} +2 -2
  107. package/dist/{runtimeTypes.d-hjN6xvxm.d.ts → runtimeTypes.d-Bp2VW6YE.d.ts} +6 -6
  108. package/dist/{runtimeTypes.d-BSxuUCOX.d.cts → runtimeTypes.d-StvJY45N.d.cts} +6 -6
  109. package/dist/{screenProps.d-fHBKArt_.d.ts → screenProps.d-BTLSji0N.d.ts} +1 -1
  110. package/dist/{screenProps.d-6xmE1C-V.d.cts → screenProps.d-B_5Bh7aQ.d.cts} +1 -1
  111. package/dist/server/events/index.cjs +2 -2
  112. package/dist/server/events/index.d.cts +19 -5
  113. package/dist/server/events/index.d.ts +19 -5
  114. package/dist/server/events/index.js +2 -2
  115. package/dist/server/index.cjs +1 -1
  116. package/dist/server/index.d.cts +3 -3
  117. package/dist/server/index.d.ts +3 -3
  118. package/dist/server/index.js +1 -1
  119. package/dist/shop/index.d.cts +3 -3
  120. package/dist/shop/index.d.ts +3 -3
  121. package/dist/slots/index.cjs +200 -199
  122. package/dist/slots/index.d.cts +5 -5
  123. package/dist/slots/index.d.ts +5 -5
  124. package/dist/slots/index.js +200 -199
  125. package/dist/tabs/index.cjs +200 -190
  126. package/dist/tabs/index.d.cts +68 -11
  127. package/dist/tabs/index.d.ts +68 -11
  128. package/dist/tabs/index.js +201 -191
  129. package/dist/tabs-bar/index.cjs +247 -0
  130. package/dist/tabs-bar/index.d.cts +10 -0
  131. package/dist/tabs-bar/index.d.ts +10 -0
  132. package/dist/tabs-bar/index.js +247 -0
  133. package/dist/{tabsModel.d-D9GWPFrL.d.ts → tabsModel.d-B4MSQB57.d.cts} +5 -2
  134. package/dist/{tabsModel.d-D9GWPFrL.d.cts → tabsModel.d-C8pd-DP3.d.ts} +5 -2
  135. package/dist/televet/booking/index.cjs +147 -145
  136. package/dist/televet/booking/index.d.cts +10 -10
  137. package/dist/televet/booking/index.d.ts +10 -10
  138. package/dist/televet/booking/index.js +163 -161
  139. package/dist/televet/call/index.cjs +52 -52
  140. package/dist/televet/call/index.d.cts +5 -0
  141. package/dist/televet/call/index.d.ts +5 -0
  142. package/dist/televet/call/index.js +25 -25
  143. package/dist/televet/index.d.cts +3 -3
  144. package/dist/televet/index.d.ts +3 -3
  145. package/dist/{televetGlobal.d-gZrXPaLl.d.cts → televetGlobal.d-B_I_fy7O.d.cts} +9 -0
  146. package/dist/{televetGlobal.d-DkJkV55Y.d.ts → televetGlobal.d-DN7o45WJ.d.ts} +9 -0
  147. package/dist/testing/index.cjs +3 -3
  148. package/dist/testing/index.d.cts +1 -1
  149. package/dist/testing/index.d.ts +1 -1
  150. package/dist/testing/index.js +3 -3
  151. package/dist/testing/rn/index.d.cts +9 -9
  152. package/dist/testing/rn/index.d.ts +9 -9
  153. package/dist/testing/web/index.d.cts +9 -9
  154. package/dist/testing/web/index.d.ts +9 -9
  155. package/dist/texting/index.cjs +32 -27
  156. package/dist/texting/index.d.cts +5 -5
  157. package/dist/texting/index.d.ts +5 -5
  158. package/dist/texting/index.js +52 -47
  159. package/dist/{threadOptions.d-NSlFx-Lp.d.ts → threadOptions.d-D_3hk79R.d.ts} +5 -5
  160. package/dist/{threadOptions.d-Dc57dm7h.d.cts → threadOptions.d-D_GU6lp9.d.cts} +5 -5
  161. package/dist/{timelineRows.d-CthNM5hV.d.ts → timelineRows.d-BbVuARtc.d.ts} +1 -1
  162. package/dist/{timelineRows.d-7w8NsNi4.d.cts → timelineRows.d-BiLAAbYl.d.cts} +1 -1
  163. package/dist/{typeStyle.d-8mcLhtbH.d.ts → typeStyle.d-DSk99BuZ.d.ts} +1 -1
  164. package/dist/{typeStyle.d-CLrQZW-r.d.cts → typeStyle.d-DqR6mWCF.d.cts} +1 -1
  165. package/dist/{useHealthPlanSubscription.d-CV7M21HS.d.ts → useHealthPlanSubscription.d-CpE6l1VW.d.ts} +3 -3
  166. package/dist/{useHealthPlanSubscription.d-SA9-SuKe.d.cts → useHealthPlanSubscription.d-DRiWDJXq.d.cts} +3 -3
  167. package/dist/{useInboxUnread.d-0DrQPn7J.d.ts → useInboxUnread.d-BV7PkWDH.d.ts} +1 -1
  168. package/dist/{useInboxUnread.d-CRcOTkmu.d.cts → useInboxUnread.d-CElyXBkY.d.cts} +1 -1
  169. package/dist/{usePresentation.d-BJzFicRQ.d.cts → usePresentation.d-BcazazQH.d.cts} +3 -3
  170. package/dist/{usePresentation.d-DgSGIWS-.d.ts → usePresentation.d-CMOypLlH.d.ts} +3 -3
  171. package/dist/{useRecordsDepth.d-ZX2rhcUx.d.ts → useRecordsDepth.d-Bka4KQhq.d.ts} +1 -1
  172. package/dist/{useRecordsDepth.d-C9W45gwS.d.cts → useRecordsDepth.d-TgmpxKdX.d.cts} +1 -1
  173. package/dist/{useUnread.d-4SbFChbd.d.ts → useUnread.d-CGqaP-dB.d.ts} +27 -5
  174. package/dist/{useUnread.d-B0YhhR_D.d.cts → useUnread.d-DVVnYNPU.d.cts} +27 -5
  175. package/dist/{view.d-3lxzyJlL.d.cts → view.d-CwruYhQy.d.cts} +3 -3
  176. package/dist/{view.d-DRiYNQJ8.d.ts → view.d-DamH8TQF.d.ts} +3 -3
  177. package/dist/web/consent/index.d.cts +5 -5
  178. package/dist/web/consent/index.d.ts +5 -5
  179. package/dist/web/health-plan/index.cjs +9 -8
  180. package/dist/web/health-plan/index.d.cts +16 -16
  181. package/dist/web/health-plan/index.d.ts +16 -16
  182. package/dist/web/health-plan/index.js +49 -48
  183. package/dist/web/inbox/index.d.cts +7 -7
  184. package/dist/web/inbox/index.d.ts +7 -7
  185. package/dist/web/index.cjs +185 -184
  186. package/dist/web/index.d.cts +32 -32
  187. package/dist/web/index.d.ts +32 -32
  188. package/dist/web/index.js +187 -186
  189. package/dist/web/intro/index.d.cts +7 -7
  190. package/dist/web/intro/index.d.ts +7 -7
  191. package/dist/web/notifications/index.d.cts +6 -6
  192. package/dist/web/notifications/index.d.ts +6 -6
  193. package/dist/web/records/depth/index.d.cts +9 -9
  194. package/dist/web/records/depth/index.d.ts +9 -9
  195. package/dist/web/records/index.d.cts +11 -11
  196. package/dist/web/records/index.d.ts +11 -11
  197. package/dist/web/records-sheet/index.cjs +111 -110
  198. package/dist/web/records-sheet/index.js +111 -110
  199. package/dist/web/shop/index.cjs +1 -1
  200. package/dist/web/shop/index.d.cts +3 -3
  201. package/dist/web/shop/index.d.ts +3 -3
  202. package/dist/web/shop/index.js +1 -1
  203. package/dist/web/televet/booking/index.cjs +3 -3
  204. package/dist/web/televet/booking/index.d.cts +10 -10
  205. package/dist/web/televet/booking/index.d.ts +10 -10
  206. package/dist/web/televet/booking/index.js +69 -69
  207. package/dist/web/televet/call/index.cjs +1 -1
  208. package/dist/web/televet/call/index.js +1 -1
  209. package/dist/web/televet/index.d.cts +3 -3
  210. package/dist/web/televet/index.d.ts +3 -3
  211. package/dist/web/texting/index.cjs +34 -29
  212. package/dist/web/texting/index.d.cts +5 -5
  213. package/dist/web/texting/index.d.ts +5 -5
  214. package/dist/web/texting/index.js +45 -40
  215. package/dist/web/ui/index.cjs +1 -1
  216. package/dist/web/ui/index.js +33 -33
  217. package/package.json +16 -1
  218. package/tabs-bar/package.json +8 -0
@@ -1,293 +1,294 @@
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
2
  import{createContext,forwardRef as e,createElement as t,useMemo as i,useContext as r,useState as n,useEffect as l,useSyncExternalStore as o,useRef as a,useCallback as s,Component as c,Fragment as d}from"react";import{StyleSheet as u,TextInput as p,View as h,Pressable as g,Text as f,Linking as m,useWindowDimensions as b,ScrollView as y,Platform as w,AccessibilityInfo as v,I18nManager as k,Animated as x,Easing as T,Image as I,ActivityIndicator as S}from"react-native";import{jsx as z,jsxs as D,Fragment as C}from"react/jsx-runtime";var H=/* @__PURE__ */Object.freeze({"plan.needs":"list","plan.tips":"list","plan.items":"list","cart.lines":"list","cart.summary":"item","orders.recent":"list"});function F(e){return Object.prototype.hasOwnProperty.call(H,e)}function _(e){if(e===void 0)return null;let t=e.indexOf(":");if(t<=0)return null;let i=e.slice(0,t),r=e.slice(t+1);return r===""?null:i==="data"?F(r)?{kind:i,name:r}:null:i==="item"||i==="copy"?{kind:i,name:r}:null}function O(e){let t=/* @__PURE__ */new Set,i=e=>{let i=_(e);i?.kind==="data"&&t.add(i.name)};for(let t of e){i(t.repeat),i(t.visibleIf?.source);for(let e of Object.values(t.bind))i(e)}return t}function ok(e,t){/* @__PURE__ */
3
3
  return Object.freeze({ok:true,value:e})}function err(e){/* @__PURE__ */
4
- return Object.freeze({ok:false,error:e})}var E=class _EverfurConfigError extends Error{constructor(e,t){super(t),this.name="EverfurConfigError",this.kind=e,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var P=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),L=globalThis,B=L[P]??(L[P]=createContext(null));B.displayName??="EverfurContext";function A(){let e=r(B);if(e===null)throw new E("not-initialized","Everfur hooks must be called inside <EverfurProvider>. Wrap your tree once, high.");return e}var R=()=>()=>{},j=()=>null;function $(e,t){return o(t?.subscribe??R,t?.get??j,t?.get??j)??e}var W=/* @__PURE__ */Object.freeze({chatAnswerStyle:"cards",chatHistoryStyle:"sheet",chatTopCard:"focus",chatFollowUpCount:3,chatFollowUpsExcludeTelevet:false,chatComposerMic:true,chatComposerUpload:true,safetyDisclaimerPlacement:"composer",healthPlanLayout:"focus_plan",recordsTopRiskLine:true,recordsClearResultsFilter:true,chatComposerStyle:"compact",chatComposerPlaceholder:"pet_name",chatHistoryBar:"scroll",chatGeneralBanner:true,chatSendButton:"always_dark",chatTextingAsk:true,serverSlots:false}),M=/* @__PURE__ */Object.freeze({chatAnswerStyle:"chat_answer_style",chatHistoryStyle:"chat_history_style",chatTopCard:"chat_top_card",chatFollowUpCount:"chat_follow_up_count",chatFollowUpsExcludeTelevet:"chat_follow_ups_exclude_televet",chatComposerMic:"chat_composer_mic",chatComposerUpload:"chat_composer_upload",safetyDisclaimerPlacement:"safety_disclaimer_placement",healthPlanLayout:"health_plan_layout",recordsTopRiskLine:"records_top_risk_line",recordsClearResultsFilter:"records_clear_results_filter",chatComposerStyle:"chat_composer_style",chatComposerPlaceholder:"chat_composer_placeholder",chatHistoryBar:"chat_history_bar",chatGeneralBanner:"chat_general_banner",chatSendButton:"chat_send_button",chatTextingAsk:"chat_texting_ask",serverSlots:"server_slots"}),N=Object.keys(M),G="presentation",q="presentation.";var U={chatAnswerStyle:["bubbles","cards"],chatHistoryStyle:["drawer","sheet"],chatTopCard:["none","focus"],safetyDisclaimerPlacement:["composer","answer_footer","none"],healthPlanLayout:["standard","focus_plan"],chatComposerStyle:["standard","compact"],chatComposerPlaceholder:["generic","pet_name"],chatHistoryBar:["pinned","scroll"],chatSendButton:["always_dark","dim_when_empty"]},V=/* @__PURE__ */new Set(["chatFollowUpsExcludeTelevet","chatComposerMic","chatComposerUpload","recordsTopRiskLine","recordsClearResultsFilter","chatGeneralBanner","chatTextingAsk","serverSlots"]);function Y(e,t){if(t==null)return;let i=U[e];return i!==void 0?typeof t=="string"&&i.includes(t)?t:void 0:V.has(e)?typeof t=="boolean"?t:void 0:typeof t=="number"&&Number.isInteger(t)&&t>=0&&t<=3?t:void 0}function parsePresentation(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,i={};for(let e of N){let r=M[e],n=Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[e],l=Y(e,n);l!==void 0&&(i[e]=l)}return Object.keys(i).length===0?null:/* @__PURE__ */Object.freeze(i)}function isPresentationFieldLocked(e,t){if(t==null)return false;let i=`${q}${M[e]}`;for(let e of t)if(e===G||e===i)return true;return false}function resolvePresentation(e){let t=parsePresentation(e?.server??null)??{},{safetyDisclaimerPlacement:i,...r}=t,n=i==="none"||i===void 0?r:{...r,safetyDisclaimerPlacement:i},l=parsePresentation(e?.client??null)??{},o=e?.locked?[...e.locked]:null,a={};for(let e of N){let t=n[e],i=isPresentationFieldLocked(e,o)?void 0:l[e];a[e]=i??t??W[e]}/* @__PURE__ */
5
- return Object.freeze(a)}var X=/* @__PURE__ */Object.freeze({branding:null}),K=/* @__PURE__ */Object.freeze({subscribe:()=>()=>{},getSnapshot:()=>X});function Q(e){return e?Object.keys(e).sort().map(t=>`${t}=${String(e[t])}`).join("&"):""}function useEverfurPresentation(e){return J(e).presentation}function J(e){let{runtime:t}=A(),r=t?.entitlements??K,n=s(()=>r.getSnapshot()?.branding??null,[r]),l=$(o(r.subscribe,n,n),t?.sdkConfigHost?.branding),a=Q(e);return i(()=>{let t=l?.lockedFields??null;return{presentation:resolvePresentation({server:l?.presentation??null,locked:t,client:e??null}),isLocked:e=>isPresentationFieldLocked(e,t)}},[l,a])}var Z=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotSwitchContext@v1"),ee=globalThis,te=ee[Z]??(ee[Z]=createContext(null));te.displayName??="EverfurSlotSwitch";function ie(e){let t=r(te),i=useEverfurPresentation(e===void 0?void 0:{serverSlots:e}).serverSlots;return e!==void 0||t===null?i:t}var re=[{wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true},{wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false},{wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false},{wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"anchor_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"anchor_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"anonTokenInvalid",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true},{wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"before_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundle_mismatch",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundle_not_uploaded",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundles_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"catalog_empty_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"catalog_shrink_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"endpoint_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"environment_mismatch",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"inbox_cursor_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false},{wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"item_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"linked_account_read_only",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false},{wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"open_url_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false},{wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"read_target_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"restricted_key",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_revoked",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false},{wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true},{wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"subscription_keys_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"ticket_not_resolved",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tickets_disabled",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"timezone_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"unrestrictedKeyRequired",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"user_ref_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"web_push_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false}],ne=/* @__PURE__ */Object.freeze(re.map(e=>/* @__PURE__ */Object.freeze(e)));/* @__PURE__ */Object.freeze(ne.map(e=>e.wireCode));var le=/* @__PURE__ */Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",session_revoked:"authExpired",anonTokenInvalid:"authRejected",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",unrestrictedKeyRequired:"accessDenied",user_ref_invalid:"validationFailed",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict",linked_account_read_only:"conflict",catalog_empty_refused:"conflict",catalog_shrink_refused:"conflict",endpoint_not_allowed:"validationFailed",event_id_invalid:"validationFailed",inbox_cursor_invalid:"validationFailed",item_id_invalid:"validationFailed",open_url_not_allowed:"validationFailed",read_target_invalid:"validationFailed",subscription_keys_invalid:"validationFailed",web_push_unavailable:"serviceUnavailable",anchor_not_found:"resourceNotFound",anchor_ref_invalid:"validationFailed",before_invalid:"validationFailed",bundle_mismatch:"validationFailed",bundle_not_uploaded:"validationFailed",bundles_unavailable:"serviceUnavailable",environment_mismatch:"validationFailed",restricted_key:"accessDenied",ticket_not_resolved:"conflict",tickets_disabled:"resourceNotFound",timezone_invalid:"validationFailed"}),oe=/* @__PURE__ */Object.freeze(ne.map(e=>/* @__PURE__ */Object.freeze({wireCode:e.wireCode,envelope:e.envelope,retryable:e.retryable,normalized:le[e.wireCode]}))),ae=new Map(oe.map(e=>[e.envelope+e.wireCode.toUpperCase(),e])),se=/* @__PURE__ */Object.freeze(["http_envelope",...[...new Set(oe.map(e=>e.envelope))].filter(e=>e!=="http_envelope").sort()]);function contractErrorFor(e,t){if(typeof e!="string")return;let i=e.trim().toUpperCase();if(i.length!==0)for(let e of[t??"http_envelope",...se]){let t=ae.get(e+i);if(t)return t}}var ce=/* @__PURE__ */Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",identitySignatureRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",runtimeDisposed:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function categoryFor(e){return ce[e]}function fromWire(e){let t=contractErrorFor(e);if(t)return t.normalized;let i=(e??"").trim().toUpperCase(),r=i.replace(/[^A-Z0-9]/g,"");if(r==="AUTHREJECTED")return"authRejected";if(i.startsWith("AUTH"))return"authExpired";switch(r){case"DAILYQUOTAEXCEEDED":case"QUOTAEXCEEDED":return"quotaExceeded";case"RATELIMITED":case"TOOMANYREQUESTS":case"TELEVETRATELIMITED":return"rateLimited";case"IDEMPOTENCYKEYCONFLICT":case"IDEMPOTENCYCONFLICT":return"idempotencyConflict";case"ACCESSDENIED":case"FORBIDDEN":return"accessDenied";case"IDENTITYSIGNATUREREQUIRED":return"identitySignatureRequired";case"FREECAPREACHED":return"paymentRequired";case"RUNTIMEDISPOSED":return"runtimeDisposed";case"NOTFOUND":case"CONVERSATIONNOTFOUND":return"conversationNotFound";case"PETNOTFOUND":return"petNotFound";case"TIMEOUT":case"STREAMTIMEOUT":return"streamTimeout";case"MEDIAUPLOADFAILED":case"UNRECOGNIZEDVIDEOFORMAT":case"FILETOOSMALL":return"mediaUploadFailed";case"MODERATIONBLOCKED":return"moderationBlocked";case"UPSTREAMLLMTIMEOUT":return"upstreamLlmTimeout";case"INTERNALERROR":case"INTERNALSERVERERROR":return"internalError";case"STREAMINCOMPLETE":case"CHATSTREAMINCOMPLETE":return"streamIncomplete";case"INVALIDANALYSISTYPE":case"INVALIDUPLOADPURPOSE":return"unknown";default:return"unknown"}}var de=/* @__PURE__ */new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function isAutoRetryable(e){return de.has(e)}var ue=/* @__PURE__ */new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function isRetryableCode(e){return isAutoRetryable(e)||ue.has(e)}var pe=500,he=8e3,ge=4;function backoffDelayMs(e,t=Math.random){let i=Math.max(0,e),r=Math.min(pe*2**i,he);return Math.floor(t()*r)}var fe="This feature isn't available on your account right now.",me="Something in that request was not right. Check the details and try again.",be=/* @__PURE__ */Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:fe,paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:me,sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",identitySignatureRequired:fe,runtimeDisposed:me,unknown:"Something went wrong. Please try again."}),ye="This session has ended. Please sign in again.",we="linked_account_read_only";function ve(e,t,i){return e==="conflict"&&i===we?fe:(e==="authRejected"||e==="authExpired")&&typeof t=="string"&&t.trim().toLowerCase()==="session_revoked"?ye:userFacingError(e)}function userFacingError(e){return be[e]}function ke(e,t,i){Object.defineProperty(e,t,{value:i,enumerable:false,writable:false,configurable:false})}var xe=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(e,t){let i=contractErrorFor(t?.wireCode,t?.wireEnvelope),r=e==="conflict"&&t?.reasonCode===we,n={code:e,category:categoryFor(e),retryable:t?.retryable??(r?false:isRetryableCode(e)),displayMessage:ve(e,t?.wireCode,r?we:null)};t?.httpStatus!==void 0&&(n.httpStatus=t.httpStatus),t?.requestId&&(n.requestId=t.requestId),typeof t?.reasonCode=="string"&&xe.test(t.reasonCode)&&(n.reasonCode=t.reasonCode);let l=t?.retryAfterSeconds;if(typeof l=="number"&&Number.isFinite(l)&&l>=0&&(n.retryAfterSeconds=Math.round(l)),i);return t?.wireMessage&&ke(n,"wireMessage",t.wireMessage),t?.raw!==void 0&&t.raw!==null&&ke(n,"raw",t.raw),/* @__PURE__ */Object.freeze(n)}function Te(e){return e!=null&&(e.httpStatus===404||e.category==="notFound")}function Ie(e){return e.code!=="conversationNotFound"?e:makeEverfurError("resourceNotFound",{retryable:false,...e.httpStatus===void 0?{}:{httpStatus:e.httpStatus},...e.requestId===void 0?{}:{requestId:e.requestId},...e.reasonCode===void 0?{}:{reasonCode:e.reasonCode},...e.wireMessage===void 0?{}:{wireMessage:e.wireMessage},...e.raw===void 0?{}:{raw:e.raw}})}function Se(e){return e.ok?e:err(Ie(e.error))}function ze(e){return{send:async(...t)=>Se(await e.send(...t)),authorize:t=>e.authorize(t),stream:(t,i,r)=>e.stream(t,i,r)}}var De=/* @__PURE__ */Object.freeze({phase:"idle",petRef:null,plan:null,pending:/* @__PURE__ */Object.freeze([]),itemErrors:/* @__PURE__ */Object.freeze({}),error:null});function Ce(e,t,i){let r=e.items.map(e=>e.productId===t?/* @__PURE__ */Object.freeze({...e,inPlan:i}):e);/* @__PURE__ */
6
- return Object.freeze({...e,items:/* @__PURE__ */Object.freeze(r)})}var He=class{constructor(e){this.repository=e;this.snapshot=De;this.listeners=/* @__PURE__ */new Set;this.generation=0;this.writes=0;this.revalidations=0;this.refreshAfterWrites=false;this.disposed=false;this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});this.getSnapshot=()=>this.snapshot}set(e){if(!this.disposed){this.snapshot=/* @__PURE__ */Object.freeze({...this.snapshot,...e});for(let e of this.listeners)e()}}async load(petRef){let e=++this.generation;if(this.refreshAfterWrites=false,petRef===null){this.set({...De});return}let t=this.snapshot.petRef===petRef;this.set({phase:"loading",petRef:petRef,plan:t?this.snapshot.plan:null,pending:/* @__PURE__ */Object.freeze([]),itemErrors:t?this.snapshot.itemErrors:/* @__PURE__ */Object.freeze({}),error:null});let i=await this.repository.read(petRef);if(e===this.generation){if(!i.ok){this.set({phase:"failed",error:i.error});return}this.set({phase:"ready",plan:i.value,error:null,itemErrors:/* @__PURE__ */Object.freeze({})})}}async revalidate(){let{phase:e,petRef:petRef,pending:t}=this.snapshot;if(e!=="ready"||petRef===null||t.length>0)return;let i=this.generation,r=this.writes,n=++this.revalidations,l=await this.repository.read(petRef);i!==this.generation||r!==this.writes||n!==this.revalidations||this.snapshot.pending.length>0||this.snapshot.petRef!==petRef||l.ok&&this.set({plan:l.value,itemErrors:/* @__PURE__ */Object.freeze({})})}async refresh(){let{phase:e,petRef:petRef,pending:t}=this.snapshot;if(!(petRef===null||e==="idle")){if(e!=="ready")return this.load(petRef);if(t.length>0){this.refreshAfterWrites=true;return}return this.revalidate()}}settleWrite(){!this.refreshAfterWrites||this.snapshot.pending.length>0||(this.refreshAfterWrites=false,this.revalidate())}async setInPlan(e,t){let{plan:i,petRef:petRef,pending:r}=this.snapshot;if(this.snapshot.phase!=="ready"||i===null||petRef===null||r.includes(e))return false;let n=i.items.find(t=>t.productId===e);if(n===void 0||n.inPlan===t)return false;this.writes+=1;let l=this.generation,o=Object.fromEntries(Object.entries(this.snapshot.itemErrors).filter(([t])=>t!==e));this.set({plan:Ce(i,e,t),pending:/* @__PURE__ */Object.freeze([...r,e]),itemErrors:/* @__PURE__ */Object.freeze(o)});let a=t?await this.repository.addItem(petRef,e):await this.repository.removeItem(petRef,e);if(l!==this.generation)return a.ok;let s=this.snapshot.plan??i,c=/* @__PURE__ */Object.freeze(this.snapshot.pending.filter(t=>t!==e));if(!a.ok)return this.set({plan:Ce(s,e,n.inPlan),pending:c,itemErrors:/* @__PURE__ */Object.freeze({...this.snapshot.itemErrors,[e]:a.error})}),this.settleWrite(),false;let d=a.value??s;for(let e of c){let t=s.items.find(t=>t.productId===e);t!==void 0&&(d=Ce(d,e,t.inPlan))}return this.set({plan:d,pending:c}),this.settleWrite(),true}dispose(){this.generation+=1,this.disposed=true,this.listeners.clear()}};async function Fe(e,petRef,t){if(e.listOneBoxOrderPage!==void 0)return e.listOneBoxOrderPage(petRef,{limit:20,...{}});if(e.listOneBoxOrders===void 0)return{ok:true,value:{orders:[],nextCursor:null}};let i=await e.listOneBoxOrders(petRef);return i.ok?{ok:true,value:{orders:i.value,nextCursor:null}}:i}function errorFrame(e){/* @__PURE__ */
7
- return Object.freeze({kind:"error",terminal:true,code:e.code,retryable:e.retryable,wireMessage:e.wireMessage,synthesized:e.synthesized,lastEventId:e.lastEventId,serverRequestId:null,...e.freeCap?{freeCap:/* @__PURE__ */Object.freeze({...e.freeCap})}:{}})}var _e="x-everfur-anon-token",Oe="anonTokenInvalid";async function Ee(e){if(e.userRef!==null||e.anonIdentity===void 0)return null;try{return await e.anonIdentity.token()}catch{return null}}function Pe(e,t){let i=e instanceof Error?e.message:typeof e=="string"?e:null;return makeEverfurError("authRejected",{retryable:false,...t?.wireCode?{wireCode:t.wireCode}:{},...t?.requestId?{requestId:t.requestId}:{},...i?{wireMessage:i}:{},...e!=null?{raw:e}:{}})}function authHeaders(e){let t={};return e.mode==="personalized"?t.authorization=`Bearer ${e.token}`:(t["x-everfur-partner-key"]=e.publishableKey,e.anonToken&&(t[_e]=e.anonToken)),e.userRef&&(t["x-everfur-user-ref"]=e.userRef),e.sessionId&&(t["x-everfur-session-id"]=e.sessionId),t}function withAuthHeaders(e,t){return{...e,headers:{...Le(e.headers),...authHeaders(t)}}}function Le(e){if(!e)return{};let t={};for(let[i,r]of Object.entries(e)){let e=i.toLowerCase();e==="authorization"||e==="x-everfur-partner-key"||e===_e||(t[i]=r)}return t}async function authedSend(e,t){if(t.mode==="anonymous"){let i=await Ee(t),r=await t.transport.request(withAuthHeaders(e,Be(t,i)));if(r.ok||Re(r.error.raw)!==Oe||t.anonIdentity===void 0||t.userRef!==null)return r;let n=await t.anonIdentity.token({forceRefresh:true});return n===null||n===i?r:t.transport.request(withAuthHeaders(e,Be(t,n)))}let i;try{i=await t.identity.currentToken()}catch(e){return t.identity.reportRejected?.(),err(Pe(e))}let r=await t.transport.request(withAuthHeaders(e,{mode:"personalized",token:i,userRef:t.userRef,...t.sessionId?{sessionId:t.sessionId}:{}}));if(r.ok||r.error.httpStatus!==401)return r;let n;try{n=await t.identity.currentToken({forceRefresh:!0})}catch(e){return t.identity.reportRejected?.(),err(Pe(e,{wireCode:Re(r.error.raw),requestId:r.error.requestId}))}let l=await t.transport.request(withAuthHeaders(e,{mode:"personalized",token:n,userRef:t.userRef,...t.sessionId?{sessionId:t.sessionId}:{}}));return!l.ok&&l.error.httpStatus===401?(t.identity.reportRejected?.(),err(Ae(l.error))):l}function Be(e,t){return{mode:"anonymous",publishableKey:e.publishableKey,userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{},...t!==null?{anonToken:t}:{}}}function Ae(e){let t=e.raw,i=Re(t);return makeEverfurError("authRejected",{retryable:false,...e.httpStatus!==void 0?{httpStatus:e.httpStatus}:{},...e.requestId?{requestId:e.requestId}:{},...i?{wireCode:i}:{},...e.reasonCode?{reasonCode:e.reasonCode}:{},...e.wireMessage?{wireMessage:e.wireMessage}:{},...t!=null?{raw:t}:{}})}function Re(e){if(typeof e!="object"||e===null)return null;let t=e,i=(typeof t.error=="object"&&t.error!==null?t.error.code:void 0)??t.code;return typeof i=="string"&&i.length>0?i:null}function je(e,t){let i=globalThis.URL;if(typeof i=="function"){let r;try{r=t===void 0?new i(e):new i(e,t)}catch{return null}try{if(r.protocol)return r}catch{}}return Ne(e)}var $e=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,We=/[\s\u0000-\u001f\u007f\\]/,Me={"http:":"80","https:":"443"};function Ne(e,t){let i=e.trim();let r=We.test(i)?null:$e.exec(i);if(r===null)return null;let[,n="",l="",o="",a="",s="",c="",d="",u=""]=r,p=`${n.toLowerCase()}:`,h=Number(s);if(h>65535)return null;let g=s===""||String(h)===Me[p]?"":String(h),f=Me[p]!==void 0,m=a.toLowerCase()+(g&&`:${g}`),b=c||(f?"/":""),y=l||o?`${l}${o&&`:${o}`}@`:"";return{href:`${p}//${y}${m}${b}${d}${u}`,protocol:p,username:l,password:o,hostname:a.toLowerCase(),port:g,origin:f?`${p}//${m}`:"null",pathname:b,search:d==="?"?"":d,hash:u==="#"?"":u}}function networkError(e){return makeEverfurError("internalError",{retryable:true,wireMessage:Ge(e)})}function Ge(e){return e instanceof Error?e.message:typeof e=="string"?e:"network request failed"}var qe=3e4,Ue=he*2,Ve="idempotency-key",Ye=/* @__PURE__ */new Set(["POST","PUT","PATCH","DELETE"]),Xe=/* @__PURE__ */Object.freeze({onEvent(){}}),Ke=/* @__PURE__ */Object.freeze({setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),now:()=>Date.now()});function Qe(e){let t=e.trim().replace(/[^A-Za-z0-9_.:-]/g,"-");return t.length===0?null:`efs_${t}`.slice(0,128)}function createRequestFunnel(e){let t=e.observer??Xe,i=e.timers??Ke,r=e.rng??Math.random,n=e.sleep??((e,t)=>ht(e,i,t)),l=e.maxAttempts??ge,o=e.unaryTimeoutMs??qe,a=e.newIdempotencyKey??Ze(),s=e=>{try{t.onEvent(e)}catch{}};async function c(t,c,d){let u=d?.maxAttempts,p=Math.max(1,u??l),h=d?.idempotent??Ye.has(c.method),g=d?.idempotencyKey===void 0?null:Qe(d.idempotencyKey),f=h?g??a():null,m=Je(c,f),b=0;for(;;){let l=e=>/* @__PURE__ */Object.freeze({call:t,method:c.method,path:c.path,attempt:b,...f?{idempotencyKey:f}:{},...e});s(l({phase:"attempt"}));let a=ut(o,i),d=pt(a.signal,c.signal),h;try{h=await authedSend({...m,signal:d.signal},e.auth)}catch(e){h=err(networkError(e))}finally{d.dispose(),a.cancel()}if(h.ok)return s(l({phase:"settled",ok:true,reason:"ok"})),h;let g=h.error,y=tt(g,b,{maxAttempts:p,rng:r,now:i.now(),aborted:c.signal?.aborted===true,...u!==void 0?{perCallMaxAttempts:u}:{},...e.errorPolicy!==void 0?{policy:e.errorPolicy}:{}}),w={ok:false,code:g.code,reason:y.reason,...g.httpStatus!==void 0?{httpStatus:g.httpStatus}:{},...g.requestId!==void 0?{requestId:g.requestId}:{}};if(!y.retry)return s(l({phase:"settled",...w})),err(g);if(s(l({phase:"retry",...w,delayMs:y.delayMs})),await n(y.delayMs,c.signal),c.signal?.aborted===true)return s(l({phase:"settled",...w,reason:"aborted"})),err(g);b+=1}}async function d(t){return withAuthHeaders(t,await dt(e.auth))}async function*u(t,i,r){s(
4
+ return Object.freeze({ok:false,error:e})}var E=class _EverfurConfigError extends Error{constructor(e,t){super(t),this.name="EverfurConfigError",this.kind=e,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var P=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),L=globalThis,B=L[P]??(L[P]=createContext(null));B.displayName??="EverfurContext";function A(){let e=r(B);if(e===null)throw new E("not-initialized","Everfur hooks must be called inside <EverfurProvider>. Wrap your tree once, high.");return e}var R=()=>()=>{},j=()=>null;function $(e,t){return o(t?.subscribe??R,t?.get??j,t?.get??j)??e}var W=/* @__PURE__ */Object.freeze(["ask","vet","plan","records"]),M=/* @__PURE__ */Object.freeze({chatAnswerStyle:"cards",chatHistoryStyle:"sheet",chatTopCard:"focus",chatFollowUpCount:3,chatFollowUpsExcludeTelevet:false,chatComposerMic:true,chatComposerUpload:true,safetyDisclaimerPlacement:"composer",healthPlanLayout:"focus_plan",recordsTopRiskLine:true,recordsClearResultsFilter:true,chatComposerStyle:"compact",chatComposerPlaceholder:"pet_name",chatHistoryBar:"scroll",chatGeneralBanner:true,chatSendButton:"always_dark",chatTextingAsk:true,serverSlots:false,shellTabs:null,shellHeader:"classic"}),N=/* @__PURE__ */Object.freeze({chatAnswerStyle:"chat_answer_style",chatHistoryStyle:"chat_history_style",chatTopCard:"chat_top_card",chatFollowUpCount:"chat_follow_up_count",chatFollowUpsExcludeTelevet:"chat_follow_ups_exclude_televet",chatComposerMic:"chat_composer_mic",chatComposerUpload:"chat_composer_upload",safetyDisclaimerPlacement:"safety_disclaimer_placement",healthPlanLayout:"health_plan_layout",recordsTopRiskLine:"records_top_risk_line",recordsClearResultsFilter:"records_clear_results_filter",chatComposerStyle:"chat_composer_style",chatComposerPlaceholder:"chat_composer_placeholder",chatHistoryBar:"chat_history_bar",chatGeneralBanner:"chat_general_banner",chatSendButton:"chat_send_button",chatTextingAsk:"chat_texting_ask",serverSlots:"server_slots",shellTabs:"shell_tabs",shellHeader:"shell_header"}),G=Object.keys(N),q="presentation",U="presentation.";var V={chatAnswerStyle:["bubbles","cards"],chatHistoryStyle:["drawer","sheet"],chatTopCard:["none","focus"],safetyDisclaimerPlacement:["composer","answer_footer","none"],healthPlanLayout:["standard","focus_plan"],chatComposerStyle:["standard","compact"],chatComposerPlaceholder:["generic","pet_name"],chatHistoryBar:["pinned","scroll"],chatSendButton:["always_dark","dim_when_empty"],shellHeader:["classic","tabs_bar"]};function Y(e){if(!Array.isArray(e)||e.length===0)return;let t=/* @__PURE__ */new Set;for(let i of e){if(typeof i!="string"||!W.includes(i)||t.has(i))return;t.add(i)}/* @__PURE__ */
5
+ return Object.freeze([...e])}var X=/* @__PURE__ */new Set(["chatFollowUpsExcludeTelevet","chatComposerMic","chatComposerUpload","recordsTopRiskLine","recordsClearResultsFilter","chatGeneralBanner","chatTextingAsk","serverSlots"]);function K(e,t){if(t==null)return;if(e==="shellTabs")return Y(t);let i=V[e];return i!==void 0?typeof t=="string"&&i.includes(t)?t:void 0:X.has(e)?typeof t=="boolean"?t:void 0:typeof t=="number"&&Number.isInteger(t)&&t>=0&&t<=3?t:void 0}function parsePresentation(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,i={};for(let e of G){let r=N[e],n=Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[e],l=K(e,n);l!==void 0&&(i[e]=l)}return Object.keys(i).length===0?null:/* @__PURE__ */Object.freeze(i)}function isPresentationFieldLocked(e,t){if(t==null)return false;let i=`${U}${N[e]}`;for(let e of t)if(e===q||e===i)return true;return false}function resolvePresentation(e){let t=parsePresentation(e?.server??null)??{},{safetyDisclaimerPlacement:i,...r}=t,n=i==="none"||i===void 0?r:{...r,safetyDisclaimerPlacement:i},l=parsePresentation(e?.client??null)??{},o=e?.locked?[...e.locked]:null,a={};for(let e of G){let t=n[e],i=isPresentationFieldLocked(e,o)?void 0:l[e];a[e]=i??t??M[e]}/* @__PURE__ */
6
+ return Object.freeze(a)}var Q=/* @__PURE__ */Object.freeze({branding:null}),J=/* @__PURE__ */Object.freeze({subscribe:()=>()=>{},getSnapshot:()=>Q});function Z(e){return e?Object.keys(e).sort().map(t=>`${t}=${String(e[t])}`).join("&"):""}function useEverfurPresentation(e){return ee(e).presentation}function ee(e){let{runtime:t}=A(),r=t?.entitlements??J,n=s(()=>r.getSnapshot()?.branding??null,[r]),l=$(o(r.subscribe,n,n),t?.sdkConfigHost?.branding),a=Z(e);return i(()=>{let t=l?.lockedFields??null;return{presentation:resolvePresentation({server:l?.presentation??null,locked:t,client:e??null}),isLocked:e=>isPresentationFieldLocked(e,t)}},[l,a])}var te=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotSwitchContext@v1"),ie=globalThis,re=ie[te]??(ie[te]=createContext(null));re.displayName??="EverfurSlotSwitch";function ne(e){let t=r(re),i=useEverfurPresentation(e===void 0?void 0:{serverSlots:e}).serverSlots;return e!==void 0||t===null?i:t}var le=[{wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true},{wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false},{wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false},{wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"anchor_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"anchor_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"anonTokenInvalid",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true},{wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"before_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundle_mismatch",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundle_not_uploaded",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundles_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"catalog_empty_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"catalog_shrink_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"endpoint_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"environment_mismatch",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"inbox_cursor_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false},{wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"item_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"linked_account_read_only",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false},{wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"open_url_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false},{wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"read_target_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"restricted_key",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_revoked",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false},{wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true},{wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"subscription_keys_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"ticket_not_resolved",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tickets_disabled",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"timezone_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"unrestrictedKeyRequired",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"user_ref_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"web_push_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false}],oe=/* @__PURE__ */Object.freeze(le.map(e=>/* @__PURE__ */Object.freeze(e)));/* @__PURE__ */Object.freeze(oe.map(e=>e.wireCode));var ae=/* @__PURE__ */Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",session_revoked:"authExpired",anonTokenInvalid:"authRejected",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",unrestrictedKeyRequired:"accessDenied",user_ref_invalid:"validationFailed",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict",linked_account_read_only:"conflict",catalog_empty_refused:"conflict",catalog_shrink_refused:"conflict",endpoint_not_allowed:"validationFailed",event_id_invalid:"validationFailed",inbox_cursor_invalid:"validationFailed",item_id_invalid:"validationFailed",open_url_not_allowed:"validationFailed",read_target_invalid:"validationFailed",subscription_keys_invalid:"validationFailed",web_push_unavailable:"serviceUnavailable",anchor_not_found:"resourceNotFound",anchor_ref_invalid:"validationFailed",before_invalid:"validationFailed",bundle_mismatch:"validationFailed",bundle_not_uploaded:"validationFailed",bundles_unavailable:"serviceUnavailable",environment_mismatch:"validationFailed",restricted_key:"accessDenied",ticket_not_resolved:"conflict",tickets_disabled:"resourceNotFound",timezone_invalid:"validationFailed"}),se=/* @__PURE__ */Object.freeze(oe.map(e=>/* @__PURE__ */Object.freeze({wireCode:e.wireCode,envelope:e.envelope,retryable:e.retryable,normalized:ae[e.wireCode]}))),ce=new Map(se.map(e=>[e.envelope+e.wireCode.toUpperCase(),e])),de=/* @__PURE__ */Object.freeze(["http_envelope",...[...new Set(se.map(e=>e.envelope))].filter(e=>e!=="http_envelope").sort()]);function contractErrorFor(e,t){if(typeof e!="string")return;let i=e.trim().toUpperCase();if(i.length!==0)for(let e of[t??"http_envelope",...de]){let t=ce.get(e+i);if(t)return t}}var ue=/* @__PURE__ */Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",identitySignatureRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",runtimeDisposed:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function categoryFor(e){return ue[e]}function fromWire(e){let t=contractErrorFor(e);if(t)return t.normalized;let i=(e??"").trim().toUpperCase(),r=i.replace(/[^A-Z0-9]/g,"");if(r==="AUTHREJECTED")return"authRejected";if(i.startsWith("AUTH"))return"authExpired";switch(r){case"DAILYQUOTAEXCEEDED":case"QUOTAEXCEEDED":return"quotaExceeded";case"RATELIMITED":case"TOOMANYREQUESTS":case"TELEVETRATELIMITED":return"rateLimited";case"IDEMPOTENCYKEYCONFLICT":case"IDEMPOTENCYCONFLICT":return"idempotencyConflict";case"ACCESSDENIED":case"FORBIDDEN":return"accessDenied";case"IDENTITYSIGNATUREREQUIRED":return"identitySignatureRequired";case"FREECAPREACHED":return"paymentRequired";case"RUNTIMEDISPOSED":return"runtimeDisposed";case"NOTFOUND":case"CONVERSATIONNOTFOUND":return"conversationNotFound";case"PETNOTFOUND":return"petNotFound";case"TIMEOUT":case"STREAMTIMEOUT":return"streamTimeout";case"MEDIAUPLOADFAILED":case"UNRECOGNIZEDVIDEOFORMAT":case"FILETOOSMALL":return"mediaUploadFailed";case"MODERATIONBLOCKED":return"moderationBlocked";case"UPSTREAMLLMTIMEOUT":return"upstreamLlmTimeout";case"INTERNALERROR":case"INTERNALSERVERERROR":return"internalError";case"STREAMINCOMPLETE":case"CHATSTREAMINCOMPLETE":return"streamIncomplete";case"INVALIDANALYSISTYPE":case"INVALIDUPLOADPURPOSE":return"unknown";default:return"unknown"}}var pe=/* @__PURE__ */new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function isAutoRetryable(e){return pe.has(e)}var he=/* @__PURE__ */new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function isRetryableCode(e){return isAutoRetryable(e)||he.has(e)}var ge=500,fe=8e3,me=4;function backoffDelayMs(e,t=Math.random){let i=Math.max(0,e),r=Math.min(ge*2**i,fe);return Math.floor(t()*r)}var be="This feature isn't available on your account right now.",ye="Something in that request was not right. Check the details and try again.",we=/* @__PURE__ */Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:be,paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:ye,sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",identitySignatureRequired:be,runtimeDisposed:ye,unknown:"Something went wrong. Please try again."}),ve="This session has ended. Please sign in again.",ke="linked_account_read_only";function xe(e,t,i){return e==="conflict"&&i===ke?be:(e==="authRejected"||e==="authExpired")&&typeof t=="string"&&t.trim().toLowerCase()==="session_revoked"?ve:userFacingError(e)}function userFacingError(e){return we[e]}function Te(e,t,i){Object.defineProperty(e,t,{value:i,enumerable:false,writable:false,configurable:false})}var Ie=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(e,t){let i=contractErrorFor(t?.wireCode,t?.wireEnvelope),r=e==="conflict"&&t?.reasonCode===ke,n={code:e,category:categoryFor(e),retryable:t?.retryable??(r?false:isRetryableCode(e)),displayMessage:xe(e,t?.wireCode,r?ke:null)};t?.httpStatus!==void 0&&(n.httpStatus=t.httpStatus),t?.requestId&&(n.requestId=t.requestId),typeof t?.reasonCode=="string"&&Ie.test(t.reasonCode)&&(n.reasonCode=t.reasonCode);let l=t?.retryAfterSeconds;if(typeof l=="number"&&Number.isFinite(l)&&l>=0&&(n.retryAfterSeconds=Math.round(l)),i);return t?.wireMessage&&Te(n,"wireMessage",t.wireMessage),t?.raw!==void 0&&t.raw!==null&&Te(n,"raw",t.raw),/* @__PURE__ */Object.freeze(n)}function Se(e){return e!=null&&(e.httpStatus===404||e.category==="notFound")}function ze(e){return e.code!=="conversationNotFound"?e:makeEverfurError("resourceNotFound",{retryable:false,...e.httpStatus===void 0?{}:{httpStatus:e.httpStatus},...e.requestId===void 0?{}:{requestId:e.requestId},...e.reasonCode===void 0?{}:{reasonCode:e.reasonCode},...e.wireMessage===void 0?{}:{wireMessage:e.wireMessage},...e.raw===void 0?{}:{raw:e.raw}})}function De(e){return e.ok?e:err(ze(e.error))}function Ce(e){return{send:async(...t)=>De(await e.send(...t)),authorize:t=>e.authorize(t),stream:(t,i,r)=>e.stream(t,i,r)}}var He=/* @__PURE__ */Object.freeze({phase:"idle",petRef:null,plan:null,pending:/* @__PURE__ */Object.freeze([]),itemErrors:/* @__PURE__ */Object.freeze({}),error:null});function Fe(e,t,i){let r=e.items.map(e=>e.productId===t?/* @__PURE__ */Object.freeze({...e,inPlan:i}):e);/* @__PURE__ */
7
+ return Object.freeze({...e,items:/* @__PURE__ */Object.freeze(r)})}var _e=class{constructor(e){this.repository=e;this.snapshot=He;this.listeners=/* @__PURE__ */new Set;this.generation=0;this.writes=0;this.revalidations=0;this.refreshAfterWrites=false;this.disposed=false;this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});this.getSnapshot=()=>this.snapshot}set(e){if(!this.disposed){this.snapshot=/* @__PURE__ */Object.freeze({...this.snapshot,...e});for(let e of this.listeners)e()}}async load(petRef){let e=++this.generation;if(this.refreshAfterWrites=false,petRef===null){this.set({...He});return}let t=this.snapshot.petRef===petRef;this.set({phase:"loading",petRef:petRef,plan:t?this.snapshot.plan:null,pending:/* @__PURE__ */Object.freeze([]),itemErrors:t?this.snapshot.itemErrors:/* @__PURE__ */Object.freeze({}),error:null});let i=await this.repository.read(petRef);if(e===this.generation){if(!i.ok){this.set({phase:"failed",error:i.error});return}this.set({phase:"ready",plan:i.value,error:null,itemErrors:/* @__PURE__ */Object.freeze({})})}}async revalidate(){let{phase:e,petRef:petRef,pending:t}=this.snapshot;if(e!=="ready"||petRef===null||t.length>0)return;let i=this.generation,r=this.writes,n=++this.revalidations,l=await this.repository.read(petRef);i!==this.generation||r!==this.writes||n!==this.revalidations||this.snapshot.pending.length>0||this.snapshot.petRef!==petRef||l.ok&&this.set({plan:l.value,itemErrors:/* @__PURE__ */Object.freeze({})})}async refresh(){let{phase:e,petRef:petRef,pending:t}=this.snapshot;if(!(petRef===null||e==="idle")){if(e!=="ready")return this.load(petRef);if(t.length>0){this.refreshAfterWrites=true;return}return this.revalidate()}}settleWrite(){!this.refreshAfterWrites||this.snapshot.pending.length>0||(this.refreshAfterWrites=false,this.revalidate())}async setInPlan(e,t){let{plan:i,petRef:petRef,pending:r}=this.snapshot;if(this.snapshot.phase!=="ready"||i===null||petRef===null||r.includes(e))return false;let n=i.items.find(t=>t.productId===e);if(n===void 0||n.inPlan===t)return false;this.writes+=1;let l=this.generation,o=Object.fromEntries(Object.entries(this.snapshot.itemErrors).filter(([t])=>t!==e));this.set({plan:Fe(i,e,t),pending:/* @__PURE__ */Object.freeze([...r,e]),itemErrors:/* @__PURE__ */Object.freeze(o)});let a=t?await this.repository.addItem(petRef,e):await this.repository.removeItem(petRef,e);if(l!==this.generation)return a.ok;let s=this.snapshot.plan??i,c=/* @__PURE__ */Object.freeze(this.snapshot.pending.filter(t=>t!==e));if(!a.ok)return this.set({plan:Fe(s,e,n.inPlan),pending:c,itemErrors:/* @__PURE__ */Object.freeze({...this.snapshot.itemErrors,[e]:a.error})}),this.settleWrite(),false;let d=a.value??s;for(let e of c){let t=s.items.find(t=>t.productId===e);t!==void 0&&(d=Fe(d,e,t.inPlan))}return this.set({plan:d,pending:c}),this.settleWrite(),true}dispose(){this.generation+=1,this.disposed=true,this.listeners.clear()}};async function Oe(e,petRef,t){if(e.listOneBoxOrderPage!==void 0)return e.listOneBoxOrderPage(petRef,{limit:20,...{}});if(e.listOneBoxOrders===void 0)return{ok:true,value:{orders:[],nextCursor:null}};let i=await e.listOneBoxOrders(petRef);return i.ok?{ok:true,value:{orders:i.value,nextCursor:null}}:i}function errorFrame(e){/* @__PURE__ */
8
+ return Object.freeze({kind:"error",terminal:true,code:e.code,retryable:e.retryable,wireMessage:e.wireMessage,synthesized:e.synthesized,lastEventId:e.lastEventId,serverRequestId:null,...e.freeCap?{freeCap:/* @__PURE__ */Object.freeze({...e.freeCap})}:{}})}var Ee="x-everfur-anon-token",Pe="anonTokenInvalid";async function Le(e){if(e.userRef!==null||e.anonIdentity===void 0)return null;try{return await e.anonIdentity.token()}catch{return null}}function Be(e,t){let i=e instanceof Error?e.message:typeof e=="string"?e:null;return makeEverfurError("authRejected",{retryable:false,...t?.wireCode?{wireCode:t.wireCode}:{},...t?.requestId?{requestId:t.requestId}:{},...i?{wireMessage:i}:{},...e!=null?{raw:e}:{}})}function authHeaders(e){let t={};return e.mode==="personalized"?t.authorization=`Bearer ${e.token}`:(t["x-everfur-partner-key"]=e.publishableKey,e.anonToken&&(t[Ee]=e.anonToken)),e.userRef&&(t["x-everfur-user-ref"]=e.userRef),e.sessionId&&(t["x-everfur-session-id"]=e.sessionId),t}function withAuthHeaders(e,t){return{...e,headers:{...Ae(e.headers),...authHeaders(t)}}}function Ae(e){if(!e)return{};let t={};for(let[i,r]of Object.entries(e)){let e=i.toLowerCase();e==="authorization"||e==="x-everfur-partner-key"||e===Ee||(t[i]=r)}return t}async function authedSend(e,t){if(t.mode==="anonymous"){let i=await Le(t),r=await t.transport.request(withAuthHeaders(e,Re(t,i)));if(r.ok||$e(r.error.raw)!==Pe||t.anonIdentity===void 0||t.userRef!==null)return r;let n=await t.anonIdentity.token({forceRefresh:true});return n===null||n===i?r:t.transport.request(withAuthHeaders(e,Re(t,n)))}let i;try{i=await t.identity.currentToken()}catch(e){return t.identity.reportRejected?.(),err(Be(e))}let r=await t.transport.request(withAuthHeaders(e,{mode:"personalized",token:i,userRef:t.userRef,...t.sessionId?{sessionId:t.sessionId}:{}}));if(r.ok||r.error.httpStatus!==401)return r;let n;try{n=await t.identity.currentToken({forceRefresh:!0})}catch(e){return t.identity.reportRejected?.(),err(Be(e,{wireCode:$e(r.error.raw),requestId:r.error.requestId}))}let l=await t.transport.request(withAuthHeaders(e,{mode:"personalized",token:n,userRef:t.userRef,...t.sessionId?{sessionId:t.sessionId}:{}}));return!l.ok&&l.error.httpStatus===401?(t.identity.reportRejected?.(),err(je(l.error))):l}function Re(e,t){return{mode:"anonymous",publishableKey:e.publishableKey,userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{},...t!==null?{anonToken:t}:{}}}function je(e){let t=e.raw,i=$e(t);return makeEverfurError("authRejected",{retryable:false,...e.httpStatus!==void 0?{httpStatus:e.httpStatus}:{},...e.requestId?{requestId:e.requestId}:{},...i?{wireCode:i}:{},...e.reasonCode?{reasonCode:e.reasonCode}:{},...e.wireMessage?{wireMessage:e.wireMessage}:{},...t!=null?{raw:t}:{}})}function $e(e){if(typeof e!="object"||e===null)return null;let t=e,i=(typeof t.error=="object"&&t.error!==null?t.error.code:void 0)??t.code;return typeof i=="string"&&i.length>0?i:null}function We(e,t){let i=globalThis.URL;if(typeof i=="function"){let r;try{r=t===void 0?new i(e):new i(e,t)}catch{return null}try{if(r.protocol)return r}catch{}}return qe(e)}var Me=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,Ne=/[\s\u0000-\u001f\u007f\\]/,Ge={"http:":"80","https:":"443"};function qe(e,t){let i=e.trim();let r=Ne.test(i)?null:Me.exec(i);if(r===null)return null;let[,n="",l="",o="",a="",s="",c="",d="",u=""]=r,p=`${n.toLowerCase()}:`,h=Number(s);if(h>65535)return null;let g=s===""||String(h)===Ge[p]?"":String(h),f=Ge[p]!==void 0,m=a.toLowerCase()+(g&&`:${g}`),b=c||(f?"/":""),y=l||o?`${l}${o&&`:${o}`}@`:"";return{href:`${p}//${y}${m}${b}${d}${u}`,protocol:p,username:l,password:o,hostname:a.toLowerCase(),port:g,origin:f?`${p}//${m}`:"null",pathname:b,search:d==="?"?"":d,hash:u==="#"?"":u}}function networkError(e){return makeEverfurError("internalError",{retryable:true,wireMessage:Ue(e)})}function Ue(e){return e instanceof Error?e.message:typeof e=="string"?e:"network request failed"}var Ve=3e4,Ye=fe*2,Xe="idempotency-key",Ke=/* @__PURE__ */new Set(["POST","PUT","PATCH","DELETE"]),Qe=/* @__PURE__ */Object.freeze({onEvent(){}}),Je=/* @__PURE__ */Object.freeze({setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),now:()=>Date.now()});function Ze(e){let t=e.trim().replace(/[^A-Za-z0-9_.:-]/g,"-");return t.length===0?null:`efs_${t}`.slice(0,128)}function createRequestFunnel(e){let t=e.observer??Qe,i=e.timers??Je,r=e.rng??Math.random,n=e.sleep??((e,t)=>ft(e,i,t)),l=e.maxAttempts??me,o=e.unaryTimeoutMs??Ve,a=e.newIdempotencyKey??tt(),s=e=>{try{t.onEvent(e)}catch{}};async function c(t,c,d){let u=d?.maxAttempts,p=Math.max(1,u??l),h=d?.idempotent??Ke.has(c.method),g=d?.idempotencyKey===void 0?null:Ze(d.idempotencyKey),f=h?g??a():null,m=et(c,f),b=0;for(;;){let l=e=>/* @__PURE__ */Object.freeze({call:t,method:c.method,path:c.path,attempt:b,...f?{idempotencyKey:f}:{},...e});s(l({phase:"attempt"}));let a=ht(o,i),d=gt(a.signal,c.signal),h;try{h=await authedSend({...m,signal:d.signal},e.auth)}catch(e){h=err(networkError(e))}finally{d.dispose(),a.cancel()}if(h.ok)return s(l({phase:"settled",ok:true,reason:"ok"})),h;let g=h.error,y=rt(g,b,{maxAttempts:p,rng:r,now:i.now(),aborted:c.signal?.aborted===true,...u!==void 0?{perCallMaxAttempts:u}:{},...e.errorPolicy!==void 0?{policy:e.errorPolicy}:{}}),w={ok:false,code:g.code,reason:y.reason,...g.httpStatus!==void 0?{httpStatus:g.httpStatus}:{},...g.requestId!==void 0?{requestId:g.requestId}:{}};if(!y.retry)return s(l({phase:"settled",...w})),err(g);if(s(l({phase:"retry",...w,delayMs:y.delayMs})),await n(y.delayMs,c.signal),c.signal?.aborted===true)return s(l({phase:"settled",...w,reason:"aborted"})),err(g);b+=1}}async function d(t){return withAuthHeaders(t,await pt(e.auth))}async function*u(t,i,r){s(
8
9
  /* @__PURE__ */Object.freeze({call:t,phase:"stream.open",method:i.method,path:i.path,attempt:0}));try{yield*e.auth.transport.stream(i,r)}catch{yield errorFrame({code:"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null})}}/* @__PURE__ */
9
- return Object.freeze({send:c,authorize:d,stream:u})}function Je(e,t){let i={};for(let[t,r]of Object.entries(e.headers??{}))t.toLowerCase()!==Ve&&(i[t]=r);return t!==null&&(i["Idempotency-Key"]=t),{...e,headers:i}}function Ze(){let e=0;return()=>`efk_${Date.now().toString(36)}_${(e++).toString(36)}_${Math.random().toString(36).slice(2,12)}`}var et=10;function tt(e,t,i){if(i.aborted)return{retry:false,reason:"aborted"};let r=it(e);if(r==="quota")return{retry:false,reason:"daily-quota-exhausted"};if(r!=="burst"&&!isAutoRetryable(e.code))return{retry:false,reason:"terminal-code"};let n=r==="burst"?"burst-throttle":"retryable-code";if((()=>{if(i.policy===void 0)return false;try{return!i.policy.shouldRetry(e.code,t)}catch{return false}})())return{retry:false,reason:"terminal-code"};let l=()=>{if(i.policy===void 0)return null;let t;try{t=i.policy.maxAttempts(e.code)}catch{return null}return typeof t!="number"||!Number.isFinite(t)?null:Math.max(1,Math.min(et,Math.floor(t)))},o=i.perCallMaxAttempts??l()??i.maxAttempts;if(t+1>=o)return{retry:false,reason:"attempts-exhausted"};let a=rt(e,i.now);return a!==null?a>Ue?{retry:false,reason:"server-reset-beyond-budget"}:{retry:true,reason:n,delayMs:a}:{retry:true,reason:n,delayMs:backoffDelayMs(t,i.rng)}}function it(e){let t=e.code==="unknown"?fromWire(st(e.raw)):e.code;return t==="quotaExceeded"?"quota":t==="rateLimited"||e.httpStatus===429?"burst":null}function rt(e,t){let i=lt(e.raw);if(i!==null){let e=i-t;return e>0?e:0}let r=nt(e.raw);return r===null?null:Math.round(r*1e3)}function nt(e){for(let t of ot(e)){let e=t.retry_after_seconds;if(typeof e=="number"&&Number.isFinite(e)&&e>=0)return e}return null}function lt(e){for(let t of ot(e)){let e=t.resets_at,i=at(e);if(i!==null)return i}return null}function ot(e){if(!ct(e))return[];let t=[e];for(let i of["error","detail"]){let r=e[i];ct(r)&&t.push(r)}return t}function at(e){if(typeof e=="number"&&Number.isFinite(e))return e<1e11?Math.round(e*1e3):Math.round(e);if(typeof e=="string"&&e.trim().length>0){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function st(e){for(let t of ot(e)){let e=t.code;if(typeof e=="string"&&e.length>0)return e}return null}function ct(e){return typeof e=="object"&&e!==null}async function dt(e){if(e.mode==="anonymous"){let t=await Ee(e);return{mode:"anonymous",publishableKey:e.publishableKey,userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{},...t!==null?{anonToken:t}:{}}}return{mode:"personalized",token:await e.identity.currentToken(),userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{}}}function ut(e,t){let i=new AbortController,r=t.setTimeout(()=>i.abort(),e);return{signal:i.signal,cancel:()=>t.clearTimeout(r)}}function pt(e,t){let i=()=>{};if(!t)return{signal:e,dispose:i};let r=new AbortController;if(e.aborted||t.aborted)return r.abort(),{signal:r.signal,dispose:i};let n=()=>r.abort();return e.addEventListener("abort",n,{once:true}),t.addEventListener("abort",n,{once:true}),{signal:r.signal,dispose:()=>{e.removeEventListener("abort",n),t.removeEventListener("abort",n)}}}function ht(e,t,i){return e<=0||i?.aborted===true?Promise.resolve():new Promise(r=>{let n=t.setTimeout(()=>{i?.removeEventListener("abort",l),r()},e),l=()=>{t.clearTimeout(n),r()};i?.addEventListener("abort",l,{once:true})})}var gt=/* @__PURE__ */Object.freeze(["dna","records","inside","profile"]),ft=128;function mt(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function bt(e){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${e} was called after unmount`})}function yt(e){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${e}: the response carried no plan`})}var wt=(e,t=4e3)=>typeof e=="string"&&e.trim().length>0&&e.length<=t?e.trim():null;function vt(e){let t=wt(e,2048);return t===null?null:/^https:\/\/[^\s]+$/i.test(t)?t:null}function kt(e){let t=typeof e=="number"?e:typeof e=="string"&&/^\d+(\.\d+)?$/.test(e.trim())?Number(e):Number.NaN;return Number.isFinite(t)&&t>=0?t:null}function xt(e){return typeof e=="string"&&/^[A-Za-z]{3}$/.test(e)?e.toUpperCase():null}function Tt(e){if(!Array.isArray(e))/* @__PURE__ */return Object.freeze([]);let t=[];for(let i of e){if(i===null||typeof i!="object")continue;let e=i,r=wt(e.text,1e3);if(r===null)continue;let n=typeof e.kind=="string"&&gt.includes(e.kind)?e.kind:"profile";t.push(/* @__PURE__ */Object.freeze({kind:n,text:r}))}/* @__PURE__ */
10
- return Object.freeze(t)}var It=6;function St(e){return typeof e=="number"&&Number.isFinite(e)&&e>=0&&e<=400?e:null}function zt(e,t,i){if(!Array.isArray(e))/* @__PURE__ */return Object.freeze([]);let r=[];for(let n of e){if(r.length>=i)break;if(n===null||typeof n!="object"||Array.isArray(n))continue;let e=t(n);e!==null&&r.push(e)}/* @__PURE__ */
11
- return Object.freeze(r)}function Dt(e){let t=wt(e.title,80),i=wt(e.body,600);return t===null||i===null?null:/* @__PURE__ */Object.freeze({title:t,body:i})}function Ct(e){if(e===null||typeof e!="object"||Array.isArray(e))return;let t=e,i=[];if(Array.isArray(t.gallery))for(let e of t.gallery){let t=vt(e);t!==null&&i.length<It&&i.push(t)}let r=zt(t.doses,e=>{let t=wt(e.label,60),i=wt(e.amount,60);return t===null||i===null?null:/* @__PURE__ */Object.freeze({label:t,amount:i,minLb:St(e.minLb??e.min_lb),maxLb:St(e.maxLb??e.max_lb)})},It),n=zt(t.details,Dt,It),l=t.fit,o=l!==null&&typeof l=="object"&&!Array.isArray(l)?Dt(l):null,a=o!==null&&l.pet===true?/* @__PURE__ */Object.freeze({...o,pet:true}):o,s=/* @__PURE__ */Object.freeze({kicker:wt(t.kicker,80),gallery:/* @__PURE__ */Object.freeze(i),doses:r,details:n,fine:wt(t.fine,300),fit:a});return s.kicker===null&&i.length===0&&r.length===0&&n.length===0&&s.fine===null&&a===null?void 0:s}function Ht(e){let t=typeof e.rating=="number"&&Number.isFinite(e.rating)&&e.rating>=0&&e.rating<=5?Math.round(e.rating*10)/10:null,i=typeof e.review_count=="number"&&Number.isInteger(e.review_count)&&e.review_count>=0?e.review_count:null,r=zt(e.reviews,e=>{let t=typeof e.stars=="number"&&Number.isInteger(e.stars)&&e.stars>=1&&e.stars<=5?e.stars:null,i=wt(e.text,300),r=wt(e.by,80);return t===null||i===null||r===null?null:/* @__PURE__ */Object.freeze({stars:t,text:i,by:r})},5),n=[];if(Array.isArray(e.ingredients))for(let t of e.ingredients){let e=wt(t,60);e!==null&&n.length<12&&n.push(e)}let l=Ct(e.detail);return{...t===null?{}:{rating:t},...i===null?{}:{reviewCount:i},...r.length===0?{}:{reviews:r},...n.length===0?{}:{ingredients:/* @__PURE__ */Object.freeze(n)},...l===void 0?{}:{detail:l}}}function Ft(e){if(e===null||typeof e!="object")return null;let t=e,i=t.product_id,r=typeof i=="number"&&Number.isInteger(i)?String(i):wt(i,ft),n=wt(t.title,300);return r===null||n===null?null:/* @__PURE__ */Object.freeze({productId:r,partnerSku:wt(t.partner_sku,200),title:n,description:wt(t.description),category:wt(t.category,60),price:kt(t.price),currency:xt(t.currency),imageUrl:vt(t.image_url),url:vt(t.url),reasons:Tt(t.reasons),inPlan:t.in_plan===true,sample:t.sample===true,...Ht(t)})}function healthPlanFromWire(e,petRef){if(e===null||typeof e!="object")return null;let t=e;if(!Array.isArray(t.items))return null;let i=[],r=/* @__PURE__ */new Set;for(let e of t.items){let t=Ft(e);t===null||r.has(t.productId)||(r.add(t.productId),i.push(t))}/* @__PURE__ */
12
- return Object.freeze({petRef:wt(t.pet_ref,ft)??petRef,headline:wt(t.headline,300),items:/* @__PURE__ */Object.freeze(i),updatedAt:wt(t.updated_at,64),...t.tracking_texts_enabled===true?{trackingTextsEnabled:true}:{}})}function _t(e){return typeof e=="string"&&e.length>0&&e.length<=ft}function Ot(petRef){return`/widget/v1/pets/${encodeURIComponent(petRef)}/plan`}function createHealthPlanRepository(e){let t=()=>{let{services:t}=e.registry;return createHealthPlanRepositoryOver({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}})};return{read:(petRef,i)=>e.isDisposed?Promise.resolve(err(bt("read"))):t().read(petRef,i),addItem:(petRef,i)=>e.isDisposed?Promise.resolve(err(bt("addItem"))):t().addItem(petRef,i),removeItem:(petRef,i)=>e.isDisposed?Promise.resolve(err(bt("removeItem"))):t().removeItem(petRef,i)}}function createHealthPlanRepositoryOver(e){let t=ze(e.funnel??createRequestFunnel({auth:e.auth,...e.errorPolicy?{errorPolicy:e.errorPolicy}:{}})),i=async(e,petRef,i)=>{if(!_t(petRef))return err(mt("petRef must be 1..128 characters"));if(!_t(i))return err(mt("productId must be 1..128 characters"));let r=e==="PUT"?"healthPlan.item.add":"healthPlan.item.remove",n=await t.send(r,{method:e,path:`${Ot(petRef)}/items/${encodeURIComponent(i)}`});return n.ok?n.value===null||n.value===void 0||n.value===""?ok(null):ok(healthPlanFromWire(n.value,petRef)):err(n.error)};return{async read(petRef,e){if(!_t(petRef))return err(mt("petRef must be 1..128 characters"));let i={method:"GET",path:Ot(petRef),...e?.signal?{signal:e.signal}:{}},r=await t.send("healthPlan.read",i);if(!r.ok)return err(r.error);let n=healthPlanFromWire(r.value,petRef);return n===null?err(yt("healthPlan.read")):ok(n)},addItem:(petRef,e)=>i("PUT",petRef,e),removeItem:(petRef,e)=>i("DELETE",petRef,e)}}function Et(e,t){let[i,r]=n(e),o=a(false);return l(()=>{let t=i;return o.current&&(t=e(),r(t)),o.current=true,()=>t.dispose()},t),i}function Pt(e){let t=globalThis.console;try{t?.error?.("[everfur] A host callback threw; the SDK ignored it.",e)}catch{}}function Lt(e){return(typeof e=="object"||typeof e=="function")&&e!==null&&typeof e.then=="function"}function Bt(e,...t){if(typeof e=="function")try{let i=e(...t);return Lt(i)&&Promise.resolve(i).then(void 0,Pt),i}catch(e){Pt(e);return}}var At=/* @__PURE__ */new WeakMap;function Rt(e){if(typeof e!="function")return;let t=At.get(e);if(t!==void 0)return t;let i=(...t)=>{Bt(e,...t)};return At.set(e,i),i}function jt(e,t){let i=null;for(let r of t){let t=e[r];typeof t=="function"&&(i??={...e},i[r]=Rt(t))}return i??e}var $t=6e4;function Wt({lifecycle:e,refreshKey:t,readyAt:i,revalidate:r,refresh:n,now:o=Date.now}){let s=a({readyAt:i,revalidate:r,refresh:n??r,now:o});s.current={readyAt:i,revalidate:r,refresh:n??r,now:o},l(()=>{if(e==null)return;let t=Bt(()=>e.onForeground(()=>{let{readyAt:e,revalidate:t,now:i}=s.current;e!==null&&i()-e>=$t&&t()}));return()=>{typeof t=="function"&&Bt(t)}},[e]);let c=a(t);l(()=>{Object.is(c.current,t)||(c.current=t,s.current.refresh())},[t])}function healthPlanCart(e){let t=/* @__PURE__ */Object.freeze((e?.items??[]).filter(e=>e.inPlan));if(t.length===0)/* @__PURE__ */return Object.freeze({items:t,count:0,subtotal:null,currency:null});let i=new Set(t.map(e=>e.currency));if(!t.every(e=>e.price!==null)||i.size!==1)/* @__PURE__ */return Object.freeze({items:t,count:t.length,subtotal:null,currency:null});let r=t.reduce((e,t)=>e+Math.round(t.price*100),0);/* @__PURE__ */
13
- return Object.freeze({items:t,count:t.length,subtotal:r/100,currency:t[0]?.currency??null})}function formatHealthPlanPrice(e,t,i,r){if(e===null||t===null||!Number.isFinite(e))return null;let n=r?.dropZeroCents===true&&Number.isInteger(e);try{return new Intl.NumberFormat(i,{style:"currency",currency:t,...n?{minimumFractionDigits:0,maximumFractionDigits:0}:{}}).format(e)}catch{return`${t} ${n?String(e):e.toFixed(2)}`}}function formatHealthPlanPriceWith(e,t,i){return formatHealthPlanPrice(e,t,i?.locale,i)}function useEverfurHealthPlanRepository(){let{runtime:e}=A();return i(()=>createHealthPlanRepository(e),[e])}function useEverfurHealthPlan(e){let{userRef:userRef,activePet:t,scopeEpoch:r}=A(),a=useEverfurHealthPlanRepository(),petRef=e?.petRef??t??null,s=Et(()=>new He(a),[a,userRef,r]);l(()=>{s.load(userRef===null?null:petRef)},[s,userRef,petRef]);let c=o(s.subscribe,s.getSnapshot,s.getSnapshot),d=i(()=>healthPlanCart(c.plan),[c.plan]),[u,p]=n(null);l(()=>{p(c.phase==="ready"&&c.plan!==null?Date.now():null)},[c.phase,c.plan]),Wt({lifecycle:e?.lifecycle,refreshKey:e?.refreshKey,readyAt:u,revalidate:()=>{s.revalidate()},refresh:()=>{s.refresh()}});let h;return userRef===null?h="signedOut":petRef===null?h="noPet":c.petRef!==petRef||c.phase==="idle"||c.phase==="loading"?h="loading":c.phase==="failed"?h=Te(c.error)?"empty":"failed":h=(c.plan?.items.length??0)===0?"empty":"ready",i(()=>({status:h,petRef:petRef,plan:c.petRef===petRef?c.plan:null,cart:d,pending:c.pending,itemErrors:c.itemErrors,error:h==="empty"?null:c.error,setInPlan:(e,t)=>s.setInPlan(e,t),refresh:()=>s.load(userRef===null?null:petRef)}),[h,petRef,c,d,s,userRef])}var Mt=128,Nt=/^\d{4}-\d{2}-\d{2}$/,Gt=/* @__PURE__ */new Set(["first_box_ships","checkin","refill_reminder","next_box_ships"]);var qt=(e,t=300)=>typeof e=="string"&&e.trim().length>0&&e.length<=t?e.trim():null;function Ut(e){let t=typeof e=="number"?e:typeof e=="string"&&/^\d+(\.\d+)?$/.test(e.trim())?Number(e):Number.NaN;return Number.isFinite(t)&&t>=0?t:null}function Vt(e){return typeof e=="number"&&Number.isInteger(e)&&e>0?e:null}function Yt(e){return typeof e=="number"&&Number.isInteger(e)?String(e):qt(e,Mt)}function Xt(e){return typeof e=="string"&&/^[A-Za-z]{3}$/.test(e)?e.toUpperCase():null}function Kt(e){return typeof e=="string"&&Nt.test(e)?e:null}function Qt(e){return Array.isArray(e)?/* @__PURE__ */Object.freeze(e.map(Vt).filter(e=>e!==null)):/* @__PURE__ */Object.freeze([])}function Jt(e){if(e===null||typeof e!="object")return null;let t=e,i=Ut(t.amount),r=Xt(t.currency),n=Vt(t.interval_days);return i===null||r===null||n===null?null:/* @__PURE__ */Object.freeze({amount:i,currency:r,intervalDays:n})}function Zt(e){if(!Array.isArray(e))/* @__PURE__ */return Object.freeze([]);let t=[];for(let i of e){if(i===null||typeof i!="object")continue;let e=i,r=Kt(e.on);typeof e.step!="string"||!Gt.has(e.step)||r===null||t.push(/* @__PURE__ */Object.freeze({step:e.step,on:r}))}/* @__PURE__ */
14
- return Object.freeze(t)}function healthPlanSubscriptionFromWire(e){if(e===null||typeof e!="object")return null;let t=e,i=Yt(t.subscription_id),r=Yt(t.product_id),n=t.status==="active"||t.status==="cancelled"?t.status:null,l=Vt(t.interval_days),o=Xt(t.currency),a=Ut(t.box_price);if(i===null||r===null||n===null||l===null||o===null||a===null)return null;let s=Qt(t.interval_options);/* @__PURE__ */
15
- return Object.freeze({subscriptionId:i,productId:r,title:qt(t.title),status:n,intervalDays:l,intervalOptions:s.length>0?s:/* @__PURE__ */Object.freeze([l]),currency:o,boxPrice:a,firstBoxPrice:Ut(t.first_box_price)??a,offerApplied:t.offer_applied===true,nextBoxDate:n==="active"?Kt(t.next_box_date):null,renewal:Jt(t.renewal),timeline:n==="active"?Zt(t.timeline):/* @__PURE__ */Object.freeze([])})}function healthPlanOneBoxOrderFromWire(e){if(e===null||typeof e!="object")return null;let t=e,i=Yt(t.order_id),r=Yt(t.product_id),n=Xt(t.currency),l=Ut(t.price);if(i===null||r===null||n===null||l===null)return null;let o=Vt(t.quantity),a=o!==null&&o<=ei?o:1;/* @__PURE__ */
16
- return Object.freeze({orderId:i,productId:r,title:qt(t.title),currency:n,boxPrice:Ut(t.box_price)??l,price:l,discountPercent:Vt(t.discount_percent)??0,shipsOn:Kt(t.ships_on),createdAt:oi(t.created_at),quantity:a,total:Ut(t.total)??Math.round(l*a*100)/100,...li(t.tracking)})}var ei=10,ti=/* @__PURE__ */new Set(["ordered","shipped","delivered"]),ii=/[\u0000-\u001f\u007f\u202a-\u202e\u2066-\u2069]/;function ri(e,t){if(typeof e!="string"||ii.test(e))return null;let i=e.trim();return i.length>0&&i.length<=t?i:null}function ni(e){return typeof e!="string"||e.length>2048||ii.test(e)||/[\s@]/.test(e)||!/^https:\/\/[^/]/i.test(e)?null:je(e)?.protocol==="https:"?e:null}function healthPlanOrderTrackingFromWire(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,i=typeof t.status=="string"&&ti.has(t.status)?t.status:"ordered";/* @__PURE__ */
17
- return Object.freeze({status:i,orderNumber:ri(t.order_number,64),carrier:ri(t.carrier,64),trackingNumber:ri(t.tracking_number,128),trackingUrl:ni(t.tracking_url),shippedAt:oi(t.shipped_at),estimatedDelivery:Kt(t.estimated_delivery),updatedAt:oi(t.updated_at)})}function li(e){let t=healthPlanOrderTrackingFromWire(e);return t===null?{}:{tracking:t}}function healthPlanOneBoxOrderPageFromWire(e){let t=e!==null&&typeof e=="object"?e.orders:null;if(!Array.isArray(t))return null;let i=e.next_cursor;/* @__PURE__ */
18
- return Object.freeze({orders:/* @__PURE__ */Object.freeze(t.map(healthPlanOneBoxOrderFromWire).filter(e=>e!==null)),nextCursor:typeof i=="string"&&i.length>0&&i.length<=Mt?i:null})}function oi(e){return typeof e!="string"||e.length>40||!/^\d{4}-\d{2}-\d{2}T/.test(e)||Number.isNaN(Date.parse(e))?null:e}function ai(e,t){if(e===null||typeof e!="object")return null;let i=e,r=Ut(i.price);return r===null||r>t?null:/* @__PURE__ */Object.freeze({price:r,discountPercent:Vt(i.discount_percent)??0})}function healthPlanSubscriptionQuoteFromWire(e){if(e===null||typeof e!="object")return null;let t=e,i=Yt(t.product_id),r=Xt(t.currency),n=Ut(t.box_price),l=Qt(t.interval_options);if(i===null||r===null||n===null||l.length===0)return null;let o=t.offer_applies===true,a=Vt(t.default_interval_days),s=t.supply,c=null;if(s!==null&&typeof s=="object"){let e=s,t=Vt(e.units_per_box),i=Ut(e.units_per_day),r=Vt(e.supply_days);t!==null&&i!==null&&r!==null&&(c=/* @__PURE__ */Object.freeze({unitsPerBox:t,unitLabel:qt(e.unit_label,30),unitsPerDay:i,supplyDays:r,doseBasis:e.dose_basis==="weight"?"weight":"assumed"}))}let d=Vt(t.first_box_discount_percent)??0;/* @__PURE__ */
19
- return Object.freeze({productId:i,currency:r,boxPrice:n,firstBoxPrice:o?Ut(t.first_box_price)??n:n,firstBoxDiscountPercent:o?d:0,offerApplies:o,oneBox:ai(t.one_box,n),intervalOptions:l,defaultIntervalDays:a!==null&&l.includes(a)?a:l[0],supply:c,firstBoxShipsOn:Kt(t.first_box_ships_on),subscription:healthPlanSubscriptionFromWire(t.subscription)})}function si(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function ci(e){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${e}: the response carried no subscription`})}function di(e){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${e} was called after unmount`})}var ui=e=>typeof e=="string"&&e.length>0&&e.length<=Mt;function pi(petRef){return`/widget/v1/pets/${encodeURIComponent(petRef)}/plan/subscriptions`}function createHealthPlanSubscriptionRepositoryOver(e){let t=ze(e.funnel??createRequestFunnel({auth:e.auth,...e.errorPolicy?{errorPolicy:e.errorPolicy}:{}})),i=async(e,petRef,i,r,n)=>{if(!ui(petRef))return err(si("petRef must be 1..128 characters"));let l=await t.send(e,{method:i,path:`${pi(petRef)}${r}`,...n===void 0?{}:{body:n}});if(!l.ok)return err(l.error);let o=healthPlanSubscriptionFromWire(l.value);return o===null?err(ci(e)):ok(o)},r=(e,t="")=>ui(e)?`/${encodeURIComponent(e)}${t}`:null;return{async quote(petRef,e){if(!ui(petRef))return err(si("petRef must be 1..128 characters"));if(!ui(e))return err(si("productId must be 1..128 characters"));let i=await t.send("healthPlan.subscription.quote",{method:"GET",path:`${pi(petRef)}/quote`,query:{product_id:e}});if(!i.ok)return err(i.error);let r=healthPlanSubscriptionQuoteFromWire(i.value);return r===null?err(ci("healthPlan.subscription.quote")):ok(r)},async list(petRef){if(!ui(petRef))return err(si("petRef must be 1..128 characters"));let e=await t.send("healthPlan.subscription.list",{method:"GET",path:pi(petRef)});if(!e.ok)return err(e.error);let i=e.value!==null&&typeof e.value=="object"?e.value.subscriptions:null;return Array.isArray(i)?ok(/* @__PURE__ */Object.freeze(i.map(healthPlanSubscriptionFromWire).filter(e=>e!==null))):err(ci("healthPlan.subscription.list"))},create(petRef,e,t){return ui(e)?i("healthPlan.subscription.create",petRef,"POST","",{product_id:e,...t===void 0?{}:{interval_days:t}}):Promise.resolve(err(si("productId must be 1..128 characters")))},changeInterval(petRef,e,t){let n=r(e);return n===null?Promise.resolve(err(si("subscriptionId must be 1..128 characters"))):i("healthPlan.subscription.interval",petRef,"PATCH",n,{interval_days:t})},skip(petRef,e){let t=r(e,"/skip");return t===null?Promise.resolve(err(si("subscriptionId must be 1..128 characters"))):i("healthPlan.subscription.skip",petRef,"POST",t,{})},cancel(petRef,e){let t=r(e,"/cancel");return t===null?Promise.resolve(err(si("subscriptionId must be 1..128 characters"))):i("healthPlan.subscription.cancel",petRef,"POST",t,{})},restart(petRef,e,t){let n=r(e,"/restart");return n===null?Promise.resolve(err(si("subscriptionId must be 1..128 characters"))):i("healthPlan.subscription.restart",petRef,"POST",n,t===void 0?{}:{interval_days:t})},async buyOneBox(petRef,e,i){if(!ui(petRef))return err(si("petRef must be 1..128 characters"));if(!ui(e))return err(si("productId must be 1..128 characters"));let r=await t.send("healthPlan.subscription.oneBox",{method:"POST",path:`${pi(petRef)}/one-box`,body:{product_id:e}},{idempotent:true,...i===void 0?{}:{idempotencyKey:`hp-one-box:${i}`}});if(!r.ok)return err(r.error);let n=healthPlanOneBoxOrderFromWire(r.value);return n===null?err(ci("healthPlan.subscription.oneBox")):ok(n)},async listOneBoxOrders(petRef){if(!ui(petRef))return err(si("petRef must be 1..128 characters"));let e=await t.send("healthPlan.subscription.oneBoxList",{method:"GET",path:`${pi(petRef)}/one-box`});if(!e.ok)return err(e.error);let i=healthPlanOneBoxOrderPageFromWire(e.value);return i===null?err(ci("healthPlan.subscription.oneBoxList")):ok(i.orders)},async listOneBoxOrderPage(petRef,e){if(!ui(petRef))return err(si("petRef must be 1..128 characters"));let i=e?.limit;if(i!==void 0&&!(Number.isInteger(i)&&i>=1&&i<=50))return err(si("limit must be a whole number 1..50"));if(e?.cursor!==void 0&&!ui(e.cursor))return err(si("cursor must be 1..128 characters"));let r={...i!==void 0?{limit:String(i)}:{},...e?.cursor!==void 0?{cursor:e.cursor}:{}},n=await t.send("healthPlan.subscription.oneBoxList",{method:"GET",path:`${pi(petRef)}/one-box`,query:r});if(!n.ok)return err(n.error);let l=healthPlanOneBoxOrderPageFromWire(n.value);return l===null?err(ci("healthPlan.subscription.oneBoxList")):ok(l)}}}function createHealthPlanSubscriptionRepository(e){let t=()=>{let{services:t}=e.registry;return createHealthPlanSubscriptionRepositoryOver({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}})},i=(i,r)=>(...n)=>e.isDisposed?Promise.resolve(err(di(i))):r(t(),...n);return{quote:i("quote",(e,t,i)=>e.quote(t,i)),list:i("list",(e,t)=>e.list(t)),create:i("create",(e,t,i,r)=>e.create(t,i,r)),changeInterval:i("changeInterval",(e,t,i,r)=>e.changeInterval(t,i,r)),skip:i("skip",(e,t,i)=>e.skip(t,i)),cancel:i("cancel",(e,t,i)=>e.cancel(t,i)),restart:i("restart",(e,t,i,r)=>e.restart(t,i,r)),buyOneBox:i("buyOneBox",(e,t,i,r)=>e.buyOneBox(t,i,r)),listOneBoxOrders:i("listOneBoxOrders",(e,t)=>e.listOneBoxOrders(t)),listOneBoxOrderPage:i("listOneBoxOrderPage",(e,t,i)=>e.listOneBoxOrderPage(t,i))}}var hi=128;var gi=/* @__PURE__ */new Set(["shield","arrow","check","star","truck","refresh","card","alert","x","chat","repeat","calendar","flame","box","cart","minus","plus","chev","pulse","file","kit","dna","heart","bottle","harness","ramp"]),fi=/* @__PURE__ */new Set(["y","c","g","r"]),mi=/* @__PURE__ */new Set(["done","now","next"]),bi=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null,yi=(e,t=1e3)=>typeof e=="string"&&e.trim().length>0&&e.length<=t?e.trim():null,wi=e=>typeof e=="string"&&/^[A-Za-z0-9_-]{1,40}$/.test(e)?e:null,vi=e=>typeof e=="string"&&gi.has(e)?e:null;function ki(e){let t=yi(e,2048);return t===null||/\s/.test(t)?null:/^https:\/\/[^/]/i.test(t)||/^\/(?![/\\])/.test(t)?t:null}var xi=e=>typeof e=="number"&&Number.isInteger(e)?String(e):yi(e,hi);function Ti(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:null}function Ii(e){/* @__PURE__ */
20
- return Object.freeze(Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null)))}function Si(e,t,i=20){if(!Array.isArray(e))return null;let r=[];for(let n of e){if(r.length>=i)break;let e=t(n);e!==null&&r.push(e)}return r.length===0?null:/* @__PURE__ */Object.freeze(r)}var zi=(e,t=12,i=300)=>Si(e,e=>yi(e,i),t);function Di(e){let t=bi(e),i=yi(t?.kicker,120),r=yi(t?.title,300);if(t===null||i===null||r===null)return null;let n=bi(t.risk),l=bi(t.odds),o=bi(t.quote),a=bi(t.jump);return Ii({kicker:i,title:r,sources:Si(t.sources,e=>{let t=yi(bi(e)?.label,60);return t===null?null:Ii({label:t,kind:wi(bi(e)?.kind)})},6),risk:yi(n?.lead,300)===null?null:Ii({lead:yi(n?.lead,300),body:yi(n?.body),kind:wi(n?.kind)}),odds:yi(l?.label,120)===null||yi(l?.from,20)===null||yi(l?.to,20)===null?null:Ii({label:yi(l?.label,120),tag:yi(l?.tag,40),from:yi(l?.from,20),to:yi(l?.to,20),toLabel:yi(l?.toLabel,120)}),quote:yi(o?.text)===null?null:Ii({kicker:yi(o?.kicker,120),tag:yi(o?.tag,40),text:yi(o?.text)}),jump:yi(a?.title,300)===null||yi(a?.go,60)===null?null:Ii({title:yi(a?.title,300),go:yi(a?.go,60)}),report:Ci(t.report)})}function Ci(e){let t=bi(e),i=yi(t?.label,120),r=yi(t?.text,1200);return i===null||r===null?null:Ii({label:i,text:r,actions:zi(t?.actions,5,300)})}function Hi(e){let t=bi(e),i=yi(t?.title,300),r=Si(t?.steps,e=>{let t=bi(e),i=yi(t?.title,300),r=t?.tone;return i===null?null:Ii({title:i,body:yi(t?.body),source:yi(t?.source,200),tone:typeof r=="string"&&fi.has(r)?r:null,icon:vi(t?.icon),fromVet:t?.fromVet===true?true:null})});return i===null||r===null?null:Ii({title:i,label:yi(t?.label,60),steps:r})}function Fi(e){let t=bi(e),i=yi(t?.title,300);if(t===null||i===null)return null;let r=bi(t.rating),n=bi(t.reviews),l=bi(t.why),o=bi(l?.score),a=bi(t.dose),s=bi(t.ingredients),c=Si(n?.items,e=>{let t=bi(e),i=t?.stars,r=yi(t?.text),n=yi(t?.by,80);return typeof i!="number"||!Number.isFinite(i)||i<1||i>5||r===null||n===null?null:Ii({stars:Math.round(i),text:r,by:n})},5),d=Si(l?.rows,e=>{let t=bi(e),i=yi(t?.chip,40),r=yi(t?.title,300);return i===null||r===null?null:Ii({chip:i,kind:wi(t?.kind),title:r,body:yi(t?.body)})}),u=Si(a?.stats,e=>{let t=bi(e),i=yi(t?.value,40),r=yi(t?.label,120),n=t?.kind;return i===null||r===null?null:Ii({value:i,label:r,kind:n==="weight"||n==="dose"||n==="days"?n:null})},6),p=zi(s?.items,12,80);return Ii({title:i,none:t.none===true?true:null,hidden:t.none===true&&t.hidden===true?true:null,productId:xi(t.productId),partnerSku:yi(t.partnerSku,200),rating:yi(r?.value,20)===null?null:Ii({value:yi(r?.value,20),label:yi(r?.label,120)}),line:yi(t.line),reviews:yi(n?.label,200)===null||c===null?null:Ii({label:yi(n?.label,200),items:c}),checkoutLine:yi(t.checkoutLine,300),why:yi(l?.title,200)===null||d===null?null:Ii({title:yi(l?.title,200),rows:d,score:yi(o?.text,200)===null||yi(o?.value,20)===null?null:Ii({text:yi(o?.text,200),value:yi(o?.value,20)})}),dose:yi(a?.title,200)===null||u===null?null:Ii({title:yi(a?.title,200),stats:u,note:yi(a?.note)}),doseLabel:yi(t.doseLabel,120),ingredients:p===null?null:Ii({label:yi(s?.label,200),items:p}),proof:yi(t.proof,300),trust:Si(t.trust,e=>{let t=bi(e),i=vi(t?.icon),r=yi(t?.label,120);return i===null||r===null?null:Ii({icon:i,label:r})},6),more:yi(t.more,120),fine:yi(t.fine),checkin:yi(t.checkin,200),detail:Ct(t.detail)??null})}function _i(e){let t=bi(e),i=yi(t?.title,200),r=Si(t?.items,e=>{let t=bi(e),i=yi(t?.title,300),r=yi(t?.body);return i===null||r===null?null:Ii({title:i,body:r,urgent:t?.urgent===true?true:null,callVet:t?.callVet===true?true:null})});return i===null||r===null?null:Ii({title:i,items:r})}function Oi(e){let t=bi(e),i=yi(t?.title,200),r=zi(t?.questions,12,300),n=yi(t?.add,80),l=yi(t?.added,80);return i===null||r===null||n===null||l===null?null:Ii({title:i,questions:r,add:n,added:l})}function Ei(e){let t=bi(e),i=yi(t?.title,200),r=Si(t?.items,e=>{let t=bi(e),i=yi(t?.key,hi),r=yi(t?.title,300),n=yi(t?.action,80),l=xi(t?.productId),o=yi(t?.added,80)??(l!==null?n:null);return i===null||r===null||n===null||o===null?null:Ii({key:i,productId:l,title:r,body:yi(t?.body),price:yi(t?.price,40),was:yi(t?.was,40),tag:yi(t?.tag,40),imageUrl:ki(t?.imageUrl),icon:vi(t?.icon),kind:wi(t?.kind),action:n,added:o,owned:t?.owned===true?true:null,detail:Ct(t?.detail)??null})},6);return i===null||r===null?null:Ii({title:i,items:r})}function Pi(e){let t=bi(e),i=yi(t?.kicker,120),r=yi(t?.title,120);return t===null||i===null||r===null?null:Ii({kicker:i,title:r,icon:vi(t.icon),track:Si(t.track,e=>{let t=bi(e),i=yi(t?.title,120),r=t?.state;return i===null?null:Ii({title:i,detail:yi(t?.detail,120),state:typeof r=="string"&&mi.has(r)?r:null,tag:yi(t?.tag,40)})},6),heading:yi(t.heading,200),rows:Si(t.rows,e=>{let t=bi(e),i=vi(t?.icon),r=yi(t?.label,120);if(i===null||r===null)return null;if(t?.fromVet===true)return Ii({icon:i,label:r,text:"",fromVet:true});let n=yi(t?.text,300);return n===null?null:Ii({icon:i,label:r,text:n})},6),note:yi(t.note,300),action:yi(t.action,80)})}function healthPlanFocusDesignFromWire(e){let t=bi(e),i=yi(t?.title,300),r=Fi(t?.pick);if(t===null||i===null||r===null)return null;let n=bi(t.byline);return Ii({eyebrow:yi(t.eyebrow,120),title:i,subtitle:yi(t.subtitle,300),subtitleNoRecords:yi(t.subtitleNoRecords,300),headImageUrl:ki(t.headImageUrl),byline:yi(n?.name,120)===null?null:Ii({name:yi(n?.name,120),role:yi(n?.role,120),imageUrl:ki(n?.imageUrl),shortName:yi(n?.shortName,60)}),focus:Di(t.focus),routine:Hi(t.routine),pick:r,signs:_i(t.signs),checkup:Oi(t.checkup),extras:Ei(t.extras),wait:Pi(t.wait),fine:yi(t.fine),checkoutRows:Si(t.checkoutRows,e=>{let t=bi(e),i=vi(t?.icon),r=yi(t?.label,60),n=yi(t?.value,200);return i===null||r===null||n===null?null:Ii({icon:i,label:r,value:n})},6)})}function healthPlanPageFromWire(e,petRef){let t=bi(e);if(t===null||!("page"in t))return null;let i=bi(t.pet),r=i?.sex;/* @__PURE__ */
21
- return Object.freeze({petRef:yi(t.pet_ref,hi)??petRef,pet:/* @__PURE__ */Object.freeze({name:yi(i?.name,120),species:yi(i?.species,60),sex:r==="female"||r==="male"?r:null,breed:yi(i?.breed,120),weightKg:Ti(i?.weight_kg),weightLb:Ti(i?.weight_lb)}),checkout:t.checkout==="everfur_stripe"?"everfur_stripe":"partner",page:healthPlanFocusDesignFromWire(t.page),vetReviewed:t.vet_reviewed===true,trackingTextsEnabled:t.tracking_texts_enabled===true})}function Li(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function Bi(e){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${e}: the response was not the expected shape`})}function Ai(e){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${e} was called after unmount`})}var Ri=e=>typeof e=="string"&&e.length>0&&e.length<=hi;function ji(petRef){return`/widget/v1/pets/${encodeURIComponent(petRef)}/plan`}async function $i(e,petRef,t){if(!Ri(petRef))return err(Li("petRef must be 1..128 characters"));let i=await e.send("healthPlan.page.read",{method:"GET",path:`${ji(petRef)}/page`,...t?.signal?{signal:t.signal}:{}});if(!i.ok)return err(i.error);let r=healthPlanPageFromWire(i.value,petRef);return r===null?err(Bi("healthPlan.page.read")):ok(r)}var Wi=/* @__PURE__ */new WeakMap;function Mi(e){let t=Wi.get(e);if(t!==void 0)return t;let i=Ni(e);return Wi.set(e,i),i}function Ni(e){return{getPage:(petRef,t)=>{if(e.isDisposed)return Promise.resolve(err(Ai("getPage")));let{services:i}=e.registry,r=ze(createRequestFunnel({auth:i.authFor(null),...i.errorPolicy?{errorPolicy:i.errorPolicy}:{}}));return $i(r,petRef,t)}}}var Gi=$t,qi=/* @__PURE__ */Symbol.for("@everfur/sdk#HealthPlanPageReads@v1");function Ui(){let e=globalThis,t=e[qi];if(t instanceof WeakMap)return t;let i=/* @__PURE__ */new WeakMap;return e[qi]=i,i}function Vi(e,t,userRef,petRef,i){let r=Ui(),n=r.get(t);n===void 0&&(n=/* @__PURE__ */new Map,r.set(t,n));let l=n,o=`${userRef}\0${petRef}`,a=l.get(o);if(!i&&a!==void 0&&(a.at===null||Date.now()-a.at<Gi))return a.promise;let s={at:null,promise:e.getPage(petRef).then(e=>(l.get(o)===s&&(e.ok||Te(e.error)?s.at=Date.now():l.delete(o)),e))};return l.set(o,s),s.promise}function useHealthPlanPage(e){let{userRef:userRef,runtime:t}=A(),r=i(()=>Mi(t),[t]),o=e.repository,c=o??r,d=s((e,i)=>o!==void 0||userRef==null?c.getPage(e):Vi(r,t,userRef,e,i),[o,c,r,t,userRef]),{petRef:petRef}=e,u=e.enabled!==false&&userRef!=null&&petRef!==null,[p,h]=n({phase:"idle",petRef:null,page:null,error:null}),g=a(0),f=a(0),m=s(async e=>{let t=++g.current;if(!u||petRef===null){h(e=>e.phase==="idle"&&e.petRef===null?e:{phase:"idle",petRef:null,page:null,error:null});return}h(e=>({phase:"loading",petRef:petRef,page:e.petRef===petRef?e.page:null,error:null}));let i=await d(petRef,e);t===g.current&&(i.ok?h({phase:"ready",petRef:petRef,page:i.value,error:null,readyAt:Date.now()}):Te(i.error)?h({phase:"ready",petRef:petRef,page:null,error:null,missing:true,readyAt:Date.now()}):h({phase:"failed",petRef:petRef,page:null,error:i.error}))},[u,petRef,d]),b=s(()=>m(true),[m]),y=p.phase==="ready"&&p.petRef===petRef,w=s(async()=>{if(!u||petRef===null||!y)return;let e=g.current,t=++f.current,i=await d(petRef,true);e!==g.current||t!==f.current||!i.ok||h(e=>e.phase==="ready"&&e.petRef===petRef?{phase:"ready",petRef:petRef,page:i.value,error:null,readyAt:Date.now()}:e)},[u,petRef,y,d]);Wt({lifecycle:e.lifecycle,refreshKey:e.refreshKey,readyAt:y?p.readyAt??null:null,revalidate:()=>{w()},refresh:()=>{y?w():b()}}),l(()=>(m(false),()=>{g.current+=1}),[m]);let v=u&&p.petRef!==petRef;return i(()=>({phase:v?"loading":p.phase,page:v?null:p.page,error:v?null:p.error,missing:!v&&p.missing===true,refresh:b}),[v,p,b])}function useHealthPlanSubscriptionRepository(){let{runtime:e}=A();return i(()=>createHealthPlanSubscriptionRepository(e),[e])}var Yi=/* @__PURE__ */Object.freeze({chat:/* @__PURE__ */Object.freeze(["chat.message.create"]),records:/* @__PURE__ */Object.freeze(["records.upload.create","records.record.read"]),recordsClinic:/* @__PURE__ */Object.freeze(["records.clinic.create"]),video:/* @__PURE__ */Object.freeze(["video.gait.execute"]),photo:/* @__PURE__ */Object.freeze(["photo.checkup.execute"]),animations:/* @__PURE__ */Object.freeze(["animations.state.read"]),televet:/* @__PURE__ */Object.freeze(["televet.visit.create"]),texting:/* @__PURE__ */Object.freeze(["sms.identity.read","sms.identity.update"]),healthPlan:/* @__PURE__ */Object.freeze(["shop.plan.read","shop.plan.update"])});function requires(e){return Yi[e]}function decideCapability(e,t,i){let r=requires(e),n=/* @__PURE__ */new Map;for(let e of t)n.set(e.resource,e);if(i?.isPending===true&&r.some(e=>!n.has(e)))return Qi({name:e,enabled:false,isPending:true,limits:{}});let l=Xi(r,n);return r.filter(e=>n.get(e)?.granted!==true).length===0?Qi({name:e,enabled:true,isPending:false,limits:l}):Qi({name:e,enabled:false,isPending:false,limits:l,disabled:Ki(r,n)})}function Xi(e,t){let i={};for(let r of e){let e=t.get(r)?.limits;if(e)for(let[t,r]of Object.entries(e)){let e=i[t];i[t]=e===void 0?r:Math.min(e,r)}}return i}function Ki(e,t){for(let i of e){let e=t.get(i)?.disabled;if(e)/* @__PURE__ */
10
+ return Object.freeze({send:c,authorize:d,stream:u})}function et(e,t){let i={};for(let[t,r]of Object.entries(e.headers??{}))t.toLowerCase()!==Xe&&(i[t]=r);return t!==null&&(i["Idempotency-Key"]=t),{...e,headers:i}}function tt(){let e=0;return()=>`efk_${Date.now().toString(36)}_${(e++).toString(36)}_${Math.random().toString(36).slice(2,12)}`}var it=10;function rt(e,t,i){if(i.aborted)return{retry:false,reason:"aborted"};let r=nt(e);if(r==="quota")return{retry:false,reason:"daily-quota-exhausted"};if(r!=="burst"&&!isAutoRetryable(e.code))return{retry:false,reason:"terminal-code"};let n=r==="burst"?"burst-throttle":"retryable-code";if((()=>{if(i.policy===void 0)return false;try{return!i.policy.shouldRetry(e.code,t)}catch{return false}})())return{retry:false,reason:"terminal-code"};let l=()=>{if(i.policy===void 0)return null;let t;try{t=i.policy.maxAttempts(e.code)}catch{return null}return typeof t!="number"||!Number.isFinite(t)?null:Math.max(1,Math.min(it,Math.floor(t)))},o=i.perCallMaxAttempts??l()??i.maxAttempts;if(t+1>=o)return{retry:false,reason:"attempts-exhausted"};let a=lt(e,i.now);return a!==null?a>Ye?{retry:false,reason:"server-reset-beyond-budget"}:{retry:true,reason:n,delayMs:a}:{retry:true,reason:n,delayMs:backoffDelayMs(t,i.rng)}}function nt(e){let t=e.code==="unknown"?fromWire(dt(e.raw)):e.code;return t==="quotaExceeded"?"quota":t==="rateLimited"||e.httpStatus===429?"burst":null}function lt(e,t){let i=at(e.raw);if(i!==null){let e=i-t;return e>0?e:0}let r=ot(e.raw);return r===null?null:Math.round(r*1e3)}function ot(e){for(let t of st(e)){let e=t.retry_after_seconds;if(typeof e=="number"&&Number.isFinite(e)&&e>=0)return e}return null}function at(e){for(let t of st(e)){let e=t.resets_at,i=ct(e);if(i!==null)return i}return null}function st(e){if(!ut(e))return[];let t=[e];for(let i of["error","detail"]){let r=e[i];ut(r)&&t.push(r)}return t}function ct(e){if(typeof e=="number"&&Number.isFinite(e))return e<1e11?Math.round(e*1e3):Math.round(e);if(typeof e=="string"&&e.trim().length>0){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function dt(e){for(let t of st(e)){let e=t.code;if(typeof e=="string"&&e.length>0)return e}return null}function ut(e){return typeof e=="object"&&e!==null}async function pt(e){if(e.mode==="anonymous"){let t=await Le(e);return{mode:"anonymous",publishableKey:e.publishableKey,userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{},...t!==null?{anonToken:t}:{}}}return{mode:"personalized",token:await e.identity.currentToken(),userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{}}}function ht(e,t){let i=new AbortController,r=t.setTimeout(()=>i.abort(),e);return{signal:i.signal,cancel:()=>t.clearTimeout(r)}}function gt(e,t){let i=()=>{};if(!t)return{signal:e,dispose:i};let r=new AbortController;if(e.aborted||t.aborted)return r.abort(),{signal:r.signal,dispose:i};let n=()=>r.abort();return e.addEventListener("abort",n,{once:true}),t.addEventListener("abort",n,{once:true}),{signal:r.signal,dispose:()=>{e.removeEventListener("abort",n),t.removeEventListener("abort",n)}}}function ft(e,t,i){return e<=0||i?.aborted===true?Promise.resolve():new Promise(r=>{let n=t.setTimeout(()=>{i?.removeEventListener("abort",l),r()},e),l=()=>{t.clearTimeout(n),r()};i?.addEventListener("abort",l,{once:true})})}var mt=/* @__PURE__ */Object.freeze(["dna","records","inside","profile"]),bt=128;function yt(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function wt(e){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${e} was called after unmount`})}function vt(e){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${e}: the response carried no plan`})}var kt=(e,t=4e3)=>typeof e=="string"&&e.trim().length>0&&e.length<=t?e.trim():null;function xt(e){let t=kt(e,2048);return t===null?null:/^https:\/\/[^\s]+$/i.test(t)?t:null}function Tt(e){let t=typeof e=="number"?e:typeof e=="string"&&/^\d+(\.\d+)?$/.test(e.trim())?Number(e):Number.NaN;return Number.isFinite(t)&&t>=0?t:null}function It(e){return typeof e=="string"&&/^[A-Za-z]{3}$/.test(e)?e.toUpperCase():null}function St(e){if(!Array.isArray(e))/* @__PURE__ */return Object.freeze([]);let t=[];for(let i of e){if(i===null||typeof i!="object")continue;let e=i,r=kt(e.text,1e3);if(r===null)continue;let n=typeof e.kind=="string"&&mt.includes(e.kind)?e.kind:"profile";t.push(/* @__PURE__ */Object.freeze({kind:n,text:r}))}/* @__PURE__ */
11
+ return Object.freeze(t)}var zt=6;function Dt(e){return typeof e=="number"&&Number.isFinite(e)&&e>=0&&e<=400?e:null}function Ct(e,t,i){if(!Array.isArray(e))/* @__PURE__ */return Object.freeze([]);let r=[];for(let n of e){if(r.length>=i)break;if(n===null||typeof n!="object"||Array.isArray(n))continue;let e=t(n);e!==null&&r.push(e)}/* @__PURE__ */
12
+ return Object.freeze(r)}function Ht(e){let t=kt(e.title,80),i=kt(e.body,600);return t===null||i===null?null:/* @__PURE__ */Object.freeze({title:t,body:i})}function Ft(e){if(e===null||typeof e!="object"||Array.isArray(e))return;let t=e,i=[];if(Array.isArray(t.gallery))for(let e of t.gallery){let t=xt(e);t!==null&&i.length<zt&&i.push(t)}let r=Ct(t.doses,e=>{let t=kt(e.label,60),i=kt(e.amount,60);return t===null||i===null?null:/* @__PURE__ */Object.freeze({label:t,amount:i,minLb:Dt(e.minLb??e.min_lb),maxLb:Dt(e.maxLb??e.max_lb)})},zt),n=Ct(t.details,Ht,zt),l=t.fit,o=l!==null&&typeof l=="object"&&!Array.isArray(l)?Ht(l):null,a=o!==null&&l.pet===true?/* @__PURE__ */Object.freeze({...o,pet:true}):o,s=/* @__PURE__ */Object.freeze({kicker:kt(t.kicker,80),gallery:/* @__PURE__ */Object.freeze(i),doses:r,details:n,fine:kt(t.fine,300),fit:a});return s.kicker===null&&i.length===0&&r.length===0&&n.length===0&&s.fine===null&&a===null?void 0:s}function _t(e){let t=typeof e.rating=="number"&&Number.isFinite(e.rating)&&e.rating>=0&&e.rating<=5?Math.round(e.rating*10)/10:null,i=typeof e.review_count=="number"&&Number.isInteger(e.review_count)&&e.review_count>=0?e.review_count:null,r=Ct(e.reviews,e=>{let t=typeof e.stars=="number"&&Number.isInteger(e.stars)&&e.stars>=1&&e.stars<=5?e.stars:null,i=kt(e.text,300),r=kt(e.by,80);return t===null||i===null||r===null?null:/* @__PURE__ */Object.freeze({stars:t,text:i,by:r})},5),n=[];if(Array.isArray(e.ingredients))for(let t of e.ingredients){let e=kt(t,60);e!==null&&n.length<12&&n.push(e)}let l=Ft(e.detail);return{...t===null?{}:{rating:t},...i===null?{}:{reviewCount:i},...r.length===0?{}:{reviews:r},...n.length===0?{}:{ingredients:/* @__PURE__ */Object.freeze(n)},...l===void 0?{}:{detail:l}}}function Ot(e){if(e===null||typeof e!="object")return null;let t=e,i=t.product_id,r=typeof i=="number"&&Number.isInteger(i)?String(i):kt(i,bt),n=kt(t.title,300);return r===null||n===null?null:/* @__PURE__ */Object.freeze({productId:r,partnerSku:kt(t.partner_sku,200),title:n,description:kt(t.description),category:kt(t.category,60),price:Tt(t.price),currency:It(t.currency),imageUrl:xt(t.image_url),url:xt(t.url),reasons:St(t.reasons),inPlan:t.in_plan===true,sample:t.sample===true,..._t(t)})}function healthPlanFromWire(e,petRef){if(e===null||typeof e!="object")return null;let t=e;if(!Array.isArray(t.items))return null;let i=[],r=/* @__PURE__ */new Set;for(let e of t.items){let t=Ot(e);t===null||r.has(t.productId)||(r.add(t.productId),i.push(t))}/* @__PURE__ */
13
+ return Object.freeze({petRef:kt(t.pet_ref,bt)??petRef,headline:kt(t.headline,300),items:/* @__PURE__ */Object.freeze(i),updatedAt:kt(t.updated_at,64),...t.tracking_texts_enabled===true?{trackingTextsEnabled:true}:{}})}function Et(e){return typeof e=="string"&&e.length>0&&e.length<=bt}function Pt(petRef){return`/widget/v1/pets/${encodeURIComponent(petRef)}/plan`}function createHealthPlanRepository(e){let t=()=>{let{services:t}=e.registry;return createHealthPlanRepositoryOver({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}})};return{read:(petRef,i)=>e.isDisposed?Promise.resolve(err(wt("read"))):t().read(petRef,i),addItem:(petRef,i)=>e.isDisposed?Promise.resolve(err(wt("addItem"))):t().addItem(petRef,i),removeItem:(petRef,i)=>e.isDisposed?Promise.resolve(err(wt("removeItem"))):t().removeItem(petRef,i)}}function createHealthPlanRepositoryOver(e){let t=Ce(e.funnel??createRequestFunnel({auth:e.auth,...e.errorPolicy?{errorPolicy:e.errorPolicy}:{}})),i=async(e,petRef,i)=>{if(!Et(petRef))return err(yt("petRef must be 1..128 characters"));if(!Et(i))return err(yt("productId must be 1..128 characters"));let r=e==="PUT"?"healthPlan.item.add":"healthPlan.item.remove",n=await t.send(r,{method:e,path:`${Pt(petRef)}/items/${encodeURIComponent(i)}`});return n.ok?n.value===null||n.value===void 0||n.value===""?ok(null):ok(healthPlanFromWire(n.value,petRef)):err(n.error)};return{async read(petRef,e){if(!Et(petRef))return err(yt("petRef must be 1..128 characters"));let i={method:"GET",path:Pt(petRef),...e?.signal?{signal:e.signal}:{}},r=await t.send("healthPlan.read",i);if(!r.ok)return err(r.error);let n=healthPlanFromWire(r.value,petRef);return n===null?err(vt("healthPlan.read")):ok(n)},addItem:(petRef,e)=>i("PUT",petRef,e),removeItem:(petRef,e)=>i("DELETE",petRef,e)}}function Lt(e,t){let[i,r]=n(e),o=a(false);return l(()=>{let t=i;return o.current&&(t=e(),r(t)),o.current=true,()=>t.dispose()},t),i}function Bt(e){let t=globalThis.console;try{t?.error?.("[everfur] A host callback threw; the SDK ignored it.",e)}catch{}}function At(e){return(typeof e=="object"||typeof e=="function")&&e!==null&&typeof e.then=="function"}function Rt(e,...t){if(typeof e=="function")try{let i=e(...t);return At(i)&&Promise.resolve(i).then(void 0,Bt),i}catch(e){Bt(e);return}}var jt=/* @__PURE__ */new WeakMap;function $t(e){if(typeof e!="function")return;let t=jt.get(e);if(t!==void 0)return t;let i=(...t)=>{Rt(e,...t)};return jt.set(e,i),i}function Wt(e,t){let i=null;for(let r of t){let t=e[r];typeof t=="function"&&(i??={...e},i[r]=$t(t))}return i??e}var Mt=6e4;function Nt({lifecycle:e,refreshKey:t,readyAt:i,revalidate:r,refresh:n,now:o=Date.now}){let s=a({readyAt:i,revalidate:r,refresh:n??r,now:o});s.current={readyAt:i,revalidate:r,refresh:n??r,now:o},l(()=>{if(e==null)return;let t=Rt(()=>e.onForeground(()=>{let{readyAt:e,revalidate:t,now:i}=s.current;e!==null&&i()-e>=Mt&&t()}));return()=>{typeof t=="function"&&Rt(t)}},[e]);let c=a(t);l(()=>{Object.is(c.current,t)||(c.current=t,s.current.refresh())},[t])}function healthPlanCart(e){let t=/* @__PURE__ */Object.freeze((e?.items??[]).filter(e=>e.inPlan));if(t.length===0)/* @__PURE__ */return Object.freeze({items:t,count:0,subtotal:null,currency:null});let i=new Set(t.map(e=>e.currency));if(!t.every(e=>e.price!==null)||i.size!==1)/* @__PURE__ */return Object.freeze({items:t,count:t.length,subtotal:null,currency:null});let r=t.reduce((e,t)=>e+Math.round(t.price*100),0);/* @__PURE__ */
14
+ return Object.freeze({items:t,count:t.length,subtotal:r/100,currency:t[0]?.currency??null})}function formatHealthPlanPrice(e,t,i,r){if(e===null||t===null||!Number.isFinite(e))return null;let n=r?.dropZeroCents===true&&Number.isInteger(e);try{return new Intl.NumberFormat(i,{style:"currency",currency:t,...n?{minimumFractionDigits:0,maximumFractionDigits:0}:{}}).format(e)}catch{return`${t} ${n?String(e):e.toFixed(2)}`}}function formatHealthPlanPriceWith(e,t,i){return formatHealthPlanPrice(e,t,i?.locale,i)}function useEverfurHealthPlanRepository(){let{runtime:e}=A();return i(()=>createHealthPlanRepository(e),[e])}function useEverfurHealthPlan(e){let{userRef:userRef,activePet:t,scopeEpoch:r}=A(),a=useEverfurHealthPlanRepository(),petRef=e?.petRef??t??null,s=Lt(()=>new _e(a),[a,userRef,r]);l(()=>{s.load(userRef===null?null:petRef)},[s,userRef,petRef]);let c=o(s.subscribe,s.getSnapshot,s.getSnapshot),d=i(()=>healthPlanCart(c.plan),[c.plan]),[u,p]=n(null);l(()=>{p(c.phase==="ready"&&c.plan!==null?Date.now():null)},[c.phase,c.plan]),Nt({lifecycle:e?.lifecycle,refreshKey:e?.refreshKey,readyAt:u,revalidate:()=>{s.revalidate()},refresh:()=>{s.refresh()}});let h;return userRef===null?h="signedOut":petRef===null?h="noPet":c.petRef!==petRef||c.phase==="idle"||c.phase==="loading"?h="loading":c.phase==="failed"?h=Se(c.error)?"empty":"failed":h=(c.plan?.items.length??0)===0?"empty":"ready",i(()=>({status:h,petRef:petRef,plan:c.petRef===petRef?c.plan:null,cart:d,pending:c.pending,itemErrors:c.itemErrors,error:h==="empty"?null:c.error,setInPlan:(e,t)=>s.setInPlan(e,t),refresh:()=>s.load(userRef===null?null:petRef)}),[h,petRef,c,d,s,userRef])}var Gt=128,qt=/^\d{4}-\d{2}-\d{2}$/,Ut=/* @__PURE__ */new Set(["first_box_ships","checkin","refill_reminder","next_box_ships"]);var Vt=(e,t=300)=>typeof e=="string"&&e.trim().length>0&&e.length<=t?e.trim():null;function Yt(e){let t=typeof e=="number"?e:typeof e=="string"&&/^\d+(\.\d+)?$/.test(e.trim())?Number(e):Number.NaN;return Number.isFinite(t)&&t>=0?t:null}function Xt(e){return typeof e=="number"&&Number.isInteger(e)&&e>0?e:null}function Kt(e){return typeof e=="number"&&Number.isInteger(e)?String(e):Vt(e,Gt)}function Qt(e){return typeof e=="string"&&/^[A-Za-z]{3}$/.test(e)?e.toUpperCase():null}function Jt(e){return typeof e=="string"&&qt.test(e)?e:null}function Zt(e){return Array.isArray(e)?/* @__PURE__ */Object.freeze(e.map(Xt).filter(e=>e!==null)):/* @__PURE__ */Object.freeze([])}function ei(e){if(e===null||typeof e!="object")return null;let t=e,i=Yt(t.amount),r=Qt(t.currency),n=Xt(t.interval_days);return i===null||r===null||n===null?null:/* @__PURE__ */Object.freeze({amount:i,currency:r,intervalDays:n})}function ti(e){if(!Array.isArray(e))/* @__PURE__ */return Object.freeze([]);let t=[];for(let i of e){if(i===null||typeof i!="object")continue;let e=i,r=Jt(e.on);typeof e.step!="string"||!Ut.has(e.step)||r===null||t.push(/* @__PURE__ */Object.freeze({step:e.step,on:r}))}/* @__PURE__ */
15
+ return Object.freeze(t)}function healthPlanSubscriptionFromWire(e){if(e===null||typeof e!="object")return null;let t=e,i=Kt(t.subscription_id),r=Kt(t.product_id),n=t.status==="active"||t.status==="cancelled"?t.status:null,l=Xt(t.interval_days),o=Qt(t.currency),a=Yt(t.box_price);if(i===null||r===null||n===null||l===null||o===null||a===null)return null;let s=Zt(t.interval_options);/* @__PURE__ */
16
+ return Object.freeze({subscriptionId:i,productId:r,title:Vt(t.title),status:n,intervalDays:l,intervalOptions:s.length>0?s:/* @__PURE__ */Object.freeze([l]),currency:o,boxPrice:a,firstBoxPrice:Yt(t.first_box_price)??a,offerApplied:t.offer_applied===true,nextBoxDate:n==="active"?Jt(t.next_box_date):null,renewal:ei(t.renewal),timeline:n==="active"?ti(t.timeline):/* @__PURE__ */Object.freeze([])})}function healthPlanOneBoxOrderFromWire(e){if(e===null||typeof e!="object")return null;let t=e,i=Kt(t.order_id),r=Kt(t.product_id),n=Qt(t.currency),l=Yt(t.price);if(i===null||r===null||n===null||l===null)return null;let o=Xt(t.quantity),a=o!==null&&o<=ii?o:1;/* @__PURE__ */
17
+ return Object.freeze({orderId:i,productId:r,title:Vt(t.title),currency:n,boxPrice:Yt(t.box_price)??l,price:l,discountPercent:Xt(t.discount_percent)??0,shipsOn:Jt(t.ships_on),createdAt:si(t.created_at),quantity:a,total:Yt(t.total)??Math.round(l*a*100)/100,...ai(t.tracking)})}var ii=10,ri=/* @__PURE__ */new Set(["ordered","shipped","delivered"]),ni=/[\u0000-\u001f\u007f\u202a-\u202e\u2066-\u2069]/;function li(e,t){if(typeof e!="string"||ni.test(e))return null;let i=e.trim();return i.length>0&&i.length<=t?i:null}function oi(e){return typeof e!="string"||e.length>2048||ni.test(e)||/[\s@]/.test(e)||!/^https:\/\/[^/]/i.test(e)?null:We(e)?.protocol==="https:"?e:null}function healthPlanOrderTrackingFromWire(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,i=typeof t.status=="string"&&ri.has(t.status)?t.status:"ordered";/* @__PURE__ */
18
+ return Object.freeze({status:i,orderNumber:li(t.order_number,64),carrier:li(t.carrier,64),trackingNumber:li(t.tracking_number,128),trackingUrl:oi(t.tracking_url),shippedAt:si(t.shipped_at),estimatedDelivery:Jt(t.estimated_delivery),updatedAt:si(t.updated_at)})}function ai(e){let t=healthPlanOrderTrackingFromWire(e);return t===null?{}:{tracking:t}}function healthPlanOneBoxOrderPageFromWire(e){let t=e!==null&&typeof e=="object"?e.orders:null;if(!Array.isArray(t))return null;let i=e.next_cursor;/* @__PURE__ */
19
+ return Object.freeze({orders:/* @__PURE__ */Object.freeze(t.map(healthPlanOneBoxOrderFromWire).filter(e=>e!==null)),nextCursor:typeof i=="string"&&i.length>0&&i.length<=Gt?i:null})}function si(e){return typeof e!="string"||e.length>40||!/^\d{4}-\d{2}-\d{2}T/.test(e)||Number.isNaN(Date.parse(e))?null:e}function ci(e,t){if(e===null||typeof e!="object")return null;let i=e,r=Yt(i.price);return r===null||r>t?null:/* @__PURE__ */Object.freeze({price:r,discountPercent:Xt(i.discount_percent)??0})}function healthPlanSubscriptionQuoteFromWire(e){if(e===null||typeof e!="object")return null;let t=e,i=Kt(t.product_id),r=Qt(t.currency),n=Yt(t.box_price),l=Zt(t.interval_options);if(i===null||r===null||n===null||l.length===0)return null;let o=t.offer_applies===true,a=Xt(t.default_interval_days),s=t.supply,c=null;if(s!==null&&typeof s=="object"){let e=s,t=Xt(e.units_per_box),i=Yt(e.units_per_day),r=Xt(e.supply_days);t!==null&&i!==null&&r!==null&&(c=/* @__PURE__ */Object.freeze({unitsPerBox:t,unitLabel:Vt(e.unit_label,30),unitsPerDay:i,supplyDays:r,doseBasis:e.dose_basis==="weight"?"weight":"assumed"}))}let d=Xt(t.first_box_discount_percent)??0;/* @__PURE__ */
20
+ return Object.freeze({productId:i,currency:r,boxPrice:n,firstBoxPrice:o?Yt(t.first_box_price)??n:n,firstBoxDiscountPercent:o?d:0,offerApplies:o,oneBox:ci(t.one_box,n),intervalOptions:l,defaultIntervalDays:a!==null&&l.includes(a)?a:l[0],supply:c,firstBoxShipsOn:Jt(t.first_box_ships_on),subscription:healthPlanSubscriptionFromWire(t.subscription)})}function di(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function ui(e){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${e}: the response carried no subscription`})}function pi(e){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${e} was called after unmount`})}var hi=e=>typeof e=="string"&&e.length>0&&e.length<=Gt;function gi(petRef){return`/widget/v1/pets/${encodeURIComponent(petRef)}/plan/subscriptions`}function createHealthPlanSubscriptionRepositoryOver(e){let t=Ce(e.funnel??createRequestFunnel({auth:e.auth,...e.errorPolicy?{errorPolicy:e.errorPolicy}:{}})),i=async(e,petRef,i,r,n)=>{if(!hi(petRef))return err(di("petRef must be 1..128 characters"));let l=await t.send(e,{method:i,path:`${gi(petRef)}${r}`,...n===void 0?{}:{body:n}});if(!l.ok)return err(l.error);let o=healthPlanSubscriptionFromWire(l.value);return o===null?err(ui(e)):ok(o)},r=(e,t="")=>hi(e)?`/${encodeURIComponent(e)}${t}`:null;return{async quote(petRef,e){if(!hi(petRef))return err(di("petRef must be 1..128 characters"));if(!hi(e))return err(di("productId must be 1..128 characters"));let i=await t.send("healthPlan.subscription.quote",{method:"GET",path:`${gi(petRef)}/quote`,query:{product_id:e}});if(!i.ok)return err(i.error);let r=healthPlanSubscriptionQuoteFromWire(i.value);return r===null?err(ui("healthPlan.subscription.quote")):ok(r)},async list(petRef){if(!hi(petRef))return err(di("petRef must be 1..128 characters"));let e=await t.send("healthPlan.subscription.list",{method:"GET",path:gi(petRef)});if(!e.ok)return err(e.error);let i=e.value!==null&&typeof e.value=="object"?e.value.subscriptions:null;return Array.isArray(i)?ok(/* @__PURE__ */Object.freeze(i.map(healthPlanSubscriptionFromWire).filter(e=>e!==null))):err(ui("healthPlan.subscription.list"))},create(petRef,e,t){return hi(e)?i("healthPlan.subscription.create",petRef,"POST","",{product_id:e,...t===void 0?{}:{interval_days:t}}):Promise.resolve(err(di("productId must be 1..128 characters")))},changeInterval(petRef,e,t){let n=r(e);return n===null?Promise.resolve(err(di("subscriptionId must be 1..128 characters"))):i("healthPlan.subscription.interval",petRef,"PATCH",n,{interval_days:t})},skip(petRef,e){let t=r(e,"/skip");return t===null?Promise.resolve(err(di("subscriptionId must be 1..128 characters"))):i("healthPlan.subscription.skip",petRef,"POST",t,{})},cancel(petRef,e){let t=r(e,"/cancel");return t===null?Promise.resolve(err(di("subscriptionId must be 1..128 characters"))):i("healthPlan.subscription.cancel",petRef,"POST",t,{})},restart(petRef,e,t){let n=r(e,"/restart");return n===null?Promise.resolve(err(di("subscriptionId must be 1..128 characters"))):i("healthPlan.subscription.restart",petRef,"POST",n,t===void 0?{}:{interval_days:t})},async buyOneBox(petRef,e,i){if(!hi(petRef))return err(di("petRef must be 1..128 characters"));if(!hi(e))return err(di("productId must be 1..128 characters"));let r=await t.send("healthPlan.subscription.oneBox",{method:"POST",path:`${gi(petRef)}/one-box`,body:{product_id:e}},{idempotent:true,...i===void 0?{}:{idempotencyKey:`hp-one-box:${i}`}});if(!r.ok)return err(r.error);let n=healthPlanOneBoxOrderFromWire(r.value);return n===null?err(ui("healthPlan.subscription.oneBox")):ok(n)},async listOneBoxOrders(petRef){if(!hi(petRef))return err(di("petRef must be 1..128 characters"));let e=await t.send("healthPlan.subscription.oneBoxList",{method:"GET",path:`${gi(petRef)}/one-box`});if(!e.ok)return err(e.error);let i=healthPlanOneBoxOrderPageFromWire(e.value);return i===null?err(ui("healthPlan.subscription.oneBoxList")):ok(i.orders)},async listOneBoxOrderPage(petRef,e){if(!hi(petRef))return err(di("petRef must be 1..128 characters"));let i=e?.limit;if(i!==void 0&&!(Number.isInteger(i)&&i>=1&&i<=50))return err(di("limit must be a whole number 1..50"));if(e?.cursor!==void 0&&!hi(e.cursor))return err(di("cursor must be 1..128 characters"));let r={...i!==void 0?{limit:String(i)}:{},...e?.cursor!==void 0?{cursor:e.cursor}:{}},n=await t.send("healthPlan.subscription.oneBoxList",{method:"GET",path:`${gi(petRef)}/one-box`,query:r});if(!n.ok)return err(n.error);let l=healthPlanOneBoxOrderPageFromWire(n.value);return l===null?err(ui("healthPlan.subscription.oneBoxList")):ok(l)}}}function createHealthPlanSubscriptionRepository(e){let t=()=>{let{services:t}=e.registry;return createHealthPlanSubscriptionRepositoryOver({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}})},i=(i,r)=>(...n)=>e.isDisposed?Promise.resolve(err(pi(i))):r(t(),...n);return{quote:i("quote",(e,t,i)=>e.quote(t,i)),list:i("list",(e,t)=>e.list(t)),create:i("create",(e,t,i,r)=>e.create(t,i,r)),changeInterval:i("changeInterval",(e,t,i,r)=>e.changeInterval(t,i,r)),skip:i("skip",(e,t,i)=>e.skip(t,i)),cancel:i("cancel",(e,t,i)=>e.cancel(t,i)),restart:i("restart",(e,t,i,r)=>e.restart(t,i,r)),buyOneBox:i("buyOneBox",(e,t,i,r)=>e.buyOneBox(t,i,r)),listOneBoxOrders:i("listOneBoxOrders",(e,t)=>e.listOneBoxOrders(t)),listOneBoxOrderPage:i("listOneBoxOrderPage",(e,t,i)=>e.listOneBoxOrderPage(t,i))}}var fi=128;var mi=/* @__PURE__ */new Set(["shield","arrow","check","star","truck","refresh","card","alert","x","chat","repeat","calendar","flame","box","cart","minus","plus","chev","pulse","file","kit","dna","heart","bottle","harness","ramp"]),bi=/* @__PURE__ */new Set(["y","c","g","r"]),yi=/* @__PURE__ */new Set(["done","now","next"]),wi=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null,vi=(e,t=1e3)=>typeof e=="string"&&e.trim().length>0&&e.length<=t?e.trim():null,ki=e=>typeof e=="string"&&/^[A-Za-z0-9_-]{1,40}$/.test(e)?e:null,xi=e=>typeof e=="string"&&mi.has(e)?e:null;function Ti(e){let t=vi(e,2048);return t===null||/\s/.test(t)?null:/^https:\/\/[^/]/i.test(t)||/^\/(?![/\\])/.test(t)?t:null}var Ii=e=>typeof e=="number"&&Number.isInteger(e)?String(e):vi(e,fi);function Si(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:null}function zi(e){/* @__PURE__ */
21
+ return Object.freeze(Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null)))}function Di(e,t,i=20){if(!Array.isArray(e))return null;let r=[];for(let n of e){if(r.length>=i)break;let e=t(n);e!==null&&r.push(e)}return r.length===0?null:/* @__PURE__ */Object.freeze(r)}var Ci=(e,t=12,i=300)=>Di(e,e=>vi(e,i),t);function Hi(e){let t=wi(e),i=vi(t?.kicker,120),r=vi(t?.title,300);if(t===null||i===null||r===null)return null;let n=wi(t.risk),l=wi(t.odds),o=wi(t.quote),a=wi(t.jump);return zi({kicker:i,title:r,sources:Di(t.sources,e=>{let t=vi(wi(e)?.label,60);return t===null?null:zi({label:t,kind:ki(wi(e)?.kind)})},6),risk:vi(n?.lead,300)===null?null:zi({lead:vi(n?.lead,300),body:vi(n?.body),kind:ki(n?.kind)}),odds:vi(l?.label,120)===null||vi(l?.from,20)===null||vi(l?.to,20)===null?null:zi({label:vi(l?.label,120),tag:vi(l?.tag,40),from:vi(l?.from,20),to:vi(l?.to,20),toLabel:vi(l?.toLabel,120)}),quote:vi(o?.text)===null?null:zi({kicker:vi(o?.kicker,120),tag:vi(o?.tag,40),text:vi(o?.text)}),jump:vi(a?.title,300)===null||vi(a?.go,60)===null?null:zi({title:vi(a?.title,300),go:vi(a?.go,60)}),report:Fi(t.report)})}function Fi(e){let t=wi(e),i=vi(t?.label,120),r=vi(t?.text,1200);return i===null||r===null?null:zi({label:i,text:r,actions:Ci(t?.actions,5,300)})}function _i(e){let t=wi(e),i=vi(t?.title,300),r=Di(t?.steps,e=>{let t=wi(e),i=vi(t?.title,300),r=t?.tone;return i===null?null:zi({title:i,body:vi(t?.body),source:vi(t?.source,200),tone:typeof r=="string"&&bi.has(r)?r:null,icon:xi(t?.icon),fromVet:t?.fromVet===true?true:null})});return i===null||r===null?null:zi({title:i,label:vi(t?.label,60),steps:r})}function Oi(e){let t=wi(e),i=vi(t?.title,300);if(t===null||i===null)return null;let r=wi(t.rating),n=wi(t.reviews),l=wi(t.why),o=wi(l?.score),a=wi(t.dose),s=wi(t.ingredients),c=Di(n?.items,e=>{let t=wi(e),i=t?.stars,r=vi(t?.text),n=vi(t?.by,80);return typeof i!="number"||!Number.isFinite(i)||i<1||i>5||r===null||n===null?null:zi({stars:Math.round(i),text:r,by:n})},5),d=Di(l?.rows,e=>{let t=wi(e),i=vi(t?.chip,40),r=vi(t?.title,300);return i===null||r===null?null:zi({chip:i,kind:ki(t?.kind),title:r,body:vi(t?.body)})}),u=Di(a?.stats,e=>{let t=wi(e),i=vi(t?.value,40),r=vi(t?.label,120),n=t?.kind;return i===null||r===null?null:zi({value:i,label:r,kind:n==="weight"||n==="dose"||n==="days"?n:null})},6),p=Ci(s?.items,12,80);return zi({title:i,none:t.none===true?true:null,hidden:t.none===true&&t.hidden===true?true:null,productId:Ii(t.productId),partnerSku:vi(t.partnerSku,200),rating:vi(r?.value,20)===null?null:zi({value:vi(r?.value,20),label:vi(r?.label,120)}),line:vi(t.line),reviews:vi(n?.label,200)===null||c===null?null:zi({label:vi(n?.label,200),items:c}),checkoutLine:vi(t.checkoutLine,300),why:vi(l?.title,200)===null||d===null?null:zi({title:vi(l?.title,200),rows:d,score:vi(o?.text,200)===null||vi(o?.value,20)===null?null:zi({text:vi(o?.text,200),value:vi(o?.value,20)})}),dose:vi(a?.title,200)===null||u===null?null:zi({title:vi(a?.title,200),stats:u,note:vi(a?.note)}),doseLabel:vi(t.doseLabel,120),ingredients:p===null?null:zi({label:vi(s?.label,200),items:p}),proof:vi(t.proof,300),trust:Di(t.trust,e=>{let t=wi(e),i=xi(t?.icon),r=vi(t?.label,120);return i===null||r===null?null:zi({icon:i,label:r})},6),more:vi(t.more,120),fine:vi(t.fine),checkin:vi(t.checkin,200),detail:Ft(t.detail)??null})}function Ei(e){let t=wi(e),i=vi(t?.title,200),r=Di(t?.items,e=>{let t=wi(e),i=vi(t?.title,300),r=vi(t?.body);return i===null||r===null?null:zi({title:i,body:r,urgent:t?.urgent===true?true:null,callVet:t?.callVet===true?true:null})});return i===null||r===null?null:zi({title:i,items:r})}function Pi(e){let t=wi(e),i=vi(t?.title,200),r=Ci(t?.questions,12,300),n=vi(t?.add,80),l=vi(t?.added,80);return i===null||r===null||n===null||l===null?null:zi({title:i,questions:r,add:n,added:l})}function Li(e){let t=wi(e),i=vi(t?.title,200),r=Di(t?.items,e=>{let t=wi(e),i=vi(t?.key,fi),r=vi(t?.title,300),n=vi(t?.action,80),l=Ii(t?.productId),o=vi(t?.added,80)??(l!==null?n:null);return i===null||r===null||n===null||o===null?null:zi({key:i,productId:l,title:r,body:vi(t?.body),price:vi(t?.price,40),was:vi(t?.was,40),tag:vi(t?.tag,40),imageUrl:Ti(t?.imageUrl),icon:xi(t?.icon),kind:ki(t?.kind),action:n,added:o,owned:t?.owned===true?true:null,detail:Ft(t?.detail)??null})},6);return i===null||r===null?null:zi({title:i,items:r})}function Bi(e){let t=wi(e),i=vi(t?.kicker,120),r=vi(t?.title,120);return t===null||i===null||r===null?null:zi({kicker:i,title:r,icon:xi(t.icon),track:Di(t.track,e=>{let t=wi(e),i=vi(t?.title,120),r=t?.state;return i===null?null:zi({title:i,detail:vi(t?.detail,120),state:typeof r=="string"&&yi.has(r)?r:null,tag:vi(t?.tag,40)})},6),heading:vi(t.heading,200),rows:Di(t.rows,e=>{let t=wi(e),i=xi(t?.icon),r=vi(t?.label,120);if(i===null||r===null)return null;if(t?.fromVet===true)return zi({icon:i,label:r,text:"",fromVet:true});let n=vi(t?.text,300);return n===null?null:zi({icon:i,label:r,text:n})},6),note:vi(t.note,300),action:vi(t.action,80)})}function healthPlanFocusDesignFromWire(e){let t=wi(e),i=vi(t?.title,300),r=Oi(t?.pick);if(t===null||i===null||r===null)return null;let n=wi(t.byline);return zi({eyebrow:vi(t.eyebrow,120),title:i,subtitle:vi(t.subtitle,300),subtitleNoRecords:vi(t.subtitleNoRecords,300),headImageUrl:Ti(t.headImageUrl),byline:vi(n?.name,120)===null?null:zi({name:vi(n?.name,120),role:vi(n?.role,120),imageUrl:Ti(n?.imageUrl),shortName:vi(n?.shortName,60)}),focus:Hi(t.focus),routine:_i(t.routine),pick:r,signs:Ei(t.signs),checkup:Pi(t.checkup),extras:Li(t.extras),wait:Bi(t.wait),fine:vi(t.fine),checkoutRows:Di(t.checkoutRows,e=>{let t=wi(e),i=xi(t?.icon),r=vi(t?.label,60),n=vi(t?.value,200);return i===null||r===null||n===null?null:zi({icon:i,label:r,value:n})},6)})}function healthPlanPageFromWire(e,petRef){let t=wi(e);if(t===null||!("page"in t))return null;let i=wi(t.pet),r=i?.sex;/* @__PURE__ */
22
+ return Object.freeze({petRef:vi(t.pet_ref,fi)??petRef,pet:/* @__PURE__ */Object.freeze({name:vi(i?.name,120),species:vi(i?.species,60),sex:r==="female"||r==="male"?r:null,breed:vi(i?.breed,120),weightKg:Si(i?.weight_kg),weightLb:Si(i?.weight_lb)}),checkout:t.checkout==="everfur_stripe"?"everfur_stripe":"partner",page:healthPlanFocusDesignFromWire(t.page),vetReviewed:t.vet_reviewed===true,trackingTextsEnabled:t.tracking_texts_enabled===true})}function Ai(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function Ri(e){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${e}: the response was not the expected shape`})}function ji(e){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${e} was called after unmount`})}var $i=e=>typeof e=="string"&&e.length>0&&e.length<=fi;function Wi(petRef){return`/widget/v1/pets/${encodeURIComponent(petRef)}/plan`}async function Mi(e,petRef,t){if(!$i(petRef))return err(Ai("petRef must be 1..128 characters"));let i=await e.send("healthPlan.page.read",{method:"GET",path:`${Wi(petRef)}/page`,...t?.signal?{signal:t.signal}:{}});if(!i.ok)return err(i.error);let r=healthPlanPageFromWire(i.value,petRef);return r===null?err(Ri("healthPlan.page.read")):ok(r)}var Ni=/* @__PURE__ */new WeakMap;function Gi(e){let t=Ni.get(e);if(t!==void 0)return t;let i=qi(e);return Ni.set(e,i),i}function qi(e){return{getPage:(petRef,t)=>{if(e.isDisposed)return Promise.resolve(err(ji("getPage")));let{services:i}=e.registry,r=Ce(createRequestFunnel({auth:i.authFor(null),...i.errorPolicy?{errorPolicy:i.errorPolicy}:{}}));return Mi(r,petRef,t)}}}var Ui=Mt,Vi=/* @__PURE__ */Symbol.for("@everfur/sdk#HealthPlanPageReads@v1");function Yi(){let e=globalThis,t=e[Vi];if(t instanceof WeakMap)return t;let i=/* @__PURE__ */new WeakMap;return e[Vi]=i,i}function Xi(e,t,userRef,petRef,i){let r=Yi(),n=r.get(t);n===void 0&&(n=/* @__PURE__ */new Map,r.set(t,n));let l=n,o=`${userRef}\0${petRef}`,a=l.get(o);if(!i&&a!==void 0&&(a.at===null||Date.now()-a.at<Ui))return a.promise;let s={at:null,promise:e.getPage(petRef).then(e=>(l.get(o)===s&&(e.ok||Se(e.error)?s.at=Date.now():l.delete(o)),e))};return l.set(o,s),s.promise}function useHealthPlanPage(e){let{userRef:userRef,runtime:t}=A(),r=i(()=>Gi(t),[t]),o=e.repository,c=o??r,d=s((e,i)=>o!==void 0||userRef==null?c.getPage(e):Xi(r,t,userRef,e,i),[o,c,r,t,userRef]),{petRef:petRef}=e,u=e.enabled!==false&&userRef!=null&&petRef!==null,[p,h]=n({phase:"idle",petRef:null,page:null,error:null}),g=a(0),f=a(0),m=s(async e=>{let t=++g.current;if(!u||petRef===null){h(e=>e.phase==="idle"&&e.petRef===null?e:{phase:"idle",petRef:null,page:null,error:null});return}h(e=>({phase:"loading",petRef:petRef,page:e.petRef===petRef?e.page:null,error:null}));let i=await d(petRef,e);t===g.current&&(i.ok?h({phase:"ready",petRef:petRef,page:i.value,error:null,readyAt:Date.now()}):Se(i.error)?h({phase:"ready",petRef:petRef,page:null,error:null,missing:true,readyAt:Date.now()}):h({phase:"failed",petRef:petRef,page:null,error:i.error}))},[u,petRef,d]),b=s(()=>m(true),[m]),y=p.phase==="ready"&&p.petRef===petRef,w=s(async()=>{if(!u||petRef===null||!y)return;let e=g.current,t=++f.current,i=await d(petRef,true);e!==g.current||t!==f.current||!i.ok||h(e=>e.phase==="ready"&&e.petRef===petRef?{phase:"ready",petRef:petRef,page:i.value,error:null,readyAt:Date.now()}:e)},[u,petRef,y,d]);Nt({lifecycle:e.lifecycle,refreshKey:e.refreshKey,readyAt:y?p.readyAt??null:null,revalidate:()=>{w()},refresh:()=>{y?w():b()}}),l(()=>(m(false),()=>{g.current+=1}),[m]);let v=u&&p.petRef!==petRef;return i(()=>({phase:v?"loading":p.phase,page:v?null:p.page,error:v?null:p.error,missing:!v&&p.missing===true,refresh:b}),[v,p,b])}function useHealthPlanSubscriptionRepository(){let{runtime:e}=A();return i(()=>createHealthPlanSubscriptionRepository(e),[e])}var Ki=/* @__PURE__ */Object.freeze({chat:/* @__PURE__ */Object.freeze(["chat.message.create"]),records:/* @__PURE__ */Object.freeze(["records.upload.create","records.record.read"]),recordsClinic:/* @__PURE__ */Object.freeze(["records.clinic.create"]),video:/* @__PURE__ */Object.freeze(["video.gait.execute"]),photo:/* @__PURE__ */Object.freeze(["photo.checkup.execute"]),animations:/* @__PURE__ */Object.freeze(["animations.state.read"]),televet:/* @__PURE__ */Object.freeze(["televet.visit.create"]),texting:/* @__PURE__ */Object.freeze(["sms.identity.read","sms.identity.update"]),healthPlan:/* @__PURE__ */Object.freeze(["shop.plan.read","shop.plan.update"])});function requires(e){return Ki[e]}function decideCapability(e,t,i){let r=requires(e),n=/* @__PURE__ */new Map;for(let e of t)n.set(e.resource,e);if(i?.isPending===true&&r.some(e=>!n.has(e)))return Zi({name:e,enabled:false,isPending:true,limits:{}});let l=Qi(r,n);return r.filter(e=>n.get(e)?.granted!==true).length===0?Zi({name:e,enabled:true,isPending:false,limits:l}):Zi({name:e,enabled:false,isPending:false,limits:l,disabled:Ji(r,n)})}function Qi(e,t){let i={};for(let r of e){let e=t.get(r)?.limits;if(e)for(let[t,r]of Object.entries(e)){let e=i[t];i[t]=e===void 0?r:Math.min(e,r)}}return i}function Ji(e,t){for(let i of e){let e=t.get(i)?.disabled;if(e)/* @__PURE__ */
22
23
  return Object.freeze({reason:e.reason,level:e.level,recoverable:e.recoverable})}/* @__PURE__ */
23
- return Object.freeze({reason:userFacingError("accessDenied"),level:"user_entitlement",recoverable:false})}function Qi(e){let t={name:e.name,enabled:e.enabled,isPending:e.isPending,limits:/* @__PURE__ */Object.freeze({...e.limits})};return e.disabled!==void 0&&(t.disabled=e.disabled),/* @__PURE__ */Object.freeze(t)}function useCapability(e){let{runtime:t}=A(),r=t.entitlements,n=o(r.subscribe,r.getSnapshot,r.getSnapshot);return i(()=>decideCapability(e,n.decisions,{isPending:n.isPending}),[e,n])}var Ji=/* @__PURE__ */Object.freeze({loading:"Loading",retry:"Try again",signedOut:"Sign in required",addToCart:"Add to cart",added:"Added",remove:"Remove",checkout:"Checkout",subtotal:"Subtotal",sample:"Sample",cartEmpty:"Your cart is empty.",choosePet:"Choose a pet",emptyTitle:"",emptyBody:"",emptyAsk:""}),Zi=/* @__PURE__ */Object.freeze({emptyTitle:true,emptyBody:true,emptyAsk:true}),er=/* @__PURE__ */Object.freeze({dna:"",records:"Records",inside:"Inside",profile:""}),tr=/* @__PURE__ */Object.freeze({planTitle:e=>`${e}'s care plan`,cartLabel:e=>`${e} cart`});/* @__PURE__ */Object.freeze([...Object.keys(Ji).filter(e=>Zi[e]===true&&Ji[e]==="").map(e=>`HEALTH_PLAN_COPY.${e}`),...["profile"].filter(e=>er[e]==="").map(e=>`HEALTH_PLAN_REASON_LABELS.${e}`)]);function healthPlanPetWords(e,t){let i=e?.trim()??"",r=i===""?"your pet":i,n=i===""?"Your pet":i;return{name:r,Name:n,poss:"her",Poss:"Her",obj:"her"}}var ir=e=>e===null?"":`${e.productName} renews every ${e.intervalDays} days at ${e.box??""} until you cancel; skip or cancel anytime in the app.`;function healthPlanFocusCopyFor(e){let t=healthPlanPetWords(e.name),i=e=>e.petName?.trim()||t.name,NameOf=e=>e.petName?.trim()||t.Name,r=/* @__PURE__ */Object.freeze({jumpKicker:(e,i)=>i?`In ${t.poss} plan, every ${e.intervalDays} days`:e.offer?`${e.discountPercent}% off ${t.poss} first box`:e.intervalDays>0?`Ships every ${e.intervalDays} days`:r.onceLine(e),optionsLabel:"How to buy",subscribe:"Subscribe",bestValue:"Best value",subscribeLine:e=>e.offer?`First box, then ${e.box??""}`:`${e.box??""} every ${e.intervalDays} days`,priceLine:e=>e.offer?`${e.discountPercent}% off the first box. Ships every ${e.intervalDays} days.`:e.intervalDays>0?`Ships every ${e.intervalDays} days.`:r.onceOffer(e),once:"One box",onceLine:e=>e.onceDiscountPercent>0?`${e.onceDiscountPercent}% off, ships once`:"Ships once",buyOnce:e=>`Buy one box, ${e.once??e.box??""}`,subscribed:"Subscribed",subscribedLine:(e,t)=>t===null?`Every ${e.intervalDays} days`:`Every ${e.intervalDays} days · next box ${t}`,manage:"Manage",checkoutKicker:"Checkout",checkoutTitle:e=>`Checkout: ${e.productName}`,checkoutOffer:e=>`${e.discountPercent}% off your first box.`,shipsEvery:"Ships every",days:e=>`${e} days`,buyOnceOption:"Buy once",checkoutGo:(e,t,i)=>`${t?"Subscribe":"Buy now"} · ${i} today`,renews:e=>`Renews every ${e.intervalDays} days at ${e.box??""} until you cancel; skip or cancel anytime in the app.`,onceFine:"One box, ships tomorrow.",onceOffer:e=>e.onceDiscountPercent>0?`${e.onceDiscountPercent}% off, ships once.`:"Ships once.",checkoutNote:"",close:"Close",startedTitle:e=>`${NameOf(e)}'s plan has started.`,orderedTitle:()=>"Order placed.",startedWhat:e=>`${e.productName} ships tomorrow.`,startedNote:"",startedSteps:"What happens next",tomorrow:"Tomorrow",firstBoxShips:`${t.Poss} first box ships.`,trackingComesByText:"Tracking comes by text.",checkin:e=>e===null?"A 2-week check-in by text.":`A 2-week check-in by text: ${e}`,refill:`A text 3 days before ${t.poss} next box. Reply SKIP to skip it.`,nextBoxShips:e=>`${t.Poss} next box ships, ${e.box??""}.`,startedDone:`Back to ${t.poss} plan`,manageKicker:"Your subscription",manageTitle:e=>`Manage ${e.productName}`,skip:"Skip the next box",cancel:"Cancel subscription",skipped:(e,i)=>i===null?"Skipped.":`Skipped. ${t.Poss} next box ships ${i}.`,cancelled:e=>`${e.productName} is cancelled. Restart it from ${t.poss} plan anytime.`,orders:"Orders",startedHeader:"Subscribed",placedHeader:"Order placed",cartCheckoutTitle:"Checkout",orderNote:"",cartLabel:e=>e>0?`Cart, ${e} item${e>1?"s":""}`:"Cart, empty",addToCart:e=>`Add to cart · ${e}`,viewCart:"View cart",addedToCart:(e,t)=>`${e.productName} is in your cart${t?", as a subscription":""}.`,removedFromCart:e=>`${e} is out of your cart.`,cartTitle:"Cart",cartEmptyTitle:"Your cart is empty",cartEmptyBody:e=>`${NameOf(e)}'s plan pick lands here when you add it.`,seeOrders:`See ${t.poss} orders`,quantityLabel:e=>`How many: ${e}`,fewer:"One fewer",more:"One more",remove:"Remove",cartSubLine:e=>e.offer?`First box ${e.discountPercent}% off, then ${e.box??""} every ${e.intervalDays} days`:`Every ${e.intervalDays} days`,cartOnceLine:(e,i)=>i?`An extra box. ${t.Poss} plan keeps shipping.`:e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",cartModeLabel:e=>`How to buy ${e}`,cartModeSubscribe:e=>e.offer?`Subscribe, ${e.discountPercent}% off the first box`:"Subscribe",cartModeOnce:e=>e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",subtotal:"Subtotal",shipping:"Shipping",shippingValue:"",shippingTag:"",total:"Total",dueToday:"Due today",thenRenews:e=>`Then ${e.productName}`,renewsEvery:e=>`${e.box??""} every ${e.intervalDays} days`,checkoutCart:e=>`Checkout · ${e}`,cartOneAtATime:"",cartSubscriptionApart:"",cartItemSubscription:e=>`Subscription, every ${e.intervalDays} days`,cartItemQuantity:e=>`Qty ${e}`,placeOrder:(e,t)=>`${t?"Place order and subscribe":"Place order"} · ${e}`,cartFine:e=>`${e===null?"":`${ir(e)} `}Ships tomorrow.`,placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",herSubscription:`${t.Poss} subscription`,nextBox:e=>`Next box ${e}`,everyDays:e=>`Every ${e} days`,ordersHeading:e=>e?"Orders":`${t.Poss} orders`,ordersFine:"",ordersEmptyTitle:"No orders yet",ordersEmptyBody:e=>`The boxes from ${i(e)}'s plan show up here.`,moreOrders:"",orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],subscriptionBox:"Subscription box",orderTitle:e=>e===null?"Order":`Order ${e}`,arrivesBy:e=>`Arrives by ${e}`,deliveredOn:e=>`Delivered ${e}`,expected:e=>`Expected ${e}`,tracking:"Tracking",trackingByText:"The tracking number comes by text when it ships.",trackOn:e=>`Track on ${e}`,trackLink:"",inThisOrder:"In this order",orderItemLine:(e,t)=>`Qty ${e}${t?" · subscription box":""}`,paidWith:"Paid with",buyAgain:"Buy again",orderHelp:"Get help with this order",addWeightTitle:`Add ${t.poss} weight to size ${t.poss} dose`,addWeightBody:`From a home scale or ${t.poss} last vet visit.`,connectRecordsTitle:`Connect ${t.poss} vet records`,connectRecordsBody:`${t.Poss} weight, visits and labs make ${t.poss} plan sharper.`,weightKicker:`${t.Poss} weight`,weightTitle:e=>`Add ${i(e)}'s weight`,weightBody:`From a home scale or ${t.poss} last vet visit. ${t.Poss} plan uses it to size ${t.poss} dose.`,weightField:`${t.Poss} weight`,weightUnit:"lb",weightUnitKg:"kg",weightErrorKg:"Enter your pet’s weight",weightError:`Enter ${t.poss} weight in pounds, like 14.1.`,weightSave:`Save ${t.poss} weight`,weightSaved:e=>`Saved: ${e} lb. ${t.Poss} dose is sized for ${t.obj}.`,weightSavedKg:e=>`Saved: ${e} kg. ${t.Poss} dose is sized for ${t.obj}.`,checkoutFailed:"That didn't go through. Please try again.",builtWith:e=>`Built with ${e}`,fromVet:e=>`From ${e}`,waitVetTips:e=>`Free tips from ${e}, built around that risk`,signalsFit:e=>`${e} of ${e} signals fit ${t.Name}`,signalsValue:e=>`${e}/${e}`,noPick:`No supplement for this one. ${t.Poss} vet comes first.`,callYourVet:"Call your vet today",callAVet:"Call a vet today",saveForCheckup:`Save for ${t.poss} next checkup`,savedForCheckup:`Saved for ${t.poss} next checkup`,blanksLabel:`${t.Poss} three blanks`,blanksAsked:e=>`Asked ${e}`,blanksAskedNoClinic:"",blanksWaitPill:"2 to 5 days",blanksFilledKicker:`From ${t.poss} vet records`,blanksFilled:(e,t)=>`${e} of ${t} filled`,blanksWeight:`Keep ${t.obj} at `,blanksWeightSource:`From ${t.poss} vet visits`,blanksDose:(e,t)=>`${e} of ${t}`,blanksDoseSource:`Sized to ${t.poss} weight`,blanksShots:`${t.Poss} next shots are due `,blanksShotsSource:`From ${t.poss} clinic`,blankEmpty:"blank",recordsLanded:`${t.Poss} records are in. ${t.Poss} plan now uses ${t.poss} weight and ${t.poss} visits.`,todayLabel:`${t.Poss} Health Plan`,poweredBy:"powered by",poweredByName:"Everfur",seeMore:"See more",seeLess:"See less",reportActions:"Actions to take",openReport:`Open it in ${t.poss} report`,askReport:"Ask about it",fullOpen:`See ${t.poss} full plan`,fullOpenLine:`${t.Poss} vet, reviews and ${t.poss} checkup`,fullClose:`Show ${t.poss} brief plan`,fullCloseLine:`${t.Poss} risk, tips, pick and signs`,hopeNoted:e=>`Noted. When ${t.poss} results land, we'll start with ${e}.`,productLink:e=>`${e}, see the product`,productPhotos:e=>`${e} photos, swipe for more`,shopAll:"Shop all",madeFor:`Made for ${t.name}`,ratingLine:e=>`· ${e} reviews`,productOffer:e=>`${e.discountPercent}% off ${t.poss} first box`,productEvery:e=>`Every ${e.intervalDays} days`,productOnce:e=>e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",productExtraBox:"An extra box",productOnPlan:e=>`On ${t.poss} plan, every ${e.intervalDays} days. This adds one extra box.`,quantity:"Quantity",description:"Description",readMore:"Read more",readLess:"Read less",whatsInside:"What's inside",howMuch:"How much",reviewsTitle:"Reviews",reviewCount:e=>`${e} reviews`,reviewsSwipe:"Reviews, swipe for more",readAllReviews:e=>`Read all ${e} reviews`,starsLabel:e=>`${e} out of 5 stars`,buyNow:"Buy now"});return r}var rr=healthPlanFocusCopyFor({});function formatHealthPlanDay(e,t){if(e===null||!/^\d{4}-\d{2}-\d{2}$/.test(e))return null;let i=/* @__PURE__ */new Date(`${e}T00:00:00Z`);if(Number.isNaN(i.getTime()))return null;try{return new Intl.DateTimeFormat(t??"en-US",{month:"short",day:"numeric",timeZone:"UTC"}).format(i)}catch{return e}}var nr=e=>/* @__PURE__ */Object.freeze(e.map(e=>/* @__PURE__ */Object.freeze(e)));function lr(e){let t={};for(let[i,r]of Object.entries(e))r!==void 0&&(t[i]=r);return t}function or(e){let t=e?.focus;if(!t)return nr([]);let i=e?.byline,r=t.risk?.kind,n=r==="risk"||r==="watch"||r==="clear"?r:void 0;return nr([lr({kicker:t.kicker,sources:t.sources?.map(e=>({label:e.label,kind:e.kind==="dna"?"dna":"records"})),title:t.title,signals:t.risk?[{key:"risk",lead:t.risk.lead,text:t.risk.body??"",tone:n,dot:n===void 0?"space":true}]:[],score:t.odds?{label:t.odds.label,tag:t.odds.tag,was:t.odds.from,now:t.odds.to,since:t.odds.toLabel}:void 0,quote:t.quote&&i?{text:t.quote.text,by:i.shortName??void 0,image:i.imageUrl??null,tag:t.quote.tag}:void 0})])}function ar(e){let t=e?.routine?.steps??[],i=e?.byline?.shortName;return nr(t.map((e,t)=>lr({key:e.title,number:String(t+1),title:e.title,text:e.body||void 0,foot:e.fromVet?i?rr.fromVet(i):void 0:e.source??void 0,tone:e.tone??"y"})))}function sr(e,t){return formatHealthPlanPrice(e.price,e.currency,t)??void 0}function cr(e,t){return dr(e?.items??[],t)}function dr(e,t){return nr(e.map(e=>lr({key:e.productId,name:e.title,image:e.imageUrl,imageAlt:e.title,kicker:e.category??void 0,price:sr(e,t),badge:e.sample?Ji.sample:void 0})))}function ur(e,t){return nr(healthPlanCart(e??null).items.map(e=>lr({key:e.productId,name:e.title,image:e.imageUrl,imageAlt:e.title,meta:e.category??void 0,price:sr(e,t)})))}function pr(e,t){let i=healthPlanCart(e??null),r=formatHealthPlanPrice(i.subtotal,i.currency,t);return i.count===0||r===null?nr([]):nr([{rows:[{key:"subtotal",term:Ji.subtotal,value:r}],count:i.count}])}function hr(e,t){return nr((e??[]).map(e=>lr({key:e.orderId,number:e.orderId,title:e.title??"",meta:formatHealthPlanDay(e.shipsOn??e.createdAt??null,t)??void 0,total:formatHealthPlanPrice(e.total??e.price*(e.quantity??1),e.currency,t)??void 0})))}var gr=["plan.needs","plan.tips"],fr=["plan.items","cart.lines","cart.summary"];function mr(e){let{userRef:userRef,activePet:t,scopeEpoch:r}=A(),a=useCapability("healthPlan").enabled,petRef=e.petRef===void 0?t??null:e.petRef,{sources:s,locale:c}=e,d=a&&userRef!==null&&petRef!==null,u=d&&gr.some(e=>s.has(e)),p=d&&fr.some(e=>s.has(e)),h=d&&s.has("orders.recent"),g=useHealthPlanPage({petRef:petRef,enabled:u}),f=useEverfurHealthPlanRepository(),m=Et(()=>new He(f),[f,userRef,r]);l(()=>{m.load(p?petRef:null)},[m,p,petRef]);let b=o(m.subscribe,m.getSnapshot,m.getSnapshot),y=useHealthPlanSubscriptionRepository(),[w,v]=n(null);return l(()=>{if(!h||petRef===null)return;let e=true;return Fe(y,petRef).then(t=>{e&&(t.ok?v({petRef:petRef,list:t.value.orders}):Te(t.error)&&v({petRef:petRef,list:[]}))}),()=>{e=false}},[h,petRef,y]),i(()=>{let e={};if(u&&g.phase==="ready"){let t=g.missing?null:g.page?.page??null;e["plan.needs"]=or(t),e["plan.tips"]=ar(t)}if(p&&b.petRef===petRef){let t=b.phase==="ready"?b.plan:b.phase==="failed"&&Te(b.error)?null:void 0;t!==void 0&&(e["plan.items"]=cr(t,c),e["cart.lines"]=ur(t,c),e["cart.summary"]=pr(t,c))}return h&&w!==null&&w.petRef===petRef&&(e["orders.recent"]=hr(w.list,c)),e},[u,p,h,g.phase,g.missing,g.page,b,w,petRef,c])}var br="everfur.slot/1";var yr=/* @__PURE__ */Symbol("bad");function wr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function vr(e,t,i){return typeof e=="string"&&e.length>=t&&e.length<=i?e:yr}function kr(e,t){return e==null?void 0:vr(e,0,t)}function xr(e){return e===void 0?{}:wr(e)?e:yr}function Tr(e){let t=xr(e);if(t===yr)return yr;for(let e of Object.values(t))if(typeof e!="string")return yr;return t}function Ir(e,t,i){return typeof e=="number"&&Number.isInteger(e)&&e>=t&&e<=i?e:yr}function Sr(e){if(e==null)return;if(e==="hide")return"hide";if(!wr(e))return yr;let t=vr(e.type,1,64),i=kr(e.variant,64),r=xr(e.settings),n=Tr(e.bind),l=Tr(e.actions);return t===yr||i===yr||r===yr||n===yr||l===yr?yr:/* @__PURE__ */Object.freeze({type:t,...i?{variant:i}:{},settings:/* @__PURE__ */Object.freeze({...r}),bind:/* @__PURE__ */Object.freeze({...n}),actions:/* @__PURE__ */Object.freeze({...l})})}function zr(e){if(e==null)return;if(!wr(e))return yr;let t=vr(e.source,0,80);return t===yr||e.op!=="present"&&e.op!=="absent"?yr:/* @__PURE__ */Object.freeze({source:t,op:e.op})}function Dr(e){if(!wr(e))return yr;let t=vr(e.id,1,64),i=vr(e.type,1,64),r=kr(e.variant,64),n=xr(e.settings),l=Tr(e.bind),o=kr(e.repeat,80),a=zr(e.visibleIf),s=Tr(e.actions),c=Sr(e.fallback);return t===yr||i===yr||r===yr||n===yr||l===yr||o===yr||a===yr||s===yr||c===yr?yr:/* @__PURE__ */Object.freeze({id:t,type:i,...r?{variant:r}:{},settings:/* @__PURE__ */Object.freeze({...n}),bind:/* @__PURE__ */Object.freeze({...l}),...o?{repeat:o}:{},...a?{visibleIf:a}:{},actions:/* @__PURE__ */Object.freeze({...s}),...c?{fallback:c}:{}})}var Cr=/^everfur\.slot\/(\d{1,4})$/,Hr=/<\s*[A-Za-z/!?]|&[A-Za-z#][A-Za-z0-9]*;/,Fr=/[\u0000-\u0008\u000b-\u001f\u007f\u2028\u2029]/,_r=/^[a-z][a-zA-Z0-9]*(\.[a-zA-Z0-9]+){0,4}$/,Or=/^#[0-9a-fA-F]{6}$/,Er=1e4;function Pr(e){let t=0;for(let i=0;i<e.length;i++){let r=e.charCodeAt(i);r<128?t+=1:r<2048?t+=2:r>=55296&&r<=56319&&i+1<e.length?(t+=4,i++):t+=3}return t}function Lr(e){return e.trim()!==""&&!Hr.test(e)&&!Fr.test(e)}function Br(e){try{return Pr(JSON.stringify(e)??"")}catch{return Number.POSITIVE_INFINITY}}function Ar(e){let t=e!==null&&typeof e=="object"?e.schema:void 0;if(typeof t!="string")return"unparseable";let i=Cr.exec(t);return i===null?"unparseable":Number(i[1])>1?"newer_schema":null}function Rr(e){let t={};for(let[i,r]of Object.entries(e))_r.test(i)&&(typeof r=="string"&&Or.test(r)||typeof r=="number"&&Number.isFinite(r)&&Math.abs(r)<=Er)&&(t[i]=r);/* @__PURE__ */
24
- return Object.freeze(t)}function jr(e){let t={};for(let[i,r]of Object.entries(e)){let e=typeof r=="string"?r:r!==null&&typeof r=="object"?r.text:void 0;typeof e=="string"&&e.length<=500&&Lr(e)&&(t[i]=e)}/* @__PURE__ */
25
- return Object.freeze(t)}function $r(e,t){if(Br(e)>65536)return{ok:false,reason:"too_large"};let i=Ar(e);if(i!==null)return{ok:false,reason:i};let r=e,n=vr(r.slot,3,64),l=r.docVersion===void 0||r.docVersion===null?null:Ir(r.docVersion,1,Number.MAX_SAFE_INTEGER),o=r.minBlocks===void 0?1:Ir(r.minBlocks,0,50),a=r.theme===void 0||r.theme===null?{}:xr(r.theme),s=a===yr?yr:xr(a.tokens),c=xr(r.copy),d=Array.isArray(r.parts)&&r.parts.length>=1&&r.parts.length<=50?r.parts.map(Dr):yr;return n===yr||l===yr||o===yr||s===yr||c===yr?{ok:false,reason:"unparseable"}:d===yr||d.some(e=>e===yr)?{ok:false,reason:"unparseable"}:n!==t?{ok:false,reason:"wrong_slot"}:{ok:true,doc:/* @__PURE__ */Object.freeze({schema:br,slot:n,docVersion:l,minBlocks:o,tokens:Rr(s),parts:/* @__PURE__ */Object.freeze(d),copy:jr(c)})}}function Wr(e){if(e===null)return{ok:false,reason:"too_large"};if(typeof e!="string")return{ok:true,raw:e};if(e.length>65536||Pr(e)>65536)return{ok:false,reason:"too_large"};try{return{ok:!0,raw:JSON.parse(e)}}catch{return{ok:false,reason:"unparseable"}}}function Mr(e){/* @__PURE__ */
26
- return Object.freeze({settings:{},bind:{},actions:{},...e})}var Nr=/* @__PURE__ */Object.freeze({focus:Mr({id:"focus",type:"PlanNeedCard",variant:"plan",bind:{title:"data:plan.needs"}}),needs:Mr({id:"needs",type:"PlanNeedCard",variant:"standard",repeat:"data:plan.needs"}),tips:Mr({id:"tips",type:"TipCard",variant:"plan",repeat:"data:plan.tips"}),shelf:Mr({id:"shelf",type:"ProductTile",variant:"standard",repeat:"data:plan.items"}),cartLines:Mr({id:"cart-lines",type:"CartLine",variant:"plan",repeat:"data:cart.lines"}),cartSummary:Mr({id:"cart-summary",type:"PriceSummary",bind:{rows:"data:cart.summary"},visibleIf:{source:"data:cart.summary",op:"present"}}),orders:Mr({id:"orders",type:"OrderRow",variant:"quiet",repeat:"data:orders.recent"})});function Gr(e,t){/* @__PURE__ */
27
- return Object.freeze({schema:br,slot:e,docVersion:null,minBlocks:1,tokens:{},parts:/* @__PURE__ */Object.freeze([...t]),copy:{}})}var qr=Nr,Ur=/* @__PURE__ */Object.freeze({"health_plan.focus":Gr("health_plan.focus",[qr.focus,qr.tips]),"today.health":Gr("today.health",[qr.focus,qr.tips]),"shop.shelf":Gr("shop.shelf",[qr.shelf]),"shop.cart":Gr("shop.cart",[qr.cartLines,qr.cartSummary]),"shop.orders":Gr("shop.orders",[qr.orders])});function Vr(e){return Object.prototype.hasOwnProperty.call(Ur,e)?Ur[e]??null:null}function Yr(e){return Gr(`part.${e.toLowerCase()}`,[Nr[e]])}function Xr(e){if(typeof e=="number")return Jr(e);if(typeof e!="string")return null;let t=e.trim();if(t.length===0)return null;if(t.startsWith("#"))return Kr(t.slice(1));if(t.toLowerCase().startsWith("0x"))return Kr(t.slice(2));if(t.toLowerCase().startsWith("rgb"))return Qr(t);if(/^[0-9a-fA-F]+$/.test(t)){let e=Kr(t);if(e!==null)return e}return/^\d+$/.test(t)?Jr(Number.parseInt(t,10)):null}function Kr(e){let t=e.trim();if(!/^[0-9a-fA-F]+$/.test(t))return null;if(t.length===3)return{r:en(t[0]),g:en(t[1]),b:en(t[2]),a:1};if(t.length===6)return{r:Zr(t,0),g:Zr(t,2),b:Zr(t,4),a:1};if(t.length===8){let e=Zr(t,0);return{r:Zr(t,2),g:Zr(t,4),b:Zr(t,6),a:e/255}}return null}function Qr(e){let t=e.indexOf("("),i=e.indexOf(")");if(t<0||i<0||i<t)return null;let r=e.slice(t+1,i).split(",").map(e=>e.trim());if(r.length<3)return null;let n=tn(Number(r[0])),l=tn(Number(r[1])),o=tn(Number(r[2]));if(n===null||l===null||o===null)return null;let a=1;if(r.length>=4){let e=Number(r[3]);if(!Number.isFinite(e))return null;a=Math.min(1,Math.max(0,e))}return{r:n,g:l,b:o,a:a}}function Jr(e){if(!Number.isFinite(e))return null;let t=Math.trunc(e)>>>0,i=t>>>24&255;return{r:t>>>16&255,g:t>>>8&255,b:t&255,a:i===0?1:i/255}}function Zr(e,t){return Number.parseInt(e.slice(t,t+2),16)}function en(e){return Number.parseInt(`${e??"0"}${e??"0"}`,16)}function tn(e){return Number.isFinite(e)?Math.min(255,Math.max(0,Math.round(e))):null}function rn(e,t,i){return`#${nn(e)}${nn(t)}${nn(i)}`.toUpperCase()}function nn(e){return e.toString(16).padStart(2,"0")}var ln="#111111",on="#FFFFFF",an="#000000";function readableOn(e){let t=Xr(e);if(t===null)return on;let i=dn(t),r=dn({r:17,g:17,b:17}),n=dn({r:255,g:255,b:255});return pn(i,n)>=pn(i,r)?on:ln}function sn(e,t){let i=readableOn(e);return contrastRatio(i,e)>=t?i:contrastRatio(on,e)>=contrastRatio(an,e)?on:an}function cn(e){let t=t=>e.reduce((e,i)=>Math.min(e,contrastRatio(t,i)),Number.POSITIVE_INFINITY);return t(on)>=t(an)?on:an}function dn(e){let t=un(e.r/255),i=un(e.g/255),r=un(e.b/255);return.2126*t+.7152*i+.0722*r}function un(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pn(e,t){let i=Math.max(e,t),r=Math.min(e,t);return(i+.05)/(r+.05)}function contrastRatio(e,t){let i=Xr(e),r=Xr(t);if(i===null||r===null)return 1;let n=r.a>=1?r:{...r},l=i.a>=1?i:hn(i,n);return pn(dn(l),dn(n))}function hn(e,t){let i=e.a,r=(e,t)=>Math.round(e*i+t*(1-i));return{r:r(e.r,t.r),g:r(e.g,t.g),b:r(e.b,t.b),a:1}}function gn(e,t){let i=Xr(e),r=Xr(t);if(i===null||r===null)return null;let n=i.a>=1?i:hn(i,{...r});return rn(n.r,n.g,n.b)}var fn=.05;function mn(e,t,i,r){let n=t[0];if(n===void 0)return i;let l=e=>t.every(t=>contrastRatio(e,t)>=r);if(Xr(e)===null)return i;if(l(e))return e;let o=gn(e,n),a=o===null?null:Xr(o),s=Xr(i);if(a===null||s===null)return i;for(let e=1;e<1/fn;e+=1){let t=e*fn,i=(e,i)=>Math.round(e+(i-e)*t),r=rn(i(a.r,s.r),i(a.g,s.g),i(a.b,s.b));if(l(r))return r}return i}var bn=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var yn=Object.freeze;function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){yn(e);for(let t of Object.keys(e))deepFreeze(e[t])}return e}var wn=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var vn={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},kn={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},xn={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},Tn={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},In={regular:"400",medium:"500",bold:"700"},Sn={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},zn=0,Dn="System",Cn="monospace",Hn=["content","heading","control","compact","badge"];function Fn(e){let t={};for(let i of Hn)t[i]=e;return t}var _n=[];function On(){return{family:Dn,mono:Cn,fontUrl:null,families:{regular:Dn,medium:Dn,bold:Dn,mono:Cn,monoMedium:Cn,monoBold:Cn},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:xn,tierSizes:Fn(xn),lineHeight:Tn,weight:In,letterSpacing:Sn,scale:1,maxScale:zn,scaleCaps:wn,headingFamily:null,headingWeight:null,fontSources:_n,roles:bn,typeScale:1}}var En={},Pn=/* @__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(e){return`cubic-bezier(${e.join(", ")})`}var Ln={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(Pn.standard),emphasized:cssCubicBezier(Pn.emphasized),exit:cssCubicBezier(Pn.exit)},reducedMotion:false},Bn={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)"},An=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:Bn,space:vn,radius:kn,type:On(),motion:Ln,slots:En}),Rn={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)"},jn=deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:Rn,space:vn,radius:kn,type:On(),motion:Ln,slots:En});function $n(e){let t=[];for(let i of e){let e=i.codePointAt(0);e<128?t.push(e):e<2048?t.push(192|e>>6,128|e&63):e<65536?t.push(224|e>>12,128|e>>6&63,128|e&63):t.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|e&63)}return t}function Wn(e){let t=3421674724,i=2216829733;for(let r of $n(e)){i=(i^r)>>>0;let e=i*435,n=Math.floor(e/4294967296),l=e>>>0;t=t*435+n+i*256>>>0,i=l}return t.toString(16).padStart(8,"0")+i.toString(16).padStart(8,"0")}var Mn=/* @__PURE__ */new WeakMap;function Nn(e){return Mn.get(e)}var Gn="sha256-0IDdNTQTtW2+pJ9GBCa/aWJrH/lf2X2jHhTQaCt6g5E=";var qn={CartBar:{since:"0.4.0",variants:["standard","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["thumbs","total","sub","actionHiddenWord"]},variant:{type:"enum",values:["standard","web"],prop:"variant"}},props:["actionAccessibilityLabel","actionHiddenWord","actionLabel","busy","count","countLabel","disabled","fallback","loading","loadingLabel","sub","testID","thumbs","total","variant","visible"],required:["actionLabel","count"],fallback:"hide"},CartLine:{since:"0.2.0",variants:["standard","square","web","plan","drawer"],platforms:["native","web"],settings:{align:{type:"enum",values:["top","center"],prop:"align"},lines:{type:"lines",values:["badge","meta","wasPrice","smalls","note","metas","plan"]},thumbSize:{type:"enum",values:["sm","md","lg"],prop:"thumbSize"},variant:{type:"enum",values:["standard","square","web","plan","drawer"],prop:"variant"}},props:["actions","align","badge","error","fallback","image","imageAlt","loading","loadingLabel","meta","metas","name","namePress","note","plan","price","quantity","removeLabel","smalls","testID","thumbSize","variant","wasPrice"],required:["name"],fallback:null},CheckinSheet:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["kicker","note","doneText"]}},props:["action","closeLabel","doneText","fallback","flowLabel","image","imageKind","kicker","loading","loadingLabel","note","open","steps","testID","title"],required:["steps"],fallback:"hide"},OrderRow:{since:"0.2.0",variants:["standard","quiet","web"],platforms:["native","web"],settings:{actionGrid:{type:"boolean",prop:"actionGrid"},lines:{type:"lines",values:["meta","total","status","shots","notes"]},variant:{type:"enum",values:["standard","quiet","web"],prop:"variant"}},props:["accessibilityLabel","actionGrid","actions","error","loading","loadingLabel","meta","metaLink","notes","number","shots","status","testID","title","total","variant"],required:["title"],fallback:null},PlanNeedCard:{since:"0.2.0",variants:["standard","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["source","sources","title","score","quote","jump"]},variant:{type:"enum",values:["standard","plan"],prop:"variant"}},props:["jump","kicker","loading","loadingLabel","more","quote","score","signals","source","sources","testID","title","variant"],required:["kicker","signals"],fallback:null},PriceSummary:{since:"0.2.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["total","note"]},size:{type:"enum",values:["checkout","drawer"],prop:"size",platforms:["web"],default:"checkout"},variant:{type:"enum",values:["standard","web"],prop:"variant",platforms:["web"],default:"standard"}},props:["loading","loadingLabel","note","rows","testID","total"],required:["rows"],fallback:null},ProductTile:{since:"0.2.0",variants:["standard","blend","web"],platforms:["native","web"],settings:{addLift:{type:"boolean",prop:"addLift"},ground:{type:"enum",values:["shelf","white"],prop:"ground"},imageInset:{type:"enum",values:["standard","even"],prop:"imageInset"},layout:{type:"enum",values:["tile","row","card"],prop:"layout"},lines:{type:"lines",values:["kicker","meta","price","wasPrice","per","badge","tag"]},metaTone:{type:"enum",values:["auto","autoDark"],prop:"metaTone"},variant:{type:"enum",values:["standard","blend","web"],prop:"variant"}},props:["action","addLift","badge","fallback","ground","image","imageAlt","imageInset","kicker","layout","loading","loadingLabel","meta","metaTone","name","per","price","stepper","tag","testID","variant","wasPrice"],required:["name"],fallback:null},ScoreLights:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","since","source","next"]}},props:["heading","loading","loadingLabel","next","pill","since","source","state","testID","values","vizLabel"],required:["pill","state","values","vizLabel"],fallback:"hide"},SummaryList:{since:"0.1.0",variants:["standard","flush","card","inset"],platforms:["native","web"],settings:{lines:{type:"lines",values:["trailingRows","note"]},variant:{type:"enum",values:["standard","flush","card","inset"],prop:"variant"}},props:["loading","loadingLabel","note","rows","testID","total","trailingRows","variant"],required:["rows"],fallback:null},TipCard:{since:"0.2.0",variants:["standard","photo","web","plan"],platforms:["native","web"],settings:{footArrow:{type:"boolean",prop:"footArrow"},lines:{type:"lines",values:["text","foot"]},tone:{type:"enum",values:["y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","photo","web","plan"],prop:"variant"}},props:["accessibilityLabel","foot","footArrow","footPress","icon","image","loading","loadingLabel","number","pressTarget","testID","text","title","tone","variant"],required:["number","title"],fallback:null},WeatherAlert:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["accessibilityLabel","loading","loadingLabel","testID","text","title"],required:["title"],fallback:"TipCard",fallbackProps:{number:{const:"!"},text:{from:"text"},title:{from:"title"},tone:{const:"r"}}},WeatherCard:{since:"0.4.0",variants:["walk","summary","tile","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","condition","details","verdict","advice","comfort","label","note","action","units","tags"]},sky:{type:"enum",values:["sun","blue"],prop:"sky"},variant:{type:"enum",values:["walk","summary","tile","web"],prop:"variant"}},props:["action","advice","comfort","condition","details","glyph","heading","label","level","loading","loadingLabel","note","sky","tags","tagsLabel","temperature","testID","units","variant","verdict"],required:["temperature"],fallback:"hide"},WeatherDetails:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["items","label","loading","loadingLabel","testID"],required:["items"],fallback:"hide"},WeatherForecast:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["days","label","loading","loadingLabel","testID","variant"],required:["days"],fallback:"hide"},WeatherHours:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{lines:{type:"lines",values:["windows","legend"]},variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["hours","label","legend","loading","loadingLabel","testID","variant","windows"],required:["hours"],fallback:"hide"},WeatherLevels:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["label","loading","loadingLabel","rows","testID","variant"],required:["rows"],fallback:"hide"},WeatherReading:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["word","choices"]},variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["choices","loading","loadingLabel","testID","tone","value","variant","word"],required:["value"],fallback:"hide"},WhySheet:{since:"0.4.0",variants:["standard","web","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["kind","sub","sections","link","score"]},tone:{type:"enum",values:["calm","y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","web","plan"],prop:"variant"}},props:["action","closeLabel","fallback","heading","image","imageKind","kind","link","loading","loadingLabel","rows","score","sections","sub","testID","title","tone","variant"],required:[],fallback:"hide"}};var Un="everfur.slots.v2",Vn="everfur.slots.installId.v2";var Yn=6e4,Xn=3e5,Kn=15e3,Qn=10080*60*1e3,Jn=/^(W\/)?"[^"]{1,200}"$/,Zn=/^[A-Za-z0-9_-]{8,128}$/,el=/(?:^|,)\s*max-age\s*=\s*"?(\d{1,10})"?\s*(?:,|$)/i,tl=/(?:^|,)\s*(?:no-store|no-cache)\s*(?:,|$)/i,il=/* @__PURE__ */Object.freeze({doc:"default",tenant:"default",epoch:0});function rl(){let e="";for(let t=0;t<4;t++)e+=Math.floor(Math.random()*4294967296).toString(36).padStart(7,"0");return e}function nl(e){if(e===null)return Yn;if(tl.test(e))return 0;let t=el.exec(e);return t===null?Yn:Math.min(Number(t[1])*1e3,Xn)}var ll=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function ol(e){let t=e.now??Date.now,i=()=>{try{return e.scope?.()??il}catch{return il}},r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,l=/* @__PURE__ */new Map,o=null,a=null,s=false,c=Promise.resolve(),d=(t,i)=>{try{e.telemetry?.track(t,i)}catch{}},u=e=>{a!==e.epoch&&(a!==null&&(r.clear(),n.clear(),o=null,s=true),a=e.epoch)},p=e=>{let t=i();return t.epoch!==e.epoch||t.doc!==e.doc},h=async(t,i,r)=>{if(!p(t))return false;try{await e.kv.getItem(i)===r&&await e.kv.removeItem(i)}catch{}return true},g=t=>{let i=Wn(t.tenant);if(o?.tenant===i)return o.id;let r=s;s=false;let n=(async()=>{if(!r)try{let t=await e.kv.getItem(Vn),r=t===null?null:JSON.parse(t);if(r?.tenant===i&&typeof r.id=="string"&&Zn.test(r.id))return r.id}catch{}try{let r=(e.newId??rl)();if(!Zn.test(r))return null;let n=JSON.stringify({tenant:i,id:r});return await e.kv.setItem(Vn,n),await h(t,Vn,n)?null:r}catch{return null}})();return o={tenant:i,id:n},n},f=async t=>{try{let i=await e.kv.getItem(Un),r=i===null?null:JSON.parse(i);return r?.scope!==t||r.docs===null||typeof r.docs!="object"||Array.isArray(r.docs)?{docs:{}}:{docs:r.docs}}catch{return{docs:{}}}},m=async(e,i)=>{let r=await f(Wn(e.doc)),n=ll(r.docs,i)?r.docs[i]:void 0;if(n==null||typeof n.at!="number")return null;let l=t()-n.at;if(!(l<Qn)||l<-Xn)return null;let o=$r(n.doc,i);if(!o.ok)return null;let a=typeof n.etag=="string"&&Jn.test(n.etag)?n.etag:null;return{doc:o.doc,etag:a}},b=(t,i,r)=>{let n=Wn(t.doc);return c=c.then(async()=>{if(!p(t))try{let l=await f(n);if(p(t))return;let o={...l.docs},a=r(ll(o,i)?o[i]:void 0);if(a===null?delete o[i]:o[i]=a,Object.keys(o).length===0)await e.kv.removeItem(Un);else{let i=JSON.stringify({scope:n,docs:o});await e.kv.setItem(Un,i),await h(t,Un,i)}}catch{}}),c},y=async(i,l)=>{let o=`${i.doc}|${l}`,a=r.get(o),s=a===void 0?await m(i,l):null,c=a!==void 0?{doc:a.doc,etag:a.etag}:s,u=await g(i),h={"x-everfur-blocks":e.blocks??Gn};u!==null&&(h["x-everfur-install-id"]=u),c?.doc&&c.etag!==null&&(h["if-none-match"]=c.etag);let f=null,y=Yn,w=await e.send("slots.read",{method:"GET",path:`/widget/v1/slots/${encodeURIComponent(l)}`,headers:h,rawText:65536,onResponseHeaders:e=>{let t=e("etag");f=t!==null&&Jn.test(t)?t:null,y=nl(e("cache-control"))}}).catch(()=>null),v=()=>c?.doc?{doc:c.doc,source:a!==void 0?"cache":"last-known-good"}:{doc:null,source:"bundled"},k=e=>(n.set(o,t()),d("slots.read_failed",{slot:l,status:e}),v());if(p(i))return{doc:null,source:"bundled"};if(w===null)return k(null);if(w.ok){let e=Wr(w.value);if(!e.ok)return d("slots.refused",{slot:l,reason:e.reason}),v();let n=$r(e.raw,l);if(!n.ok)return d("slots.refused",{slot:l,reason:n.reason}),v();let a=t();return r.set(o,{doc:n.doc,etag:f,at:a,ttl:y}),await b(i,l,()=>({etag:f,doc:e.raw,at:a})),{doc:n.doc,source:"live"}}let x=w.error.httpStatus;if(x===304&&c?.doc){let e=t();return r.set(o,{doc:c.doc,etag:c.etag,at:e,ttl:y}),await b(i,l,t=>t===void 0?null:{...t,at:e}),{doc:c.doc,source:"live"}}return x===404?(r.set(o,{doc:null,etag:null,at:t(),ttl:y}),await b(i,l,()=>null),{doc:null,source:"bundled"}):k(x??null)},w=(e,i)=>{let n=r.get(`${e.doc}|${i}`);return n===void 0||t()-n.at>=n.ttl?null:n.doc===null?{doc:null,source:"bundled"}:{doc:n.doc,source:"cache"}},v=async(e,t)=>{let i=r.get(`${e.doc}|${t}`);if(i!==void 0)return i.doc===null?{doc:null,source:"bundled"}:{doc:i.doc,source:"cache"};let n=await m(e,t);return n===null?{doc:null,source:"bundled"}:{doc:n.doc,source:"last-known-good"}};return{peek(e){let t=i();return u(t),w(t,e)},stored(e){let t=i();return u(t),v(t,e).catch(()=>({doc:null,source:"bundled"}))},load(e){let r=i();u(r);let o=w(r,e);if(o!==null)return Promise.resolve(o);let a=`${r.doc}|${e}`,s=`${r.epoch}|${a}`,c=l.get(s);if(c!==void 0)return c;let d=n.get(a),p=(d!==void 0&&t()-d<Kn?v(r,e):y(r,e)).catch(()=>({doc:null,source:"bundled"})).finally(()=>l.delete(s));return l.set(s,p),p}}}function al(e){let t=Nn(e)??"unknown",i=e.registry.services.authFor(null),r=i.mode==="personalized"?`u:${i.userRef??""}`:`a:${i.userRef??""}`;return{doc:`${t}|${r}`,tenant:t,epoch:e.scopeEpoch??0}}var sl=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotClients@v1");function cl(e,t=dl){let i=globalThis,r=i[sl];r instanceof WeakMap||(r=/* @__PURE__ */new WeakMap,i[sl]=r);let n=r,l=n.get(e);return l===void 0&&(l=t(e),n.set(e,l)),l}function dl(e){let{services:t}=e.registry;return ol({send:(e,i)=>createRequestFunnel({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}}).send(e,i),kv:t.kv,telemetry:t.telemetry,scope:()=>al(e)})}function ul(e,t){return{doc:t.doc??Vr(e),source:t.source}}function pl(e,t){let{runtime:i,scopeEpoch:r}=A(),o=t?cl(i):null,[a,s]=n(()=>{let t=o?.peek(e);return t?{slot:e,epoch:r,value:ul(e,t)}:null});return l(()=>{if(o===null)return;let t=true,i=false,n=o.peek(e);if(n!==null){s({slot:e,epoch:r,value:ul(e,n)});return}return o.stored(e).then(n=>{t&&!i&&s({slot:e,epoch:r,value:ul(e,n)})}),o.load(e).then(n=>{i=true,t&&s({slot:e,epoch:r,value:ul(e,n)})}),()=>{t=false}},[o,e,r]),t?a!==null&&a.slot===e&&a.epoch===r?a.value:{doc:null,source:"pending"}:{doc:Vr(e),source:"bundled"}}var hl=[{color:"#D5AD47",icon:{strokes:[{width:1.3,cap:true,closed:false,points:[18.2,12,19.8,12]},{width:1.3,cap:true,closed:false,points:[16.385,16.385,17.515,17.515]},{width:1.3,cap:true,closed:false,points:[12,18.2,12,19.8]},{width:1.3,cap:true,closed:false,points:[7.615,16.385,6.485,17.515]},{width:1.3,cap:true,closed:false,points:[5.8,12,4.2,12]},{width:1.3,cap:true,closed:false,points:[7.615,7.615,6.485,6.485]},{width:1.3,cap:true,closed:false,points:[12,5.8,12,4.2]},{width:1.3,cap:true,closed:false,points:[16.385,7.615,17.515,6.485]}],boxes:[],triangles:[],seams:[]}},{color:"#F2C763",icon:{strokes:[],boxes:[{x:9.75,y:9.75,w:4.5,h:4.5,radius:2.25,width:4.5}],triangles:[],seams:[]}},{color:"#D5AD47",icon:{strokes:[],boxes:[{x:7.5,y:7.5,w:9,h:9,radius:4.5,width:1}],triangles:[],seams:[]}}],gl=[{color:"#F2C763",icon:{strokes:[{width:1.5,cap:true,closed:false,points:[12,.75,12,3.429]},{width:1.5,cap:true,closed:false,points:[12,20.571,12,23.25]},{width:1.5,cap:true,closed:false,points:[.75,12,3.429,12]},{width:1.5,cap:true,closed:false,points:[20.571,12,23.25,12]},{width:1.5,cap:true,closed:false,points:[4.072,4.072,5.947,5.947]},{width:1.5,cap:true,closed:false,points:[18.054,18.054,19.929,19.929]},{width:1.5,cap:true,closed:false,points:[19.929,4.072,18.054,5.947]},{width:1.5,cap:true,closed:false,points:[5.947,18.054,4.072,19.929]}],boxes:[],triangles:[[7.064,14.085,7.558,14.995,6.752,13.08],[9.915,7.064,9.005,7.558,10.92,6.752],[14.085,16.936,14.995,16.442,13.08,17.248],[16.936,9.915,16.442,9.005,17.248,10.92],[6.643,12,6.752,13.08,7.558,14.995],[6.643,12,7.558,9.005,6.752,10.92],[12,6.643,14.995,7.558,13.08,6.752],[12,6.643,10.92,6.752,9.005,7.558],[12,17.357,13.08,17.248,14.995,16.442],[12,17.357,9.005,16.442,10.92,17.248],[17.357,12,16.442,14.995,17.248,13.08],[17.357,12,17.248,10.92,16.442,9.005],[7.558,14.995,8.212,15.788,6.643,12],[7.064,9.915,6.752,10.92,7.558,9.005],[14.085,7.064,13.08,6.752,14.995,7.558],[9.005,7.558,8.212,8.212,12,6.643],[14.995,16.442,15.788,15.788,12,17.357],[9.915,16.936,10.92,17.248,9.005,16.442],[16.936,14.085,17.248,13.08,16.442,14.995],[16.442,9.005,15.788,8.212,17.357,12],[8.212,15.788,8.212,8.212,6.643,12],[7.558,9.005,6.643,12,8.212,8.212],[14.995,7.558,12,6.643,15.788,8.212],[15.788,8.212,12,6.643,8.212,8.212],[12,17.357,17.357,12,8.212,15.788],[15.788,15.788,17.357,12,12,17.357],[9.005,16.442,12,17.357,8.212,15.788],[8.212,8.212,8.212,15.788,17.357,12],[16.442,14.995,17.357,12,15.788,15.788],[15.788,8.212,8.212,8.212,17.357,12]],seams:[[6.752,13.08,7.558,14.995,5.121,5.035],[9.005,7.558,10.92,6.752,5.035,5.121],[13.08,17.248,14.995,16.442,5.121,5.035],[16.442,9.005,17.248,10.92,5.035,5.121],[6.643,12,7.558,14.995,5.179,4.892],[6.643,12,7.558,9.005,5.179,4.892],[6.752,10.92,7.558,9.005,5.121,5.035],[12,6.643,14.995,7.558,5.179,4.892],[13.08,6.752,14.995,7.558,5.121,5.035],[9.005,7.558,12,6.643,4.892,5.179],[12,17.357,14.995,16.442,5.179,4.892],[9.005,16.442,12,17.357,4.892,5.179],[9.005,16.442,10.92,17.248,5.035,5.121],[16.442,14.995,17.357,12,4.892,5.179],[16.442,14.995,17.248,13.08,5.035,5.121],[16.442,9.005,17.357,12,4.892,5.179],[6.643,12,8.212,15.788,5.179,1.633],[8.212,8.212,12,6.643,1.633,5.179],[12,17.357,15.788,15.788,5.179,1.633],[15.788,8.212,17.357,12,1.633,5.179],[8.212,8.212,8.212,15.788,1.207,1.207],[6.643,12,8.212,8.212,5.179,1.633],[12,6.643,15.788,8.212,5.179,1.633],[8.212,8.212,15.788,8.212,1.207,1.207],[12,17.357,17.357,12,1.207,1.207],[8.212,15.788,17.357,12,.5,1.207],[8.212,15.788,12,17.357,1.633,5.179],[15.788,15.788,17.357,12,1.633,5.179],[8.212,8.212,17.357,12,1.207,.5]]}}],fl={strokes:[],boxes:[],triangles:[[8.241,19.053,8.849,19.39,9.53,19.25],[8,18.4,8.241,19.053,9.53,19.25],[9.53,4.75,8.849,4.61,8.241,4.947],[9.53,4.75,8.241,4.947,8,5.6],[19.73,12.85,20.146,12.332,20.146,11.668],[19.73,12.85,20.146,11.668,19.73,11.15],[8,18.4,9.53,19.25,19.73,12.85],[8,5.6,8,18.4,19.73,12.85],[19.73,11.15,9.53,4.75,8,5.6],[8,5.6,19.73,12.85,19.73,11.15]],seams:[[8.241,19.053,9.53,19.25,1.348,1.348],[8,18.4,9.53,19.25,.581,1.348],[8.241,4.947,9.53,4.75,1.348,1.348],[8,5.6,9.53,4.75,.581,1.348],[19.73,12.85,20.146,11.668,1.42,1.42],[19.73,11.15,19.73,12.85,.622,1.42],[19.73,12.85,8,18.4,4.202,.358],[19.73,12.85,8,5.6,.324,4.459],[19.73,11.15,8,5.6,4.202,4.459]]};var ml=/* @__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 bl={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},yl={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},wl=e=>({...bl,...e}),vl=e=>({...yl,...e}),kl={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},offbar:{box:{shown:true,w:361,h:56,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:44,radius:[0,0],bg:"#FCF0D6",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:48,dy:0},text:{shown:true,size:15,weight:500,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},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:"ink",fit:"cover",x:0,y:0,dy:0},action:{shown:true,w:69.859,h:44,padding:[0,2,0,2],marginTop:0,marginBottom:0,gap:[6,6],minHeight:44,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},actionText:{shown:true,size:15,weight:700,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},online:{bg:"ink",color:"onInk"},fade:200},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"}},xl={card:/* @__PURE__ */wl({w:361,h:163.547}),top:/* @__PURE__ */wl({w:361,h:39.547,gap:[12,12]}),title:/* @__PURE__ */vl({size:16,weight:700,lineHeight:20,tracking:-.16}),meta:/* @__PURE__ */vl({size:13,weight:400,lineHeight:17.55,color:"muted"}),total:/* @__PURE__ */vl({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */wl({w:361,h:64,marginTop:8,gap:[8,8]}),acts:/* @__PURE__ */wl({w:361,h:40,marginTop:12,gap:[8,8]}),go:/* @__PURE__ */wl({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"go",center:true}),goText:/* @__PURE__ */vl({size:14,weight:700,lineHeight:21.7}),plain:/* @__PURE__ */wl({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */vl({size:14,weight:700,lineHeight:21.7}),note:/* @__PURE__ */vl({size:13,weight:500,lineHeight:17.55,marginTop:8}),icon:/* @__PURE__ */wl({w:16,h:16}),actsColumns:2,shotPressScale:.96},Tl={top:/* @__PURE__ */wl({w:361,h:43.547,gap:[12,12]}),when:/* @__PURE__ */wl({w:300.063,h:24,gap:[8,4],center:true}),title:/* @__PURE__ */vl({size:16,weight:700,lineHeight:20.8}),chip:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:12,weight:700,lineHeight:15.6,color:"ink"}),chipIcon:/* @__PURE__ */wl({w:14,h:14,color:"ink"}),meta:/* @__PURE__ */vl({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),total:/* @__PURE__ */vl({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */wl({w:361,h:64,marginTop:8,gap:[8,8]}),shot:/* @__PURE__ */wl({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),shotImg:/* @__PURE__ */wl({w:64,h:64,padding:[6.391,6.391,6.391,6.391],fit:"contain"}),shotBlend:"multiply",acts:/* @__PURE__ */wl({w:361,h:44,marginTop:12,gap:[12,12],center:true}),plain:/* @__PURE__ */wl({w:162.109,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */vl({size:14,weight:700,lineHeight:21.7}),icon:/* @__PURE__ */wl({w:16,h:16}),link:/* @__PURE__ */wl({w:62.578,h:44,padding:[0,6,0,6],minHeight:44}),linkText:/* @__PURE__ */vl({size:14,weight:700,lineHeight:21.7,deco:"underline",decoOffset:3,decoThickness:1.5})},Il={card:/* @__PURE__ */wl({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:/* @__PURE__ */wl({w:172,h:72}),sq:/* @__PURE__ */wl({w:72,h:72,radius:[14,14],bg:"#F3F3F3"}),sqRing:3,sqOverlap:22,imgInset:.1,imgFit:"contain",imgBlend:"multiply",text:/* @__PURE__ */wl({w:446.547,h:95.781,gap:[2,2]}),when:/* @__PURE__ */wl({w:446.547,h:26,gap:[12,4],center:true}),title:/* @__PURE__ */vl({size:19,weight:700,lineHeight:24.7,tabular:true}),total:/* @__PURE__ */vl({size:19,weight:900,lineHeight:24.7,tabular:true}),chip:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:13,weight:700,lineHeight:16.9,color:"ink",tabular:true}),chipIcon:/* @__PURE__ */wl({w:16,h:16,color:"ink"}),meta:/* @__PURE__ */vl({size:16,weight:400,lineHeight:22.4}),note:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21}),acts:/* @__PURE__ */wl({w:245.453,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:16,weight:700,lineHeight:19.2,color:"ink"}),icon:/* @__PURE__ */wl({w:18,h:18,color:"ink"}),link:/* @__PURE__ */wl({w:61.422,h:44,gap:[8,8],minHeight:44,center:true,color:"ink"}),linkText:/* @__PURE__ */vl({size:17,weight:700,lineHeight:20.4,color:"ink",deco:"underline",decoOffset:4}),go:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:17,weight:700,lineHeight:20.4,color:"surface",wrap:"auto"}),pressScale:.97,hoverFill:{color:"ink",share:.06,over:"surface"},chipOff:/* @__PURE__ */wl({w:97.422,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],center:true,color:"ink"}),metaLink:/* @__PURE__ */vl({size:16,weight:400,lineHeight:22.4,deco:"underline"}),narrow:{upTo:599,card:/* @__PURE__ */wl({w:560,h:247.391,padding:[16,16,16,16],gap:[24,16],radius:[20,20],bg:"surface",center:true}),sq:/* @__PURE__ */wl({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:/* @__PURE__ */wl({w:335,h:120.984,gap:[12,8],center:true}),sq:/* @__PURE__ */wl({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),sqRing:2,sqOverlap:18,when:/* @__PURE__ */wl({w:215,h:46.797,gap:[12,2],center:true}),title:/* @__PURE__ */vl({size:16,weight:700,lineHeight:20.8,tabular:true}),total:/* @__PURE__ */vl({size:16,weight:900,lineHeight:20.8,tabular:true}),chip:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:12,weight:700,lineHeight:15.6,color:"ink",tabular:true}),whatHidden:true,note:/* @__PURE__ */vl({size:13,weight:400,lineHeight:18.2}),acts:/* @__PURE__ */wl({w:335,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:15,weight:700,lineHeight:18,color:"ink"}),linkText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:18,color:"ink",deco:"underline",decoOffset:4})}},Sl={card:/* @__PURE__ */wl({w:156,h:310.969,gap:[4,4]}),kicker:/* @__PURE__ */vl({size:12,weight:400,lineHeight:15.6,color:"muted",tracking:.12,face:"mono"}),name:/* @__PURE__ */vl({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),meta:/* @__PURE__ */vl({size:13,weight:400,lineHeight:18.2,color:"muted"}),buy:/* @__PURE__ */wl({w:156,h:36,marginTop:6,gap:[8,8],center:true}),price:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25,tabular:true})},zl={card:/* @__PURE__ */wl({w:174.5,h:249.219,gap:[2,2]}),tag:/* @__PURE__ */wl({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:/* @__PURE__ */wl({w:16,h:16,color:"#CA4463"}),tagText:/* @__PURE__ */vl({size:12,weight:700,lineHeight:12}),price:/* @__PURE__ */wl({w:174.5,h:26.344,gap:[6,6]}),priceText:/* @__PURE__ */vl({size:17,weight:700,lineHeight:26.35,tracking:-.17,tabular:true}),was:/* @__PURE__ */vl({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"}),name:/* @__PURE__ */vl({size:14,weight:500,lineHeight:18.2,wrap:"balance"}),meta:/* @__PURE__ */vl({size:12,weight:400,lineHeight:16.2,color:"muted"}),metaAuto:/* @__PURE__ */vl({size:12,weight:500,lineHeight:16.2,color:"#16864A"}),step:/* @__PURE__ */wl({w:112,h:38,radius:[19,19],bg:"surface",center:true,x:54.5,y:128.5}),stepIn:/* @__PURE__ */wl({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:/* @__PURE__ */wl({w:38,h:38,radius:[19,19],center:true}),stepIcon:/* @__PURE__ */wl({w:18,h:18}),count:/* @__PURE__ */vl({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:/* @__PURE__ */vl({size:12,weight:400,lineHeight:16.2,color:"muted",tabular:true}),metaAutoDark:/* @__PURE__ */vl({size:12,weight:500,lineHeight:16.2,color:"ink"}),pill:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:14,weight:700,lineHeight:21.7}),pillOn:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:14,weight:700,lineHeight:21.7}),pillIcon:/* @__PURE__ */wl({w:16,h:16}),pillSoft:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:14,weight:700,lineHeight:21.7}),pillAt:{right:8,bottom:8},pillPressScale:.96},Dl={img:/* @__PURE__ */wl({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:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillOn:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillPressScale:.97},Cl={card:/* @__PURE__ */wl({w:306.656,h:370.641,gap:[2,2]}),square:/* @__PURE__ */wl({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:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:13,weight:700,lineHeight:14.3,color:"ink"}),tagIcon:/* @__PURE__ */wl({w:16,h:16,color:"#CA4463"}),tagMix:.15,name:/* @__PURE__ */vl({size:17,weight:500,lineHeight:22.1,wrap:"balance"}),nameLeading:1.3,coverRadius:20,price:/* @__PURE__ */wl({w:306.656,h:27.891,gap:[8,2]}),priceText:/* @__PURE__ */vl({size:18,weight:700,lineHeight:27.9,tracking:-.18,tabular:true}),was:/* @__PURE__ */vl({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),per:/* @__PURE__ */vl({size:15,weight:400,lineHeight:23.25,tabular:true}),badge:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:13,weight:700,lineHeight:13,tabular:true}),meta:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21}),add:/* @__PURE__ */wl({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:/* @__PURE__ */wl({w:20,h:20}),actAt:{right:10,bottom:10},step:/* @__PURE__ */wl({w:116,h:44,radius:[22,22],bg:"ink",center:true,color:"surface"}),stepButton:/* @__PURE__ */wl({w:44,h:44,radius:[22,22],center:true,color:"surface"}),stepIcon:/* @__PURE__ */wl({w:18,h:18,color:"surface"}),count:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),pill:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:15,weight:700,lineHeight:15,color:"surface"}),pillOn:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:15,weight:700,lineHeight:15,color:"ink"}),pillIcon:/* @__PURE__ */wl({w:18,h:18,color:"ink"}),pillSoft:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:15,weight:700,lineHeight:15}),nameSteps:[{upTo:599,name:/* @__PURE__ */vl({size:16,weight:500,lineHeight:20.8,wrap:"balance"})},{upTo:399,name:/* @__PURE__ */vl({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}},Hl={card:/* @__PURE__ */wl({shown:false,w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */vl({shown:false,size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */vl({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2})},Fl={line:/* @__PURE__ */wl({w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */wl({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:/* @__PURE__ */vl({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */vl({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:/* @__PURE__ */vl({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:/* @__PURE__ */vl({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:/* @__PURE__ */wl({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:/* @__PURE__ */vl({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:/* @__PURE__ */wl({w:53.016,h:20.141,color:"ink"}),end:/* @__PURE__ */wl({w:289,h:26.344,gap:[4,4]})},_l={line:/* @__PURE__ */wl({w:361,h:95.094,gap:[12,12]}),sm:/* @__PURE__ */wl({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:/* @__PURE__ */wl({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:/* @__PURE__ */wl({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */wl({w:239.109,h:20,gap:[6,4],center:true}),nameText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */vl({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:12,weight:700,lineHeight:12}),meta:/* @__PURE__ */vl({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:/* @__PURE__ */wl({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:/* @__PURE__ */vl({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:/* @__PURE__ */wl({w:84.531,h:32,minHeight:32,color:"ink"}),price:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */vl({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},Ol={line:/* @__PURE__ */wl({w:404,h:88,gap:[16,0],center:true}),sq:/* @__PURE__ */wl({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */wl({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:/* @__PURE__ */vl({size:19,weight:700,lineHeight:24.7}),link:/* @__PURE__ */vl({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:/* @__PURE__ */wl({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:/* @__PURE__ */vl({size:13,weight:700,lineHeight:13}),meta:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21,marginTop:2}),price:/* @__PURE__ */vl({size:19,weight:700,lineHeight:29.45,tabular:true}),was:/* @__PURE__ */vl({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:/* @__PURE__ */wl({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */wl({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */vl({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */vl({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:/* @__PURE__ */wl({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */wl({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */vl({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */vl({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:/* @__PURE__ */wl({w:303,h:81.25,gap:[12,0],center:true}),sq:/* @__PURE__ */wl({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:/* @__PURE__ */wl({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */vl({size:15,weight:700,lineHeight:19.5}),meta:/* @__PURE__ */vl({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */vl({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},El={line:/* @__PURE__ */wl({w:360,h:147.094,gap:[14,0]}),img:/* @__PURE__ */wl({w:64,h:64,radius:[14,14],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),imgInset:6,imgFit:"contain",name:/* @__PURE__ */wl({w:216,h:22.094,gap:[8,4],center:true}),nameText:/* @__PURE__ */vl({size:17,weight:700,lineHeight:22.1,wrap:"auto"}),badge:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:13,weight:700,lineHeight:13,wrap:"auto"}),meta:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21,marginTop:2}),note:/* @__PURE__ */vl({size:15,weight:700,lineHeight:21,color:"ink",marginTop:2}),acts:/* @__PURE__ */wl({w:282,h:92,marginTop:10,gap:[12,8],center:true}),plan:/* @__PURE__ */wl({w:193.703,h:44,padding:[3,3,3,3],radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),planBtn:/* @__PURE__ */wl({w:63.859,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999]}),planText:/* @__PURE__ */vl({size:15,weight:500,lineHeight:23.25,wrap:"auto"}),planOn:/* @__PURE__ */wl({w:123.844,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999],bg:"ink",color:"surface"}),planOnText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25,color:"surface",wrap:"auto"}),qty:/* @__PURE__ */wl({w:104,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true}),countMin:24,qtyBtn:/* @__PURE__ */wl({w:40,h:40,radius:[20,20],center:true}),qtyIcon:/* @__PURE__ */wl({w:16,h:16}),count:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25,wrap:"auto",tabular:true}),remove:/* @__PURE__ */wl({w:58.359,h:40,minHeight:40,color:"ink"}),removeText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3}),price:/* @__PURE__ */vl({size:17,weight:700,lineHeight:22.1,wrap:"auto",tabular:true}),was:/* @__PURE__ */vl({size:15,weight:400,lineHeight:19.5,wrap:"auto",tabular:true,deco:"strike"}),pressScale:.9,hover:{color:"ink",share:.06,over:"surface"},motion:{press:140,fill:150,planFill:150}},Pl={note:/* @__PURE__ */vl({size:13,weight:400,lineHeight:19.5,color:"muted",marginTop:12}),noteStrong:/* @__PURE__ */vl({size:13,weight:700,lineHeight:19.5,color:"muted"})};var Ll={card:/* @__PURE__ */wl({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:/* @__PURE__ */wl({w:293,h:24,gap:[8,8],center:true}),kickerText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25}),source:/* @__PURE__ */wl({w:116.719,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#DAF6E8",center:true,color:"ink"}),sourceText:/* @__PURE__ */vl({size:12,weight:700,lineHeight:18.6,color:"ink"}),title:/* @__PURE__ */vl({shown:false,size:15,weight:700,lineHeight:23.25}),signal:/* @__PURE__ */wl({w:293,h:65.25,marginTop:8,gap:[9,9],color:"#4D4D4D"}),signalText:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),signalLead:/* @__PURE__ */vl({size:15,weight:700,lineHeight:21.75}),dot:/* @__PURE__ */wl({w:9,h:9,radius:[4.5,4.5],bg:"alert",color:"#4D4D4D",dy:-1}),score:/* @__PURE__ */wl({w:293,h:99.859,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[10,10],bg:"#FCF0D6",center:true}),scoreLabel:/* @__PURE__ */vl({size:14,weight:600,lineHeight:18.9,color:"#4D4D4D"}),scoreTag:/* @__PURE__ */wl({w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,radius:[6,6],bg:"surface"}),scoreTagText:/* @__PURE__ */vl({size:12,weight:600,lineHeight:16.2,tracking:.72,face:"mono",upper:true,marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */wl({w:106.109,h:51.141,gap:[6,0],center:true}),scoreWas:/* @__PURE__ */vl({size:17,weight:700,lineHeight:26.35,color:"muted",deco:"strike",decoThickness:1.5}),scoreArrow:/* @__PURE__ */wl({w:16,h:16,color:"muted"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */vl({size:28,weight:700,lineHeight:28,tracking:-.84,tabular:true}),scoreOf:/* @__PURE__ */vl({size:15,weight:700,lineHeight:15,color:"#4D4D4D",tabular:true}),scoreSince:/* @__PURE__ */vl({size:13,weight:700,lineHeight:20.15,color:"ink",marginTop:3})},Bl={card:/* @__PURE__ */wl({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:/* @__PURE__ */wl({w:297,h:24,gap:[8,8],center:true,color:"#262523"}),kickerText:/* @__PURE__ */vl({size:15,weight:800,lineHeight:22.5,color:"#262523"}),source:/* @__PURE__ */wl({w:83.375,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#F2F1EE",center:true,color:"#4A4845"}),sourceText:/* @__PURE__ */vl({size:12,weight:700,lineHeight:18,color:"#4A4845"}),title:/* @__PURE__ */vl({size:19,weight:800,lineHeight:23.18,color:"#262523",marginTop:12}),signal:/* @__PURE__ */wl({w:297,h:65.25,marginTop:6,gap:[9,9],color:"#4A4845"}),signalText:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21.75,color:"#4A4845"}),signalLead:/* @__PURE__ */vl({size:15,weight:800,lineHeight:21.75,color:"#262523"}),dot:/* @__PURE__ */wl({w:9,h:9,radius:[4.5,4.5],bg:"#E5372B",color:"#4A4845",dy:-1}),score:/* @__PURE__ */wl({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:/* @__PURE__ */vl({size:13.5,weight:600,lineHeight:18.225,color:"#4A4845",wrap:"balance"}),scoreTag:/* @__PURE__ */wl({w:51.609,h:17.5,padding:[2,6,2,6],marginTop:3,radius:[5,5],bg:"surface",color:"#262523"}),scoreTagText:/* @__PURE__ */vl({size:10,weight:600,lineHeight:13.5,color:"#262523",tracking:.6,face:"mono",upper:true,wrap:"balance",marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */wl({w:94.75,h:49.75,gap:[6,0],center:true,color:"#262523"}),scoreWas:/* @__PURE__ */vl({size:17,weight:700,lineHeight:25.5,color:"#6B6863",deco:"strike"}),scoreArrow:/* @__PURE__ */wl({w:16,h:16,color:"#6B6863"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */vl({size:28,weight:800,lineHeight:28,color:"#262523"}),scoreOf:/* @__PURE__ */vl({size:13,weight:800,lineHeight:13,color:"muted"}),scoreSince:/* @__PURE__ */vl({size:12.5,weight:700,lineHeight:18.75,color:"planLink",marginTop:3}),sources:/* @__PURE__ */wl({w:131.375,h:24,gap:[4,4],color:"#262523"}),sourceDna:/* @__PURE__ */wl({w:44,h:24,padding:[0,9,0,9],radius:[999,999],bg:"planLinkWash",center:true,color:"planLink"}),sourceDnaText:/* @__PURE__ */vl({size:12,weight:700,lineHeight:18,color:"planLink"}),dotWatch:/* @__PURE__ */wl({w:9,h:9,radius:[4.5,4.5],bg:"#E5A000",color:"#4A4845",dy:-1}),dotClear:/* @__PURE__ */wl({w:9,h:9,radius:[4.5,4.5],bg:"#5FA82B",color:"#4A4845",dy:-1}),scoreLabelMax:135,says:/* @__PURE__ */wl({w:297,h:52,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysImg:/* @__PURE__ */wl({w:32,h:32,radius:[16,16],color:"#262523"}),saysText:/* @__PURE__ */vl({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845"}),saysBy:/* @__PURE__ */vl({size:14.5,weight:800,lineHeight:20.3,color:"#262523"}),saysByGap:2,saysTag:/* @__PURE__ */wl({w:51.609,h:15,padding:[2,6,2,6],radius:[5,5],bg:"surface",color:"#262523"}),saysTagText:/* @__PURE__ */vl({size:10,weight:400,lineHeight:14,color:"#262523",tracking:.6,face:"mono",upper:true,paddingTop:2}),saysBare:/* @__PURE__ */wl({w:297,h:81,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysKicker:/* @__PURE__ */vl({size:17,weight:400,lineHeight:25.5,color:"#262523"}),saysSerif:/* @__PURE__ */vl({size:17,weight:800,lineHeight:25.5,color:"#262523",tracking:-.17,wrap:"balance"}),jump:/* @__PURE__ */wl({w:297,h:60,padding:[8,14,8,8],marginTop:12,gap:[12,12],radius:[14,14],bg:"planInk",center:true,color:"planOnInk"}),jumpImg:/* @__PURE__ */wl({w:44,h:44,radius:[10,10],bg:"surface",color:"surface"}),jumpKicker:/* @__PURE__ */vl({size:13,weight:800,lineHeight:19.5,color:"planAccent"}),jumpTitle:/* @__PURE__ */vl({size:15,weight:800,lineHeight:18.75,color:"planOnInk"}),jumpGo:/* @__PURE__ */vl({size:14,weight:800,lineHeight:21,color:"planOnInk"}),jumpPressScale:.98,more:/* @__PURE__ */wl({w:87.547,h:36,marginTop:6,marginBottom:-4,gap:[4,4],minHeight:36,center:true,color:"planLink"}),moreText:/* @__PURE__ */vl({size:15,weight:800,lineHeight:22.5,color:"planLink"}),moreIcon:/* @__PURE__ */wl({w:16,h:16,color:"planLink"}),moreInset:16,moreTurn:{closed:90,open:-90},rep:/* @__PURE__ */wl({w:297,h:48.5,padding:[14,14,12,14],marginTop:10,radius:[16,16],bg:"#F8F7F4",color:"#262523"})},Al={card:/* @__PURE__ */wl({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:/* @__PURE__ */wl({w:181.5,h:113.438,radius:[10,10],bg:"#F3F3F3"}),n:/* @__PURE__ */wl({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */vl({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */vl({size:16,weight:700,lineHeight:20,marginTop:10}),text:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21,color:"#4D4D4D",marginTop:4}),foot:/* @__PURE__ */wl({w:181.5,h:26.594,padding:[8,0,0,0],gap:[4,4],center:true,color:"ink"}),footText:/* @__PURE__ */vl({size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,paddingTop:8}),footArrow:/* @__PURE__ */wl({w:14,h:14,color:"ink"}),footArrowFlip:true,pressScale:.98,bare:/* @__PURE__ */wl({w:181.5,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */wl({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */wl({w:22,h:22})},Rl={card:/* @__PURE__ */wl({w:221,h:152,padding:[8,8,12,8],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */wl({w:205,h:102.5,radius:[10,10],bg:"#F3F3F3"}),imgAspect:2,n:/* @__PURE__ */wl({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */vl({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */vl({size:15,weight:700,lineHeight:19.5,marginTop:10}),titleInset:4,pressScale:.98,bare:/* @__PURE__ */wl({w:205,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */wl({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */wl({w:22,h:22,color:"ink"})},jl={card:/* @__PURE__ */wl({w:226,h:172.047,gap:[10,10]}),img:/* @__PURE__ */wl({w:226,h:141.25,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */vl({size:16,weight:700,lineHeight:20.8,wrap:"balance"}),coverRadius:10,row:{from:440,card:/* @__PURE__ */wl({w:400,h:80,padding:[6,0,6,0],gap:[10,10],minHeight:80,center:true}),img:/* @__PURE__ */wl({w:64,h:64,radius:[10,10]}),arrowColumn:18,arrow:/* @__PURE__ */wl({w:18,h:18,color:"ink"}),arrowTurn:180},phone:{upTo:639,card:/* @__PURE__ */wl({w:216,h:162.5,gap:[8,8]}),img:/* @__PURE__ */wl({w:216,h:135,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */vl({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),smallUpTo:359,smallW:208},mark:{tile:/* @__PURE__ */wl({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},$l={card:/* @__PURE__ */wl({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:/* @__PURE__ */wl({w:197.406,h:30,center:true,color:"#262523"}),nText:/* @__PURE__ */vl({size:30,weight:900,lineHeight:30,color:"#262523"}),icon:/* @__PURE__ */wl({w:26,h:26,color:"#262523"}),title:/* @__PURE__ */vl({size:17,weight:800,lineHeight:21.25,color:"#262523",marginTop:14}),text:/* @__PURE__ */vl({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845",marginTop:4}),foot:/* @__PURE__ */wl({w:197.406,h:25.75,padding:[10,0,0,0],color:"planLink"}),footText:/* @__PURE__ */vl({size:10.5,weight:400,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true,paddingTop:10})},Wl={line:/* @__PURE__ */wl({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:/* @__PURE__ */wl({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:/* @__PURE__ */wl({w:28,h:28,color:"planLink"}),name:/* @__PURE__ */vl({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:/* @__PURE__ */wl({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:/* @__PURE__ */vl({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:/* @__PURE__ */vl({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:/* @__PURE__ */vl({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:/* @__PURE__ */wl({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:/* @__PURE__ */wl({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:/* @__PURE__ */wl({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:/* @__PURE__ */vl({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})},Ml={bar:/* @__PURE__ */wl({w:361,h:66,padding:[8,8,8,10],gap:[10,10],minHeight:60,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:1,blur:3,spread:0},center:true,x:16}),lift:{color:"rgba(0, 0, 0, 0.09)",x:0,y:10,blur:28,spread:0},thumbs:/* @__PURE__ */wl({w:88,h:44,padding:[0,4,0,0],center:true}),thumb:/* @__PURE__ */wl({w:40,h:40,radius:[12,12],bg:"#F3F3F3"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"multiply",count:/* @__PURE__ */wl({w:20,h:20,padding:[0,5,0,5],radius:[10,10],bg:"text",center:true,color:"surface",x:72,y:-4}),countText:/* @__PURE__ */vl({size:12,weight:700,lineHeight:12,color:"surface",tabular:true}),countAt:{top:-4,right:-4},sum:/* @__PURE__ */wl({w:130.656,h:35.688,gap:[2,2]}),total:/* @__PURE__ */vl({size:17,weight:700,lineHeight:18.7,tracking:-.17,tabular:true}),sub:/* @__PURE__ */vl({size:12,weight:400,lineHeight:15,color:"muted"}),go:/* @__PURE__ */wl({w:104.344,h:50,padding:[0,18,0,18],gap:[6,6],minHeight:50,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink"}),goText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25,color:"ink"}),pressScale:.97,hover:{color:"pink",share:.9,over:"text"},motion:{rise:{duration:240,from:24,fade:false},bump:{duration:240,scale:1.12,peakAt:.5,curve:"ease-out"}}},Nl={bar:/* @__PURE__ */wl({w:600,h:68,padding:[10,10,10,14],gap:[14,14],minHeight:68,radius:[26,26],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:1,blur:3,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.09)",x:0,y:10,blur:28,spread:0},thumbs:/* @__PURE__ */wl({w:102,h:44,padding:[0,6,0,0],center:true}),thumb:/* @__PURE__ */wl({w:44,h:44,padding:[4,4,4,4],radius:[12,12],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:1,blur:3,spread:0},fit:"contain"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"normal",count:/* @__PURE__ */wl({w:22,h:22,padding:[0,6,0,6],radius:[11,11],bg:"go",center:true,x:83,y:-5}),countText:/* @__PURE__ */vl({size:12,weight:700,lineHeight:12,wrap:"auto",tabular:true}),countAt:{top:-5,right:-3},sum:/* @__PURE__ */wl({w:307.484,h:43.5,gap:[2,2]}),total:/* @__PURE__ */vl({size:20,weight:700,lineHeight:22,color:"ink",tracking:-.2,tabular:true}),sub:/* @__PURE__ */vl({size:15,weight:400,lineHeight:19.5}),go:/* @__PURE__ */wl({w:138.516,h:48,padding:[0,22,0,22],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),goText:/* @__PURE__ */vl({size:17,weight:700,lineHeight:26.35,color:"surface",wrap:"auto"}),pressScale:.97,hover:{color:"ink",share:.86,over:"text"},motion:{rise:{duration:260,from:24,fade:true},bump:{duration:240,scale:1.1,peakAt:.5,curve:"out"}},phone:{upTo:559,bar:/* @__PURE__ */wl({w:335,h:79,padding:[8,8,8,10],gap:[10,10],minHeight:64,radius:[22,22],bg:"surface",center:true}),thumb:/* @__PURE__ */wl({w:40,h:40,padding:[4,4,4,4],radius:[12,12],bg:"surface",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:2},fit:"contain"}),go:/* @__PURE__ */wl({w:94.594,h:48,padding:[0,18,0,18],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),lastOnly:true,wordHidden:true}},Gl={card:/* @__PURE__ */wl({w:393,h:655.609}),head:/* @__PURE__ */wl({w:393,h:126.328,padding:[4,16,12,16],gap:[12,12]}),pic:/* @__PURE__ */wl({w:64,h:64,radius:[10,10],bg:"#F3F3F3"}),packInset:.08,kind:/* @__PURE__ */vl({size:12,weight:700,lineHeight:18.6,color:"ink",tracking:.72,face:"mono",upper:true}),title:/* @__PURE__ */vl({size:22,weight:700,lineHeight:24.64,tracking:-.55,marginTop:2}),sub:/* @__PURE__ */vl({size:14,weight:400,lineHeight:18.9,color:"#4D4D4D",marginTop:3}),close:/* @__PURE__ */wl({w:36,h:36,padding:[1,6,1,6],radius:[18,18],center:true,color:"ink"}),closeIcon:/* @__PURE__ */wl({w:20,h:20,color:"ink"}),body:/* @__PURE__ */wl({w:393,h:529.281,padding:[0,16,24,16],gap:[12,12]}),box:/* @__PURE__ */wl({w:361,h:169.281,padding:[14,14,14,14],radius:[20,20],bg:"tintPink"}),heading:/* @__PURE__ */vl({size:17,weight:700,lineHeight:21.25}),rows:/* @__PURE__ */wl({w:333,h:110.031,marginTop:10,gap:[10,10]}),row:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */vl({size:12,weight:400,lineHeight:17.4,color:"ink",tracking:.48,face:"mono",upper:true}),secHeading:/* @__PURE__ */vl({size:17,weight:700,lineHeight:21.25}),how:/* @__PURE__ */wl({w:361,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */wl({w:361,h:21.75,gap:[8,8],color:"#4D4D4D"}),bulletText:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),bulletColumn:14,dot:{size:6,top:9,color:"ink"},para:/* @__PURE__ */vl({size:15,weight:400,lineHeight:22.5,color:"#4D4D4D",marginTop:6}),acts:/* @__PURE__ */wl({w:361,h:98,gap:[2,2]}),btn:/* @__PURE__ */wl({w:361,h:52,padding:[0,20,0,20],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */vl({size:16,weight:700,lineHeight:24.8,color:"surface"}),more:/* @__PURE__ */wl({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25,color:"ink",deco:"underline",decoOffset:3,decoThickness:1.5}),tones:{calm:"tintBlue",y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},photoBg:"#F3F3F3",closeHover:"tintSage",pressScale:.97,hover:{color:"ink",share:.88,over:"surface"}},ql={card:/* @__PURE__ */wl({w:558,h:571.375}),head:/* @__PURE__ */wl({w:558,h:105.375,padding:[24,24,12,24],gap:[12,12]}),pic:/* @__PURE__ */wl({w:64,h:64,radius:[10,10],bg:"#F5F5F5"}),packInset:.08,kind:/* @__PURE__ */vl({size:15,weight:700,lineHeight:19.5,color:"ink"}),title:/* @__PURE__ */vl({size:22,weight:500,lineHeight:24.64,color:"ink",tracking:-.44,marginTop:2}),sub:/* @__PURE__ */vl({size:15,weight:400,lineHeight:20.25,marginTop:3}),close:/* @__PURE__ */wl({w:40,h:40,padding:[1,6,1,6],radius:[20,20],center:true}),closeIcon:/* @__PURE__ */wl({w:20,h:20}),body:/* @__PURE__ */wl({w:558,h:466,padding:[0,24,24,24],gap:[22,22]}),box:/* @__PURE__ */wl({w:510,h:129}),heading:/* @__PURE__ */vl({size:16,weight:700,lineHeight:20}),rows:/* @__PURE__ */wl({w:510,h:99,marginTop:10,gap:[12,12]}),row:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */vl({size:15,weight:700,lineHeight:21.75,color:"ink"}),secHeading:/* @__PURE__ */vl({size:16,weight:700,lineHeight:20}),how:/* @__PURE__ */wl({w:510,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */wl({w:510,h:21.75,gap:[8,8]}),bulletText:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21.75}),bulletColumn:14,dot:{size:6,top:9.75,color:"ink"},para:/* @__PURE__ */vl({size:15,weight:400,lineHeight:22.5,marginTop:6}),acts:/* @__PURE__ */wl({w:510,h:92,gap:[2,2]}),btn:/* @__PURE__ */wl({w:510,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */vl({size:17,weight:400,lineHeight:26.35,color:"surface",wrap:"auto"}),more:/* @__PURE__ */wl({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3,decoThickness:1.5}),photoBg:"surface",closeHover:"none",pressScale:.97,hover:{color:"ink",share:.88,over:"surface"},phone:{upTo:419,head:/* @__PURE__ */wl({w:341,h:145.031,padding:[24,24,12,24],gap:[10,10]}),pic:/* @__PURE__ */wl({w:48,h:48,radius:[10,10],bg:"#F5F5F5"}),title:/* @__PURE__ */vl({size:20,weight:500,lineHeight:22.4,color:"ink",tracking:-.4,marginTop:2})}},Ul={card:/* @__PURE__ */wl({w:329,h:323.109,padding:[12,14,12,14],radius:[16,16],edge:{width:1.5,color:"#262523",ring:true},color:"#262523"}),heading:/* @__PURE__ */vl({size:10.5,weight:400,lineHeight:15.75,color:"#6B6863",tracking:.63,face:"mono",upper:true}),row:/* @__PURE__ */wl({w:301,h:59.688,marginTop:10,gap:[10,10],color:"#262523"}),chipColumn:58,chips:{dna:{box:/* @__PURE__ */wl({w:58,h:22,radius:[6,6],bg:"planLinkWash",center:true,color:"planLink"}),text:/* @__PURE__ */vl({size:10.5,weight:700,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true})},record:{box:/* @__PURE__ */wl({w:58,h:22,radius:[6,6],bg:"#F2F1EE",center:true,color:"#4A4845"}),text:/* @__PURE__ */vl({size:10.5,weight:700,lineHeight:15.75,color:"#4A4845",tracking:.42,face:"mono",upper:true})},ask:{box:/* @__PURE__ */wl({w:58,h:22,radius:[6,6],bg:"planAccentWash",center:true,color:"#262523"}),text:/* @__PURE__ */vl({size:10.5,weight:700,lineHeight:15.75,color:"#262523",tracking:.42,face:"mono",upper:true})}},rowTitle:/* @__PURE__ */vl({size:15,weight:800,lineHeight:19.5,color:"#262523"}),rowBody:/* @__PURE__ */vl({size:14,weight:400,lineHeight:19.6,color:"#4A4845",marginTop:1}),score:/* @__PURE__ */wl({w:301,h:42.797,padding:[11,12,11,14],marginTop:12,gap:[8,8],radius:[12,12],bg:"planInk",center:true,color:"planOnInk"}),scoreText:/* @__PURE__ */vl({size:14.5,weight:800,lineHeight:18.85,color:"planOnInk"}),scoreValue:/* @__PURE__ */vl({size:16,weight:700,lineHeight:20.8,color:"planAccent",face:"mono"})},Vl={card:/* @__PURE__ */wl({w:325,h:134,marginTop:14}),head:/* @__PURE__ */wl({w:325,h:24,marginBottom:10,gap:[12,12],center:true}),lead:/* @__PURE__ */vl({size:14,weight:400,lineHeight:18.2,color:"#3D3D3D"}),name:/* @__PURE__ */vl({size:14,weight:700,lineHeight:18.2,color:"ink"}),pills:{better:{box:/* @__PURE__ */wl({w:66.094,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#D7F5E7",center:true,color:"ink"}),text:/* @__PURE__ */vl({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},same:{box:/* @__PURE__ */wl({w:50.734,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FBEED0",center:true,color:"ink"}),text:/* @__PURE__ */vl({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},worse:{box:/* @__PURE__ */wl({w:58.406,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#F6EBDE",center:true,color:"#834D0D"}),text:/* @__PURE__ */vl({size:12,weight:700,lineHeight:12,color:"#834D0D",tracking:.48,face:"mono"})}},viz:/* @__PURE__ */wl({w:325,h:56}),grid:{rows:10,gap:1.5,radius:1.5,widthShare:.6},zones:{lot:6.5,some:3.5},colors:{go:"go",some:"#E4BA55",lot:"#BC6E13"},src:/* @__PURE__ */wl({w:325,h:44,gap:[16,0],center:true}),srcBtn:/* @__PURE__ */wl({w:181.5,h:44,gap:[6,6],minHeight:44,center:true,color:"#4D4D4D"}),srcText:/* @__PURE__ */vl({size:14,weight:400,lineHeight:21.7,color:"#4D4D4D"}),srcIcon:/* @__PURE__ */wl({w:16,h:16,color:"#5A6087"}),act:/* @__PURE__ */wl({w:221.172,h:44,padding:[0,20,0,20],marginTop:6,marginBottom:14,minHeight:44,radius:[999,999],bg:"surface",edge:{width:1.5,color:"ink",ring:true},center:true,color:"ink"}),actText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25,color:"ink",marginTop:6})},Yl={card:/* @__PURE__ */wl({w:393,h:179.25}),body:/* @__PURE__ */wl({w:393,h:99.25,padding:[0,16,24,16],gap:[24,24]}),question:/* @__PURE__ */vl({size:17,weight:700,lineHeight:21.25}),picks:/* @__PURE__ */wl({w:361,h:96,marginTop:10,gap:[8,8]}),pick:/* @__PURE__ */wl({w:115,h:44,padding:[4,4,4,4],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),pickText:/* @__PURE__ */vl({size:15,weight:400,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickOn:/* @__PURE__ */wl({w:115,h:44,padding:[4,4,4,4],gap:[6,6],minHeight:44,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),pickOnText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickHover:{color:"pink",share:.3,over:"surface"},stepTop:16,row:/* @__PURE__ */wl({w:361,h:44,gap:[8,8],minHeight:44,center:true}),rowLabel:/* @__PURE__ */vl({size:15,weight:400,lineHeight:18.75}),rowValue:/* @__PURE__ */vl({size:15,weight:700,lineHeight:18.75}),rowIcon:/* @__PURE__ */wl({w:18,h:18,color:"ink"}),rowTurn:90,rowPressScale:.98,note:/* @__PURE__ */wl({w:361,h:60.594,padding:[10,12,10,12],marginTop:12,radius:[10,10],bg:"#FFE8E6"}),noteText:/* @__PURE__ */vl({size:14,weight:400,lineHeight:20.3,marginTop:12,paddingTop:10}),noteLink:/* @__PURE__ */vl({size:14,weight:700,lineHeight:20.3,deco:"underline",decoOffset:3}),done:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21,wrap:"balance",marginTop:12}),acts:/* @__PURE__ */wl({w:361,h:52,gap:[2,2]}),btn:/* @__PURE__ */wl({w:361,h:52,padding:[0,20,0,20],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */vl({size:16,weight:700,lineHeight:24.8,color:"surface"})},Xl={card:/* @__PURE__ */wl({w:361,h:321.734,padding:[16,16,16,16],gap:[16,16],radius:[20,20],bg:"#FCF4E0"}),skies:{sun:"#FCF4E0",blue:"tintBlue"},now:/* @__PURE__ */wl({w:329,h:113.891,gap:[12,12],center:true}),temp:/* @__PURE__ */vl({size:64,weight:700,lineHeight:60.8,color:"ink",tracking:-2.56,tabular:true}),cond:/* @__PURE__ */vl({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2}),glyph:/* @__PURE__ */wl({w:88,h:88}),walk:/* @__PURE__ */wl({w:329,h:159.844,padding:[12,16,12,16],gap:[4,4],radius:[10,10],bg:"surface"}),walkTitle:/* @__PURE__ */wl({w:297,h:22.094,gap:[8,8],center:true,color:"ink"}),walkTitleText:/* @__PURE__ */vl({size:17,weight:700,lineHeight:22.1,color:"ink"}),walkText:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21.75}),lvl:/* @__PURE__ */wl({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"ink"}),levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},comfort:/* @__PURE__ */wl({w:297,h:32.5,padding:[12,0,0,0],marginTop:8,gap:[8,6],center:true}),comfortRule:{width:1,color:"line"},comfortLabel:/* @__PURE__ */vl({size:13,weight:400,lineHeight:16.9,color:"muted"}),comfortValue:/* @__PURE__ */vl({size:15,weight:700,lineHeight:19.5,color:"ink"}),bar:/* @__PURE__ */wl({w:82,h:8,gap:[3,3]}),pipOn:/* @__PURE__ */wl({w:14,h:8,radius:[2,2],bg:"#77DDAC"}),pipOff:/* @__PURE__ */wl({w:14,h:8,radius:[2,2],bg:"#F1F5F2"})},Kl={card:/* @__PURE__ */wl({w:361,h:265.484,padding:[24,16,24,16],radius:[20,20],bg:"#FCF4E0"}),glyph:/* @__PURE__ */wl({w:88,h:88}),temp:/* @__PURE__ */vl({size:72,weight:700,lineHeight:68.4,color:"ink",tracking:-2.88,tabular:true,marginTop:8}),cond:/* @__PURE__ */vl({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2})},Ql={card:/* @__PURE__ */wl({w:272,h:187.984,padding:[16,16,16,16],gap:[8,8],radius:[20,20],bg:"#F5F5F5"}),top:/* @__PURE__ */wl({w:240,h:24,gap:[8,8],center:true}),label:/* @__PURE__ */vl({size:12,weight:700,lineHeight:15.6,color:"ink",tracking:.72,face:"mono",upper:true}),glyph:/* @__PURE__ */wl({w:36,h:36,marginTop:-6,marginBottom:-6}),glyphMargin:[-6,-4,-6,0],big:/* @__PURE__ */vl({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),small:/* @__PURE__ */vl({size:15,weight:700,lineHeight:16.5,color:"muted",tabular:true}),smallGap:4,meta:/* @__PURE__ */vl({size:14,weight:400,lineHeight:19.6}),btn:/* @__PURE__ */wl({w:137.375,h:38,padding:[0,12,0,12],gap:[8,8],minHeight:38,radius:[999,999],bg:"ink",edge:{width:1.5,color:"ink",ring:false},center:true,color:"surface"}),btnText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:15,color:"surface"}),btnIcon:/* @__PURE__ */wl({w:20,h:20,color:"surface"})},Jl={card:/* @__PURE__ */wl({w:533.078,h:242,padding:[24,24,24,24],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),head:/* @__PURE__ */wl({w:483.078,h:34,marginBottom:16,gap:[12,12],center:true}),city:/* @__PURE__ */vl({size:24,weight:700,lineHeight:28.8,color:"ink",tracking:-.48,wrap:"auto"}),units:/* @__PURE__ */wl({w:78,h:34,padding:[2,2,2,2],radius:[999,999],edge:{width:1,color:"line",ring:false}}),unit:/* @__PURE__ */wl({w:36,h:28,minHeight:28,radius:[999,999],center:true,color:"muted"}),unitText:/* @__PURE__ */vl({size:13,weight:700,lineHeight:20.15,color:"muted",wrap:"auto"}),unitOn:/* @__PURE__ */wl({w:36,h:28,minHeight:28,radius:[999,999],bg:"ink",center:true,color:"surface"}),unitOnText:/* @__PURE__ */vl({size:13,weight:700,lineHeight:20.15,color:"surface",wrap:"auto"}),now:/* @__PURE__ */wl({w:483.078,h:88,gap:[24,12],center:true}),glyph:/* @__PURE__ */wl({w:88,h:88}),temp:/* @__PURE__ */vl({size:51.2,weight:700,lineHeight:51.2,color:"ink",tracking:-1.536,wrap:"auto",tabular:true}),tempFluid:{min:44,vw:4,max:56},sky:/* @__PURE__ */vl({size:15,weight:400,lineHeight:21,color:"muted",wrap:"auto",marginTop:6}),tags:/* @__PURE__ */wl({w:483.078,h:30,marginTop:24,gap:[8,8]}),tag:/* @__PURE__ */wl({w:123.75,h:30,padding:[0,14,0,14],gap:[8,8],minHeight:30,radius:[999,999],bg:"surface",edge:{width:1,color:"#F2C763",ring:false},center:true,color:"ink"}),tagText:/* @__PURE__ */vl({size:13,weight:700,lineHeight:20.15,color:"ink",wrap:"auto"}),dot:7,hues:{red:"alert",yellow:"#F2C763",green:"go",blue:"#4E98C9",plain:"line",plainDot:"muted"},phone:{upTo:559,card:/* @__PURE__ */wl({w:335,h:272,padding:[18,18,18,18],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),glyph:/* @__PURE__ */wl({w:64,h:64})}},Zl={card:/* @__PURE__ */wl({w:361,h:48,padding:[0,16,0,16],gap:[12,12],minHeight:48,radius:[10,10],bg:"#FBF1EE",center:true,color:"#6D1D14"}),icon:/* @__PURE__ */wl({w:20,h:20,color:"alert"}),title:/* @__PURE__ */vl({size:15,weight:700,lineHeight:23.25,color:"#6D1D14"}),titleGap:6,text:/* @__PURE__ */vl({size:15,weight:400,lineHeight:23.25,color:"#6D1D14"}),chev:/* @__PURE__ */wl({w:16,h:16,color:"#6D1D14"}),pressScale:.98},eo={grid:/* @__PURE__ */wl({w:361,h:591.25,gap:[12,12]}),tile:/* @__PURE__ */wl({w:174.5,h:143.359,padding:[14,14,14,14],gap:[6,6],minHeight:120,radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),label:/* @__PURE__ */vl({size:12,weight:700,lineHeight:15.6,color:"muted",tracking:.72,face:"mono",upper:true}),labelGap:6,icon:/* @__PURE__ */wl({w:16,h:16,color:"ink"}),chev:/* @__PURE__ */wl({w:14,h:14,color:"muted"}),value:/* @__PURE__ */vl({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),valueGap:6,unit:/* @__PURE__ */vl({size:15,weight:700,lineHeight:16.5,color:"ink",tabular:true}),note:/* @__PURE__ */vl({size:13,weight:400,lineHeight:18.2}),pressScale:.98},to={cell:/* @__PURE__ */wl({w:54,h:100,padding:[2,0,0,0],gap:[4,4],center:true}),column:54,rows:[18,32,16,20,6],time:/* @__PURE__ */vl({size:13,weight:400,lineHeight:15.6,color:"muted"}),timeNow:/* @__PURE__ */vl({size:13,weight:700,lineHeight:15.6,color:"ink"}),glyph:/* @__PURE__ */wl({w:32,h:32}),icon:/* @__PURE__ */wl({w:24,h:24,color:"#926F06"}),chance:/* @__PURE__ */vl({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),temp:/* @__PURE__ */vl({size:15,weight:700,lineHeight:18,color:"ink",tabular:true}),quiet:/* @__PURE__ */vl({size:13,weight:400,lineHeight:15.6,color:"muted",tabular:true}),bar:/* @__PURE__ */wl({w:52,h:6,radius:[3,3],bg:"#77DDAC"}),barInset:1,levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},windows:/* @__PURE__ */wl({w:327,h:76.594,marginBottom:12,gap:[8,8]}),window:/* @__PURE__ */wl({w:159.5,h:76.594,padding:[10,12,10,12],gap:[2,2],radius:[10,10],bg:"tintGo"}),windowTitle:/* @__PURE__ */vl({size:15,weight:700,lineHeight:19.5,color:"ink",tabular:true}),windowText:/* @__PURE__ */vl({size:13,weight:400,lineHeight:17.55}),legend:/* @__PURE__ */wl({w:327,h:18.188,marginTop:12,gap:[14,4],color:"muted"}),legendItem:/* @__PURE__ */wl({w:47.813,h:18.188,gap:[6,6],center:true,color:"muted"}),legendText:/* @__PURE__ */vl({size:13,weight:400,lineHeight:18.2,color:"muted",marginTop:12}),legendDot:/* @__PURE__ */wl({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"muted"})},io={row:/* @__PURE__ */wl({w:327,h:48,gap:[8,8],minHeight:48,center:true}),rule:{width:1,color:"line"},columns:[48,32,30,155,30],walkColumns:[42,30,28,73,28,86],day:/* @__PURE__ */vl({size:15,weight:700,lineHeight:18,color:"ink"}),sky:/* @__PURE__ */wl({w:32,h:30,gap:[1,1]}),glyph:/* @__PURE__ */wl({w:30,h:30}),chance:/* @__PURE__ */vl({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),low:/* @__PURE__ */vl({size:14,weight:400,lineHeight:14,color:"muted",face:"mono",tabular:true}),high:/* @__PURE__ */vl({size:14,weight:400,lineHeight:14,color:"ink",face:"mono",tabular:true}),bar:/* @__PURE__ */wl({w:155,h:6,radius:[3,3],bg:"#F1F5F2"}),fill:/* @__PURE__ */wl({w:99.203,h:6,radius:[3,3],bg:"#DDB44F",x:23.25}),tag:/* @__PURE__ */wl({w:42.016,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FCF0D6",edge:{width:1,color:"tintYellowEdge",ring:true},center:true,color:"ink"}),tagText:/* @__PURE__ */vl({size:12,weight:700,lineHeight:14.4,color:"ink"}),tags:{good:{bg:"tintGo",ring:"#8FE3BB",ringWidth:1,color:"ink"},ok:{bg:"#FCF0D6",ring:"tintYellowEdge",ringWidth:1,color:"ink"},warn:{bg:"#FBF1EE",ring:"#E9B8AB",ringWidth:1,color:"#6D1D14"},rain:{bg:"tintBlue",ring:"#AFD1E7",ringWidth:1,color:"ink"}}},ro={phone:{list:/* @__PURE__ */wl({w:361,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */wl({w:361,h:26,gap:[8,8],center:true}),columns:[24,56,185,72],icon:/* @__PURE__ */wl({w:26,h:26}),name:/* @__PURE__ */vl({size:15,weight:400,lineHeight:23.25}),bar:/* @__PURE__ */wl({w:185,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */vl({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono"}),mid:/* @__PURE__ */vl({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono"}),low:/* @__PURE__ */vl({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono"})}},web:{list:/* @__PURE__ */wl({w:344.891,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */wl({w:344.891,h:26,gap:[12,12],center:true}),columns:[26,64,138.891,80],icon:/* @__PURE__ */wl({w:26,h:26}),name:/* @__PURE__ */vl({size:15,weight:400,lineHeight:23.25,wrap:"auto"}),bar:/* @__PURE__ */wl({w:138.891,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */vl({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),mid:/* @__PURE__ */vl({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),low:/* @__PURE__ */vl({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono",wrap:"auto"})}},webPhoneUpTo:559},no={phone:{body:/* @__PURE__ */wl({w:361,h:88.344,gap:[12,12]}),gap:12,picks:/* @__PURE__ */wl({w:361,h:36,gap:[10,10]}),on:/* @__PURE__ */wl({w:103.016,h:36,padding:[0,12,0,12],gap:[6,6],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),onText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:19.5,color:"ink"}),off:/* @__PURE__ */wl({w:86.875,h:36,padding:[0,12,0,12],gap:[6,6],minHeight:36,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),offText:/* @__PURE__ */vl({size:15,weight:400,lineHeight:19.5,color:"ink"}),check:/* @__PURE__ */wl({w:16,h:16,color:"ink"}),read:/* @__PURE__ */wl({w:361,h:40.344,gap:[12,0]}),value:/* @__PURE__ */vl({size:36,weight:700,lineHeight:37.8,color:"ink",tracking:-.72,tabular:true}),word:/* @__PURE__ */vl({size:17,weight:700,lineHeight:26.35,color:"alert",tracking:.34,face:"mono",upper:true})},web:{body:/* @__PURE__ */wl({w:344.891,h:140.344}),gap:16,picks:/* @__PURE__ */wl({w:344.891,h:82,marginTop:16,marginBottom:16,gap:[10,10]}),on:/* @__PURE__ */wl({w:107.016,h:36,padding:[0,14,0,14],gap:[6,6],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),onText:/* @__PURE__ */vl({size:15,weight:700,lineHeight:19.5,color:"ink",wrap:"auto"}),off:/* @__PURE__ */wl({w:90.875,h:36,padding:[0,14,0,14],gap:[6,6],minHeight:36,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),offText:/* @__PURE__ */vl({size:15,weight:400,lineHeight:19.5,color:"ink",wrap:"auto"}),check:/* @__PURE__ */wl({w:16,h:16,color:"ink"}),read:/* @__PURE__ */wl({w:344.891,h:42.344,gap:[12,0]}),value:/* @__PURE__ */vl({size:38.4,weight:700,lineHeight:40.32,color:"ink",tracking:-.768,wrap:"auto",tabular:true}),word:/* @__PURE__ */vl({size:17,weight:700,lineHeight:26.35,color:"#A05E32",tracking:.34,face:"mono",upper:true,wrap:"auto"})},fluid:{min:36,vw:3,max:44},tones:{good:"#0C844B",ok:"#A05E32",low:"alert"}};function lo(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e))for(let t of Object.values(e))lo(t);return e}var oo=ml,ao=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function so(e){return Object.defineProperty(e,ao,{value:e,enumerable:true}),lo(e)}var co={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},uo=so({name:"everfur",colors:{bg:oo.color.bg,surface:oo.color.efWhite,text:oo.color.text,ink:oo.role.color.ink,onInk:oo.color.efWhite,muted:oo.role.color.muted,line:oo.role.color.line,go:oo.role.color.go,onGo:oo.role.color.ink,pink:oo.color.efDustyPink,onPink:oo.role.color.ink,alert:oo.color.alert,alertDeep:oo.color.alertDeep,icoSage:oo.role.color.icoSage,bgMist:oo.color.bgMist,tintSage:oo.role.color.tintSage,tintBlue:oo.role.color.tintBlue,tintGo:oo.role.color.tintGo,tintPink:oo.role.color.tintPink,tintYellowEdge:oo.role.color.tintYellowEdge,tintWatch:kl.colors.watch,tintRed:oo.role.color.tintRed,scrim:kl.colors.scrim,grab:kl.colors.grab,focus:oo.role.color.ink,planInk:kl.colors.planInk,planOnInk:kl.colors.planOnInk,planAccent:kl.colors.planAccent,planLink:kl.colors.planLink,planAccentWash:kl.colors.planAccentWash,planAccentChip:kl.colors.planAccentChip,planLinkWash:kl.colors.planLinkWash,planLinkChip:kl.colors.planLinkChip},radius:{...oo.radius},space:{...oo.space},type:{family:oo.font.family.base,mono:oo.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:oo.font.size.xs,sm:oo.font.size.sm,md:oo.font.size.md,lg:oo.font.size.lg,xl:oo.font.size.xl},weight:{...oo.font.weight},lineHeight:{...oo.font.lineHeight},scaleCaps:co},motion:{duration:{press:oo.motion.duration.press,fade:oo.motion.duration.fade,enter:oo.motion.duration.enter,sheet:oo.motion.duration.sheet,sheetOut:oo.motion.duration.sheetOut},easing:{out:oo.motion.easing.out,drawer:oo.motion.easing.drawer},pop:{duration:oo.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:kl});function po(e){return e[ao]??uo}function ho(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function go(e,t){if(!ho(e)||!ho(t))return t===void 0?e:t;let i={...e};for(let[r,n]of Object.entries(t))n!==void 0&&(i[r]=go(e[r],n));return i}function resolveTheme(e,t=uo){if(!e)return t;let i=go(t,e),r=e.colors;if(r){let e=i.colors;for(let[t,i,n]of fo){let l=r[i];l!==void 0&&r[t]===void 0&&(e[t]=mo(l,n,e.surface)??e[t]??l)}}return lo(i)}var fo=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function mo(e,t,i){let r=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e??"");return t?[t[1],t[2],t[3]].map(e=>parseInt(e,16)):void 0},[n,l]=[r(e),r(i)];if(!(!n||!l))return`#${n.map((e,i)=>Math.round(e*t+(l[i]??0)*(1-t)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var bo=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),t=globalThis,i=t[e]??(t[e]=createContext(null));return i.displayName??(i.displayName="EverfurThemeContext"),i})();function ThemeProvider({theme:e,children:r}){let n=Io(),l=e===void 0||wo(e)?e:yo(e),o=i(()=>wo(e)?To(e):resolveTheme(e,n),[l,n]);return t(bo.Provider,{value:o},r)}function yo(e){return JSON.stringify(e,(e,t)=>ho(t)&&!Array.isArray(t)?Object.fromEntries(Object.keys(t).sort().map(e=>[e,t[e]])):t)}function wo(e){return e!==void 0&&Object.isFrozen(e)&&vo.every(t=>t in e)}var vo=["name","colors","radius","space","type","motion","metrics"];function ko(e,t){if(e===void 0)return true;if(!ho(e))return t!==void 0;if(!ho(t))return false;for(let i of Object.keys(e))if(!ko(e[i],t[i]))return false;return true}var xo=/* @__PURE__ */new WeakMap;function To(e){let t=xo.get(e);if(t)return t;if(ko(uo,e))return xo.set(e,e),e;let i=po(e),r=go(uo,i===uo?e:go(i,e));r[ao]=i;let n=lo(r);return xo.set(e,n),n}function Io(){let e=r(bo);return e?To(e):uo}var So=e=>Math.round(e*1e3)/1e3;function zo(e,t=false){return t?e>450?"monoBold":"mono":e>500?"bold":e>450?"medium":"regular"}function Do(e,t){let i=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(!i)return e;let[r,n,l]=[i[1],i[2],i[3]].map(e=>parseInt(e,16));return`rgba(${r}, ${n}, ${l}, ${t})`}function Co(e){let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(t)return[t[1],t[2],t[3]].map(e=>parseInt(e,16));let i=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(e);return i?[i[1],i[2],i[3]].map(Number):void 0}function Ho(e,t,i,r){let[n,l]=[Co(e),Co(i)];return!n||!l?r:`rgb(${n.map((e,i)=>Math.round(e*t+(l[i]??0)*(1-t))).join(", ")})`}function Fo(e,t){let i=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(t),r=i?.[1];if(!i||r===void 0||!(r in e.colors))return t;let n=e.colors[r];return i[2]===void 0?n:Do(n,Number(i[2]))}function _o(e,t){return t==="none"?"transparent":Fo(e,t)}var Oo=.45;function Eo(e,t,i,r=false){let n=e.metrics.button;if(t==="text"){let t=n.text;return{minHeight:0,paddingX:0,gap:n.ink.gap,radius:0,borderWidth:0,borderColor:"transparent",background:"transparent",iconSize:n.inkSm.iconSize,text:{size:t.fontSize,weight:t.fontWeight,lineHeight:So(t.fontSize*t.lineHeight),color:Fo(e,t.color)},pressScale:1,pressOpacity:t.pressOpacity,disabledOpacity:n.blockedOpacity??Oo,fill:false,ring:false}}let l=e.metrics.variants.button,o=Po(i),a=t==="outline"||t==="danger"||t==="warn",s=o?{...i==="compactSm"?l.sm:i==="compactLg"?l.lg:l.ink,borderWidth:a?l.outline.borderWidth:0,ring:l.outline.ring}:i==="row"?n.row:t==="danger"?n.danger:i==="sm"?n[`${t}Sm`]:n[t],c=e.colors,d=t==="money"||t==="warn"?n[t]:void 0,u={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=d?{bg:_o(e,d.bg),fg:Fo(e,d.fg),edge:Fo(e,d.edgeColor)}:u[t],h=t==="outline"&&r&&!o?n.outlineInSheetWeight:s.fontWeight;return{minHeight:s.minHeight,paddingX:s.paddingX,gap:s.gap,radius:e.radius.pill,borderWidth:s.borderWidth,borderColor:p.edge,background:p.bg,iconSize:s.iconSize,text:{size:s.fontSize,weight:h,lineHeight:So(s.fontSize*s.lineHeight),color:p.fg},pressScale:e.motion.reduced?1:o?l.press:e.metrics.press.button,pressOpacity:1,disabledOpacity:o?l.disabledOpacity:n.blockedOpacity??Oo,fill:s.fill,ring:s.ring}}function Po(e){return e==="compact"||e==="compactSm"||e==="compactLg"}function Lo(e,t){let i=e.metrics.pill,r=i.tones[t],n=t==="clear"?e.colors.ink:Fo(e,r.fg);return{minHeight:i.minHeight,paddingX:i.paddingX,radius:e.radius.pill,background:Fo(e,r.bg),ring:r.ring>0?{width:r.ring,color:Fo(e,r.ringColor)}:null,dot:t==="new"?{size:i.dot,gap:i.dotGap,color:e.colors.go}:t==="allergy"?{size:i.allergyDot.size,gap:i.allergyDot.gap,color:Fo(e,i.allergyDot.color)}:null,text:{size:i.fontSize,weight:i.fontWeight,lineHeight:So(i.fontSize*i.lineHeight),color:n,mono:i.mono,tracking:i.letterSpacing,upper:i.upper}}}function Bo(e,t){let i=e.metrics.sheet,r=i.titleSize,n=i.titleLineHeight??e.metrics.card.titleLineHeight;return{size:r,weight:i.titleWeight??e.metrics.card.titleWeight,lineHeight:So(r*n),color:Fo(e,i.titleColor??"ink"),tracking:i.titleTracking??e.metrics.card.titleTracking}}function Ao(e){let t=e.metrics,i=e.colors;return{cardTitle:{size:t.card.titleSize,weight:t.card.titleWeight,lineHeight:So(t.card.titleSize*t.card.titleLineHeight),color:i.ink,tracking:t.card.titleTracking},cardLead:{size:t.card.leadSize,weight:e.type.weight.regular,lineHeight:So(t.card.leadSize*t.card.leadLineHeight),color:i.text},body:{size:t.card.bodySize,weight:e.type.weight.regular,lineHeight:So(t.card.bodySize*t.card.bodyLineHeight),color:i.text},kicker:{size:t.kicker.fontSize,weight:t.kicker.fontWeight,lineHeight:So(t.kicker.fontSize*t.kicker.lineHeight),color:i.muted,mono:true,tracking:t.kicker.letterSpacing,upper:true},sheetTitle:Bo(e),stepperValue:{size:t.quantityStepper.valueSize,weight:t.quantityStepper.valueWeight,lineHeight:So(t.quantityStepper.valueSize*t.quantityStepper.valueLineHeight),color:Fo(e,t.quantityStepper.valueColor??"text")},tab:{size:t.tabs.fontSize,weight:t.tabs.fontWeight,lineHeight:So(t.tabs.fontSize*t.tabs.lineHeight),color:i.muted},tabCurrent:{size:t.tabs.fontSize,weight:t.tabs.currentWeight,lineHeight:So(t.tabs.fontSize*t.tabs.lineHeight),color:i.ink},emptyTitle:{size:t.empty.titleSize,weight:t.empty.titleWeight,lineHeight:So(t.empty.titleSize*t.empty.titleLineHeight),color:i.ink,tracking:t.empty.titleTracking},emptyLead:{size:t.empty.leadSize,weight:e.type.weight.regular,lineHeight:So(t.empty.leadSize*t.empty.leadLineHeight),color:i.text},emptyLink:{size:t.empty.linkSize,weight:t.empty.linkWeight,lineHeight:So(t.empty.linkSize*t.card.bodyLineHeight),color:i.ink},sumTerm:{size:t.summary.termSize,weight:e.type.weight.regular,lineHeight:So(t.summary.termSize*t.summary.termLineHeight),color:i.muted},sumValue:{size:t.summary.valueSize,weight:t.summary.valueWeight,lineHeight:So(t.summary.valueSize*t.summary.valueLineHeight),color:i.ink},sumTotal:{size:t.summary.totalSize,weight:t.summary.valueWeight,lineHeight:So(t.summary.totalSize*t.summary.totalLineHeight),color:i.ink}}}function Ro(e){let t=e.metrics.quantityStepper;return{edge:{width:t.borderWidth,color:Fo(e,t.borderColor),inset:t.ring},button:t.button,icon:t.icon,valueMinWidth:t.valueMinWidth,fill:_o(e,t.fill??"none"),glyph:Fo(e,t.glyph??"ink"),off:{color:Fo(e,t.offColor),opacity:t.offOpacity}}}function jo(e,t){return{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:Fo(e,t.color),...t.face==="mono"?{mono:true}:{},...t.face==="serif"?{serif:true}:{},...t.tracking?{tracking:t.tracking}:{},...t.upper?{upper:true}:{},...t.deco==="none"?{}:{deco:t.deco==="strike"?"strike":"underline",decoOffset:t.decoOffset,decoThickness:t.decoThickness},...t.tabular?{tabular:true}:{},...t.wrap==="auto"?{}:{wrap:t.wrap==="balance"?"balance":"pretty"}}}function $o(e,t){return t==="none"?void 0:Fo(e,t)}function Wo(e){let t=e.metrics.summary,i=(e,t)=>So(e*t);return{paddingX:t.paddingX,paddingY:t.paddingY,radius:t.radius,borderWidth:t.borderWidth,borderColor:e.colors.line,background:Fo(e,t.background),shadow:t.shadow,row:{paddingY:t.rowPaddingY,minHeight:t.rowMinHeight,gapX:t.rowGapX,gapY:t.rowGapY,divider:t.rowDivider,center:t.rowCenter},totalRowMinHeight:t.totalRowMinHeight,gap:t.gap??0,totalMarginTop:t.totalMarginTop??0,tabular:t.tabular,term:{size:t.termSize,weight:e.type.weight.regular,lineHeight:i(t.termSize,t.termLineHeight),color:Fo(e,t.termColor)},value:{size:t.valueSize,weight:t.valueWeight,lineHeight:i(t.valueSize,t.valueLineHeight),color:Fo(e,t.valueColor)},totalTerm:{size:t.totalTermSize,weight:t.totalTermWeight,lineHeight:i(t.totalTermSize,t.termLineHeight),color:Fo(e,t.totalTermColor)},total:{size:t.totalSize,weight:t.totalWeight,lineHeight:i(t.totalSize,t.totalLineHeight),color:Fo(e,t.valueColor)},off:jo(e,e.metrics.summary.off)}}function Mo(e,t){let i=e.metrics.skeleton.widths;return`${i[t%i.length]}%`}function No(e,t,i){return Math.max(t,i===void 0?e:Math.min(i,e))}function Go(e,t,i){return i!==void 0?i:e===void 0?void 0:`${e}-${t}`}var qo=e=>e,Uo=e=>"edge"in e&&"shadow"in e&&"fit"in e,Vo=e=>"deco"in e&&"face"in e&&"tabular"in e;function Yo(e){let t=/* @__PURE__ */new Map;for(let[i,r]of Object.entries(e))t.has(r)||t.set(r,i);return t}var Xo,Ko=/* @__PURE__ */new WeakMap;function Qo(e,t,i){let r=e.get(i),n=r===void 0?void 0:t[r];return typeof n=="number"?n:i}function Jo(e){let t=uo;return e.space===t.space&&e.radius===t.radius&&e.type.size===t.type.size&&e.type.weight===t.type.weight}function Zo(e,t){let i=uo;Xo??(Xo={space:Yo(qo(i.space)),radius:Yo(qo(i.radius)),size:Yo(qo(i.type.size)),weight:Yo(qo(i.type.weight))});let r=Xo,n=t=>Qo(r.space,qo(e.space),t),l=t=>Qo(r.radius,qo(e.radius),t),o=t=>Array.isArray(t)?t.map(o):t===null||typeof t!="object"?t:Uo(t)?{...t,padding:t.padding.map(n),gap:t.gap.map(n),marginTop:n(t.marginTop),marginBottom:n(t.marginBottom),radius:t.radius.map(l)}:Vo(t)?{...t,size:Qo(r.size,qo(e.type.size),t.size),weight:Qo(r.weight,qo(e.type.weight),t.weight),marginTop:n(t.marginTop),paddingTop:n(t.paddingTop)}:Object.fromEntries(Object.entries(t).map(([e,t])=>[e,o(t)]));return o(t)}function ea(e,t){if(Jo(e))return t;let i=Ko.get(t);i||Ko.set(t,i=/* @__PURE__ */new WeakMap);let r=i.get(e);if(r)return r;let n=Zo(e,t);return i.set(e,n),n}function ta(e,t,i,r,n=false){let l=e.length;if(l===0||t<=0)return[];let{rows:o,gap:a,widthShare:s}=r.grid,c=t/l,d=Math.max(1,Math.round(c*s)),u=Number(((i-(o-1)*a)/o).toFixed(2));return e.map((e,l)=>{let s=Number.isFinite(e)?Math.min(10,Math.max(0,e)):0,p=[];for(let e=0;e<o;e+=1){let t=Number(Math.max(0,Math.min(1,s-e)).toFixed(3));t>0&&p.push({y:Number((i-(e+1)*((i-(o-1)*a)/o)-e*a).toFixed(2)),height:u,opacity:t})}let h=Math.round(l*c+(c-d)/2);return{x:n?Math.round(t-h-d):h,width:d,zone:s>=r.zones.lot?"lot":s>=r.zones.some?"some":"go",lights:p}})}var ia=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#SurfaceContext@v1"),t=globalThis;return t[e]??(t[e]=createContext(null))})();function ra(){return r(ia)}var na={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function la(e,t){let i=e.colors;switch(t){case"ink":return i.ink;case"text":return i.text;case"muted":return i.muted;case"danger":return i.alertDeep;case"inverse":return i.onInk;default:return}}function oa(e,t,i,r){let n=jo(e,e.metrics.text[t]),l=la(e,i);return{...n,...l?{color:l}:{},...r?{weight:e.type.weight[r]}:{}}}var aa=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),t=globalThis,i=t[e]??(t[e]=createContext(null));return i.displayName??(i.displayName="EverfurPressFeedbackContext"),i})();function sa(){return r(aa)}function ca(e,t,i,r={}){if(!e||r.disabled)return{onPress:i,onPressIn:void 0};let{onPressIn:n,onPress:l,haptic:o}=e,a=r.haptics!==false&&t.haptic&&o?o:void 0;return{onPress:i&&(l||a)?()=>{a?.(t),l?.(t),i()}:i,onPressIn:n?()=>n(t):void 0}}function da(e,t,i=1){return e?.pressScale?.[t]??i}var ua={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function pa(e,t){return e.type.variantTiers?.[t]??na[t]}var ha=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),t=globalThis,i=t[e]??(t[e]=createContext(null));return i.displayName??(i.displayName="EverfurReducedMotionContext"),i})();function ga(){return r(ha)}function fa(e,t){let i=zo(t.weight,t.mono===true);return{fontFamily:t.serif?e.type.faces.serif??e.type.faces.bold:e.type.faces[i],...e.type.namedFaces?{}:{fontWeight:String(t.weight)},fontSize:t.size,lineHeight:t.lineHeight,color:t.color,...t.tracking?{letterSpacing:t.tracking}:{},...t.upper?{textTransform:"uppercase"}:{},...t.deco?ma(t):{},...t.tabular?{fontVariant:["tabular-nums"]}:{},...t.wrap&&w.OS==="web"?{textWrap:t.wrap}:{}}}function ma(e){let t={textDecorationLine:e.deco==="strike"?"line-through":"underline"};return w.OS!=="web"?t:{...t,...e.decoOffset?{textUnderlineOffset:e.decoOffset}:{},...e.decoThickness?{textDecorationThickness:e.decoThickness}:{}}}function ba(e,t){let[i=0,r=0,n=0,l=0]=t.padding,[o=0,a=0]=t.radius,s=$o(e,t.bg);return{paddingTop:i,paddingRight:r,paddingBottom:n,paddingLeft:l,...t.marginTop?{marginTop:t.marginTop}:{},...t.gap[0]?{columnGap:t.gap[0]}:{},...t.gap[1]?{rowGap:t.gap[1]}:{},...o===a?o?{borderRadius:o}:{}:{borderTopLeftRadius:o,borderTopRightRadius:o,borderBottomLeftRadius:a,borderBottomRightRadius:a},...s?{backgroundColor:s}:{},...t.edge.width>0&&!t.edge.ring?{borderWidth:t.edge.width,borderColor:Fo(e,t.edge.color)}:{},...t.minHeight?{minHeight:t.minHeight}:{},...Ia(t.shadow)}}function ya(e,t){return t.edge.width>0&&t.edge.ring?Sa(t.edge.width,Fo(e,t.edge.color),t.radius[0]??0):null}function wa(){if(w.OS!=="web")return false;let e=globalThis;return typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)").matches}function va(e){let[t,i]=n(()=>e===null&&wa());return l(()=>{if(e!==null)return;let t=true,r=v?.isReduceMotionEnabled;if(typeof r=="function"){let e=r.call(v);e!=null&&typeof e.then=="function"&&e.then(e=>{t&&i(e===true)},()=>{})}let n=v?.addEventListener?.("reduceMotionChanged",e=>i(e===true));return()=>{t=false,n?.remove?.()}},[e]),e??t}function ka(e){let t=va(ga());return e.motion.reduced||t}function xa(e,t,i){return{...e===void 0?{}:{expanded:e},...t===void 0?{}:{checked:t},...i===void 0?{}:{selected:i!==false}}}function Ta(e){let t=Math.max(0,Math.ceil((44-e)/2));return t===0?void 0:{top:t,bottom:t,left:t,right:t}}function Ia(e){return e.blur===0&&e.y===0&&e.x===0?null:{shadowColor:e.color,shadowOffset:{width:e.x,height:e.y},shadowOpacity:1,shadowRadius:e.blur,elevation:1}}function Sa(e,t,i){let r={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:i};return w.OS==="web"?{...r,boxShadow:`inset 0 0 0 ${e}px ${t}`}:{...r,borderWidth:e,borderColor:t}}var za=/* @__PURE__ */new Set;function Da(e,t,i){let r=typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production";!t||i||za.has(e)||!r||(za.add(e),console.warn(`@everfur-health/ui-native: ${e} draws its close (onClose) without a closeLabel, so a screen reader cannot name it. Pass closeLabel with onClose.`))}function Ca(e){return Math.round(e*100)/100}function Ha(e,t){let i=Number(t.weight),r=t.letterSpacing??0;return{...fa(e,{size:t.size,weight:i,lineHeight:Ca(t.size*t.lineHeight),color:e.colors.text,tracking:r?Ca(t.size*r):0,mono:t.face==="mono",upper:t.uppercase===true}),flexShrink:1}}function Fa(e){return e==="auto"?null:w.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:w.OS==="android"&&e==="balance"?{textBreakStrategy:"balanced"}:null}function _a(e,t){let i=e.type.weight[t];return e.type.namedFaces?{fontFamily:e.type.faces[zo(i)]}:{fontWeight:String(i)}}function Text({tier:e,variant:i,tone:r,weight:n,level:l,lineBreak:o,typeRole:a,...s}){let c=Io();if(a){let i=c.type.scaleCaps[e??a.tier??"content"],r=o?Fa(o):null;return t(f,{...i>0?{maxFontSizeMultiplier:i}:{},...r,...s,style:[Ha(c,a),s.style]})}let d=c.type.scaleCaps[e??(i?pa(c,i):"content")],u=Fa(o??(i?ua[i]:"auto"));if(i===void 0&&r===void 0&&n===void 0&&l===void 0)return u?t(f,{...d>0?{maxFontSizeMultiplier:d}:{},...u,...s}):t(f,d>0?{maxFontSizeMultiplier:d,...s}:s);let p=la(c,r),h=i?fa(c,oa(c,i,r,n)):{...p?{color:p}:{},...n?_a(c,n):{}},g=l===void 0?{}:{accessibilityRole:"header",...w.OS==="web"?{"aria-level":l}:{}};return t(f,{...d>0?{maxFontSizeMultiplier:d}:{},...u,...g,...s,style:[h,s.style]})}var Oa=24,Ea=16,Pa=.8,La=e=>Math.round(e*Ea);function Ba(e,t,i,r,n,l){let o=e-i/2,a=t-r/2,s=Math.round(o),c=Math.round(a);return{position:"absolute",left:s,top:c,width:i,height:r,transform:[{translateX:o-s},{translateY:a-c},{rotate:`${Math.atan2(l,n)*180/Math.PI}deg`},{scale:1/Ea}]}}function Aa(e,t,i){for(let r of e.strokes){let e=r.width*t,n=r.points,l=n.length/2,o=r.closed?l:l-1;for(let a=0;a<o;a+=1){let o=(a+1)%l,s=(n[a*2]??0)*t,c=(n[a*2+1]??0)*t,d=(n[o*2]??0)*t-s,u=(n[o*2+1]??0)*t-c,p=Math.hypot(d,u);if(p===0&&!(l===2&&r.cap))continue;let h=p===0?1:d/p,g=p===0?0:u/p,f=r.closed||a>0||r.cap?e/2:0,m=r.closed||o!==l-1||r.cap?e/2:0,b=(p+m-f)/2;i.push({paint:"backgroundColor",style:{...Ba(s+h*b,c+g*b,La(p+f+m),La(e),h,g),borderTopLeftRadius:f>0?La(e)/2:0,borderBottomLeftRadius:f>0?La(e)/2:0,borderTopRightRadius:m>0?La(e)/2:0,borderBottomRightRadius:m>0?La(e)/2:0,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}}function Ra(e,t,i){for(let r of e.boxes){let e=(r.w+r.width)*t,n=(r.h+r.width)*t;i.push({paint:"borderColor",style:{...Ba((r.x-r.width/2)*t+e/2,(r.y-r.width/2)*t+n/2,La(e),La(n),1,0),borderWidth:La(r.width*t),borderRadius:(r.radius+r.width/2)*t*Ea,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}function ja(e,t,i){for(let r of e.triangles){let e=[0,1,2].map(e=>[(r[e*2]??0)*t,(r[e*2+1]??0)*t]),n=0,l=-1;for(let t=0;t<3;t+=1){let i=e[t]??[0,0],r=e[(t+1)%3]??[0,0],o=Math.hypot(r[0]-i[0],r[1]-i[1]);o>l&&(l=o,n=t)}if(l<=0)continue;let o=e[n]??[0,0],a=e[(n+1)%3]??[0,0],s=e[(n+2)%3]??[0,0],c=(a[0]-o[0])/l,d=(a[1]-o[1])/l,u=(s[0]-o[0])*c+(s[1]-o[1])*d,p=(s[0]-o[0])*-d+(s[1]-o[1])*c,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=La(u),b=La(l)-m,y=La(h);i.push({paint:g?"borderBottomColor":"borderTopColor",style:{...Ba(o[0]+c*(l/2)-d*f,o[1]+d*(l/2)+c*f,m+b,y,c,d),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:y}:{borderTopWidth:y}}})}for(let r of e.seams){let e=(r[0]??0)*t,n=(r[1]??0)*t,l=(r[2]??0)*t-e,o=(r[3]??0)*t-n,a=Math.hypot(l,o),s=Pa*(r[4]??0),c=Pa*(r[5]??0),d=a-s-c;if(a===0||d<=0)continue;let u=s+d/2;i.push({paint:"backgroundColor",style:Ba(e+l/a*u,n+o/a*u,La(d),La(Pa),l/a,o/a)})}}var $a=/* @__PURE__ */new WeakMap;function Wa(e,t){let i=$a.get(e);i===void 0&&(i=/* @__PURE__ */new Map,$a.set(e,i));let r=i.get(t);if(r!==void 0)return r;let n=[],l=t/Oa;return Ra(e,l,n),Aa(e,l,n),ja(e,l,n),i.set(t,n),n}function Glyph({icon:e,size:t,color:i,label:r,testID:n,style:l}){let o=Io(),a=t??o.metrics.icon.size,s=i??o.colors.ink;/* @__PURE__ */
28
- return z(h,{testID:n,pointerEvents:"none",style:[{width:a,height:a},l],...r?{accessible:true,accessibilityRole:"image",accessibilityLabel:r}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:Wa(e,a).map((e,t)=>/* @__PURE__ */z(h,{style:[e.style,{[e.paint]:s}]},t))})}var Ma=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),t=globalThis;return t[e]??(t[e]={icons:{},warned:/* @__PURE__ */new Set})})();function Na(e){Object.assign(Ma.icons,e)}function Ga(e){let t=Ma.icons[e];return t===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!Ma.warned.has(e)&&(Ma.warned.add(e),console.warn(`@everfur-health/ui-native: no icon "${e}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),t}function Icon({name:e,...t}){let i=Ga(e);return i?/* @__PURE__ */z(Glyph,{icon:i,...t}):null}function qa(e,t,i,r=1){return Ua(sa(),e,t,i,r)}function Ua(e,t,i,r,n=1){let l=ca(e,{component:t,testID:i.testID,...i.item===void 0?{}:{item:i.item},label:i.label,trackId:i.trackId,haptic:i.haptic===true},r,{disabled:i.disabled});return{props:l.onPressIn?{onPress:l.onPress,onPressIn:l.onPressIn}:{onPress:l.onPress},scale:da(e,t,n)}}var Va=e=>`cubic-bezier(${e.join(", ")})`,Ya=(e,t)=>typeof e=="function"?e({pressed:t}):e,Xa;function Ka(){return Xa??(Xa=x.createAnimatedComponent(g))}function Qa(e,t,i){let[r,n,l,o]=e.motion.easing.out;return x.timing(t,{toValue:i,duration:e.motion.duration.press,easing:T.bezier(r,n,l,o),useNativeDriver:true})}function PressBox({style:e,scale:i,still:r,pop:l,onPressIn:o,onPressOut:s,...c}){let d=Io(),u=a(null),[p,h]=n(false),f=!r&&i!==1,m=!r&&l?.scale!=null;if(w.OS==="web"){let r=f?{transitionProperty:"transform",transitionDuration:`${d.motion.duration.press}ms`,transitionTimingFunction:Va(d.motion.easing.out)}:null;return t(g,{...c,...l?{ref:l.ref}:null,onPressIn:o,onPressOut:s,style:({pressed:t})=>[Ya(e,t),r,f&&t?{transform:[{scale:i}]}:null]})}if(!f&&!m)return t(g,{...c,onPressIn:o,onPressOut:s,style:e});let b=u.current??(u.current=new x.Value(0)),y=f?b.interpolate({inputRange:[0,1],outputRange:[1,i]}):null,v=y&&m?x.multiply(y,l?.scale):y??l?.scale;return t(Ka(),{...c,onPressIn:e=>{c.disabled||(h(true),f&&Qa(d,b,1).start(),o?.(e))},onPressOut:e=>{h(false),f&&Qa(d,b,0).start(),s?.(e)},style:[Ya(e,p),{transform:[{scale:v}]}]})}function Button({label:e,onPress:t,tone:i="ink",size:r="md",icon:n,disabled:l=false,loading:o=false,loadingLabel:a,loadingIndicator:s="spinner",fullWidth:c,accessibilityLabel:d,trackId:u,haptic:p,testID:g,style:f,children:m,nativeID:b,onPressIn:y,"aria-expanded":w,"aria-pressed":v,"aria-current":k}){let x=Io(),T=ra()==="sheet",I=ka(x),C=Eo(x,i,r,T),H=l||o,F=c??(T||C.fill),_=o&&s!=="none",O=_&&a?a:d??(_&&a?a:e),E=qa("Button",{testID:g,label:O,trackId:u,haptic:p,disabled:H},t,C.pressScale),P=E.props.onPressIn,L=y&&P?()=>{P(),y()}:y??P;/* @__PURE__ */
29
- return D(PressBox,{...E.props,onPressIn:L,scale:E.scale,still:I,disabled:H,nativeID:b,hitSlop:Ta(Math.max(C.minHeight,C.text.lineHeight)),accessibilityRole:"button",accessibilityLabel:O,accessibilityState:{disabled:H,busy:o,...xa(w,v,k)},"aria-busy":o,testID:g,style:({pressed:e})=>[Ja.base,{minHeight:Math.max(C.minHeight,0),paddingHorizontal:C.paddingX,columnGap:C.gap,borderRadius:C.radius,borderWidth:C.ring?0:C.borderWidth,borderColor:C.borderColor,backgroundColor:C.background},F?Ja.block:Ja.auto,H?{opacity:C.disabledOpacity}:null,e&&C.pressOpacity!==1&&!H?{opacity:C.pressOpacity}:null,f],children:[_?/* @__PURE__ */z(S,{size:"small",color:C.text.color,animating:!I,hidesWhenStopped:false,accessibilityLabel:O}):n?/* @__PURE__ */z(Icon,{name:n,size:C.iconSize,color:C.text.color}):null,
30
- /* @__PURE__ */z(h,{style:Ja.labelBox,children:/* @__PURE__ */z(Text,{tier:"control",style:[fa(x,C.text),Ja.label],children:_&&a?a:m??e})}),C.ring&&C.borderWidth>0?/* @__PURE__ */z(h,{pointerEvents:"none",style:Sa(C.borderWidth,C.borderColor,C.radius)}):null]})}var Ja=u.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});var Za={block:{height:16,radius:8},shimmer:{duration:1150,bandShare:.6,bandMin:28,band:"rgba(255, 255, 255, 0.42)",skew:-14}};var es={drop:{color:"rgba(0, 0, 0, 0.16)",x:0,y:10,blur:30,spread:0},go:{h:44,paddingX:18,bg:"go",color:"text"},imgInset:3,totalLineHeight:18.6875};u.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});u.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});function ts(e){return w.OS==="web"?{boxShadow:`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`}:{shadowColor:e.color,shadowOpacity:1,shadowRadius:e.blur/2,shadowOffset:{width:e.x,height:e.y},elevation:Math.round(e.blur/3)}}u.create({st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},acts:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"},compact:{alignItems:"center"},iconBox:{alignItems:"center",justifyContent:"center"},pill:{alignItems:"center",justifyContent:"center"}});u.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:e,tone:t="plain",testID:i,style:r,maxFontSizeMultiplier:n,grouped:l=true}){let o=Io(),a=Lo(o,t);/* @__PURE__ */
31
- return D(h,{testID:i,...l?{accessible:true,accessibilityLabel:e}:null,style:[is.pill,{minHeight:a.minHeight,paddingHorizontal:a.paddingX,borderRadius:a.radius,backgroundColor:a.background,...a.dot?{columnGap:a.dot.gap}:{}},r],children:[a.ring?/* @__PURE__ */z(h,{pointerEvents:"none",style:Sa(a.ring.width,a.ring.color,a.radius)}):null,a.dot?/* @__PURE__ */z(h,{style:{width:a.dot.size,height:a.dot.size,borderRadius:a.dot.size/2,backgroundColor:a.dot.color}}):null,
32
- /* @__PURE__ */z(Text,{tier:"control",numberOfLines:1,...n===void 0?{}:{maxFontSizeMultiplier:n},style:[fa(o,a.text),is.label],children:e})]})}var is=u.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}}),rs={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:[]},ns={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:[]},ls={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:[]},os={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:[]},as={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:[]},ss={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:[]},cs={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:[]},ds={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:[]},us={strokes:[{width:2,cap:true,closed:false,points:[20,6,9,17,4,12]}],boxes:[],triangles:[],seams:[]},ps={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]},hs={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:[]},gs={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:[]},fs={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:[]},ms={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:[]},bs={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:[]},ys={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:[]},ws={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:[]},vs={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:[]},ks={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:[]},xs={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:[]},Ts={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:[]},Is={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:[]},Ss={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:[]},zs={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:[]},Ds={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:[]},Cs={strokes:[{width:2,cap:true,closed:false,points:[5,12,19,12]}],boxes:[],triangles:[],seams:[]},Hs={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:[]},Fs={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:[]},_s={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:[]},Os={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:[]},Es={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:[]},Ps={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:[]},Ls={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:[]},Bs={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:[]},As={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:[]},Rs={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:[]},js={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:[]},$s={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:[]},Ws={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:[]},Ms={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:[]},Ns={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:[]},Gs={alert:rs,"arrow-left":ns,bag:ls,bell:os,bowl:as,box:ss,calendar:cs,camera:ds,check:us,chevron:ps,clock:hs,download:gs,edit:fs,file:ms,flask:bs,folder:ys,heart:ws,help:vs,house:ks,image:xs,info:Ts,leaf:Is,lock:Ss,mail:zs,message:Ds,minus:Cs,more:Hs,paw:Fs,phone:_s,pill:Os,pin:Es,plus:Ps,search:Ls,send:Bs,shield:As,sparkle:Rs,syringe:js,upload:$s,user:Ws,video:Ms,x:Ns};function QuantityStepper(e){return qs(e,void 0)}function InkedQuantityStepper({ink:e,...t}){return qs(t,e)}function qs({value:e,min:t=1,max:i,label:r,fewerLabel:n,moreLabel:o,disabled:s=false,variant:c="standard",onChange:d,trackId:u,haptic:p,testID:g,style:f},m){let b=Io(),y=ka(b),k=Ro(b),x=b.metrics.variants.stepper,T=c==="compact",I=s||e<=t,S=s||i!==void 0&&e>=i,C=T?x.press:b.metrics.press.iconButton,H=qa("QuantityStepper",{testID:g?`${g}-fewer`:void 0,item:"fewer",label:n,trackId:u,haptic:p,disabled:I},()=>d(No(e-1,t,i)),C),F=qa("QuantityStepper",{testID:g?`${g}-more`:void 0,item:"more",label:o,trackId:u,haptic:p,disabled:S},()=>d(No(e+1,t,i)),C),_=a(e);l(()=>{_.current!==e&&(_.current=e,w.OS==="ios"&&v.announceForAccessibility(`${r}, ${e}`))},[r,e]);let O=(e,t,i,r,n)=>/* @__PURE__ */z(PressBox,{...r.props,scale:r.scale,still:y,disabled:e,hitSlop:Ta(x.button.h),accessibilityRole:"button",accessibilityLabel:i,accessibilityState:{disabled:e},testID:g?`${g}-${n}`:void 0,style:[Us.button,{width:x.button.w,height:x.button.h,borderRadius:x.button.radius[0]??0},e?{opacity:x.disabledOpacity}:null],children:/* @__PURE__ */z(Glyph,{icon:t==="plus"?Ps:Cs,size:x.icon,color:m??Fo(b,x.button.color)})}),E=(e,t,i,r,n)=>T?O(e,t,i,r,n):/* @__PURE__ */z(PressBox,{...r.props,scale:r.scale,still:y,disabled:e,hitSlop:Ta(k.button),accessibilityRole:"button",accessibilityLabel:i,accessibilityState:{disabled:e},testID:g?`${g}-${n}`:void 0,style:[Us.button,{width:k.button,height:k.button,borderRadius:k.button/2},e&&k.off.opacity!==1?{opacity:k.off.opacity}:null],children:/* @__PURE__ */z(Glyph,{icon:t==="plus"?Ps:Cs,size:k.icon,color:e?k.off.color:b.colors.ink})}),P=T?ya(b,x.track):null;/* @__PURE__ */
33
- return D(h,{testID:g,style:[Us.qty,T?[ba(b,x.track),{height:x.track.h}]:{borderWidth:k.edge.inset?0:k.edge.width,borderColor:k.edge.color,borderRadius:b.radius.pill},f],children:[T?P?/* @__PURE__ */z(h,{pointerEvents:"none",style:P}):null:k.edge.inset?/* @__PURE__ */z(h,{pointerEvents:"none",style:Sa(k.edge.width,k.edge.color,b.radius.pill)}):null,E(I,"minus",n,H,"fewer"),
34
- /* @__PURE__ */z(Text,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:r,accessibilityValue:{now:e,min:t,...i!==void 0?{max:i}:{},text:String(e)},"aria-valuenow":e,"aria-valuemin":t,"aria-valuemax":i,accessibilityState:{disabled:s},"aria-disabled":s||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:r=>{r.nativeEvent.actionName==="increment"&&!S&&d(No(e+1,t,i)),r.nativeEvent.actionName==="decrement"&&!I&&d(No(e-1,t,i))},accessibilityLiveRegion:"polite",style:T?[fa(b,jo(b,x.value)),{width:x.valueWidth,textAlign:"center"},m?{color:m}:null]:[fa(b,Ao(b).stepperValue),{minWidth:k.valueMinWidth,textAlign:"center",fontVariant:["tabular-nums"]}],children:String(e)}),E(S,"plus",o,F,"more")]})}var Us=u.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});u.create({row:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},compact:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1},edit:{flexDirection:"row",alignItems:"center",justifyContent:"center"},pressed:{opacity:.6}});u.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"}});u.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:e=3,shape:t,label:i,testID:r,style:n,block:l,color:o}){let a=Io(),s=a.metrics.skeleton,c=o??s.color??a.colors.tintSage,d=i?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:i,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};return l?/* @__PURE__ */z(SkeletonBox,{block:l,fill:c,testID:r,style:n,named:d}):t?/* @__PURE__ */z(h,{testID:r,style:[Vs(a,t,c),n],...d}):/* @__PURE__ */z(h,{testID:r,style:[{rowGap:s.gap,alignSelf:"stretch"},n],...d,children:Array.from({length:Math.max(1,e)},(e,t)=>/* @__PURE__ */z(h,{style:{height:s.lineHeight,width:Mo(a,t),borderRadius:a.radius.pill,backgroundColor:c}},t))})}function SkeletonBox({block:e,fill:t,testID:i,style:r,named:o}){let s=Io(),c=ka(s),d=Za,u=d.shimmer,p=e.shimmer===true&&!c,[g,f]=n(0),m=a(new x.Value(0)).current;l(()=>{if(!p||g<=0)return;m.setValue(0);let e=x.loop(x.timing(m,{toValue:1,duration:u.duration,easing:T.inOut(T.ease),useNativeDriver:w.OS!=="web"}));return e.start(),()=>e.stop()},[p,g,m,u.duration]);let b=Math.max(u.bandMin,g*u.bandShare);/* @__PURE__ */
35
- return z(h,{testID:i,onLayout:p?e=>f(Math.round(e.nativeEvent.layout.width)):void 0,style:[{width:e.width??"100%",height:e.height??d.block.height,borderRadius:e.radius??d.block.radius,borderCurve:"continuous",backgroundColor:t,overflow:"hidden"},r],...o,children:p&&g>0?/* @__PURE__ */z(x.View,{pointerEvents:"none",style:{position:"absolute",top:-6,bottom:-6,left:0,width:b,backgroundColor:u.band,transform:[{translateX:m.interpolate({inputRange:[0,1],outputRange:[-b,g+b]})},{skewX:`${u.skew}deg`}]}}):null})}function Vs(e,t,i){let r=t.radius==="circle",n=t.width??(r?t.height:void 0),l=Ys(e,t,n);return{height:t.height,...n===void 0?{alignSelf:"stretch"}:{width:n},borderRadius:l,backgroundColor:i}}function Ys(e,t,i){let r=t.radius??"pill";return r==="none"?0:r==="circle"?(typeof i=="number"?Math.min(i,t.height):t.height)/2:e.radius[r]}function SummaryList({rows:e,total:t=false,trailingRows:i=[],loading:r=false,loadingLabel:n,variant:l="standard",note:o,grouped:a=true,lineBreak:s,testID:c,style:d}){let u=Io(),p=Wo(u);if(r)/* @__PURE__ */
24
+ return Object.freeze({reason:userFacingError("accessDenied"),level:"user_entitlement",recoverable:false})}function Zi(e){let t={name:e.name,enabled:e.enabled,isPending:e.isPending,limits:/* @__PURE__ */Object.freeze({...e.limits})};return e.disabled!==void 0&&(t.disabled=e.disabled),/* @__PURE__ */Object.freeze(t)}function useCapability(e){let{runtime:t}=A(),r=t.entitlements,n=o(r.subscribe,r.getSnapshot,r.getSnapshot);return i(()=>decideCapability(e,n.decisions,{isPending:n.isPending}),[e,n])}var er=/* @__PURE__ */Object.freeze({loading:"Loading",retry:"Try again",signedOut:"Sign in required",addToCart:"Add to cart",added:"Added",remove:"Remove",checkout:"Checkout",subtotal:"Subtotal",sample:"Sample",cartEmpty:"Your cart is empty.",choosePet:"Choose a pet",emptyTitle:"",emptyBody:"",emptyAsk:""}),tr=/* @__PURE__ */Object.freeze({emptyTitle:true,emptyBody:true,emptyAsk:true}),ir=/* @__PURE__ */Object.freeze({dna:"",records:"Records",inside:"Inside",profile:""}),rr=/* @__PURE__ */Object.freeze({planTitle:e=>`${e}'s care plan`,cartLabel:e=>`${e} cart`});/* @__PURE__ */Object.freeze([...Object.keys(er).filter(e=>tr[e]===true&&er[e]==="").map(e=>`HEALTH_PLAN_COPY.${e}`),...["profile"].filter(e=>ir[e]==="").map(e=>`HEALTH_PLAN_REASON_LABELS.${e}`)]);function healthPlanPetWords(e,t){let i=e?.trim()??"",r=i===""?"your pet":i,n=i===""?"Your pet":i;return{name:r,Name:n,poss:"her",Poss:"Her",obj:"her"}}var nr=e=>e===null?"":`${e.productName} renews every ${e.intervalDays} days at ${e.box??""} until you cancel; skip or cancel anytime in the app.`;function healthPlanFocusCopyFor(e){let t=healthPlanPetWords(e.name),i=e=>e.petName?.trim()||t.name,NameOf=e=>e.petName?.trim()||t.Name,r=/* @__PURE__ */Object.freeze({jumpKicker:(e,i)=>i?`In ${t.poss} plan, every ${e.intervalDays} days`:e.offer?`${e.discountPercent}% off ${t.poss} first box`:e.intervalDays>0?`Ships every ${e.intervalDays} days`:r.onceLine(e),optionsLabel:"How to buy",subscribe:"Subscribe",bestValue:"Best value",subscribeLine:e=>e.offer?`First box, then ${e.box??""}`:`${e.box??""} every ${e.intervalDays} days`,priceLine:e=>e.offer?`${e.discountPercent}% off the first box. Ships every ${e.intervalDays} days.`:e.intervalDays>0?`Ships every ${e.intervalDays} days.`:r.onceOffer(e),once:"One box",onceLine:e=>e.onceDiscountPercent>0?`${e.onceDiscountPercent}% off, ships once`:"Ships once",buyOnce:e=>`Buy one box, ${e.once??e.box??""}`,subscribed:"Subscribed",subscribedLine:(e,t)=>t===null?`Every ${e.intervalDays} days`:`Every ${e.intervalDays} days · next box ${t}`,manage:"Manage",checkoutKicker:"Checkout",checkoutTitle:e=>`Checkout: ${e.productName}`,checkoutOffer:e=>`${e.discountPercent}% off your first box.`,shipsEvery:"Ships every",days:e=>`${e} days`,buyOnceOption:"Buy once",checkoutGo:(e,t,i)=>`${t?"Subscribe":"Buy now"} · ${i} today`,renews:e=>`Renews every ${e.intervalDays} days at ${e.box??""} until you cancel; skip or cancel anytime in the app.`,onceFine:"One box, ships tomorrow.",onceOffer:e=>e.onceDiscountPercent>0?`${e.onceDiscountPercent}% off, ships once.`:"Ships once.",checkoutNote:"",close:"Close",startedTitle:e=>`${NameOf(e)}'s plan has started.`,orderedTitle:()=>"Order placed.",startedWhat:e=>`${e.productName} ships tomorrow.`,startedNote:"",startedSteps:"What happens next",tomorrow:"Tomorrow",firstBoxShips:`${t.Poss} first box ships.`,trackingComesByText:"Tracking comes by text.",checkin:e=>e===null?"A 2-week check-in by text.":`A 2-week check-in by text: ${e}`,refill:`A text 3 days before ${t.poss} next box. Reply SKIP to skip it.`,nextBoxShips:e=>`${t.Poss} next box ships, ${e.box??""}.`,startedDone:`Back to ${t.poss} plan`,manageKicker:"Your subscription",manageTitle:e=>`Manage ${e.productName}`,skip:"Skip the next box",cancel:"Cancel subscription",skipped:(e,i)=>i===null?"Skipped.":`Skipped. ${t.Poss} next box ships ${i}.`,cancelled:e=>`${e.productName} is cancelled. Restart it from ${t.poss} plan anytime.`,orders:"Orders",startedHeader:"Subscribed",placedHeader:"Order placed",cartCheckoutTitle:"Checkout",orderNote:"",cartLabel:e=>e>0?`Cart, ${e} item${e>1?"s":""}`:"Cart, empty",addToCart:e=>`Add to cart · ${e}`,viewCart:"View cart",addedToCart:(e,t)=>`${e.productName} is in your cart${t?", as a subscription":""}.`,removedFromCart:e=>`${e} is out of your cart.`,cartTitle:"Cart",cartEmptyTitle:"Your cart is empty",cartEmptyBody:e=>`${NameOf(e)}'s plan pick lands here when you add it.`,seeOrders:`See ${t.poss} orders`,quantityLabel:e=>`How many: ${e}`,fewer:"One fewer",more:"One more",remove:"Remove",cartSubLine:e=>e.offer?`First box ${e.discountPercent}% off, then ${e.box??""} every ${e.intervalDays} days`:`Every ${e.intervalDays} days`,cartOnceLine:(e,i)=>i?`An extra box. ${t.Poss} plan keeps shipping.`:e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",cartModeLabel:e=>`How to buy ${e}`,cartModeSubscribe:e=>e.offer?`Subscribe, ${e.discountPercent}% off the first box`:"Subscribe",cartModeOnce:e=>e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",subtotal:"Subtotal",shipping:"Shipping",shippingValue:"",shippingTag:"",total:"Total",dueToday:"Due today",thenRenews:e=>`Then ${e.productName}`,renewsEvery:e=>`${e.box??""} every ${e.intervalDays} days`,checkoutCart:e=>`Checkout · ${e}`,cartOneAtATime:"",cartSubscriptionApart:"",cartItemSubscription:e=>`Subscription, every ${e.intervalDays} days`,cartItemQuantity:e=>`Qty ${e}`,placeOrder:(e,t)=>`${t?"Place order and subscribe":"Place order"} · ${e}`,cartFine:e=>`${e===null?"":`${nr(e)} `}Ships tomorrow.`,placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",herSubscription:`${t.Poss} subscription`,nextBox:e=>`Next box ${e}`,everyDays:e=>`Every ${e} days`,ordersHeading:e=>e?"Orders":`${t.Poss} orders`,ordersFine:"",ordersEmptyTitle:"No orders yet",ordersEmptyBody:e=>`The boxes from ${i(e)}'s plan show up here.`,moreOrders:"",orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],subscriptionBox:"Subscription box",orderTitle:e=>e===null?"Order":`Order ${e}`,arrivesBy:e=>`Arrives by ${e}`,deliveredOn:e=>`Delivered ${e}`,expected:e=>`Expected ${e}`,tracking:"Tracking",trackingByText:"The tracking number comes by text when it ships.",trackOn:e=>`Track on ${e}`,trackLink:"",inThisOrder:"In this order",orderItemLine:(e,t)=>`Qty ${e}${t?" · subscription box":""}`,paidWith:"Paid with",buyAgain:"Buy again",orderHelp:"Get help with this order",addWeightTitle:`Add ${t.poss} weight to size ${t.poss} dose`,addWeightBody:`From a home scale or ${t.poss} last vet visit.`,connectRecordsTitle:`Connect ${t.poss} vet records`,connectRecordsBody:`${t.Poss} weight, visits and labs make ${t.poss} plan sharper.`,weightKicker:`${t.Poss} weight`,weightTitle:e=>`Add ${i(e)}'s weight`,weightBody:`From a home scale or ${t.poss} last vet visit. ${t.Poss} plan uses it to size ${t.poss} dose.`,weightField:`${t.Poss} weight`,weightUnit:"lb",weightUnitKg:"kg",weightErrorKg:"Enter your pet’s weight",weightError:`Enter ${t.poss} weight in pounds, like 14.1.`,weightSave:`Save ${t.poss} weight`,weightSaved:e=>`Saved: ${e} lb. ${t.Poss} dose is sized for ${t.obj}.`,weightSavedKg:e=>`Saved: ${e} kg. ${t.Poss} dose is sized for ${t.obj}.`,checkoutFailed:"That didn't go through. Please try again.",builtWith:e=>`Built with ${e}`,fromVet:e=>`From ${e}`,waitVetTips:e=>`Free tips from ${e}, built around that risk`,signalsFit:e=>`${e} of ${e} signals fit ${t.Name}`,signalsValue:e=>`${e}/${e}`,noPick:`No supplement for this one. ${t.Poss} vet comes first.`,callYourVet:"Call your vet today",callAVet:"Call a vet today",saveForCheckup:`Save for ${t.poss} next checkup`,savedForCheckup:`Saved for ${t.poss} next checkup`,blanksLabel:`${t.Poss} three blanks`,blanksAsked:e=>`Asked ${e}`,blanksAskedNoClinic:"",blanksWaitPill:"2 to 5 days",blanksFilledKicker:`From ${t.poss} vet records`,blanksFilled:(e,t)=>`${e} of ${t} filled`,blanksWeight:`Keep ${t.obj} at `,blanksWeightSource:`From ${t.poss} vet visits`,blanksDose:(e,t)=>`${e} of ${t}`,blanksDoseSource:`Sized to ${t.poss} weight`,blanksShots:`${t.Poss} next shots are due `,blanksShotsSource:`From ${t.poss} clinic`,blankEmpty:"blank",recordsLanded:`${t.Poss} records are in. ${t.Poss} plan now uses ${t.poss} weight and ${t.poss} visits.`,todayLabel:`${t.Poss} Health Plan`,poweredBy:"powered by",poweredByName:"Everfur",seeMore:"See more",seeLess:"See less",reportActions:"Actions to take",openReport:`Open it in ${t.poss} report`,askReport:"Ask about it",fullOpen:`See ${t.poss} full plan`,fullOpenLine:`${t.Poss} vet, reviews and ${t.poss} checkup`,fullClose:`Show ${t.poss} brief plan`,fullCloseLine:`${t.Poss} risk, tips, pick and signs`,hopeNoted:e=>`Noted. When ${t.poss} results land, we'll start with ${e}.`,productLink:e=>`${e}, see the product`,productPhotos:e=>`${e} photos, swipe for more`,shopAll:"Shop all",madeFor:`Made for ${t.name}`,ratingLine:e=>`· ${e} reviews`,productOffer:e=>`${e.discountPercent}% off ${t.poss} first box`,productEvery:e=>`Every ${e.intervalDays} days`,productOnce:e=>e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",productExtraBox:"An extra box",productOnPlan:e=>`On ${t.poss} plan, every ${e.intervalDays} days. This adds one extra box.`,quantity:"Quantity",description:"Description",readMore:"Read more",readLess:"Read less",whatsInside:"What's inside",howMuch:"How much",reviewsTitle:"Reviews",reviewCount:e=>`${e} reviews`,reviewsSwipe:"Reviews, swipe for more",readAllReviews:e=>`Read all ${e} reviews`,starsLabel:e=>`${e} out of 5 stars`,buyNow:"Buy now"});return r}var lr=healthPlanFocusCopyFor({});function formatHealthPlanDay(e,t){if(e===null||!/^\d{4}-\d{2}-\d{2}$/.test(e))return null;let i=/* @__PURE__ */new Date(`${e}T00:00:00Z`);if(Number.isNaN(i.getTime()))return null;try{return new Intl.DateTimeFormat(t??"en-US",{month:"short",day:"numeric",timeZone:"UTC"}).format(i)}catch{return e}}var or=e=>/* @__PURE__ */Object.freeze(e.map(e=>/* @__PURE__ */Object.freeze(e)));function ar(e){let t={};for(let[i,r]of Object.entries(e))r!==void 0&&(t[i]=r);return t}function sr(e){let t=e?.focus;if(!t)return or([]);let i=e?.byline,r=t.risk?.kind,n=r==="risk"||r==="watch"||r==="clear"?r:void 0;return or([ar({kicker:t.kicker,sources:t.sources?.map(e=>({label:e.label,kind:e.kind==="dna"?"dna":"records"})),title:t.title,signals:t.risk?[{key:"risk",lead:t.risk.lead,text:t.risk.body??"",tone:n,dot:n===void 0?"space":true}]:[],score:t.odds?{label:t.odds.label,tag:t.odds.tag,was:t.odds.from,now:t.odds.to,since:t.odds.toLabel}:void 0,quote:t.quote&&i?{text:t.quote.text,by:i.shortName??void 0,image:i.imageUrl??null,tag:t.quote.tag}:void 0})])}function cr(e){let t=e?.routine?.steps??[],i=e?.byline?.shortName;return or(t.map((e,t)=>ar({key:e.title,number:String(t+1),title:e.title,text:e.body||void 0,foot:e.fromVet?i?lr.fromVet(i):void 0:e.source??void 0,tone:e.tone??"y"})))}function dr(e,t){return formatHealthPlanPrice(e.price,e.currency,t)??void 0}function ur(e,t){return pr(e?.items??[],t)}function pr(e,t){return or(e.map(e=>ar({key:e.productId,name:e.title,image:e.imageUrl,imageAlt:e.title,kicker:e.category??void 0,price:dr(e,t),badge:e.sample?er.sample:void 0})))}function hr(e,t){return or(healthPlanCart(e??null).items.map(e=>ar({key:e.productId,name:e.title,image:e.imageUrl,imageAlt:e.title,meta:e.category??void 0,price:dr(e,t)})))}function gr(e,t){let i=healthPlanCart(e??null),r=formatHealthPlanPrice(i.subtotal,i.currency,t);return i.count===0||r===null?or([]):or([{rows:[{key:"subtotal",term:er.subtotal,value:r}],count:i.count}])}function fr(e,t){return or((e??[]).map(e=>ar({key:e.orderId,number:e.orderId,title:e.title??"",meta:formatHealthPlanDay(e.shipsOn??e.createdAt??null,t)??void 0,total:formatHealthPlanPrice(e.total??e.price*(e.quantity??1),e.currency,t)??void 0})))}var mr=["plan.needs","plan.tips"],br=["plan.items","cart.lines","cart.summary"];function yr(e){let{userRef:userRef,activePet:t,scopeEpoch:r}=A(),a=useCapability("healthPlan").enabled,petRef=e.petRef===void 0?t??null:e.petRef,{sources:s,locale:c}=e,d=a&&userRef!==null&&petRef!==null,u=d&&mr.some(e=>s.has(e)),p=d&&br.some(e=>s.has(e)),h=d&&s.has("orders.recent"),g=useHealthPlanPage({petRef:petRef,enabled:u}),f=useEverfurHealthPlanRepository(),m=Lt(()=>new _e(f),[f,userRef,r]);l(()=>{m.load(p?petRef:null)},[m,p,petRef]);let b=o(m.subscribe,m.getSnapshot,m.getSnapshot),y=useHealthPlanSubscriptionRepository(),[w,v]=n(null);return l(()=>{if(!h||petRef===null)return;let e=true;return Oe(y,petRef).then(t=>{e&&(t.ok?v({petRef:petRef,list:t.value.orders}):Se(t.error)&&v({petRef:petRef,list:[]}))}),()=>{e=false}},[h,petRef,y]),i(()=>{let e={};if(u&&g.phase==="ready"){let t=g.missing?null:g.page?.page??null;e["plan.needs"]=sr(t),e["plan.tips"]=cr(t)}if(p&&b.petRef===petRef){let t=b.phase==="ready"?b.plan:b.phase==="failed"&&Se(b.error)?null:void 0;t!==void 0&&(e["plan.items"]=ur(t,c),e["cart.lines"]=hr(t,c),e["cart.summary"]=gr(t,c))}return h&&w!==null&&w.petRef===petRef&&(e["orders.recent"]=fr(w.list,c)),e},[u,p,h,g.phase,g.missing,g.page,b,w,petRef,c])}var wr="everfur.slot/1";var vr=/* @__PURE__ */Symbol("bad");function kr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function xr(e,t,i){return typeof e=="string"&&e.length>=t&&e.length<=i?e:vr}function Tr(e,t){return e==null?void 0:xr(e,0,t)}function Ir(e){return e===void 0?{}:kr(e)?e:vr}function Sr(e){let t=Ir(e);if(t===vr)return vr;for(let e of Object.values(t))if(typeof e!="string")return vr;return t}function zr(e,t,i){return typeof e=="number"&&Number.isInteger(e)&&e>=t&&e<=i?e:vr}function Dr(e){if(e==null)return;if(e==="hide")return"hide";if(!kr(e))return vr;let t=xr(e.type,1,64),i=Tr(e.variant,64),r=Ir(e.settings),n=Sr(e.bind),l=Sr(e.actions);return t===vr||i===vr||r===vr||n===vr||l===vr?vr:/* @__PURE__ */Object.freeze({type:t,...i?{variant:i}:{},settings:/* @__PURE__ */Object.freeze({...r}),bind:/* @__PURE__ */Object.freeze({...n}),actions:/* @__PURE__ */Object.freeze({...l})})}function Cr(e){if(e==null)return;if(!kr(e))return vr;let t=xr(e.source,0,80);return t===vr||e.op!=="present"&&e.op!=="absent"?vr:/* @__PURE__ */Object.freeze({source:t,op:e.op})}function Hr(e){if(!kr(e))return vr;let t=xr(e.id,1,64),i=xr(e.type,1,64),r=Tr(e.variant,64),n=Ir(e.settings),l=Sr(e.bind),o=Tr(e.repeat,80),a=Cr(e.visibleIf),s=Sr(e.actions),c=Dr(e.fallback);return t===vr||i===vr||r===vr||n===vr||l===vr||o===vr||a===vr||s===vr||c===vr?vr:/* @__PURE__ */Object.freeze({id:t,type:i,...r?{variant:r}:{},settings:/* @__PURE__ */Object.freeze({...n}),bind:/* @__PURE__ */Object.freeze({...l}),...o?{repeat:o}:{},...a?{visibleIf:a}:{},actions:/* @__PURE__ */Object.freeze({...s}),...c?{fallback:c}:{}})}var Fr=/^everfur\.slot\/(\d{1,4})$/,_r=/<\s*[A-Za-z/!?]|&[A-Za-z#][A-Za-z0-9]*;/,Or=/[\u0000-\u0008\u000b-\u001f\u007f\u2028\u2029]/,Er=/^[a-z][a-zA-Z0-9]*(\.[a-zA-Z0-9]+){0,4}$/,Pr=/^#[0-9a-fA-F]{6}$/,Lr=1e4;function Br(e){let t=0;for(let i=0;i<e.length;i++){let r=e.charCodeAt(i);r<128?t+=1:r<2048?t+=2:r>=55296&&r<=56319&&i+1<e.length?(t+=4,i++):t+=3}return t}function Ar(e){return e.trim()!==""&&!_r.test(e)&&!Or.test(e)}function Rr(e){try{return Br(JSON.stringify(e)??"")}catch{return Number.POSITIVE_INFINITY}}function jr(e){let t=e!==null&&typeof e=="object"?e.schema:void 0;if(typeof t!="string")return"unparseable";let i=Fr.exec(t);return i===null?"unparseable":Number(i[1])>1?"newer_schema":null}function $r(e){let t={};for(let[i,r]of Object.entries(e))Er.test(i)&&(typeof r=="string"&&Pr.test(r)||typeof r=="number"&&Number.isFinite(r)&&Math.abs(r)<=Lr)&&(t[i]=r);/* @__PURE__ */
25
+ return Object.freeze(t)}function Wr(e){let t={};for(let[i,r]of Object.entries(e)){let e=typeof r=="string"?r:r!==null&&typeof r=="object"?r.text:void 0;typeof e=="string"&&e.length<=500&&Ar(e)&&(t[i]=e)}/* @__PURE__ */
26
+ return Object.freeze(t)}function Mr(e,t){if(Rr(e)>65536)return{ok:false,reason:"too_large"};let i=jr(e);if(i!==null)return{ok:false,reason:i};let r=e,n=xr(r.slot,3,64),l=r.docVersion===void 0||r.docVersion===null?null:zr(r.docVersion,1,Number.MAX_SAFE_INTEGER),o=r.minBlocks===void 0?1:zr(r.minBlocks,0,50),a=r.theme===void 0||r.theme===null?{}:Ir(r.theme),s=a===vr?vr:Ir(a.tokens),c=Ir(r.copy),d=Array.isArray(r.parts)&&r.parts.length>=1&&r.parts.length<=50?r.parts.map(Hr):vr;return n===vr||l===vr||o===vr||s===vr||c===vr?{ok:false,reason:"unparseable"}:d===vr||d.some(e=>e===vr)?{ok:false,reason:"unparseable"}:n!==t?{ok:false,reason:"wrong_slot"}:{ok:true,doc:/* @__PURE__ */Object.freeze({schema:wr,slot:n,docVersion:l,minBlocks:o,tokens:$r(s),parts:/* @__PURE__ */Object.freeze(d),copy:Wr(c)})}}function Nr(e){if(e===null)return{ok:false,reason:"too_large"};if(typeof e!="string")return{ok:true,raw:e};if(e.length>65536||Br(e)>65536)return{ok:false,reason:"too_large"};try{return{ok:!0,raw:JSON.parse(e)}}catch{return{ok:false,reason:"unparseable"}}}function Gr(e){/* @__PURE__ */
27
+ return Object.freeze({settings:{},bind:{},actions:{},...e})}var qr=/* @__PURE__ */Object.freeze({focus:Gr({id:"focus",type:"PlanNeedCard",variant:"plan",bind:{title:"data:plan.needs"}}),needs:Gr({id:"needs",type:"PlanNeedCard",variant:"standard",repeat:"data:plan.needs"}),tips:Gr({id:"tips",type:"TipCard",variant:"plan",repeat:"data:plan.tips"}),shelf:Gr({id:"shelf",type:"ProductTile",variant:"standard",repeat:"data:plan.items"}),cartLines:Gr({id:"cart-lines",type:"CartLine",variant:"plan",repeat:"data:cart.lines"}),cartSummary:Gr({id:"cart-summary",type:"PriceSummary",bind:{rows:"data:cart.summary"},visibleIf:{source:"data:cart.summary",op:"present"}}),orders:Gr({id:"orders",type:"OrderRow",variant:"quiet",repeat:"data:orders.recent"})});function Ur(e,t){/* @__PURE__ */
28
+ return Object.freeze({schema:wr,slot:e,docVersion:null,minBlocks:1,tokens:{},parts:/* @__PURE__ */Object.freeze([...t]),copy:{}})}var Vr=qr,Yr=/* @__PURE__ */Object.freeze({"health_plan.focus":Ur("health_plan.focus",[Vr.focus,Vr.tips]),"today.health":Ur("today.health",[Vr.focus,Vr.tips]),"shop.shelf":Ur("shop.shelf",[Vr.shelf]),"shop.cart":Ur("shop.cart",[Vr.cartLines,Vr.cartSummary]),"shop.orders":Ur("shop.orders",[Vr.orders])});function Xr(e){return Object.prototype.hasOwnProperty.call(Yr,e)?Yr[e]??null:null}function Kr(e){return Ur(`part.${e.toLowerCase()}`,[qr[e]])}function Qr(e){if(typeof e=="number")return en(e);if(typeof e!="string")return null;let t=e.trim();if(t.length===0)return null;if(t.startsWith("#"))return Jr(t.slice(1));if(t.toLowerCase().startsWith("0x"))return Jr(t.slice(2));if(t.toLowerCase().startsWith("rgb"))return Zr(t);if(/^[0-9a-fA-F]+$/.test(t)){let e=Jr(t);if(e!==null)return e}return/^\d+$/.test(t)?en(Number.parseInt(t,10)):null}function Jr(e){let t=e.trim();if(!/^[0-9a-fA-F]+$/.test(t))return null;if(t.length===3)return{r:rn(t[0]),g:rn(t[1]),b:rn(t[2]),a:1};if(t.length===6)return{r:tn(t,0),g:tn(t,2),b:tn(t,4),a:1};if(t.length===8){let e=tn(t,0);return{r:tn(t,2),g:tn(t,4),b:tn(t,6),a:e/255}}return null}function Zr(e){let t=e.indexOf("("),i=e.indexOf(")");if(t<0||i<0||i<t)return null;let r=e.slice(t+1,i).split(",").map(e=>e.trim());if(r.length<3)return null;let n=nn(Number(r[0])),l=nn(Number(r[1])),o=nn(Number(r[2]));if(n===null||l===null||o===null)return null;let a=1;if(r.length>=4){let e=Number(r[3]);if(!Number.isFinite(e))return null;a=Math.min(1,Math.max(0,e))}return{r:n,g:l,b:o,a:a}}function en(e){if(!Number.isFinite(e))return null;let t=Math.trunc(e)>>>0,i=t>>>24&255;return{r:t>>>16&255,g:t>>>8&255,b:t&255,a:i===0?1:i/255}}function tn(e,t){return Number.parseInt(e.slice(t,t+2),16)}function rn(e){return Number.parseInt(`${e??"0"}${e??"0"}`,16)}function nn(e){return Number.isFinite(e)?Math.min(255,Math.max(0,Math.round(e))):null}function ln(e,t,i){return`#${on(e)}${on(t)}${on(i)}`.toUpperCase()}function on(e){return e.toString(16).padStart(2,"0")}var an="#111111",sn="#FFFFFF",cn="#000000";function readableOn(e){let t=Qr(e);if(t===null)return sn;let i=pn(t),r=pn({r:17,g:17,b:17}),n=pn({r:255,g:255,b:255});return gn(i,n)>=gn(i,r)?sn:an}function dn(e,t){let i=readableOn(e);return contrastRatio(i,e)>=t?i:contrastRatio(sn,e)>=contrastRatio(cn,e)?sn:cn}function un(e){let t=t=>e.reduce((e,i)=>Math.min(e,contrastRatio(t,i)),Number.POSITIVE_INFINITY);return t(sn)>=t(cn)?sn:cn}function pn(e){let t=hn(e.r/255),i=hn(e.g/255),r=hn(e.b/255);return.2126*t+.7152*i+.0722*r}function hn(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gn(e,t){let i=Math.max(e,t),r=Math.min(e,t);return(i+.05)/(r+.05)}function contrastRatio(e,t){let i=Qr(e),r=Qr(t);if(i===null||r===null)return 1;let n=r.a>=1?r:{...r},l=i.a>=1?i:fn(i,n);return gn(pn(l),pn(n))}function fn(e,t){let i=e.a,r=(e,t)=>Math.round(e*i+t*(1-i));return{r:r(e.r,t.r),g:r(e.g,t.g),b:r(e.b,t.b),a:1}}function mn(e,t){let i=Qr(e),r=Qr(t);if(i===null||r===null)return null;let n=i.a>=1?i:fn(i,{...r});return ln(n.r,n.g,n.b)}var bn=.05;function yn(e,t,i,r){let n=t[0];if(n===void 0)return i;let l=e=>t.every(t=>contrastRatio(e,t)>=r);if(Qr(e)===null)return i;if(l(e))return e;let o=mn(e,n),a=o===null?null:Qr(o),s=Qr(i);if(a===null||s===null)return i;for(let e=1;e<1/bn;e+=1){let t=e*bn,i=(e,i)=>Math.round(e+(i-e)*t),r=ln(i(a.r,s.r),i(a.g,s.g),i(a.b,s.b));if(l(r))return r}return i}var wn=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var vn=Object.freeze;function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){vn(e);for(let t of Object.keys(e))deepFreeze(e[t])}return e}var kn=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var xn={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},Tn={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},In={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},Sn={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},zn={regular:"400",medium:"500",bold:"700"},Dn={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},Cn=0,Hn="System",Fn="monospace",_n=["content","heading","control","compact","badge"];function On(e){let t={};for(let i of _n)t[i]=e;return t}var En=[];function Pn(){return{family:Hn,mono:Fn,fontUrl:null,families:{regular:Hn,medium:Hn,bold:Hn,mono:Fn,monoMedium:Fn,monoBold:Fn},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:In,tierSizes:On(In),lineHeight:Sn,weight:zn,letterSpacing:Dn,scale:1,maxScale:Cn,scaleCaps:kn,headingFamily:null,headingWeight:null,fontSources:En,roles:wn,typeScale:1}}var Ln={},Bn=/* @__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(e){return`cubic-bezier(${e.join(", ")})`}var An={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(Bn.standard),emphasized:cssCubicBezier(Bn.emphasized),exit:cssCubicBezier(Bn.exit)},reducedMotion:false},Rn={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)"},jn=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:Rn,space:xn,radius:Tn,type:Pn(),motion:An,slots:Ln}),$n={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)"},Wn=deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:$n,space:xn,radius:Tn,type:Pn(),motion:An,slots:Ln});function Mn(e){let t=[];for(let i of e){let e=i.codePointAt(0);e<128?t.push(e):e<2048?t.push(192|e>>6,128|e&63):e<65536?t.push(224|e>>12,128|e>>6&63,128|e&63):t.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|e&63)}return t}function Nn(e){let t=3421674724,i=2216829733;for(let r of Mn(e)){i=(i^r)>>>0;let e=i*435,n=Math.floor(e/4294967296),l=e>>>0;t=t*435+n+i*256>>>0,i=l}return t.toString(16).padStart(8,"0")+i.toString(16).padStart(8,"0")}var Gn=/* @__PURE__ */new WeakMap;function qn(e){return Gn.get(e)}var Un="sha256-0IDdNTQTtW2+pJ9GBCa/aWJrH/lf2X2jHhTQaCt6g5E=";var Vn={CartBar:{since:"0.4.0",variants:["standard","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["thumbs","total","sub","actionHiddenWord"]},variant:{type:"enum",values:["standard","web"],prop:"variant"}},props:["actionAccessibilityLabel","actionHiddenWord","actionLabel","busy","count","countLabel","disabled","fallback","loading","loadingLabel","sub","testID","thumbs","total","variant","visible"],required:["actionLabel","count"],fallback:"hide"},CartLine:{since:"0.2.0",variants:["standard","square","web","plan","drawer"],platforms:["native","web"],settings:{align:{type:"enum",values:["top","center"],prop:"align"},lines:{type:"lines",values:["badge","meta","wasPrice","smalls","note","metas","plan"]},thumbSize:{type:"enum",values:["sm","md","lg"],prop:"thumbSize"},variant:{type:"enum",values:["standard","square","web","plan","drawer"],prop:"variant"}},props:["actions","align","badge","error","fallback","image","imageAlt","loading","loadingLabel","meta","metas","name","namePress","note","plan","price","quantity","removeLabel","smalls","testID","thumbSize","variant","wasPrice"],required:["name"],fallback:null},CheckinSheet:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["kicker","note","doneText"]}},props:["action","closeLabel","doneText","fallback","flowLabel","image","imageKind","kicker","loading","loadingLabel","note","open","steps","testID","title"],required:["steps"],fallback:"hide"},OrderRow:{since:"0.2.0",variants:["standard","quiet","web"],platforms:["native","web"],settings:{actionGrid:{type:"boolean",prop:"actionGrid"},lines:{type:"lines",values:["meta","total","status","shots","notes"]},variant:{type:"enum",values:["standard","quiet","web"],prop:"variant"}},props:["accessibilityLabel","actionGrid","actions","error","loading","loadingLabel","meta","metaLink","notes","number","shots","status","testID","title","total","variant"],required:["title"],fallback:null},PlanNeedCard:{since:"0.2.0",variants:["standard","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["source","sources","title","score","quote","jump"]},variant:{type:"enum",values:["standard","plan"],prop:"variant"}},props:["jump","kicker","loading","loadingLabel","more","quote","score","signals","source","sources","testID","title","variant"],required:["kicker","signals"],fallback:null},PriceSummary:{since:"0.2.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["total","note"]},size:{type:"enum",values:["checkout","drawer"],prop:"size",platforms:["web"],default:"checkout"},variant:{type:"enum",values:["standard","web"],prop:"variant",platforms:["web"],default:"standard"}},props:["loading","loadingLabel","note","rows","testID","total"],required:["rows"],fallback:null},ProductTile:{since:"0.2.0",variants:["standard","blend","web"],platforms:["native","web"],settings:{addLift:{type:"boolean",prop:"addLift"},ground:{type:"enum",values:["shelf","white"],prop:"ground"},imageInset:{type:"enum",values:["standard","even"],prop:"imageInset"},layout:{type:"enum",values:["tile","row","card"],prop:"layout"},lines:{type:"lines",values:["kicker","meta","price","wasPrice","per","badge","tag"]},metaTone:{type:"enum",values:["auto","autoDark"],prop:"metaTone"},variant:{type:"enum",values:["standard","blend","web"],prop:"variant"}},props:["action","addLift","badge","fallback","ground","image","imageAlt","imageInset","kicker","layout","loading","loadingLabel","meta","metaTone","name","per","price","stepper","tag","testID","variant","wasPrice"],required:["name"],fallback:null},ScoreLights:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","since","source","next"]}},props:["heading","loading","loadingLabel","next","pill","since","source","state","testID","values","vizLabel"],required:["pill","state","values","vizLabel"],fallback:"hide"},SummaryList:{since:"0.1.0",variants:["standard","flush","card","inset"],platforms:["native","web"],settings:{lines:{type:"lines",values:["trailingRows","note"]},variant:{type:"enum",values:["standard","flush","card","inset"],prop:"variant"}},props:["loading","loadingLabel","note","rows","testID","total","trailingRows","variant"],required:["rows"],fallback:null},TipCard:{since:"0.2.0",variants:["standard","photo","web","plan"],platforms:["native","web"],settings:{footArrow:{type:"boolean",prop:"footArrow"},lines:{type:"lines",values:["text","foot"]},tone:{type:"enum",values:["y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","photo","web","plan"],prop:"variant"}},props:["accessibilityLabel","foot","footArrow","footPress","icon","image","loading","loadingLabel","number","pressTarget","testID","text","title","tone","variant"],required:["number","title"],fallback:null},WeatherAlert:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["accessibilityLabel","loading","loadingLabel","testID","text","title"],required:["title"],fallback:"TipCard",fallbackProps:{number:{const:"!"},text:{from:"text"},title:{from:"title"},tone:{const:"r"}}},WeatherCard:{since:"0.4.0",variants:["walk","summary","tile","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","condition","details","verdict","advice","comfort","label","note","action","units","tags"]},sky:{type:"enum",values:["sun","blue"],prop:"sky"},variant:{type:"enum",values:["walk","summary","tile","web"],prop:"variant"}},props:["action","advice","comfort","condition","details","glyph","heading","label","level","loading","loadingLabel","note","sky","tags","tagsLabel","temperature","testID","units","variant","verdict"],required:["temperature"],fallback:"hide"},WeatherDetails:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["items","label","loading","loadingLabel","testID"],required:["items"],fallback:"hide"},WeatherForecast:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["days","label","loading","loadingLabel","testID","variant"],required:["days"],fallback:"hide"},WeatherHours:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{lines:{type:"lines",values:["windows","legend"]},variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["hours","label","legend","loading","loadingLabel","testID","variant","windows"],required:["hours"],fallback:"hide"},WeatherLevels:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["label","loading","loadingLabel","rows","testID","variant"],required:["rows"],fallback:"hide"},WeatherReading:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["word","choices"]},variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["choices","loading","loadingLabel","testID","tone","value","variant","word"],required:["value"],fallback:"hide"},WhySheet:{since:"0.4.0",variants:["standard","web","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["kind","sub","sections","link","score"]},tone:{type:"enum",values:["calm","y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","web","plan"],prop:"variant"}},props:["action","closeLabel","fallback","heading","image","imageKind","kind","link","loading","loadingLabel","rows","score","sections","sub","testID","title","tone","variant"],required:[],fallback:"hide"}};var Yn="everfur.slots.v2",Xn="everfur.slots.installId.v2";var Kn=6e4,Qn=3e5,Jn=15e3,Zn=10080*60*1e3,el=/^(W\/)?"[^"]{1,200}"$/,tl=/^[A-Za-z0-9_-]{8,128}$/,il=/(?:^|,)\s*max-age\s*=\s*"?(\d{1,10})"?\s*(?:,|$)/i,rl=/(?:^|,)\s*(?:no-store|no-cache)\s*(?:,|$)/i,nl=/* @__PURE__ */Object.freeze({doc:"default",tenant:"default",epoch:0});function ll(){let e="";for(let t=0;t<4;t++)e+=Math.floor(Math.random()*4294967296).toString(36).padStart(7,"0");return e}function ol(e){if(e===null)return Kn;if(rl.test(e))return 0;let t=il.exec(e);return t===null?Kn:Math.min(Number(t[1])*1e3,Qn)}var al=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function sl(e){let t=e.now??Date.now,i=()=>{try{return e.scope?.()??nl}catch{return nl}},r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,l=/* @__PURE__ */new Map,o=null,a=null,s=false,c=Promise.resolve(),d=(t,i)=>{try{e.telemetry?.track(t,i)}catch{}},u=e=>{a!==e.epoch&&(a!==null&&(r.clear(),n.clear(),o=null,s=true),a=e.epoch)},p=e=>{let t=i();return t.epoch!==e.epoch||t.doc!==e.doc},h=async(t,i,r)=>{if(!p(t))return false;try{await e.kv.getItem(i)===r&&await e.kv.removeItem(i)}catch{}return true},g=t=>{let i=Nn(t.tenant);if(o?.tenant===i)return o.id;let r=s;s=false;let n=(async()=>{if(!r)try{let t=await e.kv.getItem(Xn),r=t===null?null:JSON.parse(t);if(r?.tenant===i&&typeof r.id=="string"&&tl.test(r.id))return r.id}catch{}try{let r=(e.newId??ll)();if(!tl.test(r))return null;let n=JSON.stringify({tenant:i,id:r});return await e.kv.setItem(Xn,n),await h(t,Xn,n)?null:r}catch{return null}})();return o={tenant:i,id:n},n},f=async t=>{try{let i=await e.kv.getItem(Yn),r=i===null?null:JSON.parse(i);return r?.scope!==t||r.docs===null||typeof r.docs!="object"||Array.isArray(r.docs)?{docs:{}}:{docs:r.docs}}catch{return{docs:{}}}},m=async(e,i)=>{let r=await f(Nn(e.doc)),n=al(r.docs,i)?r.docs[i]:void 0;if(n==null||typeof n.at!="number")return null;let l=t()-n.at;if(!(l<Zn)||l<-Qn)return null;let o=Mr(n.doc,i);if(!o.ok)return null;let a=typeof n.etag=="string"&&el.test(n.etag)?n.etag:null;return{doc:o.doc,etag:a}},b=(t,i,r)=>{let n=Nn(t.doc);return c=c.then(async()=>{if(!p(t))try{let l=await f(n);if(p(t))return;let o={...l.docs},a=r(al(o,i)?o[i]:void 0);if(a===null?delete o[i]:o[i]=a,Object.keys(o).length===0)await e.kv.removeItem(Yn);else{let i=JSON.stringify({scope:n,docs:o});await e.kv.setItem(Yn,i),await h(t,Yn,i)}}catch{}}),c},y=async(i,l)=>{let o=`${i.doc}|${l}`,a=r.get(o),s=a===void 0?await m(i,l):null,c=a!==void 0?{doc:a.doc,etag:a.etag}:s,u=await g(i),h={"x-everfur-blocks":e.blocks??Un};u!==null&&(h["x-everfur-install-id"]=u),c?.doc&&c.etag!==null&&(h["if-none-match"]=c.etag);let f=null,y=Kn,w=await e.send("slots.read",{method:"GET",path:`/widget/v1/slots/${encodeURIComponent(l)}`,headers:h,rawText:65536,onResponseHeaders:e=>{let t=e("etag");f=t!==null&&el.test(t)?t:null,y=ol(e("cache-control"))}}).catch(()=>null),v=()=>c?.doc?{doc:c.doc,source:a!==void 0?"cache":"last-known-good"}:{doc:null,source:"bundled"},k=e=>(n.set(o,t()),d("slots.read_failed",{slot:l,status:e}),v());if(p(i))return{doc:null,source:"bundled"};if(w===null)return k(null);if(w.ok){let e=Nr(w.value);if(!e.ok)return d("slots.refused",{slot:l,reason:e.reason}),v();let n=Mr(e.raw,l);if(!n.ok)return d("slots.refused",{slot:l,reason:n.reason}),v();let a=t();return r.set(o,{doc:n.doc,etag:f,at:a,ttl:y}),await b(i,l,()=>({etag:f,doc:e.raw,at:a})),{doc:n.doc,source:"live"}}let x=w.error.httpStatus;if(x===304&&c?.doc){let e=t();return r.set(o,{doc:c.doc,etag:c.etag,at:e,ttl:y}),await b(i,l,t=>t===void 0?null:{...t,at:e}),{doc:c.doc,source:"live"}}return x===404?(r.set(o,{doc:null,etag:null,at:t(),ttl:y}),await b(i,l,()=>null),{doc:null,source:"bundled"}):k(x??null)},w=(e,i)=>{let n=r.get(`${e.doc}|${i}`);return n===void 0||t()-n.at>=n.ttl?null:n.doc===null?{doc:null,source:"bundled"}:{doc:n.doc,source:"cache"}},v=async(e,t)=>{let i=r.get(`${e.doc}|${t}`);if(i!==void 0)return i.doc===null?{doc:null,source:"bundled"}:{doc:i.doc,source:"cache"};let n=await m(e,t);return n===null?{doc:null,source:"bundled"}:{doc:n.doc,source:"last-known-good"}};return{peek(e){let t=i();return u(t),w(t,e)},stored(e){let t=i();return u(t),v(t,e).catch(()=>({doc:null,source:"bundled"}))},load(e){let r=i();u(r);let o=w(r,e);if(o!==null)return Promise.resolve(o);let a=`${r.doc}|${e}`,s=`${r.epoch}|${a}`,c=l.get(s);if(c!==void 0)return c;let d=n.get(a),p=(d!==void 0&&t()-d<Jn?v(r,e):y(r,e)).catch(()=>({doc:null,source:"bundled"})).finally(()=>l.delete(s));return l.set(s,p),p}}}function cl(e){let t=qn(e)??"unknown",i=e.registry.services.authFor(null),r=i.mode==="personalized"?`u:${i.userRef??""}`:`a:${i.userRef??""}`;return{doc:`${t}|${r}`,tenant:t,epoch:e.scopeEpoch??0}}var dl=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotClients@v1");function ul(e,t=pl){let i=globalThis,r=i[dl];r instanceof WeakMap||(r=/* @__PURE__ */new WeakMap,i[dl]=r);let n=r,l=n.get(e);return l===void 0&&(l=t(e),n.set(e,l)),l}function pl(e){let{services:t}=e.registry;return sl({send:(e,i)=>createRequestFunnel({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}}).send(e,i),kv:t.kv,telemetry:t.telemetry,scope:()=>cl(e)})}function hl(e,t){return{doc:t.doc??Xr(e),source:t.source}}function gl(e,t){let{runtime:i,scopeEpoch:r}=A(),o=t?ul(i):null,[a,s]=n(()=>{let t=o?.peek(e);return t?{slot:e,epoch:r,value:hl(e,t)}:null});return l(()=>{if(o===null)return;let t=true,i=false,n=o.peek(e);if(n!==null){s({slot:e,epoch:r,value:hl(e,n)});return}return o.stored(e).then(n=>{t&&!i&&s({slot:e,epoch:r,value:hl(e,n)})}),o.load(e).then(n=>{i=true,t&&s({slot:e,epoch:r,value:hl(e,n)})}),()=>{t=false}},[o,e,r]),t?a!==null&&a.slot===e&&a.epoch===r?a.value:{doc:null,source:"pending"}:{doc:Xr(e),source:"bundled"}}var fl=[{color:"#D5AD47",icon:{strokes:[{width:1.3,cap:true,closed:false,points:[18.2,12,19.8,12]},{width:1.3,cap:true,closed:false,points:[16.385,16.385,17.515,17.515]},{width:1.3,cap:true,closed:false,points:[12,18.2,12,19.8]},{width:1.3,cap:true,closed:false,points:[7.615,16.385,6.485,17.515]},{width:1.3,cap:true,closed:false,points:[5.8,12,4.2,12]},{width:1.3,cap:true,closed:false,points:[7.615,7.615,6.485,6.485]},{width:1.3,cap:true,closed:false,points:[12,5.8,12,4.2]},{width:1.3,cap:true,closed:false,points:[16.385,7.615,17.515,6.485]}],boxes:[],triangles:[],seams:[]}},{color:"#F2C763",icon:{strokes:[],boxes:[{x:9.75,y:9.75,w:4.5,h:4.5,radius:2.25,width:4.5}],triangles:[],seams:[]}},{color:"#D5AD47",icon:{strokes:[],boxes:[{x:7.5,y:7.5,w:9,h:9,radius:4.5,width:1}],triangles:[],seams:[]}}],ml=[{color:"#F2C763",icon:{strokes:[{width:1.5,cap:true,closed:false,points:[12,.75,12,3.429]},{width:1.5,cap:true,closed:false,points:[12,20.571,12,23.25]},{width:1.5,cap:true,closed:false,points:[.75,12,3.429,12]},{width:1.5,cap:true,closed:false,points:[20.571,12,23.25,12]},{width:1.5,cap:true,closed:false,points:[4.072,4.072,5.947,5.947]},{width:1.5,cap:true,closed:false,points:[18.054,18.054,19.929,19.929]},{width:1.5,cap:true,closed:false,points:[19.929,4.072,18.054,5.947]},{width:1.5,cap:true,closed:false,points:[5.947,18.054,4.072,19.929]}],boxes:[],triangles:[[7.064,14.085,7.558,14.995,6.752,13.08],[9.915,7.064,9.005,7.558,10.92,6.752],[14.085,16.936,14.995,16.442,13.08,17.248],[16.936,9.915,16.442,9.005,17.248,10.92],[6.643,12,6.752,13.08,7.558,14.995],[6.643,12,7.558,9.005,6.752,10.92],[12,6.643,14.995,7.558,13.08,6.752],[12,6.643,10.92,6.752,9.005,7.558],[12,17.357,13.08,17.248,14.995,16.442],[12,17.357,9.005,16.442,10.92,17.248],[17.357,12,16.442,14.995,17.248,13.08],[17.357,12,17.248,10.92,16.442,9.005],[7.558,14.995,8.212,15.788,6.643,12],[7.064,9.915,6.752,10.92,7.558,9.005],[14.085,7.064,13.08,6.752,14.995,7.558],[9.005,7.558,8.212,8.212,12,6.643],[14.995,16.442,15.788,15.788,12,17.357],[9.915,16.936,10.92,17.248,9.005,16.442],[16.936,14.085,17.248,13.08,16.442,14.995],[16.442,9.005,15.788,8.212,17.357,12],[8.212,15.788,8.212,8.212,6.643,12],[7.558,9.005,6.643,12,8.212,8.212],[14.995,7.558,12,6.643,15.788,8.212],[15.788,8.212,12,6.643,8.212,8.212],[12,17.357,17.357,12,8.212,15.788],[15.788,15.788,17.357,12,12,17.357],[9.005,16.442,12,17.357,8.212,15.788],[8.212,8.212,8.212,15.788,17.357,12],[16.442,14.995,17.357,12,15.788,15.788],[15.788,8.212,8.212,8.212,17.357,12]],seams:[[6.752,13.08,7.558,14.995,5.121,5.035],[9.005,7.558,10.92,6.752,5.035,5.121],[13.08,17.248,14.995,16.442,5.121,5.035],[16.442,9.005,17.248,10.92,5.035,5.121],[6.643,12,7.558,14.995,5.179,4.892],[6.643,12,7.558,9.005,5.179,4.892],[6.752,10.92,7.558,9.005,5.121,5.035],[12,6.643,14.995,7.558,5.179,4.892],[13.08,6.752,14.995,7.558,5.121,5.035],[9.005,7.558,12,6.643,4.892,5.179],[12,17.357,14.995,16.442,5.179,4.892],[9.005,16.442,12,17.357,4.892,5.179],[9.005,16.442,10.92,17.248,5.035,5.121],[16.442,14.995,17.357,12,4.892,5.179],[16.442,14.995,17.248,13.08,5.035,5.121],[16.442,9.005,17.357,12,4.892,5.179],[6.643,12,8.212,15.788,5.179,1.633],[8.212,8.212,12,6.643,1.633,5.179],[12,17.357,15.788,15.788,5.179,1.633],[15.788,8.212,17.357,12,1.633,5.179],[8.212,8.212,8.212,15.788,1.207,1.207],[6.643,12,8.212,8.212,5.179,1.633],[12,6.643,15.788,8.212,5.179,1.633],[8.212,8.212,15.788,8.212,1.207,1.207],[12,17.357,17.357,12,1.207,1.207],[8.212,15.788,17.357,12,.5,1.207],[8.212,15.788,12,17.357,1.633,5.179],[15.788,15.788,17.357,12,1.633,5.179],[8.212,8.212,17.357,12,1.207,.5]]}}],bl={strokes:[],boxes:[],triangles:[[8.241,19.053,8.849,19.39,9.53,19.25],[8,18.4,8.241,19.053,9.53,19.25],[9.53,4.75,8.849,4.61,8.241,4.947],[9.53,4.75,8.241,4.947,8,5.6],[19.73,12.85,20.146,12.332,20.146,11.668],[19.73,12.85,20.146,11.668,19.73,11.15],[8,18.4,9.53,19.25,19.73,12.85],[8,5.6,8,18.4,19.73,12.85],[19.73,11.15,9.53,4.75,8,5.6],[8,5.6,19.73,12.85,19.73,11.15]],seams:[[8.241,19.053,9.53,19.25,1.348,1.348],[8,18.4,9.53,19.25,.581,1.348],[8.241,4.947,9.53,4.75,1.348,1.348],[8,5.6,9.53,4.75,.581,1.348],[19.73,12.85,20.146,11.668,1.42,1.42],[19.73,11.15,19.73,12.85,.622,1.42],[19.73,12.85,8,18.4,4.202,.358],[19.73,12.85,8,5.6,.324,4.459],[19.73,11.15,8,5.6,4.202,4.459]]};var yl=/* @__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 wl={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},vl={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kl=e=>({...wl,...e}),xl=e=>({...vl,...e}),Tl={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},offbar:{box:{shown:true,w:361,h:56,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:44,radius:[0,0],bg:"#FCF0D6",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:48,dy:0},text:{shown:true,size:15,weight:500,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},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:"ink",fit:"cover",x:0,y:0,dy:0},action:{shown:true,w:69.859,h:44,padding:[0,2,0,2],marginTop:0,marginBottom:0,gap:[6,6],minHeight:44,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},actionText:{shown:true,size:15,weight:700,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},online:{bg:"ink",color:"onInk"},fade:200},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"}},Il={card:/* @__PURE__ */kl({w:361,h:163.547}),top:/* @__PURE__ */kl({w:361,h:39.547,gap:[12,12]}),title:/* @__PURE__ */xl({size:16,weight:700,lineHeight:20,tracking:-.16}),meta:/* @__PURE__ */xl({size:13,weight:400,lineHeight:17.55,color:"muted"}),total:/* @__PURE__ */xl({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */kl({w:361,h:64,marginTop:8,gap:[8,8]}),acts:/* @__PURE__ */kl({w:361,h:40,marginTop:12,gap:[8,8]}),go:/* @__PURE__ */kl({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"go",center:true}),goText:/* @__PURE__ */xl({size:14,weight:700,lineHeight:21.7}),plain:/* @__PURE__ */kl({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */xl({size:14,weight:700,lineHeight:21.7}),note:/* @__PURE__ */xl({size:13,weight:500,lineHeight:17.55,marginTop:8}),icon:/* @__PURE__ */kl({w:16,h:16}),actsColumns:2,shotPressScale:.96},Sl={top:/* @__PURE__ */kl({w:361,h:43.547,gap:[12,12]}),when:/* @__PURE__ */kl({w:300.063,h:24,gap:[8,4],center:true}),title:/* @__PURE__ */xl({size:16,weight:700,lineHeight:20.8}),chip:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:12,weight:700,lineHeight:15.6,color:"ink"}),chipIcon:/* @__PURE__ */kl({w:14,h:14,color:"ink"}),meta:/* @__PURE__ */xl({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),total:/* @__PURE__ */xl({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */kl({w:361,h:64,marginTop:8,gap:[8,8]}),shot:/* @__PURE__ */kl({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),shotImg:/* @__PURE__ */kl({w:64,h:64,padding:[6.391,6.391,6.391,6.391],fit:"contain"}),shotBlend:"multiply",acts:/* @__PURE__ */kl({w:361,h:44,marginTop:12,gap:[12,12],center:true}),plain:/* @__PURE__ */kl({w:162.109,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */xl({size:14,weight:700,lineHeight:21.7}),icon:/* @__PURE__ */kl({w:16,h:16}),link:/* @__PURE__ */kl({w:62.578,h:44,padding:[0,6,0,6],minHeight:44}),linkText:/* @__PURE__ */xl({size:14,weight:700,lineHeight:21.7,deco:"underline",decoOffset:3,decoThickness:1.5})},zl={card:/* @__PURE__ */kl({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:/* @__PURE__ */kl({w:172,h:72}),sq:/* @__PURE__ */kl({w:72,h:72,radius:[14,14],bg:"#F3F3F3"}),sqRing:3,sqOverlap:22,imgInset:.1,imgFit:"contain",imgBlend:"multiply",text:/* @__PURE__ */kl({w:446.547,h:95.781,gap:[2,2]}),when:/* @__PURE__ */kl({w:446.547,h:26,gap:[12,4],center:true}),title:/* @__PURE__ */xl({size:19,weight:700,lineHeight:24.7,tabular:true}),total:/* @__PURE__ */xl({size:19,weight:900,lineHeight:24.7,tabular:true}),chip:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:13,weight:700,lineHeight:16.9,color:"ink",tabular:true}),chipIcon:/* @__PURE__ */kl({w:16,h:16,color:"ink"}),meta:/* @__PURE__ */xl({size:16,weight:400,lineHeight:22.4}),note:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21}),acts:/* @__PURE__ */kl({w:245.453,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:16,weight:700,lineHeight:19.2,color:"ink"}),icon:/* @__PURE__ */kl({w:18,h:18,color:"ink"}),link:/* @__PURE__ */kl({w:61.422,h:44,gap:[8,8],minHeight:44,center:true,color:"ink"}),linkText:/* @__PURE__ */xl({size:17,weight:700,lineHeight:20.4,color:"ink",deco:"underline",decoOffset:4}),go:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:17,weight:700,lineHeight:20.4,color:"surface",wrap:"auto"}),pressScale:.97,hoverFill:{color:"ink",share:.06,over:"surface"},chipOff:/* @__PURE__ */kl({w:97.422,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],center:true,color:"ink"}),metaLink:/* @__PURE__ */xl({size:16,weight:400,lineHeight:22.4,deco:"underline"}),narrow:{upTo:599,card:/* @__PURE__ */kl({w:560,h:247.391,padding:[16,16,16,16],gap:[24,16],radius:[20,20],bg:"surface",center:true}),sq:/* @__PURE__ */kl({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:/* @__PURE__ */kl({w:335,h:120.984,gap:[12,8],center:true}),sq:/* @__PURE__ */kl({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),sqRing:2,sqOverlap:18,when:/* @__PURE__ */kl({w:215,h:46.797,gap:[12,2],center:true}),title:/* @__PURE__ */xl({size:16,weight:700,lineHeight:20.8,tabular:true}),total:/* @__PURE__ */xl({size:16,weight:900,lineHeight:20.8,tabular:true}),chip:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:12,weight:700,lineHeight:15.6,color:"ink",tabular:true}),whatHidden:true,note:/* @__PURE__ */xl({size:13,weight:400,lineHeight:18.2}),acts:/* @__PURE__ */kl({w:335,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:15,weight:700,lineHeight:18,color:"ink"}),linkText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:18,color:"ink",deco:"underline",decoOffset:4})}},Dl={card:/* @__PURE__ */kl({w:156,h:310.969,gap:[4,4]}),kicker:/* @__PURE__ */xl({size:12,weight:400,lineHeight:15.6,color:"muted",tracking:.12,face:"mono"}),name:/* @__PURE__ */xl({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),meta:/* @__PURE__ */xl({size:13,weight:400,lineHeight:18.2,color:"muted"}),buy:/* @__PURE__ */kl({w:156,h:36,marginTop:6,gap:[8,8],center:true}),price:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25,tabular:true})},Cl={card:/* @__PURE__ */kl({w:174.5,h:249.219,gap:[2,2]}),tag:/* @__PURE__ */kl({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:/* @__PURE__ */kl({w:16,h:16,color:"#CA4463"}),tagText:/* @__PURE__ */xl({size:12,weight:700,lineHeight:12}),price:/* @__PURE__ */kl({w:174.5,h:26.344,gap:[6,6]}),priceText:/* @__PURE__ */xl({size:17,weight:700,lineHeight:26.35,tracking:-.17,tabular:true}),was:/* @__PURE__ */xl({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"}),name:/* @__PURE__ */xl({size:14,weight:500,lineHeight:18.2,wrap:"balance"}),meta:/* @__PURE__ */xl({size:12,weight:400,lineHeight:16.2,color:"muted"}),metaAuto:/* @__PURE__ */xl({size:12,weight:500,lineHeight:16.2,color:"#16864A"}),step:/* @__PURE__ */kl({w:112,h:38,radius:[19,19],bg:"surface",center:true,x:54.5,y:128.5}),stepIn:/* @__PURE__ */kl({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:/* @__PURE__ */kl({w:38,h:38,radius:[19,19],center:true}),stepIcon:/* @__PURE__ */kl({w:18,h:18}),count:/* @__PURE__ */xl({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:/* @__PURE__ */xl({size:12,weight:400,lineHeight:16.2,color:"muted",tabular:true}),metaAutoDark:/* @__PURE__ */xl({size:12,weight:500,lineHeight:16.2,color:"ink"}),pill:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:14,weight:700,lineHeight:21.7}),pillOn:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:14,weight:700,lineHeight:21.7}),pillIcon:/* @__PURE__ */kl({w:16,h:16}),pillSoft:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:14,weight:700,lineHeight:21.7}),pillAt:{right:8,bottom:8},pillPressScale:.96},Hl={img:/* @__PURE__ */kl({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:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillOn:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillPressScale:.97},Fl={card:/* @__PURE__ */kl({w:306.656,h:370.641,gap:[2,2]}),square:/* @__PURE__ */kl({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:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:13,weight:700,lineHeight:14.3,color:"ink"}),tagIcon:/* @__PURE__ */kl({w:16,h:16,color:"#CA4463"}),tagMix:.15,name:/* @__PURE__ */xl({size:17,weight:500,lineHeight:22.1,wrap:"balance"}),nameLeading:1.3,coverRadius:20,price:/* @__PURE__ */kl({w:306.656,h:27.891,gap:[8,2]}),priceText:/* @__PURE__ */xl({size:18,weight:700,lineHeight:27.9,tracking:-.18,tabular:true}),was:/* @__PURE__ */xl({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),per:/* @__PURE__ */xl({size:15,weight:400,lineHeight:23.25,tabular:true}),badge:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:13,weight:700,lineHeight:13,tabular:true}),meta:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21}),add:/* @__PURE__ */kl({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:/* @__PURE__ */kl({w:20,h:20}),actAt:{right:10,bottom:10},step:/* @__PURE__ */kl({w:116,h:44,radius:[22,22],bg:"ink",center:true,color:"surface"}),stepButton:/* @__PURE__ */kl({w:44,h:44,radius:[22,22],center:true,color:"surface"}),stepIcon:/* @__PURE__ */kl({w:18,h:18,color:"surface"}),count:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),pill:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:15,weight:700,lineHeight:15,color:"surface"}),pillOn:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:15,weight:700,lineHeight:15,color:"ink"}),pillIcon:/* @__PURE__ */kl({w:18,h:18,color:"ink"}),pillSoft:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:15,weight:700,lineHeight:15}),nameSteps:[{upTo:599,name:/* @__PURE__ */xl({size:16,weight:500,lineHeight:20.8,wrap:"balance"})},{upTo:399,name:/* @__PURE__ */xl({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}},_l={card:/* @__PURE__ */kl({shown:false,w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */xl({shown:false,size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */xl({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2})},Ol={line:/* @__PURE__ */kl({w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */kl({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:/* @__PURE__ */xl({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */xl({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:/* @__PURE__ */xl({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:/* @__PURE__ */xl({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:/* @__PURE__ */kl({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:/* @__PURE__ */xl({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:/* @__PURE__ */kl({w:53.016,h:20.141,color:"ink"}),end:/* @__PURE__ */kl({w:289,h:26.344,gap:[4,4]})},El={line:/* @__PURE__ */kl({w:361,h:95.094,gap:[12,12]}),sm:/* @__PURE__ */kl({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:/* @__PURE__ */kl({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:/* @__PURE__ */kl({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */kl({w:239.109,h:20,gap:[6,4],center:true}),nameText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */xl({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:12,weight:700,lineHeight:12}),meta:/* @__PURE__ */xl({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:/* @__PURE__ */kl({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:/* @__PURE__ */xl({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:/* @__PURE__ */kl({w:84.531,h:32,minHeight:32,color:"ink"}),price:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */xl({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},Pl={line:/* @__PURE__ */kl({w:404,h:88,gap:[16,0],center:true}),sq:/* @__PURE__ */kl({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */kl({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:/* @__PURE__ */xl({size:19,weight:700,lineHeight:24.7}),link:/* @__PURE__ */xl({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:/* @__PURE__ */kl({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:/* @__PURE__ */xl({size:13,weight:700,lineHeight:13}),meta:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21,marginTop:2}),price:/* @__PURE__ */xl({size:19,weight:700,lineHeight:29.45,tabular:true}),was:/* @__PURE__ */xl({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:/* @__PURE__ */kl({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */kl({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */xl({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */xl({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:/* @__PURE__ */kl({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */kl({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */xl({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */xl({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:/* @__PURE__ */kl({w:303,h:81.25,gap:[12,0],center:true}),sq:/* @__PURE__ */kl({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:/* @__PURE__ */kl({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */xl({size:15,weight:700,lineHeight:19.5}),meta:/* @__PURE__ */xl({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */xl({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},Ll={line:/* @__PURE__ */kl({w:360,h:147.094,gap:[14,0]}),img:/* @__PURE__ */kl({w:64,h:64,radius:[14,14],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),imgInset:6,imgFit:"contain",name:/* @__PURE__ */kl({w:216,h:22.094,gap:[8,4],center:true}),nameText:/* @__PURE__ */xl({size:17,weight:700,lineHeight:22.1,wrap:"auto"}),badge:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:13,weight:700,lineHeight:13,wrap:"auto"}),meta:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21,marginTop:2}),note:/* @__PURE__ */xl({size:15,weight:700,lineHeight:21,color:"ink",marginTop:2}),acts:/* @__PURE__ */kl({w:282,h:92,marginTop:10,gap:[12,8],center:true}),plan:/* @__PURE__ */kl({w:193.703,h:44,padding:[3,3,3,3],radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),planBtn:/* @__PURE__ */kl({w:63.859,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999]}),planText:/* @__PURE__ */xl({size:15,weight:500,lineHeight:23.25,wrap:"auto"}),planOn:/* @__PURE__ */kl({w:123.844,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999],bg:"ink",color:"surface"}),planOnText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25,color:"surface",wrap:"auto"}),qty:/* @__PURE__ */kl({w:104,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true}),countMin:24,qtyBtn:/* @__PURE__ */kl({w:40,h:40,radius:[20,20],center:true}),qtyIcon:/* @__PURE__ */kl({w:16,h:16}),count:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25,wrap:"auto",tabular:true}),remove:/* @__PURE__ */kl({w:58.359,h:40,minHeight:40,color:"ink"}),removeText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3}),price:/* @__PURE__ */xl({size:17,weight:700,lineHeight:22.1,wrap:"auto",tabular:true}),was:/* @__PURE__ */xl({size:15,weight:400,lineHeight:19.5,wrap:"auto",tabular:true,deco:"strike"}),pressScale:.9,hover:{color:"ink",share:.06,over:"surface"},motion:{press:140,fill:150,planFill:150}},Bl={note:/* @__PURE__ */xl({size:13,weight:400,lineHeight:19.5,color:"muted",marginTop:12}),noteStrong:/* @__PURE__ */xl({size:13,weight:700,lineHeight:19.5,color:"muted"})};var Al={card:/* @__PURE__ */kl({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:/* @__PURE__ */kl({w:293,h:24,gap:[8,8],center:true}),kickerText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25}),source:/* @__PURE__ */kl({w:116.719,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#DAF6E8",center:true,color:"ink"}),sourceText:/* @__PURE__ */xl({size:12,weight:700,lineHeight:18.6,color:"ink"}),title:/* @__PURE__ */xl({shown:false,size:15,weight:700,lineHeight:23.25}),signal:/* @__PURE__ */kl({w:293,h:65.25,marginTop:8,gap:[9,9],color:"#4D4D4D"}),signalText:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),signalLead:/* @__PURE__ */xl({size:15,weight:700,lineHeight:21.75}),dot:/* @__PURE__ */kl({w:9,h:9,radius:[4.5,4.5],bg:"alert",color:"#4D4D4D",dy:-1}),score:/* @__PURE__ */kl({w:293,h:99.859,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[10,10],bg:"#FCF0D6",center:true}),scoreLabel:/* @__PURE__ */xl({size:14,weight:600,lineHeight:18.9,color:"#4D4D4D"}),scoreTag:/* @__PURE__ */kl({w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,radius:[6,6],bg:"surface"}),scoreTagText:/* @__PURE__ */xl({size:12,weight:600,lineHeight:16.2,tracking:.72,face:"mono",upper:true,marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */kl({w:106.109,h:51.141,gap:[6,0],center:true}),scoreWas:/* @__PURE__ */xl({size:17,weight:700,lineHeight:26.35,color:"muted",deco:"strike",decoThickness:1.5}),scoreArrow:/* @__PURE__ */kl({w:16,h:16,color:"muted"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */xl({size:28,weight:700,lineHeight:28,tracking:-.84,tabular:true}),scoreOf:/* @__PURE__ */xl({size:15,weight:700,lineHeight:15,color:"#4D4D4D",tabular:true}),scoreSince:/* @__PURE__ */xl({size:13,weight:700,lineHeight:20.15,color:"ink",marginTop:3})},Rl={card:/* @__PURE__ */kl({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:/* @__PURE__ */kl({w:297,h:24,gap:[8,8],center:true,color:"#262523"}),kickerText:/* @__PURE__ */xl({size:15,weight:800,lineHeight:22.5,color:"#262523"}),source:/* @__PURE__ */kl({w:83.375,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#F2F1EE",center:true,color:"#4A4845"}),sourceText:/* @__PURE__ */xl({size:12,weight:700,lineHeight:18,color:"#4A4845"}),title:/* @__PURE__ */xl({size:19,weight:800,lineHeight:23.18,color:"#262523",marginTop:12}),signal:/* @__PURE__ */kl({w:297,h:65.25,marginTop:6,gap:[9,9],color:"#4A4845"}),signalText:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21.75,color:"#4A4845"}),signalLead:/* @__PURE__ */xl({size:15,weight:800,lineHeight:21.75,color:"#262523"}),dot:/* @__PURE__ */kl({w:9,h:9,radius:[4.5,4.5],bg:"#E5372B",color:"#4A4845",dy:-1}),score:/* @__PURE__ */kl({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:/* @__PURE__ */xl({size:13.5,weight:600,lineHeight:18.225,color:"#4A4845",wrap:"balance"}),scoreTag:/* @__PURE__ */kl({w:51.609,h:17.5,padding:[2,6,2,6],marginTop:3,radius:[5,5],bg:"surface",color:"#262523"}),scoreTagText:/* @__PURE__ */xl({size:10,weight:600,lineHeight:13.5,color:"#262523",tracking:.6,face:"mono",upper:true,wrap:"balance",marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */kl({w:94.75,h:49.75,gap:[6,0],center:true,color:"#262523"}),scoreWas:/* @__PURE__ */xl({size:17,weight:700,lineHeight:25.5,color:"#6B6863",deco:"strike"}),scoreArrow:/* @__PURE__ */kl({w:16,h:16,color:"#6B6863"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */xl({size:28,weight:800,lineHeight:28,color:"#262523"}),scoreOf:/* @__PURE__ */xl({size:13,weight:800,lineHeight:13,color:"muted"}),scoreSince:/* @__PURE__ */xl({size:12.5,weight:700,lineHeight:18.75,color:"planLink",marginTop:3}),sources:/* @__PURE__ */kl({w:131.375,h:24,gap:[4,4],color:"#262523"}),sourceDna:/* @__PURE__ */kl({w:44,h:24,padding:[0,9,0,9],radius:[999,999],bg:"planLinkWash",center:true,color:"planLink"}),sourceDnaText:/* @__PURE__ */xl({size:12,weight:700,lineHeight:18,color:"planLink"}),dotWatch:/* @__PURE__ */kl({w:9,h:9,radius:[4.5,4.5],bg:"#E5A000",color:"#4A4845",dy:-1}),dotClear:/* @__PURE__ */kl({w:9,h:9,radius:[4.5,4.5],bg:"#5FA82B",color:"#4A4845",dy:-1}),scoreLabelMax:135,says:/* @__PURE__ */kl({w:297,h:52,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysImg:/* @__PURE__ */kl({w:32,h:32,radius:[16,16],color:"#262523"}),saysText:/* @__PURE__ */xl({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845"}),saysBy:/* @__PURE__ */xl({size:14.5,weight:800,lineHeight:20.3,color:"#262523"}),saysByGap:2,saysTag:/* @__PURE__ */kl({w:51.609,h:15,padding:[2,6,2,6],radius:[5,5],bg:"surface",color:"#262523"}),saysTagText:/* @__PURE__ */xl({size:10,weight:400,lineHeight:14,color:"#262523",tracking:.6,face:"mono",upper:true,paddingTop:2}),saysBare:/* @__PURE__ */kl({w:297,h:81,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysKicker:/* @__PURE__ */xl({size:17,weight:400,lineHeight:25.5,color:"#262523"}),saysSerif:/* @__PURE__ */xl({size:17,weight:800,lineHeight:25.5,color:"#262523",tracking:-.17,wrap:"balance"}),jump:/* @__PURE__ */kl({w:297,h:60,padding:[8,14,8,8],marginTop:12,gap:[12,12],radius:[14,14],bg:"planInk",center:true,color:"planOnInk"}),jumpImg:/* @__PURE__ */kl({w:44,h:44,radius:[10,10],bg:"surface",color:"surface"}),jumpKicker:/* @__PURE__ */xl({size:13,weight:800,lineHeight:19.5,color:"planAccent"}),jumpTitle:/* @__PURE__ */xl({size:15,weight:800,lineHeight:18.75,color:"planOnInk"}),jumpGo:/* @__PURE__ */xl({size:14,weight:800,lineHeight:21,color:"planOnInk"}),jumpPressScale:.98,more:/* @__PURE__ */kl({w:87.547,h:36,marginTop:6,marginBottom:-4,gap:[4,4],minHeight:36,center:true,color:"planLink"}),moreText:/* @__PURE__ */xl({size:15,weight:800,lineHeight:22.5,color:"planLink"}),moreIcon:/* @__PURE__ */kl({w:16,h:16,color:"planLink"}),moreInset:16,moreTurn:{closed:90,open:-90},rep:/* @__PURE__ */kl({w:297,h:48.5,padding:[14,14,12,14],marginTop:10,radius:[16,16],bg:"#F8F7F4",color:"#262523"})},jl={card:/* @__PURE__ */kl({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:/* @__PURE__ */kl({w:181.5,h:113.438,radius:[10,10],bg:"#F3F3F3"}),n:/* @__PURE__ */kl({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */xl({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */xl({size:16,weight:700,lineHeight:20,marginTop:10}),text:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21,color:"#4D4D4D",marginTop:4}),foot:/* @__PURE__ */kl({w:181.5,h:26.594,padding:[8,0,0,0],gap:[4,4],center:true,color:"ink"}),footText:/* @__PURE__ */xl({size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,paddingTop:8}),footArrow:/* @__PURE__ */kl({w:14,h:14,color:"ink"}),footArrowFlip:true,pressScale:.98,bare:/* @__PURE__ */kl({w:181.5,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */kl({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */kl({w:22,h:22})},$l={card:/* @__PURE__ */kl({w:221,h:152,padding:[8,8,12,8],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */kl({w:205,h:102.5,radius:[10,10],bg:"#F3F3F3"}),imgAspect:2,n:/* @__PURE__ */kl({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */xl({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */xl({size:15,weight:700,lineHeight:19.5,marginTop:10}),titleInset:4,pressScale:.98,bare:/* @__PURE__ */kl({w:205,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */kl({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */kl({w:22,h:22,color:"ink"})},Wl={card:/* @__PURE__ */kl({w:226,h:172.047,gap:[10,10]}),img:/* @__PURE__ */kl({w:226,h:141.25,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */xl({size:16,weight:700,lineHeight:20.8,wrap:"balance"}),coverRadius:10,row:{from:440,card:/* @__PURE__ */kl({w:400,h:80,padding:[6,0,6,0],gap:[10,10],minHeight:80,center:true}),img:/* @__PURE__ */kl({w:64,h:64,radius:[10,10]}),arrowColumn:18,arrow:/* @__PURE__ */kl({w:18,h:18,color:"ink"}),arrowTurn:180},phone:{upTo:639,card:/* @__PURE__ */kl({w:216,h:162.5,gap:[8,8]}),img:/* @__PURE__ */kl({w:216,h:135,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */xl({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),smallUpTo:359,smallW:208},mark:{tile:/* @__PURE__ */kl({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},Ml={card:/* @__PURE__ */kl({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:/* @__PURE__ */kl({w:197.406,h:30,center:true,color:"#262523"}),nText:/* @__PURE__ */xl({size:30,weight:900,lineHeight:30,color:"#262523"}),icon:/* @__PURE__ */kl({w:26,h:26,color:"#262523"}),title:/* @__PURE__ */xl({size:17,weight:800,lineHeight:21.25,color:"#262523",marginTop:14}),text:/* @__PURE__ */xl({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845",marginTop:4}),foot:/* @__PURE__ */kl({w:197.406,h:25.75,padding:[10,0,0,0],color:"planLink"}),footText:/* @__PURE__ */xl({size:10.5,weight:400,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true,paddingTop:10})},Nl={line:/* @__PURE__ */kl({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:/* @__PURE__ */kl({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:/* @__PURE__ */kl({w:28,h:28,color:"planLink"}),name:/* @__PURE__ */xl({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:/* @__PURE__ */kl({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:/* @__PURE__ */xl({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:/* @__PURE__ */xl({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:/* @__PURE__ */xl({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:/* @__PURE__ */kl({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:/* @__PURE__ */kl({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:/* @__PURE__ */kl({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:/* @__PURE__ */xl({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})},Gl={bar:/* @__PURE__ */kl({w:361,h:66,padding:[8,8,8,10],gap:[10,10],minHeight:60,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:1,blur:3,spread:0},center:true,x:16}),lift:{color:"rgba(0, 0, 0, 0.09)",x:0,y:10,blur:28,spread:0},thumbs:/* @__PURE__ */kl({w:88,h:44,padding:[0,4,0,0],center:true}),thumb:/* @__PURE__ */kl({w:40,h:40,radius:[12,12],bg:"#F3F3F3"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"multiply",count:/* @__PURE__ */kl({w:20,h:20,padding:[0,5,0,5],radius:[10,10],bg:"text",center:true,color:"surface",x:72,y:-4}),countText:/* @__PURE__ */xl({size:12,weight:700,lineHeight:12,color:"surface",tabular:true}),countAt:{top:-4,right:-4},sum:/* @__PURE__ */kl({w:130.656,h:35.688,gap:[2,2]}),total:/* @__PURE__ */xl({size:17,weight:700,lineHeight:18.7,tracking:-.17,tabular:true}),sub:/* @__PURE__ */xl({size:12,weight:400,lineHeight:15,color:"muted"}),go:/* @__PURE__ */kl({w:104.344,h:50,padding:[0,18,0,18],gap:[6,6],minHeight:50,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink"}),goText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25,color:"ink"}),pressScale:.97,hover:{color:"pink",share:.9,over:"text"},motion:{rise:{duration:240,from:24,fade:false},bump:{duration:240,scale:1.12,peakAt:.5,curve:"ease-out"}}},ql={bar:/* @__PURE__ */kl({w:600,h:68,padding:[10,10,10,14],gap:[14,14],minHeight:68,radius:[26,26],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:1,blur:3,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.09)",x:0,y:10,blur:28,spread:0},thumbs:/* @__PURE__ */kl({w:102,h:44,padding:[0,6,0,0],center:true}),thumb:/* @__PURE__ */kl({w:44,h:44,padding:[4,4,4,4],radius:[12,12],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:1,blur:3,spread:0},fit:"contain"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"normal",count:/* @__PURE__ */kl({w:22,h:22,padding:[0,6,0,6],radius:[11,11],bg:"go",center:true,x:83,y:-5}),countText:/* @__PURE__ */xl({size:12,weight:700,lineHeight:12,wrap:"auto",tabular:true}),countAt:{top:-5,right:-3},sum:/* @__PURE__ */kl({w:307.484,h:43.5,gap:[2,2]}),total:/* @__PURE__ */xl({size:20,weight:700,lineHeight:22,color:"ink",tracking:-.2,tabular:true}),sub:/* @__PURE__ */xl({size:15,weight:400,lineHeight:19.5}),go:/* @__PURE__ */kl({w:138.516,h:48,padding:[0,22,0,22],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),goText:/* @__PURE__ */xl({size:17,weight:700,lineHeight:26.35,color:"surface",wrap:"auto"}),pressScale:.97,hover:{color:"ink",share:.86,over:"text"},motion:{rise:{duration:260,from:24,fade:true},bump:{duration:240,scale:1.1,peakAt:.5,curve:"out"}},phone:{upTo:559,bar:/* @__PURE__ */kl({w:335,h:79,padding:[8,8,8,10],gap:[10,10],minHeight:64,radius:[22,22],bg:"surface",center:true}),thumb:/* @__PURE__ */kl({w:40,h:40,padding:[4,4,4,4],radius:[12,12],bg:"surface",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:2},fit:"contain"}),go:/* @__PURE__ */kl({w:94.594,h:48,padding:[0,18,0,18],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),lastOnly:true,wordHidden:true}},Ul={card:/* @__PURE__ */kl({w:393,h:655.609}),head:/* @__PURE__ */kl({w:393,h:126.328,padding:[4,16,12,16],gap:[12,12]}),pic:/* @__PURE__ */kl({w:64,h:64,radius:[10,10],bg:"#F3F3F3"}),packInset:.08,kind:/* @__PURE__ */xl({size:12,weight:700,lineHeight:18.6,color:"ink",tracking:.72,face:"mono",upper:true}),title:/* @__PURE__ */xl({size:22,weight:700,lineHeight:24.64,tracking:-.55,marginTop:2}),sub:/* @__PURE__ */xl({size:14,weight:400,lineHeight:18.9,color:"#4D4D4D",marginTop:3}),close:/* @__PURE__ */kl({w:36,h:36,padding:[1,6,1,6],radius:[18,18],center:true,color:"ink"}),closeIcon:/* @__PURE__ */kl({w:20,h:20,color:"ink"}),body:/* @__PURE__ */kl({w:393,h:529.281,padding:[0,16,24,16],gap:[12,12]}),box:/* @__PURE__ */kl({w:361,h:169.281,padding:[14,14,14,14],radius:[20,20],bg:"tintPink"}),heading:/* @__PURE__ */xl({size:17,weight:700,lineHeight:21.25}),rows:/* @__PURE__ */kl({w:333,h:110.031,marginTop:10,gap:[10,10]}),row:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */xl({size:12,weight:400,lineHeight:17.4,color:"ink",tracking:.48,face:"mono",upper:true}),secHeading:/* @__PURE__ */xl({size:17,weight:700,lineHeight:21.25}),how:/* @__PURE__ */kl({w:361,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */kl({w:361,h:21.75,gap:[8,8],color:"#4D4D4D"}),bulletText:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),bulletColumn:14,dot:{size:6,top:9,color:"ink"},para:/* @__PURE__ */xl({size:15,weight:400,lineHeight:22.5,color:"#4D4D4D",marginTop:6}),acts:/* @__PURE__ */kl({w:361,h:98,gap:[2,2]}),btn:/* @__PURE__ */kl({w:361,h:52,padding:[0,20,0,20],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */xl({size:16,weight:700,lineHeight:24.8,color:"surface"}),more:/* @__PURE__ */kl({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25,color:"ink",deco:"underline",decoOffset:3,decoThickness:1.5}),tones:{calm:"tintBlue",y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},photoBg:"#F3F3F3",closeHover:"tintSage",pressScale:.97,hover:{color:"ink",share:.88,over:"surface"}},Vl={card:/* @__PURE__ */kl({w:558,h:571.375}),head:/* @__PURE__ */kl({w:558,h:105.375,padding:[24,24,12,24],gap:[12,12]}),pic:/* @__PURE__ */kl({w:64,h:64,radius:[10,10],bg:"#F5F5F5"}),packInset:.08,kind:/* @__PURE__ */xl({size:15,weight:700,lineHeight:19.5,color:"ink"}),title:/* @__PURE__ */xl({size:22,weight:500,lineHeight:24.64,color:"ink",tracking:-.44,marginTop:2}),sub:/* @__PURE__ */xl({size:15,weight:400,lineHeight:20.25,marginTop:3}),close:/* @__PURE__ */kl({w:40,h:40,padding:[1,6,1,6],radius:[20,20],center:true}),closeIcon:/* @__PURE__ */kl({w:20,h:20}),body:/* @__PURE__ */kl({w:558,h:466,padding:[0,24,24,24],gap:[22,22]}),box:/* @__PURE__ */kl({w:510,h:129}),heading:/* @__PURE__ */xl({size:16,weight:700,lineHeight:20}),rows:/* @__PURE__ */kl({w:510,h:99,marginTop:10,gap:[12,12]}),row:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */xl({size:15,weight:700,lineHeight:21.75,color:"ink"}),secHeading:/* @__PURE__ */xl({size:16,weight:700,lineHeight:20}),how:/* @__PURE__ */kl({w:510,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */kl({w:510,h:21.75,gap:[8,8]}),bulletText:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21.75}),bulletColumn:14,dot:{size:6,top:9.75,color:"ink"},para:/* @__PURE__ */xl({size:15,weight:400,lineHeight:22.5,marginTop:6}),acts:/* @__PURE__ */kl({w:510,h:92,gap:[2,2]}),btn:/* @__PURE__ */kl({w:510,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */xl({size:17,weight:400,lineHeight:26.35,color:"surface",wrap:"auto"}),more:/* @__PURE__ */kl({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3,decoThickness:1.5}),photoBg:"surface",closeHover:"none",pressScale:.97,hover:{color:"ink",share:.88,over:"surface"},phone:{upTo:419,head:/* @__PURE__ */kl({w:341,h:145.031,padding:[24,24,12,24],gap:[10,10]}),pic:/* @__PURE__ */kl({w:48,h:48,radius:[10,10],bg:"#F5F5F5"}),title:/* @__PURE__ */xl({size:20,weight:500,lineHeight:22.4,color:"ink",tracking:-.4,marginTop:2})}},Yl={card:/* @__PURE__ */kl({w:329,h:323.109,padding:[12,14,12,14],radius:[16,16],edge:{width:1.5,color:"#262523",ring:true},color:"#262523"}),heading:/* @__PURE__ */xl({size:10.5,weight:400,lineHeight:15.75,color:"#6B6863",tracking:.63,face:"mono",upper:true}),row:/* @__PURE__ */kl({w:301,h:59.688,marginTop:10,gap:[10,10],color:"#262523"}),chipColumn:58,chips:{dna:{box:/* @__PURE__ */kl({w:58,h:22,radius:[6,6],bg:"planLinkWash",center:true,color:"planLink"}),text:/* @__PURE__ */xl({size:10.5,weight:700,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true})},record:{box:/* @__PURE__ */kl({w:58,h:22,radius:[6,6],bg:"#F2F1EE",center:true,color:"#4A4845"}),text:/* @__PURE__ */xl({size:10.5,weight:700,lineHeight:15.75,color:"#4A4845",tracking:.42,face:"mono",upper:true})},ask:{box:/* @__PURE__ */kl({w:58,h:22,radius:[6,6],bg:"planAccentWash",center:true,color:"#262523"}),text:/* @__PURE__ */xl({size:10.5,weight:700,lineHeight:15.75,color:"#262523",tracking:.42,face:"mono",upper:true})}},rowTitle:/* @__PURE__ */xl({size:15,weight:800,lineHeight:19.5,color:"#262523"}),rowBody:/* @__PURE__ */xl({size:14,weight:400,lineHeight:19.6,color:"#4A4845",marginTop:1}),score:/* @__PURE__ */kl({w:301,h:42.797,padding:[11,12,11,14],marginTop:12,gap:[8,8],radius:[12,12],bg:"planInk",center:true,color:"planOnInk"}),scoreText:/* @__PURE__ */xl({size:14.5,weight:800,lineHeight:18.85,color:"planOnInk"}),scoreValue:/* @__PURE__ */xl({size:16,weight:700,lineHeight:20.8,color:"planAccent",face:"mono"})},Xl={card:/* @__PURE__ */kl({w:325,h:134,marginTop:14}),head:/* @__PURE__ */kl({w:325,h:24,marginBottom:10,gap:[12,12],center:true}),lead:/* @__PURE__ */xl({size:14,weight:400,lineHeight:18.2,color:"#3D3D3D"}),name:/* @__PURE__ */xl({size:14,weight:700,lineHeight:18.2,color:"ink"}),pills:{better:{box:/* @__PURE__ */kl({w:66.094,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#D7F5E7",center:true,color:"ink"}),text:/* @__PURE__ */xl({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},same:{box:/* @__PURE__ */kl({w:50.734,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FBEED0",center:true,color:"ink"}),text:/* @__PURE__ */xl({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},worse:{box:/* @__PURE__ */kl({w:58.406,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#F6EBDE",center:true,color:"#834D0D"}),text:/* @__PURE__ */xl({size:12,weight:700,lineHeight:12,color:"#834D0D",tracking:.48,face:"mono"})}},viz:/* @__PURE__ */kl({w:325,h:56}),grid:{rows:10,gap:1.5,radius:1.5,widthShare:.6},zones:{lot:6.5,some:3.5},colors:{go:"go",some:"#E4BA55",lot:"#BC6E13"},src:/* @__PURE__ */kl({w:325,h:44,gap:[16,0],center:true}),srcBtn:/* @__PURE__ */kl({w:181.5,h:44,gap:[6,6],minHeight:44,center:true,color:"#4D4D4D"}),srcText:/* @__PURE__ */xl({size:14,weight:400,lineHeight:21.7,color:"#4D4D4D"}),srcIcon:/* @__PURE__ */kl({w:16,h:16,color:"#5A6087"}),act:/* @__PURE__ */kl({w:221.172,h:44,padding:[0,20,0,20],marginTop:6,marginBottom:14,minHeight:44,radius:[999,999],bg:"surface",edge:{width:1.5,color:"ink",ring:true},center:true,color:"ink"}),actText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25,color:"ink",marginTop:6})},Kl={card:/* @__PURE__ */kl({w:393,h:179.25}),body:/* @__PURE__ */kl({w:393,h:99.25,padding:[0,16,24,16],gap:[24,24]}),question:/* @__PURE__ */xl({size:17,weight:700,lineHeight:21.25}),picks:/* @__PURE__ */kl({w:361,h:96,marginTop:10,gap:[8,8]}),pick:/* @__PURE__ */kl({w:115,h:44,padding:[4,4,4,4],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),pickText:/* @__PURE__ */xl({size:15,weight:400,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickOn:/* @__PURE__ */kl({w:115,h:44,padding:[4,4,4,4],gap:[6,6],minHeight:44,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),pickOnText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickHover:{color:"pink",share:.3,over:"surface"},stepTop:16,row:/* @__PURE__ */kl({w:361,h:44,gap:[8,8],minHeight:44,center:true}),rowLabel:/* @__PURE__ */xl({size:15,weight:400,lineHeight:18.75}),rowValue:/* @__PURE__ */xl({size:15,weight:700,lineHeight:18.75}),rowIcon:/* @__PURE__ */kl({w:18,h:18,color:"ink"}),rowTurn:90,rowPressScale:.98,note:/* @__PURE__ */kl({w:361,h:60.594,padding:[10,12,10,12],marginTop:12,radius:[10,10],bg:"#FFE8E6"}),noteText:/* @__PURE__ */xl({size:14,weight:400,lineHeight:20.3,marginTop:12,paddingTop:10}),noteLink:/* @__PURE__ */xl({size:14,weight:700,lineHeight:20.3,deco:"underline",decoOffset:3}),done:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21,wrap:"balance",marginTop:12}),acts:/* @__PURE__ */kl({w:361,h:52,gap:[2,2]}),btn:/* @__PURE__ */kl({w:361,h:52,padding:[0,20,0,20],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),btnText:/* @__PURE__ */xl({size:16,weight:700,lineHeight:24.8,color:"surface"})},Ql={card:/* @__PURE__ */kl({w:361,h:321.734,padding:[16,16,16,16],gap:[16,16],radius:[20,20],bg:"#FCF4E0"}),skies:{sun:"#FCF4E0",blue:"tintBlue"},now:/* @__PURE__ */kl({w:329,h:113.891,gap:[12,12],center:true}),temp:/* @__PURE__ */xl({size:64,weight:700,lineHeight:60.8,color:"ink",tracking:-2.56,tabular:true}),cond:/* @__PURE__ */xl({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2}),glyph:/* @__PURE__ */kl({w:88,h:88}),walk:/* @__PURE__ */kl({w:329,h:159.844,padding:[12,16,12,16],gap:[4,4],radius:[10,10],bg:"surface"}),walkTitle:/* @__PURE__ */kl({w:297,h:22.094,gap:[8,8],center:true,color:"ink"}),walkTitleText:/* @__PURE__ */xl({size:17,weight:700,lineHeight:22.1,color:"ink"}),walkText:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21.75}),lvl:/* @__PURE__ */kl({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"ink"}),levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},comfort:/* @__PURE__ */kl({w:297,h:32.5,padding:[12,0,0,0],marginTop:8,gap:[8,6],center:true}),comfortRule:{width:1,color:"line"},comfortLabel:/* @__PURE__ */xl({size:13,weight:400,lineHeight:16.9,color:"muted"}),comfortValue:/* @__PURE__ */xl({size:15,weight:700,lineHeight:19.5,color:"ink"}),bar:/* @__PURE__ */kl({w:82,h:8,gap:[3,3]}),pipOn:/* @__PURE__ */kl({w:14,h:8,radius:[2,2],bg:"#77DDAC"}),pipOff:/* @__PURE__ */kl({w:14,h:8,radius:[2,2],bg:"#F1F5F2"})},Jl={card:/* @__PURE__ */kl({w:361,h:265.484,padding:[24,16,24,16],radius:[20,20],bg:"#FCF4E0"}),glyph:/* @__PURE__ */kl({w:88,h:88}),temp:/* @__PURE__ */xl({size:72,weight:700,lineHeight:68.4,color:"ink",tracking:-2.88,tabular:true,marginTop:8}),cond:/* @__PURE__ */xl({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2})},Zl={card:/* @__PURE__ */kl({w:272,h:187.984,padding:[16,16,16,16],gap:[8,8],radius:[20,20],bg:"#F5F5F5"}),top:/* @__PURE__ */kl({w:240,h:24,gap:[8,8],center:true}),label:/* @__PURE__ */xl({size:12,weight:700,lineHeight:15.6,color:"ink",tracking:.72,face:"mono",upper:true}),glyph:/* @__PURE__ */kl({w:36,h:36,marginTop:-6,marginBottom:-6}),glyphMargin:[-6,-4,-6,0],big:/* @__PURE__ */xl({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),small:/* @__PURE__ */xl({size:15,weight:700,lineHeight:16.5,color:"muted",tabular:true}),smallGap:4,meta:/* @__PURE__ */xl({size:14,weight:400,lineHeight:19.6}),btn:/* @__PURE__ */kl({w:137.375,h:38,padding:[0,12,0,12],gap:[8,8],minHeight:38,radius:[999,999],bg:"ink",edge:{width:1.5,color:"ink",ring:false},center:true,color:"surface"}),btnText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:15,color:"surface"}),btnIcon:/* @__PURE__ */kl({w:20,h:20,color:"surface"})},eo={card:/* @__PURE__ */kl({w:533.078,h:242,padding:[24,24,24,24],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),head:/* @__PURE__ */kl({w:483.078,h:34,marginBottom:16,gap:[12,12],center:true}),city:/* @__PURE__ */xl({size:24,weight:700,lineHeight:28.8,color:"ink",tracking:-.48,wrap:"auto"}),units:/* @__PURE__ */kl({w:78,h:34,padding:[2,2,2,2],radius:[999,999],edge:{width:1,color:"line",ring:false}}),unit:/* @__PURE__ */kl({w:36,h:28,minHeight:28,radius:[999,999],center:true,color:"muted"}),unitText:/* @__PURE__ */xl({size:13,weight:700,lineHeight:20.15,color:"muted",wrap:"auto"}),unitOn:/* @__PURE__ */kl({w:36,h:28,minHeight:28,radius:[999,999],bg:"ink",center:true,color:"surface"}),unitOnText:/* @__PURE__ */xl({size:13,weight:700,lineHeight:20.15,color:"surface",wrap:"auto"}),now:/* @__PURE__ */kl({w:483.078,h:88,gap:[24,12],center:true}),glyph:/* @__PURE__ */kl({w:88,h:88}),temp:/* @__PURE__ */xl({size:51.2,weight:700,lineHeight:51.2,color:"ink",tracking:-1.536,wrap:"auto",tabular:true}),tempFluid:{min:44,vw:4,max:56},sky:/* @__PURE__ */xl({size:15,weight:400,lineHeight:21,color:"muted",wrap:"auto",marginTop:6}),tags:/* @__PURE__ */kl({w:483.078,h:30,marginTop:24,gap:[8,8]}),tag:/* @__PURE__ */kl({w:123.75,h:30,padding:[0,14,0,14],gap:[8,8],minHeight:30,radius:[999,999],bg:"surface",edge:{width:1,color:"#F2C763",ring:false},center:true,color:"ink"}),tagText:/* @__PURE__ */xl({size:13,weight:700,lineHeight:20.15,color:"ink",wrap:"auto"}),dot:7,hues:{red:"alert",yellow:"#F2C763",green:"go",blue:"#4E98C9",plain:"line",plainDot:"muted"},phone:{upTo:559,card:/* @__PURE__ */kl({w:335,h:272,padding:[18,18,18,18],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),glyph:/* @__PURE__ */kl({w:64,h:64})}},to={card:/* @__PURE__ */kl({w:361,h:48,padding:[0,16,0,16],gap:[12,12],minHeight:48,radius:[10,10],bg:"#FBF1EE",center:true,color:"#6D1D14"}),icon:/* @__PURE__ */kl({w:20,h:20,color:"alert"}),title:/* @__PURE__ */xl({size:15,weight:700,lineHeight:23.25,color:"#6D1D14"}),titleGap:6,text:/* @__PURE__ */xl({size:15,weight:400,lineHeight:23.25,color:"#6D1D14"}),chev:/* @__PURE__ */kl({w:16,h:16,color:"#6D1D14"}),pressScale:.98},io={grid:/* @__PURE__ */kl({w:361,h:591.25,gap:[12,12]}),tile:/* @__PURE__ */kl({w:174.5,h:143.359,padding:[14,14,14,14],gap:[6,6],minHeight:120,radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),label:/* @__PURE__ */xl({size:12,weight:700,lineHeight:15.6,color:"muted",tracking:.72,face:"mono",upper:true}),labelGap:6,icon:/* @__PURE__ */kl({w:16,h:16,color:"ink"}),chev:/* @__PURE__ */kl({w:14,h:14,color:"muted"}),value:/* @__PURE__ */xl({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),valueGap:6,unit:/* @__PURE__ */xl({size:15,weight:700,lineHeight:16.5,color:"ink",tabular:true}),note:/* @__PURE__ */xl({size:13,weight:400,lineHeight:18.2}),pressScale:.98},ro={cell:/* @__PURE__ */kl({w:54,h:100,padding:[2,0,0,0],gap:[4,4],center:true}),column:54,rows:[18,32,16,20,6],time:/* @__PURE__ */xl({size:13,weight:400,lineHeight:15.6,color:"muted"}),timeNow:/* @__PURE__ */xl({size:13,weight:700,lineHeight:15.6,color:"ink"}),glyph:/* @__PURE__ */kl({w:32,h:32}),icon:/* @__PURE__ */kl({w:24,h:24,color:"#926F06"}),chance:/* @__PURE__ */xl({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),temp:/* @__PURE__ */xl({size:15,weight:700,lineHeight:18,color:"ink",tabular:true}),quiet:/* @__PURE__ */xl({size:13,weight:400,lineHeight:15.6,color:"muted",tabular:true}),bar:/* @__PURE__ */kl({w:52,h:6,radius:[3,3],bg:"#77DDAC"}),barInset:1,levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},windows:/* @__PURE__ */kl({w:327,h:76.594,marginBottom:12,gap:[8,8]}),window:/* @__PURE__ */kl({w:159.5,h:76.594,padding:[10,12,10,12],gap:[2,2],radius:[10,10],bg:"tintGo"}),windowTitle:/* @__PURE__ */xl({size:15,weight:700,lineHeight:19.5,color:"ink",tabular:true}),windowText:/* @__PURE__ */xl({size:13,weight:400,lineHeight:17.55}),legend:/* @__PURE__ */kl({w:327,h:18.188,marginTop:12,gap:[14,4],color:"muted"}),legendItem:/* @__PURE__ */kl({w:47.813,h:18.188,gap:[6,6],center:true,color:"muted"}),legendText:/* @__PURE__ */xl({size:13,weight:400,lineHeight:18.2,color:"muted",marginTop:12}),legendDot:/* @__PURE__ */kl({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"muted"})},no={row:/* @__PURE__ */kl({w:327,h:48,gap:[8,8],minHeight:48,center:true}),rule:{width:1,color:"line"},columns:[48,32,30,155,30],walkColumns:[42,30,28,73,28,86],day:/* @__PURE__ */xl({size:15,weight:700,lineHeight:18,color:"ink"}),sky:/* @__PURE__ */kl({w:32,h:30,gap:[1,1]}),glyph:/* @__PURE__ */kl({w:30,h:30}),chance:/* @__PURE__ */xl({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),low:/* @__PURE__ */xl({size:14,weight:400,lineHeight:14,color:"muted",face:"mono",tabular:true}),high:/* @__PURE__ */xl({size:14,weight:400,lineHeight:14,color:"ink",face:"mono",tabular:true}),bar:/* @__PURE__ */kl({w:155,h:6,radius:[3,3],bg:"#F1F5F2"}),fill:/* @__PURE__ */kl({w:99.203,h:6,radius:[3,3],bg:"#DDB44F",x:23.25}),tag:/* @__PURE__ */kl({w:42.016,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FCF0D6",edge:{width:1,color:"tintYellowEdge",ring:true},center:true,color:"ink"}),tagText:/* @__PURE__ */xl({size:12,weight:700,lineHeight:14.4,color:"ink"}),tags:{good:{bg:"tintGo",ring:"#8FE3BB",ringWidth:1,color:"ink"},ok:{bg:"#FCF0D6",ring:"tintYellowEdge",ringWidth:1,color:"ink"},warn:{bg:"#FBF1EE",ring:"#E9B8AB",ringWidth:1,color:"#6D1D14"},rain:{bg:"tintBlue",ring:"#AFD1E7",ringWidth:1,color:"ink"}}},lo={phone:{list:/* @__PURE__ */kl({w:361,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */kl({w:361,h:26,gap:[8,8],center:true}),columns:[24,56,185,72],icon:/* @__PURE__ */kl({w:26,h:26}),name:/* @__PURE__ */xl({size:15,weight:400,lineHeight:23.25}),bar:/* @__PURE__ */kl({w:185,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */xl({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono"}),mid:/* @__PURE__ */xl({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono"}),low:/* @__PURE__ */xl({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono"})}},web:{list:/* @__PURE__ */kl({w:344.891,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */kl({w:344.891,h:26,gap:[12,12],center:true}),columns:[26,64,138.891,80],icon:/* @__PURE__ */kl({w:26,h:26}),name:/* @__PURE__ */xl({size:15,weight:400,lineHeight:23.25,wrap:"auto"}),bar:/* @__PURE__ */kl({w:138.891,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */xl({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),mid:/* @__PURE__ */xl({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),low:/* @__PURE__ */xl({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono",wrap:"auto"})}},webPhoneUpTo:559},oo={phone:{body:/* @__PURE__ */kl({w:361,h:88.344,gap:[12,12]}),gap:12,picks:/* @__PURE__ */kl({w:361,h:36,gap:[10,10]}),on:/* @__PURE__ */kl({w:103.016,h:36,padding:[0,12,0,12],gap:[6,6],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),onText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:19.5,color:"ink"}),off:/* @__PURE__ */kl({w:86.875,h:36,padding:[0,12,0,12],gap:[6,6],minHeight:36,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),offText:/* @__PURE__ */xl({size:15,weight:400,lineHeight:19.5,color:"ink"}),check:/* @__PURE__ */kl({w:16,h:16,color:"ink"}),read:/* @__PURE__ */kl({w:361,h:40.344,gap:[12,0]}),value:/* @__PURE__ */xl({size:36,weight:700,lineHeight:37.8,color:"ink",tracking:-.72,tabular:true}),word:/* @__PURE__ */xl({size:17,weight:700,lineHeight:26.35,color:"alert",tracking:.34,face:"mono",upper:true})},web:{body:/* @__PURE__ */kl({w:344.891,h:140.344}),gap:16,picks:/* @__PURE__ */kl({w:344.891,h:82,marginTop:16,marginBottom:16,gap:[10,10]}),on:/* @__PURE__ */kl({w:107.016,h:36,padding:[0,14,0,14],gap:[6,6],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"pink",ring:false},center:true,color:"ink"}),onText:/* @__PURE__ */xl({size:15,weight:700,lineHeight:19.5,color:"ink",wrap:"auto"}),off:/* @__PURE__ */kl({w:90.875,h:36,padding:[0,14,0,14],gap:[6,6],minHeight:36,radius:[999,999],bg:"surface",edge:{width:1,color:"ink",ring:false},center:true,color:"ink"}),offText:/* @__PURE__ */xl({size:15,weight:400,lineHeight:19.5,color:"ink",wrap:"auto"}),check:/* @__PURE__ */kl({w:16,h:16,color:"ink"}),read:/* @__PURE__ */kl({w:344.891,h:42.344,gap:[12,0]}),value:/* @__PURE__ */xl({size:38.4,weight:700,lineHeight:40.32,color:"ink",tracking:-.768,wrap:"auto",tabular:true}),word:/* @__PURE__ */xl({size:17,weight:700,lineHeight:26.35,color:"#A05E32",tracking:.34,face:"mono",upper:true,wrap:"auto"})},fluid:{min:36,vw:3,max:44},tones:{good:"#0C844B",ok:"#A05E32",low:"alert"}};function ao(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e))for(let t of Object.values(e))ao(t);return e}var so=yl,co=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function uo(e){return Object.defineProperty(e,co,{value:e,enumerable:true}),ao(e)}var po={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},ho=uo({name:"everfur",colors:{bg:so.color.bg,surface:so.color.efWhite,text:so.color.text,ink:so.role.color.ink,onInk:so.color.efWhite,muted:so.role.color.muted,line:so.role.color.line,go:so.role.color.go,onGo:so.role.color.ink,pink:so.color.efDustyPink,onPink:so.role.color.ink,alert:so.color.alert,alertDeep:so.color.alertDeep,icoSage:so.role.color.icoSage,bgMist:so.color.bgMist,tintSage:so.role.color.tintSage,tintBlue:so.role.color.tintBlue,tintGo:so.role.color.tintGo,tintPink:so.role.color.tintPink,tintYellowEdge:so.role.color.tintYellowEdge,tintWatch:Tl.colors.watch,tintRed:so.role.color.tintRed,scrim:Tl.colors.scrim,grab:Tl.colors.grab,focus:so.role.color.ink,planInk:Tl.colors.planInk,planOnInk:Tl.colors.planOnInk,planAccent:Tl.colors.planAccent,planLink:Tl.colors.planLink,planAccentWash:Tl.colors.planAccentWash,planAccentChip:Tl.colors.planAccentChip,planLinkWash:Tl.colors.planLinkWash,planLinkChip:Tl.colors.planLinkChip},radius:{...so.radius},space:{...so.space},type:{family:so.font.family.base,mono:so.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:so.font.size.xs,sm:so.font.size.sm,md:so.font.size.md,lg:so.font.size.lg,xl:so.font.size.xl},weight:{...so.font.weight},lineHeight:{...so.font.lineHeight},scaleCaps:po},motion:{duration:{press:so.motion.duration.press,fade:so.motion.duration.fade,enter:so.motion.duration.enter,sheet:so.motion.duration.sheet,sheetOut:so.motion.duration.sheetOut},easing:{out:so.motion.easing.out,drawer:so.motion.easing.drawer},pop:{duration:so.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:Tl});function go(e){return e[co]??ho}function fo(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function mo(e,t){if(!fo(e)||!fo(t))return t===void 0?e:t;let i={...e};for(let[r,n]of Object.entries(t))n!==void 0&&(i[r]=mo(e[r],n));return i}function resolveTheme(e,t=ho){if(!e)return t;let i=mo(t,e),r=e.colors;if(r){let e=i.colors;for(let[t,i,n]of bo){let l=r[i];l!==void 0&&r[t]===void 0&&(e[t]=yo(l,n,e.surface)??e[t]??l)}}return ao(i)}var bo=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function yo(e,t,i){let r=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e??"");return t?[t[1],t[2],t[3]].map(e=>parseInt(e,16)):void 0},[n,l]=[r(e),r(i)];if(!(!n||!l))return`#${n.map((e,i)=>Math.round(e*t+(l[i]??0)*(1-t)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var wo=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),t=globalThis,i=t[e]??(t[e]=createContext(null));return i.displayName??(i.displayName="EverfurThemeContext"),i})();function ThemeProvider({theme:e,children:r}){let n=zo(),l=e===void 0||ko(e)?e:vo(e),o=i(()=>ko(e)?So(e):resolveTheme(e,n),[l,n]);return t(wo.Provider,{value:o},r)}function vo(e){return JSON.stringify(e,(e,t)=>fo(t)&&!Array.isArray(t)?Object.fromEntries(Object.keys(t).sort().map(e=>[e,t[e]])):t)}function ko(e){return e!==void 0&&Object.isFrozen(e)&&xo.every(t=>t in e)}var xo=["name","colors","radius","space","type","motion","metrics"];function To(e,t){if(e===void 0)return true;if(!fo(e))return t!==void 0;if(!fo(t))return false;for(let i of Object.keys(e))if(!To(e[i],t[i]))return false;return true}var Io=/* @__PURE__ */new WeakMap;function So(e){let t=Io.get(e);if(t)return t;if(To(ho,e))return Io.set(e,e),e;let i=go(e),r=mo(ho,i===ho?e:mo(i,e));r[co]=i;let n=ao(r);return Io.set(e,n),n}function zo(){let e=r(wo);return e?So(e):ho}var Do=e=>Math.round(e*1e3)/1e3;function Co(e,t=false){return t?e>450?"monoBold":"mono":e>500?"bold":e>450?"medium":"regular"}function Ho(e,t){let i=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(!i)return e;let[r,n,l]=[i[1],i[2],i[3]].map(e=>parseInt(e,16));return`rgba(${r}, ${n}, ${l}, ${t})`}function Fo(e){let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(t)return[t[1],t[2],t[3]].map(e=>parseInt(e,16));let i=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(e);return i?[i[1],i[2],i[3]].map(Number):void 0}function _o(e,t,i,r){let[n,l]=[Fo(e),Fo(i)];return!n||!l?r:`rgb(${n.map((e,i)=>Math.round(e*t+(l[i]??0)*(1-t))).join(", ")})`}function Oo(e,t){let i=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(t),r=i?.[1];if(!i||r===void 0||!(r in e.colors))return t;let n=e.colors[r];return i[2]===void 0?n:Ho(n,Number(i[2]))}function Eo(e,t){return t==="none"?"transparent":Oo(e,t)}var Po=.45;function Lo(e,t,i,r=false){let n=e.metrics.button;if(t==="text"){let t=n.text;return{minHeight:0,paddingX:0,gap:n.ink.gap,radius:0,borderWidth:0,borderColor:"transparent",background:"transparent",iconSize:n.inkSm.iconSize,text:{size:t.fontSize,weight:t.fontWeight,lineHeight:Do(t.fontSize*t.lineHeight),color:Oo(e,t.color)},pressScale:1,pressOpacity:t.pressOpacity,disabledOpacity:n.blockedOpacity??Po,fill:false,ring:false}}let l=e.metrics.variants.button,o=Bo(i),a=t==="outline"||t==="danger"||t==="warn",s=o?{...i==="compactSm"?l.sm:i==="compactLg"?l.lg:l.ink,borderWidth:a?l.outline.borderWidth:0,ring:l.outline.ring}:i==="row"?n.row:t==="danger"?n.danger:i==="sm"?n[`${t}Sm`]:n[t],c=e.colors,d=t==="money"||t==="warn"?n[t]:void 0,u={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=d?{bg:Eo(e,d.bg),fg:Oo(e,d.fg),edge:Oo(e,d.edgeColor)}:u[t],h=t==="outline"&&r&&!o?n.outlineInSheetWeight:s.fontWeight;return{minHeight:s.minHeight,paddingX:s.paddingX,gap:s.gap,radius:e.radius.pill,borderWidth:s.borderWidth,borderColor:p.edge,background:p.bg,iconSize:s.iconSize,text:{size:s.fontSize,weight:h,lineHeight:Do(s.fontSize*s.lineHeight),color:p.fg},pressScale:e.motion.reduced?1:o?l.press:e.metrics.press.button,pressOpacity:1,disabledOpacity:o?l.disabledOpacity:n.blockedOpacity??Po,fill:s.fill,ring:s.ring}}function Bo(e){return e==="compact"||e==="compactSm"||e==="compactLg"}function Ao(e,t){let i=e.metrics.pill,r=i.tones[t],n=t==="clear"?e.colors.ink:Oo(e,r.fg);return{minHeight:i.minHeight,paddingX:i.paddingX,radius:e.radius.pill,background:Oo(e,r.bg),ring:r.ring>0?{width:r.ring,color:Oo(e,r.ringColor)}:null,dot:t==="new"?{size:i.dot,gap:i.dotGap,color:e.colors.go}:t==="allergy"?{size:i.allergyDot.size,gap:i.allergyDot.gap,color:Oo(e,i.allergyDot.color)}:null,text:{size:i.fontSize,weight:i.fontWeight,lineHeight:Do(i.fontSize*i.lineHeight),color:n,mono:i.mono,tracking:i.letterSpacing,upper:i.upper}}}function Ro(e,t){let i=e.metrics.sheet,r=i.titleSize,n=i.titleLineHeight??e.metrics.card.titleLineHeight;return{size:r,weight:i.titleWeight??e.metrics.card.titleWeight,lineHeight:Do(r*n),color:Oo(e,i.titleColor??"ink"),tracking:i.titleTracking??e.metrics.card.titleTracking}}function jo(e){let t=e.metrics,i=e.colors;return{cardTitle:{size:t.card.titleSize,weight:t.card.titleWeight,lineHeight:Do(t.card.titleSize*t.card.titleLineHeight),color:i.ink,tracking:t.card.titleTracking},cardLead:{size:t.card.leadSize,weight:e.type.weight.regular,lineHeight:Do(t.card.leadSize*t.card.leadLineHeight),color:i.text},body:{size:t.card.bodySize,weight:e.type.weight.regular,lineHeight:Do(t.card.bodySize*t.card.bodyLineHeight),color:i.text},kicker:{size:t.kicker.fontSize,weight:t.kicker.fontWeight,lineHeight:Do(t.kicker.fontSize*t.kicker.lineHeight),color:i.muted,mono:true,tracking:t.kicker.letterSpacing,upper:true},sheetTitle:Ro(e),stepperValue:{size:t.quantityStepper.valueSize,weight:t.quantityStepper.valueWeight,lineHeight:Do(t.quantityStepper.valueSize*t.quantityStepper.valueLineHeight),color:Oo(e,t.quantityStepper.valueColor??"text")},tab:{size:t.tabs.fontSize,weight:t.tabs.fontWeight,lineHeight:Do(t.tabs.fontSize*t.tabs.lineHeight),color:i.muted},tabCurrent:{size:t.tabs.fontSize,weight:t.tabs.currentWeight,lineHeight:Do(t.tabs.fontSize*t.tabs.lineHeight),color:i.ink},emptyTitle:{size:t.empty.titleSize,weight:t.empty.titleWeight,lineHeight:Do(t.empty.titleSize*t.empty.titleLineHeight),color:i.ink,tracking:t.empty.titleTracking},emptyLead:{size:t.empty.leadSize,weight:e.type.weight.regular,lineHeight:Do(t.empty.leadSize*t.empty.leadLineHeight),color:i.text},emptyLink:{size:t.empty.linkSize,weight:t.empty.linkWeight,lineHeight:Do(t.empty.linkSize*t.card.bodyLineHeight),color:i.ink},sumTerm:{size:t.summary.termSize,weight:e.type.weight.regular,lineHeight:Do(t.summary.termSize*t.summary.termLineHeight),color:i.muted},sumValue:{size:t.summary.valueSize,weight:t.summary.valueWeight,lineHeight:Do(t.summary.valueSize*t.summary.valueLineHeight),color:i.ink},sumTotal:{size:t.summary.totalSize,weight:t.summary.valueWeight,lineHeight:Do(t.summary.totalSize*t.summary.totalLineHeight),color:i.ink}}}function $o(e){let t=e.metrics.quantityStepper;return{edge:{width:t.borderWidth,color:Oo(e,t.borderColor),inset:t.ring},button:t.button,icon:t.icon,valueMinWidth:t.valueMinWidth,fill:Eo(e,t.fill??"none"),glyph:Oo(e,t.glyph??"ink"),off:{color:Oo(e,t.offColor),opacity:t.offOpacity}}}function Wo(e,t){return{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:Oo(e,t.color),...t.face==="mono"?{mono:true}:{},...t.face==="serif"?{serif:true}:{},...t.tracking?{tracking:t.tracking}:{},...t.upper?{upper:true}:{},...t.deco==="none"?{}:{deco:t.deco==="strike"?"strike":"underline",decoOffset:t.decoOffset,decoThickness:t.decoThickness},...t.tabular?{tabular:true}:{},...t.wrap==="auto"?{}:{wrap:t.wrap==="balance"?"balance":"pretty"}}}function Mo(e,t){return t==="none"?void 0:Oo(e,t)}function No(e){let t=e.metrics.summary,i=(e,t)=>Do(e*t);return{paddingX:t.paddingX,paddingY:t.paddingY,radius:t.radius,borderWidth:t.borderWidth,borderColor:e.colors.line,background:Oo(e,t.background),shadow:t.shadow,row:{paddingY:t.rowPaddingY,minHeight:t.rowMinHeight,gapX:t.rowGapX,gapY:t.rowGapY,divider:t.rowDivider,center:t.rowCenter},totalRowMinHeight:t.totalRowMinHeight,gap:t.gap??0,totalMarginTop:t.totalMarginTop??0,tabular:t.tabular,term:{size:t.termSize,weight:e.type.weight.regular,lineHeight:i(t.termSize,t.termLineHeight),color:Oo(e,t.termColor)},value:{size:t.valueSize,weight:t.valueWeight,lineHeight:i(t.valueSize,t.valueLineHeight),color:Oo(e,t.valueColor)},totalTerm:{size:t.totalTermSize,weight:t.totalTermWeight,lineHeight:i(t.totalTermSize,t.termLineHeight),color:Oo(e,t.totalTermColor)},total:{size:t.totalSize,weight:t.totalWeight,lineHeight:i(t.totalSize,t.totalLineHeight),color:Oo(e,t.valueColor)},off:Wo(e,e.metrics.summary.off)}}function Go(e,t){let i=e.metrics.skeleton.widths;return`${i[t%i.length]}%`}function qo(e,t,i){return Math.max(t,i===void 0?e:Math.min(i,e))}function Uo(e,t,i){return i!==void 0?i:e===void 0?void 0:`${e}-${t}`}var Vo=e=>e,Yo=e=>"edge"in e&&"shadow"in e&&"fit"in e,Xo=e=>"deco"in e&&"face"in e&&"tabular"in e;function Ko(e){let t=/* @__PURE__ */new Map;for(let[i,r]of Object.entries(e))t.has(r)||t.set(r,i);return t}var Qo,Jo=/* @__PURE__ */new WeakMap;function Zo(e,t,i){let r=e.get(i),n=r===void 0?void 0:t[r];return typeof n=="number"?n:i}function ea(e){let t=ho;return e.space===t.space&&e.radius===t.radius&&e.type.size===t.type.size&&e.type.weight===t.type.weight}function ta(e,t){let i=ho;Qo??(Qo={space:Ko(Vo(i.space)),radius:Ko(Vo(i.radius)),size:Ko(Vo(i.type.size)),weight:Ko(Vo(i.type.weight))});let r=Qo,n=t=>Zo(r.space,Vo(e.space),t),l=t=>Zo(r.radius,Vo(e.radius),t),o=t=>Array.isArray(t)?t.map(o):t===null||typeof t!="object"?t:Yo(t)?{...t,padding:t.padding.map(n),gap:t.gap.map(n),marginTop:n(t.marginTop),marginBottom:n(t.marginBottom),radius:t.radius.map(l)}:Xo(t)?{...t,size:Zo(r.size,Vo(e.type.size),t.size),weight:Zo(r.weight,Vo(e.type.weight),t.weight),marginTop:n(t.marginTop),paddingTop:n(t.paddingTop)}:Object.fromEntries(Object.entries(t).map(([e,t])=>[e,o(t)]));return o(t)}function ia(e,t){if(ea(e))return t;let i=Jo.get(t);i||Jo.set(t,i=/* @__PURE__ */new WeakMap);let r=i.get(e);if(r)return r;let n=ta(e,t);return i.set(e,n),n}function ra(e,t,i,r,n=false){let l=e.length;if(l===0||t<=0)return[];let{rows:o,gap:a,widthShare:s}=r.grid,c=t/l,d=Math.max(1,Math.round(c*s)),u=Number(((i-(o-1)*a)/o).toFixed(2));return e.map((e,l)=>{let s=Number.isFinite(e)?Math.min(10,Math.max(0,e)):0,p=[];for(let e=0;e<o;e+=1){let t=Number(Math.max(0,Math.min(1,s-e)).toFixed(3));t>0&&p.push({y:Number((i-(e+1)*((i-(o-1)*a)/o)-e*a).toFixed(2)),height:u,opacity:t})}let h=Math.round(l*c+(c-d)/2);return{x:n?Math.round(t-h-d):h,width:d,zone:s>=r.zones.lot?"lot":s>=r.zones.some?"some":"go",lights:p}})}var na=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#SurfaceContext@v1"),t=globalThis;return t[e]??(t[e]=createContext(null))})();function la(){return r(na)}var oa={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function aa(e,t){let i=e.colors;switch(t){case"ink":return i.ink;case"text":return i.text;case"muted":return i.muted;case"danger":return i.alertDeep;case"inverse":return i.onInk;default:return}}function sa(e,t,i,r){let n=Wo(e,e.metrics.text[t]),l=aa(e,i);return{...n,...l?{color:l}:{},...r?{weight:e.type.weight[r]}:{}}}var ca=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),t=globalThis,i=t[e]??(t[e]=createContext(null));return i.displayName??(i.displayName="EverfurPressFeedbackContext"),i})();function da(){return r(ca)}function ua(e,t,i,r={}){if(!e||r.disabled)return{onPress:i,onPressIn:void 0};let{onPressIn:n,onPress:l,haptic:o}=e,a=r.haptics!==false&&t.haptic&&o?o:void 0;return{onPress:i&&(l||a)?()=>{a?.(t),l?.(t),i()}:i,onPressIn:n?()=>n(t):void 0}}function pa(e,t,i=1){return e?.pressScale?.[t]??i}var ha={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function ga(e,t){return e.type.variantTiers?.[t]??oa[t]}var fa=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),t=globalThis,i=t[e]??(t[e]=createContext(null));return i.displayName??(i.displayName="EverfurReducedMotionContext"),i})();function ma(){return r(fa)}function ba(e,t){let i=Co(t.weight,t.mono===true);return{fontFamily:t.serif?e.type.faces.serif??e.type.faces.bold:e.type.faces[i],...e.type.namedFaces?{}:{fontWeight:String(t.weight)},fontSize:t.size,lineHeight:t.lineHeight,color:t.color,...t.tracking?{letterSpacing:t.tracking}:{},...t.upper?{textTransform:"uppercase"}:{},...t.deco?ya(t):{},...t.tabular?{fontVariant:["tabular-nums"]}:{},...t.wrap&&w.OS==="web"?{textWrap:t.wrap}:{}}}function ya(e){let t={textDecorationLine:e.deco==="strike"?"line-through":"underline"};return w.OS!=="web"?t:{...t,...e.decoOffset?{textUnderlineOffset:e.decoOffset}:{},...e.decoThickness?{textDecorationThickness:e.decoThickness}:{}}}function wa(e,t){let[i=0,r=0,n=0,l=0]=t.padding,[o=0,a=0]=t.radius,s=Mo(e,t.bg);return{paddingTop:i,paddingRight:r,paddingBottom:n,paddingLeft:l,...t.marginTop?{marginTop:t.marginTop}:{},...t.gap[0]?{columnGap:t.gap[0]}:{},...t.gap[1]?{rowGap:t.gap[1]}:{},...o===a?o?{borderRadius:o}:{}:{borderTopLeftRadius:o,borderTopRightRadius:o,borderBottomLeftRadius:a,borderBottomRightRadius:a},...s?{backgroundColor:s}:{},...t.edge.width>0&&!t.edge.ring?{borderWidth:t.edge.width,borderColor:Oo(e,t.edge.color)}:{},...t.minHeight?{minHeight:t.minHeight}:{},...za(t.shadow)}}function va(e,t){return t.edge.width>0&&t.edge.ring?Da(t.edge.width,Oo(e,t.edge.color),t.radius[0]??0):null}function ka(){if(w.OS!=="web")return false;let e=globalThis;return typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)").matches}function xa(e){let[t,i]=n(()=>e===null&&ka());return l(()=>{if(e!==null)return;let t=true,r=v?.isReduceMotionEnabled;if(typeof r=="function"){let e=r.call(v);e!=null&&typeof e.then=="function"&&e.then(e=>{t&&i(e===true)},()=>{})}let n=v?.addEventListener?.("reduceMotionChanged",e=>i(e===true));return()=>{t=false,n?.remove?.()}},[e]),e??t}function Ta(e){let t=xa(ma());return e.motion.reduced||t}function Ia(e,t,i){return{...e===void 0?{}:{expanded:e},...t===void 0?{}:{checked:t},...i===void 0?{}:{selected:i!==false}}}function Sa(e){let t=Math.max(0,Math.ceil((44-e)/2));return t===0?void 0:{top:t,bottom:t,left:t,right:t}}function za(e){return e.blur===0&&e.y===0&&e.x===0?null:{shadowColor:e.color,shadowOffset:{width:e.x,height:e.y},shadowOpacity:1,shadowRadius:e.blur,elevation:1}}function Da(e,t,i){let r={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:i};return w.OS==="web"?{...r,boxShadow:`inset 0 0 0 ${e}px ${t}`}:{...r,borderWidth:e,borderColor:t}}var Ca=/* @__PURE__ */new Set;function Ha(e,t,i){let r=typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production";!t||i||Ca.has(e)||!r||(Ca.add(e),console.warn(`@everfur-health/ui-native: ${e} draws its close (onClose) without a closeLabel, so a screen reader cannot name it. Pass closeLabel with onClose.`))}function Fa(e){return Math.round(e*100)/100}function _a(e,t){let i=Number(t.weight),r=t.letterSpacing??0;return{...ba(e,{size:t.size,weight:i,lineHeight:Fa(t.size*t.lineHeight),color:e.colors.text,tracking:r?Fa(t.size*r):0,mono:t.face==="mono",upper:t.uppercase===true}),flexShrink:1}}function Oa(e){return e==="auto"?null:w.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:w.OS==="android"&&e==="balance"?{textBreakStrategy:"balanced"}:null}function Ea(e,t){let i=e.type.weight[t];return e.type.namedFaces?{fontFamily:e.type.faces[Co(i)]}:{fontWeight:String(i)}}function Text({tier:e,variant:i,tone:r,weight:n,level:l,lineBreak:o,typeRole:a,...s}){let c=zo();if(a){let i=c.type.scaleCaps[e??a.tier??"content"],r=o?Oa(o):null;return t(f,{...i>0?{maxFontSizeMultiplier:i}:{},...r,...s,style:[_a(c,a),s.style]})}let d=c.type.scaleCaps[e??(i?ga(c,i):"content")],u=Oa(o??(i?ha[i]:"auto"));if(i===void 0&&r===void 0&&n===void 0&&l===void 0)return u?t(f,{...d>0?{maxFontSizeMultiplier:d}:{},...u,...s}):t(f,d>0?{maxFontSizeMultiplier:d,...s}:s);let p=aa(c,r),h=i?ba(c,sa(c,i,r,n)):{...p?{color:p}:{},...n?Ea(c,n):{}},g=l===void 0?{}:{accessibilityRole:"header",...w.OS==="web"?{"aria-level":l}:{}};return t(f,{...d>0?{maxFontSizeMultiplier:d}:{},...u,...g,...s,style:[h,s.style]})}var Pa=24,La=16,Ba=.8,Aa=e=>Math.round(e*La);function Ra(e,t,i,r,n,l){let o=e-i/2,a=t-r/2,s=Math.round(o),c=Math.round(a);return{position:"absolute",left:s,top:c,width:i,height:r,transform:[{translateX:o-s},{translateY:a-c},{rotate:`${Math.atan2(l,n)*180/Math.PI}deg`},{scale:1/La}]}}function ja(e,t,i){for(let r of e.strokes){let e=r.width*t,n=r.points,l=n.length/2,o=r.closed?l:l-1;for(let a=0;a<o;a+=1){let o=(a+1)%l,s=(n[a*2]??0)*t,c=(n[a*2+1]??0)*t,d=(n[o*2]??0)*t-s,u=(n[o*2+1]??0)*t-c,p=Math.hypot(d,u);if(p===0&&!(l===2&&r.cap))continue;let h=p===0?1:d/p,g=p===0?0:u/p,f=r.closed||a>0||r.cap?e/2:0,m=r.closed||o!==l-1||r.cap?e/2:0,b=(p+m-f)/2;i.push({paint:"backgroundColor",style:{...Ra(s+h*b,c+g*b,Aa(p+f+m),Aa(e),h,g),borderTopLeftRadius:f>0?Aa(e)/2:0,borderBottomLeftRadius:f>0?Aa(e)/2:0,borderTopRightRadius:m>0?Aa(e)/2:0,borderBottomRightRadius:m>0?Aa(e)/2:0,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}}function $a(e,t,i){for(let r of e.boxes){let e=(r.w+r.width)*t,n=(r.h+r.width)*t;i.push({paint:"borderColor",style:{...Ra((r.x-r.width/2)*t+e/2,(r.y-r.width/2)*t+n/2,Aa(e),Aa(n),1,0),borderWidth:Aa(r.width*t),borderRadius:(r.radius+r.width/2)*t*La,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}function Wa(e,t,i){for(let r of e.triangles){let e=[0,1,2].map(e=>[(r[e*2]??0)*t,(r[e*2+1]??0)*t]),n=0,l=-1;for(let t=0;t<3;t+=1){let i=e[t]??[0,0],r=e[(t+1)%3]??[0,0],o=Math.hypot(r[0]-i[0],r[1]-i[1]);o>l&&(l=o,n=t)}if(l<=0)continue;let o=e[n]??[0,0],a=e[(n+1)%3]??[0,0],s=e[(n+2)%3]??[0,0],c=(a[0]-o[0])/l,d=(a[1]-o[1])/l,u=(s[0]-o[0])*c+(s[1]-o[1])*d,p=(s[0]-o[0])*-d+(s[1]-o[1])*c,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=Aa(u),b=Aa(l)-m,y=Aa(h);i.push({paint:g?"borderBottomColor":"borderTopColor",style:{...Ra(o[0]+c*(l/2)-d*f,o[1]+d*(l/2)+c*f,m+b,y,c,d),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:y}:{borderTopWidth:y}}})}for(let r of e.seams){let e=(r[0]??0)*t,n=(r[1]??0)*t,l=(r[2]??0)*t-e,o=(r[3]??0)*t-n,a=Math.hypot(l,o),s=Ba*(r[4]??0),c=Ba*(r[5]??0),d=a-s-c;if(a===0||d<=0)continue;let u=s+d/2;i.push({paint:"backgroundColor",style:Ra(e+l/a*u,n+o/a*u,Aa(d),Aa(Ba),l/a,o/a)})}}var Ma=/* @__PURE__ */new WeakMap;function Na(e,t){let i=Ma.get(e);i===void 0&&(i=/* @__PURE__ */new Map,Ma.set(e,i));let r=i.get(t);if(r!==void 0)return r;let n=[],l=t/Pa;return $a(e,l,n),ja(e,l,n),Wa(e,l,n),i.set(t,n),n}function Glyph({icon:e,size:t,color:i,label:r,testID:n,style:l}){let o=zo(),a=t??o.metrics.icon.size,s=i??o.colors.ink;/* @__PURE__ */
29
+ return z(h,{testID:n,pointerEvents:"none",style:[{width:a,height:a},l],...r?{accessible:true,accessibilityRole:"image",accessibilityLabel:r}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:Na(e,a).map((e,t)=>/* @__PURE__ */z(h,{style:[e.style,{[e.paint]:s}]},t))})}var Ga=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),t=globalThis;return t[e]??(t[e]={icons:{},warned:/* @__PURE__ */new Set})})();function qa(e){Object.assign(Ga.icons,e)}function Ua(e){let t=Ga.icons[e];return t===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!Ga.warned.has(e)&&(Ga.warned.add(e),console.warn(`@everfur-health/ui-native: no icon "${e}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),t}function Icon({name:e,...t}){let i=Ua(e);return i?/* @__PURE__ */z(Glyph,{icon:i,...t}):null}function Va(e,t,i,r=1){return Ya(da(),e,t,i,r)}function Ya(e,t,i,r,n=1){let l=ua(e,{component:t,testID:i.testID,...i.item===void 0?{}:{item:i.item},label:i.label,trackId:i.trackId,haptic:i.haptic===true},r,{disabled:i.disabled});return{props:l.onPressIn?{onPress:l.onPress,onPressIn:l.onPressIn}:{onPress:l.onPress},scale:pa(e,t,n)}}var Xa=e=>`cubic-bezier(${e.join(", ")})`,Ka=(e,t)=>typeof e=="function"?e({pressed:t}):e,Qa;function Ja(){return Qa??(Qa=x.createAnimatedComponent(g))}function Za(e,t,i){let[r,n,l,o]=e.motion.easing.out;return x.timing(t,{toValue:i,duration:e.motion.duration.press,easing:T.bezier(r,n,l,o),useNativeDriver:true})}function PressBox({style:e,scale:i,still:r,pop:l,onPressIn:o,onPressOut:s,...c}){let d=zo(),u=a(null),[p,h]=n(false),f=!r&&i!==1,m=!r&&l?.scale!=null;if(w.OS==="web"){let r=f?{transitionProperty:"transform",transitionDuration:`${d.motion.duration.press}ms`,transitionTimingFunction:Xa(d.motion.easing.out)}:null;return t(g,{...c,...l?{ref:l.ref}:null,onPressIn:o,onPressOut:s,style:({pressed:t})=>[Ka(e,t),r,f&&t?{transform:[{scale:i}]}:null]})}if(!f&&!m)return t(g,{...c,onPressIn:o,onPressOut:s,style:e});let b=u.current??(u.current=new x.Value(0)),y=f?b.interpolate({inputRange:[0,1],outputRange:[1,i]}):null,v=y&&m?x.multiply(y,l?.scale):y??l?.scale;return t(Ja(),{...c,onPressIn:e=>{c.disabled||(h(true),f&&Za(d,b,1).start(),o?.(e))},onPressOut:e=>{h(false),f&&Za(d,b,0).start(),s?.(e)},style:[Ka(e,p),{transform:[{scale:v}]}]})}function Button({label:e,onPress:t,tone:i="ink",size:r="md",icon:n,disabled:l=false,loading:o=false,loadingLabel:a,loadingIndicator:s="spinner",fullWidth:c,accessibilityLabel:d,trackId:u,haptic:p,testID:g,style:f,children:m,nativeID:b,onPressIn:y,"aria-expanded":w,"aria-pressed":v,"aria-current":k}){let x=zo(),T=la()==="sheet",I=Ta(x),C=Lo(x,i,r,T),H=l||o,F=c??(T||C.fill),_=o&&s!=="none",O=_&&a?a:d??(_&&a?a:e),E=Va("Button",{testID:g,label:O,trackId:u,haptic:p,disabled:H},t,C.pressScale),P=E.props.onPressIn,L=y&&P?()=>{P(),y()}:y??P;/* @__PURE__ */
30
+ return D(PressBox,{...E.props,onPressIn:L,scale:E.scale,still:I,disabled:H,nativeID:b,hitSlop:Sa(Math.max(C.minHeight,C.text.lineHeight)),accessibilityRole:"button",accessibilityLabel:O,accessibilityState:{disabled:H,busy:o,...Ia(w,v,k)},"aria-busy":o,testID:g,style:({pressed:e})=>[es.base,{minHeight:Math.max(C.minHeight,0),paddingHorizontal:C.paddingX,columnGap:C.gap,borderRadius:C.radius,borderWidth:C.ring?0:C.borderWidth,borderColor:C.borderColor,backgroundColor:C.background},F?es.block:es.auto,H?{opacity:C.disabledOpacity}:null,e&&C.pressOpacity!==1&&!H?{opacity:C.pressOpacity}:null,f],children:[_?/* @__PURE__ */z(S,{size:"small",color:C.text.color,animating:!I,hidesWhenStopped:false,accessibilityLabel:O}):n?/* @__PURE__ */z(Icon,{name:n,size:C.iconSize,color:C.text.color}):null,
31
+ /* @__PURE__ */z(h,{style:es.labelBox,children:/* @__PURE__ */z(Text,{tier:"control",style:[ba(x,C.text),es.label],children:_&&a?a:m??e})}),C.ring&&C.borderWidth>0?/* @__PURE__ */z(h,{pointerEvents:"none",style:Da(C.borderWidth,C.borderColor,C.radius)}):null]})}var es=u.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});var ts={block:{height:16,radius:8},shimmer:{duration:1150,bandShare:.6,bandMin:28,band:"rgba(255, 255, 255, 0.42)",skew:-14}};var is={drop:{color:"rgba(0, 0, 0, 0.16)",x:0,y:10,blur:30,spread:0},go:{h:44,paddingX:18,bg:"go",color:"text"},imgInset:3,totalLineHeight:18.6875};u.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});u.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});function rs(e){return w.OS==="web"?{boxShadow:`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`}:{shadowColor:e.color,shadowOpacity:1,shadowRadius:e.blur/2,shadowOffset:{width:e.x,height:e.y},elevation:Math.round(e.blur/3)}}u.create({st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},acts:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"},compact:{alignItems:"center"},iconBox:{alignItems:"center",justifyContent:"center"},pill:{alignItems:"center",justifyContent:"center"}});u.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:e,tone:t="plain",testID:i,style:r,maxFontSizeMultiplier:n,grouped:l=true}){let o=zo(),a=Ao(o,t);/* @__PURE__ */
32
+ return D(h,{testID:i,...l?{accessible:true,accessibilityLabel:e}:null,style:[ns.pill,{minHeight:a.minHeight,paddingHorizontal:a.paddingX,borderRadius:a.radius,backgroundColor:a.background,...a.dot?{columnGap:a.dot.gap}:{}},r],children:[a.ring?/* @__PURE__ */z(h,{pointerEvents:"none",style:Da(a.ring.width,a.ring.color,a.radius)}):null,a.dot?/* @__PURE__ */z(h,{style:{width:a.dot.size,height:a.dot.size,borderRadius:a.dot.size/2,backgroundColor:a.dot.color}}):null,
33
+ /* @__PURE__ */z(Text,{tier:"control",numberOfLines:1,...n===void 0?{}:{maxFontSizeMultiplier:n},style:[ba(o,a.text),ns.label],children:e})]})}var ns=u.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}}),ls={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:[]},os={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:[]},as={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:[]},ss={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:[]},cs={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:[]},ds={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:[]},us={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:[]},ps={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:[]},hs={strokes:[{width:2,cap:true,closed:false,points:[20,6,9,17,4,12]}],boxes:[],triangles:[],seams:[]},gs={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]},fs={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:[]},ms={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:[]},bs={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:[]},ys={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:[]},ws={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:[]},vs={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:[]},ks={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:[]},xs={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:[]},Ts={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:[]},Is={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:[]},Ss={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:[]},zs={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:[]},Ds={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:[]},Cs={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:[]},Hs={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:[]},Fs={strokes:[{width:2,cap:true,closed:false,points:[5,12,19,12]}],boxes:[],triangles:[],seams:[]},_s={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:[]},Os={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:[]},Es={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:[]},Ps={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:[]},Ls={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:[]},Bs={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:[]},As={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:[]},Rs={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:[]},js={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:[]},$s={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:[]},Ws={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:[]},Ms={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:[]},Ns={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:[]},Gs={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:[]},qs={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:[]},Us={alert:ls,"arrow-left":os,bag:as,bell:ss,bowl:cs,box:ds,calendar:us,camera:ps,check:hs,chevron:gs,clock:fs,download:ms,edit:bs,file:ys,flask:ws,folder:vs,heart:ks,help:xs,house:Ts,image:Is,info:Ss,leaf:zs,lock:Ds,mail:Cs,message:Hs,minus:Fs,more:_s,paw:Os,phone:Es,pill:Ps,pin:Ls,plus:Bs,search:As,send:Rs,shield:js,sparkle:$s,syringe:Ws,upload:Ms,user:Ns,video:Gs,x:qs};function QuantityStepper(e){return Vs(e,void 0)}function InkedQuantityStepper({ink:e,...t}){return Vs(t,e)}function Vs({value:e,min:t=1,max:i,label:r,fewerLabel:n,moreLabel:o,disabled:s=false,variant:c="standard",onChange:d,trackId:u,haptic:p,testID:g,style:f},m){let b=zo(),y=Ta(b),k=$o(b),x=b.metrics.variants.stepper,T=c==="compact",I=s||e<=t,S=s||i!==void 0&&e>=i,C=T?x.press:b.metrics.press.iconButton,H=Va("QuantityStepper",{testID:g?`${g}-fewer`:void 0,item:"fewer",label:n,trackId:u,haptic:p,disabled:I},()=>d(qo(e-1,t,i)),C),F=Va("QuantityStepper",{testID:g?`${g}-more`:void 0,item:"more",label:o,trackId:u,haptic:p,disabled:S},()=>d(qo(e+1,t,i)),C),_=a(e);l(()=>{_.current!==e&&(_.current=e,w.OS==="ios"&&v.announceForAccessibility(`${r}, ${e}`))},[r,e]);let O=(e,t,i,r,n)=>/* @__PURE__ */z(PressBox,{...r.props,scale:r.scale,still:y,disabled:e,hitSlop:Sa(x.button.h),accessibilityRole:"button",accessibilityLabel:i,accessibilityState:{disabled:e},testID:g?`${g}-${n}`:void 0,style:[Ys.button,{width:x.button.w,height:x.button.h,borderRadius:x.button.radius[0]??0},e?{opacity:x.disabledOpacity}:null],children:/* @__PURE__ */z(Glyph,{icon:t==="plus"?Bs:Fs,size:x.icon,color:m??Oo(b,x.button.color)})}),E=(e,t,i,r,n)=>T?O(e,t,i,r,n):/* @__PURE__ */z(PressBox,{...r.props,scale:r.scale,still:y,disabled:e,hitSlop:Sa(k.button),accessibilityRole:"button",accessibilityLabel:i,accessibilityState:{disabled:e},testID:g?`${g}-${n}`:void 0,style:[Ys.button,{width:k.button,height:k.button,borderRadius:k.button/2},e&&k.off.opacity!==1?{opacity:k.off.opacity}:null],children:/* @__PURE__ */z(Glyph,{icon:t==="plus"?Bs:Fs,size:k.icon,color:e?k.off.color:b.colors.ink})}),P=T?va(b,x.track):null;/* @__PURE__ */
34
+ return D(h,{testID:g,style:[Ys.qty,T?[wa(b,x.track),{height:x.track.h}]:{borderWidth:k.edge.inset?0:k.edge.width,borderColor:k.edge.color,borderRadius:b.radius.pill},f],children:[T?P?/* @__PURE__ */z(h,{pointerEvents:"none",style:P}):null:k.edge.inset?/* @__PURE__ */z(h,{pointerEvents:"none",style:Da(k.edge.width,k.edge.color,b.radius.pill)}):null,E(I,"minus",n,H,"fewer"),
35
+ /* @__PURE__ */z(Text,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:r,accessibilityValue:{now:e,min:t,...i!==void 0?{max:i}:{},text:String(e)},"aria-valuenow":e,"aria-valuemin":t,"aria-valuemax":i,accessibilityState:{disabled:s},"aria-disabled":s||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:r=>{r.nativeEvent.actionName==="increment"&&!S&&d(qo(e+1,t,i)),r.nativeEvent.actionName==="decrement"&&!I&&d(qo(e-1,t,i))},accessibilityLiveRegion:"polite",style:T?[ba(b,Wo(b,x.value)),{width:x.valueWidth,textAlign:"center"},m?{color:m}:null]:[ba(b,jo(b).stepperValue),{minWidth:k.valueMinWidth,textAlign:"center",fontVariant:["tabular-nums"]}],children:String(e)}),E(S,"plus",o,F,"more")]})}var Ys=u.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});u.create({row:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},compact:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1},edit:{flexDirection:"row",alignItems:"center",justifyContent:"center"},pressed:{opacity:.6}});u.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"}});u.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:e=3,shape:t,label:i,testID:r,style:n,block:l,color:o}){let a=zo(),s=a.metrics.skeleton,c=o??s.color??a.colors.tintSage,d=i?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:i,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};return l?/* @__PURE__ */z(SkeletonBox,{block:l,fill:c,testID:r,style:n,named:d}):t?/* @__PURE__ */z(h,{testID:r,style:[Xs(a,t,c),n],...d}):/* @__PURE__ */z(h,{testID:r,style:[{rowGap:s.gap,alignSelf:"stretch"},n],...d,children:Array.from({length:Math.max(1,e)},(e,t)=>/* @__PURE__ */z(h,{style:{height:s.lineHeight,width:Go(a,t),borderRadius:a.radius.pill,backgroundColor:c}},t))})}function SkeletonBox({block:e,fill:t,testID:i,style:r,named:o}){let s=zo(),c=Ta(s),d=ts,u=d.shimmer,p=e.shimmer===true&&!c,[g,f]=n(0),m=a(new x.Value(0)).current;l(()=>{if(!p||g<=0)return;m.setValue(0);let e=x.loop(x.timing(m,{toValue:1,duration:u.duration,easing:T.inOut(T.ease),useNativeDriver:w.OS!=="web"}));return e.start(),()=>e.stop()},[p,g,m,u.duration]);let b=Math.max(u.bandMin,g*u.bandShare);/* @__PURE__ */
36
+ return z(h,{testID:i,onLayout:p?e=>f(Math.round(e.nativeEvent.layout.width)):void 0,style:[{width:e.width??"100%",height:e.height??d.block.height,borderRadius:e.radius??d.block.radius,borderCurve:"continuous",backgroundColor:t,overflow:"hidden"},r],...o,children:p&&g>0?/* @__PURE__ */z(x.View,{pointerEvents:"none",style:{position:"absolute",top:-6,bottom:-6,left:0,width:b,backgroundColor:u.band,transform:[{translateX:m.interpolate({inputRange:[0,1],outputRange:[-b,g+b]})},{skewX:`${u.skew}deg`}]}}):null})}function Xs(e,t,i){let r=t.radius==="circle",n=t.width??(r?t.height:void 0),l=Ks(e,t,n);return{height:t.height,...n===void 0?{alignSelf:"stretch"}:{width:n},borderRadius:l,backgroundColor:i}}function Ks(e,t,i){let r=t.radius??"pill";return r==="none"?0:r==="circle"?(typeof i=="number"?Math.min(i,t.height):t.height)/2:e.radius[r]}function SummaryList({rows:e,total:t=false,trailingRows:i=[],loading:r=false,loadingLabel:n,variant:l="standard",note:o,grouped:a=true,lineBreak:s,testID:c,style:d}){let u=zo(),p=No(u);if(r)/* @__PURE__ */
36
37
  return z(h,{testID:c,style:[{padding:p.paddingX,borderRadius:p.radius,backgroundColor:u.colors.surface},d],children:/* @__PURE__ */z(Skeleton,{lines:4,label:n})});let g=typeof t=="object"?[...e,{...t,key:t.key??"total"}]:e,f=t!==false;if(g.length===0)return null;let m=e=>a?{accessible:true,accessibilityLabel:`${e.term}, ${e.value}`}:null,b=s===void 0?null:{lineBreak:s},y=o?{...o,key:o.key??"note"}:void 0,w=[...g,...i,...y?[y]:[]];if(l!=="standard"&&l!=="flush"){let e=u.metrics.variants.summary;/* @__PURE__ */
37
- return z(h,{testID:c,style:[ba(u,l==="inset"?e.inset:e.box),d],children:w.map((t,i)=>{let r=t===y?"note":f&&i===g.length-1?"total":"row",n=r==="note"?e.renewRow:r==="total"?e.totalRow:e.row,l=r==="note"?e.renewTerm:r==="total"?e.totalTerm:e.term,o=r==="note"?e.renew:r==="total"?e.total:e.value;/* @__PURE__ */
38
- return D(h,{testID:Go(c,t.key??i,t.testID),...m(t),style:[Xs.cardRow,{columnGap:n.gap[0]??0,minHeight:n.minHeight||void 0,marginTop:n.marginTop||void 0}],children:[
39
- /* @__PURE__ */z(Text,{...b,style:fa(u,jo(u,l)),children:t.term}),
40
- /* @__PURE__ */z(Text,{...b,style:fa(u,jo(u,o)),children:t.value})]},t.key??`${i}`)})})}let v=l==="flush";/* @__PURE__ */
41
- return z(h,{testID:c,style:[{paddingHorizontal:v?0:p.paddingX,paddingVertical:v?0:p.paddingY,borderWidth:v?0:p.borderWidth,borderColor:p.borderColor,borderRadius:p.radius,backgroundColor:p.background},Ia(p.shadow),d],children:w.map((e,t)=>{let i=t===w.length-1,r=f&&t===g.length-1,n=r?p.totalRowMinHeight:p.row.minHeight;/* @__PURE__ */
42
- return D(h,{testID:Go(c,e.key??t,e.testID),...m(e),style:[Xs.row,{alignItems:p.row.center?"center":"baseline",paddingVertical:p.row.paddingY,columnGap:p.row.gapX,rowGap:p.row.gapY},n?{minHeight:n}:null,i||p.row.divider===0?null:{borderBottomWidth:p.row.divider,borderBottomColor:p.borderColor}],children:[
43
- /* @__PURE__ */z(Text,{...b,style:fa(u,r?p.totalTerm:p.term),children:e.term}),
44
- /* @__PURE__ */z(Text,{...b,style:[fa(u,r?p.total:e.tone==="off"?p.off:p.value),Xs.value,p.tabular?Xs.tabular:null],children:e.value})]},e.key??`${t}`)})})}var Xs=u.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:e,size:t,color:i,style:r}){let n=Io();return typeof e=="function"?e({size:t,color:i??n.colors.ink}):typeof e!="string"?/* @__PURE__ */z(Glyph,{icon:e,size:t,color:i,style:r}):/* @__PURE__ */z(Icon,{name:e,size:t,color:i,style:r})}function Ks(e,t){t>e.value&&e.onMore?e.onMore():t<e.value&&e.onFewer?e.onFewer():e.onChange?.(t)}function Qs(e){let[t,i]=n(null);return{shown:e!==null&&t===e,onShown:()=>i(e)}}function FadeImage({onShown:e,onLoad:t,style:i,...r}){let n=Io(),l=ka(n),o=a(new x.Value(0)).current;/* @__PURE__ */
45
- return z(x.Image,{...r,fadeDuration:0,onLoad:i=>{t?.(i);let r=n.motion.duration.fade;if(l||r<=0){o.setValue(1),e?.();return}x.timing(o,{toValue:1,duration:r,easing:T.out(T.cubic),useNativeDriver:w.OS!=="web"}).start(()=>e?.())},style:[i,{opacity:o}]})}function BlockThumbnail({src:e,alt:t,size:i="xs",icon:r=ss,iconSize:o,tint:a,iconColor:s,onError:c,testID:d,style:u}){let p=Io(),g=p.metrics.thumbnail[i],[f,m]=n(null),[b,y]=n(null),w=e&&f!==e?e:null,v=g.top;l(()=>{if(!v||!w)return;let e=true;return I.getSize(w,(t,i)=>{e&&t>0&&i>0&&y(t/i)},()=>{}),()=>{e=false}},[v,w]);let k=w?g.frame:g.empty,[x=0,T=0,S=0,C=0]=k.padding,[H=0,F=0,_=0,O=0]=g.img.padding,E=ya(p,k),P=g.top&&b!==null;/* @__PURE__ */
46
- return D(h,{testID:d,style:[ba(p,k),i==="md"||i==="lg"?{width:"100%",aspectRatio:1}:{width:k.w,height:k.h},{alignItems:"center",justifyContent:"center",overflow:"hidden"},!w&&a!==void 0?{backgroundColor:a}:null,u],...w?{}:t?{accessible:true,accessibilityRole:"image",accessibilityLabel:t}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:[w?/* @__PURE__ */z(FadeImage,{source:{uri:w},accessibilityLabel:t,accessible:!!t,onError:()=>{m(w),c?.(w)},resizeMode:P?"stretch":g.img.fit==="contain"?"contain":"cover",style:P?{position:"absolute",top:x,left:C,width:k.w-C-T,height:(k.w-C-T)/b}:{position:"absolute",top:x+H,right:T+F,bottom:S+_,left:C+O}},w):/* @__PURE__ */z(BlockIcon,{icon:r,size:o??g.icon.w,color:s??Fo(p,g.icon.color)}),E?/* @__PURE__ */z(h,{pointerEvents:"none",style:E}):null]})}u.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});u.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});u.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});u.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});u.create({base:{alignSelf:"flex-start"}});u.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});u.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}});u.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});u.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}});u.create({offRow:{flexDirection:"row",alignItems:"center",alignSelf:"stretch"},offText:{flexShrink:1,minWidth:0},offAction:{flexDirection:"row",alignItems:"center",marginLeft:"auto",flexShrink:0},row:{flexDirection:"row",alignItems:"flex-start"},copy:{flex:1,minWidth:0},acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}});u.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},topHost:{position:"absolute",alignItems:"center",zIndex:1e3},top:{flexDirection:"row",alignItems:"center"},copy:{flex:1}});u.create({row:{flexDirection:"row",alignItems:"center"}});var Js=[0,0,.58,1];function Zs(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function ec(e){return e===null?null:typeof e=="object"?e.uri:String(e)}function Thumb({m:e,image:t,first:i,fallback:r,onError:l,testID:o}){let a=Io(),s=a.metrics.thumbnail.xs.icon,c=ec(t),[d,u]=n(null),p=c!==null&&d!==c?Zs(t):null,{shown:g,onShown:f}=Qs(p?c:null),m=e.thumbRing,b=e.thumb.radius[0]??0,y=e.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null,w=e.imgInset;/* @__PURE__ */
47
- return z(h,{style:[{margin:-m,padding:m,borderRadius:b+m,backgroundColor:$o(a,e.bar.bg)||void 0},Ia(e.thumb.shadow),i?null:{marginLeft:-m-e.thumbOverlap}],children:/* @__PURE__ */D(h,{testID:o,style:[ba(a,{...e.thumb,shadow:{...e.thumb.shadow,x:0,y:0,blur:0}}),{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,width:e.thumb.w,height:e.thumb.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!g&&r?.tint!==void 0?{backgroundColor:r.tint}:null],children:[g?null:/* @__PURE__ */z(BlockIcon,{icon:r?.icon??ss,size:r?.iconSize??s.w,color:r?.iconColor??Fo(a,s.color)}),p&&c!==null?/* @__PURE__ */z(FadeImage,{source:p,onShown:f,onError:()=>{u(c),t!==null&&l?.(t)},resizeMode:e.imgFit,style:[{position:"absolute",top:w,right:w,bottom:w,left:w},y]},c):null]})})}var tc={color:"transparent",x:0,y:0,blur:0,spread:0};function ic(e){let t=ea(e,Ml),i=es;return{...t,bar:{...t.bar,shadow:tc},lift:tc,thumbRing:0,imgInset:i.imgInset,imgBlend:"normal",total:{...t.total,lineHeight:i.totalLineHeight},go:{...t.go,h:i.go.h,minHeight:i.go.h,padding:[0,i.go.paddingX,0,i.go.paddingX],bg:i.go.bg,edge:{...t.go.edge,width:0},color:i.go.color},goText:{...t.goText,color:i.go.color}}}function CartBar(e){let{count:t,countLabel:i,thumbs:r,fallback:o,onImageError:s,total:c,sub:d,actionLabel:u,actionHiddenWord:p,actionAccessibilityLabel:f,onPress:m,disabled:b=false,busy:y=false,visible:k=true,variant:I="standard",loading:S=false,loadingLabel:C,testID:H,style:F,onLayout:_}=e,O=a(c);l(()=>{O.current!==c&&(O.current=c,w.OS==="ios"&&c&&!S&&v.announceForAccessibility?.([i,c].filter(Boolean).join(", ")))},[c,i,S]);let E=Io(),P=ka(E),L=I==="web",B=I==="checkout",A=L?ea(E,Nl):B?ic(E):ea(E,Ml),R=e=>fa(E,jo(E,e)),j=w.OS!=="web",$=a(new x.Value(1)).current,W=a(new x.Value(1)).current,M=a(0),[N,G]=n(false),q=a({visible:k,count:t});if(l(()=>{let e=q.current;if(q.current={visible:k,count:t},P)return;let i=e=>T.bezier(e[0]??0,e[1]??0,e[2]??1,e[3]??1),r=i(E.motion.easing.out);if(k&&!e.visible)$.setValue(0),x.timing($,{toValue:1,duration:A.motion.rise.duration,easing:r,useNativeDriver:j}).start();else if(k&&typeof t=="number"&&typeof e.count=="number"&&t>e.count){let e=A.motion.bump,t=e.curve==="out"?r:i(Js);W.setValue(1),x.sequence([x.timing(W,{toValue:e.scale,duration:e.duration*e.peakAt,easing:t,useNativeDriver:j}),x.timing(W,{toValue:1,duration:e.duration*(1-e.peakAt),easing:t,useNativeDriver:j})]).start()}},[k,t,P,$,W,A,E.motion.easing.out,j]),!k)return null;let U=e=>H===void 0?void 0:`${H}-${e}`,[V=0,Y=0]=A.bar.gap,X=[ba(E,{...A.bar,shadow:A.lift}),{flexDirection:"row",alignItems:"center",columnGap:V,rowGap:Y},L?{width:"100%",maxWidth:A.bar.w,alignSelf:"center"}:null,B?ts(es.drop):null];if(S)/* @__PURE__ */
48
- return z(h,{testID:H,onLayout:_,style:[X,F],children:/* @__PURE__ */z(h,{style:{flex:1},children:/* @__PURE__ */z(Skeleton,{lines:2,label:C})})});let K=r??[],Q=K.slice(-3),J=K.length-Q.length,Z=b||y,ee=e=>e+A.motion.rise.from,te={transform:[{translateY:$.interpolate({inputRange:[0,1],outputRange:[ee(M.current||A.bar.h),0]})}],...A.motion.rise.fade?{opacity:$}:{}},ie=ya(E,A.go),re=[i,c,d].filter(e=>!!e);/* @__PURE__ */
49
- return D(x.View,{testID:H,onLayout:e=>{M.current=e.nativeEvent.layout.height,_?.(e)},style:[X,te,F],children:[Q.length>0?/* @__PURE__ */D(x.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[ba(E,A.thumbs),{flexDirection:"row",alignItems:"center",height:A.thumbs.h},{transform:[{scale:W}]}],children:[Q.map((e,t)=>/* @__PURE__ */z(Thumb,{m:A,image:e,first:t===0,fallback:o,onError:s,testID:U(`thumb-${J+t}`)},J+t)),
50
- /* @__PURE__ */z(h,{testID:U("count"),style:[ba(E,A.count),{position:"absolute",top:A.countAt.top,right:A.countAt.right,minWidth:A.count.w,height:A.count.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */z(Text,{style:R(A.countText),children:String(t)})})]}):null,
38
+ return z(h,{testID:c,style:[wa(u,l==="inset"?e.inset:e.box),d],children:w.map((t,i)=>{let r=t===y?"note":f&&i===g.length-1?"total":"row",n=r==="note"?e.renewRow:r==="total"?e.totalRow:e.row,l=r==="note"?e.renewTerm:r==="total"?e.totalTerm:e.term,o=r==="note"?e.renew:r==="total"?e.total:e.value;/* @__PURE__ */
39
+ return D(h,{testID:Uo(c,t.key??i,t.testID),...m(t),style:[Qs.cardRow,{columnGap:n.gap[0]??0,minHeight:n.minHeight||void 0,marginTop:n.marginTop||void 0}],children:[
40
+ /* @__PURE__ */z(Text,{...b,style:ba(u,Wo(u,l)),children:t.term}),
41
+ /* @__PURE__ */z(Text,{...b,style:ba(u,Wo(u,o)),children:t.value})]},t.key??`${i}`)})})}let v=l==="flush";/* @__PURE__ */
42
+ return z(h,{testID:c,style:[{paddingHorizontal:v?0:p.paddingX,paddingVertical:v?0:p.paddingY,borderWidth:v?0:p.borderWidth,borderColor:p.borderColor,borderRadius:p.radius,backgroundColor:p.background},za(p.shadow),d],children:w.map((e,t)=>{let i=t===w.length-1,r=f&&t===g.length-1,n=r?p.totalRowMinHeight:p.row.minHeight;/* @__PURE__ */
43
+ return D(h,{testID:Uo(c,e.key??t,e.testID),...m(e),style:[Qs.row,{alignItems:p.row.center?"center":"baseline",paddingVertical:p.row.paddingY,columnGap:p.row.gapX,rowGap:p.row.gapY},n?{minHeight:n}:null,i||p.row.divider===0?null:{borderBottomWidth:p.row.divider,borderBottomColor:p.borderColor}],children:[
44
+ /* @__PURE__ */z(Text,{...b,style:ba(u,r?p.totalTerm:p.term),children:e.term}),
45
+ /* @__PURE__ */z(Text,{...b,style:[ba(u,r?p.total:e.tone==="off"?p.off:p.value),Qs.value,p.tabular?Qs.tabular:null],children:e.value})]},e.key??`${t}`)})})}var Qs=u.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:e,size:t,color:i,style:r}){let n=zo();return typeof e=="function"?e({size:t,color:i??n.colors.ink}):typeof e!="string"?/* @__PURE__ */z(Glyph,{icon:e,size:t,color:i,style:r}):/* @__PURE__ */z(Icon,{name:e,size:t,color:i,style:r})}function Js(e,t){t>e.value&&e.onMore?e.onMore():t<e.value&&e.onFewer?e.onFewer():e.onChange?.(t)}function Zs(e){let[t,i]=n(null);return{shown:e!==null&&t===e,onShown:()=>i(e)}}function FadeImage({onShown:e,onLoad:t,style:i,...r}){let n=zo(),l=Ta(n),o=a(new x.Value(0)).current;/* @__PURE__ */
46
+ return z(x.Image,{...r,fadeDuration:0,onLoad:i=>{t?.(i);let r=n.motion.duration.fade;if(l||r<=0){o.setValue(1),e?.();return}x.timing(o,{toValue:1,duration:r,easing:T.out(T.cubic),useNativeDriver:w.OS!=="web"}).start(()=>e?.())},style:[i,{opacity:o}]})}function BlockThumbnail({src:e,alt:t,size:i="xs",icon:r=ds,iconSize:o,tint:a,iconColor:s,onError:c,testID:d,style:u}){let p=zo(),g=p.metrics.thumbnail[i],[f,m]=n(null),[b,y]=n(null),w=e&&f!==e?e:null,v=g.top;l(()=>{if(!v||!w)return;let e=true;return I.getSize(w,(t,i)=>{e&&t>0&&i>0&&y(t/i)},()=>{}),()=>{e=false}},[v,w]);let k=w?g.frame:g.empty,[x=0,T=0,S=0,C=0]=k.padding,[H=0,F=0,_=0,O=0]=g.img.padding,E=va(p,k),P=g.top&&b!==null;/* @__PURE__ */
47
+ return D(h,{testID:d,style:[wa(p,k),i==="md"||i==="lg"?{width:"100%",aspectRatio:1}:{width:k.w,height:k.h},{alignItems:"center",justifyContent:"center",overflow:"hidden"},!w&&a!==void 0?{backgroundColor:a}:null,u],...w?{}:t?{accessible:true,accessibilityRole:"image",accessibilityLabel:t}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:[w?/* @__PURE__ */z(FadeImage,{source:{uri:w},accessibilityLabel:t,accessible:!!t,onError:()=>{m(w),c?.(w)},resizeMode:P?"stretch":g.img.fit==="contain"?"contain":"cover",style:P?{position:"absolute",top:x,left:C,width:k.w-C-T,height:(k.w-C-T)/b}:{position:"absolute",top:x+H,right:T+F,bottom:S+_,left:C+O}},w):/* @__PURE__ */z(BlockIcon,{icon:r,size:o??g.icon.w,color:s??Oo(p,g.icon.color)}),E?/* @__PURE__ */z(h,{pointerEvents:"none",style:E}):null]})}u.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});u.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});u.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});u.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});u.create({base:{alignSelf:"flex-start"}});u.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});u.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}});u.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});u.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}});u.create({offRow:{flexDirection:"row",alignItems:"center",alignSelf:"stretch"},offText:{flexShrink:1,minWidth:0},offAction:{flexDirection:"row",alignItems:"center",marginLeft:"auto",flexShrink:0},row:{flexDirection:"row",alignItems:"flex-start"},copy:{flex:1,minWidth:0},acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}});u.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},topHost:{position:"absolute",alignItems:"center",zIndex:1e3},top:{flexDirection:"row",alignItems:"center"},copy:{flex:1}});u.create({row:{flexDirection:"row",alignItems:"center"}});var ec=[0,0,.58,1];function tc(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function ic(e){return e===null?null:typeof e=="object"?e.uri:String(e)}function Thumb({m:e,image:t,first:i,fallback:r,onError:l,testID:o}){let a=zo(),s=a.metrics.thumbnail.xs.icon,c=ic(t),[d,u]=n(null),p=c!==null&&d!==c?tc(t):null,{shown:g,onShown:f}=Zs(p?c:null),m=e.thumbRing,b=e.thumb.radius[0]??0,y=e.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null,w=e.imgInset;/* @__PURE__ */
48
+ return z(h,{style:[{margin:-m,padding:m,borderRadius:b+m,backgroundColor:Mo(a,e.bar.bg)||void 0},za(e.thumb.shadow),i?null:{marginLeft:-m-e.thumbOverlap}],children:/* @__PURE__ */D(h,{testID:o,style:[wa(a,{...e.thumb,shadow:{...e.thumb.shadow,x:0,y:0,blur:0}}),{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,width:e.thumb.w,height:e.thumb.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!g&&r?.tint!==void 0?{backgroundColor:r.tint}:null],children:[g?null:/* @__PURE__ */z(BlockIcon,{icon:r?.icon??ds,size:r?.iconSize??s.w,color:r?.iconColor??Oo(a,s.color)}),p&&c!==null?/* @__PURE__ */z(FadeImage,{source:p,onShown:f,onError:()=>{u(c),t!==null&&l?.(t)},resizeMode:e.imgFit,style:[{position:"absolute",top:w,right:w,bottom:w,left:w},y]},c):null]})})}var rc={color:"transparent",x:0,y:0,blur:0,spread:0};function nc(e){let t=ia(e,Gl),i=is;return{...t,bar:{...t.bar,shadow:rc},lift:rc,thumbRing:0,imgInset:i.imgInset,imgBlend:"normal",total:{...t.total,lineHeight:i.totalLineHeight},go:{...t.go,h:i.go.h,minHeight:i.go.h,padding:[0,i.go.paddingX,0,i.go.paddingX],bg:i.go.bg,edge:{...t.go.edge,width:0},color:i.go.color},goText:{...t.goText,color:i.go.color}}}function CartBar(e){let{count:t,countLabel:i,thumbs:r,fallback:o,onImageError:s,total:c,sub:d,actionLabel:u,actionHiddenWord:p,actionAccessibilityLabel:f,onPress:m,disabled:b=false,busy:y=false,visible:k=true,variant:I="standard",loading:S=false,loadingLabel:C,testID:H,style:F,onLayout:_}=e,O=a(c);l(()=>{O.current!==c&&(O.current=c,w.OS==="ios"&&c&&!S&&v.announceForAccessibility?.([i,c].filter(Boolean).join(", ")))},[c,i,S]);let E=zo(),P=Ta(E),L=I==="web",B=I==="checkout",A=L?ia(E,ql):B?nc(E):ia(E,Gl),R=e=>ba(E,Wo(E,e)),j=w.OS!=="web",$=a(new x.Value(1)).current,W=a(new x.Value(1)).current,M=a(0),[N,G]=n(false),q=a({visible:k,count:t});if(l(()=>{let e=q.current;if(q.current={visible:k,count:t},P)return;let i=e=>T.bezier(e[0]??0,e[1]??0,e[2]??1,e[3]??1),r=i(E.motion.easing.out);if(k&&!e.visible)$.setValue(0),x.timing($,{toValue:1,duration:A.motion.rise.duration,easing:r,useNativeDriver:j}).start();else if(k&&typeof t=="number"&&typeof e.count=="number"&&t>e.count){let e=A.motion.bump,t=e.curve==="out"?r:i(ec);W.setValue(1),x.sequence([x.timing(W,{toValue:e.scale,duration:e.duration*e.peakAt,easing:t,useNativeDriver:j}),x.timing(W,{toValue:1,duration:e.duration*(1-e.peakAt),easing:t,useNativeDriver:j})]).start()}},[k,t,P,$,W,A,E.motion.easing.out,j]),!k)return null;let U=e=>H===void 0?void 0:`${H}-${e}`,[V=0,Y=0]=A.bar.gap,X=[wa(E,{...A.bar,shadow:A.lift}),{flexDirection:"row",alignItems:"center",columnGap:V,rowGap:Y},L?{width:"100%",maxWidth:A.bar.w,alignSelf:"center"}:null,B?rs(is.drop):null];if(S)/* @__PURE__ */
49
+ return z(h,{testID:H,onLayout:_,style:[X,F],children:/* @__PURE__ */z(h,{style:{flex:1},children:/* @__PURE__ */z(Skeleton,{lines:2,label:C})})});let K=r??[],Q=K.slice(-3),J=K.length-Q.length,Z=b||y,ee=e=>e+A.motion.rise.from,te={transform:[{translateY:$.interpolate({inputRange:[0,1],outputRange:[ee(M.current||A.bar.h),0]})}],...A.motion.rise.fade?{opacity:$}:{}},ie=va(E,A.go),re=[i,c,d].filter(e=>!!e);/* @__PURE__ */
50
+ return D(x.View,{testID:H,onLayout:e=>{M.current=e.nativeEvent.layout.height,_?.(e)},style:[X,te,F],children:[Q.length>0?/* @__PURE__ */D(x.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[wa(E,A.thumbs),{flexDirection:"row",alignItems:"center",height:A.thumbs.h},{transform:[{scale:W}]}],children:[Q.map((e,t)=>/* @__PURE__ */z(Thumb,{m:A,image:e,first:t===0,fallback:o,onError:s,testID:U(`thumb-${J+t}`)},J+t)),
51
+ /* @__PURE__ */z(h,{testID:U("count"),style:[wa(E,A.count),{position:"absolute",top:A.countAt.top,right:A.countAt.right,minWidth:A.count.w,height:A.count.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */z(Text,{style:R(A.countText),children:String(t)})})]}):null,
51
52
  /* @__PURE__ */D(h,{accessible:re.length>0,accessibilityLabel:re.length>0?re.join(", "):void 0,accessibilityLiveRegion:"polite",style:{flex:1,minWidth:0,rowGap:A.sum.gap[1]},children:[c?/* @__PURE__ */z(Text,{style:R(A.total),children:c}):null,d?/* @__PURE__ */z(Text,{style:R(A.sub),children:d}):null]}),
52
- /* @__PURE__ */D(g,{testID:U("go"),onPress:Z?void 0:m,disabled:Z,onPressIn:()=>G(true),onPressOut:()=>G(false),accessibilityRole:"button",accessibilityLabel:f??`${u}${p??""}`,accessibilityState:{disabled:Z,busy:y},"aria-busy":y,style:[ba(E,A.go),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:A.go.h},N&&!P&&!Z?{transform:[{scale:A.pressScale}]}:null,b?{opacity:Oo}:null],children:[
53
- /* @__PURE__ */D(Text,{style:R(A.goText),numberOfLines:1,children:[u,p??""]}),ie?/* @__PURE__ */z(h,{pointerEvents:"none",style:ie}):null]})]})}function Square({size:e,web:t,src:i,alt:r,fallback:l,onError:o,testID:a}){let s=Io(),c=t?ea(s,Ol):ea(s,_l),d=t?ea(s,Ol).sq:ea(s,_l)[e],u=s.metrics.thumbnail.xs.icon,[p,g]=n(null),f=i&&p!==i?i:null,{shown:m,onShown:b}=Qs(f),y=d.w*c.imgInset,w=c.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
54
- return D(h,{testID:a,accessible:!f&&!!r,accessibilityRole:!f&&r?"image":void 0,accessibilityLabel:f?void 0:r,style:[ba(s,d),{width:d.w,height:d.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!m&&l?.tint!==void 0?{backgroundColor:l.tint}:null],children:[m?null:/* @__PURE__ */z(BlockIcon,{icon:l?.icon??ss,size:l?.iconSize??u.w,color:l?.iconColor??Fo(s,u.color)}),f?/* @__PURE__ */z(FadeImage,{source:{uri:f},accessibilityLabel:r,accessible:!!r,onShown:b,onError:()=>{g(f),o?.(f)},resizeMode:c.imgFit,style:[{position:"absolute",top:y,right:y,bottom:y,left:y},w]},f):null]})}function PlanLine({name:e,image:t,imageAlt:i,price:r,wasPrice:l,smalls:o,quantity:a,removeLabel:s,onRemove:c,actions:d,fallback:u,onImageError:p,error:f,testID:m,style:b}){let y=Io(),w=ea(y,Wl),v=e=>fa(y,jo(y,e)),[k,x]=n(null),T=t&&k!==t?t:null,{shown:I,onShown:S}=Qs(T),C=e=>m===void 0?void 0:`${m}-${e}`,[H=0]=w.line.gap,F=d!==void 0?d.map(e=>({...e,testID:Go(m,e.key,e.testID)})):s&&c?[{key:"remove",label:s,onPress:c,testID:C("remove"),disabled:void 0,accessibilityLabel:void 0}]:[];/* @__PURE__ */
53
+ /* @__PURE__ */D(g,{testID:U("go"),onPress:Z?void 0:m,disabled:Z,onPressIn:()=>G(true),onPressOut:()=>G(false),accessibilityRole:"button",accessibilityLabel:f??`${u}${p??""}`,accessibilityState:{disabled:Z,busy:y},"aria-busy":y,style:[wa(E,A.go),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:A.go.h},N&&!P&&!Z?{transform:[{scale:A.pressScale}]}:null,b?{opacity:Po}:null],children:[
54
+ /* @__PURE__ */D(Text,{style:R(A.goText),numberOfLines:1,children:[u,p??""]}),ie?/* @__PURE__ */z(h,{pointerEvents:"none",style:ie}):null]})]})}function Square({size:e,web:t,src:i,alt:r,fallback:l,onError:o,testID:a}){let s=zo(),c=t?ia(s,Pl):ia(s,El),d=t?ia(s,Pl).sq:ia(s,El)[e],u=s.metrics.thumbnail.xs.icon,[p,g]=n(null),f=i&&p!==i?i:null,{shown:m,onShown:b}=Zs(f),y=d.w*c.imgInset,w=c.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
55
+ return D(h,{testID:a,accessible:!f&&!!r,accessibilityRole:!f&&r?"image":void 0,accessibilityLabel:f?void 0:r,style:[wa(s,d),{width:d.w,height:d.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!m&&l?.tint!==void 0?{backgroundColor:l.tint}:null],children:[m?null:/* @__PURE__ */z(BlockIcon,{icon:l?.icon??ds,size:l?.iconSize??u.w,color:l?.iconColor??Oo(s,u.color)}),f?/* @__PURE__ */z(FadeImage,{source:{uri:f},accessibilityLabel:r,accessible:!!r,onShown:b,onError:()=>{g(f),o?.(f)},resizeMode:c.imgFit,style:[{position:"absolute",top:y,right:y,bottom:y,left:y},w]},f):null]})}function PlanLine({name:e,image:t,imageAlt:i,price:r,wasPrice:l,smalls:o,quantity:a,removeLabel:s,onRemove:c,actions:d,fallback:u,onImageError:p,error:f,testID:m,style:b}){let y=zo(),w=ia(y,Nl),v=e=>ba(y,Wo(y,e)),[k,x]=n(null),T=t&&k!==t?t:null,{shown:I,onShown:S}=Zs(T),C=e=>m===void 0?void 0:`${m}-${e}`,[H=0]=w.line.gap,F=d!==void 0?d.map(e=>({...e,testID:Uo(m,e.key,e.testID)})):s&&c?[{key:"remove",label:s,onPress:c,testID:C("remove"),disabled:void 0,accessibilityLabel:void 0}]:[];/* @__PURE__ */
55
56
  return D(h,{testID:m,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:H},b],children:[
56
- /* @__PURE__ */D(h,{testID:C("image"),accessible:!T&&!!i,accessibilityRole:!T&&i?"image":void 0,accessibilityLabel:T?void 0:i,style:[ba(y,w.img),{width:w.img.w,height:w.img.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!I&&u?.tint!==void 0?{backgroundColor:u.tint}:null],children:[I?null:/* @__PURE__ */z(BlockIcon,{icon:u?.icon??ss,size:u?.iconSize??w.icon.w,color:u?.iconColor??Fo(y,w.icon.color)}),T?/* @__PURE__ */z(FadeImage,{source:{uri:T},accessibilityLabel:i,accessible:!!i,onShown:S,onError:()=>{x(T),p?.(T)},resizeMode:"cover",style:{position:"absolute",top:0,right:0,bottom:0,left:0}},T):null]}),
57
+ /* @__PURE__ */D(h,{testID:C("image"),accessible:!T&&!!i,accessibilityRole:!T&&i?"image":void 0,accessibilityLabel:T?void 0:i,style:[wa(y,w.img),{width:w.img.w,height:w.img.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!I&&u?.tint!==void 0?{backgroundColor:u.tint}:null],children:[I?null:/* @__PURE__ */z(BlockIcon,{icon:u?.icon??ds,size:u?.iconSize??w.icon.w,color:u?.iconColor??Oo(y,w.icon.color)}),T?/* @__PURE__ */z(FadeImage,{source:{uri:T},accessibilityLabel:i,accessible:!!i,onShown:S,onError:()=>{x(T),p?.(T)},resizeMode:"cover",style:{position:"absolute",top:0,right:0,bottom:0,left:0}},T):null]}),
57
58
  /* @__PURE__ */D(h,{style:{flex:1,minWidth:0},children:[
58
- /* @__PURE__ */z(Text,{testID:C("name"),style:v(w.name),children:e}),r||l||o&&o.length>0?/* @__PURE__ */D(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:w.prices.gap[0],rowGap:w.prices.gap[1],marginTop:w.prices.marginTop},children:[r?/* @__PURE__ */z(Text,{testID:C("price"),style:v(w.price),children:r}):null,l?/* @__PURE__ */z(Text,{style:v(w.was),children:l}):null,o?.map((e,t)=>/* @__PURE__ */z(Text,{style:v(w.small),children:e},`${t}-${e}`))]}):null,a||F.length>0?/* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",columnGap:w.acts.gap[0],marginTop:w.acts.marginTop},children:[a?/* @__PURE__ */z(InkedQuantityStepper,{ink:Fo(y,w.step.color),variant:"compact",value:a.value,min:a.min,max:a.max,label:a.label,fewerLabel:a.fewerLabel,moreLabel:a.moreLabel,onChange:e=>Ks(a,e)}):null,F.map(e=>/* @__PURE__ */z(g,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:Ta(w.remove.h),style:[{minHeight:w.remove.minHeight||void 0,justifyContent:"center"},e.disabled?{opacity:Oo}:null],children:/* @__PURE__ */z(Text,{tier:"control",style:v(w.removeText),children:e.label})},e.key))]}):null,f?/* @__PURE__ */z(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[v(w.small),{marginTop:w.acts.marginTop,color:y.colors.alert}],children:f}):null]})]})}function DrawerPlan({plan:e,testID:t}){let i=Io(),r=ea(i,El),n=e.testID??t,l=ya(i,r.plan);/* @__PURE__ */
59
- return D(h,{testID:n,role:"group",accessibilityLabel:e.label,style:[ba(i,r.plan),{flexDirection:"row",alignSelf:"flex-start"}],children:[e.options.map(t=>{let l=t.value===e.value,o=l?r.planOn:r.planBtn;/* @__PURE__ */
60
- return z(g,{testID:n===void 0?void 0:`${n}-${t.value}`,onPress:l?void 0:()=>e.onChange?.(t.value),accessibilityRole:"button",accessibilityLabel:t.label,accessibilityState:{checked:l},"aria-pressed":l,hitSlop:Ta(o.minHeight||o.h),style:[ba(i,o),{minHeight:o.minHeight||void 0,justifyContent:"center"}],children:/* @__PURE__ */z(Text,{tier:"control",style:fa(i,jo(i,l?r.planOnText:r.planText)),children:t.label})},t.value)}),l?/* @__PURE__ */z(h,{pointerEvents:"none",style:l}):null]})}function DrawerStepper({q:e,testID:t}){let i=Io(),r=ea(i,El),n=ka(i),l=e.min??1,o=e.max??Number.POSITIVE_INFINITY,a=e=>t===void 0?void 0:`${t}-${e}`,s=ya(i,r.qty),c=(t,l,o,s,c)=>/* @__PURE__ */z(g,{testID:a(c),onPress:o?void 0:()=>Ks(e,s),accessibilityRole:"button",accessibilityLabel:t,disabled:o,accessibilityState:o?{disabled:true}:void 0,hitSlop:Ta(r.qtyBtn.w),style:({pressed:e})=>[ba(i,r.qtyBtn),{width:r.qtyBtn.w,height:r.qtyBtn.h,alignItems:"center",justifyContent:"center"},e&&!n&&!o?{transform:[{scale:r.pressScale}]}:null],children:/* @__PURE__ */z(Glyph,{icon:l==="minus"?Cs:Ps,size:r.qtyIcon.w,color:i.colors.text})});/* @__PURE__ */
61
- return D(h,{testID:t,role:"group",accessibilityLabel:e.label,style:[ba(i,r.qty),{flexDirection:"row",alignItems:"center",height:r.qty.h}],children:[c(e.fewerLabel,"minus",e.value<=l,Math.max(l,e.value-1),"fewer"),
62
- /* @__PURE__ */z(Text,{testID:a("count"),accessibilityLiveRegion:"polite",style:[fa(i,jo(i,r.count)),{minWidth:r.countMin,textAlign:"center"}],children:e.value}),c(e.moreLabel,"plus",e.value>=o,Math.min(o,e.value+1),"more"),s?/* @__PURE__ */z(h,{pointerEvents:"none",style:s}):null]})}function DrawerLine({name:e,image:t,imageAlt:i,badge:r,meta:l,note:o,plan:a,price:s,wasPrice:c,quantity:d,removeLabel:u,onRemove:p,actions:f,fallback:m,onImageError:b,error:y,loading:w=false,loadingLabel:v,testID:k,style:x}){let T=Io(),I=ea(T,El),S=e=>fa(T,jo(T,e)),[C,H]=n(null),F=t&&C!==t?t:null,{shown:_,onShown:O}=Qs(F),E=e=>k===void 0?void 0:`${k}-${e}`,[P=0]=I.line.gap,L=ya(T,I.img),B=ya(T,I.badge),A=T.metrics.thumbnail.xs.icon;if(w)/* @__PURE__ */
59
+ /* @__PURE__ */z(Text,{testID:C("name"),style:v(w.name),children:e}),r||l||o&&o.length>0?/* @__PURE__ */D(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:w.prices.gap[0],rowGap:w.prices.gap[1],marginTop:w.prices.marginTop},children:[r?/* @__PURE__ */z(Text,{testID:C("price"),style:v(w.price),children:r}):null,l?/* @__PURE__ */z(Text,{style:v(w.was),children:l}):null,o?.map((e,t)=>/* @__PURE__ */z(Text,{style:v(w.small),children:e},`${t}-${e}`))]}):null,a||F.length>0?/* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",columnGap:w.acts.gap[0],marginTop:w.acts.marginTop},children:[a?/* @__PURE__ */z(InkedQuantityStepper,{ink:Oo(y,w.step.color),variant:"compact",value:a.value,min:a.min,max:a.max,label:a.label,fewerLabel:a.fewerLabel,moreLabel:a.moreLabel,onChange:e=>Js(a,e)}):null,F.map(e=>/* @__PURE__ */z(g,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:Sa(w.remove.h),style:[{minHeight:w.remove.minHeight||void 0,justifyContent:"center"},e.disabled?{opacity:Po}:null],children:/* @__PURE__ */z(Text,{tier:"control",style:v(w.removeText),children:e.label})},e.key))]}):null,f?/* @__PURE__ */z(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[v(w.small),{marginTop:w.acts.marginTop,color:y.colors.alert}],children:f}):null]})]})}function DrawerPlan({plan:e,testID:t}){let i=zo(),r=ia(i,Ll),n=e.testID??t,l=va(i,r.plan);/* @__PURE__ */
60
+ return D(h,{testID:n,role:"group",accessibilityLabel:e.label,style:[wa(i,r.plan),{flexDirection:"row",alignSelf:"flex-start"}],children:[e.options.map(t=>{let l=t.value===e.value,o=l?r.planOn:r.planBtn;/* @__PURE__ */
61
+ return z(g,{testID:n===void 0?void 0:`${n}-${t.value}`,onPress:l?void 0:()=>e.onChange?.(t.value),accessibilityRole:"button",accessibilityLabel:t.label,accessibilityState:{checked:l},"aria-pressed":l,hitSlop:Sa(o.minHeight||o.h),style:[wa(i,o),{minHeight:o.minHeight||void 0,justifyContent:"center"}],children:/* @__PURE__ */z(Text,{tier:"control",style:ba(i,Wo(i,l?r.planOnText:r.planText)),children:t.label})},t.value)}),l?/* @__PURE__ */z(h,{pointerEvents:"none",style:l}):null]})}function DrawerStepper({q:e,testID:t}){let i=zo(),r=ia(i,Ll),n=Ta(i),l=e.min??1,o=e.max??Number.POSITIVE_INFINITY,a=e=>t===void 0?void 0:`${t}-${e}`,s=va(i,r.qty),c=(t,l,o,s,c)=>/* @__PURE__ */z(g,{testID:a(c),onPress:o?void 0:()=>Js(e,s),accessibilityRole:"button",accessibilityLabel:t,disabled:o,accessibilityState:o?{disabled:true}:void 0,hitSlop:Sa(r.qtyBtn.w),style:({pressed:e})=>[wa(i,r.qtyBtn),{width:r.qtyBtn.w,height:r.qtyBtn.h,alignItems:"center",justifyContent:"center"},e&&!n&&!o?{transform:[{scale:r.pressScale}]}:null],children:/* @__PURE__ */z(Glyph,{icon:l==="minus"?Fs:Bs,size:r.qtyIcon.w,color:i.colors.text})});/* @__PURE__ */
62
+ return D(h,{testID:t,role:"group",accessibilityLabel:e.label,style:[wa(i,r.qty),{flexDirection:"row",alignItems:"center",height:r.qty.h}],children:[c(e.fewerLabel,"minus",e.value<=l,Math.max(l,e.value-1),"fewer"),
63
+ /* @__PURE__ */z(Text,{testID:a("count"),accessibilityLiveRegion:"polite",style:[ba(i,Wo(i,r.count)),{minWidth:r.countMin,textAlign:"center"}],children:e.value}),c(e.moreLabel,"plus",e.value>=o,Math.min(o,e.value+1),"more"),s?/* @__PURE__ */z(h,{pointerEvents:"none",style:s}):null]})}function DrawerLine({name:e,image:t,imageAlt:i,badge:r,meta:l,note:o,plan:a,price:s,wasPrice:c,quantity:d,removeLabel:u,onRemove:p,actions:f,fallback:m,onImageError:b,error:y,loading:w=false,loadingLabel:v,testID:k,style:x}){let T=zo(),I=ia(T,Ll),S=e=>ba(T,Wo(T,e)),[C,H]=n(null),F=t&&C!==t?t:null,{shown:_,onShown:O}=Zs(F),E=e=>k===void 0?void 0:`${k}-${e}`,[P=0]=I.line.gap,L=va(T,I.img),B=va(T,I.badge),A=T.metrics.thumbnail.xs.icon;if(w)/* @__PURE__ */
63
64
  return D(h,{testID:k,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:P},x],children:[
64
- /* @__PURE__ */z(h,{style:[ba(T,I.img),{width:I.img.w,height:I.img.h}],children:L?/* @__PURE__ */z(h,{pointerEvents:"none",style:L}):null}),
65
- /* @__PURE__ */z(h,{style:{flex:1,minWidth:0},children:/* @__PURE__ */z(Skeleton,{lines:2,label:v})})]});let R=f!==void 0?f.map(e=>({...e,testID:Go(k,e.key,e.testID)})):u&&p?[{key:"remove",label:u,onPress:p,testID:E("remove"),disabled:void 0,accessibilityLabel:`${u} ${e}`}]:[];/* @__PURE__ */
65
+ /* @__PURE__ */z(h,{style:[wa(T,I.img),{width:I.img.w,height:I.img.h}],children:L?/* @__PURE__ */z(h,{pointerEvents:"none",style:L}):null}),
66
+ /* @__PURE__ */z(h,{style:{flex:1,minWidth:0},children:/* @__PURE__ */z(Skeleton,{lines:2,label:v})})]});let R=f!==void 0?f.map(e=>({...e,testID:Uo(k,e.key,e.testID)})):u&&p?[{key:"remove",label:u,onPress:p,testID:E("remove"),disabled:void 0,accessibilityLabel:`${u} ${e}`}]:[];/* @__PURE__ */
66
67
  return D(h,{testID:k,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:P},x],children:[
67
- /* @__PURE__ */D(h,{testID:E("image"),accessible:!F&&!!i,accessibilityRole:!F&&i?"image":void 0,accessibilityLabel:F?void 0:i,style:[ba(T,I.img),{width:I.img.w,height:I.img.h,alignItems:"center",justifyContent:"center"},!_&&m?.tint!==void 0?{backgroundColor:m.tint}:null],children:[_?null:/* @__PURE__ */z(BlockIcon,{icon:m?.icon??ss,size:m?.iconSize??A.w,color:m?.iconColor??Fo(T,A.color)}),F?/* @__PURE__ */z(FadeImage,{source:{uri:F},accessibilityLabel:i,accessible:!!i,onShown:O,onError:()=>{H(F),b?.(F)},resizeMode:I.imgFit,style:{position:"absolute",top:I.imgInset,right:I.imgInset,bottom:I.imgInset,left:I.imgInset}},F):null,L?/* @__PURE__ */z(h,{pointerEvents:"none",style:L}):null]}),
68
+ /* @__PURE__ */D(h,{testID:E("image"),accessible:!F&&!!i,accessibilityRole:!F&&i?"image":void 0,accessibilityLabel:F?void 0:i,style:[wa(T,I.img),{width:I.img.w,height:I.img.h,alignItems:"center",justifyContent:"center"},!_&&m?.tint!==void 0?{backgroundColor:m.tint}:null],children:[_?null:/* @__PURE__ */z(BlockIcon,{icon:m?.icon??ds,size:m?.iconSize??A.w,color:m?.iconColor??Oo(T,A.color)}),F?/* @__PURE__ */z(FadeImage,{source:{uri:F},accessibilityLabel:i,accessible:!!i,onShown:O,onError:()=>{H(F),b?.(F)},resizeMode:I.imgFit,style:{position:"absolute",top:I.imgInset,right:I.imgInset,bottom:I.imgInset,left:I.imgInset}},F):null,L?/* @__PURE__ */z(h,{pointerEvents:"none",style:L}):null]}),
68
69
  /* @__PURE__ */D(h,{style:{flex:1,minWidth:0},children:[
69
70
  /* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"flex-start",columnGap:P},children:[
70
71
  /* @__PURE__ */D(h,{testID:E("name"),style:{flex:1,minWidth:0,flexDirection:"row",flexWrap:"wrap",alignItems:I.name.center?"center":"baseline",columnGap:I.name.gap[0],rowGap:I.name.gap[1]},children:[
71
- /* @__PURE__ */z(Text,{style:S(I.nameText),children:e}),r?/* @__PURE__ */D(h,{style:[ba(T,I.badge),{height:I.badge.h,justifyContent:"center"}],children:[
72
- /* @__PURE__ */z(Text,{style:S(I.badgeText),children:r.label}),B?/* @__PURE__ */z(h,{pointerEvents:"none",style:B}):null]}):null]}),s||c?/* @__PURE__ */D(h,{children:[s?/* @__PURE__ */z(Text,{testID:E("price"),style:[S(I.price),{alignSelf:"flex-start"}],children:s}):null,c?/* @__PURE__ */z(Text,{style:[S(I.was),{alignSelf:"flex-end",textAlign:"right"}],children:c}):null]}):null]}),l?/* @__PURE__ */z(Text,{style:[S(I.meta),{marginTop:I.meta.marginTop}],children:l}):null,o?/* @__PURE__ */z(Text,{style:[S(I.note),{marginTop:I.note.marginTop}],children:o}):null,a||d||R.length>0?/* @__PURE__ */D(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:I.acts.gap[0],rowGap:I.acts.gap[1],marginTop:I.acts.marginTop},children:[a?/* @__PURE__ */z(DrawerPlan,{plan:a,testID:E("plan")}):null,d?/* @__PURE__ */z(DrawerStepper,{q:d,testID:E("stepper")}):null,R.map(e=>/* @__PURE__ */z(g,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:Ta(I.remove.minHeight||I.remove.h),style:[{minHeight:I.remove.minHeight||void 0,justifyContent:"center"},e.disabled?{opacity:Oo}:null],children:/* @__PURE__ */z(Text,{tier:"control",style:S(I.removeText),children:e.label})},e.key))]}):null,y?/* @__PURE__ */z(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[S(I.meta),{marginTop:I.acts.marginTop,color:T.colors.alert}],children:y}):null]})]})}function CartLine(e){let{name:t,image:i,imageAlt:r,badge:n,meta:l,metas:o,price:a,wasPrice:s,quantity:c,removeLabel:d,onRemove:u,actions:p,fallback:f,onImageError:m,variant:b="standard",thumbSize:y="md",align:w="top",namePress:v,error:k,loading:x=false,loadingLabel:T,testID:I,style:S}=e,C=Io(),H=ea(C,Fl),F=C.metrics.thumbnail.xs,_=e=>fa(C,jo(C,e)),O=i?F.frame.w:F.empty.w,[E=0,P=0]=H.line.gap,L={flexDirection:"row",alignItems:H.line.center?"center":"flex-start",columnGap:E};if(b==="drawer")/* @__PURE__ */return z(DrawerLine,{...e});if(x)/* @__PURE__ */
73
- return D(h,{testID:I,style:[ba(C,H.line),L,S],children:[
72
+ /* @__PURE__ */z(Text,{style:S(I.nameText),children:e}),r?/* @__PURE__ */D(h,{style:[wa(T,I.badge),{height:I.badge.h,justifyContent:"center"}],children:[
73
+ /* @__PURE__ */z(Text,{style:S(I.badgeText),children:r.label}),B?/* @__PURE__ */z(h,{pointerEvents:"none",style:B}):null]}):null]}),s||c?/* @__PURE__ */D(h,{children:[s?/* @__PURE__ */z(Text,{testID:E("price"),style:[S(I.price),{alignSelf:"flex-start"}],children:s}):null,c?/* @__PURE__ */z(Text,{style:[S(I.was),{alignSelf:"flex-end",textAlign:"right"}],children:c}):null]}):null]}),l?/* @__PURE__ */z(Text,{style:[S(I.meta),{marginTop:I.meta.marginTop}],children:l}):null,o?/* @__PURE__ */z(Text,{style:[S(I.note),{marginTop:I.note.marginTop}],children:o}):null,a||d||R.length>0?/* @__PURE__ */D(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:I.acts.gap[0],rowGap:I.acts.gap[1],marginTop:I.acts.marginTop},children:[a?/* @__PURE__ */z(DrawerPlan,{plan:a,testID:E("plan")}):null,d?/* @__PURE__ */z(DrawerStepper,{q:d,testID:E("stepper")}):null,R.map(e=>/* @__PURE__ */z(g,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:Sa(I.remove.minHeight||I.remove.h),style:[{minHeight:I.remove.minHeight||void 0,justifyContent:"center"},e.disabled?{opacity:Po}:null],children:/* @__PURE__ */z(Text,{tier:"control",style:S(I.removeText),children:e.label})},e.key))]}):null,y?/* @__PURE__ */z(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[S(I.meta),{marginTop:I.acts.marginTop,color:T.colors.alert}],children:y}):null]})]})}function CartLine(e){let{name:t,image:i,imageAlt:r,badge:n,meta:l,metas:o,price:a,wasPrice:s,quantity:c,removeLabel:d,onRemove:u,actions:p,fallback:f,onImageError:m,variant:b="standard",thumbSize:y="md",align:w="top",namePress:v,error:k,loading:x=false,loadingLabel:T,testID:I,style:S}=e,C=zo(),H=ia(C,Ol),F=C.metrics.thumbnail.xs,_=e=>ba(C,Wo(C,e)),O=i?F.frame.w:F.empty.w,[E=0,P=0]=H.line.gap,L={flexDirection:"row",alignItems:H.line.center?"center":"flex-start",columnGap:E};if(b==="drawer")/* @__PURE__ */return z(DrawerLine,{...e});if(x)/* @__PURE__ */
74
+ return D(h,{testID:I,style:[wa(C,H.line),L,S],children:[
74
75
  /* @__PURE__ */z(h,{style:{width:O,height:O,borderRadius:F.frame.radius[0],backgroundColor:C.colors.tintSage}}),
75
- /* @__PURE__ */z(h,{style:{flex:1},children:/* @__PURE__ */z(Skeleton,{lines:2,label:T})})]});let B=o&&o.length>0?o.map((e,t)=>/* @__PURE__ */z(Text,{style:[_(H.meta),{marginTop:H.meta.marginTop}],children:e},`${t}-${e}`)):l?/* @__PURE__ */z(Text,{style:[_(H.meta),{marginTop:H.meta.marginTop}],children:l}):null,A=e=>I===void 0?void 0:`${I}-${e}`,R=(e,t,i,r)=>/* @__PURE__ */z(g,{testID:r?.testID,onPress:r?.disabled?void 0:i,disabled:r?.disabled,accessibilityRole:"button",accessibilityLabel:r?.accessibilityLabel??t,accessibilityState:r?.disabled?{disabled:true}:void 0,hitSlop:Ta(H.removeBox.minHeight||H.remove.lineHeight),style:[{minHeight:H.removeBox.minHeight||void 0,justifyContent:"center"},r?.disabled?{opacity:Oo}:null],children:/* @__PURE__ */z(Text,{tier:"control",style:_(H.remove),children:t})},e),j=p!==void 0?p.length>0?p.map(e=>R(e.key,e.label,e.onPress,{disabled:e.disabled,accessibilityLabel:e.accessibilityLabel,testID:Go(I,e.key,e.testID)})):null:d&&u?R("remove",d,u):null;if(b==="square"||b==="web"){let e=b==="web",o=e?{...ea(C,_l),...ea(C,Ol)}:ea(C,_l),c=ya(C,o.badge),x=(e,t,i,r)=>/* @__PURE__ */z(g,{testID:r?.testID,onPress:r?.disabled?void 0:i,disabled:r?.disabled,accessibilityRole:"button",accessibilityLabel:r?.accessibilityLabel??t,accessibilityState:r?.disabled?{disabled:true}:void 0,hitSlop:Ta(o.actBox.minHeight||o.act.lineHeight),style:[{minHeight:o.actBox.minHeight||void 0,justifyContent:"center"},r?.disabled?{opacity:Oo}:null],children:/* @__PURE__ */z(Text,{tier:"control",style:_(o.act),children:t})},e),T=e?[]:p!==void 0?p.map(e=>x(e.key,e.label,e.onPress,{disabled:e.disabled,accessibilityLabel:e.accessibilityLabel,testID:Go(I,e.key,e.testID)})):d&&u?[x("remove",d,u)]:[],H=v!==void 0&&T.length>0;/* @__PURE__ */
76
+ /* @__PURE__ */z(h,{style:{flex:1},children:/* @__PURE__ */z(Skeleton,{lines:2,label:T})})]});let B=o&&o.length>0?o.map((e,t)=>/* @__PURE__ */z(Text,{style:[_(H.meta),{marginTop:H.meta.marginTop}],children:e},`${t}-${e}`)):l?/* @__PURE__ */z(Text,{style:[_(H.meta),{marginTop:H.meta.marginTop}],children:l}):null,A=e=>I===void 0?void 0:`${I}-${e}`,R=(e,t,i,r)=>/* @__PURE__ */z(g,{testID:r?.testID,onPress:r?.disabled?void 0:i,disabled:r?.disabled,accessibilityRole:"button",accessibilityLabel:r?.accessibilityLabel??t,accessibilityState:r?.disabled?{disabled:true}:void 0,hitSlop:Sa(H.removeBox.minHeight||H.remove.lineHeight),style:[{minHeight:H.removeBox.minHeight||void 0,justifyContent:"center"},r?.disabled?{opacity:Po}:null],children:/* @__PURE__ */z(Text,{tier:"control",style:_(H.remove),children:t})},e),j=p!==void 0?p.length>0?p.map(e=>R(e.key,e.label,e.onPress,{disabled:e.disabled,accessibilityLabel:e.accessibilityLabel,testID:Uo(I,e.key,e.testID)})):null:d&&u?R("remove",d,u):null;if(b==="square"||b==="web"){let e=b==="web",o=e?{...ia(C,El),...ia(C,Pl)}:ia(C,El),c=va(C,o.badge),x=(e,t,i,r)=>/* @__PURE__ */z(g,{testID:r?.testID,onPress:r?.disabled?void 0:i,disabled:r?.disabled,accessibilityRole:"button",accessibilityLabel:r?.accessibilityLabel??t,accessibilityState:r?.disabled?{disabled:true}:void 0,hitSlop:Sa(o.actBox.minHeight||o.act.lineHeight),style:[{minHeight:o.actBox.minHeight||void 0,justifyContent:"center"},r?.disabled?{opacity:Po}:null],children:/* @__PURE__ */z(Text,{tier:"control",style:_(o.act),children:t})},e),T=e?[]:p!==void 0?p.map(e=>x(e.key,e.label,e.onPress,{disabled:e.disabled,accessibilityLabel:e.accessibilityLabel,testID:Uo(I,e.key,e.testID)})):d&&u?[x("remove",d,u)]:[],H=v!==void 0&&T.length>0;/* @__PURE__ */
76
77
  return D(h,{testID:I,style:[{flexDirection:"row",alignItems:w==="center"||o.line.center?"center":"flex-start",columnGap:o.line.gap[0]},S],children:[
77
78
  /* @__PURE__ */z(Square,{size:y,web:e,src:i,alt:r,fallback:f,onError:m,testID:A("image")}),
78
79
  /* @__PURE__ */D(h,{style:[{flex:1,minWidth:0},H?{zIndex:1}:null],children:[
79
80
  /* @__PURE__ */D(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:o.name.center?"center":"baseline",columnGap:o.name.gap[0],rowGap:o.name.gap[1]},children:[
80
- /* @__PURE__ */z(Text,{style:_(v?o.link:o.nameText),onPress:H?v.onPress:void 0,children:t}),n?/* @__PURE__ */D(h,{style:[ba(C,o.badge),{height:o.badge.h,justifyContent:"center"}],children:[
81
- /* @__PURE__ */z(Text,{style:_(o.badgeText),children:n.label}),c?/* @__PURE__ */z(h,{pointerEvents:"none",style:c}):null]}):null]}),l?/* @__PURE__ */z(Text,{style:[_(o.meta),{marginTop:o.meta.marginTop}],children:l}):null,T.length>0?/* @__PURE__ */z(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:o.acts.gap[0],rowGap:o.acts.gap[1],marginTop:o.acts.marginTop},children:T}):null,k?/* @__PURE__ */z(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[_(o.meta),{marginTop:o.acts.marginTop,color:C.colors.alert}],children:k}):null]}),a||s?/* @__PURE__ */D(h,{style:{alignItems:"flex-end"},children:[a?/* @__PURE__ */z(Text,{testID:A("price"),style:_(o.price),children:a}):null,s?/* @__PURE__ */z(Text,{style:_(o.was),children:s}):null]}):null,v?/* @__PURE__ */z(g,{testID:v.testID??A("name"),onPress:v.onPress,accessibilityRole:"button",accessibilityLabel:v.accessibilityLabel??t,style:{position:"absolute",top:-o.linkReach,right:0,bottom:-o.linkReach,left:0}}):null]})}if(b==="plan")/* @__PURE__ */return z(PlanLine,{...e});let $=c?/* @__PURE__ */z(QuantityStepper,{value:c.value,min:c.min,max:c.max,label:c.label,fewerLabel:c.fewerLabel,moreLabel:c.moreLabel,onChange:e=>Ks(c,e)}):null;/* @__PURE__ */
82
- return D(h,{testID:I,style:[ba(C,H.line),{rowGap:P,columnGap:0},S],children:[
81
+ /* @__PURE__ */z(Text,{style:_(v?o.link:o.nameText),onPress:H?v.onPress:void 0,children:t}),n?/* @__PURE__ */D(h,{style:[wa(C,o.badge),{height:o.badge.h,justifyContent:"center"}],children:[
82
+ /* @__PURE__ */z(Text,{style:_(o.badgeText),children:n.label}),c?/* @__PURE__ */z(h,{pointerEvents:"none",style:c}):null]}):null]}),l?/* @__PURE__ */z(Text,{style:[_(o.meta),{marginTop:o.meta.marginTop}],children:l}):null,T.length>0?/* @__PURE__ */z(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:o.acts.gap[0],rowGap:o.acts.gap[1],marginTop:o.acts.marginTop},children:T}):null,k?/* @__PURE__ */z(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[_(o.meta),{marginTop:o.acts.marginTop,color:C.colors.alert}],children:k}):null]}),a||s?/* @__PURE__ */D(h,{style:{alignItems:"flex-end"},children:[a?/* @__PURE__ */z(Text,{testID:A("price"),style:_(o.price),children:a}):null,s?/* @__PURE__ */z(Text,{style:_(o.was),children:s}):null]}):null,v?/* @__PURE__ */z(g,{testID:v.testID??A("name"),onPress:v.onPress,accessibilityRole:"button",accessibilityLabel:v.accessibilityLabel??t,style:{position:"absolute",top:-o.linkReach,right:0,bottom:-o.linkReach,left:0}}):null]})}if(b==="plan")/* @__PURE__ */return z(PlanLine,{...e});let $=c?/* @__PURE__ */z(QuantityStepper,{value:c.value,min:c.min,max:c.max,label:c.label,fewerLabel:c.fewerLabel,moreLabel:c.moreLabel,onChange:e=>Js(c,e)}):null;/* @__PURE__ */
83
+ return D(h,{testID:I,style:[wa(C,H.line),{rowGap:P,columnGap:0},S],children:[
83
84
  /* @__PURE__ */D(h,{style:L,children:[
84
85
  /* @__PURE__ */z(BlockThumbnail,{size:"xs",src:i,alt:r,icon:f?.icon,iconSize:f?.iconSize,tint:f?.tint,iconColor:f?.iconColor,onError:m,testID:A("image")}),
85
86
  /* @__PURE__ */D(h,{style:{flex:1,minWidth:0},children:[
86
87
  /* @__PURE__ */D(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:H.name.gap[0],rowGap:H.name.gap[1]},children:[
87
- /* @__PURE__ */z(Text,{style:_(H.nameText),children:t}),n?/* @__PURE__ */z(Pill,{label:n.label,tone:n.tone??"rx"}):null]}),B,$||j?/* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",...p&&p.length>1?{flexWrap:"wrap",rowGap:H.acts.gap[1]}:{},columnGap:H.acts.gap[0],marginTop:H.acts.marginTop},children:[$,j]}):null,k?/* @__PURE__ */z(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[_(H.meta),{marginTop:H.acts.marginTop,color:C.colors.alert}],children:k}):null]})]}),a||s?/* @__PURE__ */D(h,{style:{marginLeft:O+E,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:H.end.gap[0],rowGap:H.end.gap[1]},children:[a?/* @__PURE__ */z(Text,{testID:A("price"),style:_(H.price),children:a}):null,s?/* @__PURE__ */z(Text,{style:_(H.was),children:s}):null]}):null]})}function Action({action:e,testID:t,quiet:i,web:r=false}){let n=Io(),l=ea(n,xl),o=ea(n,Tl),a=ea(n,Il),s=ka(n),c=e.disabled===true||e.busy===true,[d,u]=r?e.tone==="link"?[a.link,a.linkText]:e.tone==="go"?[a.go,a.goText]:[a.plain,a.plainText]:e.tone==="link"?[o.link,o.linkText]:e.tone==="go"?[l.go,l.goText]:i?[o.plain,o.plainText]:[l.plain,l.plainText],p=fa(n,jo(n,u)),f=r?a.icon.w:i?o.icon.w:l.icon.w,m=r?ya(n,d):null;if(r){let i=e.tone!=="link"&&!s;/* @__PURE__ */
88
- return D(g,{testID:t,onPress:c?void 0:e.onPress,disabled:c,hitSlop:Ta(d.h),accessibilityRole:"button",accessibilityLabel:e.label,accessibilityState:{disabled:c,busy:e.busy===true},style:({pressed:e})=>[ba(n,d),{flexDirection:"row",alignItems:"center",justifyContent:"center"},c?{opacity:Oo}:null,e&&i?{transform:[{scale:a.pressScale}]}:null],children:[e.icon?/* @__PURE__ */z(BlockIcon,{icon:e.icon,size:f,color:typeof p.color=="string"?p.color:void 0}):null,
88
+ /* @__PURE__ */z(Text,{style:_(H.nameText),children:t}),n?/* @__PURE__ */z(Pill,{label:n.label,tone:n.tone??"rx"}):null]}),B,$||j?/* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",...p&&p.length>1?{flexWrap:"wrap",rowGap:H.acts.gap[1]}:{},columnGap:H.acts.gap[0],marginTop:H.acts.marginTop},children:[$,j]}):null,k?/* @__PURE__ */z(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[_(H.meta),{marginTop:H.acts.marginTop,color:C.colors.alert}],children:k}):null]})]}),a||s?/* @__PURE__ */D(h,{style:{marginLeft:O+E,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:H.end.gap[0],rowGap:H.end.gap[1]},children:[a?/* @__PURE__ */z(Text,{testID:A("price"),style:_(H.price),children:a}):null,s?/* @__PURE__ */z(Text,{style:_(H.was),children:s}):null]}):null]})}function Action({action:e,testID:t,quiet:i,web:r=false}){let n=zo(),l=ia(n,Il),o=ia(n,Sl),a=ia(n,zl),s=Ta(n),c=e.disabled===true||e.busy===true,[d,u]=r?e.tone==="link"?[a.link,a.linkText]:e.tone==="go"?[a.go,a.goText]:[a.plain,a.plainText]:e.tone==="link"?[o.link,o.linkText]:e.tone==="go"?[l.go,l.goText]:i?[o.plain,o.plainText]:[l.plain,l.plainText],p=ba(n,Wo(n,u)),f=r?a.icon.w:i?o.icon.w:l.icon.w,m=r?va(n,d):null;if(r){let i=e.tone!=="link"&&!s;/* @__PURE__ */
89
+ return D(g,{testID:t,onPress:c?void 0:e.onPress,disabled:c,hitSlop:Sa(d.h),accessibilityRole:"button",accessibilityLabel:e.label,accessibilityState:{disabled:c,busy:e.busy===true},style:({pressed:e})=>[wa(n,d),{flexDirection:"row",alignItems:"center",justifyContent:"center"},c?{opacity:Po}:null,e&&i?{transform:[{scale:a.pressScale}]}:null],children:[e.icon?/* @__PURE__ */z(BlockIcon,{icon:e.icon,size:f,color:typeof p.color=="string"?p.color:void 0}):null,
89
90
  /* @__PURE__ */z(Text,{tier:"control",numberOfLines:1,style:p,children:e.label}),m?/* @__PURE__ */z(h,{pointerEvents:"none",style:m}):null]})}/* @__PURE__ */
90
- return D(g,{testID:t,onPress:c?void 0:e.onPress,disabled:c,hitSlop:Ta(d.h),accessibilityRole:"button",accessibilityLabel:e.label,accessibilityState:{disabled:c,busy:e.busy===true},style:[ba(n,d),i?{flexShrink:1,minWidth:0}:{flex:1,minWidth:0},{flexDirection:"row",alignItems:"center",justifyContent:"center"},c?{opacity:Oo}:null],children:[e.icon?/* @__PURE__ */z(BlockIcon,{icon:e.icon,size:f,color:typeof p.color=="string"?p.color:void 0}):null,
91
- /* @__PURE__ */z(Text,{tier:"control",numberOfLines:1,style:p,children:e.label})]})}function Shot({shot:e,pressable:t,testID:r,onMeasure:n,quiet:o,web:c=false}){let d=Io(),u=ea(d,xl),p=ea(d,Tl),f=ea(d,Il),m=ka(d),b=a(null),y=d.metrics.thumbnail.sm,w=f.sq.w*f.imgInset,v=!!e.src,k=f.sq.h,x=i(()=>c?{padding:[w,w,w,w],h:k}:o&&v?p.shotImg:v?y.frame:y.empty,[c,w,k,o,v,p,y]),T=s(()=>new Promise(e=>{let t=b.current;if(!t||typeof t.measureInWindow!="function"){e(null);return}let[i=0,r=0,n=0,l=0]=x.padding;t.measureInWindow((t,o,a,s)=>{e(a>0||s>0?{x:t+l,y:o+i,width:Math.max(0,a-l-r),height:Math.max(0,s-i-n)}:null)})}),[x]),I=e.key;l(()=>{if(n)return n(I,T),()=>n(I,null)},[n,I,T]);let S=t&&e.onPress!==void 0,D=c?/* @__PURE__ */z(WebSquare,{shot:e,alt:S?void 0:e.alt,testID:S||n?void 0:r}):o?/* @__PURE__ */z(Square2,{shot:e,alt:S?void 0:e.alt,testID:S||n?void 0:r}):/* @__PURE__ */z(BlockThumbnail,{size:"sm",src:e.src,alt:S?void 0:e.alt,icon:e.icon,iconSize:e.iconSize,tint:e.tint,iconColor:e.iconColor,onError:e.onError,testID:S||n?void 0:r});return S?/* @__PURE__ */z(g,{ref:b,collapsable:false,testID:r,onPress:e.onPress,hitSlop:Ta(x.h),accessibilityRole:"button",accessibilityLabel:e.alt,style:({pressed:e})=>e&&!m?{transform:[{scale:u.shotPressScale}]}:null,children:D}):n?/* @__PURE__ */z(h,{ref:b,collapsable:false,testID:r,children:D}):D}function Square2({shot:e,alt:t,testID:i}){let r=Io(),l=ea(r,Tl),[o,a]=n(null),s=e.src&&o!==e.src?e.src:null;if(!s)/* @__PURE__ */return z(BlockThumbnail,{size:"sm",src:null,alt:t,icon:e.icon,iconSize:e.iconSize,tint:e.tint,iconColor:e.iconColor,testID:i});let[c=0,d=0,u=0,p=0]=l.shotImg.padding,g=l.shotBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
92
- return z(h,{testID:i,style:[ba(r,l.shot),{width:l.shot.w,height:l.shot.h,overflow:"hidden"}],children:/* @__PURE__ */z(I,{source:{uri:s},accessibilityLabel:t,accessible:!!t,onError:()=>{a(s),e.onError?.(s)},resizeMode:l.shotImg.fit==="contain"?"contain":"cover",style:[{position:"absolute",top:c,right:d,bottom:u,left:p},g]})})}function WebSquare({shot:e,alt:t,testID:i}){let r=Io(),l=ea(r,Il),o=r.metrics.thumbnail.sm.icon,[a,s]=n(null),c=e.src&&a!==e.src?e.src:null,d=l.sq.w*l.imgInset,u=l.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null,p=l.sqRing;/* @__PURE__ */
93
- return z(h,{style:{margin:-p,padding:p,borderRadius:(l.sq.radius[0]??0)+p,backgroundColor:Fo(r,l.card.bg)||void 0},children:/* @__PURE__ */z(h,{testID:i,accessible:!c&&!!t,accessibilityRole:!c&&t?"image":void 0,accessibilityLabel:c?void 0:t,style:[ba(r,l.sq),{width:l.sq.w,height:l.sq.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!c&&e.tint!==void 0?{backgroundColor:e.tint}:null],children:c?/* @__PURE__ */z(I,{source:{uri:c},accessibilityLabel:t,accessible:!!t,onError:()=>{s(c),e.onError?.(c)},resizeMode:l.imgFit,style:[{position:"absolute",top:d,right:d,bottom:d,left:d},u]}):/* @__PURE__ */z(BlockIcon,{icon:e.icon??ss,size:e.iconSize??o.w,color:e.iconColor??Fo(r,o.color)})})})}function rc(e,t){let i=[];for(let r=0;r<e.length;r+=t){let n=e.slice(r,r+t);for(;n.length<t;)n.push(null);i.push(n)}return i}function OrderRow(e){let{title:t,meta:i,metaLink:r,notes:n,total:l,status:o,shots:a=[],actions:s=[],onPress:c,accessibilityLabel:d,error:u,loading:p=false,loadingLabel:f,actionGrid:m=false,variant:b="standard",onShotMeasure:y,testID:w,style:v}=e,k=Io(),x=ea(k,xl),T=ea(k,Tl),I=ea(k,Il),S=b==="quiet",H=b==="web",F=e=>fa(k,jo(k,e));if(p)/* @__PURE__ */
94
- return z(h,{testID:w,style:[ba(k,H?I.card:x.card),v],children:/* @__PURE__ */z(Skeleton,{lines:3,label:f})});if(H){let[e=0]=I.card.radius,p=c?{zIndex:1}:null;/* @__PURE__ */
95
- return z(h,{testID:w,style:[{borderRadius:e,backgroundColor:Fo(k,I.card.bg)||void 0},Ia(I.lift),v],children:/* @__PURE__ */D(h,{style:[ba(k,I.card),{flexDirection:"row",alignItems:I.card.center?"center":"flex-start"}],children:[c?/* @__PURE__ */z(g,{onPress:c,accessibilityRole:"button",accessibilityLabel:d,style:{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:e}}):null,a.length>0?/* @__PURE__ */z(h,{style:[{flexDirection:"row",width:I.shots.w},p],children:a.map((e,t)=>/* @__PURE__ */z(h,{style:t>0?{marginLeft:-I.sqOverlap}:null,children:/* @__PURE__ */z(Shot,{web:true,quiet:false,shot:e,pressable:c===void 0,testID:Go(w===void 0?void 0:`${w}-shot`,e.key,e.testID),onMeasure:y})},e.key))}):null,
91
+ return D(g,{testID:t,onPress:c?void 0:e.onPress,disabled:c,hitSlop:Sa(d.h),accessibilityRole:"button",accessibilityLabel:e.label,accessibilityState:{disabled:c,busy:e.busy===true},style:[wa(n,d),i?{flexShrink:1,minWidth:0}:{flex:1,minWidth:0},{flexDirection:"row",alignItems:"center",justifyContent:"center"},c?{opacity:Po}:null],children:[e.icon?/* @__PURE__ */z(BlockIcon,{icon:e.icon,size:f,color:typeof p.color=="string"?p.color:void 0}):null,
92
+ /* @__PURE__ */z(Text,{tier:"control",numberOfLines:1,style:p,children:e.label})]})}function Shot({shot:e,pressable:t,testID:r,onMeasure:n,quiet:o,web:c=false}){let d=zo(),u=ia(d,Il),p=ia(d,Sl),f=ia(d,zl),m=Ta(d),b=a(null),y=d.metrics.thumbnail.sm,w=f.sq.w*f.imgInset,v=!!e.src,k=f.sq.h,x=i(()=>c?{padding:[w,w,w,w],h:k}:o&&v?p.shotImg:v?y.frame:y.empty,[c,w,k,o,v,p,y]),T=s(()=>new Promise(e=>{let t=b.current;if(!t||typeof t.measureInWindow!="function"){e(null);return}let[i=0,r=0,n=0,l=0]=x.padding;t.measureInWindow((t,o,a,s)=>{e(a>0||s>0?{x:t+l,y:o+i,width:Math.max(0,a-l-r),height:Math.max(0,s-i-n)}:null)})}),[x]),I=e.key;l(()=>{if(n)return n(I,T),()=>n(I,null)},[n,I,T]);let S=t&&e.onPress!==void 0,D=c?/* @__PURE__ */z(WebSquare,{shot:e,alt:S?void 0:e.alt,testID:S||n?void 0:r}):o?/* @__PURE__ */z(Square2,{shot:e,alt:S?void 0:e.alt,testID:S||n?void 0:r}):/* @__PURE__ */z(BlockThumbnail,{size:"sm",src:e.src,alt:S?void 0:e.alt,icon:e.icon,iconSize:e.iconSize,tint:e.tint,iconColor:e.iconColor,onError:e.onError,testID:S||n?void 0:r});return S?/* @__PURE__ */z(g,{ref:b,collapsable:false,testID:r,onPress:e.onPress,hitSlop:Sa(x.h),accessibilityRole:"button",accessibilityLabel:e.alt,style:({pressed:e})=>e&&!m?{transform:[{scale:u.shotPressScale}]}:null,children:D}):n?/* @__PURE__ */z(h,{ref:b,collapsable:false,testID:r,children:D}):D}function Square2({shot:e,alt:t,testID:i}){let r=zo(),l=ia(r,Sl),[o,a]=n(null),s=e.src&&o!==e.src?e.src:null;if(!s)/* @__PURE__ */return z(BlockThumbnail,{size:"sm",src:null,alt:t,icon:e.icon,iconSize:e.iconSize,tint:e.tint,iconColor:e.iconColor,testID:i});let[c=0,d=0,u=0,p=0]=l.shotImg.padding,g=l.shotBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
93
+ return z(h,{testID:i,style:[wa(r,l.shot),{width:l.shot.w,height:l.shot.h,overflow:"hidden"}],children:/* @__PURE__ */z(I,{source:{uri:s},accessibilityLabel:t,accessible:!!t,onError:()=>{a(s),e.onError?.(s)},resizeMode:l.shotImg.fit==="contain"?"contain":"cover",style:[{position:"absolute",top:c,right:d,bottom:u,left:p},g]})})}function WebSquare({shot:e,alt:t,testID:i}){let r=zo(),l=ia(r,zl),o=r.metrics.thumbnail.sm.icon,[a,s]=n(null),c=e.src&&a!==e.src?e.src:null,d=l.sq.w*l.imgInset,u=l.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null,p=l.sqRing;/* @__PURE__ */
94
+ return z(h,{style:{margin:-p,padding:p,borderRadius:(l.sq.radius[0]??0)+p,backgroundColor:Oo(r,l.card.bg)||void 0},children:/* @__PURE__ */z(h,{testID:i,accessible:!c&&!!t,accessibilityRole:!c&&t?"image":void 0,accessibilityLabel:c?void 0:t,style:[wa(r,l.sq),{width:l.sq.w,height:l.sq.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!c&&e.tint!==void 0?{backgroundColor:e.tint}:null],children:c?/* @__PURE__ */z(I,{source:{uri:c},accessibilityLabel:t,accessible:!!t,onError:()=>{s(c),e.onError?.(c)},resizeMode:l.imgFit,style:[{position:"absolute",top:d,right:d,bottom:d,left:d},u]}):/* @__PURE__ */z(BlockIcon,{icon:e.icon??ds,size:e.iconSize??o.w,color:e.iconColor??Oo(r,o.color)})})})}function lc(e,t){let i=[];for(let r=0;r<e.length;r+=t){let n=e.slice(r,r+t);for(;n.length<t;)n.push(null);i.push(n)}return i}function OrderRow(e){let{title:t,meta:i,metaLink:r,notes:n,total:l,status:o,shots:a=[],actions:s=[],onPress:c,accessibilityLabel:d,error:u,loading:p=false,loadingLabel:f,actionGrid:m=false,variant:b="standard",onShotMeasure:y,testID:w,style:v}=e,k=zo(),x=ia(k,Il),T=ia(k,Sl),I=ia(k,zl),S=b==="quiet",H=b==="web",F=e=>ba(k,Wo(k,e));if(p)/* @__PURE__ */
95
+ return z(h,{testID:w,style:[wa(k,H?I.card:x.card),v],children:/* @__PURE__ */z(Skeleton,{lines:3,label:f})});if(H){let[e=0]=I.card.radius,p=c?{zIndex:1}:null;/* @__PURE__ */
96
+ return z(h,{testID:w,style:[{borderRadius:e,backgroundColor:Oo(k,I.card.bg)||void 0},za(I.lift),v],children:/* @__PURE__ */D(h,{style:[wa(k,I.card),{flexDirection:"row",alignItems:I.card.center?"center":"flex-start"}],children:[c?/* @__PURE__ */z(g,{onPress:c,accessibilityRole:"button",accessibilityLabel:d,style:{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:e}}):null,a.length>0?/* @__PURE__ */z(h,{style:[{flexDirection:"row",width:I.shots.w},p],children:a.map((e,t)=>/* @__PURE__ */z(h,{style:t>0?{marginLeft:-I.sqOverlap}:null,children:/* @__PURE__ */z(Shot,{web:true,quiet:false,shot:e,pressable:c===void 0,testID:Uo(w===void 0?void 0:`${w}-shot`,e.key,e.testID),onMeasure:y})},e.key))}):null,
96
97
  /* @__PURE__ */D(h,{pointerEvents:"box-none",style:{flex:1,minWidth:0,rowGap:I.text.gap[1]},children:[
97
98
  /* @__PURE__ */D(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:I.when.center?"center":"baseline",columnGap:I.when.gap[0],rowGap:I.when.gap[1]},children:[
98
- /* @__PURE__ */z(Text,{style:F(I.title),children:t}),l?/* @__PURE__ */z(Text,{style:F(I.total),children:l}):null,o?/* @__PURE__ */D(h,{style:[ba(k,o.stopped?I.chipOff:I.chip),{flexDirection:"row",alignItems:"center",columnGap:I.chip.gap[0]}],children:[o.icon?/* @__PURE__ */z(BlockIcon,{icon:o.icon,size:I.chipIcon.w,color:Fo(k,I.chipIcon.color)}):null,
99
- /* @__PURE__ */z(Text,{numberOfLines:1,style:F(I.chipText),children:o.label})]}):null]}),i?/* @__PURE__ */z(Text,{onPress:r?.onPress,accessibilityRole:r?.onPress?"link":void 0,testID:r?.testID,style:F(I.meta),children:i}):null,n?.map((e,t)=>typeof e=="string"?/* @__PURE__ */z(Text,{style:F(I.note),children:e},t):/* @__PURE__ */z(Text,{onPress:e.onPress,accessibilityRole:e.onPress?"link":void 0,testID:e.testID,style:F(I.note),children:e.text},t)),u?/* @__PURE__ */z(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[F(I.note),{color:k.colors.alert}],children:u}):null]}),s.length>0?/* @__PURE__ */z(h,{style:[{flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:I.acts.center?"center":void 0,columnGap:I.acts.gap[0],rowGap:I.acts.gap[1]},p],children:s.map(e=>/* @__PURE__ */z(Action,{web:true,action:e,testID:Go(w,e.key,e.testID),quiet:false},e.key))}):null]})})}let _=l?/* @__PURE__ */z(Text,{style:[F(S?T.total:x.total),{marginLeft:"auto"}],children:l}):null,O=F(T.chipText),E=S?/* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",columnGap:T.top.gap[0],rowGap:T.top.gap[1]},children:[
99
+ /* @__PURE__ */z(Text,{style:F(I.title),children:t}),l?/* @__PURE__ */z(Text,{style:F(I.total),children:l}):null,o?/* @__PURE__ */D(h,{style:[wa(k,o.stopped?I.chipOff:I.chip),{flexDirection:"row",alignItems:"center",columnGap:I.chip.gap[0]}],children:[o.icon?/* @__PURE__ */z(BlockIcon,{icon:o.icon,size:I.chipIcon.w,color:Oo(k,I.chipIcon.color)}):null,
100
+ /* @__PURE__ */z(Text,{numberOfLines:1,style:F(I.chipText),children:o.label})]}):null]}),i?/* @__PURE__ */z(Text,{onPress:r?.onPress,accessibilityRole:r?.onPress?"link":void 0,testID:r?.testID,style:F(I.meta),children:i}):null,n?.map((e,t)=>typeof e=="string"?/* @__PURE__ */z(Text,{style:F(I.note),children:e},t):/* @__PURE__ */z(Text,{onPress:e.onPress,accessibilityRole:e.onPress?"link":void 0,testID:e.testID,style:F(I.note),children:e.text},t)),u?/* @__PURE__ */z(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[F(I.note),{color:k.colors.alert}],children:u}):null]}),s.length>0?/* @__PURE__ */z(h,{style:[{flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:I.acts.center?"center":void 0,columnGap:I.acts.gap[0],rowGap:I.acts.gap[1]},p],children:s.map(e=>/* @__PURE__ */z(Action,{web:true,action:e,testID:Uo(w,e.key,e.testID),quiet:false},e.key))}):null]})})}let _=l?/* @__PURE__ */z(Text,{style:[F(S?T.total:x.total),{marginLeft:"auto"}],children:l}):null,O=F(T.chipText),E=S?/* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",columnGap:T.top.gap[0],rowGap:T.top.gap[1]},children:[
100
101
  /* @__PURE__ */D(h,{style:{flexShrink:1,minWidth:0},children:[
101
102
  /* @__PURE__ */D(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:T.when.center?"center":"baseline",columnGap:T.when.gap[0],rowGap:T.when.gap[1]},children:[
102
- /* @__PURE__ */z(Text,{style:F(T.title),children:t}),o?/* @__PURE__ */D(h,{style:[ba(k,T.chip),{flexDirection:"row",alignItems:"center",columnGap:T.chip.gap[0]}],children:[o.icon?/* @__PURE__ */z(BlockIcon,{icon:o.icon,size:T.chipIcon.w,color:Fo(k,T.chipIcon.color)}):null,
103
+ /* @__PURE__ */z(Text,{style:F(T.title),children:t}),o?/* @__PURE__ */D(h,{style:[wa(k,T.chip),{flexDirection:"row",alignItems:"center",columnGap:T.chip.gap[0]}],children:[o.icon?/* @__PURE__ */z(BlockIcon,{icon:o.icon,size:T.chipIcon.w,color:Oo(k,T.chipIcon.color)}):null,
103
104
  /* @__PURE__ */z(Text,{numberOfLines:1,style:O,children:o.label})]}):null]}),i?/* @__PURE__ */z(Text,{style:[F(T.meta),{marginTop:T.meta.marginTop}],children:i}):null]}),_]}):/* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",columnGap:x.top.gap[0],rowGap:x.top.gap[1]},children:[
104
105
  /* @__PURE__ */D(h,{style:{flexShrink:1,minWidth:0},children:[
105
- /* @__PURE__ */z(Text,{style:F(x.title),children:t}),i?/* @__PURE__ */z(Text,{style:F(x.meta),children:i}):null]}),_]}),P=S?T.shots:x.shots,L=/* @__PURE__ */D(C,{children:[E,a.length>0?/* @__PURE__ */z(h,{style:{flexDirection:"row",flexWrap:"wrap",columnGap:P.gap[0],rowGap:P.gap[0],marginTop:P.marginTop},children:a.map(e=>/* @__PURE__ */z(Shot,{shot:e,pressable:c===void 0,testID:Go(w===void 0?void 0:`${w}-shot`,e.key,e.testID),onMeasure:y,quiet:S},e.key))}):null]});/* @__PURE__ */
106
- return D(h,{testID:w,style:[ba(k,x.card),{columnGap:0},v],children:[
107
- /* @__PURE__ */z(h,{style:{flexDirection:"row",alignItems:x.card.center?"center":"flex-start",columnGap:x.card.gap[0]},children:c?/* @__PURE__ */z(g,{onPress:c,accessibilityRole:"button",accessibilityLabel:d,style:{flex:1,minWidth:0},children:L}):/* @__PURE__ */z(h,{style:{flex:1,minWidth:0},children:L})}),u?/* @__PURE__ */z(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[F(x.note),{marginTop:x.note.marginTop,color:k.colors.alert}],children:u}):null,s.length>0&&S?/* @__PURE__ */z(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:T.acts.center?"center":void 0,columnGap:T.acts.gap[0],rowGap:T.acts.gap[1],marginTop:T.acts.marginTop},children:s.map(e=>/* @__PURE__ */z(Action,{action:e,testID:Go(w,e.key,e.testID),quiet:true},e.key))}):null,s.length>0&&!S&&!m?/* @__PURE__ */z(h,{style:{flexDirection:"row",columnGap:x.acts.gap[0],marginTop:x.acts.marginTop},children:s.map(e=>/* @__PURE__ */z(Action,{action:e,testID:Go(w,e.key,e.testID),quiet:false},e.key))}):null,s.length>0&&!S&&m?/* @__PURE__ */z(h,{style:{rowGap:x.acts.gap[1],marginTop:x.acts.marginTop},children:rc(s,x.actsColumns).map((e,t)=>/* @__PURE__ */z(h,{style:{flexDirection:"row",columnGap:x.acts.gap[0]},children:e.map((e,t)=>/* @__PURE__ */z(h,{style:{flex:1,minWidth:0,flexDirection:"row"},children:e?/* @__PURE__ */z(Action,{action:e,testID:Go(w,e.key,e.testID),quiet:false}):null},e?e.key:`gap-${t}`))},t))}):null]})}function nc(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function Photo({image:e,onImageError:t,box:i,testID:r}){let l=Io(),[o,a]=n(null),s=nc(e),c=[ba(l,i),{width:i.w,height:i.h,overflow:"hidden"}];return!s||o===e?/* @__PURE__ */z(h,{style:c}):/* @__PURE__ */z(h,{style:c,children:/* @__PURE__ */z(FadeImage,{testID:r,source:s,resizeMode:"cover",onError:()=>{e!=null&&(a(e),t?.(e))},style:{position:"absolute",top:0,right:0,bottom:0,left:0}},JSON.stringify(s))})}function Quote({quote:e,m:t,testID:i}){let r=Io(),n=e=>fa(r,jo(r,e)),l=e.tag?/* @__PURE__ */z(h,{testID:i===void 0?void 0:`${i}-tag`,style:ba(r,t.saysTag),children:/* @__PURE__ */z(Text,{style:[n(t.saysTagText),{paddingTop:0,lineHeight:t.saysTag.h-(t.saysTag.padding?.[0]??0)-(t.saysTag.padding?.[2]??0)}],children:e.tag})}):null;return nc(e.image)===null?/* @__PURE__ */D(h,{testID:i,style:[ba(r,t.says),{flexDirection:"column",rowGap:t.saysBare.gap[1],marginTop:t.says.marginTop}],children:[e.by||l?/* @__PURE__ */D(Text,{style:n(t.saysKicker),children:[e.by,e.by&&l?" ":null,l]}):null,
108
- /* @__PURE__ */z(Text,{style:n(t.saysSerif),children:e.text})]}):/* @__PURE__ */D(h,{testID:i,style:[ba(r,t.says),{flexDirection:"row",alignItems:"flex-start",columnGap:t.says.gap[0],marginTop:t.says.marginTop}],children:[
106
+ /* @__PURE__ */z(Text,{style:F(x.title),children:t}),i?/* @__PURE__ */z(Text,{style:F(x.meta),children:i}):null]}),_]}),P=S?T.shots:x.shots,L=/* @__PURE__ */D(C,{children:[E,a.length>0?/* @__PURE__ */z(h,{style:{flexDirection:"row",flexWrap:"wrap",columnGap:P.gap[0],rowGap:P.gap[0],marginTop:P.marginTop},children:a.map(e=>/* @__PURE__ */z(Shot,{shot:e,pressable:c===void 0,testID:Uo(w===void 0?void 0:`${w}-shot`,e.key,e.testID),onMeasure:y,quiet:S},e.key))}):null]});/* @__PURE__ */
107
+ return D(h,{testID:w,style:[wa(k,x.card),{columnGap:0},v],children:[
108
+ /* @__PURE__ */z(h,{style:{flexDirection:"row",alignItems:x.card.center?"center":"flex-start",columnGap:x.card.gap[0]},children:c?/* @__PURE__ */z(g,{onPress:c,accessibilityRole:"button",accessibilityLabel:d,style:{flex:1,minWidth:0},children:L}):/* @__PURE__ */z(h,{style:{flex:1,minWidth:0},children:L})}),u?/* @__PURE__ */z(Text,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[F(x.note),{marginTop:x.note.marginTop,color:k.colors.alert}],children:u}):null,s.length>0&&S?/* @__PURE__ */z(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:T.acts.center?"center":void 0,columnGap:T.acts.gap[0],rowGap:T.acts.gap[1],marginTop:T.acts.marginTop},children:s.map(e=>/* @__PURE__ */z(Action,{action:e,testID:Uo(w,e.key,e.testID),quiet:true},e.key))}):null,s.length>0&&!S&&!m?/* @__PURE__ */z(h,{style:{flexDirection:"row",columnGap:x.acts.gap[0],marginTop:x.acts.marginTop},children:s.map(e=>/* @__PURE__ */z(Action,{action:e,testID:Uo(w,e.key,e.testID),quiet:false},e.key))}):null,s.length>0&&!S&&m?/* @__PURE__ */z(h,{style:{rowGap:x.acts.gap[1],marginTop:x.acts.marginTop},children:lc(s,x.actsColumns).map((e,t)=>/* @__PURE__ */z(h,{style:{flexDirection:"row",columnGap:x.acts.gap[0]},children:e.map((e,t)=>/* @__PURE__ */z(h,{style:{flex:1,minWidth:0,flexDirection:"row"},children:e?/* @__PURE__ */z(Action,{action:e,testID:Uo(w,e.key,e.testID),quiet:false}):null},e?e.key:`gap-${t}`))},t))}):null]})}function oc(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function Photo({image:e,onImageError:t,box:i,testID:r}){let l=zo(),[o,a]=n(null),s=oc(e),c=[wa(l,i),{width:i.w,height:i.h,overflow:"hidden"}];return!s||o===e?/* @__PURE__ */z(h,{style:c}):/* @__PURE__ */z(h,{style:c,children:/* @__PURE__ */z(FadeImage,{testID:r,source:s,resizeMode:"cover",onError:()=>{e!=null&&(a(e),t?.(e))},style:{position:"absolute",top:0,right:0,bottom:0,left:0}},JSON.stringify(s))})}function Quote({quote:e,m:t,testID:i}){let r=zo(),n=e=>ba(r,Wo(r,e)),l=e.tag?/* @__PURE__ */z(h,{testID:i===void 0?void 0:`${i}-tag`,style:wa(r,t.saysTag),children:/* @__PURE__ */z(Text,{style:[n(t.saysTagText),{paddingTop:0,lineHeight:t.saysTag.h-(t.saysTag.padding?.[0]??0)-(t.saysTag.padding?.[2]??0)}],children:e.tag})}):null;return oc(e.image)===null?/* @__PURE__ */D(h,{testID:i,style:[wa(r,t.says),{flexDirection:"column",rowGap:t.saysBare.gap[1],marginTop:t.says.marginTop}],children:[e.by||l?/* @__PURE__ */D(Text,{style:n(t.saysKicker),children:[e.by,e.by&&l?" ":null,l]}):null,
109
+ /* @__PURE__ */z(Text,{style:n(t.saysSerif),children:e.text})]}):/* @__PURE__ */D(h,{testID:i,style:[wa(r,t.says),{flexDirection:"row",alignItems:"flex-start",columnGap:t.says.gap[0],marginTop:t.says.marginTop}],children:[
109
110
  /* @__PURE__ */z(Photo,{image:e.image,onImageError:e.onImageError,box:t.saysImg}),
110
- /* @__PURE__ */D(Text,{style:[n(t.saysText),{flex:1}],children:[e.by?/* @__PURE__ */z(Text,{style:n(t.saysBy),children:e.by}):null,e.by?" ":null,e.text,l?" ":null,l]})]})}function Jump({jump:e,m:t,testID:i}){let r=Io(),n=ka(r),l=e=>fa(r,jo(r,e)),o=nc(e.image)!==null,a=[ba(r,t.jump),{flexDirection:"row",alignItems:"center",columnGap:t.jump.gap[0],marginTop:t.jump.marginTop}],s=/* @__PURE__ */D(C,{children:[o?/* @__PURE__ */z(Photo,{image:e.image,onImageError:e.onImageError,box:t.jumpImg}):null,
111
+ /* @__PURE__ */D(Text,{style:[n(t.saysText),{flex:1}],children:[e.by?/* @__PURE__ */z(Text,{style:n(t.saysBy),children:e.by}):null,e.by?" ":null,e.text,l?" ":null,l]})]})}function Jump({jump:e,m:t,testID:i}){let r=zo(),n=Ta(r),l=e=>ba(r,Wo(r,e)),o=oc(e.image)!==null,a=[wa(r,t.jump),{flexDirection:"row",alignItems:"center",columnGap:t.jump.gap[0],marginTop:t.jump.marginTop}],s=/* @__PURE__ */D(C,{children:[o?/* @__PURE__ */z(Photo,{image:e.image,onImageError:e.onImageError,box:t.jumpImg}):null,
111
112
  /* @__PURE__ */D(h,{style:{flex:1,minWidth:0},children:[
112
113
  /* @__PURE__ */z(Text,{style:l(t.jumpKicker),children:e.kicker}),
113
114
  /* @__PURE__ */z(Text,{style:l(t.jumpTitle),children:e.title})]}),
114
- /* @__PURE__ */z(Text,{style:l(t.jumpGo),children:e.go})]});return e.onPress?/* @__PURE__ */z(g,{testID:i,onPress:e.onPress,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??`${e.kicker}, ${e.title}`,style:({pressed:e})=>[...a,e&&!n?{transform:[{scale:t.jumpPressScale}]}:null],children:s}):/* @__PURE__ */z(h,{testID:i,style:a,children:s})}function PlanNeedCard({kicker:e,source:t,sources:i,title:r,signals:n,score:l,more:o,quote:a,jump:s,variant:c="standard",children:d,beforeJump:u,loading:p=false,loadingLabel:f,testID:m,style:b}){let y=Io(),w=c==="plan",v=ea(y,Bl),k=w?v:ea(y,Ll),x=e=>m===void 0?void 0:`${m}-${e}`,T=i??(t?[{label:t}]:[]),I=e=>fa(y,jo(y,e)),S=[ba(y,k.card),{marginTop:0},b];if(p)/* @__PURE__ */
115
+ /* @__PURE__ */z(Text,{style:l(t.jumpGo),children:e.go})]});return e.onPress?/* @__PURE__ */z(g,{testID:i,onPress:e.onPress,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??`${e.kicker}, ${e.title}`,style:({pressed:e})=>[...a,e&&!n?{transform:[{scale:t.jumpPressScale}]}:null],children:s}):/* @__PURE__ */z(h,{testID:i,style:a,children:s})}function PlanNeedCard({kicker:e,source:t,sources:i,title:r,signals:n,score:l,more:o,quote:a,jump:s,variant:c="standard",children:d,beforeJump:u,loading:p=false,loadingLabel:f,testID:m,style:b}){let y=zo(),w=c==="plan",v=ia(y,Rl),k=w?v:ia(y,Al),x=e=>m===void 0?void 0:`${m}-${e}`,T=i??(t?[{label:t}]:[]),I=e=>ba(y,Wo(y,e)),S=[wa(y,k.card),{marginTop:0},b];if(p)/* @__PURE__ */
115
116
  return z(h,{testID:m,style:S,children:/* @__PURE__ */z(Skeleton,{lines:3,label:f})});let H=I(k.signalText);/* @__PURE__ */
116
117
  return D(h,{testID:m,style:S,children:[
117
118
  /* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",columnGap:k.kicker.gap[0],minHeight:T.length>0?k.kicker.h:void 0},children:[
118
119
  /* @__PURE__ */z(Text,{style:I(k.kickerText),children:e}),T.length>0?/* @__PURE__ */z(h,{style:{marginLeft:"auto",flexDirection:"row",columnGap:v.sources.gap[0],flexShrink:1},children:T.map((e,t)=>{let r=e.kind==="dna";/* @__PURE__ */
119
- return z(h,{testID:x(i?`source-${t}`:"source"),style:[ba(y,k.source),r?{backgroundColor:Fo(y,v.sourceDna.bg)}:null,{height:k.source.h,justifyContent:"center"}],children:/* @__PURE__ */z(Text,{numberOfLines:1,style:I(r?v.sourceDnaText:k.sourceText),children:e.label})},`${t}-${e.label}`)})}):null]}),r?/* @__PURE__ */z(Text,{accessibilityRole:"header",style:[I(k.title),{marginTop:k.title.marginTop}],children:r}):null,n.map(e=>/* @__PURE__ */D(h,{style:{flexDirection:"row",columnGap:k.signal.gap[0],marginTop:k.signal.marginTop},children:[e.dot===false?null:e.dot==="space"?/* @__PURE__ */z(h,{style:{width:k.dot.w}}):/* @__PURE__ */z(h,{style:{height:H.lineHeight,justifyContent:"center",paddingTop:(H.fontSize??0)*.4-k.dot.h/2},children:/* @__PURE__ */z(h,{style:{width:k.dot.w,height:k.dot.h,borderRadius:k.dot.w/2,backgroundColor:Fo(y,w&&e.tone==="watch"?v.dotWatch.bg:w&&e.tone==="clear"?v.dotClear.bg:k.dot.bg),transform:[{translateY:k.dot.dy}]}})}),
120
+ return z(h,{testID:x(i?`source-${t}`:"source"),style:[wa(y,k.source),r?{backgroundColor:Oo(y,v.sourceDna.bg)}:null,{height:k.source.h,justifyContent:"center"}],children:/* @__PURE__ */z(Text,{numberOfLines:1,style:I(r?v.sourceDnaText:k.sourceText),children:e.label})},`${t}-${e.label}`)})}):null]}),r?/* @__PURE__ */z(Text,{accessibilityRole:"header",style:[I(k.title),{marginTop:k.title.marginTop}],children:r}):null,n.map(e=>/* @__PURE__ */D(h,{style:{flexDirection:"row",columnGap:k.signal.gap[0],marginTop:k.signal.marginTop},children:[e.dot===false?null:e.dot==="space"?/* @__PURE__ */z(h,{style:{width:k.dot.w}}):/* @__PURE__ */z(h,{style:{height:H.lineHeight,justifyContent:"center",paddingTop:(H.fontSize??0)*.4-k.dot.h/2},children:/* @__PURE__ */z(h,{style:{width:k.dot.w,height:k.dot.h,borderRadius:k.dot.w/2,backgroundColor:Oo(y,w&&e.tone==="watch"?v.dotWatch.bg:w&&e.tone==="clear"?v.dotClear.bg:k.dot.bg),transform:[{translateY:k.dot.dy}]}})}),
120
121
  /* @__PURE__ */D(Text,{style:[H,{flex:1}],children:[e.lead?/* @__PURE__ */z(Text,{style:I(k.signalLead),children:e.lead}):null,e.lead?" ":null,e.text]})]},e.key)),w&&o?/* @__PURE__ */D(C,{children:[
121
122
  /* @__PURE__ */D(g,{testID:x("more"),onPress:o.onPress,accessibilityRole:"button",accessibilityState:{expanded:o.expanded},"aria-expanded":o.expanded,style:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",columnGap:v.more.gap[0],minHeight:v.more.minHeight,marginTop:v.more.marginTop,marginBottom:v.more.marginBottom,marginLeft:v.moreInset},children:[
122
123
  /* @__PURE__ */z(Text,{style:I(v.moreText),children:o.label}),
123
- /* @__PURE__ */z(Glyph,{icon:ps,size:v.moreIcon.w,color:Fo(y,v.moreText.color),style:{transform:[{rotate:`${o.expanded?v.moreTurn.open:v.moreTurn.closed}deg`}]}})]}),o.expanded?/* @__PURE__ */z(h,{testID:x("more-panel"),nativeID:o.panelId,style:[ba(y,v.rep),{marginTop:v.rep.marginTop}],children:o.content}):null]}):null,l?/* @__PURE__ */D(h,{testID:m===void 0?void 0:`${m}-score`,style:[ba(y,k.score),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
124
- /* @__PURE__ */z(h,{style:{flexShrink:1,minWidth:0,maxWidth:w&&v.scoreLabelMax?v.scoreLabelMax:void 0},children:/* @__PURE__ */D(Text,{style:I(k.scoreLabel),children:[l.label,l.tag?" ":null,l.tag?/* @__PURE__ */z(h,{testID:x("tag"),style:ba(y,k.scoreTag),children:/* @__PURE__ */z(Text,{style:I(k.scoreTagText),children:l.tag})}):null]})}),
124
+ /* @__PURE__ */z(Glyph,{icon:gs,size:v.moreIcon.w,color:Oo(y,v.moreText.color),style:{transform:[{rotate:`${o.expanded?v.moreTurn.open:v.moreTurn.closed}deg`}]}})]}),o.expanded?/* @__PURE__ */z(h,{testID:x("more-panel"),nativeID:o.panelId,style:[wa(y,v.rep),{marginTop:v.rep.marginTop}],children:o.content}):null]}):null,l?/* @__PURE__ */D(h,{testID:m===void 0?void 0:`${m}-score`,style:[wa(y,k.score),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
125
+ /* @__PURE__ */z(h,{style:{flexShrink:1,minWidth:0,maxWidth:w&&v.scoreLabelMax?v.scoreLabelMax:void 0},children:/* @__PURE__ */D(Text,{style:I(k.scoreLabel),children:[l.label,l.tag?" ":null,l.tag?/* @__PURE__ */z(h,{testID:x("tag"),style:wa(y,k.scoreTag),children:/* @__PURE__ */z(Text,{style:I(k.scoreTagText),children:l.tag})}):null]})}),
125
126
  /* @__PURE__ */D(h,{accessible:l.accessibilityLabel!==void 0,accessibilityLabel:l.accessibilityLabel,style:{flexShrink:0,alignItems:"flex-end"},children:[
126
- /* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",columnGap:k.scoreNums.gap[0]},children:[l.was?/* @__PURE__ */z(Text,{style:I(k.scoreWas),children:l.was}):null,l.was?l.icon!==void 0?/* @__PURE__ */z(h,{testID:x("arrow"),children:/* @__PURE__ */z(BlockIcon,{icon:l.icon,size:k.scoreArrow.w,color:Fo(y,k.scoreArrow.color)})}):/* @__PURE__ */z(Glyph,{testID:x("arrow"),icon:ns,size:k.scoreArrow.w,color:Fo(y,k.scoreArrow.color),style:k.scoreArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,
127
- /* @__PURE__ */D(Text,{style:I(k.scoreNow),children:[l.now,l.of?/* @__PURE__ */z(Text,{style:I(k.scoreOf),children:l.of}):null]})]}),l.since?/* @__PURE__ */z(Text,{style:[I(k.scoreSince),{marginTop:k.scoreSince.marginTop}],children:l.since}):null]})]}):null,w&&a?/* @__PURE__ */z(Quote,{quote:a,m:v,testID:x("quote")}):null,w?u:null,w&&s?/* @__PURE__ */z(Jump,{jump:s,m:v,testID:x("jump")}):null,d]})}function lc(e){return(typeof e=="string"?[e]:e).map(e=>typeof e=="string"?{text:e}:e)}function PriceSummary({rows:e,total:t,note:i,...r}){let n=Io();if(i===void 0||i.length===0||r.loading)/* @__PURE__ */return z(SummaryList,{...r,rows:e,total:t??false});let{testID:l,style:o,...a}=r,s=ea(n,Pl),c=(e,t)=>({...e,testID:Go(l,e.key??t,e.testID)}),d=fa(n,jo(n,s.noteStrong));/* @__PURE__ */
127
+ /* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",columnGap:k.scoreNums.gap[0]},children:[l.was?/* @__PURE__ */z(Text,{style:I(k.scoreWas),children:l.was}):null,l.was?l.icon!==void 0?/* @__PURE__ */z(h,{testID:x("arrow"),children:/* @__PURE__ */z(BlockIcon,{icon:l.icon,size:k.scoreArrow.w,color:Oo(y,k.scoreArrow.color)})}):/* @__PURE__ */z(Glyph,{testID:x("arrow"),icon:os,size:k.scoreArrow.w,color:Oo(y,k.scoreArrow.color),style:k.scoreArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,
128
+ /* @__PURE__ */D(Text,{style:I(k.scoreNow),children:[l.now,l.of?/* @__PURE__ */z(Text,{style:I(k.scoreOf),children:l.of}):null]})]}),l.since?/* @__PURE__ */z(Text,{style:[I(k.scoreSince),{marginTop:k.scoreSince.marginTop}],children:l.since}):null]})]}):null,w&&a?/* @__PURE__ */z(Quote,{quote:a,m:v,testID:x("quote")}):null,w?u:null,w&&s?/* @__PURE__ */z(Jump,{jump:s,m:v,testID:x("jump")}):null,d]})}function ac(e){return(typeof e=="string"?[e]:e).map(e=>typeof e=="string"?{text:e}:e)}function PriceSummary({rows:e,total:t,note:i,...r}){let n=zo();if(i===void 0||i.length===0||r.loading)/* @__PURE__ */return z(SummaryList,{...r,rows:e,total:t??false});let{testID:l,style:o,...a}=r,s=ia(n,Bl),c=(e,t)=>({...e,testID:Uo(l,e.key??t,e.testID)}),d=ba(n,Wo(n,s.noteStrong));/* @__PURE__ */
128
129
  return D(h,{testID:l,style:o,children:[
129
130
  /* @__PURE__ */z(SummaryList,{...a,rows:e.map((e,t)=>c(e,t)),total:t?c({...t,key:t.key??"total"},"total"):false}),
130
- /* @__PURE__ */z(Text,{testID:l===void 0?void 0:`${l}-note`,style:[fa(n,jo(n,s.note)),{marginTop:s.note.marginTop}],children:lc(i).map((e,t)=>e.strong?/* @__PURE__ */z(Text,{style:d,children:e.text},t):e.text)})]})}var oc={tile:"md",row:"xs",card:"lg"};function StepButton({icon:e,label:t,onPress:i,disabled:r,color:n,testID:l}){let o=Io(),a=ea(o,zl);/* @__PURE__ */
131
- return z(g,{testID:l,onPress:r?void 0:i,disabled:r,accessibilityRole:"button",accessibilityLabel:t,accessibilityState:r?{disabled:true}:void 0,hitSlop:Ta(a.stepButton.w),style:{width:a.stepButton.w,height:a.stepButton.h,borderRadius:a.stepButton.radius[0],alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */z(Glyph,{icon:e==="minus"?Cs:Ps,size:a.stepIcon.w,color:n})})}function CardStepper({q:e,blend:t,lift:i,testID:r}){let n=Io(),l=ea(n,zl),o=e.min??0,a=e.max??Number.POSITIVE_INFINITY,s=e=>r===void 0?void 0:`${r}-${e}`,c={position:"absolute",right:l.stepAt.right,bottom:l.stepAt.bottom};if(e.value<=0){let o=$o(n,l.step.bg);/* @__PURE__ */
132
- return z(h,{testID:r,accessibilityLabel:e.label,style:[c,{borderRadius:l.stepButton.radius[0]},o?{backgroundColor:o}:null,i?Ia({...t?ea(n,Dl).lift:l.lift}):null],children:/* @__PURE__ */z(StepButton,{icon:"plus",label:e.moreLabel,onPress:()=>Ks(e,Math.min(a,e.value+1)),disabled:e.value>=a,color:Fo(n,l.step.color),testID:s("more")})})}let d=Fo(n,l.stepIn.color);/* @__PURE__ */
133
- return D(h,{testID:r,accessibilityLabel:e.label,style:[c,ba(n,l.stepIn),{flexDirection:"row",alignItems:"center",width:l.stepIn.w,height:l.stepIn.h}],children:[
134
- /* @__PURE__ */z(StepButton,{icon:"minus",label:e.fewerLabel,onPress:()=>Ks(e,Math.max(o,e.value-1)),disabled:e.value<=o,color:d,testID:s("fewer")}),
135
- /* @__PURE__ */z(Text,{testID:s("count"),accessibilityLiveRegion:"polite",style:[fa(n,jo(n,l.count)),{flex:1,textAlign:"center"}],children:e.value}),
136
- /* @__PURE__ */z(StepButton,{icon:"plus",label:e.moreLabel,onPress:()=>Ks(e,Math.min(a,e.value+1)),disabled:e.value>=a,color:d,testID:s("more")})]})}function CardPill({action:e,blend:t,testID:i}){let r=Io(),n=ea(r,zl),l=ea(r,Dl),o=ka(r),a=e.kind??"refill",[s,c,d]=a==="manage"?[n.pillSoft,n.pillSoftText,n.pillPressScale]:a==="inCart"?t?[l.pillOn,l.pillOnText,l.pillPressScale]:[n.pillOn,n.pillOnText,n.pillPressScale]:t?[l.pill,l.pillText,l.pillPressScale]:[n.pill,n.pillText,n.pillPressScale],u=fa(r,jo(r,c)),p=ya(r,s),f=e.disabled===true||e.busy===true;/* @__PURE__ */
137
- return D(g,{testID:i,onPress:f?void 0:e.onPress,disabled:f,accessibilityRole:a==="refill"?"button":"link",accessibilityLabel:e.label,accessibilityState:{disabled:f,busy:e.busy===true},hitSlop:Ta(s.minHeight),style:({pressed:e})=>[{position:"absolute",right:n.pillAt.right,bottom:n.pillAt.bottom,flexDirection:"row",alignItems:"center"},ba(r,s),f?{opacity:Oo}:null,e&&!o&&!f?{transform:[{scale:d}]}:null],children:[e.icon?/* @__PURE__ */z(BlockIcon,{icon:e.icon,size:n.pillIcon.w,color:typeof u.color=="string"?u.color:void 0}):null,
138
- /* @__PURE__ */z(Text,{tier:"control",numberOfLines:1,style:u,children:e.label}),p?/* @__PURE__ */z(h,{pointerEvents:"none",style:p}):null]})}function BlendPhoto({src:e,alt:t,fallback:i,onError:r,testID:l}){let o=Io(),a=ea(o,Dl),s=o.metrics.thumbnail.lg.frame,[c,d]=n(null),u=e&&c!==e?e:null;if(!u)/* @__PURE__ */return z(BlockThumbnail,{size:"lg",src:null,alt:t,icon:i?.icon,iconSize:i?.iconSize,tint:i?.tint,iconColor:i?.iconColor,testID:l});let[p=0,g=0,f=0,m=0]=a.img.padding.map((e,t)=>e+(s.padding[t]??0)),b=a.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
139
- return z(h,{testID:l,style:[ba(o,s),{width:"100%",aspectRatio:1,overflow:"hidden"}],children:/* @__PURE__ */z(I,{source:{uri:u},accessibilityLabel:t,accessible:!!t,onError:()=>{d(u),r?.(u)},resizeMode:o.metrics.thumbnail.lg.img.fit==="contain"?"contain":"cover",style:[{position:"absolute",top:p,right:g,bottom:f,left:m},b]})})}function ac(e,t,i,r){return i?e.imgInsetEven:t?e.imgInsetTag:r?e.imgInsetWhite:e.imgInset}function sc(e,t,i,r=false,n=false){let l=ea(e,Cl),o=ac(l,t,r,n);return o.share.map((e,t)=>e*i+(o.px[t]??0))}function WebStepButton({icon:e,size:t,label:i,onPress:r,disabled:n,color:l,settle:o,testID:a}){let s=Io(),c=ea(s,Cl),d=ka(s);/* @__PURE__ */
140
- return z(g,{testID:a,onPress:n?void 0:r,disabled:n,accessibilityRole:"button",accessibilityLabel:i,accessibilityState:n?{disabled:true}:void 0,hitSlop:Ta(c.stepButton.w),style:({pressed:e})=>[{width:c.stepButton.w,height:c.stepButton.h,borderRadius:c.stepButton.radius[0],alignItems:"center",justifyContent:"center"},e&&!d&&!n?{transform:[{scale:o}]}:null],children:/* @__PURE__ */z(Glyph,{icon:e==="minus"?Cs:Ps,size:t,color:l})})}function WebStepper({q:e,lift:t,testID:i}){let r=Io(),n=ea(r,Cl),l=e.min??0,o=e.max??Number.POSITIVE_INFINITY,a=e=>i===void 0?void 0:`${i}-${e}`;if(e.value<=0)/* @__PURE__ */
141
- return z(h,{testID:i,accessibilityLabel:e.label,style:ba(r,t?n.add:{...n.add,shadow:{...n.add.shadow,x:0,y:0,blur:0}}),children:/* @__PURE__ */z(WebStepButton,{icon:"plus",size:n.addIcon.w,label:e.moreLabel,onPress:()=>Ks(e,Math.min(o,e.value+1)),disabled:e.value>=o,color:Fo(r,n.add.color),settle:n.addPressScale,testID:a("more")})});let s=Fo(r,n.step.color);/* @__PURE__ */
142
- return D(h,{testID:i,accessibilityLabel:e.label,style:[ba(r,n.step),{flexDirection:"row",alignItems:"center",height:n.step.h}],children:[
143
- /* @__PURE__ */z(WebStepButton,{icon:"minus",size:n.stepIcon.w,label:e.fewerLabel,onPress:()=>Ks(e,Math.max(l,e.value-1)),disabled:e.value<=l,color:s,settle:n.stepPressScale,testID:a("fewer")}),
144
- /* @__PURE__ */z(Text,{testID:a("count"),accessibilityLiveRegion:"polite",style:[fa(r,jo(r,n.count)),{minWidth:n.step.w-2*n.stepButton.w,textAlign:"center"}],children:e.value}),
145
- /* @__PURE__ */z(WebStepButton,{icon:"plus",size:n.stepIcon.w,label:e.moreLabel,onPress:()=>Ks(e,Math.min(o,e.value+1)),disabled:e.value>=o,color:s,settle:n.stepPressScale,testID:a("more")})]})}function WebPill({action:e,testID:t}){let i=Io(),r=ea(i,Cl),n=ka(i),l=e.kind??"refill",[o,a]=l==="manage"?[r.pillSoft,r.pillSoftText]:l==="inCart"?[r.pillOn,r.pillOnText]:[r.pill,r.pillText],s=fa(i,jo(i,a)),c=ya(i,o),d=e.disabled===true||e.busy===true;/* @__PURE__ */
146
- return D(g,{testID:t,onPress:d?void 0:e.onPress,disabled:d,accessibilityRole:l==="refill"?"button":"link",accessibilityLabel:e.label,accessibilityState:{disabled:d,busy:e.busy===true},hitSlop:Ta(o.minHeight),style:({pressed:e})=>[{flexDirection:"row",alignItems:"center",justifyContent:"center"},ba(i,o),d?{opacity:Oo}:null,e&&!n&&!d?{transform:[{scale:r.pillPressScale}]}:null],children:[e.icon?/* @__PURE__ */z(BlockIcon,{icon:e.icon,size:r.pillIcon.w,color:typeof s.color=="string"?s.color:void 0}):null,
147
- /* @__PURE__ */z(Text,{tier:"control",numberOfLines:1,style:s,children:e.label}),c?/* @__PURE__ */z(h,{pointerEvents:"none",style:c}):null]})}function WebPhoto({src:e,alt:t,tagged:i,even:r,white:l,fallback:o,onError:a,testID:s}){let c=Io(),d=ea(c,Cl),[u,p]=n(null),g=e&&u!==e?e:null,f=ac(d,i,r,l),m=e=>`${Math.round((f.share[e]??0)*1e5)/1e3}%`,b=d.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
148
- return z(h,{testID:s,style:[ba(c,d.square),{width:"100%",aspectRatio:1,overflow:"hidden"},l?{backgroundColor:Fo(c,d.groundWhite)}:null,!g&&o?.tint?{backgroundColor:o.tint}:null],children:g?/* @__PURE__ */z(I,{source:{uri:g},accessibilityLabel:t,accessible:!!t,onError:()=>{p(g),a?.(g)},resizeMode:d.imgFit,style:[{position:"absolute",top:m(0),right:m(1),bottom:m(2),left:m(3),marginTop:f.px[0]??0,marginRight:f.px[1]??0,marginBottom:f.px[2]??0,marginLeft:f.px[3]??0},b]}):o?.icon?/* @__PURE__ */z(h,{style:{flex:1,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */z(BlockIcon,{icon:o.icon,size:o.iconSize??d.addIcon.w,color:o.iconColor})}):null})}function WebCard({props:e,media:t}){let{name:i,image:r,imageAlt:n,meta:l,price:o,wasPrice:a,per:s,badge:c,tag:d,stepper:u,addLift:p=true,fallback:f,onImageError:m,action:b,onPress:y,loading:w=false,loadingLabel:v,ground:k="shelf",imageInset:x="standard",testID:T,style:I}=e,S=Io(),H=ea(S,Cl),F=e=>fa(S,jo(S,e)),_=e=>T===void 0?void 0:`${T}-${e}`,O=d?.color??Fo(S,H.tagIcon.color),E=ya(S,H.badge),P=/* @__PURE__ */D(C,{children:[
149
- /* @__PURE__ */D(h,{ref:t,collapsable:false,style:{marginBottom:H.square.marginBottom},children:[w?/* @__PURE__ */z(h,{style:{width:"100%",aspectRatio:1,borderRadius:H.square.radius[0],backgroundColor:S.colors.tintSage}}):/* @__PURE__ */z(WebPhoto,{src:r,alt:n,tagged:d!==void 0,even:x==="even",white:k==="white",fallback:f,onError:m,testID:_("image")}),!w&&d?/* @__PURE__ */D(h,{testID:_("tag"),style:[ba(S,H.tag),{position:"absolute",left:H.tag.x,top:H.tag.y,maxWidth:"100%",flexDirection:"row",alignItems:"center",backgroundColor:Ho(O,H.tagMix,S.colors.surface,Fo(S,H.tag.bg))}],children:[d.icon?/* @__PURE__ */z(BlockIcon,{icon:d.icon,size:H.tagIcon.w,color:O}):null,
131
+ /* @__PURE__ */z(Text,{testID:l===void 0?void 0:`${l}-note`,style:[ba(n,Wo(n,s.note)),{marginTop:s.note.marginTop}],children:ac(i).map((e,t)=>e.strong?/* @__PURE__ */z(Text,{style:d,children:e.text},t):e.text)})]})}var sc={tile:"md",row:"xs",card:"lg"};function StepButton({icon:e,label:t,onPress:i,disabled:r,color:n,testID:l}){let o=zo(),a=ia(o,Cl);/* @__PURE__ */
132
+ return z(g,{testID:l,onPress:r?void 0:i,disabled:r,accessibilityRole:"button",accessibilityLabel:t,accessibilityState:r?{disabled:true}:void 0,hitSlop:Sa(a.stepButton.w),style:{width:a.stepButton.w,height:a.stepButton.h,borderRadius:a.stepButton.radius[0],alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */z(Glyph,{icon:e==="minus"?Fs:Bs,size:a.stepIcon.w,color:n})})}function CardStepper({q:e,blend:t,lift:i,testID:r}){let n=zo(),l=ia(n,Cl),o=e.min??0,a=e.max??Number.POSITIVE_INFINITY,s=e=>r===void 0?void 0:`${r}-${e}`,c={position:"absolute",right:l.stepAt.right,bottom:l.stepAt.bottom};if(e.value<=0){let o=Mo(n,l.step.bg);/* @__PURE__ */
133
+ return z(h,{testID:r,accessibilityLabel:e.label,style:[c,{borderRadius:l.stepButton.radius[0]},o?{backgroundColor:o}:null,i?za({...t?ia(n,Hl).lift:l.lift}):null],children:/* @__PURE__ */z(StepButton,{icon:"plus",label:e.moreLabel,onPress:()=>Js(e,Math.min(a,e.value+1)),disabled:e.value>=a,color:Oo(n,l.step.color),testID:s("more")})})}let d=Oo(n,l.stepIn.color);/* @__PURE__ */
134
+ return D(h,{testID:r,accessibilityLabel:e.label,style:[c,wa(n,l.stepIn),{flexDirection:"row",alignItems:"center",width:l.stepIn.w,height:l.stepIn.h}],children:[
135
+ /* @__PURE__ */z(StepButton,{icon:"minus",label:e.fewerLabel,onPress:()=>Js(e,Math.max(o,e.value-1)),disabled:e.value<=o,color:d,testID:s("fewer")}),
136
+ /* @__PURE__ */z(Text,{testID:s("count"),accessibilityLiveRegion:"polite",style:[ba(n,Wo(n,l.count)),{flex:1,textAlign:"center"}],children:e.value}),
137
+ /* @__PURE__ */z(StepButton,{icon:"plus",label:e.moreLabel,onPress:()=>Js(e,Math.min(a,e.value+1)),disabled:e.value>=a,color:d,testID:s("more")})]})}function CardPill({action:e,blend:t,testID:i}){let r=zo(),n=ia(r,Cl),l=ia(r,Hl),o=Ta(r),a=e.kind??"refill",[s,c,d]=a==="manage"?[n.pillSoft,n.pillSoftText,n.pillPressScale]:a==="inCart"?t?[l.pillOn,l.pillOnText,l.pillPressScale]:[n.pillOn,n.pillOnText,n.pillPressScale]:t?[l.pill,l.pillText,l.pillPressScale]:[n.pill,n.pillText,n.pillPressScale],u=ba(r,Wo(r,c)),p=va(r,s),f=e.disabled===true||e.busy===true;/* @__PURE__ */
138
+ return D(g,{testID:i,onPress:f?void 0:e.onPress,disabled:f,accessibilityRole:a==="refill"?"button":"link",accessibilityLabel:e.label,accessibilityState:{disabled:f,busy:e.busy===true},hitSlop:Sa(s.minHeight),style:({pressed:e})=>[{position:"absolute",right:n.pillAt.right,bottom:n.pillAt.bottom,flexDirection:"row",alignItems:"center"},wa(r,s),f?{opacity:Po}:null,e&&!o&&!f?{transform:[{scale:d}]}:null],children:[e.icon?/* @__PURE__ */z(BlockIcon,{icon:e.icon,size:n.pillIcon.w,color:typeof u.color=="string"?u.color:void 0}):null,
139
+ /* @__PURE__ */z(Text,{tier:"control",numberOfLines:1,style:u,children:e.label}),p?/* @__PURE__ */z(h,{pointerEvents:"none",style:p}):null]})}function BlendPhoto({src:e,alt:t,fallback:i,onError:r,testID:l}){let o=zo(),a=ia(o,Hl),s=o.metrics.thumbnail.lg.frame,[c,d]=n(null),u=e&&c!==e?e:null;if(!u)/* @__PURE__ */return z(BlockThumbnail,{size:"lg",src:null,alt:t,icon:i?.icon,iconSize:i?.iconSize,tint:i?.tint,iconColor:i?.iconColor,testID:l});let[p=0,g=0,f=0,m=0]=a.img.padding.map((e,t)=>e+(s.padding[t]??0)),b=a.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
140
+ return z(h,{testID:l,style:[wa(o,s),{width:"100%",aspectRatio:1,overflow:"hidden"}],children:/* @__PURE__ */z(I,{source:{uri:u},accessibilityLabel:t,accessible:!!t,onError:()=>{d(u),r?.(u)},resizeMode:o.metrics.thumbnail.lg.img.fit==="contain"?"contain":"cover",style:[{position:"absolute",top:p,right:g,bottom:f,left:m},b]})})}function cc(e,t,i,r){return i?e.imgInsetEven:t?e.imgInsetTag:r?e.imgInsetWhite:e.imgInset}function dc(e,t,i,r=false,n=false){let l=ia(e,Fl),o=cc(l,t,r,n);return o.share.map((e,t)=>e*i+(o.px[t]??0))}function WebStepButton({icon:e,size:t,label:i,onPress:r,disabled:n,color:l,settle:o,testID:a}){let s=zo(),c=ia(s,Fl),d=Ta(s);/* @__PURE__ */
141
+ return z(g,{testID:a,onPress:n?void 0:r,disabled:n,accessibilityRole:"button",accessibilityLabel:i,accessibilityState:n?{disabled:true}:void 0,hitSlop:Sa(c.stepButton.w),style:({pressed:e})=>[{width:c.stepButton.w,height:c.stepButton.h,borderRadius:c.stepButton.radius[0],alignItems:"center",justifyContent:"center"},e&&!d&&!n?{transform:[{scale:o}]}:null],children:/* @__PURE__ */z(Glyph,{icon:e==="minus"?Fs:Bs,size:t,color:l})})}function WebStepper({q:e,lift:t,testID:i}){let r=zo(),n=ia(r,Fl),l=e.min??0,o=e.max??Number.POSITIVE_INFINITY,a=e=>i===void 0?void 0:`${i}-${e}`;if(e.value<=0)/* @__PURE__ */
142
+ return z(h,{testID:i,accessibilityLabel:e.label,style:wa(r,t?n.add:{...n.add,shadow:{...n.add.shadow,x:0,y:0,blur:0}}),children:/* @__PURE__ */z(WebStepButton,{icon:"plus",size:n.addIcon.w,label:e.moreLabel,onPress:()=>Js(e,Math.min(o,e.value+1)),disabled:e.value>=o,color:Oo(r,n.add.color),settle:n.addPressScale,testID:a("more")})});let s=Oo(r,n.step.color);/* @__PURE__ */
143
+ return D(h,{testID:i,accessibilityLabel:e.label,style:[wa(r,n.step),{flexDirection:"row",alignItems:"center",height:n.step.h}],children:[
144
+ /* @__PURE__ */z(WebStepButton,{icon:"minus",size:n.stepIcon.w,label:e.fewerLabel,onPress:()=>Js(e,Math.max(l,e.value-1)),disabled:e.value<=l,color:s,settle:n.stepPressScale,testID:a("fewer")}),
145
+ /* @__PURE__ */z(Text,{testID:a("count"),accessibilityLiveRegion:"polite",style:[ba(r,Wo(r,n.count)),{minWidth:n.step.w-2*n.stepButton.w,textAlign:"center"}],children:e.value}),
146
+ /* @__PURE__ */z(WebStepButton,{icon:"plus",size:n.stepIcon.w,label:e.moreLabel,onPress:()=>Js(e,Math.min(o,e.value+1)),disabled:e.value>=o,color:s,settle:n.stepPressScale,testID:a("more")})]})}function WebPill({action:e,testID:t}){let i=zo(),r=ia(i,Fl),n=Ta(i),l=e.kind??"refill",[o,a]=l==="manage"?[r.pillSoft,r.pillSoftText]:l==="inCart"?[r.pillOn,r.pillOnText]:[r.pill,r.pillText],s=ba(i,Wo(i,a)),c=va(i,o),d=e.disabled===true||e.busy===true;/* @__PURE__ */
147
+ return D(g,{testID:t,onPress:d?void 0:e.onPress,disabled:d,accessibilityRole:l==="refill"?"button":"link",accessibilityLabel:e.label,accessibilityState:{disabled:d,busy:e.busy===true},hitSlop:Sa(o.minHeight),style:({pressed:e})=>[{flexDirection:"row",alignItems:"center",justifyContent:"center"},wa(i,o),d?{opacity:Po}:null,e&&!n&&!d?{transform:[{scale:r.pillPressScale}]}:null],children:[e.icon?/* @__PURE__ */z(BlockIcon,{icon:e.icon,size:r.pillIcon.w,color:typeof s.color=="string"?s.color:void 0}):null,
148
+ /* @__PURE__ */z(Text,{tier:"control",numberOfLines:1,style:s,children:e.label}),c?/* @__PURE__ */z(h,{pointerEvents:"none",style:c}):null]})}function WebPhoto({src:e,alt:t,tagged:i,even:r,white:l,fallback:o,onError:a,testID:s}){let c=zo(),d=ia(c,Fl),[u,p]=n(null),g=e&&u!==e?e:null,f=cc(d,i,r,l),m=e=>`${Math.round((f.share[e]??0)*1e5)/1e3}%`,b=d.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
149
+ return z(h,{testID:s,style:[wa(c,d.square),{width:"100%",aspectRatio:1,overflow:"hidden"},l?{backgroundColor:Oo(c,d.groundWhite)}:null,!g&&o?.tint?{backgroundColor:o.tint}:null],children:g?/* @__PURE__ */z(I,{source:{uri:g},accessibilityLabel:t,accessible:!!t,onError:()=>{p(g),a?.(g)},resizeMode:d.imgFit,style:[{position:"absolute",top:m(0),right:m(1),bottom:m(2),left:m(3),marginTop:f.px[0]??0,marginRight:f.px[1]??0,marginBottom:f.px[2]??0,marginLeft:f.px[3]??0},b]}):o?.icon?/* @__PURE__ */z(h,{style:{flex:1,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */z(BlockIcon,{icon:o.icon,size:o.iconSize??d.addIcon.w,color:o.iconColor})}):null})}function WebCard({props:e,media:t}){let{name:i,image:r,imageAlt:n,meta:l,price:o,wasPrice:a,per:s,badge:c,tag:d,stepper:u,addLift:p=true,fallback:f,onImageError:m,action:b,onPress:y,loading:w=false,loadingLabel:v,ground:k="shelf",imageInset:x="standard",testID:T,style:I}=e,S=zo(),H=ia(S,Fl),F=e=>ba(S,Wo(S,e)),_=e=>T===void 0?void 0:`${T}-${e}`,O=d?.color??Oo(S,H.tagIcon.color),E=va(S,H.badge),P=/* @__PURE__ */D(C,{children:[
150
+ /* @__PURE__ */D(h,{ref:t,collapsable:false,style:{marginBottom:H.square.marginBottom},children:[w?/* @__PURE__ */z(h,{style:{width:"100%",aspectRatio:1,borderRadius:H.square.radius[0],backgroundColor:S.colors.tintSage}}):/* @__PURE__ */z(WebPhoto,{src:r,alt:n,tagged:d!==void 0,even:x==="even",white:k==="white",fallback:f,onError:m,testID:_("image")}),!w&&d?/* @__PURE__ */D(h,{testID:_("tag"),style:[wa(S,H.tag),{position:"absolute",left:H.tag.x,top:H.tag.y,maxWidth:"100%",flexDirection:"row",alignItems:"center",backgroundColor:_o(O,H.tagMix,S.colors.surface,Oo(S,H.tag.bg))}],children:[d.icon?/* @__PURE__ */z(BlockIcon,{icon:d.icon,size:H.tagIcon.w,color:O}):null,
150
151
  /* @__PURE__ */z(Text,{numberOfLines:1,style:F(H.tagText),children:d.label})]}):null]}),w?/* @__PURE__ */z(Skeleton,{lines:3,label:v}):/* @__PURE__ */D(h,{style:{rowGap:H.card.gap[1],marginTop:H.card.gap[1]},children:[
151
- /* @__PURE__ */z(Text,{style:F(H.name),children:i}),o||a||s||c?/* @__PURE__ */D(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:H.price.gap[0],rowGap:H.price.gap[1]},children:[o?/* @__PURE__ */z(Text,{testID:_("price"),style:F(H.priceText),children:o}):null,a?/* @__PURE__ */z(Text,{style:F(H.was),children:a}):null,s?/* @__PURE__ */z(Text,{style:F(H.per),children:s}):null,c?/* @__PURE__ */D(h,{testID:_("badge"),style:[ba(S,H.badge),{alignSelf:"center",height:H.badge.h,flexDirection:"row",alignItems:"center"}],children:[
152
+ /* @__PURE__ */z(Text,{style:F(H.name),children:i}),o||a||s||c?/* @__PURE__ */D(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:H.price.gap[0],rowGap:H.price.gap[1]},children:[o?/* @__PURE__ */z(Text,{testID:_("price"),style:F(H.priceText),children:o}):null,a?/* @__PURE__ */z(Text,{style:F(H.was),children:a}):null,s?/* @__PURE__ */z(Text,{style:F(H.per),children:s}):null,c?/* @__PURE__ */D(h,{testID:_("badge"),style:[wa(S,H.badge),{alignSelf:"center",height:H.badge.h,flexDirection:"row",alignItems:"center"}],children:[
152
153
  /* @__PURE__ */z(Text,{numberOfLines:1,style:F(H.badgeText),children:c}),E?/* @__PURE__ */z(h,{pointerEvents:"none",style:E}):null]}):null]}):null,l?/* @__PURE__ */z(Text,{style:F(H.meta),children:l}):null]})]});/* @__PURE__ */
153
- return D(h,{testID:T,style:[{rowGap:0},I],children:[y&&!w?/* @__PURE__ */z(g,{testID:_("open"),onPress:y,accessibilityRole:"link",accessibilityLabel:i,children:P}):P,!w&&(u||b)?/* @__PURE__ */z(h,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:/* @__PURE__ */z(h,{style:{position:"absolute",right:H.actAt.right,bottom:H.actAt.bottom,flexDirection:"row"},children:u?/* @__PURE__ */z(WebStepper,{q:u,lift:p,testID:_("stepper")}):b?/* @__PURE__ */z(WebPill,{action:b,testID:_("action")}):null})}):null]})}function ProductTile(e){let{name:t,image:i,imageAlt:r,kicker:n,meta:o,price:c,wasPrice:d,per:u,metaTone:p,tag:f,stepper:m,addLift:b=true,fallback:y,onImageError:w,action:v,onPress:k,layout:x="tile",variant:T="standard",onImageMeasure:I,imageInset:S,ground:H,loading:F=false,loadingLabel:_,testID:O,style:E}=e,P=Io(),L=T==="blend",B=T==="web",A=f!==void 0,R=a(null),j=P.metrics.thumbnail.lg.frame.padding,$=L?ea(P,Dl).img.padding:P.metrics.thumbnail.lg.img.padding,W=s(()=>new Promise(e=>{let t=R.current;if(!t||typeof t.measureInWindow!="function"){e(null);return}t.measureInWindow((t,i,r,n)=>{let[l=0,o=0,a=0,s=0]=B?sc(P,A,r,S==="even",H==="white"):$.map((e,t)=>e+(j[t]??0));e(r>0||n>0?{x:t+s,y:i+l,width:Math.max(0,r-s-o),height:Math.max(0,n-l-a)}:null)})}),[$,j,B,P,A,S,H]),M=x==="card"&&!F&&I!==void 0;l(()=>{if(!(!M||!I))return I(W),()=>I(null)},[M,I,W]);let N=e=>fa(P,jo(P,e)),G=ea(P,Sl),q=ea(P,Hl),U=P.metrics.thumbnail[oc[x]],V=e=>O===void 0?void 0:`${O}-${e}`;if(x==="card"&&B)/* @__PURE__ */return z(WebCard,{props:e,media:R});if(x==="card"){let e=ea(P,zl),n=F?/* @__PURE__ */z(h,{style:{width:"100%",aspectRatio:1,borderRadius:U.frame.radius[0],backgroundColor:P.colors.tintSage}}):L?/* @__PURE__ */z(BlendPhoto,{src:i,alt:r,fallback:y,onError:w,testID:V("image")}):/* @__PURE__ */z(BlockThumbnail,{size:"lg",src:i,alt:r,icon:y?.icon,iconSize:y?.iconSize,tint:y?.tint,iconColor:y?.iconColor,onError:w,testID:V("image")}),l=/* @__PURE__ */D(C,{children:[
154
- /* @__PURE__ */D(h,{ref:R,collapsable:false,style:{marginBottom:U.frame.marginBottom},children:[n,!F&&f?/* @__PURE__ */D(h,{testID:V("tag"),style:[ba(P,e.tag),{position:"absolute",left:e.tag.x,top:e.tag.y,height:e.tag.h,flexDirection:"row",alignItems:"center"}],children:[f.icon?/* @__PURE__ */z(BlockIcon,{icon:f.icon,size:e.tagIcon.w,color:f.color??Fo(P,e.tagIcon.color)}):null,
154
+ return D(h,{testID:T,style:[{rowGap:0},I],children:[y&&!w?/* @__PURE__ */z(g,{testID:_("open"),onPress:y,accessibilityRole:"link",accessibilityLabel:i,children:P}):P,!w&&(u||b)?/* @__PURE__ */z(h,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:/* @__PURE__ */z(h,{style:{position:"absolute",right:H.actAt.right,bottom:H.actAt.bottom,flexDirection:"row"},children:u?/* @__PURE__ */z(WebStepper,{q:u,lift:p,testID:_("stepper")}):b?/* @__PURE__ */z(WebPill,{action:b,testID:_("action")}):null})}):null]})}function ProductTile(e){let{name:t,image:i,imageAlt:r,kicker:n,meta:o,price:c,wasPrice:d,per:u,metaTone:p,tag:f,stepper:m,addLift:b=true,fallback:y,onImageError:w,action:v,onPress:k,layout:x="tile",variant:T="standard",onImageMeasure:I,imageInset:S,ground:H,loading:F=false,loadingLabel:_,testID:O,style:E}=e,P=zo(),L=T==="blend",B=T==="web",A=f!==void 0,R=a(null),j=P.metrics.thumbnail.lg.frame.padding,$=L?ia(P,Hl).img.padding:P.metrics.thumbnail.lg.img.padding,W=s(()=>new Promise(e=>{let t=R.current;if(!t||typeof t.measureInWindow!="function"){e(null);return}t.measureInWindow((t,i,r,n)=>{let[l=0,o=0,a=0,s=0]=B?dc(P,A,r,S==="even",H==="white"):$.map((e,t)=>e+(j[t]??0));e(r>0||n>0?{x:t+s,y:i+l,width:Math.max(0,r-s-o),height:Math.max(0,n-l-a)}:null)})}),[$,j,B,P,A,S,H]),M=x==="card"&&!F&&I!==void 0;l(()=>{if(!(!M||!I))return I(W),()=>I(null)},[M,I,W]);let N=e=>ba(P,Wo(P,e)),G=ia(P,Dl),q=ia(P,_l),U=P.metrics.thumbnail[sc[x]],V=e=>O===void 0?void 0:`${O}-${e}`;if(x==="card"&&B)/* @__PURE__ */return z(WebCard,{props:e,media:R});if(x==="card"){let e=ia(P,Cl),n=F?/* @__PURE__ */z(h,{style:{width:"100%",aspectRatio:1,borderRadius:U.frame.radius[0],backgroundColor:P.colors.tintSage}}):L?/* @__PURE__ */z(BlendPhoto,{src:i,alt:r,fallback:y,onError:w,testID:V("image")}):/* @__PURE__ */z(BlockThumbnail,{size:"lg",src:i,alt:r,icon:y?.icon,iconSize:y?.iconSize,tint:y?.tint,iconColor:y?.iconColor,onError:w,testID:V("image")}),l=/* @__PURE__ */D(C,{children:[
155
+ /* @__PURE__ */D(h,{ref:R,collapsable:false,style:{marginBottom:U.frame.marginBottom},children:[n,!F&&f?/* @__PURE__ */D(h,{testID:V("tag"),style:[wa(P,e.tag),{position:"absolute",left:e.tag.x,top:e.tag.y,height:e.tag.h,flexDirection:"row",alignItems:"center"}],children:[f.icon?/* @__PURE__ */z(BlockIcon,{icon:f.icon,size:e.tagIcon.w,color:f.color??Oo(P,e.tagIcon.color)}):null,
155
156
  /* @__PURE__ */z(Text,{numberOfLines:1,style:N(e.tagText),children:f.label})]}):null]}),F?/* @__PURE__ */z(Skeleton,{lines:3,label:_}):/* @__PURE__ */D(h,{style:{rowGap:e.card.gap[1],marginTop:e.card.gap[1]},children:[c||d||u?/* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"baseline",columnGap:e.price.gap[0]},children:[c?/* @__PURE__ */z(Text,{testID:V("price"),style:N(e.priceText),children:c}):null,d?/* @__PURE__ */z(Text,{style:N(e.was),children:d}):null,u?/* @__PURE__ */z(Text,{style:N(e.per),children:u}):null]}):null,
156
157
  /* @__PURE__ */z(Text,{style:N(e.name),children:t}),o?/* @__PURE__ */z(Text,{style:N(p==="auto"?e.metaAuto:p==="autoDark"?e.metaAutoDark:e.meta),children:o}):null]})]});/* @__PURE__ */
157
- return D(h,{testID:O,style:[ba(P,e.card),{rowGap:0},E],children:[k&&!F?/* @__PURE__ */z(g,{testID:V("open"),onPress:k,accessibilityRole:"link",accessibilityLabel:t,children:l}):l,!F&&(m||v)?/* @__PURE__ */z(h,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:m?/* @__PURE__ */z(CardStepper,{q:m,blend:L,lift:b,testID:V("stepper")}):v?/* @__PURE__ */z(CardPill,{action:v,blend:L,testID:V("action")}):null}):null]})}let Y=/* @__PURE__ */z(Text,{style:N(x==="row"?q.name:G.name),children:t}),X=k?/* @__PURE__ */z(g,{onPress:k,accessibilityRole:"link",accessibilityLabel:t,children:Y}):Y,K=c||v?/* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",columnGap:G.buy.gap[0],marginTop:x==="row"?0:G.buy.marginTop},children:[c?/* @__PURE__ */z(Text,{style:N(G.price),children:c}):/* @__PURE__ */z(h,{}),v?/* @__PURE__ */z(Button,{tone:"outline",size:"row",label:v.label,onPress:v.onPress,loading:v.busy,disabled:v.disabled}):null]}):null;return x==="row"?/* @__PURE__ */D(h,{testID:O,style:[ba(P,q.card),{flexDirection:"row",alignItems:q.card.center?"center":"flex-start"},E],children:[F?/* @__PURE__ */z(h,{style:{width:U.frame.w,height:U.frame.h,borderRadius:U.frame.radius[0],backgroundColor:P.colors.tintSage}}):/* @__PURE__ */z(BlockThumbnail,{size:"xs",src:i,alt:r,icon:y?.icon,iconSize:y?.iconSize,tint:y?.tint,iconColor:y?.iconColor,onError:w}),
158
- /* @__PURE__ */z(h,{style:{flex:1,minWidth:0},children:F?/* @__PURE__ */z(Skeleton,{lines:2,label:_}):/* @__PURE__ */D(C,{children:[X,o?/* @__PURE__ */z(Text,{style:[N(q.meta),{marginTop:q.meta.marginTop}],children:o}):null]})}),F?null:K]}):/* @__PURE__ */D(h,{testID:O,style:[ba(P,G.card),E],children:[F?/* @__PURE__ */z(h,{style:{width:"100%",aspectRatio:1,borderRadius:U.frame.radius[0],backgroundColor:P.colors.tintSage,marginBottom:U.frame.marginBottom}}):/* @__PURE__ */z(BlockThumbnail,{size:"md",src:i,alt:r,icon:y?.icon,iconSize:y?.iconSize,tint:y?.tint,iconColor:y?.iconColor,onError:w,style:{marginBottom:U.frame.marginBottom}}),F?/* @__PURE__ */z(Skeleton,{lines:3,label:_}):/* @__PURE__ */D(C,{children:[n?/* @__PURE__ */z(Text,{style:N(G.kicker),children:n}):null,X,o?/* @__PURE__ */z(Text,{style:N(G.meta),children:o}):null,K]})]})}function cc(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function TipCard(e){let{number:t,title:i,text:r,foot:l,footArrow:o=false,footPress:a,tone:s="y",image:c,onImageError:d,icon:u=Is,onPress:p,pressTarget:f="title",accessibilityLabel:m,variant:b="standard",loading:y=false,loadingLabel:w,testID:v,style:k}=e,x=Io(),T=ka(x),I=ea(x,Al),S=ea(x,Rl),H=ea(x,jl),F=ea(x,$l),_=b==="web",O=b==="photo",E=b==="plan",[P,L]=n(false),[B,A]=n(null),R=e=>fa(x,jo(x,e)),j=O?{...I,card:S.card,tones:S.tones,img:S.img,n:S.n,nText:S.nText,title:S.title,pressScale:S.pressScale,bare:S.bare,thumb:S.thumb,thumbIcon:S.thumbIcon}:E?{...I,card:F.card,tones:F.tones,title:F.title,text:F.text,footText:F.footText,foot:F.foot,pressScale:1}:I,$=_?[ba(x,H.card),k]:[ba(x,j.card),{backgroundColor:Fo(x,j.tones[s])},k],W=_?H.imgAspect:O?S.imgAspect:I.img.w/I.img.h,M=_?1:j.pressScale;if(y)/* @__PURE__ */
159
- return z(h,{testID:v,style:$,children:/* @__PURE__ */z(Skeleton,{lines:3,label:w})});let N=j.n,G=_?null:/* @__PURE__ */z(h,{style:[ba(x,N),{position:"absolute",left:N.x,top:N.y,width:N.w,height:N.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */z(Text,{style:R(j.nText),children:t})}),q=/* @__PURE__ */z(Text,{style:R(_?H.title:j.title),children:i}),U=p!==void 0&&(_||f==="card"),V=e=>v===void 0?void 0:`${v}-${e}`,Y=E?null:cc(c),X=Y&&B!==c?Y:null,K=R(j.footText),Q=o||a?/* @__PURE__ */z(Glyph,{icon:ns,size:I.footArrow.w,color:typeof K.color=="string"?K.color:void 0,style:I.footArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,J=/* @__PURE__ */z(Text,{style:K,children:l}),Z={flexDirection:"row",alignItems:"center",columnGap:I.foot.gap[0]},ee=l&&!_&&!O?a?/* @__PURE__ */D(g,{testID:a.testID??V("foot"),onPress:a.onPress,accessibilityRole:"link",accessibilityLabel:a.accessibilityLabel??l,hitSlop:Ta(K.lineHeight??I.footArrow.w),style:[Z,{marginTop:"auto",paddingTop:j.foot.padding[0],alignSelf:"flex-start",zIndex:1}],children:[J,Q]}):Q?/* @__PURE__ */D(h,{style:[Z,{marginTop:"auto",paddingTop:j.foot.padding[0]}],children:[J,Q]}):/* @__PURE__ */z(Text,{style:[K,{marginTop:"auto",paddingTop:j.foot.padding[0]}],children:l}):null,te=()=>{c!=null&&(A(c),d?.(c))},ie=e=>/* @__PURE__ */z(BlockIcon,{icon:u,size:e.w,color:Fo(x,e.color)}),re=E?/* @__PURE__ */D(h,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",minHeight:F.top.h},children:[
158
+ return D(h,{testID:O,style:[wa(P,e.card),{rowGap:0},E],children:[k&&!F?/* @__PURE__ */z(g,{testID:V("open"),onPress:k,accessibilityRole:"link",accessibilityLabel:t,children:l}):l,!F&&(m||v)?/* @__PURE__ */z(h,{pointerEvents:"box-none",style:{position:"absolute",top:0,left:0,right:0,aspectRatio:1},children:m?/* @__PURE__ */z(CardStepper,{q:m,blend:L,lift:b,testID:V("stepper")}):v?/* @__PURE__ */z(CardPill,{action:v,blend:L,testID:V("action")}):null}):null]})}let Y=/* @__PURE__ */z(Text,{style:N(x==="row"?q.name:G.name),children:t}),X=k?/* @__PURE__ */z(g,{onPress:k,accessibilityRole:"link",accessibilityLabel:t,children:Y}):Y,K=c||v?/* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",columnGap:G.buy.gap[0],marginTop:x==="row"?0:G.buy.marginTop},children:[c?/* @__PURE__ */z(Text,{style:N(G.price),children:c}):/* @__PURE__ */z(h,{}),v?/* @__PURE__ */z(Button,{tone:"outline",size:"row",label:v.label,onPress:v.onPress,loading:v.busy,disabled:v.disabled}):null]}):null;return x==="row"?/* @__PURE__ */D(h,{testID:O,style:[wa(P,q.card),{flexDirection:"row",alignItems:q.card.center?"center":"flex-start"},E],children:[F?/* @__PURE__ */z(h,{style:{width:U.frame.w,height:U.frame.h,borderRadius:U.frame.radius[0],backgroundColor:P.colors.tintSage}}):/* @__PURE__ */z(BlockThumbnail,{size:"xs",src:i,alt:r,icon:y?.icon,iconSize:y?.iconSize,tint:y?.tint,iconColor:y?.iconColor,onError:w}),
159
+ /* @__PURE__ */z(h,{style:{flex:1,minWidth:0},children:F?/* @__PURE__ */z(Skeleton,{lines:2,label:_}):/* @__PURE__ */D(C,{children:[X,o?/* @__PURE__ */z(Text,{style:[N(q.meta),{marginTop:q.meta.marginTop}],children:o}):null]})}),F?null:K]}):/* @__PURE__ */D(h,{testID:O,style:[wa(P,G.card),E],children:[F?/* @__PURE__ */z(h,{style:{width:"100%",aspectRatio:1,borderRadius:U.frame.radius[0],backgroundColor:P.colors.tintSage,marginBottom:U.frame.marginBottom}}):/* @__PURE__ */z(BlockThumbnail,{size:"md",src:i,alt:r,icon:y?.icon,iconSize:y?.iconSize,tint:y?.tint,iconColor:y?.iconColor,onError:w,style:{marginBottom:U.frame.marginBottom}}),F?/* @__PURE__ */z(Skeleton,{lines:3,label:_}):/* @__PURE__ */D(C,{children:[n?/* @__PURE__ */z(Text,{style:N(G.kicker),children:n}):null,X,o?/* @__PURE__ */z(Text,{style:N(G.meta),children:o}):null,K]})]})}function uc(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function TipCard(e){let{number:t,title:i,text:r,foot:l,footArrow:o=false,footPress:a,tone:s="y",image:c,onImageError:d,icon:u=zs,onPress:p,pressTarget:f="title",accessibilityLabel:m,variant:b="standard",loading:y=false,loadingLabel:w,testID:v,style:k}=e,x=zo(),T=Ta(x),I=ia(x,jl),S=ia(x,$l),H=ia(x,Wl),F=ia(x,Ml),_=b==="web",O=b==="photo",E=b==="plan",[P,L]=n(false),[B,A]=n(null),R=e=>ba(x,Wo(x,e)),j=O?{...I,card:S.card,tones:S.tones,img:S.img,n:S.n,nText:S.nText,title:S.title,pressScale:S.pressScale,bare:S.bare,thumb:S.thumb,thumbIcon:S.thumbIcon}:E?{...I,card:F.card,tones:F.tones,title:F.title,text:F.text,footText:F.footText,foot:F.foot,pressScale:1}:I,$=_?[wa(x,H.card),k]:[wa(x,j.card),{backgroundColor:Oo(x,j.tones[s])},k],W=_?H.imgAspect:O?S.imgAspect:I.img.w/I.img.h,M=_?1:j.pressScale;if(y)/* @__PURE__ */
160
+ return z(h,{testID:v,style:$,children:/* @__PURE__ */z(Skeleton,{lines:3,label:w})});let N=j.n,G=_?null:/* @__PURE__ */z(h,{style:[wa(x,N),{position:"absolute",left:N.x,top:N.y,width:N.w,height:N.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */z(Text,{style:R(j.nText),children:t})}),q=/* @__PURE__ */z(Text,{style:R(_?H.title:j.title),children:i}),U=p!==void 0&&(_||f==="card"),V=e=>v===void 0?void 0:`${v}-${e}`,Y=E?null:uc(c),X=Y&&B!==c?Y:null,K=R(j.footText),Q=o||a?/* @__PURE__ */z(Glyph,{icon:os,size:I.footArrow.w,color:typeof K.color=="string"?K.color:void 0,style:I.footArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,J=/* @__PURE__ */z(Text,{style:K,children:l}),Z={flexDirection:"row",alignItems:"center",columnGap:I.foot.gap[0]},ee=l&&!_&&!O?a?/* @__PURE__ */D(g,{testID:a.testID??V("foot"),onPress:a.onPress,accessibilityRole:"link",accessibilityLabel:a.accessibilityLabel??l,hitSlop:Sa(K.lineHeight??I.footArrow.w),style:[Z,{marginTop:"auto",paddingTop:j.foot.padding[0],alignSelf:"flex-start",zIndex:1}],children:[J,Q]}):Q?/* @__PURE__ */D(h,{style:[Z,{marginTop:"auto",paddingTop:j.foot.padding[0]}],children:[J,Q]}):/* @__PURE__ */z(Text,{style:[K,{marginTop:"auto",paddingTop:j.foot.padding[0]}],children:l}):null,te=()=>{c!=null&&(A(c),d?.(c))},ie=e=>/* @__PURE__ */z(BlockIcon,{icon:u,size:e.w,color:Oo(x,e.color)}),re=E?/* @__PURE__ */D(h,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",minHeight:F.top.h},children:[
160
161
  /* @__PURE__ */z(Text,{style:R(F.nText),children:t}),
161
- /* @__PURE__ */z(BlockIcon,{icon:u,size:F.icon.w,color:Fo(x,F.icon.color)})]}):!_&&!X?/* @__PURE__ */D(h,{testID:V("thumb"),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[ba(x,j.bare),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
162
- /* @__PURE__ */z(h,{style:[ba(x,N),{width:N.w,height:N.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */z(Text,{style:R(j.nText),children:t})}),
163
- /* @__PURE__ */z(h,{style:[ba(x,j.thumb),{width:j.thumb.w,height:j.thumb.h,alignItems:"center",justifyContent:"center"}],children:ie(j.thumbIcon)})]}):/* @__PURE__ */D(h,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[ba(x,_?H.img:j.img),{width:"100%",aspectRatio:W,overflow:"hidden"}],children:[X?/* @__PURE__ */z(FadeImage,{testID:V("image"),source:X,resizeMode:"cover",onError:te,style:{position:"absolute",top:0,right:0,bottom:0,left:0}},typeof c=="string"?c:JSON.stringify(c)):null,G]}),ne=/* @__PURE__ */D(C,{children:[re,
162
+ /* @__PURE__ */z(BlockIcon,{icon:u,size:F.icon.w,color:Oo(x,F.icon.color)})]}):!_&&!X?/* @__PURE__ */D(h,{testID:V("thumb"),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[wa(x,j.bare),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
163
+ /* @__PURE__ */z(h,{style:[wa(x,N),{width:N.w,height:N.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */z(Text,{style:R(j.nText),children:t})}),
164
+ /* @__PURE__ */z(h,{style:[wa(x,j.thumb),{width:j.thumb.w,height:j.thumb.h,alignItems:"center",justifyContent:"center"}],children:ie(j.thumbIcon)})]}):/* @__PURE__ */D(h,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[wa(x,_?H.img:j.img),{width:"100%",aspectRatio:W,overflow:"hidden"}],children:[X?/* @__PURE__ */z(FadeImage,{testID:V("image"),source:X,resizeMode:"cover",onError:te,style:{position:"absolute",top:0,right:0,bottom:0,left:0}},typeof c=="string"?c:JSON.stringify(c)):null,G]}),ne=/* @__PURE__ */D(C,{children:[re,
164
165
  /* @__PURE__ */z(h,{style:_?null:{marginTop:j.title.marginTop,marginHorizontal:O?S.titleInset:0},children:p&&!U?/* @__PURE__ */z(g,{onPress:p,accessibilityRole:"button",accessibilityLabel:i,children:q}):q}),r&&!_&&!O?/* @__PURE__ */z(Text,{style:[R(j.text),{marginTop:j.text.marginTop}],children:r}):null,ee]});return U&&a?/* @__PURE__ */D(h,{testID:v,style:[...$,P&&!T?{transform:[{scale:M}]}:null],children:[ne,
165
- /* @__PURE__ */z(g,{testID:V("cover"),onPress:p,onPressIn:()=>L(true),onPressOut:()=>L(false),accessibilityRole:"button",accessibilityLabel:m??i,style:{position:"absolute",top:0,right:0,bottom:0,left:0}})]}):U?/* @__PURE__ */z(g,{testID:v,onPress:p,accessibilityRole:"button",accessibilityLabel:m??i,style:({pressed:e})=>[...$,e&&!T&&M!==1?{transform:[{scale:M}]}:null],children:ne}):/* @__PURE__ */z(h,{testID:v,style:$,children:ne})}function dc(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function uc(e){return e==null?null:typeof e=="object"?e.uri:String(e)}var pc=e=>e===void 0?[]:typeof e=="string"?[e]:e;function WhySheet(e){let{kind:t,title:i,sub:r,image:l,imageKind:o="packshot",fallback:a,onImageError:s,onClose:c,closeLabel:u,heading:p,rows:f=[],sections:m=[],tone:b="calm",action:y,link:w,score:v,variant:k="standard",loading:x=false,loadingLabel:T,testID:I,style:S,part:H="whole",actions:F}=e;Da("WhySheet",c,u);let _=Io(),O=ka(_),E={why:ea(_,Gl),whyWeb:ea(_,ql),whyPlan:ea(_,Ul)},P=k==="web",L=k==="plan",B=P?E.whyWeb:E.why,A=E.whyPlan,[R,j]=n(false),$=uc(l),[W,M]=n(null),N=$!==null&&W!==$?dc(l):null,{shown:G,onShown:q}=Qs(N?$:null),U=e=>fa(_,jo(_,e)),V=e=>I===void 0?void 0:`${I}-${e}`;if(x){let e=L?ya(_,A.card):null;/* @__PURE__ */
166
- return D(h,{testID:I,style:[L?ba(_,A.card):{paddingTop:B.head.padding[0],paddingHorizontal:B.body.padding[1],paddingBottom:B.body.padding[2]},S],children:[
167
- /* @__PURE__ */z(Skeleton,{lines:4,label:T}),e?/* @__PURE__ */z(h,{pointerEvents:"none",style:e}):null]})}if(L){let e=ya(_,A.card),t=v!==void 0&&f.length>=2;/* @__PURE__ */
168
- return D(h,{testID:I,style:[ba(_,A.card),S],children:[p?/* @__PURE__ */z(Text,{style:U(A.heading),children:p}):null,f.map(e=>{let t=A.chips[e.kind??"record"];/* @__PURE__ */
166
+ /* @__PURE__ */z(g,{testID:V("cover"),onPress:p,onPressIn:()=>L(true),onPressOut:()=>L(false),accessibilityRole:"button",accessibilityLabel:m??i,style:{position:"absolute",top:0,right:0,bottom:0,left:0}})]}):U?/* @__PURE__ */z(g,{testID:v,onPress:p,accessibilityRole:"button",accessibilityLabel:m??i,style:({pressed:e})=>[...$,e&&!T&&M!==1?{transform:[{scale:M}]}:null],children:ne}):/* @__PURE__ */z(h,{testID:v,style:$,children:ne})}function pc(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function hc(e){return e==null?null:typeof e=="object"?e.uri:String(e)}var gc=e=>e===void 0?[]:typeof e=="string"?[e]:e;function WhySheet(e){let{kind:t,title:i,sub:r,image:l,imageKind:o="packshot",fallback:a,onImageError:s,onClose:c,closeLabel:u,heading:p,rows:f=[],sections:m=[],tone:b="calm",action:y,link:w,score:v,variant:k="standard",loading:x=false,loadingLabel:T,testID:I,style:S,part:H="whole",actions:F}=e;Ha("WhySheet",c,u);let _=zo(),O=Ta(_),E={why:ia(_,Ul),whyWeb:ia(_,Vl),whyPlan:ia(_,Yl)},P=k==="web",L=k==="plan",B=P?E.whyWeb:E.why,A=E.whyPlan,[R,j]=n(false),$=hc(l),[W,M]=n(null),N=$!==null&&W!==$?pc(l):null,{shown:G,onShown:q}=Zs(N?$:null),U=e=>ba(_,Wo(_,e)),V=e=>I===void 0?void 0:`${I}-${e}`;if(x){let e=L?va(_,A.card):null;/* @__PURE__ */
167
+ return D(h,{testID:I,style:[L?wa(_,A.card):{paddingTop:B.head.padding[0],paddingHorizontal:B.body.padding[1],paddingBottom:B.body.padding[2]},S],children:[
168
+ /* @__PURE__ */z(Skeleton,{lines:4,label:T}),e?/* @__PURE__ */z(h,{pointerEvents:"none",style:e}):null]})}if(L){let e=va(_,A.card),t=v!==void 0&&f.length>=2;/* @__PURE__ */
169
+ return D(h,{testID:I,style:[wa(_,A.card),S],children:[p?/* @__PURE__ */z(Text,{style:U(A.heading),children:p}):null,f.map(e=>{let t=A.chips[e.kind??"record"];/* @__PURE__ */
169
170
  return D(h,{style:{flexDirection:"row",alignItems:"flex-start",columnGap:A.row.gap[0],marginTop:A.row.marginTop},children:[
170
- /* @__PURE__ */z(h,{style:[ba(_,t.box),{width:A.chipColumn,height:t.box.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */z(Text,{style:U(t.text),numberOfLines:1,children:e.label})}),
171
+ /* @__PURE__ */z(h,{style:[wa(_,t.box),{width:A.chipColumn,height:t.box.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */z(Text,{style:U(t.text),numberOfLines:1,children:e.label})}),
171
172
  /* @__PURE__ */D(h,{style:{flex:1,minWidth:0},children:[
172
- /* @__PURE__ */z(Text,{style:U(A.rowTitle),children:e.text}),e.detail?/* @__PURE__ */z(Text,{style:[U(A.rowBody),{marginTop:A.rowBody.marginTop}],children:e.detail}):null]})]},e.key)}),t?/* @__PURE__ */D(h,{testID:V("score"),accessible:true,accessibilityLabel:v.accessibilityLabel??`${v.text} ${v.value}`,style:[ba(_,A.score),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
173
+ /* @__PURE__ */z(Text,{style:U(A.rowTitle),children:e.text}),e.detail?/* @__PURE__ */z(Text,{style:[U(A.rowBody),{marginTop:A.rowBody.marginTop}],children:e.detail}):null]})]},e.key)}),t?/* @__PURE__ */D(h,{testID:V("score"),accessible:true,accessibilityLabel:v.accessibilityLabel??`${v.text} ${v.value}`,style:[wa(_,A.score),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
173
174
  /* @__PURE__ */z(Text,{style:[U(A.scoreText),{flexShrink:1}],children:v.text}),
174
- /* @__PURE__ */z(Text,{style:U(A.scoreValue),children:v.value})]}):null,e?/* @__PURE__ */z(h,{pointerEvents:"none",style:e}):null]})}let Y=o==="photo",X=B.packInset*B.pic.w,K=Y?null:{mixBlendMode:"multiply"},Q=()=>{l==null||$===null||(M($),s?.(l))},J=ya(_,B.btn),Z=H==="head",ee=H==="body",te=ba(_,B.head),ie=Z?{columnGap:te.columnGap,rowGap:te.rowGap}:te,re=/* @__PURE__ */D(h,{testID:Z?I:void 0,style:[ie,{flexDirection:"row",alignItems:"flex-start"},Z?S:null],children:[
175
- /* @__PURE__ */D(h,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[ba(_,B.pic),Y?{backgroundColor:Fo(_,B.photoBg)}:null,!G&&a?.tint!==void 0?{backgroundColor:a.tint}:null,{width:B.pic.w,height:B.pic.h,overflow:"hidden",alignItems:"center",justifyContent:"center"}],children:[G?null:/* @__PURE__ */z(BlockIcon,{icon:a?.icon??ss,size:a?.iconSize??_.metrics.thumbnail.xs.icon.w,color:a?.iconColor??Fo(_,_.metrics.thumbnail.xs.icon.color)}),N?/* @__PURE__ */z(FadeImage,{testID:V("image"),source:N,resizeMode:Y?"cover":"contain",onLoad:q,onError:Q,style:[{position:"absolute",top:Y?0:X,right:Y?0:X,bottom:Y?0:X,left:Y?0:X},K]},$??void 0):null]}),
176
- /* @__PURE__ */D(h,{style:{flex:1,minWidth:0},children:[t?/* @__PURE__ */z(Text,{style:U(B.kind),children:t}):null,i?/* @__PURE__ */z(Text,{accessibilityRole:"header",style:[U(B.title),{marginTop:B.title.marginTop}],children:i}):null,r?/* @__PURE__ */z(Text,{style:[U(B.sub),{marginTop:B.sub.marginTop}],children:r}):null]}),c?/* @__PURE__ */z(g,{testID:V("close"),onPress:c,hitSlop:Ta(B.close.w),accessibilityRole:"button",accessibilityLabel:u,style:{width:B.close.w,height:B.close.h,borderRadius:B.close.w/2,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */z(Glyph,{icon:Ns,size:B.closeIcon.w,color:Fo(_,B.close.color)})}):Z?null:/* @__PURE__ */z(h,{style:{width:B.close.w}})]}),ne=e=>e.onPress?t=>e.onPress?.({currentTarget:t.currentTarget}):void 0,le=(e,t)=>/* @__PURE__ */D(g,{testID:e.testID??t,onPress:e.onPress,onPressIn:()=>j(true),onPressOut:()=>j(false),accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:xa(void 0,e.pressed,void 0),style:[ba(_,B.btn),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:B.btn.h},R&&!O?{transform:[{scale:B.pressScale}]}:null],children:[
177
- /* @__PURE__ */z(Text,{style:[U(B.btnText),{textAlign:"center"}],children:e.label}),J?/* @__PURE__ */z(h,{pointerEvents:"none",style:J}):null]}),oe=(e,t,i)=>/* @__PURE__ */z(g,{testID:e.testID??t,onPress:ne(e),accessibilityRole:"link",accessibilityLabel:e.accessibilityLabel??e.label,style:[ba(_,B.more),{alignSelf:"center",flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */z(Text,{style:U(B.moreText),children:e.label})},i),ae=F!==void 0&&F.length>0,se=/* @__PURE__ */D(C,{children:[f.length>0?/* @__PURE__ */D(h,{style:[ba(_,B.box),P?null:{backgroundColor:Fo(_,E.why.tones[b])}],children:[p?/* @__PURE__ */z(Text,{accessibilityRole:"header",style:U(B.heading),children:p}):null,
175
+ /* @__PURE__ */z(Text,{style:U(A.scoreValue),children:v.value})]}):null,e?/* @__PURE__ */z(h,{pointerEvents:"none",style:e}):null]})}let Y=o==="photo",X=B.packInset*B.pic.w,K=Y?null:{mixBlendMode:"multiply"},Q=()=>{l==null||$===null||(M($),s?.(l))},J=va(_,B.btn),Z=H==="head",ee=H==="body",te=wa(_,B.head),ie=Z?{columnGap:te.columnGap,rowGap:te.rowGap}:te,re=/* @__PURE__ */D(h,{testID:Z?I:void 0,style:[ie,{flexDirection:"row",alignItems:"flex-start"},Z?S:null],children:[
176
+ /* @__PURE__ */D(h,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[wa(_,B.pic),Y?{backgroundColor:Oo(_,B.photoBg)}:null,!G&&a?.tint!==void 0?{backgroundColor:a.tint}:null,{width:B.pic.w,height:B.pic.h,overflow:"hidden",alignItems:"center",justifyContent:"center"}],children:[G?null:/* @__PURE__ */z(BlockIcon,{icon:a?.icon??ds,size:a?.iconSize??_.metrics.thumbnail.xs.icon.w,color:a?.iconColor??Oo(_,_.metrics.thumbnail.xs.icon.color)}),N?/* @__PURE__ */z(FadeImage,{testID:V("image"),source:N,resizeMode:Y?"cover":"contain",onLoad:q,onError:Q,style:[{position:"absolute",top:Y?0:X,right:Y?0:X,bottom:Y?0:X,left:Y?0:X},K]},$??void 0):null]}),
177
+ /* @__PURE__ */D(h,{style:{flex:1,minWidth:0},children:[t?/* @__PURE__ */z(Text,{style:U(B.kind),children:t}):null,i?/* @__PURE__ */z(Text,{accessibilityRole:"header",style:[U(B.title),{marginTop:B.title.marginTop}],children:i}):null,r?/* @__PURE__ */z(Text,{style:[U(B.sub),{marginTop:B.sub.marginTop}],children:r}):null]}),c?/* @__PURE__ */z(g,{testID:V("close"),onPress:c,hitSlop:Sa(B.close.w),accessibilityRole:"button",accessibilityLabel:u,style:{width:B.close.w,height:B.close.h,borderRadius:B.close.w/2,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */z(Glyph,{icon:qs,size:B.closeIcon.w,color:Oo(_,B.close.color)})}):Z?null:/* @__PURE__ */z(h,{style:{width:B.close.w}})]}),ne=e=>e.onPress?t=>e.onPress?.({currentTarget:t.currentTarget}):void 0,le=(e,t)=>/* @__PURE__ */D(g,{testID:e.testID??t,onPress:e.onPress,onPressIn:()=>j(true),onPressOut:()=>j(false),accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:Ia(void 0,e.pressed,void 0),style:[wa(_,B.btn),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:B.btn.h},R&&!O?{transform:[{scale:B.pressScale}]}:null],children:[
178
+ /* @__PURE__ */z(Text,{style:[U(B.btnText),{textAlign:"center"}],children:e.label}),J?/* @__PURE__ */z(h,{pointerEvents:"none",style:J}):null]}),oe=(e,t,i)=>/* @__PURE__ */z(g,{testID:e.testID??t,onPress:ne(e),accessibilityRole:"link",accessibilityLabel:e.accessibilityLabel??e.label,style:[wa(_,B.more),{alignSelf:"center",flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */z(Text,{style:U(B.moreText),children:e.label})},i),ae=F!==void 0&&F.length>0,se=/* @__PURE__ */D(C,{children:[f.length>0?/* @__PURE__ */D(h,{style:[wa(_,B.box),P?null:{backgroundColor:Oo(_,E.why.tones[b])}],children:[p?/* @__PURE__ */z(Text,{accessibilityRole:"header",style:U(B.heading),children:p}):null,
178
179
  /* @__PURE__ */z(h,{style:{rowGap:B.rows.gap[1],marginTop:B.rows.marginTop},children:f.map(e=>/* @__PURE__ */D(h,{children:[e.label?/* @__PURE__ */z(Text,{style:U(B.rowHead),children:e.label}):null,
179
180
  /* @__PURE__ */z(Text,{style:U(B.row),children:e.text})]},e.key))})]}):null,m.map((e,t)=>/* @__PURE__ */D(h,{children:[
180
181
  /* @__PURE__ */z(Text,{accessibilityRole:"header",style:U(B.secHeading),children:e.heading}),e.bullets&&e.bullets.length>0?/* @__PURE__ */z(h,{style:{rowGap:B.how.gap[1],marginTop:B.how.marginTop},children:e.bullets.map((e,t)=>/* @__PURE__ */D(h,{style:{flexDirection:"row",columnGap:B.bullet.gap[0]},children:[
181
- /* @__PURE__ */z(h,{style:{width:B.bulletColumn},children:/* @__PURE__ */z(h,{style:{width:B.dot.size,height:B.dot.size,marginTop:B.dot.top,borderRadius:B.dot.size/2,backgroundColor:Fo(_,B.dot.color)}})}),
182
- /* @__PURE__ */z(Text,{style:[U(B.bulletText),{flex:1,minWidth:0}],children:e})]},`${t}-${e}`))}):null,pc(e.text).map((e,t)=>/* @__PURE__ */z(Text,{style:[U(B.para),{marginTop:B.para.marginTop}],children:e},`${t}-${e}`))]},e.key??`${t}-${e.heading}`)),ae?/* @__PURE__ */z(h,{style:{rowGap:B.acts.gap[1]},children:F.map((e,t)=>t===0?/* @__PURE__ */z(d,{children:le(e,V("action"))},`${t}-${e.label}`):oe({label:e.label,testID:e.testID,accessibilityLabel:e.accessibilityLabel,onPress:()=>e.onPress?.()},V(`more-${t}`),`${t}-${e.label}`))}):y||w?/* @__PURE__ */D(h,{style:{rowGap:B.acts.gap[1]},children:[y?le(y,V("action")):null,w?oe({label:w.label,testID:w.testID,onPress:w.onPress},V("link")):null]}):null]});return Z?re:ee?se:/* @__PURE__ */D(h,{testID:I,style:S,children:[re,
183
- /* @__PURE__ */z(h,{style:ba(_,B.body),children:se})]})}function ScoreLights(e){let{values:t,state:i,heading:r,since:l,pill:o,vizLabel:a,source:s,next:c,loading:d=false,loadingLabel:u,testID:p,style:f}=e,m=Io(),b=ea(m,Vl),[y,v]=n(0),x=e=>fa(m,jo(m,e)),T=e=>p===void 0?void 0:`${p}-${e}`;if(d)/* @__PURE__ */
184
- return z(h,{testID:p,style:[{marginTop:b.card.marginTop},f],children:/* @__PURE__ */z(Skeleton,{lines:3,label:u})});let I=b.pills[i],S=b.viz.h,C=ta(t,y,S,b,k.isRTL),H=e=>v(Math.round(e.nativeEvent.layout.width)),F=ya(m,b.act);/* @__PURE__ */
182
+ /* @__PURE__ */z(h,{style:{width:B.bulletColumn},children:/* @__PURE__ */z(h,{style:{width:B.dot.size,height:B.dot.size,marginTop:B.dot.top,borderRadius:B.dot.size/2,backgroundColor:Oo(_,B.dot.color)}})}),
183
+ /* @__PURE__ */z(Text,{style:[U(B.bulletText),{flex:1,minWidth:0}],children:e})]},`${t}-${e}`))}):null,gc(e.text).map((e,t)=>/* @__PURE__ */z(Text,{style:[U(B.para),{marginTop:B.para.marginTop}],children:e},`${t}-${e}`))]},e.key??`${t}-${e.heading}`)),ae?/* @__PURE__ */z(h,{style:{rowGap:B.acts.gap[1]},children:F.map((e,t)=>t===0?/* @__PURE__ */z(d,{children:le(e,V("action"))},`${t}-${e.label}`):oe({label:e.label,testID:e.testID,accessibilityLabel:e.accessibilityLabel,onPress:()=>e.onPress?.()},V(`more-${t}`),`${t}-${e.label}`))}):y||w?/* @__PURE__ */D(h,{style:{rowGap:B.acts.gap[1]},children:[y?le(y,V("action")):null,w?oe({label:w.label,testID:w.testID,onPress:w.onPress},V("link")):null]}):null]});return Z?re:ee?se:/* @__PURE__ */D(h,{testID:I,style:S,children:[re,
184
+ /* @__PURE__ */z(h,{style:wa(_,B.body),children:se})]})}function ScoreLights(e){let{values:t,state:i,heading:r,since:l,pill:o,vizLabel:a,source:s,next:c,loading:d=false,loadingLabel:u,testID:p,style:f}=e,m=zo(),b=ia(m,Xl),[y,v]=n(0),x=e=>ba(m,Wo(m,e)),T=e=>p===void 0?void 0:`${p}-${e}`;if(d)/* @__PURE__ */
185
+ return z(h,{testID:p,style:[{marginTop:b.card.marginTop},f],children:/* @__PURE__ */z(Skeleton,{lines:3,label:u})});let I=b.pills[i],S=b.viz.h,C=ra(t,y,S,b,k.isRTL),H=e=>v(Math.round(e.nativeEvent.layout.width)),F=va(m,b.act);/* @__PURE__ */
185
186
  return D(h,{testID:p,style:[{marginTop:b.card.marginTop},f],children:[
186
- /* @__PURE__ */D(h,{style:[ba(m,b.head),{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:b.head.marginBottom}],children:[
187
+ /* @__PURE__ */D(h,{style:[wa(m,b.head),{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:b.head.marginBottom}],children:[
187
188
  /* @__PURE__ */D(Text,{style:[x(b.lead),{flexShrink:1}],children:[r?/* @__PURE__ */z(Text,{style:x(b.name),children:r}):null,r&&l?" · ":null,l??null]}),
188
- /* @__PURE__ */z(h,{style:[ba(m,I.box),{minHeight:I.box.minHeight,flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */z(Text,{style:x(I.text),numberOfLines:1,children:o})})]}),
189
- /* @__PURE__ */z(h,{testID:T("viz"),accessible:true,accessibilityRole:"image",accessibilityLabel:a,onLayout:H,style:{height:S},children:C.map((e,t)=>/* @__PURE__ */z(h,{style:{position:"absolute",left:e.x,top:0,width:e.width,height:S},children:e.lights.map((t,i)=>/* @__PURE__ */z(h,{style:{position:"absolute",left:0,top:t.y,width:e.width,height:t.height,borderRadius:b.grid.radius,backgroundColor:Fo(m,b.colors[e.zone]),opacity:t.opacity}},i))},t))}),s?/* @__PURE__ */z(h,{style:[ba(m,b.src),{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:/* @__PURE__ */D(g,{testID:s.testID??T("source"),onPress:s.onPress?e=>s.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:"button",accessibilityLabel:s.accessibilityLabel??s.label,style:[ba(m,b.srcBtn),{minHeight:b.srcBtn.minHeight,flexDirection:"row",alignItems:"center"}],children:[
189
+ /* @__PURE__ */z(h,{style:[wa(m,I.box),{minHeight:I.box.minHeight,flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */z(Text,{style:x(I.text),numberOfLines:1,children:o})})]}),
190
+ /* @__PURE__ */z(h,{testID:T("viz"),accessible:true,accessibilityRole:"image",accessibilityLabel:a,onLayout:H,style:{height:S},children:C.map((e,t)=>/* @__PURE__ */z(h,{style:{position:"absolute",left:e.x,top:0,width:e.width,height:S},children:e.lights.map((t,i)=>/* @__PURE__ */z(h,{style:{position:"absolute",left:0,top:t.y,width:e.width,height:t.height,borderRadius:b.grid.radius,backgroundColor:Oo(m,b.colors[e.zone]),opacity:t.opacity}},i))},t))}),s?/* @__PURE__ */z(h,{style:[wa(m,b.src),{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:/* @__PURE__ */D(g,{testID:s.testID??T("source"),onPress:s.onPress?e=>s.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:"button",accessibilityLabel:s.accessibilityLabel??s.label,style:[wa(m,b.srcBtn),{minHeight:b.srcBtn.minHeight,flexDirection:"row",alignItems:"center"}],children:[
190
191
  /* @__PURE__ */z(Text,{style:x(b.srcText),children:s.label}),
191
- /* @__PURE__ */z(Glyph,{icon:Ts,size:b.srcIcon.w,color:Fo(m,b.srcIcon.color)})]})}):null,c?/* @__PURE__ */D(g,{testID:c.testID??T("next"),onPress:c.onPress?e=>c.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:c.href!==void 0?"link":"button",accessibilityLabel:c.label,...w.OS==="web"&&c.href!==void 0?{href:c.href}:{},style:[ba(m,b.act),{alignSelf:"flex-start",minHeight:b.act.minHeight,marginBottom:b.act.marginBottom,flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:[
192
- /* @__PURE__ */z(Text,{style:x(b.actText),children:c.label}),F?/* @__PURE__ */z(h,{pointerEvents:"none",style:F}):null]}):null]})}function hc(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function gc(e){return e==null?null:typeof e=="object"?e.uri:String(e)}function fc(e,t){return t===null?-1:typeof t=="number"?t>=0&&t<e.length?t:-1:typeof t=="string"?e.findIndex(e=>e.key===t):e.findIndex(e=>e.value===void 0||e.value===null)}function mc(e,t){let i=[];for(let r=0;r<e.length;r+=t){let n=e.slice(r,r+t);for(;n.length<t;)n.push(null);i.push(n)}return i}function CheckinSheet(e){let{kicker:t,title:i,image:r,imageKind:l="photo",fallback:o,onImageError:a,onClose:s,closeLabel:c,steps:d,open:u,onPick:p,onEditStep:f,flowLabel:m,note:b,doneText:y,action:v,children:k,loading:x=false,loadingLabel:T,testID:I,style:S}=e;Da("CheckinSheet",s,c);let H=Io(),F=ka(H),_={why:ea(H,Gl),checkin:ea(H,Yl)},O=_.why,E=_.checkin,[P,L]=n(null),B=gc(r),[A,R]=n(null),j=B!==null&&A!==B?hc(r):null,{shown:$,onShown:W}=Qs(j?B:null),M=e=>fa(H,jo(H,e)),N=e=>I===void 0?void 0:`${I}-${e}`;if(x)/* @__PURE__ */
193
- return z(h,{testID:I,style:[{paddingTop:O.head.padding[0],paddingHorizontal:E.body.padding[1],paddingBottom:E.body.padding[2]},S],children:/* @__PURE__ */z(Skeleton,{lines:4,label:T})});let G=fc(d,u),q=e=>e.value!==void 0&&e.value!==null,U=G<0&&d.length>0&&d.every(q),V=l==="photo",Y=O.packInset*O.pic.w,X=()=>{r==null||B===null||(R(B),a?.(r))},K=ya(H,E.btn),Q=e=>({onPressIn:()=>L(e),onPressOut:()=>L(null)}),J=(e,t)=>P===e&&!F?{transform:[{scale:t}]}:null,Z=b?.link;/* @__PURE__ */
192
+ /* @__PURE__ */z(Glyph,{icon:Ss,size:b.srcIcon.w,color:Oo(m,b.srcIcon.color)})]})}):null,c?/* @__PURE__ */D(g,{testID:c.testID??T("next"),onPress:c.onPress?e=>c.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:c.href!==void 0?"link":"button",accessibilityLabel:c.label,...w.OS==="web"&&c.href!==void 0?{href:c.href}:{},style:[wa(m,b.act),{alignSelf:"flex-start",minHeight:b.act.minHeight,marginBottom:b.act.marginBottom,flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:[
193
+ /* @__PURE__ */z(Text,{style:x(b.actText),children:c.label}),F?/* @__PURE__ */z(h,{pointerEvents:"none",style:F}):null]}):null]})}function fc(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function mc(e){return e==null?null:typeof e=="object"?e.uri:String(e)}function bc(e,t){return t===null?-1:typeof t=="number"?t>=0&&t<e.length?t:-1:typeof t=="string"?e.findIndex(e=>e.key===t):e.findIndex(e=>e.value===void 0||e.value===null)}function yc(e,t){let i=[];for(let r=0;r<e.length;r+=t){let n=e.slice(r,r+t);for(;n.length<t;)n.push(null);i.push(n)}return i}function CheckinSheet(e){let{kicker:t,title:i,image:r,imageKind:l="photo",fallback:o,onImageError:a,onClose:s,closeLabel:c,steps:d,open:u,onPick:p,onEditStep:f,flowLabel:m,note:b,doneText:y,action:v,children:k,loading:x=false,loadingLabel:T,testID:I,style:S}=e;Ha("CheckinSheet",s,c);let H=zo(),F=Ta(H),_={why:ia(H,Ul),checkin:ia(H,Kl)},O=_.why,E=_.checkin,[P,L]=n(null),B=mc(r),[A,R]=n(null),j=B!==null&&A!==B?fc(r):null,{shown:$,onShown:W}=Zs(j?B:null),M=e=>ba(H,Wo(H,e)),N=e=>I===void 0?void 0:`${I}-${e}`;if(x)/* @__PURE__ */
194
+ return z(h,{testID:I,style:[{paddingTop:O.head.padding[0],paddingHorizontal:E.body.padding[1],paddingBottom:E.body.padding[2]},S],children:/* @__PURE__ */z(Skeleton,{lines:4,label:T})});let G=bc(d,u),q=e=>e.value!==void 0&&e.value!==null,U=G<0&&d.length>0&&d.every(q),V=l==="photo",Y=O.packInset*O.pic.w,X=()=>{r==null||B===null||(R(B),a?.(r))},K=va(H,E.btn),Q=e=>({onPressIn:()=>L(e),onPressOut:()=>L(null)}),J=(e,t)=>P===e&&!F?{transform:[{scale:t}]}:null,Z=b?.link;/* @__PURE__ */
194
195
  return D(h,{testID:I,style:S,children:[
195
- /* @__PURE__ */D(h,{style:[ba(H,O.head),{flexDirection:"row",alignItems:"flex-start"}],children:[
196
- /* @__PURE__ */D(h,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[ba(H,O.pic),V?{backgroundColor:Fo(H,O.photoBg)}:null,!$&&o?.tint!==void 0?{backgroundColor:o.tint}:null,{width:O.pic.w,height:O.pic.h,overflow:"hidden",alignItems:"center",justifyContent:"center"}],children:[$?null:/* @__PURE__ */z(BlockIcon,{icon:o?.icon??ss,size:o?.iconSize??H.metrics.thumbnail.xs.icon.w,color:o?.iconColor??Fo(H,H.metrics.thumbnail.xs.icon.color)}),j?/* @__PURE__ */z(FadeImage,{testID:N("image"),source:j,resizeMode:V?"cover":"contain",onLoad:W,onError:X,style:[{position:"absolute",top:V?0:Y,right:V?0:Y,bottom:V?0:Y,left:V?0:Y},V?null:{mixBlendMode:"multiply"}]},B??void 0):null]}),
197
- /* @__PURE__ */D(h,{style:{flex:1,minWidth:0},children:[t?/* @__PURE__ */z(Text,{accessibilityLiveRegion:"polite",style:M(O.kind),children:t}):null,i?/* @__PURE__ */z(Text,{accessibilityRole:"header",style:[M(O.title),{marginTop:O.title.marginTop}],children:i}):null]}),s?/* @__PURE__ */z(g,{testID:N("close"),onPress:s,hitSlop:Ta(O.close.w),accessibilityRole:"button",accessibilityLabel:c,style:{width:O.close.w,height:O.close.h,borderRadius:O.close.w/2,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */z(Glyph,{icon:Ns,size:O.closeIcon.w,color:Fo(H,O.close.color)})}):/* @__PURE__ */z(h,{style:{width:O.close.w}})]}),
198
- /* @__PURE__ */D(h,{style:ba(H,E.body),children:[
196
+ /* @__PURE__ */D(h,{style:[wa(H,O.head),{flexDirection:"row",alignItems:"flex-start"}],children:[
197
+ /* @__PURE__ */D(h,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[wa(H,O.pic),V?{backgroundColor:Oo(H,O.photoBg)}:null,!$&&o?.tint!==void 0?{backgroundColor:o.tint}:null,{width:O.pic.w,height:O.pic.h,overflow:"hidden",alignItems:"center",justifyContent:"center"}],children:[$?null:/* @__PURE__ */z(BlockIcon,{icon:o?.icon??ds,size:o?.iconSize??H.metrics.thumbnail.xs.icon.w,color:o?.iconColor??Oo(H,H.metrics.thumbnail.xs.icon.color)}),j?/* @__PURE__ */z(FadeImage,{testID:N("image"),source:j,resizeMode:V?"cover":"contain",onLoad:W,onError:X,style:[{position:"absolute",top:V?0:Y,right:V?0:Y,bottom:V?0:Y,left:V?0:Y},V?null:{mixBlendMode:"multiply"}]},B??void 0):null]}),
198
+ /* @__PURE__ */D(h,{style:{flex:1,minWidth:0},children:[t?/* @__PURE__ */z(Text,{accessibilityLiveRegion:"polite",style:M(O.kind),children:t}):null,i?/* @__PURE__ */z(Text,{accessibilityRole:"header",style:[M(O.title),{marginTop:O.title.marginTop}],children:i}):null]}),s?/* @__PURE__ */z(g,{testID:N("close"),onPress:s,hitSlop:Sa(O.close.w),accessibilityRole:"button",accessibilityLabel:c,style:{width:O.close.w,height:O.close.h,borderRadius:O.close.w/2,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */z(Glyph,{icon:qs,size:O.closeIcon.w,color:Oo(H,O.close.color)})}):/* @__PURE__ */z(h,{style:{width:O.close.w}})]}),
199
+ /* @__PURE__ */D(h,{style:wa(H,E.body),children:[
199
200
  /* @__PURE__ */D(h,{accessibilityLabel:m,...w.OS==="web"?{role:"region"}:{},children:[d.map((e,t)=>{if(t===G){let i=e.columns??2;/* @__PURE__ */
200
201
  return D(h,{style:t>0?{paddingTop:E.stepTop}:null,children:[
201
202
  /* @__PURE__ */z(Text,{accessibilityRole:"header",style:M(E.question),children:e.question}),
202
- /* @__PURE__ */z(h,{accessibilityRole:"radiogroup",accessibilityLabel:e.question,style:{rowGap:E.picks.gap[1],marginTop:E.picks.marginTop},children:mc(e.picks,i).map((t,i)=>/* @__PURE__ */z(h,{style:{flexDirection:"row",columnGap:E.picks.gap[0]},children:t.map((t,i)=>{if(!t)/* @__PURE__ */return z(h,{style:{flex:1}},`blank-${i}`);let r=e.value===t.value,n=r?E.pickOn:E.pick;/* @__PURE__ */
203
- return z(g,{testID:N(`pick-${e.key}-${t.value}`),onPress:()=>p?.(e.key,t.value),accessibilityRole:"radio",accessibilityLabel:t.label,accessibilityState:{checked:r},"aria-checked":r,style:[ba(H,n),{flex:1,minWidth:0,minHeight:n.minHeight,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */z(Text,{style:[M(r?E.pickOnText:E.pickText),{textAlign:"center"}],children:t.label})},t.value)})},i))})]},e.key)}if(!q(e))return null;let i=e.picks.find(t=>t.value===e.value)?.label??String(e.value),r=`row-${e.key}`;/* @__PURE__ */
204
- return D(g,{testID:N(r),onPress:f?()=>f(e.key):void 0,...Q(r),accessibilityRole:"button",accessibilityLabel:`${e.label}: ${i}`,accessibilityState:{expanded:false},style:[ba(H,E.row),{flexDirection:"row",alignItems:"center",minHeight:E.row.minHeight},J(r,E.rowPressScale)],children:[
205
- /* @__PURE__ */z(Glyph,{icon:us,size:E.rowIcon.w,color:Fo(H,E.rowIcon.color)}),
203
+ /* @__PURE__ */z(h,{accessibilityRole:"radiogroup",accessibilityLabel:e.question,style:{rowGap:E.picks.gap[1],marginTop:E.picks.marginTop},children:yc(e.picks,i).map((t,i)=>/* @__PURE__ */z(h,{style:{flexDirection:"row",columnGap:E.picks.gap[0]},children:t.map((t,i)=>{if(!t)/* @__PURE__ */return z(h,{style:{flex:1}},`blank-${i}`);let r=e.value===t.value,n=r?E.pickOn:E.pick;/* @__PURE__ */
204
+ return z(g,{testID:N(`pick-${e.key}-${t.value}`),onPress:()=>p?.(e.key,t.value),accessibilityRole:"radio",accessibilityLabel:t.label,accessibilityState:{checked:r},"aria-checked":r,style:[wa(H,n),{flex:1,minWidth:0,minHeight:n.minHeight,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */z(Text,{style:[M(r?E.pickOnText:E.pickText),{textAlign:"center"}],children:t.label})},t.value)})},i))})]},e.key)}if(!q(e))return null;let i=e.picks.find(t=>t.value===e.value)?.label??String(e.value),r=`row-${e.key}`;/* @__PURE__ */
205
+ return D(g,{testID:N(r),onPress:f?()=>f(e.key):void 0,...Q(r),accessibilityRole:"button",accessibilityLabel:`${e.label}: ${i}`,accessibilityState:{expanded:false},style:[wa(H,E.row),{flexDirection:"row",alignItems:"center",minHeight:E.row.minHeight},J(r,E.rowPressScale)],children:[
206
+ /* @__PURE__ */z(Glyph,{icon:hs,size:E.rowIcon.w,color:Oo(H,E.rowIcon.color)}),
206
207
  /* @__PURE__ */z(Text,{style:M(E.rowLabel),children:e.label}),
207
208
  /* @__PURE__ */z(Text,{style:[M(E.rowValue),{flex:1,minWidth:0,textAlign:"right"}],children:i}),
208
- /* @__PURE__ */z(h,{style:{transform:[{rotate:`${E.rowTurn}deg`}]},children:/* @__PURE__ */z(Glyph,{icon:ps,size:E.rowIcon.w,color:Fo(H,E.rowIcon.color)})})]},e.key)}),b?/* @__PURE__ */z(h,{style:[ba(H,E.note),{marginTop:E.note.marginTop}],children:/* @__PURE__ */D(Text,{style:M(E.noteText),children:[b.text,Z?/* @__PURE__ */D(C,{children:[" ",
209
+ /* @__PURE__ */z(h,{style:{transform:[{rotate:`${E.rowTurn}deg`}]},children:/* @__PURE__ */z(Glyph,{icon:gs,size:E.rowIcon.w,color:Oo(H,E.rowIcon.color)})})]},e.key)}),b?/* @__PURE__ */z(h,{style:[wa(H,E.note),{marginTop:E.note.marginTop}],children:/* @__PURE__ */D(Text,{style:M(E.noteText),children:[b.text,Z?/* @__PURE__ */D(C,{children:[" ",
209
210
  /* @__PURE__ */z(Text,{testID:Z.testID??N("note-link"),accessibilityRole:"link",onPress:Z.onPress?e=>Z.onPress?.({currentTarget:e.currentTarget}):void 0,...w.OS==="web"&&Z.href!==void 0?{href:Z.href}:{},style:[M(E.noteLink),w.OS==="web"?{whiteSpace:"normal"}:null],children:Z.label})]}):null,b.after?/* @__PURE__ */D(C,{children:[" ",
210
- /* @__PURE__ */z(Text,{style:w.OS==="web"?{whiteSpace:"nowrap"}:null,children:b.after})]}):null]})}):null,U&&y?/* @__PURE__ */z(Text,{style:[M(E.done),{marginTop:E.done.marginTop}],children:y}):null]}),k,U&&v?/* @__PURE__ */z(h,{style:{rowGap:E.acts.gap[1]},children:/* @__PURE__ */D(g,{testID:v.testID??N("action"),onPress:v.onPress,...Q("action"),accessibilityRole:"button",accessibilityLabel:v.accessibilityLabel??v.label,style:[ba(H,E.btn),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:E.btn.h},J("action",O.pressScale)],children:[
211
- /* @__PURE__ */z(Text,{style:[M(E.btnText),{textAlign:"center"}],children:v.label}),K?/* @__PURE__ */z(h,{pointerEvents:"none",style:K}):null]})}):null]})]})}function bc(e){let t=Ta(e);return t?{top:t.top,bottom:t.bottom}:void 0}function Layers({layers:e,size:t}){/* @__PURE__ */
212
- return z(h,{pointerEvents:"none",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{width:t,height:t},children:e.map((e,i)=>/* @__PURE__ */z(Glyph,{icon:e.icon,size:t,color:e.color,style:{position:"absolute",left:0,top:0}},i))})}function yc(e,t,i,r){return typeof t=="function"?t({size:i,color:e.colors.ink}):/* @__PURE__ */z(Layers,{layers:r?gl:hl,size:i})}function WeatherCard(e){let{variant:t="walk",heading:i,temperature:r,condition:n,details:l,glyph:o,sky:a="sun",level:s="good",verdict:c,advice:d,comfort:u,label:p,note:f,action:m,units:y,tags:v,tagsLabel:k,loading:x=false,loadingLabel:T,testID:I,style:S}=e,C=Io(),H={weather:ea(C,Xl),weatherSummary:ea(C,Kl),weatherTile:ea(C,Ql),weatherWeb:ea(C,Jl)},{width:F}=b(),_=e=>fa(C,jo(C,e)),O=e=>e.marginTop?{marginTop:e.marginTop}:null,E=e=>I===void 0?void 0:`${I}-${e}`,P=i!==void 0&&t!=="web"?{role:"region","aria-label":i}:{},L={backgroundColor:Fo(C,H.weather.skies[a])};if(t==="web"){let e=H.weatherWeb,t=F>0&&F<=e.phone.upTo,l=t?{...e.card,padding:e.phone.card.padding}:e.card,a=t?e.phone.glyph.w:e.glyph.w;if(x)/* @__PURE__ */
213
- return z(h,{testID:I,style:[ba(C,l),S],children:/* @__PURE__ */z(Skeleton,{lines:3,label:T})});let s=Math.min(e.tempFluid.max,Math.max(e.tempFluid.min,F*e.tempFluid.vw/100)),c=s/e.temp.size,d=[_(e.temp),{fontSize:s,lineHeight:e.temp.lineHeight*c,letterSpacing:e.temp.tracking*c}],u=t=>Fo(C,t==="red"||t==="yellow"||t==="green"||t==="blue"?e.hues[t]:e.hues.plain);/* @__PURE__ */
214
- return D(h,{testID:I,style:[ba(C,l),S],children:[
215
- /* @__PURE__ */D(h,{style:[ba(C,e.head),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",marginBottom:e.head.marginBottom}],children:[i?/* @__PURE__ */z(Text,{role:"heading","aria-level":2,style:_(e.city),children:i}):null,y?/* @__PURE__ */z(h,{role:"radiogroup","aria-label":y.label,style:[ba(C,e.units),{flexDirection:"row"}],children:y.options.map(t=>{let i=t.value===y.value,r=i?e.unitOn:e.unit;/* @__PURE__ */
216
- return z(g,{testID:E(`unit-${t.value}`),role:"radio","aria-checked":i,accessibilityState:{checked:i},hitSlop:bc(e.unit.h),onPress:y.onChange&&!i?()=>y.onChange?.(t.value):void 0,style:[ba(C,r),{minWidth:e.unit.w,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */z(Text,{style:[_(i?e.unitOnText:e.unitText),{textAlign:"center"}],children:t.label})},t.value)})}):null]}),
217
- /* @__PURE__ */D(h,{style:[ba(C,e.now),{flexDirection:"row",alignItems:"center"}],children:[yc(C,o,a,true),
211
+ /* @__PURE__ */z(Text,{style:w.OS==="web"?{whiteSpace:"nowrap"}:null,children:b.after})]}):null]})}):null,U&&y?/* @__PURE__ */z(Text,{style:[M(E.done),{marginTop:E.done.marginTop}],children:y}):null]}),k,U&&v?/* @__PURE__ */z(h,{style:{rowGap:E.acts.gap[1]},children:/* @__PURE__ */D(g,{testID:v.testID??N("action"),onPress:v.onPress,...Q("action"),accessibilityRole:"button",accessibilityLabel:v.accessibilityLabel??v.label,style:[wa(H,E.btn),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:E.btn.h},J("action",O.pressScale)],children:[
212
+ /* @__PURE__ */z(Text,{style:[M(E.btnText),{textAlign:"center"}],children:v.label}),K?/* @__PURE__ */z(h,{pointerEvents:"none",style:K}):null]})}):null]})]})}function wc(e){let t=Sa(e);return t?{top:t.top,bottom:t.bottom}:void 0}function Layers({layers:e,size:t}){/* @__PURE__ */
213
+ return z(h,{pointerEvents:"none",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{width:t,height:t},children:e.map((e,i)=>/* @__PURE__ */z(Glyph,{icon:e.icon,size:t,color:e.color,style:{position:"absolute",left:0,top:0}},i))})}function vc(e,t,i,r){return typeof t=="function"?t({size:i,color:e.colors.ink}):/* @__PURE__ */z(Layers,{layers:r?ml:fl,size:i})}function WeatherCard(e){let{variant:t="walk",heading:i,temperature:r,condition:n,details:l,glyph:o,sky:a="sun",level:s="good",verdict:c,advice:d,comfort:u,label:p,note:f,action:m,units:y,tags:v,tagsLabel:k,loading:x=false,loadingLabel:T,testID:I,style:S}=e,C=zo(),H={weather:ia(C,Ql),weatherSummary:ia(C,Jl),weatherTile:ia(C,Zl),weatherWeb:ia(C,eo)},{width:F}=b(),_=e=>ba(C,Wo(C,e)),O=e=>e.marginTop?{marginTop:e.marginTop}:null,E=e=>I===void 0?void 0:`${I}-${e}`,P=i!==void 0&&t!=="web"?{role:"region","aria-label":i}:{},L={backgroundColor:Oo(C,H.weather.skies[a])};if(t==="web"){let e=H.weatherWeb,t=F>0&&F<=e.phone.upTo,l=t?{...e.card,padding:e.phone.card.padding}:e.card,a=t?e.phone.glyph.w:e.glyph.w;if(x)/* @__PURE__ */
214
+ return z(h,{testID:I,style:[wa(C,l),S],children:/* @__PURE__ */z(Skeleton,{lines:3,label:T})});let s=Math.min(e.tempFluid.max,Math.max(e.tempFluid.min,F*e.tempFluid.vw/100)),c=s/e.temp.size,d=[_(e.temp),{fontSize:s,lineHeight:e.temp.lineHeight*c,letterSpacing:e.temp.tracking*c}],u=t=>Oo(C,t==="red"||t==="yellow"||t==="green"||t==="blue"?e.hues[t]:e.hues.plain);/* @__PURE__ */
215
+ return D(h,{testID:I,style:[wa(C,l),S],children:[
216
+ /* @__PURE__ */D(h,{style:[wa(C,e.head),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",marginBottom:e.head.marginBottom}],children:[i?/* @__PURE__ */z(Text,{role:"heading","aria-level":2,style:_(e.city),children:i}):null,y?/* @__PURE__ */z(h,{role:"radiogroup","aria-label":y.label,style:[wa(C,e.units),{flexDirection:"row"}],children:y.options.map(t=>{let i=t.value===y.value,r=i?e.unitOn:e.unit;/* @__PURE__ */
217
+ return z(g,{testID:E(`unit-${t.value}`),role:"radio","aria-checked":i,accessibilityState:{checked:i},hitSlop:wc(e.unit.h),onPress:y.onChange&&!i?()=>y.onChange?.(t.value):void 0,style:[wa(C,r),{minWidth:e.unit.w,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */z(Text,{style:[_(i?e.unitOnText:e.unitText),{textAlign:"center"}],children:t.label})},t.value)})}):null]}),
218
+ /* @__PURE__ */D(h,{style:[wa(C,e.now),{flexDirection:"row",alignItems:"center"}],children:[vc(C,o,a,true),
218
219
  /* @__PURE__ */D(h,{style:{flex:1,minWidth:0},children:[
219
- /* @__PURE__ */z(Text,{style:d,children:r}),n?/* @__PURE__ */z(Text,{style:[_(e.sky),O(e.sky)],children:n}):null]})]}),v&&v.length>0?/* @__PURE__ */z(h,{role:"list","aria-label":k,style:[ba(C,e.tags),{flexDirection:"row",flexWrap:"wrap"}],children:v.map((t,i)=>/* @__PURE__ */D(h,{role:"listitem",style:[ba(C,e.tag),{flexDirection:"row",alignItems:"center",borderColor:u(t.hue)}],children:[
220
- /* @__PURE__ */z(h,{style:{width:e.dot,height:e.dot,borderRadius:e.dot/2,backgroundColor:t.hue?u(t.hue):Fo(C,e.hues.plainDot)}}),
220
+ /* @__PURE__ */z(Text,{style:d,children:r}),n?/* @__PURE__ */z(Text,{style:[_(e.sky),O(e.sky)],children:n}):null]})]}),v&&v.length>0?/* @__PURE__ */z(h,{role:"list","aria-label":k,style:[wa(C,e.tags),{flexDirection:"row",flexWrap:"wrap"}],children:v.map((t,i)=>/* @__PURE__ */D(h,{role:"listitem",style:[wa(C,e.tag),{flexDirection:"row",alignItems:"center",borderColor:u(t.hue)}],children:[
221
+ /* @__PURE__ */z(h,{style:{width:e.dot,height:e.dot,borderRadius:e.dot/2,backgroundColor:t.hue?u(t.hue):Oo(C,e.hues.plainDot)}}),
221
222
  /* @__PURE__ */z(Text,{style:_(e.tagText),children:t.label})]},i))}):null]})}if(t==="tile"){let e=H.weatherTile;if(x)/* @__PURE__ */
222
- return z(h,{testID:I,style:[ba(C,e.card),S],children:/* @__PURE__ */z(Skeleton,{lines:3,label:T})});let[t=0,i=0,n=0,a=0]=e.glyphMargin;/* @__PURE__ */
223
- return D(h,{testID:I,...P,style:[ba(C,e.card),{alignItems:"flex-start"},S],children:[
224
- /* @__PURE__ */D(h,{style:[ba(C,e.top),{flexDirection:"row",alignItems:"center",justifyContent:"space-between",alignSelf:"stretch"}],children:[
223
+ return z(h,{testID:I,style:[wa(C,e.card),S],children:/* @__PURE__ */z(Skeleton,{lines:3,label:T})});let[t=0,i=0,n=0,a=0]=e.glyphMargin;/* @__PURE__ */
224
+ return D(h,{testID:I,...P,style:[wa(C,e.card),{alignItems:"flex-start"},S],children:[
225
+ /* @__PURE__ */D(h,{style:[wa(C,e.top),{flexDirection:"row",alignItems:"center",justifyContent:"space-between",alignSelf:"stretch"}],children:[
225
226
  /* @__PURE__ */z(Text,{style:[_(e.label),{flexShrink:1}],children:p}),
226
- /* @__PURE__ */z(h,{style:{marginTop:t,marginRight:i,marginBottom:n,marginLeft:a},children:yc(C,o,e.glyph.w,false)})]}),
227
+ /* @__PURE__ */z(h,{style:{marginTop:t,marginRight:i,marginBottom:n,marginLeft:a},children:vc(C,o,e.glyph.w,false)})]}),
227
228
  /* @__PURE__ */D(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline"},children:[
228
- /* @__PURE__ */z(Text,{style:_(e.big),children:r}),f?/* @__PURE__ */z(Text,{style:[_(e.small),{marginLeft:e.smallGap}],children:f}):null]}),l?/* @__PURE__ */z(Text,{style:_(e.meta),children:l}):null,m?/* @__PURE__ */D(g,{testID:m.testID??E("action"),onPress:m.onPress?e=>m.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:m.href!==void 0?"link":"button",accessibilityLabel:m.label,...w.OS==="web"&&m.href!==void 0?{href:m.href}:{},hitSlop:bc(e.btn.minHeight||e.btn.h),style:[ba(C,e.btn),{minHeight:e.btn.minHeight,flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:[
229
- /* @__PURE__ */z(Glyph,{icon:fl,size:e.btnIcon.w,color:Fo(C,e.btnIcon.color)}),
230
- /* @__PURE__ */z(Text,{style:_(e.btnText),children:m.label})]}):null]})}if(t==="summary"){let e=H.weatherSummary;return x?/* @__PURE__ */z(h,{testID:I,style:[ba(C,e.card),L,S],children:/* @__PURE__ */z(Skeleton,{lines:3,label:T})}):/* @__PURE__ */D(h,{testID:I,...P,style:[ba(C,e.card),L,{alignItems:"center"},S],children:[yc(C,o,e.glyph.w,false),
229
+ /* @__PURE__ */z(Text,{style:_(e.big),children:r}),f?/* @__PURE__ */z(Text,{style:[_(e.small),{marginLeft:e.smallGap}],children:f}):null]}),l?/* @__PURE__ */z(Text,{style:_(e.meta),children:l}):null,m?/* @__PURE__ */D(g,{testID:m.testID??E("action"),onPress:m.onPress?e=>m.onPress?.({currentTarget:e.currentTarget}):void 0,accessibilityRole:m.href!==void 0?"link":"button",accessibilityLabel:m.label,...w.OS==="web"&&m.href!==void 0?{href:m.href}:{},hitSlop:wc(e.btn.minHeight||e.btn.h),style:[wa(C,e.btn),{minHeight:e.btn.minHeight,flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:[
230
+ /* @__PURE__ */z(Glyph,{icon:bl,size:e.btnIcon.w,color:Oo(C,e.btnIcon.color)}),
231
+ /* @__PURE__ */z(Text,{style:_(e.btnText),children:m.label})]}):null]})}if(t==="summary"){let e=H.weatherSummary;return x?/* @__PURE__ */z(h,{testID:I,style:[wa(C,e.card),L,S],children:/* @__PURE__ */z(Skeleton,{lines:3,label:T})}):/* @__PURE__ */D(h,{testID:I,...P,style:[wa(C,e.card),L,{alignItems:"center"},S],children:[vc(C,o,e.glyph.w,false),
231
232
  /* @__PURE__ */z(Text,{style:[_(e.temp),O(e.temp),{textAlign:"center"}],children:r}),n?/* @__PURE__ */z(Text,{style:[_(e.cond),O(e.cond),{textAlign:"center"}],children:n}):null,l?/* @__PURE__ */z(Text,{style:[_(e.hl),O(e.hl),{textAlign:"center"}],children:l}):null]})}let B=H.weather;if(x)/* @__PURE__ */
232
- return z(h,{testID:I,style:[ba(C,B.card),L,S],children:/* @__PURE__ */z(Skeleton,{lines:3,label:T})});let A=u?Math.max(0,Math.round(u.total)):0,R=u?Math.min(A,Math.max(0,Math.round(u.filled))):0;/* @__PURE__ */
233
- return D(h,{testID:I,...P,style:[ba(C,B.card),L,S],children:[
234
- /* @__PURE__ */D(h,{style:[ba(C,B.now),{flexDirection:"row",alignItems:"center"}],children:[
233
+ return z(h,{testID:I,style:[wa(C,B.card),L,S],children:/* @__PURE__ */z(Skeleton,{lines:3,label:T})});let A=u?Math.max(0,Math.round(u.total)):0,R=u?Math.min(A,Math.max(0,Math.round(u.filled))):0;/* @__PURE__ */
234
+ return D(h,{testID:I,...P,style:[wa(C,B.card),L,S],children:[
235
+ /* @__PURE__ */D(h,{style:[wa(C,B.now),{flexDirection:"row",alignItems:"center"}],children:[
235
236
  /* @__PURE__ */D(h,{style:{flex:1,minWidth:0},children:[
236
- /* @__PURE__ */z(Text,{style:_(B.temp),children:r}),n?/* @__PURE__ */z(Text,{style:[_(B.cond),O(B.cond)],children:n}):null,l?/* @__PURE__ */z(Text,{style:[_(B.hl),O(B.hl)],children:l}):null]}),yc(C,o,B.glyph.w,false)]}),c||d||u?/* @__PURE__ */D(h,{style:ba(C,B.walk),children:[c?/* @__PURE__ */D(h,{style:[ba(C,B.walkTitle),{flexDirection:"row",alignItems:"center"}],children:[
237
- /* @__PURE__ */z(h,{style:{width:B.lvl.w,height:B.lvl.h,borderRadius:B.lvl.w/2,backgroundColor:Fo(C,B.levels[s])}}),
238
- /* @__PURE__ */z(Text,{style:[_(B.walkTitleText),{flexShrink:1}],children:c})]}):null,d?/* @__PURE__ */z(Text,{style:_(B.walkText),children:d}):null,u?/* @__PURE__ */D(h,{testID:E("comfort"),accessible:true,role:"img","aria-label":u.accessibilityLabel??`${u.label}: ${u.value}`,style:[ba(C,B.comfort),{borderTopWidth:B.comfortRule.width,borderTopColor:Fo(C,B.comfortRule.color),flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:[
237
+ /* @__PURE__ */z(Text,{style:_(B.temp),children:r}),n?/* @__PURE__ */z(Text,{style:[_(B.cond),O(B.cond)],children:n}):null,l?/* @__PURE__ */z(Text,{style:[_(B.hl),O(B.hl)],children:l}):null]}),vc(C,o,B.glyph.w,false)]}),c||d||u?/* @__PURE__ */D(h,{style:wa(C,B.walk),children:[c?/* @__PURE__ */D(h,{style:[wa(C,B.walkTitle),{flexDirection:"row",alignItems:"center"}],children:[
238
+ /* @__PURE__ */z(h,{style:{width:B.lvl.w,height:B.lvl.h,borderRadius:B.lvl.w/2,backgroundColor:Oo(C,B.levels[s])}}),
239
+ /* @__PURE__ */z(Text,{style:[_(B.walkTitleText),{flexShrink:1}],children:c})]}):null,d?/* @__PURE__ */z(Text,{style:_(B.walkText),children:d}):null,u?/* @__PURE__ */D(h,{testID:E("comfort"),accessible:true,role:"img","aria-label":u.accessibilityLabel??`${u.label}: ${u.value}`,style:[wa(C,B.comfort),{borderTopWidth:B.comfortRule.width,borderTopColor:Oo(C,B.comfortRule.color),flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:[
239
240
  /* @__PURE__ */z(Text,{style:[_(B.comfortLabel),{marginRight:"auto"}],children:u.label}),
240
241
  /* @__PURE__ */z(h,{style:{flexDirection:"row",columnGap:B.bar.gap[0]},children:Array.from({length:A},(e,t)=>{let i=t<R?B.pipOn:B.pipOff;/* @__PURE__ */
241
- return z(h,{style:{width:i.w,height:i.h,borderRadius:i.radius[0],backgroundColor:$o(C,i.bg)||void 0}},t)})}),
242
- /* @__PURE__ */z(Text,{style:_(B.comfortValue),children:u.value})]}):null]}):null]})}var wc=600*1e3,vc=/* @__PURE__ */new Map;function kc(e){let t=Date.now(),i=vc.get(e);return i!==void 0&&t-i<wc?false:(vc.delete(e),vc.set(e,t),vc.size>32&&vc.delete(vc.keys().next().value),true)}function WeatherAlert(e){let{title:t,text:i,onPress:r,accessibilityLabel:n,loading:o=false,loadingLabel:s,testID:c,style:d}=e,u=Io(),p=ea(u,Zl),f=ka(u),m=e=>fa(u,jo(u,e)),b=[ba(u,p.card),{minHeight:p.card.minHeight,flexDirection:"row",alignItems:"center"}],y=i?`${t}, ${i}`:t,w=a(null);if(l(()=>{if(o||!y)return;let e=w.current!==y&&kc(y);w.current=y,e&&v.announceForAccessibility?.(y)},[o,y]),o/* @__PURE__ */)return z(h,{testID:c,style:[...b,d],children:/* @__PURE__ */z(h,{style:{flex:1},children:/* @__PURE__ */z(Skeleton,{lines:1,label:s})})});let k=/* @__PURE__ */D(C,{children:[
243
- /* @__PURE__ */z(Glyph,{icon:rs,size:p.icon.w,color:Fo(u,p.icon.color)}),
242
+ return z(h,{style:{width:i.w,height:i.h,borderRadius:i.radius[0],backgroundColor:Mo(C,i.bg)||void 0}},t)})}),
243
+ /* @__PURE__ */z(Text,{style:_(B.comfortValue),children:u.value})]}):null]}):null]})}var kc=600*1e3,xc=/* @__PURE__ */new Map;function Tc(e){let t=Date.now(),i=xc.get(e);return i!==void 0&&t-i<kc?false:(xc.delete(e),xc.set(e,t),xc.size>32&&xc.delete(xc.keys().next().value),true)}function WeatherAlert(e){let{title:t,text:i,onPress:r,accessibilityLabel:n,loading:o=false,loadingLabel:s,testID:c,style:d}=e,u=zo(),p=ia(u,to),f=Ta(u),m=e=>ba(u,Wo(u,e)),b=[wa(u,p.card),{minHeight:p.card.minHeight,flexDirection:"row",alignItems:"center"}],y=i?`${t}, ${i}`:t,w=a(null);if(l(()=>{if(o||!y)return;let e=w.current!==y&&Tc(y);w.current=y,e&&v.announceForAccessibility?.(y)},[o,y]),o/* @__PURE__ */)return z(h,{testID:c,style:[...b,d],children:/* @__PURE__ */z(h,{style:{flex:1},children:/* @__PURE__ */z(Skeleton,{lines:1,label:s})})});let k=/* @__PURE__ */D(C,{children:[
244
+ /* @__PURE__ */z(Glyph,{icon:ls,size:p.icon.w,color:Oo(u,p.icon.color)}),
244
245
  /* @__PURE__ */D(Text,{style:[m(p.text),{flex:1,minWidth:0}],children:[
245
246
  /* @__PURE__ */z(Text,{style:m(p.title),children:t}),i?/* @__PURE__ */D(C,{children:[
246
- /* @__PURE__ */z(h,{style:{width:p.titleGap,height:0}}),i]}):null]}),r?/* @__PURE__ */z(Glyph,{icon:ps,size:p.chev.w,color:Fo(u,p.chev.color),testID:c===void 0?void 0:`${c}-chev`}):null]});return r?/* @__PURE__ */z(g,{testID:c,onPress:e=>r({currentTarget:e.currentTarget}),accessibilityRole:"button",accessibilityLabel:n??y,style:({pressed:e})=>[...b,e&&!f?{transform:[{scale:p.pressScale}]}:null,d],children:k}):/* @__PURE__ */z(h,{testID:c,accessible:true,accessibilityRole:"alert",accessibilityLabel:n??y,style:[...b,d],children:k})}var xc=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#weather-glyphs@v1"),t=globalThis;return t[e]??(t[e]={sky:{},detail:{},warned:/* @__PURE__ */new Set})})();function Tc(e,t){let i=xc[e][t],r=`${e}:${t}`;return i===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!xc.warned.has(r)&&(xc.warned.add(r),console.warn(`@everfur-health/ui-native: no weather ${e==="sky"?"sky":"icon"} "${t}" is registered. The weather blocks draw only the glyphs an app registers: registerWeatherGlyphs({ skies: UI_RN_WEATHER_SKIES, details: UI_RN_WEATHER_DETAILS }) from '@everfur-health/ui-native/weather-glyphs', or pass a drawing.`)),i}function Ic(e,t,i,r){if(t===void 0)return null;if(typeof t=="function")return t({size:i,color:r});let n=Tc(e,t);return n?Array.isArray(n)?/* @__PURE__ */z(h,{pointerEvents:"none",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{width:i,height:i},children:n.map((e,t)=>/* @__PURE__ */z(Glyph,{icon:e.icon,size:i,color:e.color,style:{position:"absolute",left:0,top:0}},t))}):/* @__PURE__ */z(Glyph,{icon:n,size:i,color:r}):null}function WeatherDetails(e){let{items:t,label:i,loading:r=false,loadingLabel:n,testID:l,style:o}=e,a=Io(),s=ea(a,eo),c=ka(a),d=e=>fa(a,jo(a,e));if(r)/* @__PURE__ */
247
- return z(h,{testID:l,style:o,children:/* @__PURE__ */z(Skeleton,{lines:3,label:n})});let u=[ba(a,s.tile),{flex:1,minHeight:s.tile.minHeight,rowGap:s.tile.gap[1]}],p=e=>/* @__PURE__ */D(C,{children:[
248
- /* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",columnGap:s.labelGap},children:[Ic("detail",e.icon,s.icon.w,Fo(a,s.icon.color)),
249
- /* @__PURE__ */z(Text,{style:[d(s.label),{flexShrink:1}],children:e.label}),e.onPress?/* @__PURE__ */z(h,{style:{marginLeft:"auto"},children:/* @__PURE__ */z(Glyph,{icon:ps,size:s.chev.w,color:Fo(a,s.chev.color)})}):null]}),
247
+ /* @__PURE__ */z(h,{style:{width:p.titleGap,height:0}}),i]}):null]}),r?/* @__PURE__ */z(Glyph,{icon:gs,size:p.chev.w,color:Oo(u,p.chev.color),testID:c===void 0?void 0:`${c}-chev`}):null]});return r?/* @__PURE__ */z(g,{testID:c,onPress:e=>r({currentTarget:e.currentTarget}),accessibilityRole:"button",accessibilityLabel:n??y,style:({pressed:e})=>[...b,e&&!f?{transform:[{scale:p.pressScale}]}:null,d],children:k}):/* @__PURE__ */z(h,{testID:c,accessible:true,accessibilityRole:"alert",accessibilityLabel:n??y,style:[...b,d],children:k})}var Ic=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#weather-glyphs@v1"),t=globalThis;return t[e]??(t[e]={sky:{},detail:{},warned:/* @__PURE__ */new Set})})();function Sc(e,t){let i=Ic[e][t],r=`${e}:${t}`;return i===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!Ic.warned.has(r)&&(Ic.warned.add(r),console.warn(`@everfur-health/ui-native: no weather ${e==="sky"?"sky":"icon"} "${t}" is registered. The weather blocks draw only the glyphs an app registers: registerWeatherGlyphs({ skies: UI_RN_WEATHER_SKIES, details: UI_RN_WEATHER_DETAILS }) from '@everfur-health/ui-native/weather-glyphs', or pass a drawing.`)),i}function zc(e,t,i,r){if(t===void 0)return null;if(typeof t=="function")return t({size:i,color:r});let n=Sc(e,t);return n?Array.isArray(n)?/* @__PURE__ */z(h,{pointerEvents:"none",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{width:i,height:i},children:n.map((e,t)=>/* @__PURE__ */z(Glyph,{icon:e.icon,size:i,color:e.color,style:{position:"absolute",left:0,top:0}},t))}):/* @__PURE__ */z(Glyph,{icon:n,size:i,color:r}):null}function WeatherDetails(e){let{items:t,label:i,loading:r=false,loadingLabel:n,testID:l,style:o}=e,a=zo(),s=ia(a,io),c=Ta(a),d=e=>ba(a,Wo(a,e));if(r)/* @__PURE__ */
248
+ return z(h,{testID:l,style:o,children:/* @__PURE__ */z(Skeleton,{lines:3,label:n})});let u=[wa(a,s.tile),{flex:1,minHeight:s.tile.minHeight,rowGap:s.tile.gap[1]}],p=e=>/* @__PURE__ */D(C,{children:[
249
+ /* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",columnGap:s.labelGap},children:[zc("detail",e.icon,s.icon.w,Oo(a,s.icon.color)),
250
+ /* @__PURE__ */z(Text,{style:[d(s.label),{flexShrink:1}],children:e.label}),e.onPress?/* @__PURE__ */z(h,{style:{marginLeft:"auto"},children:/* @__PURE__ */z(Glyph,{icon:gs,size:s.chev.w,color:Oo(a,s.chev.color)})}):null]}),
250
251
  /* @__PURE__ */D(h,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:s.valueGap},children:[
251
- /* @__PURE__ */z(Text,{style:d(s.value),children:e.value}),e.unit?/* @__PURE__ */z(Text,{style:d(s.unit),children:e.unit}):null]}),e.note?/* @__PURE__ */z(Text,{style:[d(s.note),{marginTop:"auto"}],children:e.note}):null]}),f=e=>{let t=e.onPress;return t?/* @__PURE__ */z(g,{testID:e.testID,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel,onPress:e=>t({currentTarget:e.currentTarget}),style:({pressed:e})=>[...u,e&&!c?{transform:[{scale:s.pressScale}]}:null],children:p(e)}):/* @__PURE__ */z(h,{testID:e.testID,accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:u,children:p(e)})},m=[];return t.forEach((e,t)=>t%2===0?m.push([e]):m[m.length-1]?.push(e)),/* @__PURE__ */z(h,{testID:l,role:"list","aria-label":i,style:[{rowGap:s.grid.gap[1]},o],children:m.map(e=>/* @__PURE__ */D(h,{style:{flexDirection:"row",columnGap:s.grid.gap[0]},children:[e.map(e=>/* @__PURE__ */z(h,{role:"listitem",style:{flex:1,minWidth:0},children:f(e)},e.key)),e.length===1?/* @__PURE__ */z(h,{style:{flex:1}}):null]},e[0]?.key))})}function WeatherHours(e){let{variant:t="plain",hours:i,label:r,windows:n,legend:l,loading:o=false,loadingLabel:a,testID:s,style:c}=e,d=Io(),u=ea(d,to),p=e=>fa(d,jo(d,e)),g=t==="walk";if(o)/* @__PURE__ */
252
+ /* @__PURE__ */z(Text,{style:d(s.value),children:e.value}),e.unit?/* @__PURE__ */z(Text,{style:d(s.unit),children:e.unit}):null]}),e.note?/* @__PURE__ */z(Text,{style:[d(s.note),{marginTop:"auto"}],children:e.note}):null]}),f=e=>{let t=e.onPress;return t?/* @__PURE__ */z(g,{testID:e.testID,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel,onPress:e=>t({currentTarget:e.currentTarget}),style:({pressed:e})=>[...u,e&&!c?{transform:[{scale:s.pressScale}]}:null],children:p(e)}):/* @__PURE__ */z(h,{testID:e.testID,accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:u,children:p(e)})},m=[];return t.forEach((e,t)=>t%2===0?m.push([e]):m[m.length-1]?.push(e)),/* @__PURE__ */z(h,{testID:l,role:"list","aria-label":i,style:[{rowGap:s.grid.gap[1]},o],children:m.map(e=>/* @__PURE__ */D(h,{style:{flexDirection:"row",columnGap:s.grid.gap[0]},children:[e.map(e=>/* @__PURE__ */z(h,{role:"listitem",style:{flex:1,minWidth:0},children:f(e)},e.key)),e.length===1?/* @__PURE__ */z(h,{style:{flex:1}}):null]},e[0]?.key))})}function WeatherHours(e){let{variant:t="plain",hours:i,label:r,windows:n,legend:l,loading:o=false,loadingLabel:a,testID:s,style:c}=e,d=zo(),u=ia(d,ro),p=e=>ba(d,Wo(d,e)),g=t==="walk";if(o)/* @__PURE__ */
252
253
  return z(h,{testID:s,style:c,children:/* @__PURE__ */z(Skeleton,{lines:3,label:a})});let f=g?u.rows:u.rows.slice(0,u.rows.length-1),m=(e,t,i=false)=>/* @__PURE__ */z(h,{style:{height:f[e],alignSelf:i?"stretch":"center",justifyContent:"center",alignItems:i?void 0:"center"},children:t});/* @__PURE__ */
253
- return D(h,{testID:s,style:[{minWidth:0},c],children:[g&&n&&n.length>0?/* @__PURE__ */z(h,{style:{flexDirection:"row",columnGap:u.windows.gap[0],marginBottom:u.windows.marginBottom},children:n.map(e=>/* @__PURE__ */D(h,{style:[ba(d,u.window),{flex:1,minWidth:0,rowGap:u.window.gap[1]}],children:[
254
+ return D(h,{testID:s,style:[{minWidth:0},c],children:[g&&n&&n.length>0?/* @__PURE__ */z(h,{style:{flexDirection:"row",columnGap:u.windows.gap[0],marginBottom:u.windows.marginBottom},children:n.map(e=>/* @__PURE__ */D(h,{style:[wa(d,u.window),{flex:1,minWidth:0,rowGap:u.window.gap[1]}],children:[
254
255
  /* @__PURE__ */z(Text,{style:p(u.windowTitle),children:e.title}),e.text?/* @__PURE__ */z(Text,{style:p(u.windowText),children:e.text}):null]},e.key))}):null,
255
- /* @__PURE__ */z(y,{horizontal:true,showsHorizontalScrollIndicator:false,tabIndex:0,role:"list","aria-label":r,contentContainerStyle:{flexDirection:"row"},children:i.map(e=>/* @__PURE__ */D(h,{role:"listitem",accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:{width:u.column,paddingTop:u.cell.padding[0],rowGap:u.cell.gap[1]},children:[m(0,/* @__PURE__ */z(Text,{style:[p(e.now?u.timeNow:u.time),{textAlign:"center"}],numberOfLines:1,children:e.time})),m(1,e.icon!==void 0?Ic("detail",e.icon,u.icon.w,Fo(d,u.icon.color)):Ic("sky",e.glyph,u.glyph.w,d.colors.ink)),m(2,e.chance?/* @__PURE__ */z(Text,{style:p(u.chance),children:e.chance}):null),m(3,/* @__PURE__ */z(Text,{style:[p(e.quiet?u.quiet:u.temp),{textAlign:"center"}],numberOfLines:1,children:e.value})),g?m(4,/* @__PURE__ */z(h,{style:{height:u.bar.h,marginHorizontal:u.barInset,borderRadius:u.bar.radius[0],backgroundColor:Fo(d,u.levels[e.level??"good"])}}),true):null]},e.key))}),g&&l&&l.length>0?/* @__PURE__ */z(h,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants","aria-hidden":true,style:{flexDirection:"row",flexWrap:"wrap",columnGap:u.legend.gap[0],rowGap:u.legend.gap[1],marginTop:u.legend.marginTop},children:l.map(e=>/* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",columnGap:u.legendItem.gap[0]},children:[
256
- /* @__PURE__ */z(h,{style:{width:u.legendDot.w,height:u.legendDot.h,borderRadius:u.legendDot.w/2,backgroundColor:Fo(d,u.levels[e.level])}}),
257
- /* @__PURE__ */z(Text,{style:p(u.legendText),children:e.label})]},e.level))}):null]})}var Sc=e=>`${Math.round(Math.min(1,Math.max(0,e))*1e4)/100}%`;function WeatherForecast(e){let{variant:t="plain",days:i,label:r,loading:n=false,loadingLabel:l,testID:o,style:a}=e,s=Io(),c=ea(s,io),d=e=>fa(s,jo(s,e)),u=t==="walk";if(n)/* @__PURE__ */
256
+ /* @__PURE__ */z(y,{horizontal:true,showsHorizontalScrollIndicator:false,tabIndex:0,role:"list","aria-label":r,contentContainerStyle:{flexDirection:"row"},children:i.map(e=>/* @__PURE__ */D(h,{role:"listitem",accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:{width:u.column,paddingTop:u.cell.padding[0],rowGap:u.cell.gap[1]},children:[m(0,/* @__PURE__ */z(Text,{style:[p(e.now?u.timeNow:u.time),{textAlign:"center"}],numberOfLines:1,children:e.time})),m(1,e.icon!==void 0?zc("detail",e.icon,u.icon.w,Oo(d,u.icon.color)):zc("sky",e.glyph,u.glyph.w,d.colors.ink)),m(2,e.chance?/* @__PURE__ */z(Text,{style:p(u.chance),children:e.chance}):null),m(3,/* @__PURE__ */z(Text,{style:[p(e.quiet?u.quiet:u.temp),{textAlign:"center"}],numberOfLines:1,children:e.value})),g?m(4,/* @__PURE__ */z(h,{style:{height:u.bar.h,marginHorizontal:u.barInset,borderRadius:u.bar.radius[0],backgroundColor:Oo(d,u.levels[e.level??"good"])}}),true):null]},e.key))}),g&&l&&l.length>0?/* @__PURE__ */z(h,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants","aria-hidden":true,style:{flexDirection:"row",flexWrap:"wrap",columnGap:u.legend.gap[0],rowGap:u.legend.gap[1],marginTop:u.legend.marginTop},children:l.map(e=>/* @__PURE__ */D(h,{style:{flexDirection:"row",alignItems:"center",columnGap:u.legendItem.gap[0]},children:[
257
+ /* @__PURE__ */z(h,{style:{width:u.legendDot.w,height:u.legendDot.h,borderRadius:u.legendDot.w/2,backgroundColor:Oo(d,u.levels[e.level])}}),
258
+ /* @__PURE__ */z(Text,{style:p(u.legendText),children:e.label})]},e.level))}):null]})}var Dc=e=>`${Math.round(Math.min(1,Math.max(0,e))*1e4)/100}%`;function WeatherForecast(e){let{variant:t="plain",days:i,label:r,loading:n=false,loadingLabel:l,testID:o,style:a}=e,s=zo(),c=ia(s,no),d=e=>ba(s,Wo(s,e)),u=t==="walk";if(n)/* @__PURE__ */
258
259
  return z(h,{testID:o,style:a,children:/* @__PURE__ */z(Skeleton,{lines:3,label:l})});let[p=0,g=0,f=0,,m=0,b=0]=u?c.walkColumns:c.columns;/* @__PURE__ */
259
260
  return z(h,{testID:o,role:"list","aria-label":r,style:a,children:i.map((e,t)=>{let[i=0,r=0]=e.range,n=c.tags[e.tag?.tone??"good"];/* @__PURE__ */
260
- return D(h,{role:"listitem",accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:{flexDirection:"row",alignItems:"center",columnGap:c.row.gap[0],minHeight:c.row.minHeight,borderTopWidth:t===0?0:c.rule.width,borderTopColor:Fo(s,c.rule.color)},children:[
261
+ return D(h,{role:"listitem",accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:{flexDirection:"row",alignItems:"center",columnGap:c.row.gap[0],minHeight:c.row.minHeight,borderTopWidth:t===0?0:c.rule.width,borderTopColor:Oo(s,c.rule.color)},children:[
261
262
  /* @__PURE__ */z(h,{style:{width:p},children:/* @__PURE__ */z(Text,{style:d(c.day),children:e.day})}),
262
- /* @__PURE__ */D(h,{style:{width:g,alignItems:"center",rowGap:c.sky.gap[1]},children:[Ic("sky",e.glyph,c.glyph.w,s.colors.ink),e.chance?/* @__PURE__ */z(Text,{style:d(c.chance),children:e.chance}):null]}),
263
+ /* @__PURE__ */D(h,{style:{width:g,alignItems:"center",rowGap:c.sky.gap[1]},children:[zc("sky",e.glyph,c.glyph.w,s.colors.ink),e.chance?/* @__PURE__ */z(Text,{style:d(c.chance),children:e.chance}):null]}),
263
264
  /* @__PURE__ */z(h,{style:{width:f},children:/* @__PURE__ */z(Text,{style:[d(c.low),{textAlign:"right"}],children:e.low})}),
264
- /* @__PURE__ */z(h,{style:{flex:1,minWidth:0,height:c.bar.h,borderRadius:c.bar.radius[0],backgroundColor:$o(s,c.bar.bg)||void 0},children:/* @__PURE__ */z(h,{style:{position:"absolute",top:0,bottom:0,left:Sc(i),right:Sc(1-r),borderRadius:c.fill.radius[0],backgroundColor:$o(s,c.fill.bg)||void 0}})}),
265
- /* @__PURE__ */z(h,{style:{width:m},children:/* @__PURE__ */z(Text,{style:d(c.high),children:e.high})}),u?/* @__PURE__ */z(h,{style:{width:b,alignItems:"flex-end"},children:e.tag?/* @__PURE__ */D(h,{style:[ba(s,c.tag),{minHeight:c.tag.minHeight,justifyContent:"center",backgroundColor:Fo(s,n.bg)}],children:[
266
- /* @__PURE__ */z(h,{pointerEvents:"none",style:Sa(n.ringWidth,Fo(s,n.ring),c.tag.radius[0]??0)}),
267
- /* @__PURE__ */z(Text,{style:[d(c.tagText),{color:Fo(s,n.color)}],numberOfLines:1,children:e.tag.label})]}):null}):null]},e.key)})})}function WeatherLevels(e){let{variant:t="phone",rows:i,label:r,loading:n=false,loadingLabel:l,testID:o,style:a}=e,s=Io(),c=ea(s,ro),{width:d}=b(),u=t==="web"&&!(d>0&&d<=c.webPhoneUpTo)?c.web:c.phone,p=e=>fa(s,jo(s,e));if(n)/* @__PURE__ */
265
+ /* @__PURE__ */z(h,{style:{flex:1,minWidth:0,height:c.bar.h,borderRadius:c.bar.radius[0],backgroundColor:Mo(s,c.bar.bg)||void 0},children:/* @__PURE__ */z(h,{style:{position:"absolute",top:0,bottom:0,left:Dc(i),right:Dc(1-r),borderRadius:c.fill.radius[0],backgroundColor:Mo(s,c.fill.bg)||void 0}})}),
266
+ /* @__PURE__ */z(h,{style:{width:m},children:/* @__PURE__ */z(Text,{style:d(c.high),children:e.high})}),u?/* @__PURE__ */z(h,{style:{width:b,alignItems:"flex-end"},children:e.tag?/* @__PURE__ */D(h,{style:[wa(s,c.tag),{minHeight:c.tag.minHeight,justifyContent:"center",backgroundColor:Oo(s,n.bg)}],children:[
267
+ /* @__PURE__ */z(h,{pointerEvents:"none",style:Da(n.ringWidth,Oo(s,n.ring),c.tag.radius[0]??0)}),
268
+ /* @__PURE__ */z(Text,{style:[d(c.tagText),{color:Oo(s,n.color)}],numberOfLines:1,children:e.tag.label})]}):null}):null]},e.key)})})}function WeatherLevels(e){let{variant:t="phone",rows:i,label:r,loading:n=false,loadingLabel:l,testID:o,style:a}=e,s=zo(),c=ia(s,lo),{width:d}=b(),u=t==="web"&&!(d>0&&d<=c.webPhoneUpTo)?c.web:c.phone,p=e=>ba(s,Wo(s,e));if(n)/* @__PURE__ */
268
269
  return z(h,{testID:o,style:a,children:/* @__PURE__ */z(Skeleton,{lines:3,label:l})});let[g=0,f=0,,m=0]=u.columns;/* @__PURE__ */
269
270
  return z(h,{testID:o,role:"list","aria-label":r,style:[{rowGap:u.list.gap[1]},a],children:i.map(e=>{let t=e.tone??"low",i=Math.round(Math.min(1,Math.max(0,e.value))*1e4)/100;/* @__PURE__ */
270
271
  return D(h,{role:"listitem",accessible:e.accessibilityLabel!==void 0,"aria-label":e.accessibilityLabel,style:{flexDirection:"row",alignItems:"center",columnGap:u.row.gap[0],minHeight:u.icon.h},children:[
271
- /* @__PURE__ */z(h,{style:{width:g,height:u.icon.h,overflow:"visible"},children:Ic("detail",e.icon,u.icon.w,s.colors.ink)}),
272
+ /* @__PURE__ */z(h,{style:{width:g,height:u.icon.h,overflow:"visible"},children:zc("detail",e.icon,u.icon.w,s.colors.ink)}),
272
273
  /* @__PURE__ */z(h,{style:{width:f,flexDirection:"row"},children:/* @__PURE__ */z(Text,{style:[p(u.name),{flexShrink:1}],children:e.label})}),
273
- /* @__PURE__ */z(h,{style:{flex:1,minWidth:0,height:u.bar.h,borderRadius:u.bar.radius[0],backgroundColor:$o(s,u.bar.bg)||void 0,overflow:"hidden"},children:/* @__PURE__ */z(h,{style:{width:`${i}%`,height:"100%",borderRadius:u.bar.radius[0],backgroundColor:Fo(s,u.fills[t])}})}),
274
- /* @__PURE__ */z(h,{style:{width:m},children:/* @__PURE__ */z(Text,{style:[p(u.level[t]),{textAlign:"right"}],children:e.level})})]},e.key)})})}function WeatherReading(e){let{variant:t="phone",value:i,word:r,tone:n="ok",choices:l,loading:o=false,loadingLabel:a,testID:s,style:c}=e,d=Io(),u=ea(d,no),p=t==="web"?u.web:u.phone,{width:f}=b(),m=e=>fa(d,jo(d,e)),y=e=>s===void 0?void 0:`${s}-${e}`;if(o)/* @__PURE__ */
275
- return z(h,{testID:s,style:c,children:/* @__PURE__ */z(Skeleton,{lines:2,label:a})});let w=u.fluid,v=Math.min(w.max,Math.max(w.min,f*w.vw/100)),k=v/p.value.size,x=Ta(p.off.minHeight||p.off.h);/* @__PURE__ */
274
+ /* @__PURE__ */z(h,{style:{flex:1,minWidth:0,height:u.bar.h,borderRadius:u.bar.radius[0],backgroundColor:Mo(s,u.bar.bg)||void 0,overflow:"hidden"},children:/* @__PURE__ */z(h,{style:{width:`${i}%`,height:"100%",borderRadius:u.bar.radius[0],backgroundColor:Oo(s,u.fills[t])}})}),
275
+ /* @__PURE__ */z(h,{style:{width:m},children:/* @__PURE__ */z(Text,{style:[p(u.level[t]),{textAlign:"right"}],children:e.level})})]},e.key)})})}function WeatherReading(e){let{variant:t="phone",value:i,word:r,tone:n="ok",choices:l,loading:o=false,loadingLabel:a,testID:s,style:c}=e,d=zo(),u=ia(d,oo),p=t==="web"?u.web:u.phone,{width:f}=b(),m=e=>ba(d,Wo(d,e)),y=e=>s===void 0?void 0:`${s}-${e}`;if(o)/* @__PURE__ */
276
+ return z(h,{testID:s,style:c,children:/* @__PURE__ */z(Skeleton,{lines:2,label:a})});let w=u.fluid,v=Math.min(w.max,Math.max(w.min,f*w.vw/100)),k=v/p.value.size,x=Sa(p.off.minHeight||p.off.h);/* @__PURE__ */
276
277
  return D(h,{testID:s,style:[{rowGap:p.gap},c],children:[l?/* @__PURE__ */z(h,{role:"radiogroup","aria-label":l.label,style:{flexDirection:"row",flexWrap:"wrap",columnGap:p.picks.gap[0],rowGap:p.picks.gap[1],marginTop:p.picks.marginTop},children:l.options.map(e=>{let t=e.value===l.value,i=t?p.on:p.off;/* @__PURE__ */
277
- return D(g,{testID:y(`pick-${e.value}`),role:"radio","aria-checked":t,accessibilityState:{checked:t},accessibilityLabel:e.label,hitSlop:x?{top:x.top,bottom:x.bottom}:void 0,onPress:l.onChange&&!t?()=>l.onChange?.(e.value):void 0,style:[ba(d,i),{minHeight:i.minHeight,flexDirection:"row",alignItems:"center",justifyContent:"center",columnGap:i.gap[0]}],children:[t?/* @__PURE__ */z(Glyph,{icon:us,size:p.check.w,color:Fo(d,p.check.color)}):null,
278
+ return D(g,{testID:y(`pick-${e.value}`),role:"radio","aria-checked":t,accessibilityState:{checked:t},accessibilityLabel:e.label,hitSlop:x?{top:x.top,bottom:x.bottom}:void 0,onPress:l.onChange&&!t?()=>l.onChange?.(e.value):void 0,style:[wa(d,i),{minHeight:i.minHeight,flexDirection:"row",alignItems:"center",justifyContent:"center",columnGap:i.gap[0]}],children:[t?/* @__PURE__ */z(Glyph,{icon:hs,size:p.check.w,color:Oo(d,p.check.color)}):null,
278
279
  /* @__PURE__ */z(Text,{style:m(t?p.onText:p.offText),children:e.label})]},e.value)})}):null,
279
280
  /* @__PURE__ */D(h,{"aria-live":l?"polite":void 0,style:{flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:p.read.gap[0]},children:[
280
- /* @__PURE__ */z(Text,{style:[m(p.value),{fontSize:v,lineHeight:p.value.lineHeight*k,letterSpacing:p.value.tracking*k}],children:i}),r?/* @__PURE__ */z(Text,{style:[m(p.word),{color:Fo(d,u.tones[n])}],children:r}):null]})]})}var zc=false;function Dc(){zc||(zc=true,Na(Gs))}Dc();var Cc=e=>e,Hc=/* @__PURE__ */Object.freeze({CartBar:Cc(CartBar),CartLine:Cc(CartLine),CheckinSheet:Cc(CheckinSheet),OrderRow:Cc(OrderRow),PlanNeedCard:Cc(PlanNeedCard),PriceSummary:Cc(PriceSummary),ProductTile:Cc(ProductTile),ScoreLights:Cc(ScoreLights),SummaryList:Cc(SummaryList),TipCard:Cc(TipCard),WeatherAlert:Cc(WeatherAlert),WeatherCard:Cc(WeatherCard),WeatherDetails:Cc(WeatherDetails),WeatherForecast:Cc(WeatherForecast),WeatherHours:Cc(WeatherHours),WeatherLevels:Cc(WeatherLevels),WeatherReading:Cc(WeatherReading),WhySheet:Cc(WhySheet)});function Fc(e){return{knows(t,i){let r=Object.prototype.hasOwnProperty.call(qn,t)?qn[t]:void 0;if(r===void 0||!r.platforms.includes(e))return false;if(i===void 0)return true;let n=r.settings.variant;return i===n?.default?true:r.variants.includes(i)?n?.platforms===void 0||n.platforms.includes(e):false}}}function _c(e){return{id:e.id,...e.repeat?{repeat:e.repeat}:{},...e.visibleIf?{visibleIf:e.visibleIf}:{}}}function Oc(e,t){if(t.knows(e.type,e.variant))return e;if(e.fallback==="hide")return null;let i=Lc(e,t);if(i!==null)return i;let r=Object.prototype.hasOwnProperty.call(qn,e.type)?qn[e.type]:void 0,n=r?.fallback??null;if(n===null||n==="hide"||!t.knows(n))return null;let l=qn[n];if(r?.fallbackProps!==void 0&&l!==void 0)return Pc(e,r,n,l);let o={};for(let[t,i]of Object.entries(e.bind))l?.props.includes(t)&&(o[t]=i);return{..._c(e),type:n,settings:{},bind:o,actions:{}}}function Ec(e,t){return e.type==="boolean"?typeof t=="boolean":e.type==="enum"?typeof t=="string"&&(e.values??[]).includes(t):e.type==="lines"?Array.isArray(t)&&new Set(t).size===t.length&&t.every(t=>typeof t=="string"&&(e.values??[]).includes(t)):false}function Pc(e,t,i,r){let n={},l={},o={},a;for(let[i,s]of Object.entries(t.fallbackProps??{})){if("from"in s){Object.prototype.hasOwnProperty.call(e.bind,s.from)&&(n[i]=e.bind[s.from]);continue}let t=s.const;if(i==="variant"){typeof t=="string"&&r.variants.includes(t)&&(a=t);continue}let c=Object.entries(r.settings).find(([e,t])=>e!=="variant"&&t.prop===i);c!==void 0&&Ec(c[1],t)?l[c[0]]=t:typeof t=="string"&&(o[i]=t)}let s=/* @__PURE__ */new Set([...Object.keys(n),...Object.keys(o),...Object.keys(l).map(e=>r.settings[e]?.prop)]);return a!==void 0&&s.add("variant"),r.required.some(e=>!s.has(e))?null:{..._c(e),type:i,...a!==void 0?{variant:a}:{},settings:l,bind:n,actions:{},...Object.keys(o).length>0?{fixed:o}:{}}}function Lc(e,t){let i=e.fallback;return i===void 0||i==="hide"||!t.knows(i.type,i.variant)?null:{..._c(e),type:i.type,...i.variant?{variant:i.variant}:{},settings:i.settings,bind:i.bind,actions:i.actions}}function Bc(e,t){let i=[];for(let r of e.parts){let e=Oc(r,t);e!==null&&i.push(e)}return i.length===0||i.length<e.minBlocks?null:i}var Ac=/* @__PURE__ */Object.freeze(["everfur.com","www.everfur.com","docs.everfur.com"]),Rc=/* @__PURE__ */Object.freeze(["chat","health_plan","plan.detail","records","shop","shop.cart","shop.orders","visit"]),jc=/* @__PURE__ */Object.freeze(["health_plan.checkout","health_plan.manage","health_plan.weight"]),$c=/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){0,4}$/,Wc=/^https:\/\/([A-Za-z0-9.-]+)(?:[/?#][^\s]*)?$/,Mc=512;function Nc(e){if(e.length>Mc)return false;let t=Wc.exec(e);return t!==null&&Ac.includes((t[1]??"").toLowerCase())}function Gc(e){if(typeof e!="string")return null;let t=e.indexOf(":");if(t<=0)return null;let i=e.slice(0,t),r=e.slice(t+1);switch(i){case"navigate":return Rc.includes(r)?{kind:i,route:r}:null;case"open_sheet":return jc.includes(r)?{kind:i,id:r}:null;case"track":return $c.test(r)?{kind:i,event:r}:null;case"external":return Nc(r)?{kind:i,url:r}:null;default:return null}}var qc=/* @__PURE__ */new Set(["action","actions","busy","disabled","error","fallback","footPress","link","loading","loadingLabel","metaLink","namePress","next","open","quantity","stepper","testID","visible"]),Uc=/* @__PURE__ */Object.freeze({CartBar:["actionLabel","actionAccessibilityLabel","actionHiddenWord","countLabel","sub","total"],CartLine:["name","imageAlt","meta","price","wasPrice","removeLabel","note"],CheckinSheet:["kicker","title","flowLabel","doneText","closeLabel"],OrderRow:["number","title","meta","total","accessibilityLabel"],PlanNeedCard:["kicker","source","title"],PriceSummary:["note"],ProductTile:["name","imageAlt","kicker","meta","price","wasPrice","per","badge"],ScoreLights:["heading","pill","since","vizLabel"],SummaryList:["note"],TipCard:["number","title","text","foot","accessibilityLabel"],WeatherAlert:["title","text","accessibilityLabel"],WeatherCard:["heading","temperature","condition","details","verdict","advice","label","note","tagsLabel"],WeatherDetails:["label"],WeatherForecast:["label"],WeatherHours:["label"],WeatherLevels:["label"],WeatherReading:["value","word"],WhySheet:["kind","title","sub","heading","closeLabel"]}),Vc=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function Yc(e){return e==null||e===""?false:!Array.isArray(e)||e.length>0}function Xc(e,t){return Vc(e,t)?e[t]:void 0}function Kc(e,t,i){let r=e.visibleIf;if(r===void 0)return true;let n=_(r.source);if(n===null)return false;if(n.kind==="item")return true;let l=n.kind==="data"?Yc(Xc(t,n.name)):Vc(i,n.name);return r.op==="present"?l:!l}function Qc(e,t){let i=_(e.visibleIf?.source);if(i?.kind!=="item")return true;let r=Yc(t[i.name]);return e.visibleIf?.op==="present"?r:!r}function Jc(e,t,i,r,n){let l=qn[e.type],o=l?.props??[],a=Uc[e.type]??[],s={};for(let e of o)Vc(t,e)&&!qc.has(e)&&t[e]!==void 0&&(s[e]=t[e]);for(let[n,l]of Object.entries(e.bind)){if(!o.includes(n)||qc.has(n))continue;let e=_(l);if(e===null)continue;let c,d=n;if(e.kind==="copy"){if(!a.includes(n))continue;c=Vc(r,e.name)?r[e.name]:void 0,d=""}else if(e.kind==="item")d=e.name,c=Vc(t,d)?t[d]:void 0;else{let t=Xc(i,e.name)?.[0];c=t!==void 0&&Vc(t,n)?t[n]:void 0}e.kind!=="copy"&&d!==n&&!(a.includes(n)&&typeof c=="string")||(c===void 0?delete s[n]:s[n]=c)}for(let[t,i]of Object.entries(e.fixed??{}))o.includes(t)&&!qc.has(t)&&(s[t]=i);e.variant!==void 0&&o.includes("variant")&&(s.variant=e.variant);for(let[t,i]of Object.entries(e.settings)){let e=l?.settings[t];if(!(e===void 0||e.platforms!==void 0&&!e.platforms.includes(n)))if(e.type==="lines"){if(!Array.isArray(i))continue;for(let t of e.values??[])i.includes(t)||delete s[t]}else e.prop!==void 0&&o.includes(e.prop)&&(e.type==="boolean"&&typeof i=="boolean"||e.type==="enum"&&typeof i=="string"&&(e.values??[]).includes(i))&&(s[e.prop]=i)}return s}function Zc(e,t){let i=e.key;return typeof i=="string"&&i!==""?`${i}#${t}`:String(t)}function ed(e,t){let i=qn[e];return i!==void 0&&i.required.every(e=>t[e]!==void 0&&t[e]!==null)}function td(e,t,i,r="native"){if(qn[e.type]===void 0||!Kc(e,t,i))return null;let n=_(e.repeat),l;if(e.repeat!==void 0){if(n?.kind!=="data")return null;l=Xc(t,n.name)??[]}else{let i=Object.values(e.bind).map(e=>_(e)).find(e=>e?.kind==="data");if(i){let e=Xc(t,i.name)?.[0];l=e===void 0?[]:[e]}else l=[{}]}let o=[],a=0;if(l.forEach((n,l)=>{if(!Qc(e,n))return;let s=Jc(e,n,t,i,r);ed(e.type,s)?o.push({key:Zc(n,l),props:/* @__PURE__ */Object.freeze(s)}):a+=1}),o.length===0&&a===0)return null;let s={};for(let[t,i]of Object.entries(e.actions)){let e=Gc(i);e!==null&&(s[t]=e)}return{part:e,blocks:o,incomplete:a,actions:s}}var id=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(e,t){let i=e.type,r=i.families[t];return t==="mono"||i.namedFaces[t]?{fontFamily:r}:{fontFamily:r,fontWeight:i.weight[id[t]]}}function headingFace(e,t="bold"){let{headingFamily:i,headingWeight:r}=e.type;if(i===null&&r===null)return face(e,t);if(i!==null)return{fontFamily:i,fontWeight:r??e.type.weight[id[t]]};let n=face(e,t);return n.fontWeight===void 0||r===null?n:{fontFamily:n.fontFamily,fontWeight:r}}function rd(e){return e<=450?"regular":e<=650?"medium":"bold"}var nd={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(e,t){let i=ld.get(e);i===void 0&&(i=/* @__PURE__ */new Map,ld.set(e,i));let r=i.get(t);if(r!==void 0)return r;let n=od(e,t);return i.set(t,n),n}var ld=/* @__PURE__ */new WeakMap;function od(e,t){let i=e.type.roles[t],r=i.weight==="400"&&i.face!=="mono"?e.type.weight.regular:i.weight,n=rd(Number(r)),l=i.face==="mono"?face(e,nd[n]):i.face==="heading"?headingFace(e,n):face(e,n),o=i.face==="heading"?e.type.headingWeight??r:r,a=l.fontWeight===void 0?l:{fontFamily:l.fontFamily,fontWeight:o},s=i.size,c={...a,fontSize:s,lineHeight:Math.round(s*i.lineHeight*100)/100};return i.letterSpacing!==0&&(c.letterSpacing=Math.round(s*i.letterSpacing*100)/100),i.uppercase&&(c.textTransform="uppercase"),/* @__PURE__ */Object.freeze(c)}var ad=/* @__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"}),sd=/* @__PURE__ */new WeakMap;function cd(e){let t=sd.get(e);if(t!==void 0)return t;let i=e.color,r=e.brightness==="dark",n=r?{dark:r,ink:i.text.primary,ink2:i.text.secondary,ink3:i.text.muted,paper:i.background,card:i.surface,line:i.borderRingCream,tile:i.surfaceSubtle,shadow:i.shadow,riskBg:i.badgeBgCritical,riskInk:i.danger,riskDot:i.danger,clearBg:i.badgeBgPositive,clearInk:i.success,clearDot:i.success,watchDot:i.warningStrong}:{dark:r,...ad},l=(e,t)=>mn(e,t,cn(t),dd),o=(e,t)=>contrastRatio(e,t)>=dd?e:sn(t,dd),a=[n.card,n.paper].map(e=>gn(i.brandSoft,e)??e),s={primary:i.primary,onPrimary:o(i.onPrimary,i.primary),accent:i.accent,onAccent:o(i.onAccent,i.accent),link:l(i.linkInk,[n.card,n.paper,n.tile]),badge:i.brandSoft,onBadge:l(i.brandInk,a)},c=/* @__PURE__ */Object.freeze({...n,...s});return sd.set(e,c),c}var dd=4.5;var ud=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),pd=globalThis,hd=pd[ud]??(pd[ud]=createContext(An));hd.displayName??="EverfurThemeContext";function useEverfurTheme(){return r(hd)}var gd=e=>{let t=e.type.namedFaces,i=t=>face(e,t).fontFamily;return{family:i("regular"),mono:i("mono"),faces:{regular:i("regular"),medium:i("medium"),bold:i("bold"),mono:i("mono"),monoBold:i("monoBold"),serif:headingFace(e,"bold").fontFamily},namedFaces:t.regular&&t.medium&&t.bold}},fd=/* @__PURE__ */new WeakMap;function md(e,t,i=uo){if(i!==uo)return bd(e,t,i);let r=fd.get(t);r===void 0&&fd.set(t,r=/* @__PURE__ */new WeakMap);let n=r.get(e);return n===void 0&&r.set(e,n=bd(e,t,i)),n}function bd(e,t,i){let r=e.color,n=An.color,l=e.brightness==="dark",o=l?jn:An,a=e=>r[e]!==n[e],s={};if(a("primary")?(Object.assign(s,{ink:r.primary,onInk:r.onPrimary,focus:r.primary}),a("accent")||Object.assign(s,{go:r.primary,onGo:r.onPrimary})):a("onPrimary")&&(s.onInk=r.onPrimary),a("accent")&&Object.assign(s,{go:r.accent,onGo:r.onAccent}),a("brandSoft")&&(s.tintSage=r.brandSoft),a("danger")&&Object.assign(s,{alert:r.danger,alertDeep:r.danger}),l)Object.assign(s,{bg:r.background,surface:r.surface,text:r.text.primary,muted:r.text.muted,line:r.borderRingCream});else{let e=o.color;r.background!==e.background&&(s.bg=r.background),r.surface!==e.surface&&(s.surface=r.surface),r.text.primary!==e.text.primary&&(s.text=r.text.primary),r.text.muted!==e.text.muted&&(s.muted=r.text.muted)}let c={};Object.keys(s).length>0&&(c.colors={...s});let d=e.radius,u=o.radius;if(d.xs!==u.xs||d.sm!==u.sm||d.lg!==u.lg||d.xl!==u.xl||d.pill!==u.pill){let e={};d.xs!==u.xs&&(e.sm=d.xs),d.sm!==u.sm&&(e.md=d.sm),d.lg!==u.lg&&(e.lg=d.lg),d.xl!==u.xl&&(e.xl=d.xl),d.pill!==u.pill&&(e.pill=d.pill),c.radius=e,(d.lg!==u.lg||d.xl!==u.xl)&&(c.metrics={...d.lg!==u.lg?{card:{radius:d.lg},summary:{radius:d.lg}}:{},...d.xl!==u.xl?{sheet:{radius:d.xl}}:{}})}if(e.space.xs!==o.space.xs){let t=e.space.xs/o.space.xs,r=i.space,n=e=>Math.round(e*t);c.space={1:n(r[1]),2:n(r[2]),3:n(r[3]),4:n(r[4]),5:n(r[5]),6:n(r[6]),7:n(r[7]),8:n(r[8]),9:n(r[9])}}let p=e.type.size,h=o.type.size,g=p.caption!==h.caption||p.bodyTight!==h.bodyTight||p.body!==h.body||p.subtitle!==h.subtitle||p.verdict!==h.verdict,f=e.type.lineHeight,m=o.type.lineHeight,b=f.relaxed!==m.relaxed||f.tight!==m.tight,y=e.type.scaleCaps,w=o.type.scaleCaps,v=y.content!==w.content||y.heading!==w.heading||y.control!==w.control||y.compact!==w.compact||y.badge!==w.badge,k=g||b||v;c.type={...g?{size:{xs:p.caption,sm:p.bodyTight,md:p.body,lg:p.subtitle,xl:p.verdict}}:{},...b?{lineHeight:{body:f.relaxed,display:f.tight}}:{},...v?{scaleCaps:{content:y.content,heading:y.heading,control:y.control,compact:y.compact,badge:y.badge}}:{},...t(e)},e.motion.reducedMotion&&!i.motion.reduced&&(c.motion={reduced:true});let x=k||Object.keys(s).length>0||Object.keys(c).some(e=>e!=="type"&&e!=="colors")||e.type.families.regular!==An.type.families.regular,T=vd(e,o,s.surface??i.colors.surface),I=Object.entries(T).filter(([e,t])=>t!==i.colors[e]);return I.length>0&&(c.colors={...s,...Object.fromEntries(I)}),x?{name:"partner",...c}:c}var yd={planAccent:uo.colors.planAccent,planLink:uo.colors.planLink},wd={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function vd(e,t,i){let r=cd(e),n=cd(t),l=e.color,o={};(l.primary!==t.color.primary||l.onPrimary!==t.color.onPrimary)&&Object.assign(o,{planInk:l.primary,planOnInk:r.onPrimary}),l.accent!==t.color.accent&&(o.planAccent=l.accent),r.link!==n.link&&(o.planLink=r.link);let a={accent:o.planAccent??yd.planAccent,link:o.planLink??yd.planLink},s={planLinkWash:r.dark?void 0:e.slots.planWash?.backgroundColor,planLinkChip:r.dark?void 0:e.slots.planChip?.backgroundColor},c=i.toLowerCase()!==r.card.toLowerCase();for(let[e,[t,i]]of Object.entries(wd)){let n=s[e];n!==void 0?o[e]=n:c&&(o[e]=Ho(a[t],i,r.card,r.card))}return o}function kd(e){let t=useEverfurTheme();return i(()=>md(t,e),[t,e])}function BlockScope({children:e}){let i=kd(gd);return t(ThemeProvider,{theme:i},e)}function xd(e){let t=Fc("native");return{knows:(i,r)=>Object.prototype.hasOwnProperty.call(e,i)&&t.knows(i,r)}}function Td(e,t,i){let r=xd(i);if(e!==null){let t=Bc(e,r);if(t!==null)return t}let n=Vr(t);return n===null?[]:Bc(n,r)??[]}var Id=new Set(Object.keys(uo.colors)),Sd=new Set(Object.keys(uo.radius)),zd=new Set(Object.keys(uo.space));function Dd(e){let t={},i={},r={};for(let[n,l]of Object.entries(e)){let[e,o,a]=n.split(".");o===void 0||a!==void 0||((e==="color"||e==="colors")&&typeof l=="string"&&Id.has(o)?t[o]=l:e==="radius"&&typeof l=="number"&&l>=0&&Sd.has(o)?i[o]=l:e==="space"&&typeof l=="number"&&l>=0&&zd.has(o)&&(r[o]=l))}let n={};return Object.keys(t).length>0&&(n.colors=t),Object.keys(i).length>0&&(n.radius=i),Object.keys(r).length>0&&(n.space=r),Object.keys(n).length===0?null:n}function Cd(e,t,i,r){switch(e.kind){case"navigate":Bt(i.onNavigate,e.route,t);return;case"open_sheet":Bt(i.onOpenSheet,e.id,t);return;case"track":r("slots.track",{slot:t.slot,part:t.part,event:e.event});return;case"external":i.onOpenUrl?Bt(i.onOpenUrl,e.url):m.openURL(e.url).catch(()=>{})}}function Hd(e,t){return e.kind==="navigate"?t.onNavigate!==void 0:e.kind==="open_sheet"?t.onOpenSheet!==void 0:true}function DrawnPart({blocks:e,resolved:i,slot:r,handlers:n,track:l}){let o=Object.prototype.hasOwnProperty.call(e,i.part.type)?e[i.part.type]:void 0;if(o===void 0)return null;let a=i.actions.onPress;/* @__PURE__ */
281
- return z(C,{children:i.blocks.map(e=>{let s=`everfur-slot-${i.part.id}`,c=t(o,{...e.props,testID:s});if(a===void 0||!Hd(a,n))/* @__PURE__ */return z(d,{children:c},e.key);let u={slot:r,part:i.part.id,key:e.key};/* @__PURE__ */
282
- return z(g,{accessibilityRole:a.kind==="external"?"link":"button",onPress:()=>Cd(a,u,n,l),testID:`${s}-press`,children:c},e.key)})})}var Fd=/* @__PURE__ */new WeakMap,_d=e=>Wn(JSON.stringify(e)),Od=class extends c{constructor(){super(...arguments);this.state={failed:false}}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(){try{this.props.onError()}catch{}}render(){return this.state.failed?null:this.props.children}};function SlotParts(e){let{slot:t,data:r,blocks:l,override:o}=e,s=e.handlers??Ed,{runtime:c}=A(),[,d]=n(0),u=i(()=>e.doc===null?null:_d(e.doc),[e.doc]),p=u!==null&&Fd.get(c)?.has(u)===true?null:e.doc,h=i(()=>Td(p,t,l),[p,t,l]),g=i(()=>xd(l),[l]),f=a({doc:p,parts:/* @__PURE__ */new Set});f.current.doc!==p&&(f.current={doc:p,parts:/* @__PURE__ */new Set});let m=p?.copy??Pd,b=i(()=>Dd(p?.tokens??Ld),[p]),y=(e,t)=>{try{c.registry.services.telemetry.track(e,t)}catch{}},w=e=>()=>{if(y("slots.part_failed",{slot:t,part:e.id,bundled:p===null}),p===null||u===null)return;let i=Fd.get(c);i===void 0&&Fd.set(c,i=/* @__PURE__ */new Set),i.add(u),d(e=>e+1)},v=p===null?"b":"d",k=h.map(e=>{let i=`${v}:${e.id}`,n=o?.(e)??null;if(n!==null)/* @__PURE__ */
283
- return z(Od,{onError:w(e),children:n},i);let a=td(e,r,m,"native");if(a!==null&&a.blocks.length===0){f.current.parts.has(e.id)||(f.current.parts.add(e.id),y("slots.part_incomplete",{slot:t,part:e.id,type:e.type}));let i=Lc(e,g),n=i===null?null:td(i,r,m,"native");a=n!==null&&n.blocks.length>0?n:null}if(a===null)return null;let c=/* @__PURE__ */z(DrawnPart,{blocks:l,resolved:a,slot:t,handlers:s,track:y});/* @__PURE__ */
284
- return z(Od,{onError:w(e),children:/* @__PURE__ */z(BlockScope,{children:b===null?c:/* @__PURE__ */z(ThemeProvider,{theme:b,children:c})})},i)});/* @__PURE__ */
285
- return z(C,{children:k})}var Ed=/* @__PURE__ */Object.freeze({}),Pd=/* @__PURE__ */Object.freeze({}),Ld=/* @__PURE__ */Object.freeze({});function Slot(e){let{name:t,petRef:petRef,locale:r,serverSlots:n,...l}=e,o=ie(n),{doc:a,source:s}=pl(t,o),c=i(()=>Td(a,t,Hc),[a,t]),d=i(()=>O(c),[c]),u=mr({...petRef===void 0?{}:{petRef:petRef},sources:d,locale:r});return s==="pending"?null:/* @__PURE__ */z(SlotParts,{slot:t,doc:a,data:u,blocks:Hc,handlers:l})}var Bd=/* @__PURE__ */Object.freeze({imageVariant:"wide",reasonVariant:"pills",cartBarVisibility:"whenItems",cartBarPlacement:"sticky",addButtonSize:"full",addedVariant:"link",categoryVariant:"text",showCategory:false,cardShadow:false,cardBorder:true});function showHealthPlanCartBar(e,t){return(e??Bd.cartBarVisibility)==="always"||t>0}function Ad(e,t){if(e===void 0)return{};let i={};return e.backgroundColor!==void 0&&(i.backgroundColor=e.backgroundColor),e.borderColor!==void 0&&(i.borderColor=e.borderColor,i.borderWidth=1),e.borderRadius!==void 0&&(i.borderRadius=e.borderRadius),i}var Rd={ink:"#10462E",go:"#07C168",alert:"#C03410",tintSage:"#E6ECE8"},jd=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1");function $d(){let e=globalThis,t=e[jd];return t===void 0&&(t=createContext(null),t.displayName="EverfurThemeContext",e[jd]=t),t}var Wd=(e,t)=>e.toUpperCase()===t.toUpperCase();function Md(e){let t=Xr(e);return t!==null&&dn(t)<.18}var Nd=/* @__PURE__ */new WeakMap;function Gd(e,t){if(t===null)return e;let i=Nd.get(e);i===void 0&&(i=/* @__PURE__ */new WeakMap,Nd.set(e,i));let r=i.get(t);return r===void 0&&(r=qd(e,t),i.set(t,r)),r}function qd(e,t){let i=t.colors,r=!Wd(i.ink,Rd.ink),n=!Wd(i.go,Rd.go),l=e===An&&Md(i.bg),o=l?jn:e,a=o.color,s=e=>l||a[e]===An.color[e],c={};r&&s("primary")&&(Object.assign(c,{primary:i.ink,onPrimary:i.onInk,brand:i.ink,brandInk:i.ink}),s("linkInk")&&(c.linkInk=i.ink),!n&&s("accent")&&Object.assign(c,{accent:i.ink,onAccent:i.onInk})),n&&s("accent")&&Object.assign(c,{accent:i.go,onAccent:i.onGo}),!Wd(i.alert,Rd.alert)&&s("danger")&&(c.danger=i.alert),!Wd(i.tintSage,Rd.tintSage)&&s("brandSoft")&&(c.brandSoft=i.tintSage,s("brandSofter")&&(c.brandSofter=i.tintSage)),l&&Object.assign(c,{background:i.bg,surface:i.surface,text:{...a.text,primary:i.text,muted:i.muted},borderRingCream:i.line});let d=t.motion?.reduced===true&&!o.motion.reducedMotion;return!l&&!d&&Object.keys(c).length===0?e:{...o,color:{...a,...c},...d?{motion:{...o.motion,reducedMotion:true}}:{}}}function Ud(){let e=useEverfurTheme(),t=r($d());return i(()=>Gd(e,t),[e,t])}var Vd=/* @__PURE__ */Symbol.for("@everfur/sdk#HealthPlanCartDock@v1"),Yd=globalThis,Xd=Yd[Vd]??(Yd[Vd]=createContext(null));function useHealthPlanCartDock(){return r(Xd)?.dock??null}var Kd=/* @__PURE__ */Object.freeze({track(){},trackExpectedFailure(){}});var Qd=/* @__PURE__ */Object.freeze({opened:"health_plan.opened",productClicked:"health_plan.product_clicked",checkoutStarted:"health_plan.checkout_started"});function Jd(){return r(B)?.runtime.registry.services.telemetry??Kd}var Zd=createContext(null);function eu(e){let t=r(Zd),i=r(B);return t??e??i?.activePet??null}function tu(e,petRef,t){e.track(Qd.checkoutStarted,{petRef:petRef,itemsCount:t.count,subtotal:t.subtotal,currency:t.currency})}function iu(e,t){let i=e.scaleCaps[t];return i>0?i:void 0}function Text2({tier:e,variant:i,...r}){let n=useEverfurTheme(),l=i===void 0?void 0:n.type.roles[i],o=iu(n.type,e??l?.tier??"content"),a=i===void 0?r:{...r,style:[{...textRole(n,i),color:n.color.text.primary,flexShrink:1},r.style]};return t(f,o===void 0?a:{maxFontSizeMultiplier:o,...a})}e(function(e,i){return t(p,{...e,...i===null?{}:{ref:i}})});function HealthPlanCartBar(e){let{cart:t,onCheckout:r,busy:n=false,priceFormat:l,style:o}=jt(e,["onCheckout"]),a=Ud(),s=i(()=>ru(a),[a]),c=formatHealthPlanPriceWith(t.subtotal,t.currency,l),d=t.count===0||n,u=Jd(),petRef=eu(useHealthPlanCartDock()?.petRef);/* @__PURE__ */
286
- return D(h,{style:[s.bar,o],accessibilityLabel:tr.cartLabel(a.meta.displayName),children:[
281
+ /* @__PURE__ */z(Text,{style:[m(p.value),{fontSize:v,lineHeight:p.value.lineHeight*k,letterSpacing:p.value.tracking*k}],children:i}),r?/* @__PURE__ */z(Text,{style:[m(p.word),{color:Oo(d,u.tones[n])}],children:r}):null]})]})}var Cc=false;function Hc(){Cc||(Cc=true,qa(Us))}Hc();var Fc=e=>e,_c=/* @__PURE__ */Object.freeze({CartBar:Fc(CartBar),CartLine:Fc(CartLine),CheckinSheet:Fc(CheckinSheet),OrderRow:Fc(OrderRow),PlanNeedCard:Fc(PlanNeedCard),PriceSummary:Fc(PriceSummary),ProductTile:Fc(ProductTile),ScoreLights:Fc(ScoreLights),SummaryList:Fc(SummaryList),TipCard:Fc(TipCard),WeatherAlert:Fc(WeatherAlert),WeatherCard:Fc(WeatherCard),WeatherDetails:Fc(WeatherDetails),WeatherForecast:Fc(WeatherForecast),WeatherHours:Fc(WeatherHours),WeatherLevels:Fc(WeatherLevels),WeatherReading:Fc(WeatherReading),WhySheet:Fc(WhySheet)});function Oc(e){return{knows(t,i){let r=Object.prototype.hasOwnProperty.call(Vn,t)?Vn[t]:void 0;if(r===void 0||!r.platforms.includes(e))return false;if(i===void 0)return true;let n=r.settings.variant;return i===n?.default?true:r.variants.includes(i)?n?.platforms===void 0||n.platforms.includes(e):false}}}function Ec(e){return{id:e.id,...e.repeat?{repeat:e.repeat}:{},...e.visibleIf?{visibleIf:e.visibleIf}:{}}}function Pc(e,t){if(t.knows(e.type,e.variant))return e;if(e.fallback==="hide")return null;let i=Ac(e,t);if(i!==null)return i;let r=Object.prototype.hasOwnProperty.call(Vn,e.type)?Vn[e.type]:void 0,n=r?.fallback??null;if(n===null||n==="hide"||!t.knows(n))return null;let l=Vn[n];if(r?.fallbackProps!==void 0&&l!==void 0)return Bc(e,r,n,l);let o={};for(let[t,i]of Object.entries(e.bind))l?.props.includes(t)&&(o[t]=i);return{...Ec(e),type:n,settings:{},bind:o,actions:{}}}function Lc(e,t){return e.type==="boolean"?typeof t=="boolean":e.type==="enum"?typeof t=="string"&&(e.values??[]).includes(t):e.type==="lines"?Array.isArray(t)&&new Set(t).size===t.length&&t.every(t=>typeof t=="string"&&(e.values??[]).includes(t)):false}function Bc(e,t,i,r){let n={},l={},o={},a;for(let[i,s]of Object.entries(t.fallbackProps??{})){if("from"in s){Object.prototype.hasOwnProperty.call(e.bind,s.from)&&(n[i]=e.bind[s.from]);continue}let t=s.const;if(i==="variant"){typeof t=="string"&&r.variants.includes(t)&&(a=t);continue}let c=Object.entries(r.settings).find(([e,t])=>e!=="variant"&&t.prop===i);c!==void 0&&Lc(c[1],t)?l[c[0]]=t:typeof t=="string"&&(o[i]=t)}let s=/* @__PURE__ */new Set([...Object.keys(n),...Object.keys(o),...Object.keys(l).map(e=>r.settings[e]?.prop)]);return a!==void 0&&s.add("variant"),r.required.some(e=>!s.has(e))?null:{...Ec(e),type:i,...a!==void 0?{variant:a}:{},settings:l,bind:n,actions:{},...Object.keys(o).length>0?{fixed:o}:{}}}function Ac(e,t){let i=e.fallback;return i===void 0||i==="hide"||!t.knows(i.type,i.variant)?null:{...Ec(e),type:i.type,...i.variant?{variant:i.variant}:{},settings:i.settings,bind:i.bind,actions:i.actions}}function Rc(e,t){let i=[];for(let r of e.parts){let e=Pc(r,t);e!==null&&i.push(e)}return i.length===0||i.length<e.minBlocks?null:i}var jc=/* @__PURE__ */Object.freeze(["everfur.com","www.everfur.com","docs.everfur.com"]),$c=/* @__PURE__ */Object.freeze(["chat","health_plan","plan.detail","records","shop","shop.cart","shop.orders","visit"]),Wc=/* @__PURE__ */Object.freeze(["health_plan.checkout","health_plan.manage","health_plan.weight"]),Mc=/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){0,4}$/,Nc=/^https:\/\/([A-Za-z0-9.-]+)(?:[/?#][^\s]*)?$/,Gc=512;function qc(e){if(e.length>Gc)return false;let t=Nc.exec(e);return t!==null&&jc.includes((t[1]??"").toLowerCase())}function Uc(e){if(typeof e!="string")return null;let t=e.indexOf(":");if(t<=0)return null;let i=e.slice(0,t),r=e.slice(t+1);switch(i){case"navigate":return $c.includes(r)?{kind:i,route:r}:null;case"open_sheet":return Wc.includes(r)?{kind:i,id:r}:null;case"track":return Mc.test(r)?{kind:i,event:r}:null;case"external":return qc(r)?{kind:i,url:r}:null;default:return null}}var Vc=/* @__PURE__ */new Set(["action","actions","busy","disabled","error","fallback","footPress","link","loading","loadingLabel","metaLink","namePress","next","open","quantity","stepper","testID","visible"]),Yc=/* @__PURE__ */Object.freeze({CartBar:["actionLabel","actionAccessibilityLabel","actionHiddenWord","countLabel","sub","total"],CartLine:["name","imageAlt","meta","price","wasPrice","removeLabel","note"],CheckinSheet:["kicker","title","flowLabel","doneText","closeLabel"],OrderRow:["number","title","meta","total","accessibilityLabel"],PlanNeedCard:["kicker","source","title"],PriceSummary:["note"],ProductTile:["name","imageAlt","kicker","meta","price","wasPrice","per","badge"],ScoreLights:["heading","pill","since","vizLabel"],SummaryList:["note"],TipCard:["number","title","text","foot","accessibilityLabel"],WeatherAlert:["title","text","accessibilityLabel"],WeatherCard:["heading","temperature","condition","details","verdict","advice","label","note","tagsLabel"],WeatherDetails:["label"],WeatherForecast:["label"],WeatherHours:["label"],WeatherLevels:["label"],WeatherReading:["value","word"],WhySheet:["kind","title","sub","heading","closeLabel"]}),Xc=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function Kc(e){return e==null||e===""?false:!Array.isArray(e)||e.length>0}function Qc(e,t){return Xc(e,t)?e[t]:void 0}function Jc(e,t,i){let r=e.visibleIf;if(r===void 0)return true;let n=_(r.source);if(n===null)return false;if(n.kind==="item")return true;let l=n.kind==="data"?Kc(Qc(t,n.name)):Xc(i,n.name);return r.op==="present"?l:!l}function Zc(e,t){let i=_(e.visibleIf?.source);if(i?.kind!=="item")return true;let r=Kc(t[i.name]);return e.visibleIf?.op==="present"?r:!r}function ed(e,t,i,r,n){let l=Vn[e.type],o=l?.props??[],a=Yc[e.type]??[],s={};for(let e of o)Xc(t,e)&&!Vc.has(e)&&t[e]!==void 0&&(s[e]=t[e]);for(let[n,l]of Object.entries(e.bind)){if(!o.includes(n)||Vc.has(n))continue;let e=_(l);if(e===null)continue;let c,d=n;if(e.kind==="copy"){if(!a.includes(n))continue;c=Xc(r,e.name)?r[e.name]:void 0,d=""}else if(e.kind==="item")d=e.name,c=Xc(t,d)?t[d]:void 0;else{let t=Qc(i,e.name)?.[0];c=t!==void 0&&Xc(t,n)?t[n]:void 0}e.kind!=="copy"&&d!==n&&!(a.includes(n)&&typeof c=="string")||(c===void 0?delete s[n]:s[n]=c)}for(let[t,i]of Object.entries(e.fixed??{}))o.includes(t)&&!Vc.has(t)&&(s[t]=i);e.variant!==void 0&&o.includes("variant")&&(s.variant=e.variant);for(let[t,i]of Object.entries(e.settings)){let e=l?.settings[t];if(!(e===void 0||e.platforms!==void 0&&!e.platforms.includes(n)))if(e.type==="lines"){if(!Array.isArray(i))continue;for(let t of e.values??[])i.includes(t)||delete s[t]}else e.prop!==void 0&&o.includes(e.prop)&&(e.type==="boolean"&&typeof i=="boolean"||e.type==="enum"&&typeof i=="string"&&(e.values??[]).includes(i))&&(s[e.prop]=i)}return s}function td(e,t){let i=e.key;return typeof i=="string"&&i!==""?`${i}#${t}`:String(t)}function id(e,t){let i=Vn[e];return i!==void 0&&i.required.every(e=>t[e]!==void 0&&t[e]!==null)}function rd(e,t,i,r="native"){if(Vn[e.type]===void 0||!Jc(e,t,i))return null;let n=_(e.repeat),l;if(e.repeat!==void 0){if(n?.kind!=="data")return null;l=Qc(t,n.name)??[]}else{let i=Object.values(e.bind).map(e=>_(e)).find(e=>e?.kind==="data");if(i){let e=Qc(t,i.name)?.[0];l=e===void 0?[]:[e]}else l=[{}]}let o=[],a=0;if(l.forEach((n,l)=>{if(!Zc(e,n))return;let s=ed(e,n,t,i,r);id(e.type,s)?o.push({key:td(n,l),props:/* @__PURE__ */Object.freeze(s)}):a+=1}),o.length===0&&a===0)return null;let s={};for(let[t,i]of Object.entries(e.actions)){let e=Uc(i);e!==null&&(s[t]=e)}return{part:e,blocks:o,incomplete:a,actions:s}}var nd=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(e,t){let i=e.type,r=i.families[t];return t==="mono"||i.namedFaces[t]?{fontFamily:r}:{fontFamily:r,fontWeight:i.weight[nd[t]]}}function headingFace(e,t="bold"){let{headingFamily:i,headingWeight:r}=e.type;if(i===null&&r===null)return face(e,t);if(i!==null)return{fontFamily:i,fontWeight:r??e.type.weight[nd[t]]};let n=face(e,t);return n.fontWeight===void 0||r===null?n:{fontFamily:n.fontFamily,fontWeight:r}}function ld(e){return e<=450?"regular":e<=650?"medium":"bold"}var od={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(e,t){let i=ad.get(e);i===void 0&&(i=/* @__PURE__ */new Map,ad.set(e,i));let r=i.get(t);if(r!==void 0)return r;let n=sd(e,t);return i.set(t,n),n}var ad=/* @__PURE__ */new WeakMap;function sd(e,t){let i=e.type.roles[t],r=i.weight==="400"&&i.face!=="mono"?e.type.weight.regular:i.weight,n=ld(Number(r)),l=i.face==="mono"?face(e,od[n]):i.face==="heading"?headingFace(e,n):face(e,n),o=i.face==="heading"?e.type.headingWeight??r:r,a=l.fontWeight===void 0?l:{fontFamily:l.fontFamily,fontWeight:o},s=i.size,c={...a,fontSize:s,lineHeight:Math.round(s*i.lineHeight*100)/100};return i.letterSpacing!==0&&(c.letterSpacing=Math.round(s*i.letterSpacing*100)/100),i.uppercase&&(c.textTransform="uppercase"),/* @__PURE__ */Object.freeze(c)}var cd=/* @__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"}),dd=/* @__PURE__ */new WeakMap;function ud(e){let t=dd.get(e);if(t!==void 0)return t;let i=e.color,r=e.brightness==="dark",n=r?{dark:r,ink:i.text.primary,ink2:i.text.secondary,ink3:i.text.muted,paper:i.background,card:i.surface,line:i.borderRingCream,tile:i.surfaceSubtle,shadow:i.shadow,riskBg:i.badgeBgCritical,riskInk:i.danger,riskDot:i.danger,clearBg:i.badgeBgPositive,clearInk:i.success,clearDot:i.success,watchDot:i.warningStrong}:{dark:r,...cd},l=(e,t)=>yn(e,t,un(t),pd),o=(e,t)=>contrastRatio(e,t)>=pd?e:dn(t,pd),a=[n.card,n.paper].map(e=>mn(i.brandSoft,e)??e),s={primary:i.primary,onPrimary:o(i.onPrimary,i.primary),accent:i.accent,onAccent:o(i.onAccent,i.accent),link:l(i.linkInk,[n.card,n.paper,n.tile]),badge:i.brandSoft,onBadge:l(i.brandInk,a)},c=/* @__PURE__ */Object.freeze({...n,...s});return dd.set(e,c),c}var pd=4.5;var hd=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),gd=globalThis,fd=gd[hd]??(gd[hd]=createContext(jn));fd.displayName??="EverfurThemeContext";function useEverfurTheme(){return r(fd)}var md=e=>{let t=e.type.namedFaces,i=t=>face(e,t).fontFamily;return{family:i("regular"),mono:i("mono"),faces:{regular:i("regular"),medium:i("medium"),bold:i("bold"),mono:i("mono"),monoBold:i("monoBold"),serif:headingFace(e,"bold").fontFamily},namedFaces:t.regular&&t.medium&&t.bold}},bd=/* @__PURE__ */new WeakMap;function yd(e,t,i=ho){if(i!==ho)return wd(e,t,i);let r=bd.get(t);r===void 0&&bd.set(t,r=/* @__PURE__ */new WeakMap);let n=r.get(e);return n===void 0&&r.set(e,n=wd(e,t,i)),n}function wd(e,t,i){let r=e.color,n=jn.color,l=e.brightness==="dark",o=l?Wn:jn,a=e=>r[e]!==n[e],s={};if(a("primary")?(Object.assign(s,{ink:r.primary,onInk:r.onPrimary,focus:r.primary}),a("accent")||Object.assign(s,{go:r.primary,onGo:r.onPrimary})):a("onPrimary")&&(s.onInk=r.onPrimary),a("accent")&&Object.assign(s,{go:r.accent,onGo:r.onAccent}),a("brandSoft")&&(s.tintSage=r.brandSoft),a("danger")&&Object.assign(s,{alert:r.danger,alertDeep:r.danger}),l)Object.assign(s,{bg:r.background,surface:r.surface,text:r.text.primary,muted:r.text.muted,line:r.borderRingCream});else{let e=o.color;r.background!==e.background&&(s.bg=r.background),r.surface!==e.surface&&(s.surface=r.surface),r.text.primary!==e.text.primary&&(s.text=r.text.primary),r.text.muted!==e.text.muted&&(s.muted=r.text.muted)}let c={};Object.keys(s).length>0&&(c.colors={...s});let d=e.radius,u=o.radius;if(d.xs!==u.xs||d.sm!==u.sm||d.lg!==u.lg||d.xl!==u.xl||d.pill!==u.pill){let e={};d.xs!==u.xs&&(e.sm=d.xs),d.sm!==u.sm&&(e.md=d.sm),d.lg!==u.lg&&(e.lg=d.lg),d.xl!==u.xl&&(e.xl=d.xl),d.pill!==u.pill&&(e.pill=d.pill),c.radius=e,(d.lg!==u.lg||d.xl!==u.xl)&&(c.metrics={...d.lg!==u.lg?{card:{radius:d.lg},summary:{radius:d.lg}}:{},...d.xl!==u.xl?{sheet:{radius:d.xl}}:{}})}if(e.space.xs!==o.space.xs){let t=e.space.xs/o.space.xs,r=i.space,n=e=>Math.round(e*t);c.space={1:n(r[1]),2:n(r[2]),3:n(r[3]),4:n(r[4]),5:n(r[5]),6:n(r[6]),7:n(r[7]),8:n(r[8]),9:n(r[9])}}let p=e.type.size,h=o.type.size,g=p.caption!==h.caption||p.bodyTight!==h.bodyTight||p.body!==h.body||p.subtitle!==h.subtitle||p.verdict!==h.verdict,f=e.type.lineHeight,m=o.type.lineHeight,b=f.relaxed!==m.relaxed||f.tight!==m.tight,y=e.type.scaleCaps,w=o.type.scaleCaps,v=y.content!==w.content||y.heading!==w.heading||y.control!==w.control||y.compact!==w.compact||y.badge!==w.badge,k=g||b||v;c.type={...g?{size:{xs:p.caption,sm:p.bodyTight,md:p.body,lg:p.subtitle,xl:p.verdict}}:{},...b?{lineHeight:{body:f.relaxed,display:f.tight}}:{},...v?{scaleCaps:{content:y.content,heading:y.heading,control:y.control,compact:y.compact,badge:y.badge}}:{},...t(e)},e.motion.reducedMotion&&!i.motion.reduced&&(c.motion={reduced:true});let x=k||Object.keys(s).length>0||Object.keys(c).some(e=>e!=="type"&&e!=="colors")||e.type.families.regular!==jn.type.families.regular,T=xd(e,o,s.surface??i.colors.surface),I=Object.entries(T).filter(([e,t])=>t!==i.colors[e]);return I.length>0&&(c.colors={...s,...Object.fromEntries(I)}),x?{name:"partner",...c}:c}var vd={planAccent:ho.colors.planAccent,planLink:ho.colors.planLink},kd={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function xd(e,t,i){let r=ud(e),n=ud(t),l=e.color,o={};(l.primary!==t.color.primary||l.onPrimary!==t.color.onPrimary)&&Object.assign(o,{planInk:l.primary,planOnInk:r.onPrimary}),l.accent!==t.color.accent&&(o.planAccent=l.accent),r.link!==n.link&&(o.planLink=r.link);let a={accent:o.planAccent??vd.planAccent,link:o.planLink??vd.planLink},s={planLinkWash:r.dark?void 0:e.slots.planWash?.backgroundColor,planLinkChip:r.dark?void 0:e.slots.planChip?.backgroundColor},c=i.toLowerCase()!==r.card.toLowerCase();for(let[e,[t,i]]of Object.entries(kd)){let n=s[e];n!==void 0?o[e]=n:c&&(o[e]=_o(a[t],i,r.card,r.card))}return o}function Td(e){let t=useEverfurTheme();return i(()=>yd(t,e),[t,e])}function BlockScope({children:e}){let i=Td(md);return t(ThemeProvider,{theme:i},e)}function Id(e){let t=Oc("native");return{knows:(i,r)=>Object.prototype.hasOwnProperty.call(e,i)&&t.knows(i,r)}}function Sd(e,t,i){let r=Id(i);if(e!==null){let t=Rc(e,r);if(t!==null)return t}let n=Xr(t);return n===null?[]:Rc(n,r)??[]}var zd=new Set(Object.keys(ho.colors)),Dd=new Set(Object.keys(ho.radius)),Cd=new Set(Object.keys(ho.space));function Hd(e){let t={},i={},r={};for(let[n,l]of Object.entries(e)){let[e,o,a]=n.split(".");o===void 0||a!==void 0||((e==="color"||e==="colors")&&typeof l=="string"&&zd.has(o)?t[o]=l:e==="radius"&&typeof l=="number"&&l>=0&&Dd.has(o)?i[o]=l:e==="space"&&typeof l=="number"&&l>=0&&Cd.has(o)&&(r[o]=l))}let n={};return Object.keys(t).length>0&&(n.colors=t),Object.keys(i).length>0&&(n.radius=i),Object.keys(r).length>0&&(n.space=r),Object.keys(n).length===0?null:n}function Fd(e,t,i,r){switch(e.kind){case"navigate":Rt(i.onNavigate,e.route,t);return;case"open_sheet":Rt(i.onOpenSheet,e.id,t);return;case"track":r("slots.track",{slot:t.slot,part:t.part,event:e.event});return;case"external":i.onOpenUrl?Rt(i.onOpenUrl,e.url):m.openURL(e.url).catch(()=>{})}}function _d(e,t){return e.kind==="navigate"?t.onNavigate!==void 0:e.kind==="open_sheet"?t.onOpenSheet!==void 0:true}function DrawnPart({blocks:e,resolved:i,slot:r,handlers:n,track:l}){let o=Object.prototype.hasOwnProperty.call(e,i.part.type)?e[i.part.type]:void 0;if(o===void 0)return null;let a=i.actions.onPress;/* @__PURE__ */
282
+ return z(C,{children:i.blocks.map(e=>{let s=`everfur-slot-${i.part.id}`,c=t(o,{...e.props,testID:s});if(a===void 0||!_d(a,n))/* @__PURE__ */return z(d,{children:c},e.key);let u={slot:r,part:i.part.id,key:e.key};/* @__PURE__ */
283
+ return z(g,{accessibilityRole:a.kind==="external"?"link":"button",onPress:()=>Fd(a,u,n,l),testID:`${s}-press`,children:c},e.key)})})}var Od=/* @__PURE__ */new WeakMap,Ed=e=>Nn(JSON.stringify(e)),Pd=class extends c{constructor(){super(...arguments);this.state={failed:false}}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(){try{this.props.onError()}catch{}}render(){return this.state.failed?null:this.props.children}};function SlotParts(e){let{slot:t,data:r,blocks:l,override:o}=e,s=e.handlers??Ld,{runtime:c}=A(),[,d]=n(0),u=i(()=>e.doc===null?null:Ed(e.doc),[e.doc]),p=u!==null&&Od.get(c)?.has(u)===true?null:e.doc,h=i(()=>Sd(p,t,l),[p,t,l]),g=i(()=>Id(l),[l]),f=a({doc:p,parts:/* @__PURE__ */new Set});f.current.doc!==p&&(f.current={doc:p,parts:/* @__PURE__ */new Set});let m=p?.copy??Bd,b=i(()=>Hd(p?.tokens??Ad),[p]),y=(e,t)=>{try{c.registry.services.telemetry.track(e,t)}catch{}},w=e=>()=>{if(y("slots.part_failed",{slot:t,part:e.id,bundled:p===null}),p===null||u===null)return;let i=Od.get(c);i===void 0&&Od.set(c,i=/* @__PURE__ */new Set),i.add(u),d(e=>e+1)},v=p===null?"b":"d",k=h.map(e=>{let i=`${v}:${e.id}`,n=o?.(e)??null;if(n!==null)/* @__PURE__ */
284
+ return z(Pd,{onError:w(e),children:n},i);let a=rd(e,r,m,"native");if(a!==null&&a.blocks.length===0){f.current.parts.has(e.id)||(f.current.parts.add(e.id),y("slots.part_incomplete",{slot:t,part:e.id,type:e.type}));let i=Ac(e,g),n=i===null?null:rd(i,r,m,"native");a=n!==null&&n.blocks.length>0?n:null}if(a===null)return null;let c=/* @__PURE__ */z(DrawnPart,{blocks:l,resolved:a,slot:t,handlers:s,track:y});/* @__PURE__ */
285
+ return z(Pd,{onError:w(e),children:/* @__PURE__ */z(BlockScope,{children:b===null?c:/* @__PURE__ */z(ThemeProvider,{theme:b,children:c})})},i)});/* @__PURE__ */
286
+ return z(C,{children:k})}var Ld=/* @__PURE__ */Object.freeze({}),Bd=/* @__PURE__ */Object.freeze({}),Ad=/* @__PURE__ */Object.freeze({});function Slot(e){let{name:t,petRef:petRef,locale:r,serverSlots:n,...l}=e,o=ne(n),{doc:a,source:s}=gl(t,o),c=i(()=>Sd(a,t,_c),[a,t]),d=i(()=>O(c),[c]),u=yr({...petRef===void 0?{}:{petRef:petRef},sources:d,locale:r});return s==="pending"?null:/* @__PURE__ */z(SlotParts,{slot:t,doc:a,data:u,blocks:_c,handlers:l})}var Rd=/* @__PURE__ */Object.freeze({imageVariant:"wide",reasonVariant:"pills",cartBarVisibility:"whenItems",cartBarPlacement:"sticky",addButtonSize:"full",addedVariant:"link",categoryVariant:"text",showCategory:false,cardShadow:false,cardBorder:true});function showHealthPlanCartBar(e,t){return(e??Rd.cartBarVisibility)==="always"||t>0}function jd(e,t){if(e===void 0)return{};let i={};return e.backgroundColor!==void 0&&(i.backgroundColor=e.backgroundColor),e.borderColor!==void 0&&(i.borderColor=e.borderColor,i.borderWidth=1),e.borderRadius!==void 0&&(i.borderRadius=e.borderRadius),i}var $d={ink:"#10462E",go:"#07C168",alert:"#C03410",tintSage:"#E6ECE8"},Wd=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1");function Md(){let e=globalThis,t=e[Wd];return t===void 0&&(t=createContext(null),t.displayName="EverfurThemeContext",e[Wd]=t),t}var Nd=(e,t)=>e.toUpperCase()===t.toUpperCase();function Gd(e){let t=Qr(e);return t!==null&&pn(t)<.18}var qd=/* @__PURE__ */new WeakMap;function Ud(e,t){if(t===null)return e;let i=qd.get(e);i===void 0&&(i=/* @__PURE__ */new WeakMap,qd.set(e,i));let r=i.get(t);return r===void 0&&(r=Vd(e,t),i.set(t,r)),r}function Vd(e,t){let i=t.colors,r=!Nd(i.ink,$d.ink),n=!Nd(i.go,$d.go),l=e===jn&&Gd(i.bg),o=l?Wn:e,a=o.color,s=e=>l||a[e]===jn.color[e],c={};r&&s("primary")&&(Object.assign(c,{primary:i.ink,onPrimary:i.onInk,brand:i.ink,brandInk:i.ink}),s("linkInk")&&(c.linkInk=i.ink),!n&&s("accent")&&Object.assign(c,{accent:i.ink,onAccent:i.onInk})),n&&s("accent")&&Object.assign(c,{accent:i.go,onAccent:i.onGo}),!Nd(i.alert,$d.alert)&&s("danger")&&(c.danger=i.alert),!Nd(i.tintSage,$d.tintSage)&&s("brandSoft")&&(c.brandSoft=i.tintSage,s("brandSofter")&&(c.brandSofter=i.tintSage)),l&&Object.assign(c,{background:i.bg,surface:i.surface,text:{...a.text,primary:i.text,muted:i.muted},borderRingCream:i.line});let d=t.motion?.reduced===true&&!o.motion.reducedMotion;return!l&&!d&&Object.keys(c).length===0?e:{...o,color:{...a,...c},...d?{motion:{...o.motion,reducedMotion:true}}:{}}}function Yd(){let e=useEverfurTheme(),t=r(Md());return i(()=>Ud(e,t),[e,t])}var Xd=/* @__PURE__ */Symbol.for("@everfur/sdk#HealthPlanCartDock@v1"),Kd=globalThis,Qd=Kd[Xd]??(Kd[Xd]=createContext(null));function useHealthPlanCartDock(){return r(Qd)?.dock??null}var Jd=/* @__PURE__ */Object.freeze({track(){},trackExpectedFailure(){}});var Zd=/* @__PURE__ */Object.freeze({opened:"health_plan.opened",productClicked:"health_plan.product_clicked",checkoutStarted:"health_plan.checkout_started"});function eu(){return r(B)?.runtime.registry.services.telemetry??Jd}var tu=createContext(null);function iu(e){let t=r(tu),i=r(B);return t??e??i?.activePet??null}function ru(e,petRef,t){e.track(Zd.checkoutStarted,{petRef:petRef,itemsCount:t.count,subtotal:t.subtotal,currency:t.currency})}function nu(e,t){let i=e.scaleCaps[t];return i>0?i:void 0}function Text2({tier:e,variant:i,...r}){let n=useEverfurTheme(),l=i===void 0?void 0:n.type.roles[i],o=nu(n.type,e??l?.tier??"content"),a=i===void 0?r:{...r,style:[{...textRole(n,i),color:n.color.text.primary,flexShrink:1},r.style]};return t(f,o===void 0?a:{maxFontSizeMultiplier:o,...a})}e(function(e,i){return t(p,{...e,...i===null?{}:{ref:i}})});function HealthPlanCartBar(e){let{cart:t,onCheckout:r,busy:n=false,priceFormat:l,style:o}=Wt(e,["onCheckout"]),a=Yd(),s=i(()=>lu(a),[a]),c=formatHealthPlanPriceWith(t.subtotal,t.currency,l),d=t.count===0||n,u=eu(),petRef=iu(useHealthPlanCartDock()?.petRef);/* @__PURE__ */
287
+ return D(h,{style:[s.bar,o],accessibilityLabel:rr.cartLabel(a.meta.displayName),children:[
287
288
  /* @__PURE__ */D(h,{style:s.copy,children:[
288
289
  /* @__PURE__ */D(h,{style:s.labelRow,children:[
289
- /* @__PURE__ */z(Text2,{style:s.label,children:tr.cartLabel(a.meta.displayName)}),t.count>0?/* @__PURE__ */z(h,{style:s.count,accessibilityElementsHidden:true,importantForAccessibility:"no",children:/* @__PURE__ */z(Text2,{tier:"badge",style:s.countLabel,children:String(t.count)})}):null]}),t.count===0?/* @__PURE__ */z(Text2,{style:s.line,children:Ji.cartEmpty}):c===null?null:/* @__PURE__ */D(Text2,{style:s.line,children:[Ji.subtotal," ",c]})]}),r===void 0?null:/* @__PURE__ */z(g,{onPress:()=>{tu(u,petRef,t),r(t.items)},disabled:d,accessibilityRole:"button",accessibilityLabel:Ji.checkout,accessibilityState:{disabled:d,busy:n},style:[s.checkout,d?s.dimmed:null],testID:"health-plan-checkout",children:/* @__PURE__ */z(Text2,{tier:"control",style:s.checkoutLabel,children:Ji.checkout})})]})}function ru(e){let{color:t,radius:i,space:r,type:n,slots:l}=e,o=l.cartBar?.textColor??t.text.onBrand,a=l.cartBar?.backgroundColor??t.brandInk,s=(t,i,r)=>({...face(e,r),fontSize:t,lineHeight:Math.round(t*n.lineHeight.snug),color:i});return u.create({bar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:r.md,paddingHorizontal:r.lg,paddingVertical:r.md,borderRadius:i.lg,backgroundColor:t.brand,...Ad(l.cartBar)},copy:{flex:1,gap:2},labelRow:{flexDirection:"row",alignItems:"center",gap:r.sm},label:s(n.size.body,o,"bold"),count:{minWidth:22,height:22,paddingHorizontal:r.xs,borderRadius:i.pill,alignItems:"center",justifyContent:"center",backgroundColor:o},countLabel:s(n.size.caption,a,"bold"),line:s(n.size.caption,o,"regular"),checkout:{minHeight:44,paddingHorizontal:r.lg,borderRadius:i.pill,alignItems:"center",justifyContent:"center",backgroundColor:o},checkoutLabel:s(n.size.body,a,"bold"),dimmed:{opacity:.5}})}function NamedPart({name:e,petRef:petRef,locale:t}){let r=i(()=>Yr(e),[e]),n=i(()=>O(r.parts),[r]),l=mr({...petRef===void 0?{}:{petRef:petRef},sources:n,locale:t});/* @__PURE__ */
290
- return z(SlotParts,{slot:r.slot,doc:r,data:l,blocks:Hc})}function HealthPlanFocusPart(e){/* @__PURE__ */
290
+ /* @__PURE__ */z(Text2,{style:s.label,children:rr.cartLabel(a.meta.displayName)}),t.count>0?/* @__PURE__ */z(h,{style:s.count,accessibilityElementsHidden:true,importantForAccessibility:"no",children:/* @__PURE__ */z(Text2,{tier:"badge",style:s.countLabel,children:String(t.count)})}):null]}),t.count===0?/* @__PURE__ */z(Text2,{style:s.line,children:er.cartEmpty}):c===null?null:/* @__PURE__ */D(Text2,{style:s.line,children:[er.subtotal," ",c]})]}),r===void 0?null:/* @__PURE__ */z(g,{onPress:()=>{ru(u,petRef,t),r(t.items)},disabled:d,accessibilityRole:"button",accessibilityLabel:er.checkout,accessibilityState:{disabled:d,busy:n},style:[s.checkout,d?s.dimmed:null],testID:"health-plan-checkout",children:/* @__PURE__ */z(Text2,{tier:"control",style:s.checkoutLabel,children:er.checkout})})]})}function lu(e){let{color:t,radius:i,space:r,type:n,slots:l}=e,o=l.cartBar?.textColor??t.text.onBrand,a=l.cartBar?.backgroundColor??t.brandInk,s=(t,i,r)=>({...face(e,r),fontSize:t,lineHeight:Math.round(t*n.lineHeight.snug),color:i});return u.create({bar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:r.md,paddingHorizontal:r.lg,paddingVertical:r.md,borderRadius:i.lg,backgroundColor:t.brand,...jd(l.cartBar)},copy:{flex:1,gap:2},labelRow:{flexDirection:"row",alignItems:"center",gap:r.sm},label:s(n.size.body,o,"bold"),count:{minWidth:22,height:22,paddingHorizontal:r.xs,borderRadius:i.pill,alignItems:"center",justifyContent:"center",backgroundColor:o},countLabel:s(n.size.caption,a,"bold"),line:s(n.size.caption,o,"regular"),checkout:{minHeight:44,paddingHorizontal:r.lg,borderRadius:i.pill,alignItems:"center",justifyContent:"center",backgroundColor:o},checkoutLabel:s(n.size.body,a,"bold"),dimmed:{opacity:.5}})}function NamedPart({name:e,petRef:petRef,locale:t}){let r=i(()=>Kr(e),[e]),n=i(()=>O(r.parts),[r]),l=yr({...petRef===void 0?{}:{petRef:petRef},sources:n,locale:t});/* @__PURE__ */
291
+ return z(SlotParts,{slot:r.slot,doc:r,data:l,blocks:_c})}function HealthPlanFocusPart(e){/* @__PURE__ */
291
292
  return z(NamedPart,{...e,name:"focus"})}function HealthPlanNeedsPart(e){/* @__PURE__ */
292
293
  return z(NamedPart,{...e,name:"needs"})}function HealthPlanTipsPart(e){/* @__PURE__ */
293
294
  return z(NamedPart,{...e,name:"tips"})}function ShopProductShelfPart(e){/* @__PURE__ */
@@ -295,4 +296,4 @@ return z(NamedPart,{...e,name:"shelf"})}function ShopCartSummaryPart(e){/* @__PU
295
296
  return D(C,{children:[
296
297
  /* @__PURE__ */z(NamedPart,{...e,name:"cartLines"}),
297
298
  /* @__PURE__ */z(NamedPart,{...e,name:"cartSummary"})]})}function ShopRecentOrdersPart(e){/* @__PURE__ */
298
- return z(NamedPart,{...e,name:"orders"})}function HealthPlanCartBarPart(e){let t=useCapability("healthPlan").enabled,i=useEverfurHealthPlan(e.petRef===void 0?void 0:{petRef:e.petRef});return!t||i.status!=="ready"||!showHealthPlanCartBar(void 0,i.cart.count)?null:/* @__PURE__ */z(HealthPlanCartBar,{cart:i.cart,...e.onCheckout?{onCheckout:e.onCheckout}:{},...e.priceFormat?{priceFormat:e.priceFormat}:{},busy:i.pending.length>0,style:e.style})}var nu=/* @__PURE__ */Object.freeze({Slot:Slot,HealthPlanFocus:HealthPlanFocusPart,HealthPlanNeeds:HealthPlanNeedsPart,HealthPlanTips:HealthPlanTipsPart,HealthPlanCartBar:HealthPlanCartBarPart,ShopProductShelf:ShopProductShelfPart,ShopCartSummary:ShopCartSummaryPart,ShopRecentOrders:ShopRecentOrdersPart});export{nu as Everfur,HealthPlanCartBarPart,HealthPlanFocusPart,HealthPlanNeedsPart,HealthPlanTipsPart,ShopCartSummaryPart,ShopProductShelfPart,ShopRecentOrdersPart,Slot};
299
+ return z(NamedPart,{...e,name:"orders"})}function HealthPlanCartBarPart(e){let t=useCapability("healthPlan").enabled,i=useEverfurHealthPlan(e.petRef===void 0?void 0:{petRef:e.petRef});return!t||i.status!=="ready"||!showHealthPlanCartBar(void 0,i.cart.count)?null:/* @__PURE__ */z(HealthPlanCartBar,{cart:i.cart,...e.onCheckout?{onCheckout:e.onCheckout}:{},...e.priceFormat?{priceFormat:e.priceFormat}:{},busy:i.pending.length>0,style:e.style})}var ou=/* @__PURE__ */Object.freeze({Slot:Slot,HealthPlanFocus:HealthPlanFocusPart,HealthPlanNeeds:HealthPlanNeedsPart,HealthPlanTips:HealthPlanTipsPart,HealthPlanCartBar:HealthPlanCartBarPart,ShopProductShelf:ShopProductShelfPart,ShopCartSummary:ShopCartSummaryPart,ShopRecentOrders:ShopRecentOrdersPart});export{ou as Everfur,HealthPlanCartBarPart,HealthPlanFocusPart,HealthPlanNeedsPart,HealthPlanTipsPart,ShopCartSummaryPart,ShopProductShelfPart,ShopRecentOrdersPart,Slot};