@everfur/sdk 1.1.0 → 1.3.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.
- package/CHANGELOG.md +112 -0
- package/dist/{Chat.d-CTVJ_qWQ.d.cts → Chat.d-CGuvQApZ.d.cts} +1 -1
- package/dist/{Chat.d-Bt0fKiOQ.d.ts → Chat.d-DQkMkRlv.d.ts} +1 -1
- package/dist/{DepthViews.d-BHb0Xb-C.d.cts → DepthViews.d-Bs79si_g.d.cts} +1 -1
- package/dist/{DepthViews.d-Dq8eWBvw.d.cts → DepthViews.d-C9HdQhC2.d.cts} +1 -1
- package/dist/{DepthViews.d-BW3HrhnC.d.ts → DepthViews.d-DrCO-wqQ.d.ts} +1 -1
- package/dist/{DepthViews.d-BIfqdrvX.d.ts → DepthViews.d-v8fVFY4g.d.ts} +1 -1
- package/dist/{LifecyclePort.d-Cr1p33a7.d.cts → LifecyclePort.d-Cb9NtmP-.d.cts} +5 -0
- package/dist/{LifecyclePort.d-Cr1p33a7.d.ts → LifecyclePort.d-Cb9NtmP-.d.ts} +5 -0
- package/dist/{RecordsPage.d-Bs-dghTH.d.ts → RecordsPage.d-BDZ8JRSw.d.ts} +1 -1
- package/dist/{RecordsPage.d-CLrw-AvZ.d.cts → RecordsPage.d-a_h8Hlxr.d.cts} +1 -1
- package/dist/animations/index.cjs +1 -1
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/animations/index.js +1 -1
- package/dist/{attachments.d-DTGYmW8Y.d.cts → attachments.d-DjwKMpb0.d.cts} +1 -1
- package/dist/{attachments.d-DjxmIsNp.d.ts → attachments.d-HxQiuR6k.d.ts} +1 -1
- package/dist/{bookingCopy.d-D952V8Tq.d.cts → bookingCopy.d-CX1IaYNX.d.cts} +2 -2
- package/dist/{bookingCopy.d-CX-DMiwi.d.ts → bookingCopy.d-DFhHqNkX.d.ts} +2 -2
- package/dist/{branding.d-SCzhpyTt.d.ts → branding.d-CNeG_CY3.d.ts} +7 -2
- package/dist/{branding.d-eGlNC86j.d.cts → branding.d-KOXyiUqX.d.cts} +7 -2
- package/dist/{casesRepository.d-bWJHZD-_.d.cts → casesRepository.d-BvHziaN3.d.cts} +1 -1
- package/dist/{casesRepository.d-CnJZlUZ4.d.ts → casesRepository.d-CsXp5ZbO.d.ts} +1 -1
- package/dist/chat/index.cjs +34 -34
- package/dist/chat/index.d.cts +11 -11
- package/dist/chat/index.d.ts +11 -11
- package/dist/chat/index.js +35 -35
- package/dist/chat/lite/index.cjs +34 -34
- package/dist/chat/lite/index.d.cts +11 -11
- package/dist/chat/lite/index.d.ts +11 -11
- package/dist/chat/lite/index.js +35 -35
- package/dist/{chatHandoffToken.d-BCEdhZpd.d.ts → chatHandoffToken.d-D8ziljrV.d.ts} +11 -6
- package/dist/{chatHandoffToken.d-uKnSnIzN.d.cts → chatHandoffToken.d-N8D7LgiG.d.cts} +11 -6
- package/dist/{chatTypes.d-DbdF3ij5.d.ts → checkin.d-C6v2akWa.d.ts} +69 -37
- package/dist/{chatTypes.d-CFyYBzps.d.cts → checkin.d-CVo0MpeG.d.cts} +69 -37
- package/dist/{chunk-LWPM4GD3.js → chunk-4YMKIILX.js} +5 -5
- package/dist/{chunk-ZZTNGAS7.js → chunk-D5AYE7FR.js} +3 -3
- package/dist/chunk-LFCCBV3J.js +47 -0
- package/dist/{chunk-5TWMQIT4.js → chunk-OMWBGNXK.js} +1 -1
- package/dist/client/index.cjs +21 -8
- package/dist/client/index.d.cts +83 -15
- package/dist/client/index.d.ts +83 -15
- package/dist/client/index.js +21 -8
- package/dist/{clinicBatch.d-C_kZtYt-.d.ts → clinicBatch.d-DUCpGy47.d.ts} +2 -2
- package/dist/{clinicBatch.d-e3Cn5HhA.d.cts → clinicBatch.d-h4AzQhUH.d.cts} +2 -2
- package/dist/{config.d--6siaeNg.d.ts → config.d-Ds1iysW4.d.ts} +20 -1
- package/dist/{config.d-Ba21AaZg.d.cts → config.d-DwLvHCYP.d.cts} +20 -1
- package/dist/consent/index.cjs +2 -2
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/consent/index.js +2 -2
- package/dist/{context.d-Bl07_JGt.d.ts → context.d-CsoglkHv.d.ts} +6 -6
- package/dist/{context.d-CzMV_7jD.d.cts → context.d-_IdRcaaC.d.cts} +6 -6
- package/dist/{copy.d-GokMma80.d.ts → copy.d-CprpMJD2.d.ts} +2 -2
- package/dist/{copy.d-zWWCn3wB.d.cts → copy.d-Du3C9Itf.d.cts} +2 -2
- package/dist/core/index.cjs +15 -13
- package/dist/core/index.d.cts +18 -16
- package/dist/core/index.d.ts +18 -16
- package/dist/core/index.js +15 -13
- package/dist/{depth.d-C_HL8yAz.d.ts → depth.d-4CAnnHdv.d.ts} +2 -2
- package/dist/{depth.d-De5pT7vA.d.cts → depth.d-B45A8uzH.d.cts} +2 -2
- package/dist/{entitlementRepository.d-DLMRDNUe.d.ts → entitlementRepository.d-BVKx1U_k.d.ts} +4 -4
- package/dist/{entitlementRepository.d-B4ffomns.d.cts → entitlementRepository.d-Cp2ZU7pQ.d.cts} +4 -4
- package/dist/{focus.d-7G0BBmA9.d.ts → focus.d-BmER-Wo9.d.ts} +1 -1
- package/dist/{focus.d-B0qweva0.d.cts → focus.d-DkRwLTEB.d.cts} +1 -1
- package/dist/health-plan/index.cjs +14 -9
- package/dist/health-plan/index.d.cts +14 -14
- package/dist/health-plan/index.d.ts +14 -14
- package/dist/health-plan/index.js +14 -9
- package/dist/{healthPlanRepository.d-fPbLceBr.d.cts → healthPlanRepository.d-B3je3K9s.d.cts} +2 -2
- package/dist/{healthPlanRepository.d-CdCyUWph.d.ts → healthPlanRepository.d-D8a8n9Jj.d.ts} +2 -2
- package/dist/{idempotency.d-IDta7Jjj.d.cts → idempotency.d-CqQ4xvQT.d.cts} +1 -1
- package/dist/{idempotency.d-CoUlC-Yd.d.ts → idempotency.d-Cs5pjjdA.d.ts} +1 -1
- package/dist/{identity.d-B7dPRGqm.d.ts → identity.d-Bj7WLFXU.d.ts} +1 -1
- package/dist/{identity.d-_MK9Y7a4.d.cts → identity.d-Dg3l3zT5.d.cts} +1 -1
- package/dist/{inbox.d-CuuPTWyW.d.ts → inbox.d-DVfTwkEB.d.ts} +1 -1
- package/dist/{inbox.d-ChNXTovj.d.cts → inbox.d-DYCjhSnO.d.cts} +1 -1
- package/dist/index.cjs +45 -44
- package/dist/index.d.cts +20 -18
- package/dist/index.d.ts +20 -18
- package/dist/index.js +46 -45
- package/dist/{introEvents.d-D6Ay0ORN.d.ts → introEvents.d-CmC7ag_3.d.ts} +1 -1
- package/dist/{introEvents.d-JvAWRKYu.d.cts → introEvents.d-Wc0-QPLf.d.cts} +1 -1
- package/dist/{layout.d-D3d4QMeO.d.ts → layout.d-BZbIqvZ_.d.ts} +2 -2
- package/dist/{layout.d-ByfOEhpG.d.cts → layout.d-yLooG8Z0.d.cts} +2 -2
- package/dist/models.d-DHAQqrQr.d.ts +182 -0
- package/dist/models.d-Dml2f9-U.d.cts +182 -0
- package/dist/notifications/inbox/index.cjs +3 -3
- package/dist/notifications/inbox/index.d.cts +7 -7
- package/dist/notifications/inbox/index.d.ts +7 -7
- package/dist/notifications/inbox/index.js +3 -3
- package/dist/notifications/index.cjs +2 -2
- package/dist/notifications/index.d.cts +7 -7
- package/dist/notifications/index.d.ts +7 -7
- package/dist/notifications/index.js +2 -2
- package/dist/{optInView.d-BpFTJaaX.d.ts → optInView.d-B_yFAfKk.d.ts} +2 -2
- package/dist/{optInView.d-Bxvg0WLJ.d.cts → optInView.d-Td2Uv3iq.d.cts} +2 -2
- package/dist/parse.d-DtHmpAMT.d.cts +282 -0
- package/dist/parse.d-DtHmpAMT.d.ts +282 -0
- package/dist/{pets.d-BtbJcf8T.d.cts → pets.d-CE8_oDjM.d.cts} +1 -1
- package/dist/{pets.d-Br960ekh.d.ts → pets.d-UFpQT-q3.d.ts} +1 -1
- package/dist/{petsRepository.d-Bj9rPnCr.d.cts → petsRepository.d-BVSrxwKa.d.cts} +1 -1
- package/dist/{petsRepository.d-CSOth5XE.d.ts → petsRepository.d-BvmFXjTc.d.ts} +1 -1
- package/dist/photo/index.cjs +2 -2
- package/dist/photo/index.js +2 -2
- package/dist/records/depth/index.cjs +2 -2
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/depth/index.js +2 -2
- package/dist/records/index.cjs +4 -4
- package/dist/records/index.d.cts +11 -11
- package/dist/records/index.d.ts +11 -11
- package/dist/records/index.js +4 -4
- package/dist/{requestFunnel.d-LSnmCusf.d.ts → requestFunnel.d-D8UsEFed.d.ts} +2 -2
- package/dist/{requestFunnel.d-BwO-jFLX.d.cts → requestFunnel.d-fmBVWfsj.d.cts} +2 -2
- package/dist/{route.d-Bzyamuxa.d.ts → route.d-BnWvGpNN.d.ts} +2 -2
- package/dist/{route.d-D70-OHBc.d.cts → route.d-DOXnhbtt.d.cts} +2 -2
- package/dist/{runtimeTypes.d-6nkdToBS.d.cts → runtimeTypes.d-BlejmEU1.d.cts} +34 -6
- package/dist/{runtimeTypes.d-Byb55WsJ.d.ts → runtimeTypes.d-C6fYXNx2.d.ts} +34 -6
- package/dist/{screenProps.d-DB5IMaGZ.d.cts → screenProps.d-BfYg9Eaz.d.cts} +1 -1
- package/dist/{screenProps.d-HGSPNGHt.d.ts → screenProps.d-Bp0vHiov.d.ts} +1 -1
- package/dist/sdkConfigStore.d-BHrzkVpP.d.cts +45 -0
- package/dist/sdkConfigStore.d-VPvsIL8E.d.ts +45 -0
- package/dist/server/events/index.cjs +3 -2
- package/dist/server/events/index.d.cts +2 -2
- package/dist/server/events/index.d.ts +2 -2
- package/dist/server/events/index.js +3 -2
- package/dist/server/index.cjs +5 -4
- package/dist/server/index.d.cts +9 -3
- package/dist/server/index.d.ts +9 -3
- package/dist/server/index.js +5 -4
- package/dist/shop/index.cjs +12 -6
- package/dist/shop/index.d.cts +3 -3
- package/dist/shop/index.d.ts +3 -3
- package/dist/shop/index.js +13 -7
- package/dist/slots/index.cjs +15 -16
- package/dist/slots/index.d.cts +6 -6
- package/dist/slots/index.d.ts +6 -6
- package/dist/slots/index.js +15 -16
- package/dist/slots/weather-glyphs/index.cjs +1 -1
- package/dist/slots/weather-glyphs/index.js +1 -1
- package/dist/tabs/index.cjs +79 -13
- package/dist/tabs/index.d.cts +129 -10
- package/dist/tabs/index.d.ts +129 -10
- package/dist/tabs/index.js +79 -13
- package/dist/televet/booking/index.cjs +2 -2
- package/dist/televet/booking/index.d.cts +6 -6
- package/dist/televet/booking/index.d.ts +6 -6
- package/dist/televet/booking/index.js +2 -2
- package/dist/televet/index.cjs +2 -2
- package/dist/televet/index.js +2 -2
- package/dist/testing/index.cjs +4 -3
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +4 -3
- package/dist/testing/rn/index.cjs +3 -3
- package/dist/testing/rn/index.d.cts +11 -9
- package/dist/testing/rn/index.d.ts +11 -9
- package/dist/testing/rn/index.js +3 -3
- package/dist/testing/web/index.cjs +2 -2
- package/dist/testing/web/index.d.cts +11 -9
- package/dist/testing/web/index.d.ts +11 -9
- package/dist/testing/web/index.js +2 -2
- package/dist/texting/index.cjs +4 -4
- package/dist/texting/index.d.cts +22 -8
- package/dist/texting/index.d.ts +22 -8
- package/dist/texting/index.js +4 -4
- package/dist/{threadOptions.d-E-ZxhUSg.d.cts → threadOptions.d-B9OndNS2.d.cts} +5 -5
- package/dist/{threadOptions.d-Cjps2yaN.d.ts → threadOptions.d-BlpnY5xP.d.ts} +5 -5
- package/dist/{timelineRows.d-CPS4admm.d.ts → timelineRows.d-BPOMlI-P.d.ts} +1 -1
- package/dist/{timelineRows.d-BJRCgmdv.d.cts → timelineRows.d-BmHu_XLI.d.cts} +1 -1
- package/dist/{tokens.d-DH1mYjZl.d.cts → tokens.d-DxM-tKjz.d.cts} +2 -0
- package/dist/{tokens.d-DH1mYjZl.d.ts → tokens.d-DxM-tKjz.d.ts} +2 -0
- package/dist/{typeStyle.d-CuKAr0Ly.d.cts → typeStyle.d-DmdB2TfH.d.cts} +2 -2
- package/dist/{typeStyle.d-ZszGrWPf.d.ts → typeStyle.d-Ma1uBgn-.d.ts} +2 -2
- package/dist/ui/index.cjs +5 -4
- package/dist/ui/index.js +5 -4
- package/dist/{useHealthPlanSubscription.d-SQfx-45x.d.ts → useHealthPlanSubscription.d-BAU8x02a.d.ts} +4 -4
- package/dist/{useHealthPlanSubscription.d-zjsvvlhz.d.cts → useHealthPlanSubscription.d-CuJMQc_d.d.cts} +4 -4
- package/dist/{useInboxUnread.d-BxFKFU4o.d.ts → useInboxUnread.d-BUpXjNnT.d.ts} +2 -2
- package/dist/{useInboxUnread.d-7p3IWs_A.d.cts → useInboxUnread.d-By1CkCy2.d.cts} +2 -2
- package/dist/{usePresentation.d-DUHlQyV5.d.cts → usePresentation.d-CgEJRm6Q.d.cts} +2 -2
- package/dist/{usePresentation.d-CoyGEJOl.d.ts → usePresentation.d-kSW7ttTl.d.ts} +2 -2
- package/dist/{useRecordsDepth.d-Bk8BSerZ.d.cts → useRecordsDepth.d-BHQgBRBw.d.cts} +1 -1
- package/dist/{useRecordsDepth.d-BinUa8W9.d.ts → useRecordsDepth.d-diEF_tFF.d.ts} +1 -1
- package/dist/{useUnread.d-D-p7oEW_.d.cts → useUnread.d-CoQKIHVD.d.cts} +31 -17
- package/dist/{useUnread.d-CFzIPmZt.d.ts → useUnread.d-aRej_wU8.d.ts} +31 -17
- package/dist/video/index.cjs +2 -2
- package/dist/video/index.js +2 -2
- package/dist/{view.d-CaH6dZPJ.d.ts → view.d-CevohC1l.d.ts} +3 -3
- package/dist/{view.d-DV4b1cov.d.cts → view.d-DgXlfcxR.d.cts} +3 -3
- package/dist/web/consent/index.cjs +2 -2
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/consent/index.js +2 -2
- package/dist/web/health-plan/index.cjs +11 -11
- package/dist/web/health-plan/index.d.cts +16 -16
- package/dist/web/health-plan/index.d.ts +16 -16
- package/dist/web/health-plan/index.js +7 -7
- package/dist/web/health-plan/styles.css +59 -0
- package/dist/web/inbox/index.cjs +3 -3
- package/dist/web/inbox/index.d.cts +8 -8
- package/dist/web/inbox/index.d.ts +8 -8
- package/dist/web/inbox/index.js +3 -3
- package/dist/web/index.cjs +52 -51
- package/dist/web/index.d.cts +59 -44
- package/dist/web/index.d.ts +59 -44
- package/dist/web/index.js +52 -51
- package/dist/web/intro/index.cjs +2 -2
- package/dist/web/intro/index.d.cts +7 -7
- package/dist/web/intro/index.d.ts +7 -7
- package/dist/web/intro/index.js +2 -2
- package/dist/web/notifications/index.cjs +2 -2
- package/dist/web/notifications/index.d.cts +6 -6
- package/dist/web/notifications/index.d.ts +6 -6
- package/dist/web/notifications/index.js +2 -2
- package/dist/web/records/depth/index.cjs +2 -2
- package/dist/web/records/depth/index.d.cts +9 -9
- package/dist/web/records/depth/index.d.ts +9 -9
- package/dist/web/records/depth/index.js +2 -2
- package/dist/web/records/index.cjs +4 -4
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records/index.js +4 -4
- package/dist/web/records-sheet/index.cjs +4 -4
- package/dist/web/records-sheet/index.js +4 -4
- package/dist/web/shop/index.cjs +9 -9
- package/dist/web/shop/index.d.cts +3 -3
- package/dist/web/shop/index.d.ts +3 -3
- package/dist/web/shop/index.js +4 -4
- package/dist/web/televet/booking/index.cjs +2 -2
- package/dist/web/televet/booking/index.d.cts +7 -7
- package/dist/web/televet/booking/index.d.ts +7 -7
- package/dist/web/televet/booking/index.js +2 -2
- package/dist/web/televet/call/index.cjs +1 -1
- package/dist/web/televet/call/index.js +1 -1
- package/dist/web/televet/index.cjs +2 -2
- package/dist/web/televet/index.js +2 -2
- package/dist/web/texting/index.cjs +4 -4
- package/dist/web/texting/index.d.cts +22 -8
- package/dist/web/texting/index.d.ts +22 -8
- package/dist/web/texting/index.js +4 -4
- package/dist/web/ui/index.cjs +8 -8
- package/dist/web/ui/index.js +1 -1
- package/dist/web/ui/styles.css +66 -0
- package/package.json +10 -6
- package/dist/chunk-PDZTFXOO.js +0 -47
package/dist/slots/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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,createElement,useMemo,useContext,useState,useEffect,useSyncExternalStore,useRef,useCallback,Component,Fragment as Fragment$1}from"react";import{StyleSheet,TextInput,View,Pressable,Text as Text$1,Linking,useWindowDimensions,ScrollView,Platform,AccessibilityInfo,I18nManager,Animated,Easing,Image,ActivityIndicator}from"react-native";import{jsx,jsxs,Fragment}from"react/jsx-runtime";var SLOT_DATA_SOURCES=/* @__PURE__ */Object.freeze({"plan.needs":"list","plan.tips":"list","plan.items":"list","cart.lines":"list","cart.summary":"item","orders.recent":"list"});function isSlotDataSource(name){return Object.prototype.hasOwnProperty.call(SLOT_DATA_SOURCES,name)}function parseSlotRef(value){if(value===void 0)return null;let at=value.indexOf(":");if(at<=0)return null;let kind=value.slice(0,at),name=value.slice(at+1);return name===""?null:kind==="data"?isSlotDataSource(name)?{kind:kind,name:name}:null:kind==="item"||kind==="copy"?{kind:kind,name:name}:null}function slotSourcesOf(parts){let out=/* @__PURE__ */new Set,add=value=>{let ref=parseSlotRef(value);ref?.kind==="data"&&out.add(ref.name)};for(let part2 of parts){add(part2.repeat),add(part2.visibleIf?.source);for(let value of Object.values(part2.bind))add(value)}return out}function ok(value,warning){/* @__PURE__ */
|
|
3
3
|
return Object.freeze({ok:true,value:value})}function err(error){/* @__PURE__ */
|
|
4
|
-
return Object.freeze({ok:false,error:error})}var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var EVERFUR_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),globalContextHost=globalThis,EverfurContext=globalContextHost[EVERFUR_CONTEXT_SYMBOL]??(globalContextHost[EVERFUR_CONTEXT_SYMBOL]=createContext(null));EverfurContext.displayName??="EverfurContext";function useEverfurContext(){let ctx=useContext(EverfurContext);if(ctx===null)throw new EverfurConfigError("not-initialized","Everfur hooks must be called inside <EverfurProvider>. Wrap your tree once, high.");return ctx}var DEFAULT_PRESENTATION=/* @__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}),PRESENTATION_WIRE_NAMES=/* @__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"}),FIELDS=Object.keys(PRESENTATION_WIRE_NAMES),PRESENTATION_LOCK="presentation",PRESENTATION_LOCK_PREFIX="presentation.";var ENUMS={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"]},BOOLS=/* @__PURE__ */new Set(["chatFollowUpsExcludeTelevet","chatComposerMic","chatComposerUpload","recordsTopRiskLine","recordsClearResultsFilter","chatGeneralBanner","chatTextingAsk","serverSlots"]);function parseField(field,value){if(value==null)return;let allowed=ENUMS[field];return allowed!==void 0?typeof value=="string"&&allowed.includes(value)?value:void 0:BOOLS.has(field)?typeof value=="boolean"?value:void 0:typeof value=="number"&&Number.isInteger(value)&&value>=0&&value<=3?value:void 0}function parsePresentation(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;let source=raw,out={};for(let field of FIELDS){let wire=PRESENTATION_WIRE_NAMES[field],value=Object.prototype.hasOwnProperty.call(source,wire)?source[wire]:source[field],parsed=parseField(field,value);parsed!==void 0&&(out[field]=parsed)}return Object.keys(out).length===0?null:/* @__PURE__ */Object.freeze(out)}function isPresentationFieldLocked(field,locked){if(locked==null)return false;let one=`${PRESENTATION_LOCK_PREFIX}${PRESENTATION_WIRE_NAMES[field]}`;for(let name of locked)if(name===PRESENTATION_LOCK||name===one)return true;return false}function resolvePresentation(input){let parsedServer=parsePresentation(input?.server??null)??{},{safetyDisclaimerPlacement:serverPlacement,...serverRest}=parsedServer,server=serverPlacement==="none"||serverPlacement===void 0?serverRest:{...serverRest,safetyDisclaimerPlacement:serverPlacement},client=parsePresentation(input?.client??null)??{},locked=input?.locked?[...input.locked]:null,out={};for(let field of FIELDS){let fromServer=server[field],fromClient=isPresentationFieldLocked(field,locked)?void 0:client[field];out[field]=fromClient??fromServer??DEFAULT_PRESENTATION[field]}/* @__PURE__ */
|
|
5
|
-
return Object.freeze(out)}var NO_SNAPSHOT=/* @__PURE__ */Object.freeze({branding:null}),NO_STORE=/* @__PURE__ */Object.freeze({subscribe:()=>()=>{},getSnapshot:()=>NO_SNAPSHOT});function keyOf(input){return input?Object.keys(input).sort().map(k2=>`${k2}=${String(input[k2])}`).join("&"):""}function useEverfurPresentation(client){return useEverfurPresentationState(client).presentation}function useEverfurPresentationState(client){let{runtime:runtime}=useEverfurContext(),store=runtime?.entitlements??NO_STORE,readBranding=useCallback(()=>store.getSnapshot()?.branding??null,[store]),branding=useSyncExternalStore(store.subscribe,readBranding,readBranding),clientKey=keyOf(client);return useMemo(()=>{let locked=branding?.lockedFields??null;return{presentation:resolvePresentation({server:branding?.presentation??null,locked:locked,client:client??null}),isLocked:field=>isPresentationFieldLocked(field,locked)}},[branding,clientKey])}var SLOT_SWITCH_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotSwitchContext@v1"),host=globalThis,SlotSwitchContext=host[SLOT_SWITCH_SYMBOL]??(host[SLOT_SWITCH_SYMBOL]=createContext(null));SlotSwitchContext.displayName??="EverfurSlotSwitch";function useSlotSwitch(own){let above=useContext(SlotSwitchContext),resolved=useEverfurPresentation(own===void 0?void 0:{serverSlots:own}).serverSlots;return own!==void 0||above===null?resolved:above}var RETRYABILITY_ROWS=[{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:"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:"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:"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:"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:"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:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true},{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}],CONTRACT_RETRYABILITY=/* @__PURE__ */Object.freeze(RETRYABILITY_ROWS.map(row=>/* @__PURE__ */Object.freeze(row)));/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(row=>row.wireCode));var NORMALIZED_FOLD=/* @__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"}),CONTRACT_ERROR_ROWS=/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(generated=>/* @__PURE__ */Object.freeze({wireCode:generated.wireCode,envelope:generated.envelope,retryable:generated.retryable,normalized:NORMALIZED_FOLD[generated.wireCode]}))),BY_KEY=new Map(CONTRACT_ERROR_ROWS.map(r=>[r.envelope+r.wireCode.toUpperCase(),r])),ENVELOPE_LOOKUP_ORDER=/* @__PURE__ */Object.freeze(["http_envelope",...[...new Set(CONTRACT_ERROR_ROWS.map(r=>r.envelope))].filter(e=>e!=="http_envelope").sort()]);function contractErrorFor(wireCode,envelope){if(typeof wireCode!="string")return;let key=wireCode.trim().toUpperCase();if(key.length!==0)for(let candidate of[envelope??"http_envelope",...ENVELOPE_LOOKUP_ORDER]){let row=BY_KEY.get(candidate+key);if(row)return row}}var CATEGORY_OF=/* @__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(code){return CATEGORY_OF[code]}function fromWire(wire){let contractRow=contractErrorFor(wire);if(contractRow)return contractRow.normalized;let upper=(wire??"").trim().toUpperCase(),canonical=upper.replace(/[^A-Z0-9]/g,"");if(canonical==="AUTHREJECTED")return"authRejected";if(upper.startsWith("AUTH"))return"authExpired";switch(canonical){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"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 AUTO_RETRYABLE_CODES=/* @__PURE__ */new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function isAutoRetryable(code){return AUTO_RETRYABLE_CODES.has(code)}var RETRYABLE_CONTRACT_CODES=/* @__PURE__ */new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function isRetryableCode(code){return isAutoRetryable(code)||RETRYABLE_CONTRACT_CODES.has(code)}var BACKOFF_BASE_MS=500,BACKOFF_CAP_MS=8e3,MAX_RETRY_ATTEMPTS=4;function backoffDelayMs(attempt,rng=Math.random){let bounded=Math.max(0,attempt),ceiling=Math.min(BACKOFF_BASE_MS*2**bounded,BACKOFF_CAP_MS);return Math.floor(rng()*ceiling)}var ACCESS_DENIED_COPY="This feature isn't available on your account right now.",VALIDATION_FAILED_COPY="Something in that request was not right. Check the details and try again.",USER_FACING_COPY=/* @__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:ACCESS_DENIED_COPY,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:VALIDATION_FAILED_COPY,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:ACCESS_DENIED_COPY,runtimeDisposed:VALIDATION_FAILED_COPY,unknown:"Something went wrong. Please try again."}),SESSION_REVOKED_COPY="This session has ended. Please sign in again.",LINKED_ACCOUNT_READ_ONLY="linked_account_read_only";function displayFor(code,wireCode,reasonCode){return code==="conflict"&&reasonCode===LINKED_ACCOUNT_READ_ONLY?ACCESS_DENIED_COPY:(code==="authRejected"||code==="authExpired")&&typeof wireCode=="string"&&wireCode.trim().toLowerCase()==="session_revoked"?SESSION_REVOKED_COPY:userFacingError(code)}function userFacingError(code){return USER_FACING_COPY[code]}function defineHidden(target,key,value){Object.defineProperty(target,key,{value:value,enumerable:false,writable:false,configurable:false})}var REASON_CODE_SHAPE=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(code,opts){let row=contractErrorFor(opts?.wireCode,opts?.wireEnvelope),linkedReadOnly=code==="conflict"&&opts?.reasonCode===LINKED_ACCOUNT_READ_ONLY,error={code:code,category:categoryFor(code),retryable:opts?.retryable??(linkedReadOnly?false:isRetryableCode(code)),displayMessage:displayFor(code,opts?.wireCode,linkedReadOnly?LINKED_ACCOUNT_READ_ONLY:null)};opts?.httpStatus!==void 0&&(error.httpStatus=opts.httpStatus),opts?.requestId&&(error.requestId=opts.requestId),typeof opts?.reasonCode=="string"&&REASON_CODE_SHAPE.test(opts.reasonCode)&&(error.reasonCode=opts.reasonCode);let wait=opts?.retryAfterSeconds;if(typeof wait=="number"&&Number.isFinite(wait)&&wait>=0&&(error.retryAfterSeconds=Math.round(wait)),row);return opts?.wireMessage&&defineHidden(error,"wireMessage",opts.wireMessage),opts?.raw!==void 0&&opts.raw!==null&&defineHidden(error,"raw",opts.raw),/* @__PURE__ */Object.freeze(error)}function isNotFoundError(error){return error!=null&&(error.httpStatus===404||error.category==="notFound")}function plainNotFound(error){return error.code!=="conversationNotFound"?error:makeEverfurError("resourceNotFound",{retryable:false,...error.httpStatus===void 0?{}:{httpStatus:error.httpStatus},...error.requestId===void 0?{}:{requestId:error.requestId},...error.reasonCode===void 0?{}:{reasonCode:error.reasonCode},...error.wireMessage===void 0?{}:{wireMessage:error.wireMessage},...error.raw===void 0?{}:{raw:error.raw}})}function plainResult(res){return res.ok?res:err(plainNotFound(res.error))}function withPlainNotFound(funnel){return{send:async(...args)=>plainResult(await funnel.send(...args)),authorize:req=>funnel.authorize(req),stream:(call,req,signal)=>funnel.stream(call,req,signal)}}var IDLE=/* @__PURE__ */Object.freeze({phase:"idle",petRef:null,plan:null,pending:/* @__PURE__ */Object.freeze([]),itemErrors:/* @__PURE__ */Object.freeze({}),error:null});function withItem(plan,productId,inPlan){let items=plan.items.map(item=>item.productId===productId?/* @__PURE__ */Object.freeze({...item,inPlan:inPlan}):item);/* @__PURE__ */
|
|
4
|
+
return Object.freeze({ok:false,error:error})}var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var EVERFUR_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),globalContextHost=globalThis,EverfurContext=globalContextHost[EVERFUR_CONTEXT_SYMBOL]??(globalContextHost[EVERFUR_CONTEXT_SYMBOL]=createContext(null));EverfurContext.displayName??="EverfurContext";function useEverfurContext(){let ctx=useContext(EverfurContext);if(ctx===null)throw new EverfurConfigError("not-initialized","Everfur hooks must be called inside <EverfurProvider>. Wrap your tree once, high.");return ctx}var noSubscribe=()=>()=>{},none=()=>null;function useServerBranding(verdictBranding,slot){return useSyncExternalStore(slot?.subscribe??noSubscribe,slot?.get??none,slot?.get??none)??verdictBranding}var DEFAULT_PRESENTATION=/* @__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}),PRESENTATION_WIRE_NAMES=/* @__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"}),FIELDS=Object.keys(PRESENTATION_WIRE_NAMES),PRESENTATION_LOCK="presentation",PRESENTATION_LOCK_PREFIX="presentation.";var ENUMS={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"]},BOOLS=/* @__PURE__ */new Set(["chatFollowUpsExcludeTelevet","chatComposerMic","chatComposerUpload","recordsTopRiskLine","recordsClearResultsFilter","chatGeneralBanner","chatTextingAsk","serverSlots"]);function parseField(field,value){if(value==null)return;let allowed=ENUMS[field];return allowed!==void 0?typeof value=="string"&&allowed.includes(value)?value:void 0:BOOLS.has(field)?typeof value=="boolean"?value:void 0:typeof value=="number"&&Number.isInteger(value)&&value>=0&&value<=3?value:void 0}function parsePresentation(raw){if(raw===null||typeof raw!="object"||Array.isArray(raw))return null;let source=raw,out={};for(let field of FIELDS){let wire=PRESENTATION_WIRE_NAMES[field],value=Object.prototype.hasOwnProperty.call(source,wire)?source[wire]:source[field],parsed=parseField(field,value);parsed!==void 0&&(out[field]=parsed)}return Object.keys(out).length===0?null:/* @__PURE__ */Object.freeze(out)}function isPresentationFieldLocked(field,locked){if(locked==null)return false;let one=`${PRESENTATION_LOCK_PREFIX}${PRESENTATION_WIRE_NAMES[field]}`;for(let name of locked)if(name===PRESENTATION_LOCK||name===one)return true;return false}function resolvePresentation(input){let parsedServer=parsePresentation(input?.server??null)??{},{safetyDisclaimerPlacement:serverPlacement,...serverRest}=parsedServer,server=serverPlacement==="none"||serverPlacement===void 0?serverRest:{...serverRest,safetyDisclaimerPlacement:serverPlacement},client=parsePresentation(input?.client??null)??{},locked=input?.locked?[...input.locked]:null,out={};for(let field of FIELDS){let fromServer=server[field],fromClient=isPresentationFieldLocked(field,locked)?void 0:client[field];out[field]=fromClient??fromServer??DEFAULT_PRESENTATION[field]}/* @__PURE__ */
|
|
5
|
+
return Object.freeze(out)}var NO_SNAPSHOT=/* @__PURE__ */Object.freeze({branding:null}),NO_STORE=/* @__PURE__ */Object.freeze({subscribe:()=>()=>{},getSnapshot:()=>NO_SNAPSHOT});function keyOf(input){return input?Object.keys(input).sort().map(k2=>`${k2}=${String(input[k2])}`).join("&"):""}function useEverfurPresentation(client){return useEverfurPresentationState(client).presentation}function useEverfurPresentationState(client){let{runtime:runtime}=useEverfurContext(),store=runtime?.entitlements??NO_STORE,readBranding=useCallback(()=>store.getSnapshot()?.branding??null,[store]),branding=useServerBranding(useSyncExternalStore(store.subscribe,readBranding,readBranding),runtime?.sdkConfigHost?.branding),clientKey=keyOf(client);return useMemo(()=>{let locked=branding?.lockedFields??null;return{presentation:resolvePresentation({server:branding?.presentation??null,locked:locked,client:client??null}),isLocked:field=>isPresentationFieldLocked(field,locked)}},[branding,clientKey])}var SLOT_SWITCH_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotSwitchContext@v1"),host=globalThis,SlotSwitchContext=host[SLOT_SWITCH_SYMBOL]??(host[SLOT_SWITCH_SYMBOL]=createContext(null));SlotSwitchContext.displayName??="EverfurSlotSwitch";function useSlotSwitch(own){let above=useContext(SlotSwitchContext),resolved=useEverfurPresentation(own===void 0?void 0:{serverSlots:own}).serverSlots;return own!==void 0||above===null?resolved:above}var RETRYABILITY_ROWS=[{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:"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}],CONTRACT_RETRYABILITY=/* @__PURE__ */Object.freeze(RETRYABILITY_ROWS.map(row=>/* @__PURE__ */Object.freeze(row)));/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(row=>row.wireCode));var NORMALIZED_FOLD=/* @__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"}),CONTRACT_ERROR_ROWS=/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(generated=>/* @__PURE__ */Object.freeze({wireCode:generated.wireCode,envelope:generated.envelope,retryable:generated.retryable,normalized:NORMALIZED_FOLD[generated.wireCode]}))),BY_KEY=new Map(CONTRACT_ERROR_ROWS.map(r=>[r.envelope+r.wireCode.toUpperCase(),r])),ENVELOPE_LOOKUP_ORDER=/* @__PURE__ */Object.freeze(["http_envelope",...[...new Set(CONTRACT_ERROR_ROWS.map(r=>r.envelope))].filter(e=>e!=="http_envelope").sort()]);function contractErrorFor(wireCode,envelope){if(typeof wireCode!="string")return;let key=wireCode.trim().toUpperCase();if(key.length!==0)for(let candidate of[envelope??"http_envelope",...ENVELOPE_LOOKUP_ORDER]){let row=BY_KEY.get(candidate+key);if(row)return row}}var CATEGORY_OF=/* @__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(code){return CATEGORY_OF[code]}function fromWire(wire){let contractRow=contractErrorFor(wire);if(contractRow)return contractRow.normalized;let upper=(wire??"").trim().toUpperCase(),canonical=upper.replace(/[^A-Z0-9]/g,"");if(canonical==="AUTHREJECTED")return"authRejected";if(upper.startsWith("AUTH"))return"authExpired";switch(canonical){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 AUTO_RETRYABLE_CODES=/* @__PURE__ */new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function isAutoRetryable(code){return AUTO_RETRYABLE_CODES.has(code)}var RETRYABLE_CONTRACT_CODES=/* @__PURE__ */new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function isRetryableCode(code){return isAutoRetryable(code)||RETRYABLE_CONTRACT_CODES.has(code)}var BACKOFF_BASE_MS=500,BACKOFF_CAP_MS=8e3,MAX_RETRY_ATTEMPTS=4;function backoffDelayMs(attempt,rng=Math.random){let bounded=Math.max(0,attempt),ceiling=Math.min(BACKOFF_BASE_MS*2**bounded,BACKOFF_CAP_MS);return Math.floor(rng()*ceiling)}var ACCESS_DENIED_COPY="This feature isn't available on your account right now.",VALIDATION_FAILED_COPY="Something in that request was not right. Check the details and try again.",USER_FACING_COPY=/* @__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:ACCESS_DENIED_COPY,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:VALIDATION_FAILED_COPY,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:ACCESS_DENIED_COPY,runtimeDisposed:VALIDATION_FAILED_COPY,unknown:"Something went wrong. Please try again."}),SESSION_REVOKED_COPY="This session has ended. Please sign in again.",LINKED_ACCOUNT_READ_ONLY="linked_account_read_only";function displayFor(code,wireCode,reasonCode){return code==="conflict"&&reasonCode===LINKED_ACCOUNT_READ_ONLY?ACCESS_DENIED_COPY:(code==="authRejected"||code==="authExpired")&&typeof wireCode=="string"&&wireCode.trim().toLowerCase()==="session_revoked"?SESSION_REVOKED_COPY:userFacingError(code)}function userFacingError(code){return USER_FACING_COPY[code]}function defineHidden(target,key,value){Object.defineProperty(target,key,{value:value,enumerable:false,writable:false,configurable:false})}var REASON_CODE_SHAPE=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(code,opts){let row=contractErrorFor(opts?.wireCode,opts?.wireEnvelope),linkedReadOnly=code==="conflict"&&opts?.reasonCode===LINKED_ACCOUNT_READ_ONLY,error={code:code,category:categoryFor(code),retryable:opts?.retryable??(linkedReadOnly?false:isRetryableCode(code)),displayMessage:displayFor(code,opts?.wireCode,linkedReadOnly?LINKED_ACCOUNT_READ_ONLY:null)};opts?.httpStatus!==void 0&&(error.httpStatus=opts.httpStatus),opts?.requestId&&(error.requestId=opts.requestId),typeof opts?.reasonCode=="string"&&REASON_CODE_SHAPE.test(opts.reasonCode)&&(error.reasonCode=opts.reasonCode);let wait=opts?.retryAfterSeconds;if(typeof wait=="number"&&Number.isFinite(wait)&&wait>=0&&(error.retryAfterSeconds=Math.round(wait)),row);return opts?.wireMessage&&defineHidden(error,"wireMessage",opts.wireMessage),opts?.raw!==void 0&&opts.raw!==null&&defineHidden(error,"raw",opts.raw),/* @__PURE__ */Object.freeze(error)}function isNotFoundError(error){return error!=null&&(error.httpStatus===404||error.category==="notFound")}function plainNotFound(error){return error.code!=="conversationNotFound"?error:makeEverfurError("resourceNotFound",{retryable:false,...error.httpStatus===void 0?{}:{httpStatus:error.httpStatus},...error.requestId===void 0?{}:{requestId:error.requestId},...error.reasonCode===void 0?{}:{reasonCode:error.reasonCode},...error.wireMessage===void 0?{}:{wireMessage:error.wireMessage},...error.raw===void 0?{}:{raw:error.raw}})}function plainResult(res){return res.ok?res:err(plainNotFound(res.error))}function withPlainNotFound(funnel){return{send:async(...args)=>plainResult(await funnel.send(...args)),authorize:req=>funnel.authorize(req),stream:(call,req,signal)=>funnel.stream(call,req,signal)}}var IDLE=/* @__PURE__ */Object.freeze({phase:"idle",petRef:null,plan:null,pending:/* @__PURE__ */Object.freeze([]),itemErrors:/* @__PURE__ */Object.freeze({}),error:null});function withItem(plan,productId,inPlan){let items=plan.items.map(item=>item.productId===productId?/* @__PURE__ */Object.freeze({...item,inPlan:inPlan}):item);/* @__PURE__ */
|
|
6
6
|
return Object.freeze({...plan,items:/* @__PURE__ */Object.freeze(items)})}var HealthPlanController=class{constructor(repository){this.repository=repository;this.snapshot=IDLE;this.listeners=/* @__PURE__ */new Set;this.generation=0;this.writes=0;this.revalidations=0;this.refreshAfterWrites=false;this.disposed=false;this.subscribe=listener=>(this.listeners.add(listener),()=>{this.listeners.delete(listener)});this.getSnapshot=()=>this.snapshot}set(next){if(!this.disposed){this.snapshot=/* @__PURE__ */Object.freeze({...this.snapshot,...next});for(let listener of this.listeners)listener()}}async load(petRef){let gen=++this.generation;if(this.refreshAfterWrites=false,petRef===null){this.set({...IDLE});return}let samePet=this.snapshot.petRef===petRef;this.set({phase:"loading",petRef:petRef,plan:samePet?this.snapshot.plan:null,pending:/* @__PURE__ */Object.freeze([]),itemErrors:samePet?this.snapshot.itemErrors:/* @__PURE__ */Object.freeze({}),error:null});let result=await this.repository.read(petRef);if(gen===this.generation){if(!result.ok){this.set({phase:"failed",error:result.error});return}this.set({phase:"ready",plan:result.value,error:null,itemErrors:/* @__PURE__ */Object.freeze({})})}}async revalidate(){let{phase:phase,petRef:petRef,pending:pending}=this.snapshot;if(phase!=="ready"||petRef===null||pending.length>0)return;let gen=this.generation,writes=this.writes,seq=++this.revalidations,result=await this.repository.read(petRef);gen!==this.generation||writes!==this.writes||seq!==this.revalidations||this.snapshot.pending.length>0||this.snapshot.petRef!==petRef||result.ok&&this.set({plan:result.value,itemErrors:/* @__PURE__ */Object.freeze({})})}async refresh(){let{phase:phase,petRef:petRef,pending:pending}=this.snapshot;if(!(petRef===null||phase==="idle")){if(phase!=="ready")return this.load(petRef);if(pending.length>0){this.refreshAfterWrites=true;return}return this.revalidate()}}settleWrite(){!this.refreshAfterWrites||this.snapshot.pending.length>0||(this.refreshAfterWrites=false,this.revalidate())}async setInPlan(productId,inPlan){let{plan:plan,petRef:petRef,pending:pending}=this.snapshot;if(this.snapshot.phase!=="ready"||plan===null||petRef===null||pending.includes(productId))return false;let before=plan.items.find(item=>item.productId===productId);if(before===void 0||before.inPlan===inPlan)return false;this.writes+=1;let gen=this.generation,otherErrors=Object.fromEntries(Object.entries(this.snapshot.itemErrors).filter(([id])=>id!==productId));this.set({plan:withItem(plan,productId,inPlan),pending:/* @__PURE__ */Object.freeze([...pending,productId]),itemErrors:/* @__PURE__ */Object.freeze(otherErrors)});let result=inPlan?await this.repository.addItem(petRef,productId):await this.repository.removeItem(petRef,productId);if(gen!==this.generation)return result.ok;let current=this.snapshot.plan??plan,stillPending=/* @__PURE__ */Object.freeze(this.snapshot.pending.filter(id=>id!==productId));if(!result.ok)return this.set({plan:withItem(current,productId,before.inPlan),pending:stillPending,itemErrors:/* @__PURE__ */Object.freeze({...this.snapshot.itemErrors,[productId]:result.error})}),this.settleWrite(),false;let next=result.value??current;for(let id of stillPending){let mine=current.items.find(item=>item.productId===id);mine!==void 0&&(next=withItem(next,id,mine.inPlan))}return this.set({plan:next,pending:stillPending}),this.settleWrite(),true}dispose(){this.generation+=1,this.disposed=true,this.listeners.clear()}};async function readHealthPlanOrders(repo,petRef,cursor){if(repo.listOneBoxOrderPage!==void 0)return repo.listOneBoxOrderPage(petRef,{limit:20,...{}});if(repo.listOneBoxOrders===void 0)return{ok:true,value:{orders:[],nextCursor:null}};let res=await repo.listOneBoxOrders(petRef);return res.ok?{ok:true,value:{orders:res.value,nextCursor:null}}:res}function errorFrame(fields){/* @__PURE__ */
|
|
7
|
-
return Object.freeze({kind:"error",terminal:true,code:fields.code,retryable:fields.retryable,wireMessage:fields.wireMessage,synthesized:fields.synthesized,lastEventId:fields.lastEventId,serverRequestId:null})}function mintFailedError(cause,refusal){let message=cause instanceof Error?cause.message:typeof cause=="string"?cause:null;return makeEverfurError("authRejected",{retryable:false,...refusal?.wireCode?{wireCode:refusal.wireCode}:{},...refusal?.requestId?{requestId:refusal.requestId}:{},...message?{wireMessage:message}:{},...cause!=null?{raw:cause}:{}})}function authHeaders(auth){let headers={};return auth.mode==="personalized"?headers.authorization=`Bearer ${auth.token}`:headers["x-everfur-partner-key"]=auth.publishableKey,auth.userRef&&(headers["x-everfur-user-ref"]=auth.userRef),auth.sessionId&&(headers["x-everfur-session-id"]=auth.sessionId),headers}function withAuthHeaders(req,auth){return{...req,headers:{...stripAuthHeaders(req.headers),...authHeaders(auth)}}}function stripAuthHeaders(headers){if(!headers)return{};let out={};for(let[key,value]of Object.entries(headers)){let lower=key.toLowerCase();lower==="authorization"||lower==="x-everfur-partner-key"||(out[key]=value)}return out}async function authedSend(req,ctx){if(ctx.mode==="anonymous")return ctx.transport.request(withAuthHeaders(req,{mode:"anonymous",publishableKey:ctx.publishableKey,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));let token;try{token=await ctx.identity.currentToken()}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause))}let first=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:token,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));if(first.ok||first.error.httpStatus!==401)return first;let refreshed;try{refreshed=await ctx.identity.currentToken({forceRefresh:!0})}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause,{wireCode:wireCodeOf(first.error.raw),requestId:first.error.requestId}))}let retry=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:refreshed,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));return!retry.ok&&retry.error.httpStatus===401?(ctx.identity.reportRejected?.(),err(refusedAfterRemintError(retry.error))):retry}function refusedAfterRemintError(refusal){let raw=refusal.raw,wireCode=wireCodeOf(raw);return makeEverfurError("authRejected",{retryable:false,...refusal.httpStatus!==void 0?{httpStatus:refusal.httpStatus}:{},...refusal.requestId?{requestId:refusal.requestId}:{},...wireCode?{wireCode:wireCode}:{},...refusal.reasonCode?{reasonCode:refusal.reasonCode}:{},...refusal.wireMessage?{wireMessage:refusal.wireMessage}:{},...raw!=null?{raw:raw}:{}})}function wireCodeOf(body){if(typeof body!="object"||body===null)return null;let b=body,code=(typeof b.error=="object"&&b.error!==null?b.error.code:void 0)??b.code;return typeof code=="string"&&code.length>0?code:null}function parseUrl(raw,base3){let Url=globalThis.URL;if(typeof Url=="function"){let url;try{url=base3===void 0?new Url(raw):new Url(raw,base3)}catch{return null}try{if(url.protocol)return url}catch{}}return parseByPattern(raw)}var WHOLE_URL=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,REWRITTEN_BY_STANDARD_PARSER=/[\s\u0000-\u001f\u007f\\]/,DEFAULT_PORTS={"http:":"80","https:":"443"};function parseByPattern(raw,base3){let input=raw.trim();let match=REWRITTEN_BY_STANDARD_PARSER.test(input)?null:WHOLE_URL.exec(input);if(match===null)return null;let[,scheme="",username="",password="",host2="",portText="",path="",query="",fragment=""]=match,protocol=`${scheme.toLowerCase()}:`,portNumber=Number(portText);if(portNumber>65535)return null;let port=portText===""||String(portNumber)===DEFAULT_PORTS[protocol]?"":String(portNumber),special=DEFAULT_PORTS[protocol]!==void 0,hostPort=host2.toLowerCase()+(port&&`:${port}`),pathname=path||(special?"/":""),credentials=username||password?`${username}${password&&`:${password}`}@`:"";return{href:`${protocol}//${credentials}${hostPort}${pathname}${query}${fragment}`,protocol:protocol,username:username,password:password,hostname:host2.toLowerCase(),port:port,origin:special?`${protocol}//${hostPort}`:"null",pathname:pathname,search:query==="?"?"":query,hash:fragment==="#"?"":fragment}}function networkError(cause){return makeEverfurError("internalError",{retryable:true,wireMessage:describeCause(cause)})}function describeCause(cause){return cause instanceof Error?cause.message:typeof cause=="string"?cause:"network request failed"}var FUNNEL_UNARY_TIMEOUT_MS=3e4,RETRY_OVERRIDE_MAX_MS=BACKOFF_CAP_MS*2,IDEMPOTENCY_HEADER="idempotency-key",MUTATING_METHODS=/* @__PURE__ */new Set(["POST","PUT","PATCH","DELETE"]),NOOP_OBSERVER=/* @__PURE__ */Object.freeze({onEvent(){}}),defaultFunnelTimers=/* @__PURE__ */Object.freeze({setTimeout:(handler,ms)=>setTimeout(handler,ms),clearTimeout:handle=>clearTimeout(handle),now:()=>Date.now()});function seededIdempotencyKey(seed){let safe=seed.trim().replace(/[^A-Za-z0-9_.:-]/g,"-");return safe.length===0?null:`efs_${safe}`.slice(0,128)}function createRequestFunnel(deps){let observer=deps.observer??NOOP_OBSERVER,timers=deps.timers??defaultFunnelTimers,rng=deps.rng??Math.random,sleep=deps.sleep??((ms,signal)=>delayAbortable(ms,timers,signal)),ceiling=deps.maxAttempts??MAX_RETRY_ATTEMPTS,timeoutMs=deps.unaryTimeoutMs??FUNNEL_UNARY_TIMEOUT_MS,mintKey=deps.newIdempotencyKey??defaultIdempotencyKeyFactory(),emit=event=>{try{observer.onEvent(event)}catch{}};async function send(call,req,opts){let perCallMaxAttempts=opts?.maxAttempts,maxAttempts=Math.max(1,perCallMaxAttempts??ceiling),idempotent=opts?.idempotent??MUTATING_METHODS.has(req.method),seeded=opts?.idempotencyKey===void 0?null:seededIdempotencyKey(opts.idempotencyKey),idempotencyKey=idempotent?seeded??mintKey():null,base3=assembleHeaders(req,idempotencyKey),attempt=0;for(;;){let stamp=extra=>/* @__PURE__ */Object.freeze({call:call,method:req.method,path:req.path,attempt:attempt,...idempotencyKey?{idempotencyKey:idempotencyKey}:{},...extra});emit(stamp({phase:"attempt"}));let deadline=boundedSignal(timeoutMs,timers),merged=mergeSignals(deadline.signal,req.signal),settled;try{settled=await authedSend({...base3,signal:merged.signal},deps.auth)}catch(cause){settled=err(networkError(cause))}finally{merged.dispose(),deadline.cancel()}if(settled.ok)return emit(stamp({phase:"settled",ok:true,reason:"ok"})),settled;let error=settled.error,decision=decideRetry(error,attempt,{maxAttempts:maxAttempts,rng:rng,now:timers.now(),aborted:req.signal?.aborted===true,...perCallMaxAttempts!==void 0?{perCallMaxAttempts:perCallMaxAttempts}:{},...deps.errorPolicy!==void 0?{policy:deps.errorPolicy}:{}}),settledEvent={ok:false,code:error.code,reason:decision.reason,...error.httpStatus!==void 0?{httpStatus:error.httpStatus}:{},...error.requestId!==void 0?{requestId:error.requestId}:{}};if(!decision.retry)return emit(stamp({phase:"settled",...settledEvent})),err(error);if(emit(stamp({phase:"retry",...settledEvent,delayMs:decision.delayMs})),await sleep(decision.delayMs,req.signal),req.signal?.aborted===true)return emit(stamp({phase:"settled",...settledEvent,reason:"aborted"})),err(error);attempt+=1}}async function authorize(req){return withAuthHeaders(req,await resolveDeviceAuth(deps.auth))}async function*stream(call,req,signal){emit(
|
|
7
|
+
return Object.freeze({kind:"error",terminal:true,code:fields.code,retryable:fields.retryable,wireMessage:fields.wireMessage,synthesized:fields.synthesized,lastEventId:fields.lastEventId,serverRequestId:null,...fields.freeCap?{freeCap:/* @__PURE__ */Object.freeze({...fields.freeCap})}:{}})}function mintFailedError(cause,refusal){let message=cause instanceof Error?cause.message:typeof cause=="string"?cause:null;return makeEverfurError("authRejected",{retryable:false,...refusal?.wireCode?{wireCode:refusal.wireCode}:{},...refusal?.requestId?{requestId:refusal.requestId}:{},...message?{wireMessage:message}:{},...cause!=null?{raw:cause}:{}})}function authHeaders(auth){let headers={};return auth.mode==="personalized"?headers.authorization=`Bearer ${auth.token}`:headers["x-everfur-partner-key"]=auth.publishableKey,auth.userRef&&(headers["x-everfur-user-ref"]=auth.userRef),auth.sessionId&&(headers["x-everfur-session-id"]=auth.sessionId),headers}function withAuthHeaders(req,auth){return{...req,headers:{...stripAuthHeaders(req.headers),...authHeaders(auth)}}}function stripAuthHeaders(headers){if(!headers)return{};let out={};for(let[key,value]of Object.entries(headers)){let lower=key.toLowerCase();lower==="authorization"||lower==="x-everfur-partner-key"||(out[key]=value)}return out}async function authedSend(req,ctx){if(ctx.mode==="anonymous")return ctx.transport.request(withAuthHeaders(req,{mode:"anonymous",publishableKey:ctx.publishableKey,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));let token;try{token=await ctx.identity.currentToken()}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause))}let first=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:token,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));if(first.ok||first.error.httpStatus!==401)return first;let refreshed;try{refreshed=await ctx.identity.currentToken({forceRefresh:!0})}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause,{wireCode:wireCodeOf(first.error.raw),requestId:first.error.requestId}))}let retry=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:refreshed,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));return!retry.ok&&retry.error.httpStatus===401?(ctx.identity.reportRejected?.(),err(refusedAfterRemintError(retry.error))):retry}function refusedAfterRemintError(refusal){let raw=refusal.raw,wireCode=wireCodeOf(raw);return makeEverfurError("authRejected",{retryable:false,...refusal.httpStatus!==void 0?{httpStatus:refusal.httpStatus}:{},...refusal.requestId?{requestId:refusal.requestId}:{},...wireCode?{wireCode:wireCode}:{},...refusal.reasonCode?{reasonCode:refusal.reasonCode}:{},...refusal.wireMessage?{wireMessage:refusal.wireMessage}:{},...raw!=null?{raw:raw}:{}})}function wireCodeOf(body){if(typeof body!="object"||body===null)return null;let b=body,code=(typeof b.error=="object"&&b.error!==null?b.error.code:void 0)??b.code;return typeof code=="string"&&code.length>0?code:null}function parseUrl(raw,base3){let Url=globalThis.URL;if(typeof Url=="function"){let url;try{url=base3===void 0?new Url(raw):new Url(raw,base3)}catch{return null}try{if(url.protocol)return url}catch{}}return parseByPattern(raw)}var WHOLE_URL=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,REWRITTEN_BY_STANDARD_PARSER=/[\s\u0000-\u001f\u007f\\]/,DEFAULT_PORTS={"http:":"80","https:":"443"};function parseByPattern(raw,base3){let input=raw.trim();let match=REWRITTEN_BY_STANDARD_PARSER.test(input)?null:WHOLE_URL.exec(input);if(match===null)return null;let[,scheme="",username="",password="",host2="",portText="",path="",query="",fragment=""]=match,protocol=`${scheme.toLowerCase()}:`,portNumber=Number(portText);if(portNumber>65535)return null;let port=portText===""||String(portNumber)===DEFAULT_PORTS[protocol]?"":String(portNumber),special=DEFAULT_PORTS[protocol]!==void 0,hostPort=host2.toLowerCase()+(port&&`:${port}`),pathname=path||(special?"/":""),credentials=username||password?`${username}${password&&`:${password}`}@`:"";return{href:`${protocol}//${credentials}${hostPort}${pathname}${query}${fragment}`,protocol:protocol,username:username,password:password,hostname:host2.toLowerCase(),port:port,origin:special?`${protocol}//${hostPort}`:"null",pathname:pathname,search:query==="?"?"":query,hash:fragment==="#"?"":fragment}}function networkError(cause){return makeEverfurError("internalError",{retryable:true,wireMessage:describeCause(cause)})}function describeCause(cause){return cause instanceof Error?cause.message:typeof cause=="string"?cause:"network request failed"}var FUNNEL_UNARY_TIMEOUT_MS=3e4,RETRY_OVERRIDE_MAX_MS=BACKOFF_CAP_MS*2,IDEMPOTENCY_HEADER="idempotency-key",MUTATING_METHODS=/* @__PURE__ */new Set(["POST","PUT","PATCH","DELETE"]),NOOP_OBSERVER=/* @__PURE__ */Object.freeze({onEvent(){}}),defaultFunnelTimers=/* @__PURE__ */Object.freeze({setTimeout:(handler,ms)=>setTimeout(handler,ms),clearTimeout:handle=>clearTimeout(handle),now:()=>Date.now()});function seededIdempotencyKey(seed){let safe=seed.trim().replace(/[^A-Za-z0-9_.:-]/g,"-");return safe.length===0?null:`efs_${safe}`.slice(0,128)}function createRequestFunnel(deps){let observer=deps.observer??NOOP_OBSERVER,timers=deps.timers??defaultFunnelTimers,rng=deps.rng??Math.random,sleep=deps.sleep??((ms,signal)=>delayAbortable(ms,timers,signal)),ceiling=deps.maxAttempts??MAX_RETRY_ATTEMPTS,timeoutMs=deps.unaryTimeoutMs??FUNNEL_UNARY_TIMEOUT_MS,mintKey=deps.newIdempotencyKey??defaultIdempotencyKeyFactory(),emit=event=>{try{observer.onEvent(event)}catch{}};async function send(call,req,opts){let perCallMaxAttempts=opts?.maxAttempts,maxAttempts=Math.max(1,perCallMaxAttempts??ceiling),idempotent=opts?.idempotent??MUTATING_METHODS.has(req.method),seeded=opts?.idempotencyKey===void 0?null:seededIdempotencyKey(opts.idempotencyKey),idempotencyKey=idempotent?seeded??mintKey():null,base3=assembleHeaders(req,idempotencyKey),attempt=0;for(;;){let stamp=extra=>/* @__PURE__ */Object.freeze({call:call,method:req.method,path:req.path,attempt:attempt,...idempotencyKey?{idempotencyKey:idempotencyKey}:{},...extra});emit(stamp({phase:"attempt"}));let deadline=boundedSignal(timeoutMs,timers),merged=mergeSignals(deadline.signal,req.signal),settled;try{settled=await authedSend({...base3,signal:merged.signal},deps.auth)}catch(cause){settled=err(networkError(cause))}finally{merged.dispose(),deadline.cancel()}if(settled.ok)return emit(stamp({phase:"settled",ok:true,reason:"ok"})),settled;let error=settled.error,decision=decideRetry(error,attempt,{maxAttempts:maxAttempts,rng:rng,now:timers.now(),aborted:req.signal?.aborted===true,...perCallMaxAttempts!==void 0?{perCallMaxAttempts:perCallMaxAttempts}:{},...deps.errorPolicy!==void 0?{policy:deps.errorPolicy}:{}}),settledEvent={ok:false,code:error.code,reason:decision.reason,...error.httpStatus!==void 0?{httpStatus:error.httpStatus}:{},...error.requestId!==void 0?{requestId:error.requestId}:{}};if(!decision.retry)return emit(stamp({phase:"settled",...settledEvent})),err(error);if(emit(stamp({phase:"retry",...settledEvent,delayMs:decision.delayMs})),await sleep(decision.delayMs,req.signal),req.signal?.aborted===true)return emit(stamp({phase:"settled",...settledEvent,reason:"aborted"})),err(error);attempt+=1}}async function authorize(req){return withAuthHeaders(req,await resolveDeviceAuth(deps.auth))}async function*stream(call,req,signal){emit(
|
|
8
8
|
/* @__PURE__ */Object.freeze({call:call,phase:"stream.open",method:req.method,path:req.path,attempt:0}));try{yield*deps.auth.transport.stream(req,signal)}catch{yield errorFrame({code:"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null})}}/* @__PURE__ */
|
|
9
9
|
return Object.freeze({send:send,authorize:authorize,stream:stream})}function assembleHeaders(req,idempotencyKey){let headers={};for(let[key,value]of Object.entries(req.headers??{}))key.toLowerCase()!==IDEMPOTENCY_HEADER&&(headers[key]=value);return idempotencyKey!==null&&(headers["Idempotency-Key"]=idempotencyKey),{...req,headers:headers}}function defaultIdempotencyKeyFactory(){let counter=0;return()=>`efk_${Date.now().toString(36)}_${(counter++).toString(36)}_${Math.random().toString(36).slice(2,12)}`}var POLICY_MAX_ATTEMPTS_CAP=10;function decideRetry(error,attempt,ctx){if(ctx.aborted)return{retry:false,reason:"aborted"};let throttle=throttleKind(error);if(throttle==="quota")return{retry:false,reason:"daily-quota-exhausted"};if(throttle!=="burst"&&!isAutoRetryable(error.code))return{retry:false,reason:"terminal-code"};let reason=throttle==="burst"?"burst-throttle":"retryable-code";if((()=>{if(ctx.policy===void 0)return false;try{return!ctx.policy.shouldRetry(error.code,attempt)}catch{return false}})())return{retry:false,reason:"terminal-code"};let policyCeiling=()=>{if(ctx.policy===void 0)return null;let raw;try{raw=ctx.policy.maxAttempts(error.code)}catch{return null}return typeof raw!="number"||!Number.isFinite(raw)?null:Math.max(1,Math.min(POLICY_MAX_ATTEMPTS_CAP,Math.floor(raw)))},ceiling=ctx.perCallMaxAttempts??policyCeiling()??ctx.maxAttempts;if(attempt+1>=ceiling)return{retry:false,reason:"attempts-exhausted"};let override=retryOverrideMs(error,ctx.now);return override!==null?override>RETRY_OVERRIDE_MAX_MS?{retry:false,reason:"server-reset-beyond-budget"}:{retry:true,reason:reason,delayMs:override}:{retry:true,reason:reason,delayMs:backoffDelayMs(attempt,ctx.rng)}}function throttleKind(error){let code=error.code==="unknown"?fromWire(rawWireCode(error.raw)):error.code;return code==="quotaExceeded"?"quota":code==="rateLimited"||error.httpStatus===429?"burst":null}function retryOverrideMs(error,now){let at=findResetsAt(error.raw);if(at!==null){let delta=at-now;return delta>0?delta:0}let wait=findRetryAfterSeconds(error.raw);return wait===null?null:Math.round(wait*1e3)}function findRetryAfterSeconds(raw){for(let scope of candidateScopes(raw)){let value=scope.retry_after_seconds;if(typeof value=="number"&&Number.isFinite(value)&&value>=0)return value}return null}function findResetsAt(raw){for(let scope of candidateScopes(raw)){let value=scope.resets_at,parsed=parseInstantMs(value);if(parsed!==null)return parsed}return null}function candidateScopes(raw){if(!isRecord(raw))return[];let out=[raw];for(let nested of["error","detail"]){let value=raw[nested];isRecord(value)&&out.push(value)}return out}function parseInstantMs(value){if(typeof value=="number"&&Number.isFinite(value))return value<1e11?Math.round(value*1e3):Math.round(value);if(typeof value=="string"&&value.trim().length>0){let parsed=Date.parse(value);return Number.isFinite(parsed)?parsed:null}return null}function rawWireCode(raw){for(let scope of candidateScopes(raw)){let code=scope.code;if(typeof code=="string"&&code.length>0)return code}return null}function isRecord(value){return typeof value=="object"&&value!==null}async function resolveDeviceAuth(auth){return auth.mode==="anonymous"?{mode:"anonymous",publishableKey:auth.publishableKey,userRef:auth.userRef,...auth.sessionId?{sessionId:auth.sessionId}:{}}:{mode:"personalized",token:await auth.identity.currentToken(),userRef:auth.userRef,...auth.sessionId?{sessionId:auth.sessionId}:{}}}function boundedSignal(ms,timers){let ctrl=new AbortController,handle=timers.setTimeout(()=>ctrl.abort(),ms);return{signal:ctrl.signal,cancel:()=>timers.clearTimeout(handle)}}function mergeSignals(deadline,caller){let noop=()=>{};if(!caller)return{signal:deadline,dispose:noop};let ctrl=new AbortController;if(deadline.aborted||caller.aborted)return ctrl.abort(),{signal:ctrl.signal,dispose:noop};let onAbort=()=>ctrl.abort();return deadline.addEventListener("abort",onAbort,{once:true}),caller.addEventListener("abort",onAbort,{once:true}),{signal:ctrl.signal,dispose:()=>{deadline.removeEventListener("abort",onAbort),caller.removeEventListener("abort",onAbort)}}}function delayAbortable(ms,timers,signal){return ms<=0||signal?.aborted===true?Promise.resolve():new Promise(resolve=>{let handle=timers.setTimeout(()=>{signal?.removeEventListener("abort",onAbort),resolve()},ms),onAbort=()=>{timers.clearTimeout(handle),resolve()};signal?.addEventListener("abort",onAbort,{once:true})})}var HEALTH_PLAN_REASON_KINDS=/* @__PURE__ */Object.freeze(["dna","records","inside","profile"]),REF_MAX=128;function invalid(wireMessage){return makeEverfurError("validationFailed",{retryable:false,wireMessage:wireMessage})}function disposed(verb){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${verb} was called after unmount`})}function malformed(call){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${call}: the response carried no plan`})}var str=(value,max=4e3)=>typeof value=="string"&&value.trim().length>0&&value.length<=max?value.trim():null;function httpsUrl(value){let s=str(value,2048);return s===null?null:/^https:\/\/[^\s]+$/i.test(s)?s:null}function priceOf(value){let n=typeof value=="number"?value:typeof value=="string"&&/^\d+(\.\d+)?$/.test(value.trim())?Number(value):Number.NaN;return Number.isFinite(n)&&n>=0?n:null}function currencyOf(value){return typeof value=="string"&&/^[A-Za-z]{3}$/.test(value)?value.toUpperCase():null}function reasonsOf(value){if(!Array.isArray(value))/* @__PURE__ */return Object.freeze([]);let out=[];for(let raw of value){if(raw===null||typeof raw!="object")continue;let o=raw,text=str(o.text,1e3);if(text===null)continue;let kind=typeof o.kind=="string"&&HEALTH_PLAN_REASON_KINDS.includes(o.kind)?o.kind:"profile";out.push(/* @__PURE__ */Object.freeze({kind:kind,text:text}))}/* @__PURE__ */
|
|
10
10
|
return Object.freeze(out)}var DETAIL_ROWS=6;function boundOf(value){return typeof value=="number"&&Number.isFinite(value)&&value>=0&&value<=400?value:null}function rowsOf(value,each,max){if(!Array.isArray(value))/* @__PURE__ */return Object.freeze([]);let out=[];for(let raw of value){if(out.length>=max)break;if(raw===null||typeof raw!="object"||Array.isArray(raw))continue;let row=each(raw);row!==null&&out.push(row)}/* @__PURE__ */
|
|
@@ -24,14 +24,15 @@ return Object.freeze({reason:userFacingError("accessDenied"),level:"user_entitle
|
|
|
24
24
|
return Object.freeze(out)}function copyOf(raw){let out={};for(let[key,entry]of Object.entries(raw)){let text=typeof entry=="string"?entry:entry!==null&&typeof entry=="object"?entry.text:void 0;typeof text=="string"&&text.length<=500&&isPlainText(text)&&(out[key]=text)}/* @__PURE__ */
|
|
25
25
|
return Object.freeze(out)}function parseSlotDoc(raw,slot){if(sizeOf(raw)>65536)return{ok:false,reason:"too_large"};let refusal=schemaRefusal(raw);if(refusal!==null)return{ok:false,reason:refusal};let d=raw,docSlot=str4(d.slot,3,64),docVersion=d.docVersion===void 0||d.docVersion===null?null:int2(d.docVersion,1,Number.MAX_SAFE_INTEGER),minBlocks=d.minBlocks===void 0?1:int2(d.minBlocks,0,50),theme=d.theme===void 0||d.theme===null?{}:rec(d.theme),tokens=theme===BAD?BAD:rec(theme.tokens),copy=rec(d.copy),parts=Array.isArray(d.parts)&&d.parts.length>=1&&d.parts.length<=50?d.parts.map(readPart):BAD;return docSlot===BAD||docVersion===BAD||minBlocks===BAD||tokens===BAD||copy===BAD?{ok:false,reason:"unparseable"}:parts===BAD||parts.some(p=>p===BAD)?{ok:false,reason:"unparseable"}:docSlot!==slot?{ok:false,reason:"wrong_slot"}:{ok:true,doc:/* @__PURE__ */Object.freeze({schema:SLOT_SCHEMA,slot:docSlot,docVersion:docVersion,minBlocks:minBlocks,tokens:tokensOf(tokens),parts:/* @__PURE__ */Object.freeze(parts),copy:copyOf(copy)})}}function slotBodyOf(body){if(body===null)return{ok:false,reason:"too_large"};if(typeof body!="string")return{ok:true,raw:body};if(body.length>65536||utf8Length(body)>65536)return{ok:false,reason:"too_large"};try{return{ok:!0,raw:JSON.parse(body)}}catch{return{ok:false,reason:"unparseable"}}}function part(p){/* @__PURE__ */
|
|
26
26
|
return Object.freeze({settings:{},bind:{},actions:{},...p})}var SLOT_NAMED_PARTS=/* @__PURE__ */Object.freeze({focus:part({id:"focus",type:"PlanNeedCard",variant:"plan",bind:{title:"data:plan.needs"}}),needs:part({id:"needs",type:"PlanNeedCard",variant:"standard",repeat:"data:plan.needs"}),tips:part({id:"tips",type:"TipCard",variant:"plan",repeat:"data:plan.tips"}),shelf:part({id:"shelf",type:"ProductTile",variant:"standard",repeat:"data:plan.items"}),cartLines:part({id:"cart-lines",type:"CartLine",variant:"plan",repeat:"data:cart.lines"}),cartSummary:part({id:"cart-summary",type:"PriceSummary",bind:{rows:"data:cart.summary"},visibleIf:{source:"data:cart.summary",op:"present"}}),orders:part({id:"orders",type:"OrderRow",variant:"quiet",repeat:"data:orders.recent"})});function doc(slot,parts){/* @__PURE__ */
|
|
27
|
-
return Object.freeze({schema:SLOT_SCHEMA,slot:slot,docVersion:null,minBlocks:1,tokens:{},parts:/* @__PURE__ */Object.freeze([...parts]),copy:{}})}var P=SLOT_NAMED_PARTS,BUNDLED_SLOT_DOCS=/* @__PURE__ */Object.freeze({"health_plan.focus":doc("health_plan.focus",[P.focus,P.tips]),"today.health":doc("today.health",[P.focus,P.tips]),"shop.shelf":doc("shop.shelf",[P.shelf]),"shop.cart":doc("shop.cart",[P.cartLines,P.cartSummary]),"shop.orders":doc("shop.orders",[P.orders])});function bundledSlotDoc(slot){return Object.prototype.hasOwnProperty.call(BUNDLED_SLOT_DOCS,slot)?BUNDLED_SLOT_DOCS[slot]??null:null}function namedPartDoc(name){return doc(`part.${name.toLowerCase()}`,[SLOT_NAMED_PARTS[name]])}function toRgba(value){if(typeof value=="number")return argbIntToRgba(value);if(typeof value!="string")return null;let s=value.trim();if(s.length===0)return null;if(s.startsWith("#"))return fromHex(s.slice(1));if(s.toLowerCase().startsWith("0x"))return fromHex(s.slice(2));if(s.toLowerCase().startsWith("rgb"))return fromRgbFunc(s);if(/^[0-9a-fA-F]+$/.test(s)){let hex=fromHex(s);if(hex!==null)return hex}return/^\d+$/.test(s)?argbIntToRgba(Number.parseInt(s,10)):null}function fromHex(hex){let h=hex.trim();if(!/^[0-9a-fA-F]+$/.test(h))return null;if(h.length===3)return{r:dup(h[0]),g:dup(h[1]),b:dup(h[2]),a:1};if(h.length===6)return{r:byte(h,0),g:byte(h,2),b:byte(h,4),a:1};if(h.length===8){let a=byte(h,0);return{r:byte(h,2),g:byte(h,4),b:byte(h,6),a:a/255}}return null}function fromRgbFunc(input){let open=input.indexOf("("),close=input.indexOf(")");if(open<0||close<0||close<open)return null;let parts=input.slice(open+1,close).split(",").map(p=>p.trim());if(parts.length<3)return null;let r=clampByte(Number(parts[0])),g=clampByte(Number(parts[1])),b=clampByte(Number(parts[2]));if(r===null||g===null||b===null)return null;let a=1;if(parts.length>=4){let alpha=Number(parts[3]);if(!Number.isFinite(alpha))return null;a=Math.min(1,Math.max(0,alpha))}return{r:r,g:g,b:b,a:a}}function argbIntToRgba(n){if(!Number.isFinite(n))return null;let int3=Math.trunc(n)>>>0,a=int3>>>24&255;return{r:int3>>>16&255,g:int3>>>8&255,b:int3&255,a:a===0?1:a/255}}function byte(hex,at){return Number.parseInt(hex.slice(at,at+2),16)}function dup(nibble){return Number.parseInt(`${nibble??"0"}${nibble??"0"}`,16)}function clampByte(n){return Number.isFinite(n)?Math.min(255,Math.max(0,Math.round(n))):null}function rgbToHex(r,g,b){return`#${hex2(r)}${hex2(g)}${hex2(b)}`.toUpperCase()}function hex2(n){return n.toString(16).padStart(2,"0")}var NEAR_BLACK="#111111",WHITE="#FFFFFF",BLACK="#000000";function readableOn(background){let rgba=toRgba(background);if(rgba===null)return WHITE;let bg=relativeLuminance(rgba),black=relativeLuminance({r:17,g:17,b:17}),white=relativeLuminance({r:255,g:255,b:255});return luminanceContrast(bg,white)>=luminanceContrast(bg,black)?WHITE:NEAR_BLACK}function legibleOn(background,target){let first=readableOn(background);return contrastRatio(first,background)>=target?first:contrastRatio(WHITE,background)>=contrastRatio(BLACK,background)?WHITE:BLACK}function poleForGrounds(grounds){let worst=ink=>grounds.reduce((low,ground)=>Math.min(low,contrastRatio(ink,ground)),Number.POSITIVE_INFINITY);return worst(WHITE)>=worst(BLACK)?WHITE:BLACK}function relativeLuminance(rgba){let r=linearize(rgba.r/255),g=linearize(rgba.g/255),b=linearize(rgba.b/255);return.2126*r+.7152*g+.0722*b}function linearize(channel){return channel<=.03928?channel/12.92:Math.pow((channel+.055)/1.055,2.4)}function luminanceContrast(l1,l2){let lighter=Math.max(l1,l2),darker=Math.min(l1,l2);return(lighter+.05)/(darker+.05)}function contrastRatio(a,b){let fg=toRgba(a),bg=toRgba(b);if(fg===null||bg===null)return 1;let ground=bg.a>=1?bg:{...bg},fore=fg.a>=1?fg:composite(fg,ground);return luminanceContrast(relativeLuminance(fore),relativeLuminance(ground))}function composite(fg,bg){let a=fg.a,mix=(f,g)=>Math.round(f*a+g*(1-a));return{r:mix(fg.r,bg.r),g:mix(fg.g,bg.g),b:mix(fg.b,bg.b),a:1}}function flattenOnto(color,background){let fg=toRgba(color),bg=toRgba(background);if(fg===null||bg===null)return null;let out=fg.a>=1?fg:composite(fg,{...bg});return rgbToHex(out.r,out.g,out.b)}var PUSH_STEP=.05;function pushToContrast(color,grounds,pole,target){let first=grounds[0];if(first===void 0)return pole;let reads=candidate=>grounds.every(ground=>contrastRatio(candidate,ground)>=target);if(toRgba(color)===null)return pole;if(reads(color))return color;let flat=flattenOnto(color,first),from=flat===null?null:toRgba(flat),to=toRgba(pole);if(from===null||to===null)return pole;for(let step=1;step<1/PUSH_STEP;step+=1){let t=step*PUSH_STEP,mix=(a,b)=>Math.round(a+(b-a)*t),candidate=rgbToHex(mix(from.r,to.r),mix(from.g,to.g),mix(from.b,to.b));if(reads(candidate))return candidate}return pole}var TYPE_ROLE_DEFAULTS=/* @__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 freezeInPlace=Object.freeze;function deepFreeze(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value)){freezeInPlace(value);for(let key of Object.keys(value))deepFreeze(value[key])}return value}var TEXT_SCALE_TIER_CAPS=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var SPACE={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},RADIUS={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},TYPE_SIZE={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},LINE_HEIGHT={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},WEIGHT={regular:"400",medium:"500",bold:"700"},LETTER_SPACING={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},DEFAULT_MAX_FONT_SCALE=0,SYSTEM_FONT_FAMILY="System",SYSTEM_MONO_FAMILY="monospace",TIERS=["content","heading","control","compact","badge"];function authoredTierSizes(size){let out={};for(let tier of TIERS)out[tier]=size;return out}var NO_FONT_SOURCES=[];function baseType(){return{family:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,fontUrl:null,families:{regular:SYSTEM_FONT_FAMILY,medium:SYSTEM_FONT_FAMILY,bold:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,monoMedium:SYSTEM_MONO_FAMILY,monoBold:SYSTEM_MONO_FAMILY},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:TYPE_SIZE,tierSizes:authoredTierSizes(TYPE_SIZE),lineHeight:LINE_HEIGHT,weight:WEIGHT,letterSpacing:LETTER_SPACING,scale:1,maxScale:DEFAULT_MAX_FONT_SCALE,scaleCaps:TEXT_SCALE_TIER_CAPS,headingFamily:null,headingWeight:null,fontSources:NO_FONT_SOURCES,roles:TYPE_ROLE_DEFAULTS,typeScale:1}}var NO_SLOTS={},EASING_CURVES=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(curve){return`cubic-bezier(${curve.join(", ")})`}var MOTION={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(EASING_CURVES.standard),emphasized:cssCubicBezier(EASING_CURVES.emphasized),exit:cssCubicBezier(EASING_CURVES.exit)},reducedMotion:false},LIGHT_COLOR={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},EVERFUR_LIGHT=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:LIGHT_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS}),DARK_COLOR={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},EVERFUR_DARK=deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:DARK_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS});function utf8Bytes(text){let out=[];for(let ch of text){let cp=ch.codePointAt(0);cp<128?out.push(cp):cp<2048?out.push(192|cp>>6,128|cp&63):cp<65536?out.push(224|cp>>12,128|cp>>6&63,128|cp&63):out.push(240|cp>>18,128|cp>>12&63,128|cp>>6&63,128|cp&63)}return out}function fnv1a64Hex(text){let hi=3421674724,lo=2216829733;for(let byte2 of utf8Bytes(text)){lo=(lo^byte2)>>>0;let loProduct=lo*435,carry=Math.floor(loProduct/4294967296),nextLo=loProduct>>>0;hi=hi*435+carry+lo*256>>>0,lo=nextLo}return hi.toString(16).padStart(8,"0")+lo.toString(16).padStart(8,"0")}var tenants=/* @__PURE__ */new WeakMap;function runtimeTenantOf(runtime){return tenants.get(runtime)}var SLOT_REGISTRY_HASH="sha256-0IDdNTQTtW2+pJ9GBCa/aWJrH/lf2X2jHhTQaCt6g5E=";var SLOT_BLOCKS={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 SLOT_LKG_KEY="everfur.slots.v2",SLOT_INSTALL_ID_KEY="everfur.slots.installId.v2";var SLOT_CACHE_MS=6e4,SLOT_CACHE_MAX_MS=3e5,SLOT_FAILURE_MS=15e3,SLOT_LKG_MAX_AGE_MS=10080*60*1e3,ETAG=/^(W\/)?"[^"]{1,200}"$/,INSTALL_ID=/^[A-Za-z0-9_-]{8,128}$/,MAX_AGE=/(?:^|,)\s*max-age\s*=\s*"?(\d{1,10})"?\s*(?:,|$)/i,NO_STORE2=/(?:^|,)\s*(?:no-store|no-cache)\s*(?:,|$)/i,FIXED_SCOPE=/* @__PURE__ */Object.freeze({doc:"default",tenant:"default",epoch:0});function randomId(){let out="";for(let i=0;i<4;i++)out+=Math.floor(Math.random()*4294967296).toString(36).padStart(7,"0");return out}function slotCacheMs(cacheControl){if(cacheControl===null)return SLOT_CACHE_MS;if(NO_STORE2.test(cacheControl))return 0;let m=MAX_AGE.exec(cacheControl);return m===null?SLOT_CACHE_MS:Math.min(Number(m[1])*1e3,SLOT_CACHE_MAX_MS)}var has=(obj2,key)=>Object.prototype.hasOwnProperty.call(obj2,key);function createSlotClient(deps){let now=deps.now??Date.now,scopeOf=()=>{try{return deps.scope?.()??FIXED_SCOPE}catch{return FIXED_SCOPE}},memory=/* @__PURE__ */new Map,failures=/* @__PURE__ */new Map,inFlight=/* @__PURE__ */new Map,installId=null,epoch=null,rescoped=false,writes=Promise.resolve(),track=(event,props)=>{try{deps.telemetry?.track(event,props)}catch{}},observe=scope=>{epoch!==scope.epoch&&(epoch!==null&&(memory.clear(),failures.clear(),installId=null,rescoped=true),epoch=scope.epoch)},stale=scope=>{let current=scopeOf();return current.epoch!==scope.epoch||current.doc!==scope.doc},undoIfStale=async(scope,key,written)=>{if(!stale(scope))return false;try{await deps.kv.getItem(key)===written&&await deps.kv.removeItem(key)}catch{}return true},readInstallId=scope=>{let tenant=fnv1a64Hex(scope.tenant);if(installId?.tenant===tenant)return installId.id;let fresh2=rescoped;rescoped=false;let id=(async()=>{if(!fresh2)try{let raw=await deps.kv.getItem(SLOT_INSTALL_ID_KEY),kept=raw===null?null:JSON.parse(raw);if(kept?.tenant===tenant&&typeof kept.id=="string"&&INSTALL_ID.test(kept.id))return kept.id}catch{}try{let made=(deps.newId??randomId)();if(!INSTALL_ID.test(made))return null;let text=JSON.stringify({tenant:tenant,id:made});return await deps.kv.setItem(SLOT_INSTALL_ID_KEY,text),await undoIfStale(scope,SLOT_INSTALL_ID_KEY,text)?null:made}catch{return null}})();return installId={tenant:tenant,id:id},id},readFile=async scopeKey=>{try{let raw=await deps.kv.getItem(SLOT_LKG_KEY),file=raw===null?null:JSON.parse(raw);return file?.scope!==scopeKey||file.docs===null||typeof file.docs!="object"||Array.isArray(file.docs)?{docs:{}}:{docs:file.docs}}catch{return{docs:{}}}},readStored=async(scope,slot)=>{let file=await readFile(fnv1a64Hex(scope.doc)),entry=has(file.docs,slot)?file.docs[slot]:void 0;if(entry==null||typeof entry.at!="number")return null;let age=now()-entry.at;if(!(age<SLOT_LKG_MAX_AGE_MS)||age<-SLOT_CACHE_MAX_MS)return null;let parsed=parseSlotDoc(entry.doc,slot);if(!parsed.ok)return null;let etag=typeof entry.etag=="string"&&ETAG.test(entry.etag)?entry.etag:null;return{doc:parsed.doc,etag:etag}},update=(scope,slot,change)=>{let scopeKey=fnv1a64Hex(scope.doc);return writes=writes.then(async()=>{if(!stale(scope))try{let file=await readFile(scopeKey);if(stale(scope))return;let docs={...file.docs},next=change(has(docs,slot)?docs[slot]:void 0);if(next===null?delete docs[slot]:docs[slot]=next,Object.keys(docs).length===0)await deps.kv.removeItem(SLOT_LKG_KEY);else{let text=JSON.stringify({scope:scopeKey,docs:docs});await deps.kv.setItem(SLOT_LKG_KEY,text),await undoIfStale(scope,SLOT_LKG_KEY,text)}}catch{}}),writes},read=async(scope,slot)=>{let key=`${scope.doc}|${slot}`,mem=memory.get(key),stored=mem===void 0?await readStored(scope,slot):null,held=mem!==void 0?{doc:mem.doc,etag:mem.etag}:stored,install=await readInstallId(scope),headers={"x-everfur-blocks":deps.blocks??SLOT_REGISTRY_HASH};install!==null&&(headers["x-everfur-install-id"]=install),held?.doc&&held.etag!==null&&(headers["if-none-match"]=held.etag);let etag=null,ttl=SLOT_CACHE_MS,res=await deps.send("slots.read",{method:"GET",path:`/widget/v1/slots/${encodeURIComponent(slot)}`,headers:headers,rawText:65536,onResponseHeaders:header=>{let value=header("etag");etag=value!==null&&ETAG.test(value)?value:null,ttl=slotCacheMs(header("cache-control"))}}).catch(()=>null),fallBack=()=>held?.doc?{doc:held.doc,source:mem!==void 0?"cache":"last-known-good"}:{doc:null,source:"bundled"},failed=status2=>(failures.set(key,now()),track("slots.read_failed",{slot:slot,status:status2}),fallBack());if(stale(scope))return{doc:null,source:"bundled"};if(res===null)return failed(null);if(res.ok){let body=slotBodyOf(res.value);if(!body.ok)return track("slots.refused",{slot:slot,reason:body.reason}),fallBack();let parsed=parseSlotDoc(body.raw,slot);if(!parsed.ok)return track("slots.refused",{slot:slot,reason:parsed.reason}),fallBack();let at=now();return memory.set(key,{doc:parsed.doc,etag:etag,at:at,ttl:ttl}),await update(scope,slot,()=>({etag:etag,doc:body.raw,at:at})),{doc:parsed.doc,source:"live"}}let status=res.error.httpStatus;if(status===304&&held?.doc){let at=now();return memory.set(key,{doc:held.doc,etag:held.etag,at:at,ttl:ttl}),await update(scope,slot,entry=>entry===void 0?null:{...entry,at:at}),{doc:held.doc,source:"live"}}return status===404?(memory.set(key,{doc:null,etag:null,at:now(),ttl:ttl}),await update(scope,slot,()=>null),{doc:null,source:"bundled"}):failed(status??null)},peekIn=(scope,slot)=>{let mem=memory.get(`${scope.doc}|${slot}`);return mem===void 0||now()-mem.at>=mem.ttl?null:mem.doc===null?{doc:null,source:"bundled"}:{doc:mem.doc,source:"cache"}},storedIn=async(scope,slot)=>{let mem=memory.get(`${scope.doc}|${slot}`);if(mem!==void 0)return mem.doc===null?{doc:null,source:"bundled"}:{doc:mem.doc,source:"cache"};let kept=await readStored(scope,slot);return kept===null?{doc:null,source:"bundled"}:{doc:kept.doc,source:"last-known-good"}};return{peek(slot){let scope=scopeOf();return observe(scope),peekIn(scope,slot)},stored(slot){let scope=scopeOf();return observe(scope),storedIn(scope,slot).catch(()=>({doc:null,source:"bundled"}))},load(slot){let scope=scopeOf();observe(scope);let fromCache=peekIn(scope,slot);if(fromCache!==null)return Promise.resolve(fromCache);let key=`${scope.doc}|${slot}`,flight=`${scope.epoch}|${key}`,pending=inFlight.get(flight);if(pending!==void 0)return pending;let failedAt=failures.get(key),next=(failedAt!==void 0&&now()-failedAt<SLOT_FAILURE_MS?storedIn(scope,slot):read(scope,slot)).catch(()=>({doc:null,source:"bundled"})).finally(()=>inFlight.delete(flight));return inFlight.set(flight,next),next}}}function runtimeSlotScope(runtime){let tenant=runtimeTenantOf(runtime)??"unknown",auth=runtime.registry.services.authFor(null),who=auth.mode==="personalized"?`u:${auth.userRef??""}`:`a:${auth.userRef??""}`;return{doc:`${tenant}|${who}`,tenant:tenant,epoch:runtime.scopeEpoch??0}}var CLIENTS_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotClients@v1");function slotClientFor(runtime,make=runtimeSlotClient){let host2=globalThis,all=host2[CLIENTS_SYMBOL];all instanceof WeakMap||(all=/* @__PURE__ */new WeakMap,host2[CLIENTS_SYMBOL]=all);let map=all,client=map.get(runtime);return client===void 0&&(client=make(runtime),map.set(runtime,client)),client}function runtimeSlotClient(runtime){let{services:services}=runtime.registry;return createSlotClient({send:(call,req)=>createRequestFunnel({auth:services.authFor(null),...services.errorPolicy?{errorPolicy:services.errorPolicy}:{}}).send(call,req),kv:services.kv,telemetry:services.telemetry,scope:()=>runtimeSlotScope(runtime)})}function drawn(slot,load){return{doc:load.doc??bundledSlotDoc(slot),source:load.source}}function useSlotDoc(slot,enabled){let{runtime:runtime,scopeEpoch:scopeEpoch}=useEverfurContext(),client=enabled?slotClientFor(runtime):null,[state,setState]=useState(()=>{let fresh2=client?.peek(slot);return fresh2?{slot:slot,epoch:scopeEpoch,value:drawn(slot,fresh2)}:null});return useEffect(()=>{if(client===null)return;let live=true,landed=false,fresh2=client.peek(slot);if(fresh2!==null){setState({slot:slot,epoch:scopeEpoch,value:drawn(slot,fresh2)});return}return client.stored(slot).then(held=>{live&&!landed&&setState({slot:slot,epoch:scopeEpoch,value:drawn(slot,held)})}),client.load(slot).then(load=>{landed=true,live&&setState({slot:slot,epoch:scopeEpoch,value:drawn(slot,load)})}),()=>{live=false}},[client,slot,scopeEpoch]),enabled?state!==null&&state.slot===slot&&state.epoch===scopeEpoch?state.value:{doc:null,source:"pending"}:{doc:bundledSlotDoc(slot),source:"bundled"}}var UI_RN_WX_SUN=[{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:[]}}],UI_RN_WX_SUN_LG=[{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]]}}],UI_RN_WX_PLAY={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 everfurTokens=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var BLOCK_BOX={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},BLOCK_TEXT={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},blockBox=p=>({...BLOCK_BOX,...p}),blockText=p=>({...BLOCK_TEXT,...p}),everfurMetrics={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},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"}},orderBlockMetrics={card:/* @__PURE__ */blockBox({w:361,h:163.547}),top:/* @__PURE__ */blockBox({w:361,h:39.547,gap:[12,12]}),title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20,tracking:-.16}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55,color:"muted"}),total:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */blockBox({w:361,h:64,marginTop:8,gap:[8,8]}),acts:/* @__PURE__ */blockBox({w:361,h:40,marginTop:12,gap:[8,8]}),go:/* @__PURE__ */blockBox({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"go",center:true}),goText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),plain:/* @__PURE__ */blockBox({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),note:/* @__PURE__ */blockText({size:13,weight:500,lineHeight:17.55,marginTop:8}),icon:/* @__PURE__ */blockBox({w:16,h:16}),actsColumns:2,shotPressScale:.96},orderQuietBlockMetrics={top:/* @__PURE__ */blockBox({w:361,h:43.547,gap:[12,12]}),when:/* @__PURE__ */blockBox({w:300.063,h:24,gap:[8,4],center:true}),title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20.8}),chip:/* @__PURE__ */blockBox({w:86.031,h:24,padding:[0,9,0,5],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:15.6,color:"ink"}),chipIcon:/* @__PURE__ */blockBox({w:14,h:14,color:"ink"}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),total:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */blockBox({w:361,h:64,marginTop:8,gap:[8,8]}),shot:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),shotImg:/* @__PURE__ */blockBox({w:64,h:64,padding:[6.391,6.391,6.391,6.391],fit:"contain"}),shotBlend:"multiply",acts:/* @__PURE__ */blockBox({w:361,h:44,marginTop:12,gap:[12,12],center:true}),plain:/* @__PURE__ */blockBox({w:162.109,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),icon:/* @__PURE__ */blockBox({w:16,h:16}),link:/* @__PURE__ */blockBox({w:62.578,h:44,padding:[0,6,0,6],minHeight:44}),linkText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7,deco:"underline",decoOffset:3,decoThickness:1.5})},orderWebBlockMetrics={card:/* @__PURE__ */blockBox({w:952,h:127.781,padding:[16,24,16,16],gap:[24,16],radius:[20,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.04)",x:0,y:1,blur:2,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.05)",x:0,y:6,blur:20,spread:0},shots:/* @__PURE__ */blockBox({w:172,h:72}),sq:/* @__PURE__ */blockBox({w:72,h:72,radius:[14,14],bg:"#F3F3F3"}),sqRing:3,sqOverlap:22,imgInset:.1,imgFit:"contain",imgBlend:"multiply",text:/* @__PURE__ */blockBox({w:446.547,h:95.781,gap:[2,2]}),when:/* @__PURE__ */blockBox({w:446.547,h:26,gap:[12,4],center:true}),title:/* @__PURE__ */blockText({size:19,weight:700,lineHeight:24.7,tabular:true}),total:/* @__PURE__ */blockText({size:19,weight:900,lineHeight:24.7,tabular:true}),chip:/* @__PURE__ */blockBox({w:94.547,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:16.9,color:"ink",tabular:true}),chipIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"ink"}),meta:/* @__PURE__ */blockText({size:16,weight:400,lineHeight:22.4}),note:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21}),acts:/* @__PURE__ */blockBox({w:245.453,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */blockBox({w:160.031,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:19.2,color:"ink"}),icon:/* @__PURE__ */blockBox({w:18,h:18,color:"ink"}),link:/* @__PURE__ */blockBox({w:61.422,h:44,gap:[8,8],minHeight:44,center:true,color:"ink"}),linkText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:20.4,color:"ink",deco:"underline",decoOffset:4}),go:/* @__PURE__ */blockBox({w:228.75,h:52,padding:[0,24,0,24],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),goText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:20.4,color:"surface",wrap:"auto"}),pressScale:.97,hoverFill:{color:"ink",share:.06,over:"surface"},chipOff:/* @__PURE__ */blockBox({w:97.422,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],center:true,color:"ink"}),metaLink:/* @__PURE__ */blockText({size:16,weight:400,lineHeight:22.4,deco:"underline"}),narrow:{upTo:599,card:/* @__PURE__ */blockBox({w:560,h:247.391,padding:[16,16,16,16],gap:[24,16],radius:[20,20],bg:"surface",center:true}),sq:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:3}}),sqOverlap:16},phone:{upTo:639,card:/* @__PURE__ */blockBox({w:335,h:120.984,gap:[12,8],center:true}),sq:/* @__PURE__ */blockBox({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),sqRing:2,sqOverlap:18,when:/* @__PURE__ */blockBox({w:215,h:46.797,gap:[12,2],center:true}),title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20.8,tabular:true}),total:/* @__PURE__ */blockText({size:16,weight:900,lineHeight:20.8,tabular:true}),chip:/* @__PURE__ */blockBox({w:90.031,h:24,padding:[0,10,0,6],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:15.6,color:"ink",tabular:true}),whatHidden:true,note:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.2}),acts:/* @__PURE__ */blockBox({w:335,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */blockBox({w:144.531,h:46,padding:[0,16,0,16],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18,color:"ink"}),linkText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18,color:"ink",deco:"underline",decoOffset:4})}},productBlockMetrics={card:/* @__PURE__ */blockBox({w:156,h:310.969,gap:[4,4]}),kicker:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:15.6,color:"muted",tracking:.12,face:"mono"}),name:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.2,color:"muted"}),buy:/* @__PURE__ */blockBox({w:156,h:36,marginTop:6,gap:[8,8],center:true}),price:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,tabular:true})},productCardBlockMetrics={card:/* @__PURE__ */blockBox({w:174.5,h:249.219,gap:[2,2]}),tag:/* @__PURE__ */blockBox({w:84.563,h:26,padding:[0,9,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"surface",center:true,x:8,y:8}),tagIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"#CA4463"}),tagText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12}),price:/* @__PURE__ */blockBox({w:174.5,h:26.344,gap:[6,6]}),priceText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,tracking:-.17,tabular:true}),was:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"}),name:/* @__PURE__ */blockText({size:14,weight:500,lineHeight:18.2,wrap:"balance"}),meta:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:16.2,color:"muted"}),metaAuto:/* @__PURE__ */blockText({size:12,weight:500,lineHeight:16.2,color:"#16864A"}),step:/* @__PURE__ */blockBox({w:112,h:38,radius:[19,19],bg:"surface",center:true,x:54.5,y:128.5}),stepIn:/* @__PURE__ */blockBox({w:112,h:38,radius:[19,19],bg:"ink",center:true,color:"surface",x:54.5,y:128.5}),stepAt:{right:8,bottom:8},stepButton:/* @__PURE__ */blockBox({w:38,h:38,radius:[19,19],center:true}),stepIcon:/* @__PURE__ */blockBox({w:18,h:18}),count:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),lift:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},per:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:16.2,color:"muted",tabular:true}),metaAutoDark:/* @__PURE__ */blockText({size:12,weight:500,lineHeight:16.2,color:"ink"}),pill:/* @__PURE__ */blockBox({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"go",center:true,x:104.266,y:130.5}),pillText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),pillOn:/* @__PURE__ */blockBox({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"text",ring:true},center:true,x:76.484,y:130.5}),pillOnText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),pillIcon:/* @__PURE__ */blockBox({w:16,h:16}),pillSoft:/* @__PURE__ */blockBox({w:80.125,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true,x:86.375,y:130.5}),pillSoftText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),pillAt:{right:8,bottom:8},pillPressScale:.96},productBlendBlockMetrics={img:/* @__PURE__ */blockBox({w:174.5,h:174.5,padding:[32,14,16,14],fit:"contain"}),imgBlend:"multiply",lift:{color:"rgba(0, 0, 0, 0.08)",x:0,y:2,blur:8,spread:0},pill:/* @__PURE__ */blockBox({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink",x:104.266,y:130.5}),pillText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillOn:/* @__PURE__ */blockBox({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink",x:76.484,y:130.5}),pillOnText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillPressScale:.97},productWebBlockMetrics={card:/* @__PURE__ */blockBox({w:306.656,h:370.641,gap:[2,2]}),square:/* @__PURE__ */blockBox({w:306.656,h:306.656,marginBottom:10,radius:[20,20],bg:"#F5F5F5"}),imgInsetTag:{share:[.11,.11,.1,.11],px:[26,0,0,0]},imgInset:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgFit:"contain",imgBlend:"multiply",tag:/* @__PURE__ */blockBox({w:112.516,h:30,padding:[0,12,0,8],gap:[5,5],minHeight:30,radius:[999,999],bg:"#F7E3E8",center:true,color:"ink",x:10,y:10}),tagText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:14.3,color:"ink"}),tagIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"#CA4463"}),tagMix:.15,name:/* @__PURE__ */blockText({size:17,weight:500,lineHeight:22.1,wrap:"balance"}),nameLeading:1.3,coverRadius:20,price:/* @__PURE__ */blockBox({w:306.656,h:27.891,gap:[8,2]}),priceText:/* @__PURE__ */blockText({size:18,weight:700,lineHeight:27.9,tracking:-.18,tabular:true}),was:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),per:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,tabular:true}),badge:/* @__PURE__ */blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:13,tabular:true}),meta:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21}),add:/* @__PURE__ */blockBox({w:44,h:44,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),addIcon:/* @__PURE__ */blockBox({w:20,h:20}),actAt:{right:10,bottom:10},step:/* @__PURE__ */blockBox({w:116,h:44,radius:[22,22],bg:"ink",center:true,color:"surface"}),stepButton:/* @__PURE__ */blockBox({w:44,h:44,radius:[22,22],center:true,color:"surface"}),stepIcon:/* @__PURE__ */blockBox({w:18,h:18,color:"surface"}),count:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),pill:/* @__PURE__ */blockBox({w:68.688,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"ink",center:true,color:"surface"}),pillText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15,color:"surface"}),pillOn:/* @__PURE__ */blockBox({w:101.016,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink"}),pillOnText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15,color:"ink"}),pillIcon:/* @__PURE__ */blockBox({w:18,h:18,color:"ink"}),pillSoft:/* @__PURE__ */blockBox({w:87.859,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),pillSoftText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15}),nameSteps:[{upTo:599,name:/* @__PURE__ */blockText({size:16,weight:500,lineHeight:20.8,wrap:"balance"})},{upTo:399,name:/* @__PURE__ */blockText({size:14,weight:500,lineHeight:18.2,wrap:"balance"})}],addPressScale:.94,stepPressScale:.88,pillPressScale:.97,imgInsetEven:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgInsetWhite:{share:[.11,.11,.14,.11],px:[0,0,0,0]},groundWhite:"surface",focusOffset:3,hover:{ring:{width:1.5,share:.45,color:"ink"},underlineOffset:3}},productRowBlockMetrics={card:/* @__PURE__ */blockBox({shown:false,w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */blockText({shown:false,size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */blockText({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2})},cartBlockMetrics={line:/* @__PURE__ */blockBox({w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */blockBox({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:/* @__PURE__ */blockText({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:/* @__PURE__ */blockBox({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:/* @__PURE__ */blockBox({w:53.016,h:20.141,color:"ink"}),end:/* @__PURE__ */blockBox({w:289,h:26.344,gap:[4,4]})},cartSquareBlockMetrics={line:/* @__PURE__ */blockBox({w:361,h:95.094,gap:[12,12]}),sm:/* @__PURE__ */blockBox({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:/* @__PURE__ */blockBox({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:/* @__PURE__ */blockBox({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */blockBox({w:239.109,h:20,gap:[6,4],center:true}),nameText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:/* @__PURE__ */blockBox({w:29.344,h:20,padding:[0,7,0,7],radius:[999,999],bg:"#E0E6F2",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:/* @__PURE__ */blockBox({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:/* @__PURE__ */blockBox({w:84.531,h:32,minHeight:32,color:"ink"}),price:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},cartWebBlockMetrics={line:/* @__PURE__ */blockBox({w:404,h:88,gap:[16,0],center:true}),sq:/* @__PURE__ */blockBox({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */blockBox({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:/* @__PURE__ */blockText({size:19,weight:700,lineHeight:24.7}),link:/* @__PURE__ */blockText({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:/* @__PURE__ */blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:13}),meta:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,marginTop:2}),price:/* @__PURE__ */blockText({size:19,weight:700,lineHeight:29.45,tabular:true}),was:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */blockBox({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:/* @__PURE__ */blockBox({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */blockBox({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:/* @__PURE__ */blockBox({w:303,h:81.25,gap:[12,0],center:true}),sq:/* @__PURE__ */blockBox({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:/* @__PURE__ */blockBox({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},cartDrawerBlockMetrics={line:/* @__PURE__ */blockBox({w:360,h:147.094,gap:[14,0]}),img:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),imgInset:6,imgFit:"contain",name:/* @__PURE__ */blockBox({w:216,h:22.094,gap:[8,4],center:true}),nameText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,wrap:"auto"}),badge:/* @__PURE__ */blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:13,wrap:"auto"}),meta:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,marginTop:2}),note:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:21,color:"ink",marginTop:2}),acts:/* @__PURE__ */blockBox({w:282,h:92,marginTop:10,gap:[12,8],center:true}),plan:/* @__PURE__ */blockBox({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__ */blockBox({w:63.859,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999]}),planText:/* @__PURE__ */blockText({size:15,weight:500,lineHeight:23.25,wrap:"auto"}),planOn:/* @__PURE__ */blockBox({w:123.844,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999],bg:"ink",color:"surface"}),planOnText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"surface",wrap:"auto"}),qty:/* @__PURE__ */blockBox({w:104,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true}),countMin:24,qtyBtn:/* @__PURE__ */blockBox({w:40,h:40,radius:[20,20],center:true}),qtyIcon:/* @__PURE__ */blockBox({w:16,h:16}),count:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,wrap:"auto",tabular:true}),remove:/* @__PURE__ */blockBox({w:58.359,h:40,minHeight:40,color:"ink"}),removeText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3}),price:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,wrap:"auto",tabular:true}),was:/* @__PURE__ */blockText({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}},priceBlockMetrics={note:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:19.5,color:"muted",marginTop:12}),noteStrong:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:19.5,color:"muted"})};var needBlockMetrics={card:/* @__PURE__ */blockBox({w:325,h:125.25,padding:[14,16,14,16],radius:[0,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:2,blur:3,spread:-1}}),kicker:/* @__PURE__ */blockBox({w:293,h:24,gap:[8,8],center:true}),kickerText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25}),source:/* @__PURE__ */blockBox({w:116.719,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#DAF6E8",center:true,color:"ink"}),sourceText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:18.6,color:"ink"}),title:/* @__PURE__ */blockText({shown:false,size:15,weight:700,lineHeight:23.25}),signal:/* @__PURE__ */blockBox({w:293,h:65.25,marginTop:8,gap:[9,9],color:"#4D4D4D"}),signalText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),signalLead:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:21.75}),dot:/* @__PURE__ */blockBox({w:9,h:9,radius:[4.5,4.5],bg:"alert",color:"#4D4D4D",dy:-1}),score:/* @__PURE__ */blockBox({w:293,h:99.859,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[10,10],bg:"#FCF0D6",center:true}),scoreLabel:/* @__PURE__ */blockText({size:14,weight:600,lineHeight:18.9,color:"#4D4D4D"}),scoreTag:/* @__PURE__ */blockBox({w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,radius:[6,6],bg:"surface"}),scoreTagText:/* @__PURE__ */blockText({size:12,weight:600,lineHeight:16.2,tracking:.72,face:"mono",upper:true,marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */blockBox({w:106.109,h:51.141,gap:[6,0],center:true}),scoreWas:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,color:"muted",deco:"strike",decoThickness:1.5}),scoreArrow:/* @__PURE__ */blockBox({w:16,h:16,color:"muted"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */blockText({size:28,weight:700,lineHeight:28,tracking:-.84,tabular:true}),scoreOf:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15,color:"#4D4D4D",tabular:true}),scoreSince:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"ink",marginTop:3})},needPlanBlockMetrics={card:/* @__PURE__ */blockBox({w:329,h:380.172,padding:[16,16,16,16],marginTop:14,radius:[22,22],bg:"surface",shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},color:"#262523"}),kicker:/* @__PURE__ */blockBox({w:297,h:24,gap:[8,8],center:true,color:"#262523"}),kickerText:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:22.5,color:"#262523"}),source:/* @__PURE__ */blockBox({w:83.375,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#F2F1EE",center:true,color:"#4A4845"}),sourceText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:18,color:"#4A4845"}),title:/* @__PURE__ */blockText({size:19,weight:800,lineHeight:23.18,color:"#262523",marginTop:12}),signal:/* @__PURE__ */blockBox({w:297,h:65.25,marginTop:6,gap:[9,9],color:"#4A4845"}),signalText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75,color:"#4A4845"}),signalLead:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:21.75,color:"#262523"}),dot:/* @__PURE__ */blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#E5372B",color:"#4A4845",dy:-1}),score:/* @__PURE__ */blockBox({w:297,h:69.75,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[14,14],bg:"planAccentWash",center:true,color:"#262523"}),scoreLabel:/* @__PURE__ */blockText({size:13.5,weight:600,lineHeight:18.225,color:"#4A4845",wrap:"balance"}),scoreTag:/* @__PURE__ */blockBox({w:51.609,h:17.5,padding:[2,6,2,6],marginTop:3,radius:[5,5],bg:"surface",color:"#262523"}),scoreTagText:/* @__PURE__ */blockText({size:10,weight:600,lineHeight:13.5,color:"#262523",tracking:.6,face:"mono",upper:true,wrap:"balance",marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */blockBox({w:94.75,h:49.75,gap:[6,0],center:true,color:"#262523"}),scoreWas:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:25.5,color:"#6B6863",deco:"strike"}),scoreArrow:/* @__PURE__ */blockBox({w:16,h:16,color:"#6B6863"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */blockText({size:28,weight:800,lineHeight:28,color:"#262523"}),scoreOf:/* @__PURE__ */blockText({size:13,weight:800,lineHeight:13,color:"muted"}),scoreSince:/* @__PURE__ */blockText({size:12.5,weight:700,lineHeight:18.75,color:"planLink",marginTop:3}),sources:/* @__PURE__ */blockBox({w:131.375,h:24,gap:[4,4],color:"#262523"}),sourceDna:/* @__PURE__ */blockBox({w:44,h:24,padding:[0,9,0,9],radius:[999,999],bg:"planLinkWash",center:true,color:"planLink"}),sourceDnaText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:18,color:"planLink"}),dotWatch:/* @__PURE__ */blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#E5A000",color:"#4A4845",dy:-1}),dotClear:/* @__PURE__ */blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#5FA82B",color:"#4A4845",dy:-1}),scoreLabelMax:135,says:/* @__PURE__ */blockBox({w:297,h:52,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysImg:/* @__PURE__ */blockBox({w:32,h:32,radius:[16,16],color:"#262523"}),saysText:/* @__PURE__ */blockText({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845"}),saysBy:/* @__PURE__ */blockText({size:14.5,weight:800,lineHeight:20.3,color:"#262523"}),saysByGap:2,saysTag:/* @__PURE__ */blockBox({w:51.609,h:15,padding:[2,6,2,6],radius:[5,5],bg:"surface",color:"#262523"}),saysTagText:/* @__PURE__ */blockText({size:10,weight:400,lineHeight:14,color:"#262523",tracking:.6,face:"mono",upper:true,paddingTop:2}),saysBare:/* @__PURE__ */blockBox({w:297,h:81,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysKicker:/* @__PURE__ */blockText({size:17,weight:400,lineHeight:25.5,color:"#262523"}),saysSerif:/* @__PURE__ */blockText({size:17,weight:800,lineHeight:25.5,color:"#262523",tracking:-.17,wrap:"balance"}),jump:/* @__PURE__ */blockBox({w:297,h:60,padding:[8,14,8,8],marginTop:12,gap:[12,12],radius:[14,14],bg:"planInk",center:true,color:"planOnInk"}),jumpImg:/* @__PURE__ */blockBox({w:44,h:44,radius:[10,10],bg:"surface",color:"surface"}),jumpKicker:/* @__PURE__ */blockText({size:13,weight:800,lineHeight:19.5,color:"planAccent"}),jumpTitle:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:18.75,color:"planOnInk"}),jumpGo:/* @__PURE__ */blockText({size:14,weight:800,lineHeight:21,color:"planOnInk"}),jumpPressScale:.98,more:/* @__PURE__ */blockBox({w:87.547,h:36,marginTop:6,marginBottom:-4,gap:[4,4],minHeight:36,center:true,color:"planLink"}),moreText:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:22.5,color:"planLink"}),moreIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"planLink"}),moreInset:16,moreTurn:{closed:90,open:-90},rep:/* @__PURE__ */blockBox({w:297,h:48.5,padding:[14,14,12,14],marginTop:10,radius:[16,16],bg:"#F8F7F4",color:"#262523"})},tipBlockMetrics={card:/* @__PURE__ */blockBox({w:201.5,h:275.031,padding:[8,10,10,10],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"tintBlue",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */blockBox({w:181.5,h:113.438,radius:[10,10],bg:"#F3F3F3"}),n:/* @__PURE__ */blockBox({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20,marginTop:10}),text:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,color:"#4D4D4D",marginTop:4}),foot:/* @__PURE__ */blockBox({w:181.5,h:26.594,padding:[8,0,0,0],gap:[4,4],center:true,color:"ink"}),footText:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,paddingTop:8}),footArrow:/* @__PURE__ */blockBox({w:14,h:14,color:"ink"}),footArrowFlip:true,pressScale:.98,bare:/* @__PURE__ */blockBox({w:181.5,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */blockBox({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */blockBox({w:22,h:22})},tipPhotoBlockMetrics={card:/* @__PURE__ */blockBox({w:221,h:152,padding:[8,8,12,8],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */blockBox({w:205,h:102.5,radius:[10,10],bg:"#F3F3F3"}),imgAspect:2,n:/* @__PURE__ */blockBox({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,marginTop:10}),titleInset:4,pressScale:.98,bare:/* @__PURE__ */blockBox({w:205,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */blockBox({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */blockBox({w:22,h:22,color:"ink"})},tipWebBlockMetrics={card:/* @__PURE__ */blockBox({w:226,h:172.047,gap:[10,10]}),img:/* @__PURE__ */blockBox({w:226,h:141.25,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20.8,wrap:"balance"}),coverRadius:10,row:{from:440,card:/* @__PURE__ */blockBox({w:400,h:80,padding:[6,0,6,0],gap:[10,10],minHeight:80,center:true}),img:/* @__PURE__ */blockBox({w:64,h:64,radius:[10,10]}),arrowColumn:18,arrow:/* @__PURE__ */blockBox({w:18,h:18,color:"ink"}),arrowTurn:180},phone:{upTo:639,card:/* @__PURE__ */blockBox({w:216,h:162.5,gap:[8,8]}),img:/* @__PURE__ */blockBox({w:216,h:135,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),smallUpTo:359,smallW:208},mark:{tile:/* @__PURE__ */blockBox({w:226,h:141.25,radius:[14,14],bg:"#F5F5F5",center:true,color:"ink"}),icon:{share:.36,min:16,max:40,color:"ink"}},ring:{width:2,offset:2,color:"text"},hoverOffset:3},tipPlanBlockMetrics={card:/* @__PURE__ */blockBox({w:225.406,h:182.844,padding:[14,14,12,14],radius:[18,18],bg:"planAccentChip",color:"#262523"}),tones:{y:"planAccentChip",c:"planLinkChip",g:"#DDEFC4",r:"#FFD8D6"},top:/* @__PURE__ */blockBox({w:197.406,h:30,center:true,color:"#262523"}),nText:/* @__PURE__ */blockText({size:30,weight:900,lineHeight:30,color:"#262523"}),icon:/* @__PURE__ */blockBox({w:26,h:26,color:"#262523"}),title:/* @__PURE__ */blockText({size:17,weight:800,lineHeight:21.25,color:"#262523",marginTop:14}),text:/* @__PURE__ */blockText({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845",marginTop:4}),foot:/* @__PURE__ */blockBox({w:197.406,h:25.75,padding:[10,0,0,0],color:"planLink"}),footText:/* @__PURE__ */blockText({size:10.5,weight:400,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true,paddingTop:10})},cartPlanBlockMetrics={line:/* @__PURE__ */blockBox({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:/* @__PURE__ */blockBox({w:28,h:28,color:"planLink"}),name:/* @__PURE__ */blockText({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:/* @__PURE__ */blockBox({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:/* @__PURE__ */blockText({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:/* @__PURE__ */blockText({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:/* @__PURE__ */blockBox({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:/* @__PURE__ */blockBox({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:/* @__PURE__ */blockBox({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:/* @__PURE__ */blockText({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})},cartBarBlockMetrics={bar:/* @__PURE__ */blockBox({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__ */blockBox({w:88,h:44,padding:[0,4,0,0],center:true}),thumb:/* @__PURE__ */blockBox({w:40,h:40,radius:[12,12],bg:"#F3F3F3"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"multiply",count:/* @__PURE__ */blockBox({w:20,h:20,padding:[0,5,0,5],radius:[10,10],bg:"text",center:true,color:"surface",x:72,y:-4}),countText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"surface",tabular:true}),countAt:{top:-4,right:-4},sum:/* @__PURE__ */blockBox({w:130.656,h:35.688,gap:[2,2]}),total:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:18.7,tracking:-.17,tabular:true}),sub:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:15,color:"muted"}),go:/* @__PURE__ */blockBox({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__ */blockText({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"}}},cartBarWebBlockMetrics={bar:/* @__PURE__ */blockBox({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__ */blockBox({w:102,h:44,padding:[0,6,0,0],center:true}),thumb:/* @__PURE__ */blockBox({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__ */blockBox({w:22,h:22,padding:[0,6,0,6],radius:[11,11],bg:"go",center:true,x:83,y:-5}),countText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,wrap:"auto",tabular:true}),countAt:{top:-5,right:-3},sum:/* @__PURE__ */blockBox({w:307.484,h:43.5,gap:[2,2]}),total:/* @__PURE__ */blockText({size:20,weight:700,lineHeight:22,color:"ink",tracking:-.2,tabular:true}),sub:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:19.5}),go:/* @__PURE__ */blockBox({w:138.516,h:48,padding:[0,22,0,22],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),goText:/* @__PURE__ */blockText({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__ */blockBox({w:335,h:79,padding:[8,8,8,10],gap:[10,10],minHeight:64,radius:[22,22],bg:"surface",center:true}),thumb:/* @__PURE__ */blockBox({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__ */blockBox({w:94.594,h:48,padding:[0,18,0,18],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),lastOnly:true,wordHidden:true}},whyBlockMetrics={card:/* @__PURE__ */blockBox({w:393,h:655.609}),head:/* @__PURE__ */blockBox({w:393,h:126.328,padding:[4,16,12,16],gap:[12,12]}),pic:/* @__PURE__ */blockBox({w:64,h:64,radius:[10,10],bg:"#F3F3F3"}),packInset:.08,kind:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:18.6,color:"ink",tracking:.72,face:"mono",upper:true}),title:/* @__PURE__ */blockText({size:22,weight:700,lineHeight:24.64,tracking:-.55,marginTop:2}),sub:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:18.9,color:"#4D4D4D",marginTop:3}),close:/* @__PURE__ */blockBox({w:36,h:36,padding:[1,6,1,6],radius:[18,18],center:true,color:"ink"}),closeIcon:/* @__PURE__ */blockBox({w:20,h:20,color:"ink"}),body:/* @__PURE__ */blockBox({w:393,h:529.281,padding:[0,16,24,16],gap:[12,12]}),box:/* @__PURE__ */blockBox({w:361,h:169.281,padding:[14,14,14,14],radius:[20,20],bg:"tintPink"}),heading:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:21.25}),rows:/* @__PURE__ */blockBox({w:333,h:110.031,marginTop:10,gap:[10,10]}),row:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:17.4,color:"ink",tracking:.48,face:"mono",upper:true}),secHeading:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:21.25}),how:/* @__PURE__ */blockBox({w:361,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */blockBox({w:361,h:21.75,gap:[8,8],color:"#4D4D4D"}),bulletText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),bulletColumn:14,dot:{size:6,top:9,color:"ink"},para:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:22.5,color:"#4D4D4D",marginTop:6}),acts:/* @__PURE__ */blockBox({w:361,h:98,gap:[2,2]}),btn:/* @__PURE__ */blockBox({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__ */blockText({size:16,weight:700,lineHeight:24.8,color:"surface"}),more:/* @__PURE__ */blockBox({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */blockText({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"}},whyWebBlockMetrics={card:/* @__PURE__ */blockBox({w:558,h:571.375}),head:/* @__PURE__ */blockBox({w:558,h:105.375,padding:[24,24,12,24],gap:[12,12]}),pic:/* @__PURE__ */blockBox({w:64,h:64,radius:[10,10],bg:"#F5F5F5"}),packInset:.08,kind:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink"}),title:/* @__PURE__ */blockText({size:22,weight:500,lineHeight:24.64,color:"ink",tracking:-.44,marginTop:2}),sub:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:20.25,marginTop:3}),close:/* @__PURE__ */blockBox({w:40,h:40,padding:[1,6,1,6],radius:[20,20],center:true}),closeIcon:/* @__PURE__ */blockBox({w:20,h:20}),body:/* @__PURE__ */blockBox({w:558,h:466,padding:[0,24,24,24],gap:[22,22]}),box:/* @__PURE__ */blockBox({w:510,h:129}),heading:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20}),rows:/* @__PURE__ */blockBox({w:510,h:99,marginTop:10,gap:[12,12]}),row:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:21.75,color:"ink"}),secHeading:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20}),how:/* @__PURE__ */blockBox({w:510,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */blockBox({w:510,h:21.75,gap:[8,8]}),bulletText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75}),bulletColumn:14,dot:{size:6,top:9.75,color:"ink"},para:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:22.5,marginTop:6}),acts:/* @__PURE__ */blockBox({w:510,h:92,gap:[2,2]}),btn:/* @__PURE__ */blockBox({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__ */blockText({size:17,weight:400,lineHeight:26.35,color:"surface",wrap:"auto"}),more:/* @__PURE__ */blockBox({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */blockText({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__ */blockBox({w:341,h:145.031,padding:[24,24,12,24],gap:[10,10]}),pic:/* @__PURE__ */blockBox({w:48,h:48,radius:[10,10],bg:"#F5F5F5"}),title:/* @__PURE__ */blockText({size:20,weight:500,lineHeight:22.4,color:"ink",tracking:-.4,marginTop:2})}},whyPlanBlockMetrics={card:/* @__PURE__ */blockBox({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__ */blockText({size:10.5,weight:400,lineHeight:15.75,color:"#6B6863",tracking:.63,face:"mono",upper:true}),row:/* @__PURE__ */blockBox({w:301,h:59.688,marginTop:10,gap:[10,10],color:"#262523"}),chipColumn:58,chips:{dna:{box:/* @__PURE__ */blockBox({w:58,h:22,radius:[6,6],bg:"planLinkWash",center:true,color:"planLink"}),text:/* @__PURE__ */blockText({size:10.5,weight:700,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true})},record:{box:/* @__PURE__ */blockBox({w:58,h:22,radius:[6,6],bg:"#F2F1EE",center:true,color:"#4A4845"}),text:/* @__PURE__ */blockText({size:10.5,weight:700,lineHeight:15.75,color:"#4A4845",tracking:.42,face:"mono",upper:true})},ask:{box:/* @__PURE__ */blockBox({w:58,h:22,radius:[6,6],bg:"planAccentWash",center:true,color:"#262523"}),text:/* @__PURE__ */blockText({size:10.5,weight:700,lineHeight:15.75,color:"#262523",tracking:.42,face:"mono",upper:true})}},rowTitle:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:19.5,color:"#262523"}),rowBody:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:19.6,color:"#4A4845",marginTop:1}),score:/* @__PURE__ */blockBox({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__ */blockText({size:14.5,weight:800,lineHeight:18.85,color:"planOnInk"}),scoreValue:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20.8,color:"planAccent",face:"mono"})},lightsBlockMetrics={card:/* @__PURE__ */blockBox({w:325,h:134,marginTop:14}),head:/* @__PURE__ */blockBox({w:325,h:24,marginBottom:10,gap:[12,12],center:true}),lead:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:18.2,color:"#3D3D3D"}),name:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:18.2,color:"ink"}),pills:{better:{box:/* @__PURE__ */blockBox({w:66.094,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#D7F5E7",center:true,color:"ink"}),text:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},same:{box:/* @__PURE__ */blockBox({w:50.734,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FBEED0",center:true,color:"ink"}),text:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},worse:{box:/* @__PURE__ */blockBox({w:58.406,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#F6EBDE",center:true,color:"#834D0D"}),text:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"#834D0D",tracking:.48,face:"mono"})}},viz:/* @__PURE__ */blockBox({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__ */blockBox({w:325,h:44,gap:[16,0],center:true}),srcBtn:/* @__PURE__ */blockBox({w:181.5,h:44,gap:[6,6],minHeight:44,center:true,color:"#4D4D4D"}),srcText:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:21.7,color:"#4D4D4D"}),srcIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"#5A6087"}),act:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:700,lineHeight:23.25,color:"ink",marginTop:6})},checkinBlockMetrics={card:/* @__PURE__ */blockBox({w:393,h:179.25}),body:/* @__PURE__ */blockBox({w:393,h:99.25,padding:[0,16,24,16],gap:[24,24]}),question:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:21.25}),picks:/* @__PURE__ */blockBox({w:361,h:96,marginTop:10,gap:[8,8]}),pick:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:400,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickOn:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:700,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickHover:{color:"pink",share:.3,over:"surface"},stepTop:16,row:/* @__PURE__ */blockBox({w:361,h:44,gap:[8,8],minHeight:44,center:true}),rowLabel:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:18.75}),rowValue:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18.75}),rowIcon:/* @__PURE__ */blockBox({w:18,h:18,color:"ink"}),rowTurn:90,rowPressScale:.98,note:/* @__PURE__ */blockBox({w:361,h:60.594,padding:[10,12,10,12],marginTop:12,radius:[10,10],bg:"#FFE8E6"}),noteText:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:20.3,marginTop:12,paddingTop:10}),noteLink:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:20.3,deco:"underline",decoOffset:3}),done:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,wrap:"balance",marginTop:12}),acts:/* @__PURE__ */blockBox({w:361,h:52,gap:[2,2]}),btn:/* @__PURE__ */blockBox({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__ */blockText({size:16,weight:700,lineHeight:24.8,color:"surface"})},weatherBlockMetrics={card:/* @__PURE__ */blockBox({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__ */blockBox({w:329,h:113.891,gap:[12,12],center:true}),temp:/* @__PURE__ */blockText({size:64,weight:700,lineHeight:60.8,color:"ink",tracking:-2.56,tabular:true}),cond:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2}),glyph:/* @__PURE__ */blockBox({w:88,h:88}),walk:/* @__PURE__ */blockBox({w:329,h:159.844,padding:[12,16,12,16],gap:[4,4],radius:[10,10],bg:"surface"}),walkTitle:/* @__PURE__ */blockBox({w:297,h:22.094,gap:[8,8],center:true,color:"ink"}),walkTitleText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,color:"ink"}),walkText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75}),lvl:/* @__PURE__ */blockBox({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"ink"}),levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},comfort:/* @__PURE__ */blockBox({w:297,h:32.5,padding:[12,0,0,0],marginTop:8,gap:[8,6],center:true}),comfortRule:{width:1,color:"line"},comfortLabel:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:16.9,color:"muted"}),comfortValue:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink"}),bar:/* @__PURE__ */blockBox({w:82,h:8,gap:[3,3]}),pipOn:/* @__PURE__ */blockBox({w:14,h:8,radius:[2,2],bg:"#77DDAC"}),pipOff:/* @__PURE__ */blockBox({w:14,h:8,radius:[2,2],bg:"#F1F5F2"})},weatherSummaryBlockMetrics={card:/* @__PURE__ */blockBox({w:361,h:265.484,padding:[24,16,24,16],radius:[20,20],bg:"#FCF4E0"}),glyph:/* @__PURE__ */blockBox({w:88,h:88}),temp:/* @__PURE__ */blockText({size:72,weight:700,lineHeight:68.4,color:"ink",tracking:-2.88,tabular:true,marginTop:8}),cond:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2})},weatherTileBlockMetrics={card:/* @__PURE__ */blockBox({w:272,h:187.984,padding:[16,16,16,16],gap:[8,8],radius:[20,20],bg:"#F5F5F5"}),top:/* @__PURE__ */blockBox({w:240,h:24,gap:[8,8],center:true}),label:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:15.6,color:"ink",tracking:.72,face:"mono",upper:true}),glyph:/* @__PURE__ */blockBox({w:36,h:36,marginTop:-6,marginBottom:-6}),glyphMargin:[-6,-4,-6,0],big:/* @__PURE__ */blockText({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),small:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:16.5,color:"muted",tabular:true}),smallGap:4,meta:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:19.6}),btn:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:700,lineHeight:15,color:"surface"}),btnIcon:/* @__PURE__ */blockBox({w:20,h:20,color:"surface"})},weatherWebBlockMetrics={card:/* @__PURE__ */blockBox({w:533.078,h:242,padding:[24,24,24,24],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),head:/* @__PURE__ */blockBox({w:483.078,h:34,marginBottom:16,gap:[12,12],center:true}),city:/* @__PURE__ */blockText({size:24,weight:700,lineHeight:28.8,color:"ink",tracking:-.48,wrap:"auto"}),units:/* @__PURE__ */blockBox({w:78,h:34,padding:[2,2,2,2],radius:[999,999],edge:{width:1,color:"line",ring:false}}),unit:/* @__PURE__ */blockBox({w:36,h:28,minHeight:28,radius:[999,999],center:true,color:"muted"}),unitText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"muted",wrap:"auto"}),unitOn:/* @__PURE__ */blockBox({w:36,h:28,minHeight:28,radius:[999,999],bg:"ink",center:true,color:"surface"}),unitOnText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"surface",wrap:"auto"}),now:/* @__PURE__ */blockBox({w:483.078,h:88,gap:[24,12],center:true}),glyph:/* @__PURE__ */blockBox({w:88,h:88}),temp:/* @__PURE__ */blockText({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__ */blockText({size:15,weight:400,lineHeight:21,color:"muted",wrap:"auto",marginTop:6}),tags:/* @__PURE__ */blockBox({w:483.078,h:30,marginTop:24,gap:[8,8]}),tag:/* @__PURE__ */blockBox({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__ */blockText({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__ */blockBox({w:335,h:272,padding:[18,18,18,18],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),glyph:/* @__PURE__ */blockBox({w:64,h:64})}},weatherAlertBlockMetrics={card:/* @__PURE__ */blockBox({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__ */blockBox({w:20,h:20,color:"alert"}),title:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"#6D1D14"}),titleGap:6,text:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,color:"#6D1D14"}),chev:/* @__PURE__ */blockBox({w:16,h:16,color:"#6D1D14"}),pressScale:.98},weatherDetailsBlockMetrics={grid:/* @__PURE__ */blockBox({w:361,h:591.25,gap:[12,12]}),tile:/* @__PURE__ */blockBox({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__ */blockText({size:12,weight:700,lineHeight:15.6,color:"muted",tracking:.72,face:"mono",upper:true}),labelGap:6,icon:/* @__PURE__ */blockBox({w:16,h:16,color:"ink"}),chev:/* @__PURE__ */blockBox({w:14,h:14,color:"muted"}),value:/* @__PURE__ */blockText({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),valueGap:6,unit:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:16.5,color:"ink",tabular:true}),note:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.2}),pressScale:.98},weatherHoursBlockMetrics={cell:/* @__PURE__ */blockBox({w:54,h:100,padding:[2,0,0,0],gap:[4,4],center:true}),column:54,rows:[18,32,16,20,6],time:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:15.6,color:"muted"}),timeNow:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:15.6,color:"ink"}),glyph:/* @__PURE__ */blockBox({w:32,h:32}),icon:/* @__PURE__ */blockBox({w:24,h:24,color:"#926F06"}),chance:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),temp:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18,color:"ink",tabular:true}),quiet:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:15.6,color:"muted",tabular:true}),bar:/* @__PURE__ */blockBox({w:52,h:6,radius:[3,3],bg:"#77DDAC"}),barInset:1,levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},windows:/* @__PURE__ */blockBox({w:327,h:76.594,marginBottom:12,gap:[8,8]}),window:/* @__PURE__ */blockBox({w:159.5,h:76.594,padding:[10,12,10,12],gap:[2,2],radius:[10,10],bg:"tintGo"}),windowTitle:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink",tabular:true}),windowText:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55}),legend:/* @__PURE__ */blockBox({w:327,h:18.188,marginTop:12,gap:[14,4],color:"muted"}),legendItem:/* @__PURE__ */blockBox({w:47.813,h:18.188,gap:[6,6],center:true,color:"muted"}),legendText:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.2,color:"muted",marginTop:12}),legendDot:/* @__PURE__ */blockBox({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"muted"})},weatherForecastBlockMetrics={row:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:700,lineHeight:18,color:"ink"}),sky:/* @__PURE__ */blockBox({w:32,h:30,gap:[1,1]}),glyph:/* @__PURE__ */blockBox({w:30,h:30}),chance:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),low:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:14,color:"muted",face:"mono",tabular:true}),high:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:14,color:"ink",face:"mono",tabular:true}),bar:/* @__PURE__ */blockBox({w:155,h:6,radius:[3,3],bg:"#F1F5F2"}),fill:/* @__PURE__ */blockBox({w:99.203,h:6,radius:[3,3],bg:"#DDB44F",x:23.25}),tag:/* @__PURE__ */blockBox({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__ */blockText({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"}}},weatherLevelsBlockMetrics={phone:{list:/* @__PURE__ */blockBox({w:361,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */blockBox({w:361,h:26,gap:[8,8],center:true}),columns:[24,56,185,72],icon:/* @__PURE__ */blockBox({w:26,h:26}),name:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25}),bar:/* @__PURE__ */blockBox({w:185,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono"}),mid:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono"}),low:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono"})}},web:{list:/* @__PURE__ */blockBox({w:344.891,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */blockBox({w:344.891,h:26,gap:[12,12],center:true}),columns:[26,64,138.891,80],icon:/* @__PURE__ */blockBox({w:26,h:26}),name:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,wrap:"auto"}),bar:/* @__PURE__ */blockBox({w:138.891,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),mid:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),low:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono",wrap:"auto"})}},webPhoneUpTo:559},weatherReadingBlockMetrics={phone:{body:/* @__PURE__ */blockBox({w:361,h:88.344,gap:[12,12]}),gap:12,picks:/* @__PURE__ */blockBox({w:361,h:36,gap:[10,10]}),on:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink"}),off:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:400,lineHeight:19.5,color:"ink"}),check:/* @__PURE__ */blockBox({w:16,h:16,color:"ink"}),read:/* @__PURE__ */blockBox({w:361,h:40.344,gap:[12,0]}),value:/* @__PURE__ */blockText({size:36,weight:700,lineHeight:37.8,color:"ink",tracking:-.72,tabular:true}),word:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,color:"alert",tracking:.34,face:"mono",upper:true})},web:{body:/* @__PURE__ */blockBox({w:344.891,h:140.344}),gap:16,picks:/* @__PURE__ */blockBox({w:344.891,h:82,marginTop:16,marginBottom:16,gap:[10,10]}),on:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink",wrap:"auto"}),off:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:400,lineHeight:19.5,color:"ink",wrap:"auto"}),check:/* @__PURE__ */blockBox({w:16,h:16,color:"ink"}),read:/* @__PURE__ */blockBox({w:344.891,h:42.344,gap:[12,0]}),value:/* @__PURE__ */blockText({size:38.4,weight:700,lineHeight:40.32,color:"ink",tracking:-.768,wrap:"auto",tabular:true}),word:/* @__PURE__ */blockText({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 deepFreeze2(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value))for(let v of Object.values(value))deepFreeze2(v);return value}var k=everfurTokens,PRESET=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function asPreset(theme){return Object.defineProperty(theme,PRESET,{value:theme,enumerable:true}),deepFreeze2(theme)}var SCALE_CAPS={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},everfurTheme=asPreset({name:"everfur",colors:{bg:k.color.bg,surface:k.color.efWhite,text:k.color.text,ink:k.role.color.ink,onInk:k.color.efWhite,muted:k.role.color.muted,line:k.role.color.line,go:k.role.color.go,onGo:k.role.color.ink,pink:k.color.efDustyPink,onPink:k.role.color.ink,alert:k.color.alert,alertDeep:k.color.alertDeep,icoSage:k.role.color.icoSage,bgMist:k.color.bgMist,tintSage:k.role.color.tintSage,tintBlue:k.role.color.tintBlue,tintGo:k.role.color.tintGo,tintPink:k.role.color.tintPink,tintYellowEdge:k.role.color.tintYellowEdge,tintWatch:everfurMetrics.colors.watch,tintRed:k.role.color.tintRed,scrim:everfurMetrics.colors.scrim,grab:everfurMetrics.colors.grab,focus:k.role.color.ink,planInk:everfurMetrics.colors.planInk,planOnInk:everfurMetrics.colors.planOnInk,planAccent:everfurMetrics.colors.planAccent,planLink:everfurMetrics.colors.planLink,planAccentWash:everfurMetrics.colors.planAccentWash,planAccentChip:everfurMetrics.colors.planAccentChip,planLinkWash:everfurMetrics.colors.planLinkWash,planLinkChip:everfurMetrics.colors.planLinkChip},radius:{...k.radius},space:{...k.space},type:{family:k.font.family.base,mono:k.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:k.font.size.xs,sm:k.font.size.sm,md:k.font.size.md,lg:k.font.size.lg,xl:k.font.size.xl},weight:{...k.font.weight},lineHeight:{...k.font.lineHeight},scaleCaps:SCALE_CAPS},motion:{duration:{press:k.motion.duration.press,fade:k.motion.duration.fade,enter:k.motion.duration.enter,sheet:k.motion.duration.sheet,sheetOut:k.motion.duration.sheetOut},easing:{out:k.motion.easing.out,drawer:k.motion.easing.drawer},pop:{duration:k.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:everfurMetrics});function presetOf(theme){return theme[PRESET]??everfurTheme}function isObject(v){return v!==null&&typeof v=="object"&&!Array.isArray(v)}function merge(base3,over){if(!isObject(base3)||!isObject(over))return over===void 0?base3:over;let out={...base3};for(let[key,value]of Object.entries(over))value!==void 0&&(out[key]=merge(base3[key],value));return out}function resolveTheme(partial,base3=everfurTheme){if(!partial)return base3;let merged=merge(base3,partial),given=partial.colors;if(given){let colors=merged.colors;for(let[wash,from,share2]of PLAN_WASHES){let c=given[from];c!==void 0&&given[wash]===void 0&&(colors[wash]=mixHex(c,share2,colors.surface)??colors[wash]??c)}}return deepFreeze2(merged)}var PLAN_WASHES=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function mixHex(color,share2,ground){let ch=v=>{let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(v??"");return m?[m[1],m[2],m[3]].map(h=>parseInt(h,16)):void 0},[c,g]=[ch(color),ch(ground)];if(!(!c||!g))return`#${c.map((v,i)=>Math.round(v*share2+(g[i]??0)*(1-share2)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var ThemeContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),host2=globalThis,context=host2[key]??(host2[key]=createContext(null));return context.displayName??(context.displayName="EverfurThemeContext"),context})();function ThemeProvider({theme:theme,children:children}){let outer=useTheme(),key=theme===void 0||isComplete(theme)?theme:contentKey(theme),value=useMemo(()=>isComplete(theme)?filled(theme):resolveTheme(theme,outer),[key,outer]);return createElement(ThemeContext.Provider,{value:value},children)}function contentKey(value){return JSON.stringify(value,(_,v)=>isObject(v)&&!Array.isArray(v)?Object.fromEntries(Object.keys(v).sort().map(k2=>[k2,v[k2]])):v)}function isComplete(theme){return theme!==void 0&&Object.isFrozen(theme)&&GROUPS.every(g=>g in theme)}var GROUPS=["name","colors","radius","space","type","motion","metrics"];function hasEvery(shape,value){if(shape===void 0)return true;if(!isObject(shape))return value!==void 0;if(!isObject(value))return false;for(let key of Object.keys(shape))if(!hasEvery(shape[key],value[key]))return false;return true}var fills=/* @__PURE__ */new WeakMap;function filled(theme){let hit=fills.get(theme);if(hit)return hit;if(hasEvery(everfurTheme,theme))return fills.set(theme,theme),theme;let preset=presetOf(theme),merged=merge(everfurTheme,preset===everfurTheme?theme:merge(preset,theme));merged[PRESET]=preset;let out=deepFreeze2(merged);return fills.set(theme,out),out}function useTheme(){let explicit=useContext(ThemeContext);return explicit?filled(explicit):everfurTheme}var px=n=>Math.round(n*1e3)/1e3;function faceOf(weight,mono=false){return mono?weight>450?"monoBold":"mono":weight>500?"bold":weight>450?"medium":"regular"}function withAlpha(color,alpha){let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(!m)return color;let[r,g,b]=[m[1],m[2],m[3]].map(h=>parseInt(h,16));return`rgba(${r}, ${g}, ${b}, ${alpha})`}function channelsOf(color){let hex=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(hex)return[hex[1],hex[2],hex[3]].map(h=>parseInt(h,16));let rgb=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(color);return rgb?[rgb[1],rgb[2],rgb[3]].map(Number):void 0}function mixColor(color,share2,base3,fallback){let[c,b]=[channelsOf(color),channelsOf(base3)];return!c||!b?fallback:`rgb(${c.map((v,i)=>Math.round(v*share2+(b[i]??0)*(1-share2))).join(", ")})`}function colorOf(t,value){let m=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(value),role=m?.[1];if(!m||role===void 0||!(role in t.colors))return value;let c=t.colors[role];return m[2]===void 0?c:withAlpha(c,Number(m[2]))}function fillOf(t,value){return value==="none"?"transparent":colorOf(t,value)}var DISABLED_OPACITY=.45;function buttonSpec(t,tone,size,inSheet=false){let b=t.metrics.button;if(tone==="text"){let m2=b.text;return{minHeight:0,paddingX:0,gap:b.ink.gap,radius:0,borderWidth:0,borderColor:"transparent",background:"transparent",iconSize:b.inkSm.iconSize,text:{size:m2.fontSize,weight:m2.fontWeight,lineHeight:px(m2.fontSize*m2.lineHeight),color:colorOf(t,m2.color)},pressScale:1,pressOpacity:m2.pressOpacity,disabledOpacity:b.blockedOpacity??DISABLED_OPACITY,fill:false,ring:false}}let v=t.metrics.variants.button,compact=isCompactSize(size),edged=tone==="outline"||tone==="danger"||tone==="warn",m=compact?{...size==="compactSm"?v.sm:size==="compactLg"?v.lg:v.ink,borderWidth:edged?v.outline.borderWidth:0,ring:v.outline.ring}:size==="row"?b.row:tone==="danger"?b.danger:size==="sm"?b[`${tone}Sm`]:b[tone],c=t.colors,own=tone==="money"||tone==="warn"?b[tone]:void 0,paint={ink:{bg:c.ink,fg:c.onInk,edge:c.ink},go:{bg:c.go,fg:c.onGo,edge:c.ink},outline:{bg:"transparent",fg:c.ink,edge:c.ink},pink:{bg:c.pink,fg:c.onPink,edge:c.ink},danger:{bg:c.surface,fg:c.alert,edge:c.alert}},p=own?{bg:fillOf(t,own.bg),fg:colorOf(t,own.fg),edge:colorOf(t,own.edgeColor)}:paint[tone],weight=tone==="outline"&&inSheet&&!compact?b.outlineInSheetWeight:m.fontWeight;return{minHeight:m.minHeight,paddingX:m.paddingX,gap:m.gap,radius:t.radius.pill,borderWidth:m.borderWidth,borderColor:p.edge,background:p.bg,iconSize:m.iconSize,text:{size:m.fontSize,weight:weight,lineHeight:px(m.fontSize*m.lineHeight),color:p.fg},pressScale:t.motion.reduced?1:compact?v.press:t.metrics.press.button,pressOpacity:1,disabledOpacity:compact?v.disabledOpacity:b.blockedOpacity??DISABLED_OPACITY,fill:m.fill,ring:m.ring}}function isCompactSize(size){return size==="compact"||size==="compactSm"||size==="compactLg"}function pillSpec(t,tone){let m=t.metrics.pill,p=m.tones[tone],fg=tone==="clear"?t.colors.ink:colorOf(t,p.fg);return{minHeight:m.minHeight,paddingX:m.paddingX,radius:t.radius.pill,background:colorOf(t,p.bg),ring:p.ring>0?{width:p.ring,color:colorOf(t,p.ringColor)}:null,dot:tone==="new"?{size:m.dot,gap:m.dotGap,color:t.colors.go}:tone==="allergy"?{size:m.allergyDot.size,gap:m.allergyDot.gap,color:colorOf(t,m.allergyDot.color)}:null,text:{size:m.fontSize,weight:m.fontWeight,lineHeight:px(m.fontSize*m.lineHeight),color:fg,mono:m.mono,tracking:m.letterSpacing,upper:m.upper}}}function sheetTitleSpec(t,narrow){let m=t.metrics.sheet,size=m.titleSize,lineHeight=m.titleLineHeight??t.metrics.card.titleLineHeight;return{size:size,weight:m.titleWeight??t.metrics.card.titleWeight,lineHeight:px(size*lineHeight),color:colorOf(t,m.titleColor??"ink"),tracking:m.titleTracking??t.metrics.card.titleTracking}}function textSpecs(t){let m=t.metrics,c=t.colors;return{cardTitle:{size:m.card.titleSize,weight:m.card.titleWeight,lineHeight:px(m.card.titleSize*m.card.titleLineHeight),color:c.ink,tracking:m.card.titleTracking},cardLead:{size:m.card.leadSize,weight:t.type.weight.regular,lineHeight:px(m.card.leadSize*m.card.leadLineHeight),color:c.text},body:{size:m.card.bodySize,weight:t.type.weight.regular,lineHeight:px(m.card.bodySize*m.card.bodyLineHeight),color:c.text},kicker:{size:m.kicker.fontSize,weight:m.kicker.fontWeight,lineHeight:px(m.kicker.fontSize*m.kicker.lineHeight),color:c.muted,mono:true,tracking:m.kicker.letterSpacing,upper:true},sheetTitle:sheetTitleSpec(t),stepperValue:{size:m.quantityStepper.valueSize,weight:m.quantityStepper.valueWeight,lineHeight:px(m.quantityStepper.valueSize*m.quantityStepper.valueLineHeight),color:colorOf(t,m.quantityStepper.valueColor??"text")},tab:{size:m.tabs.fontSize,weight:m.tabs.fontWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.muted},tabCurrent:{size:m.tabs.fontSize,weight:m.tabs.currentWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.ink},emptyTitle:{size:m.empty.titleSize,weight:m.empty.titleWeight,lineHeight:px(m.empty.titleSize*m.empty.titleLineHeight),color:c.ink,tracking:m.empty.titleTracking},emptyLead:{size:m.empty.leadSize,weight:t.type.weight.regular,lineHeight:px(m.empty.leadSize*m.empty.leadLineHeight),color:c.text},emptyLink:{size:m.empty.linkSize,weight:m.empty.linkWeight,lineHeight:px(m.empty.linkSize*m.card.bodyLineHeight),color:c.ink},sumTerm:{size:m.summary.termSize,weight:t.type.weight.regular,lineHeight:px(m.summary.termSize*m.summary.termLineHeight),color:c.muted},sumValue:{size:m.summary.valueSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.valueSize*m.summary.valueLineHeight),color:c.ink},sumTotal:{size:m.summary.totalSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.totalSize*m.summary.totalLineHeight),color:c.ink}}}function quantityStepperSpec(t){let m=t.metrics.quantityStepper;return{edge:{width:m.borderWidth,color:colorOf(t,m.borderColor),inset:m.ring},button:m.button,icon:m.icon,valueMinWidth:m.valueMinWidth,fill:fillOf(t,m.fill??"none"),glyph:colorOf(t,m.glyph??"ink"),off:{color:colorOf(t,m.offColor),opacity:m.offOpacity}}}function textPartSpec(t,p){return{size:p.size,weight:p.weight,lineHeight:p.lineHeight,color:colorOf(t,p.color),...p.face==="mono"?{mono:true}:{},...p.face==="serif"?{serif:true}:{},...p.tracking?{tracking:p.tracking}:{},...p.upper?{upper:true}:{},...p.deco==="none"?{}:{deco:p.deco==="strike"?"strike":"underline",decoOffset:p.decoOffset,decoThickness:p.decoThickness},...p.tabular?{tabular:true}:{},...p.wrap==="auto"?{}:{wrap:p.wrap==="balance"?"balance":"pretty"}}}function partFill(t,value){return value==="none"?void 0:colorOf(t,value)}function summarySpec(t){let m=t.metrics.summary,lh=(size,ratio)=>px(size*ratio);return{paddingX:m.paddingX,paddingY:m.paddingY,radius:m.radius,borderWidth:m.borderWidth,borderColor:t.colors.line,background:colorOf(t,m.background),shadow:m.shadow,row:{paddingY:m.rowPaddingY,minHeight:m.rowMinHeight,gapX:m.rowGapX,gapY:m.rowGapY,divider:m.rowDivider,center:m.rowCenter},totalRowMinHeight:m.totalRowMinHeight,gap:m.gap??0,totalMarginTop:m.totalMarginTop??0,tabular:m.tabular,term:{size:m.termSize,weight:t.type.weight.regular,lineHeight:lh(m.termSize,m.termLineHeight),color:colorOf(t,m.termColor)},value:{size:m.valueSize,weight:m.valueWeight,lineHeight:lh(m.valueSize,m.valueLineHeight),color:colorOf(t,m.valueColor)},totalTerm:{size:m.totalTermSize,weight:m.totalTermWeight,lineHeight:lh(m.totalTermSize,m.termLineHeight),color:colorOf(t,m.totalTermColor)},total:{size:m.totalSize,weight:m.totalWeight,lineHeight:lh(m.totalSize,m.totalLineHeight),color:colorOf(t,m.valueColor)},off:textPartSpec(t,t.metrics.summary.off)}}function skeletonWidth(t,index){let widths=t.metrics.skeleton.widths;return`${widths[index%widths.length]}%`}function clampStep(value,min,max){return Math.max(min,max===void 0?value:Math.min(max,value))}function itemTestID(parent,key,own){return own!==void 0?own:parent===void 0?void 0:`${parent}-${key}`}var nums=group=>group,isBox=v=>"edge"in v&&"shadow"in v&&"fit"in v,isText=v=>"deco"in v&&"face"in v&&"tabular"in v;function byValue(group){let out=/* @__PURE__ */new Map;for(let[k2,v]of Object.entries(group))out.has(v)||out.set(v,k2);return out}var groups,derived=/* @__PURE__ */new WeakMap;function tokenOf(map,theme,v){let k2=map.get(v),t=k2===void 0?void 0:theme[k2];return typeof t=="number"?t:v}function everfurTokens2(theme){let p=everfurTheme;return theme.space===p.space&&theme.radius===p.radius&&theme.type.size===p.type.size&&theme.type.weight===p.type.weight}function onTheme(theme,base3){let p=everfurTheme;groups??(groups={space:byValue(nums(p.space)),radius:byValue(nums(p.radius)),size:byValue(nums(p.type.size)),weight:byValue(nums(p.type.weight))});let g=groups,space=v=>tokenOf(g.space,nums(theme.space),v),radius=v=>tokenOf(g.radius,nums(theme.radius),v),walk=v=>Array.isArray(v)?v.map(walk):v===null||typeof v!="object"?v:isBox(v)?{...v,padding:v.padding.map(space),gap:v.gap.map(space),marginTop:space(v.marginTop),marginBottom:space(v.marginBottom),radius:v.radius.map(radius)}:isText(v)?{...v,size:tokenOf(g.size,nums(theme.type.size),v.size),weight:tokenOf(g.weight,nums(theme.type.weight),v.weight),marginTop:space(v.marginTop),paddingTop:space(v.paddingTop)}:Object.fromEntries(Object.entries(v).map(([k2,x])=>[k2,walk(x)]));return walk(base3)}function blockMetrics(theme,base3){if(everfurTokens2(theme))return base3;let perTheme=derived.get(base3);perTheme||derived.set(base3,perTheme=/* @__PURE__ */new WeakMap);let hit=perTheme.get(theme);if(hit)return hit;let out=onTheme(theme,base3);return perTheme.set(theme,out),out}function scoreLightsLayout(values,width,height,m,rtl=false){let n=values.length;if(n===0||width<=0)return[];let{rows:rows,gap:gap,widthShare:widthShare}=m.grid,p=width/n,cw=Math.max(1,Math.round(p*widthShare)),ch=Number(((height-(rows-1)*gap)/rows).toFixed(2));return values.map((raw,i)=>{let v=Number.isFinite(raw)?Math.min(10,Math.max(0,raw)):0,lights=[];for(let k2=0;k2<rows;k2+=1){let opacity=Number(Math.max(0,Math.min(1,v-k2)).toFixed(3));opacity>0&&lights.push({y:Number((height-(k2+1)*((height-(rows-1)*gap)/rows)-k2*gap).toFixed(2)),height:ch,opacity:opacity})}let x=Math.round(i*p+(p-cw)/2);return{x:rtl?Math.round(width-x-cw):x,width:cw,zone:v>=m.zones.lot?"lot":v>=m.zones.some?"some":"go",lights:lights}})}var UiSurfaceContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#SurfaceContext@v1"),host2=globalThis;return host2[key]??(host2[key]=createContext(null))})();function useUiSurface(){return useContext(UiSurfaceContext)}var TEXT_VARIANT_TIERS={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function textToneColor(t,tone){let c=t.colors;switch(tone){case"ink":return c.ink;case"text":return c.text;case"muted":return c.muted;case"danger":return c.alertDeep;case"inverse":return c.onInk;default:return}}function textVariantSpec(t,variant,tone,weight){let base3=textPartSpec(t,t.metrics.text[variant]),color=textToneColor(t,tone);return{...base3,...color?{color:color}:{},...weight?{weight:t.type.weight[weight]}:{}}}var PressFeedbackContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),host2=globalThis,context=host2[key]??(host2[key]=createContext(null));return context.displayName??(context.displayName="EverfurPressFeedbackContext"),context})();function usePressFeedback(){return useContext(PressFeedbackContext)}function pressHandlers(feedback,event,onPress,options={}){if(!feedback||options.disabled)return{onPress:onPress,onPressIn:void 0};let{onPressIn:reportIn,onPress:report,haptic:haptic}=feedback,tick=options.haptics!==false&&event.haptic&&haptic?haptic:void 0;return{onPress:onPress&&(report||tick)?()=>{tick?.(event),report?.(event),onPress()}:onPress,onPressIn:reportIn?()=>reportIn(event):void 0}}function pressScaleFor(feedback,component,designScale=1){return feedback?.pressScale?.[component]??designScale}var TEXT_VARIANT_BREAKS={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function textVariantTier(t,variant){return t.type.variantTiers?.[variant]??TEXT_VARIANT_TIERS[variant]}var ReducedMotionContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),host2=globalThis,context=host2[key]??(host2[key]=createContext(null));return context.displayName??(context.displayName="EverfurReducedMotionContext"),context})();function useKnownReducedMotion(){return useContext(ReducedMotionContext)}function rnText(t,spec){let face2=faceOf(spec.weight,spec.mono===true);return{fontFamily:spec.serif?t.type.faces.serif??t.type.faces.bold:t.type.faces[face2],...t.type.namedFaces?{}:{fontWeight:String(spec.weight)},fontSize:spec.size,lineHeight:spec.lineHeight,color:spec.color,...spec.tracking?{letterSpacing:spec.tracking}:{},...spec.upper?{textTransform:"uppercase"}:{},...spec.deco?rnDeco(spec):{},...spec.tabular?{fontVariant:["tabular-nums"]}:{},...spec.wrap&&Platform.OS==="web"?{textWrap:spec.wrap}:{}}}function rnDeco(spec){let base3={textDecorationLine:spec.deco==="strike"?"line-through":"underline"};return Platform.OS!=="web"?base3:{...base3,...spec.decoOffset?{textUnderlineOffset:spec.decoOffset}:{},...spec.decoThickness?{textDecorationThickness:spec.decoThickness}:{}}}function rnBox(t,b){let[pt=0,pr=0,pb=0,pl=0]=b.padding,[rt=0,rb=0]=b.radius,fill=partFill(t,b.bg);return{paddingTop:pt,paddingRight:pr,paddingBottom:pb,paddingLeft:pl,...b.marginTop?{marginTop:b.marginTop}:{},...b.gap[0]?{columnGap:b.gap[0]}:{},...b.gap[1]?{rowGap:b.gap[1]}:{},...rt===rb?rt?{borderRadius:rt}:{}:{borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomLeftRadius:rb,borderBottomRightRadius:rb},...fill?{backgroundColor:fill}:{},...b.edge.width>0&&!b.edge.ring?{borderWidth:b.edge.width,borderColor:colorOf(t,b.edge.color)}:{},...b.minHeight?{minHeight:b.minHeight}:{},...rnShadow(b.shadow)}}function rnRing(t,b){return b.edge.width>0&&b.edge.ring?ringOverlay(b.edge.width,colorOf(t,b.edge.color),b.radius[0]??0):null}function webReducedMotion(){if(Platform.OS!=="web")return false;let g=globalThis;return typeof g.matchMedia=="function"&&g.matchMedia("(prefers-reduced-motion: reduce)").matches}function useOsReducedMotion(known){let[reduced,setReduced]=useState(()=>known===null&&webReducedMotion());return useEffect(()=>{if(known!==null)return;let mounted=true,query=AccessibilityInfo?.isReduceMotionEnabled;if(typeof query=="function"){let result=query.call(AccessibilityInfo);result!=null&&typeof result.then=="function"&&result.then(value=>{mounted&&setReduced(value===true)},()=>{})}let subscription=AccessibilityInfo?.addEventListener?.("reduceMotionChanged",value=>setReduced(value===true));return()=>{mounted=false,subscription?.remove?.()}},[known]),known??reduced}function useRnReduced(t){let os=useOsReducedMotion(useKnownReducedMotion());return t.motion.reduced||os}function ariaState(expanded,pressed,current){return{...expanded===void 0?{}:{expanded:expanded},...pressed===void 0?{}:{checked:pressed},...current===void 0?{}:{selected:current!==false}}}function slopFor(size){let pad=Math.max(0,Math.ceil((44-size)/2));return pad===0?void 0:{top:pad,bottom:pad,left:pad,right:pad}}function rnShadow(s){return s.blur===0&&s.y===0&&s.x===0?null:{shadowColor:s.color,shadowOffset:{width:s.x,height:s.y},shadowOpacity:1,shadowRadius:s.blur,elevation:1}}function ringOverlay(width,color,radius){let fill={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:radius};return Platform.OS==="web"?{...fill,boxShadow:`inset 0 0 0 ${width}px ${color}`}:{...fill,borderWidth:width,borderColor:color}}var unnamedClose=/* @__PURE__ */new Set;function warnUnnamedClose(component,onClose,closeLabel){let dev=typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production";!onClose||closeLabel||unnamedClose.has(component)||!dev||(unnamedClose.add(component),console.warn(`@everfur-health/ui-native: ${component} draws its close (onClose) without a closeLabel, so a screen reader cannot name it. Pass closeLabel with onClose.`))}function breakProps(mode){return mode==="auto"?null:Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:Platform.OS==="android"&&mode==="balance"?{textBreakStrategy:"balanced"}:null}function weightStyle(t,weight){let w=t.type.weight[weight];return t.type.namedFaces?{fontFamily:t.type.faces[faceOf(w)]}:{fontWeight:String(w)}}function Text({tier:tier,variant:variant,tone:tone,weight:weight,level:level,lineBreak:lineBreak,...props}){let t=useTheme(),cap=t.type.scaleCaps[tier??(variant?textVariantTier(t,variant):"content")],breaks=breakProps(lineBreak??(variant?TEXT_VARIANT_BREAKS[variant]:"auto"));if(variant===void 0&&tone===void 0&&weight===void 0&&level===void 0)return breaks?createElement(Text$1,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...props}):createElement(Text$1,cap>0?{maxFontSizeMultiplier:cap,...props}:props);let color=textToneColor(t,tone),own=variant?rnText(t,textVariantSpec(t,variant,tone,weight)):{...color?{color:color}:{},...weight?weightStyle(t,weight):{}},heading=level===void 0?{}:{accessibilityRole:"header",...Platform.OS==="web"?{"aria-level":level}:{}};return createElement(Text$1,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...heading,...props,style:[own,props.style]})}var BOX=24,FINE=16,SEAM=.8,fine=dp=>Math.round(dp*FINE);function place(cx,cy,W,H,ux,uy){let left=cx-W/2,top=cy-H/2,x=Math.round(left),y=Math.round(top);return{position:"absolute",left:x,top:y,width:W,height:H,transform:[{translateX:left-x},{translateY:top-y},{rotate:`${Math.atan2(uy,ux)*180/Math.PI}deg`},{scale:1/FINE}]}}function strokePieces(icon,k2,out){for(let s of icon.strokes){let w=s.width*k2,pts=s.points,n=pts.length/2,last=s.closed?n:n-1;for(let i=0;i<last;i+=1){let j=(i+1)%n,px2=(pts[i*2]??0)*k2,py=(pts[i*2+1]??0)*k2,dx=(pts[j*2]??0)*k2-px2,dy=(pts[j*2+1]??0)*k2-py,len=Math.hypot(dx,dy);if(len===0&&!(n===2&&s.cap))continue;let ux=len===0?1:dx/len,uy=len===0?0:dy/len,e0=s.closed||i>0||s.cap?w/2:0,e1=s.closed||j!==n-1||s.cap?w/2:0,along=(len+e1-e0)/2;out.push({paint:"backgroundColor",style:{...place(px2+ux*along,py+uy*along,fine(len+e0+e1),fine(w),ux,uy),borderTopLeftRadius:e0>0?fine(w)/2:0,borderBottomLeftRadius:e0>0?fine(w)/2:0,borderTopRightRadius:e1>0?fine(w)/2:0,borderBottomRightRadius:e1>0?fine(w)/2:0,...s.opacity===void 0?{}:{opacity:s.opacity}}})}}}function boxPieces(icon,k2,out){for(let b of icon.boxes){let w=(b.w+b.width)*k2,h=(b.h+b.width)*k2;out.push({paint:"borderColor",style:{...place((b.x-b.width/2)*k2+w/2,(b.y-b.width/2)*k2+h/2,fine(w),fine(h),1,0),borderWidth:fine(b.width*k2),borderRadius:(b.radius+b.width/2)*k2*FINE,...b.opacity===void 0?{}:{opacity:b.opacity}}})}}function trianglePieces(icon,k2,out){for(let t of icon.triangles){let p=[0,1,2].map(i=>[(t[i*2]??0)*k2,(t[i*2+1]??0)*k2]),base3=0,len=-1;for(let i=0;i<3;i+=1){let a2=p[i]??[0,0],b=p[(i+1)%3]??[0,0],d=Math.hypot(b[0]-a2[0],b[1]-a2[1]);d>len&&(len=d,base3=i)}if(len<=0)continue;let b0=p[base3]??[0,0],b1=p[(base3+1)%3]??[0,0],a=p[(base3+2)%3]??[0,0],ux=(b1[0]-b0[0])/len,uy=(b1[1]-b0[1])/len,along=(a[0]-b0[0])*ux+(a[1]-b0[1])*uy,across=(a[0]-b0[0])*-uy+(a[1]-b0[1])*ux,h=Math.abs(across),up=across<0,mid=up?-h/2:h/2,bl=fine(along),br=fine(len)-bl,bh=fine(h);out.push({paint:up?"borderBottomColor":"borderTopColor",style:{...place(b0[0]+ux*(len/2)-uy*mid,b0[1]+uy*(len/2)+ux*mid,bl+br,bh,ux,uy),width:0,height:0,borderLeftWidth:bl,borderRightWidth:br,borderLeftColor:"transparent",borderRightColor:"transparent",...up?{borderBottomWidth:bh}:{borderTopWidth:bh}}})}for(let e of icon.seams){let x0=(e[0]??0)*k2,y0=(e[1]??0)*k2,dx=(e[2]??0)*k2-x0,dy=(e[3]??0)*k2-y0,d=Math.hypot(dx,dy),in0=SEAM*(e[4]??0),in1=SEAM*(e[5]??0),bar=d-in0-in1;if(d===0||bar<=0)continue;let mid=in0+bar/2;out.push({paint:"backgroundColor",style:place(x0+dx/d*mid,y0+dy/d*mid,fine(bar),fine(SEAM),dx/d,dy/d)})}}var cache=/* @__PURE__ */new WeakMap;function piecesOf(icon,size){let sizes=cache.get(icon);sizes===void 0&&(sizes=/* @__PURE__ */new Map,cache.set(icon,sizes));let hit=sizes.get(size);if(hit!==void 0)return hit;let out=[],k2=size/BOX;return boxPieces(icon,k2,out),strokePieces(icon,k2,out),trianglePieces(icon,k2,out),sizes.set(size,out),out}function Glyph({icon:icon,size:size,color:color,label:label,testID:testID,style:style}){let t=useTheme(),side=size??t.metrics.icon.size,ink=color??t.colors.ink;/* @__PURE__ */
|
|
27
|
+
return Object.freeze({schema:SLOT_SCHEMA,slot:slot,docVersion:null,minBlocks:1,tokens:{},parts:/* @__PURE__ */Object.freeze([...parts]),copy:{}})}var P=SLOT_NAMED_PARTS,BUNDLED_SLOT_DOCS=/* @__PURE__ */Object.freeze({"health_plan.focus":doc("health_plan.focus",[P.focus,P.tips]),"today.health":doc("today.health",[P.focus,P.tips]),"shop.shelf":doc("shop.shelf",[P.shelf]),"shop.cart":doc("shop.cart",[P.cartLines,P.cartSummary]),"shop.orders":doc("shop.orders",[P.orders])});function bundledSlotDoc(slot){return Object.prototype.hasOwnProperty.call(BUNDLED_SLOT_DOCS,slot)?BUNDLED_SLOT_DOCS[slot]??null:null}function namedPartDoc(name){return doc(`part.${name.toLowerCase()}`,[SLOT_NAMED_PARTS[name]])}function toRgba(value){if(typeof value=="number")return argbIntToRgba(value);if(typeof value!="string")return null;let s=value.trim();if(s.length===0)return null;if(s.startsWith("#"))return fromHex(s.slice(1));if(s.toLowerCase().startsWith("0x"))return fromHex(s.slice(2));if(s.toLowerCase().startsWith("rgb"))return fromRgbFunc(s);if(/^[0-9a-fA-F]+$/.test(s)){let hex=fromHex(s);if(hex!==null)return hex}return/^\d+$/.test(s)?argbIntToRgba(Number.parseInt(s,10)):null}function fromHex(hex){let h=hex.trim();if(!/^[0-9a-fA-F]+$/.test(h))return null;if(h.length===3)return{r:dup(h[0]),g:dup(h[1]),b:dup(h[2]),a:1};if(h.length===6)return{r:byte(h,0),g:byte(h,2),b:byte(h,4),a:1};if(h.length===8){let a=byte(h,0);return{r:byte(h,2),g:byte(h,4),b:byte(h,6),a:a/255}}return null}function fromRgbFunc(input){let open=input.indexOf("("),close=input.indexOf(")");if(open<0||close<0||close<open)return null;let parts=input.slice(open+1,close).split(",").map(p=>p.trim());if(parts.length<3)return null;let r=clampByte(Number(parts[0])),g=clampByte(Number(parts[1])),b=clampByte(Number(parts[2]));if(r===null||g===null||b===null)return null;let a=1;if(parts.length>=4){let alpha=Number(parts[3]);if(!Number.isFinite(alpha))return null;a=Math.min(1,Math.max(0,alpha))}return{r:r,g:g,b:b,a:a}}function argbIntToRgba(n){if(!Number.isFinite(n))return null;let int3=Math.trunc(n)>>>0,a=int3>>>24&255;return{r:int3>>>16&255,g:int3>>>8&255,b:int3&255,a:a===0?1:a/255}}function byte(hex,at){return Number.parseInt(hex.slice(at,at+2),16)}function dup(nibble){return Number.parseInt(`${nibble??"0"}${nibble??"0"}`,16)}function clampByte(n){return Number.isFinite(n)?Math.min(255,Math.max(0,Math.round(n))):null}function rgbToHex(r,g,b){return`#${hex2(r)}${hex2(g)}${hex2(b)}`.toUpperCase()}function hex2(n){return n.toString(16).padStart(2,"0")}var NEAR_BLACK="#111111",WHITE="#FFFFFF",BLACK="#000000";function readableOn(background){let rgba=toRgba(background);if(rgba===null)return WHITE;let bg=relativeLuminance(rgba),black=relativeLuminance({r:17,g:17,b:17}),white=relativeLuminance({r:255,g:255,b:255});return luminanceContrast(bg,white)>=luminanceContrast(bg,black)?WHITE:NEAR_BLACK}function legibleOn(background,target){let first=readableOn(background);return contrastRatio(first,background)>=target?first:contrastRatio(WHITE,background)>=contrastRatio(BLACK,background)?WHITE:BLACK}function poleForGrounds(grounds){let worst=ink=>grounds.reduce((low,ground)=>Math.min(low,contrastRatio(ink,ground)),Number.POSITIVE_INFINITY);return worst(WHITE)>=worst(BLACK)?WHITE:BLACK}function relativeLuminance(rgba){let r=linearize(rgba.r/255),g=linearize(rgba.g/255),b=linearize(rgba.b/255);return.2126*r+.7152*g+.0722*b}function linearize(channel){return channel<=.03928?channel/12.92:Math.pow((channel+.055)/1.055,2.4)}function luminanceContrast(l1,l2){let lighter=Math.max(l1,l2),darker=Math.min(l1,l2);return(lighter+.05)/(darker+.05)}function contrastRatio(a,b){let fg=toRgba(a),bg=toRgba(b);if(fg===null||bg===null)return 1;let ground=bg.a>=1?bg:{...bg},fore=fg.a>=1?fg:composite(fg,ground);return luminanceContrast(relativeLuminance(fore),relativeLuminance(ground))}function composite(fg,bg){let a=fg.a,mix=(f,g)=>Math.round(f*a+g*(1-a));return{r:mix(fg.r,bg.r),g:mix(fg.g,bg.g),b:mix(fg.b,bg.b),a:1}}function flattenOnto(color,background){let fg=toRgba(color),bg=toRgba(background);if(fg===null||bg===null)return null;let out=fg.a>=1?fg:composite(fg,{...bg});return rgbToHex(out.r,out.g,out.b)}var PUSH_STEP=.05;function pushToContrast(color,grounds,pole,target){let first=grounds[0];if(first===void 0)return pole;let reads=candidate=>grounds.every(ground=>contrastRatio(candidate,ground)>=target);if(toRgba(color)===null)return pole;if(reads(color))return color;let flat=flattenOnto(color,first),from=flat===null?null:toRgba(flat),to=toRgba(pole);if(from===null||to===null)return pole;for(let step=1;step<1/PUSH_STEP;step+=1){let t=step*PUSH_STEP,mix=(a,b)=>Math.round(a+(b-a)*t),candidate=rgbToHex(mix(from.r,to.r),mix(from.g,to.g),mix(from.b,to.b));if(reads(candidate))return candidate}return pole}var TYPE_ROLE_DEFAULTS=/* @__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 freezeInPlace=Object.freeze;function deepFreeze(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value)){freezeInPlace(value);for(let key of Object.keys(value))deepFreeze(value[key])}return value}var TEXT_SCALE_TIER_CAPS=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var SPACE={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},RADIUS={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},TYPE_SIZE={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},LINE_HEIGHT={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},WEIGHT={regular:"400",medium:"500",bold:"700"},LETTER_SPACING={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},DEFAULT_MAX_FONT_SCALE=0,SYSTEM_FONT_FAMILY="System",SYSTEM_MONO_FAMILY="monospace",TIERS=["content","heading","control","compact","badge"];function authoredTierSizes(size){let out={};for(let tier of TIERS)out[tier]=size;return out}var NO_FONT_SOURCES=[];function baseType(){return{family:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,fontUrl:null,families:{regular:SYSTEM_FONT_FAMILY,medium:SYSTEM_FONT_FAMILY,bold:SYSTEM_FONT_FAMILY,mono:SYSTEM_MONO_FAMILY,monoMedium:SYSTEM_MONO_FAMILY,monoBold:SYSTEM_MONO_FAMILY},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:TYPE_SIZE,tierSizes:authoredTierSizes(TYPE_SIZE),lineHeight:LINE_HEIGHT,weight:WEIGHT,letterSpacing:LETTER_SPACING,scale:1,maxScale:DEFAULT_MAX_FONT_SCALE,scaleCaps:TEXT_SCALE_TIER_CAPS,headingFamily:null,headingWeight:null,fontSources:NO_FONT_SOURCES,roles:TYPE_ROLE_DEFAULTS,typeScale:1}}var NO_SLOTS={},EASING_CURVES=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(curve){return`cubic-bezier(${curve.join(", ")})`}var MOTION={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(EASING_CURVES.standard),emphasized:cssCubicBezier(EASING_CURVES.emphasized),exit:cssCubicBezier(EASING_CURVES.exit)},reducedMotion:false},LIGHT_COLOR={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},EVERFUR_LIGHT=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:LIGHT_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS}),DARK_COLOR={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},EVERFUR_DARK=deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:DARK_COLOR,space:SPACE,radius:RADIUS,type:baseType(),motion:MOTION,slots:NO_SLOTS});function utf8Bytes(text){let out=[];for(let ch of text){let cp=ch.codePointAt(0);cp<128?out.push(cp):cp<2048?out.push(192|cp>>6,128|cp&63):cp<65536?out.push(224|cp>>12,128|cp>>6&63,128|cp&63):out.push(240|cp>>18,128|cp>>12&63,128|cp>>6&63,128|cp&63)}return out}function fnv1a64Hex(text){let hi=3421674724,lo=2216829733;for(let byte2 of utf8Bytes(text)){lo=(lo^byte2)>>>0;let loProduct=lo*435,carry=Math.floor(loProduct/4294967296),nextLo=loProduct>>>0;hi=hi*435+carry+lo*256>>>0,lo=nextLo}return hi.toString(16).padStart(8,"0")+lo.toString(16).padStart(8,"0")}var tenants=/* @__PURE__ */new WeakMap;function runtimeTenantOf(runtime){return tenants.get(runtime)}var SLOT_REGISTRY_HASH="sha256-0IDdNTQTtW2+pJ9GBCa/aWJrH/lf2X2jHhTQaCt6g5E=";var SLOT_BLOCKS={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 SLOT_LKG_KEY="everfur.slots.v2",SLOT_INSTALL_ID_KEY="everfur.slots.installId.v2";var SLOT_CACHE_MS=6e4,SLOT_CACHE_MAX_MS=3e5,SLOT_FAILURE_MS=15e3,SLOT_LKG_MAX_AGE_MS=10080*60*1e3,ETAG=/^(W\/)?"[^"]{1,200}"$/,INSTALL_ID=/^[A-Za-z0-9_-]{8,128}$/,MAX_AGE=/(?:^|,)\s*max-age\s*=\s*"?(\d{1,10})"?\s*(?:,|$)/i,NO_STORE2=/(?:^|,)\s*(?:no-store|no-cache)\s*(?:,|$)/i,FIXED_SCOPE=/* @__PURE__ */Object.freeze({doc:"default",tenant:"default",epoch:0});function randomId(){let out="";for(let i=0;i<4;i++)out+=Math.floor(Math.random()*4294967296).toString(36).padStart(7,"0");return out}function slotCacheMs(cacheControl){if(cacheControl===null)return SLOT_CACHE_MS;if(NO_STORE2.test(cacheControl))return 0;let m=MAX_AGE.exec(cacheControl);return m===null?SLOT_CACHE_MS:Math.min(Number(m[1])*1e3,SLOT_CACHE_MAX_MS)}var has=(obj2,key)=>Object.prototype.hasOwnProperty.call(obj2,key);function createSlotClient(deps){let now=deps.now??Date.now,scopeOf=()=>{try{return deps.scope?.()??FIXED_SCOPE}catch{return FIXED_SCOPE}},memory=/* @__PURE__ */new Map,failures=/* @__PURE__ */new Map,inFlight=/* @__PURE__ */new Map,installId=null,epoch=null,rescoped=false,writes=Promise.resolve(),track=(event,props)=>{try{deps.telemetry?.track(event,props)}catch{}},observe=scope=>{epoch!==scope.epoch&&(epoch!==null&&(memory.clear(),failures.clear(),installId=null,rescoped=true),epoch=scope.epoch)},stale=scope=>{let current=scopeOf();return current.epoch!==scope.epoch||current.doc!==scope.doc},undoIfStale=async(scope,key,written)=>{if(!stale(scope))return false;try{await deps.kv.getItem(key)===written&&await deps.kv.removeItem(key)}catch{}return true},readInstallId=scope=>{let tenant=fnv1a64Hex(scope.tenant);if(installId?.tenant===tenant)return installId.id;let fresh2=rescoped;rescoped=false;let id=(async()=>{if(!fresh2)try{let raw=await deps.kv.getItem(SLOT_INSTALL_ID_KEY),kept=raw===null?null:JSON.parse(raw);if(kept?.tenant===tenant&&typeof kept.id=="string"&&INSTALL_ID.test(kept.id))return kept.id}catch{}try{let made=(deps.newId??randomId)();if(!INSTALL_ID.test(made))return null;let text=JSON.stringify({tenant:tenant,id:made});return await deps.kv.setItem(SLOT_INSTALL_ID_KEY,text),await undoIfStale(scope,SLOT_INSTALL_ID_KEY,text)?null:made}catch{return null}})();return installId={tenant:tenant,id:id},id},readFile=async scopeKey=>{try{let raw=await deps.kv.getItem(SLOT_LKG_KEY),file=raw===null?null:JSON.parse(raw);return file?.scope!==scopeKey||file.docs===null||typeof file.docs!="object"||Array.isArray(file.docs)?{docs:{}}:{docs:file.docs}}catch{return{docs:{}}}},readStored=async(scope,slot)=>{let file=await readFile(fnv1a64Hex(scope.doc)),entry=has(file.docs,slot)?file.docs[slot]:void 0;if(entry==null||typeof entry.at!="number")return null;let age=now()-entry.at;if(!(age<SLOT_LKG_MAX_AGE_MS)||age<-SLOT_CACHE_MAX_MS)return null;let parsed=parseSlotDoc(entry.doc,slot);if(!parsed.ok)return null;let etag=typeof entry.etag=="string"&&ETAG.test(entry.etag)?entry.etag:null;return{doc:parsed.doc,etag:etag}},update=(scope,slot,change)=>{let scopeKey=fnv1a64Hex(scope.doc);return writes=writes.then(async()=>{if(!stale(scope))try{let file=await readFile(scopeKey);if(stale(scope))return;let docs={...file.docs},next=change(has(docs,slot)?docs[slot]:void 0);if(next===null?delete docs[slot]:docs[slot]=next,Object.keys(docs).length===0)await deps.kv.removeItem(SLOT_LKG_KEY);else{let text=JSON.stringify({scope:scopeKey,docs:docs});await deps.kv.setItem(SLOT_LKG_KEY,text),await undoIfStale(scope,SLOT_LKG_KEY,text)}}catch{}}),writes},read=async(scope,slot)=>{let key=`${scope.doc}|${slot}`,mem=memory.get(key),stored=mem===void 0?await readStored(scope,slot):null,held=mem!==void 0?{doc:mem.doc,etag:mem.etag}:stored,install=await readInstallId(scope),headers={"x-everfur-blocks":deps.blocks??SLOT_REGISTRY_HASH};install!==null&&(headers["x-everfur-install-id"]=install),held?.doc&&held.etag!==null&&(headers["if-none-match"]=held.etag);let etag=null,ttl=SLOT_CACHE_MS,res=await deps.send("slots.read",{method:"GET",path:`/widget/v1/slots/${encodeURIComponent(slot)}`,headers:headers,rawText:65536,onResponseHeaders:header=>{let value=header("etag");etag=value!==null&&ETAG.test(value)?value:null,ttl=slotCacheMs(header("cache-control"))}}).catch(()=>null),fallBack=()=>held?.doc?{doc:held.doc,source:mem!==void 0?"cache":"last-known-good"}:{doc:null,source:"bundled"},failed=status2=>(failures.set(key,now()),track("slots.read_failed",{slot:slot,status:status2}),fallBack());if(stale(scope))return{doc:null,source:"bundled"};if(res===null)return failed(null);if(res.ok){let body=slotBodyOf(res.value);if(!body.ok)return track("slots.refused",{slot:slot,reason:body.reason}),fallBack();let parsed=parseSlotDoc(body.raw,slot);if(!parsed.ok)return track("slots.refused",{slot:slot,reason:parsed.reason}),fallBack();let at=now();return memory.set(key,{doc:parsed.doc,etag:etag,at:at,ttl:ttl}),await update(scope,slot,()=>({etag:etag,doc:body.raw,at:at})),{doc:parsed.doc,source:"live"}}let status=res.error.httpStatus;if(status===304&&held?.doc){let at=now();return memory.set(key,{doc:held.doc,etag:held.etag,at:at,ttl:ttl}),await update(scope,slot,entry=>entry===void 0?null:{...entry,at:at}),{doc:held.doc,source:"live"}}return status===404?(memory.set(key,{doc:null,etag:null,at:now(),ttl:ttl}),await update(scope,slot,()=>null),{doc:null,source:"bundled"}):failed(status??null)},peekIn=(scope,slot)=>{let mem=memory.get(`${scope.doc}|${slot}`);return mem===void 0||now()-mem.at>=mem.ttl?null:mem.doc===null?{doc:null,source:"bundled"}:{doc:mem.doc,source:"cache"}},storedIn=async(scope,slot)=>{let mem=memory.get(`${scope.doc}|${slot}`);if(mem!==void 0)return mem.doc===null?{doc:null,source:"bundled"}:{doc:mem.doc,source:"cache"};let kept=await readStored(scope,slot);return kept===null?{doc:null,source:"bundled"}:{doc:kept.doc,source:"last-known-good"}};return{peek(slot){let scope=scopeOf();return observe(scope),peekIn(scope,slot)},stored(slot){let scope=scopeOf();return observe(scope),storedIn(scope,slot).catch(()=>({doc:null,source:"bundled"}))},load(slot){let scope=scopeOf();observe(scope);let fromCache=peekIn(scope,slot);if(fromCache!==null)return Promise.resolve(fromCache);let key=`${scope.doc}|${slot}`,flight=`${scope.epoch}|${key}`,pending=inFlight.get(flight);if(pending!==void 0)return pending;let failedAt=failures.get(key),next=(failedAt!==void 0&&now()-failedAt<SLOT_FAILURE_MS?storedIn(scope,slot):read(scope,slot)).catch(()=>({doc:null,source:"bundled"})).finally(()=>inFlight.delete(flight));return inFlight.set(flight,next),next}}}function runtimeSlotScope(runtime){let tenant=runtimeTenantOf(runtime)??"unknown",auth=runtime.registry.services.authFor(null),who=auth.mode==="personalized"?`u:${auth.userRef??""}`:`a:${auth.userRef??""}`;return{doc:`${tenant}|${who}`,tenant:tenant,epoch:runtime.scopeEpoch??0}}var CLIENTS_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotClients@v1");function slotClientFor(runtime,make=runtimeSlotClient){let host2=globalThis,all=host2[CLIENTS_SYMBOL];all instanceof WeakMap||(all=/* @__PURE__ */new WeakMap,host2[CLIENTS_SYMBOL]=all);let map=all,client=map.get(runtime);return client===void 0&&(client=make(runtime),map.set(runtime,client)),client}function runtimeSlotClient(runtime){let{services:services}=runtime.registry;return createSlotClient({send:(call,req)=>createRequestFunnel({auth:services.authFor(null),...services.errorPolicy?{errorPolicy:services.errorPolicy}:{}}).send(call,req),kv:services.kv,telemetry:services.telemetry,scope:()=>runtimeSlotScope(runtime)})}function drawn(slot,load){return{doc:load.doc??bundledSlotDoc(slot),source:load.source}}function useSlotDoc(slot,enabled){let{runtime:runtime,scopeEpoch:scopeEpoch}=useEverfurContext(),client=enabled?slotClientFor(runtime):null,[state,setState]=useState(()=>{let fresh2=client?.peek(slot);return fresh2?{slot:slot,epoch:scopeEpoch,value:drawn(slot,fresh2)}:null});return useEffect(()=>{if(client===null)return;let live=true,landed=false,fresh2=client.peek(slot);if(fresh2!==null){setState({slot:slot,epoch:scopeEpoch,value:drawn(slot,fresh2)});return}return client.stored(slot).then(held=>{live&&!landed&&setState({slot:slot,epoch:scopeEpoch,value:drawn(slot,held)})}),client.load(slot).then(load=>{landed=true,live&&setState({slot:slot,epoch:scopeEpoch,value:drawn(slot,load)})}),()=>{live=false}},[client,slot,scopeEpoch]),enabled?state!==null&&state.slot===slot&&state.epoch===scopeEpoch?state.value:{doc:null,source:"pending"}:{doc:bundledSlotDoc(slot),source:"bundled"}}var UI_RN_WX_SUN=[{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:[]}}],UI_RN_WX_SUN_LG=[{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]]}}],UI_RN_WX_PLAY={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 everfurTokens=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var BLOCK_BOX={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},BLOCK_TEXT={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},blockBox=p=>({...BLOCK_BOX,...p}),blockText=p=>({...BLOCK_TEXT,...p}),everfurMetrics={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},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"}},orderBlockMetrics={card:/* @__PURE__ */blockBox({w:361,h:163.547}),top:/* @__PURE__ */blockBox({w:361,h:39.547,gap:[12,12]}),title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20,tracking:-.16}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55,color:"muted"}),total:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */blockBox({w:361,h:64,marginTop:8,gap:[8,8]}),acts:/* @__PURE__ */blockBox({w:361,h:40,marginTop:12,gap:[8,8]}),go:/* @__PURE__ */blockBox({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"go",center:true}),goText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),plain:/* @__PURE__ */blockBox({w:176.5,h:40,padding:[0,12,0,12],gap:[6,6],minHeight:40,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),note:/* @__PURE__ */blockText({size:13,weight:500,lineHeight:17.55,marginTop:8}),icon:/* @__PURE__ */blockBox({w:16,h:16}),actsColumns:2,shotPressScale:.96},orderQuietBlockMetrics={top:/* @__PURE__ */blockBox({w:361,h:43.547,gap:[12,12]}),when:/* @__PURE__ */blockBox({w:300.063,h:24,gap:[8,4],center:true}),title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20.8}),chip:/* @__PURE__ */blockBox({w:86.031,h:24,padding:[0,9,0,5],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:15.6,color:"ink"}),chipIcon:/* @__PURE__ */blockBox({w:14,h:14,color:"ink"}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),total:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:24.8,tabular:true}),shots:/* @__PURE__ */blockBox({w:361,h:64,marginTop:8,gap:[8,8]}),shot:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),shotImg:/* @__PURE__ */blockBox({w:64,h:64,padding:[6.391,6.391,6.391,6.391],fit:"contain"}),shotBlend:"multiply",acts:/* @__PURE__ */blockBox({w:361,h:44,marginTop:12,gap:[12,12],center:true}),plain:/* @__PURE__ */blockBox({w:162.109,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"#F3F3F3",center:true}),plainText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),icon:/* @__PURE__ */blockBox({w:16,h:16}),link:/* @__PURE__ */blockBox({w:62.578,h:44,padding:[0,6,0,6],minHeight:44}),linkText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7,deco:"underline",decoOffset:3,decoThickness:1.5})},orderWebBlockMetrics={card:/* @__PURE__ */blockBox({w:952,h:127.781,padding:[16,24,16,16],gap:[24,16],radius:[20,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.04)",x:0,y:1,blur:2,spread:0},center:true}),lift:{color:"rgba(0, 0, 0, 0.05)",x:0,y:6,blur:20,spread:0},shots:/* @__PURE__ */blockBox({w:172,h:72}),sq:/* @__PURE__ */blockBox({w:72,h:72,radius:[14,14],bg:"#F3F3F3"}),sqRing:3,sqOverlap:22,imgInset:.1,imgFit:"contain",imgBlend:"multiply",text:/* @__PURE__ */blockBox({w:446.547,h:95.781,gap:[2,2]}),when:/* @__PURE__ */blockBox({w:446.547,h:26,gap:[12,4],center:true}),title:/* @__PURE__ */blockText({size:19,weight:700,lineHeight:24.7,tabular:true}),total:/* @__PURE__ */blockText({size:19,weight:900,lineHeight:24.7,tabular:true}),chip:/* @__PURE__ */blockBox({w:94.547,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:16.9,color:"ink",tabular:true}),chipIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"ink"}),meta:/* @__PURE__ */blockText({size:16,weight:400,lineHeight:22.4}),note:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21}),acts:/* @__PURE__ */blockBox({w:245.453,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */blockBox({w:160.031,h:46,padding:[0,20,0,20],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:19.2,color:"ink"}),icon:/* @__PURE__ */blockBox({w:18,h:18,color:"ink"}),link:/* @__PURE__ */blockBox({w:61.422,h:44,gap:[8,8],minHeight:44,center:true,color:"ink"}),linkText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:20.4,color:"ink",deco:"underline",decoOffset:4}),go:/* @__PURE__ */blockBox({w:228.75,h:52,padding:[0,24,0,24],gap:[8,8],minHeight:52,radius:[999,999],bg:"ink",center:true,color:"surface"}),goText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:20.4,color:"surface",wrap:"auto"}),pressScale:.97,hoverFill:{color:"ink",share:.06,over:"surface"},chipOff:/* @__PURE__ */blockBox({w:97.422,h:26,padding:[0,10,0,6],gap:[4,4],minHeight:26,radius:[999,999],center:true,color:"ink"}),metaLink:/* @__PURE__ */blockText({size:16,weight:400,lineHeight:22.4,deco:"underline"}),narrow:{upTo:599,card:/* @__PURE__ */blockBox({w:560,h:247.391,padding:[16,16,16,16],gap:[24,16],radius:[20,20],bg:"surface",center:true}),sq:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3",shadow:{color:"#FFFFFF",x:0,y:0,blur:0,spread:3}}),sqOverlap:16},phone:{upTo:639,card:/* @__PURE__ */blockBox({w:335,h:120.984,gap:[12,8],center:true}),sq:/* @__PURE__ */blockBox({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),sqRing:2,sqOverlap:18,when:/* @__PURE__ */blockBox({w:215,h:46.797,gap:[12,2],center:true}),title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20.8,tabular:true}),total:/* @__PURE__ */blockText({size:16,weight:900,lineHeight:20.8,tabular:true}),chip:/* @__PURE__ */blockBox({w:90.031,h:24,padding:[0,10,0,6],gap:[4,4],minHeight:24,radius:[999,999],bg:"tintGo",center:true,color:"ink"}),chipText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:15.6,color:"ink",tabular:true}),whatHidden:true,note:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.2}),acts:/* @__PURE__ */blockBox({w:335,h:46,gap:[24,8],center:true}),plain:/* @__PURE__ */blockBox({w:144.531,h:46,padding:[0,16,0,16],gap:[8,8],minHeight:46,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true,color:"ink"}),plainText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18,color:"ink"}),linkText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18,color:"ink",deco:"underline",decoOffset:4})}},productBlockMetrics={card:/* @__PURE__ */blockBox({w:156,h:310.969,gap:[4,4]}),kicker:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:15.6,color:"muted",tracking:.12,face:"mono"}),name:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.2,color:"muted"}),buy:/* @__PURE__ */blockBox({w:156,h:36,marginTop:6,gap:[8,8],center:true}),price:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,tabular:true})},productCardBlockMetrics={card:/* @__PURE__ */blockBox({w:174.5,h:249.219,gap:[2,2]}),tag:/* @__PURE__ */blockBox({w:84.563,h:26,padding:[0,9,0,6],gap:[4,4],minHeight:26,radius:[999,999],bg:"surface",center:true,x:8,y:8}),tagIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"#CA4463"}),tagText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12}),price:/* @__PURE__ */blockBox({w:174.5,h:26.344,gap:[6,6]}),priceText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,tracking:-.17,tabular:true}),was:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"}),name:/* @__PURE__ */blockText({size:14,weight:500,lineHeight:18.2,wrap:"balance"}),meta:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:16.2,color:"muted"}),metaAuto:/* @__PURE__ */blockText({size:12,weight:500,lineHeight:16.2,color:"#16864A"}),step:/* @__PURE__ */blockBox({w:112,h:38,radius:[19,19],bg:"surface",center:true,x:54.5,y:128.5}),stepIn:/* @__PURE__ */blockBox({w:112,h:38,radius:[19,19],bg:"ink",center:true,color:"surface",x:54.5,y:128.5}),stepAt:{right:8,bottom:8},stepButton:/* @__PURE__ */blockBox({w:38,h:38,radius:[19,19],center:true}),stepIcon:/* @__PURE__ */blockBox({w:18,h:18}),count:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),lift:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},per:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:16.2,color:"muted",tabular:true}),metaAutoDark:/* @__PURE__ */blockText({size:12,weight:500,lineHeight:16.2,color:"ink"}),pill:/* @__PURE__ */blockBox({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"go",center:true,x:104.266,y:130.5}),pillText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),pillOn:/* @__PURE__ */blockBox({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"text",ring:true},center:true,x:76.484,y:130.5}),pillOnText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),pillIcon:/* @__PURE__ */blockBox({w:16,h:16}),pillSoft:/* @__PURE__ */blockBox({w:80.125,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true,x:86.375,y:130.5}),pillSoftText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7}),pillAt:{right:8,bottom:8},pillPressScale:.96},productBlendBlockMetrics={img:/* @__PURE__ */blockBox({w:174.5,h:174.5,padding:[32,14,16,14],fit:"contain"}),imgBlend:"multiply",lift:{color:"rgba(0, 0, 0, 0.08)",x:0,y:2,blur:8,spread:0},pill:/* @__PURE__ */blockBox({w:62.234,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"pink",edge:{width:1,color:"ink",ring:true},center:true,color:"ink",x:104.266,y:130.5}),pillText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillOn:/* @__PURE__ */blockBox({w:90.016,h:36,padding:[0,14,0,14],gap:[4,4],minHeight:36,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink",x:76.484,y:130.5}),pillOnText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:21.7,color:"ink"}),pillPressScale:.97},productWebBlockMetrics={card:/* @__PURE__ */blockBox({w:306.656,h:370.641,gap:[2,2]}),square:/* @__PURE__ */blockBox({w:306.656,h:306.656,marginBottom:10,radius:[20,20],bg:"#F5F5F5"}),imgInsetTag:{share:[.11,.11,.1,.11],px:[26,0,0,0]},imgInset:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgFit:"contain",imgBlend:"multiply",tag:/* @__PURE__ */blockBox({w:112.516,h:30,padding:[0,12,0,8],gap:[5,5],minHeight:30,radius:[999,999],bg:"#F7E3E8",center:true,color:"ink",x:10,y:10}),tagText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:14.3,color:"ink"}),tagIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"#CA4463"}),tagMix:.15,name:/* @__PURE__ */blockText({size:17,weight:500,lineHeight:22.1,wrap:"balance"}),nameLeading:1.3,coverRadius:20,price:/* @__PURE__ */blockBox({w:306.656,h:27.891,gap:[8,2]}),priceText:/* @__PURE__ */blockText({size:18,weight:700,lineHeight:27.9,tracking:-.18,tabular:true}),was:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),per:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,tabular:true}),badge:/* @__PURE__ */blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:13,tabular:true}),meta:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21}),add:/* @__PURE__ */blockBox({w:44,h:44,radius:[22,22],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),addIcon:/* @__PURE__ */blockBox({w:20,h:20}),actAt:{right:10,bottom:10},step:/* @__PURE__ */blockBox({w:116,h:44,radius:[22,22],bg:"ink",center:true,color:"surface"}),stepButton:/* @__PURE__ */blockBox({w:44,h:44,radius:[22,22],center:true,color:"surface"}),stepIcon:/* @__PURE__ */blockBox({w:18,h:18,color:"surface"}),count:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"surface",tabular:true}),pill:/* @__PURE__ */blockBox({w:68.688,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"ink",center:true,color:"surface"}),pillText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15,color:"surface"}),pillOn:/* @__PURE__ */blockBox({w:101.016,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",edge:{width:2,color:"ink",ring:true},center:true,color:"ink"}),pillOnText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15,color:"ink"}),pillIcon:/* @__PURE__ */blockBox({w:18,h:18,color:"ink"}),pillSoft:/* @__PURE__ */blockBox({w:87.859,h:44,padding:[0,16,0,16],gap:[6,6],minHeight:44,radius:[999,999],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0},center:true}),pillSoftText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15}),nameSteps:[{upTo:599,name:/* @__PURE__ */blockText({size:16,weight:500,lineHeight:20.8,wrap:"balance"})},{upTo:399,name:/* @__PURE__ */blockText({size:14,weight:500,lineHeight:18.2,wrap:"balance"})}],addPressScale:.94,stepPressScale:.88,pillPressScale:.97,imgInsetEven:{share:[.07,.07,.07,.07],px:[0,0,0,0]},imgInsetWhite:{share:[.11,.11,.14,.11],px:[0,0,0,0]},groundWhite:"surface",focusOffset:3,hover:{ring:{width:1.5,share:.45,color:"ink"},underlineOffset:3}},productRowBlockMetrics={card:/* @__PURE__ */blockBox({shown:false,w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */blockText({shown:false,size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */blockText({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2})},cartBlockMetrics={line:/* @__PURE__ */blockBox({w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */blockBox({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:/* @__PURE__ */blockText({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:/* @__PURE__ */blockBox({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:/* @__PURE__ */blockBox({w:53.016,h:20.141,color:"ink"}),end:/* @__PURE__ */blockBox({w:289,h:26.344,gap:[4,4]})},cartSquareBlockMetrics={line:/* @__PURE__ */blockBox({w:361,h:95.094,gap:[12,12]}),sm:/* @__PURE__ */blockBox({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:/* @__PURE__ */blockBox({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:/* @__PURE__ */blockBox({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */blockBox({w:239.109,h:20,gap:[6,4],center:true}),nameText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:/* @__PURE__ */blockBox({w:29.344,h:20,padding:[0,7,0,7],radius:[999,999],bg:"#E0E6F2",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:/* @__PURE__ */blockBox({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:/* @__PURE__ */blockBox({w:84.531,h:32,minHeight:32,color:"ink"}),price:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},cartWebBlockMetrics={line:/* @__PURE__ */blockBox({w:404,h:88,gap:[16,0],center:true}),sq:/* @__PURE__ */blockBox({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */blockBox({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:/* @__PURE__ */blockText({size:19,weight:700,lineHeight:24.7}),link:/* @__PURE__ */blockText({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:/* @__PURE__ */blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:13}),meta:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,marginTop:2}),price:/* @__PURE__ */blockText({size:19,weight:700,lineHeight:29.45,tabular:true}),was:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */blockBox({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:/* @__PURE__ */blockBox({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */blockBox({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:/* @__PURE__ */blockBox({w:303,h:81.25,gap:[12,0],center:true}),sq:/* @__PURE__ */blockBox({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:/* @__PURE__ */blockBox({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5}),meta:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},cartDrawerBlockMetrics={line:/* @__PURE__ */blockBox({w:360,h:147.094,gap:[14,0]}),img:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),imgInset:6,imgFit:"contain",name:/* @__PURE__ */blockBox({w:216,h:22.094,gap:[8,4],center:true}),nameText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,wrap:"auto"}),badge:/* @__PURE__ */blockBox({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:13,wrap:"auto"}),meta:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,marginTop:2}),note:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:21,color:"ink",marginTop:2}),acts:/* @__PURE__ */blockBox({w:282,h:92,marginTop:10,gap:[12,8],center:true}),plan:/* @__PURE__ */blockBox({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__ */blockBox({w:63.859,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999]}),planText:/* @__PURE__ */blockText({size:15,weight:500,lineHeight:23.25,wrap:"auto"}),planOn:/* @__PURE__ */blockBox({w:123.844,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999],bg:"ink",color:"surface"}),planOnText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"surface",wrap:"auto"}),qty:/* @__PURE__ */blockBox({w:104,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true}),countMin:24,qtyBtn:/* @__PURE__ */blockBox({w:40,h:40,radius:[20,20],center:true}),qtyIcon:/* @__PURE__ */blockBox({w:16,h:16}),count:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,wrap:"auto",tabular:true}),remove:/* @__PURE__ */blockBox({w:58.359,h:40,minHeight:40,color:"ink"}),removeText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3}),price:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,wrap:"auto",tabular:true}),was:/* @__PURE__ */blockText({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}},priceBlockMetrics={note:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:19.5,color:"muted",marginTop:12}),noteStrong:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:19.5,color:"muted"})};var needBlockMetrics={card:/* @__PURE__ */blockBox({w:325,h:125.25,padding:[14,16,14,16],radius:[0,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:2,blur:3,spread:-1}}),kicker:/* @__PURE__ */blockBox({w:293,h:24,gap:[8,8],center:true}),kickerText:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25}),source:/* @__PURE__ */blockBox({w:116.719,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#DAF6E8",center:true,color:"ink"}),sourceText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:18.6,color:"ink"}),title:/* @__PURE__ */blockText({shown:false,size:15,weight:700,lineHeight:23.25}),signal:/* @__PURE__ */blockBox({w:293,h:65.25,marginTop:8,gap:[9,9],color:"#4D4D4D"}),signalText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),signalLead:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:21.75}),dot:/* @__PURE__ */blockBox({w:9,h:9,radius:[4.5,4.5],bg:"alert",color:"#4D4D4D",dy:-1}),score:/* @__PURE__ */blockBox({w:293,h:99.859,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[10,10],bg:"#FCF0D6",center:true}),scoreLabel:/* @__PURE__ */blockText({size:14,weight:600,lineHeight:18.9,color:"#4D4D4D"}),scoreTag:/* @__PURE__ */blockBox({w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,radius:[6,6],bg:"surface"}),scoreTagText:/* @__PURE__ */blockText({size:12,weight:600,lineHeight:16.2,tracking:.72,face:"mono",upper:true,marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */blockBox({w:106.109,h:51.141,gap:[6,0],center:true}),scoreWas:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,color:"muted",deco:"strike",decoThickness:1.5}),scoreArrow:/* @__PURE__ */blockBox({w:16,h:16,color:"muted"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */blockText({size:28,weight:700,lineHeight:28,tracking:-.84,tabular:true}),scoreOf:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:15,color:"#4D4D4D",tabular:true}),scoreSince:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"ink",marginTop:3})},needPlanBlockMetrics={card:/* @__PURE__ */blockBox({w:329,h:380.172,padding:[16,16,16,16],marginTop:14,radius:[22,22],bg:"surface",shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},color:"#262523"}),kicker:/* @__PURE__ */blockBox({w:297,h:24,gap:[8,8],center:true,color:"#262523"}),kickerText:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:22.5,color:"#262523"}),source:/* @__PURE__ */blockBox({w:83.375,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#F2F1EE",center:true,color:"#4A4845"}),sourceText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:18,color:"#4A4845"}),title:/* @__PURE__ */blockText({size:19,weight:800,lineHeight:23.18,color:"#262523",marginTop:12}),signal:/* @__PURE__ */blockBox({w:297,h:65.25,marginTop:6,gap:[9,9],color:"#4A4845"}),signalText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75,color:"#4A4845"}),signalLead:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:21.75,color:"#262523"}),dot:/* @__PURE__ */blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#E5372B",color:"#4A4845",dy:-1}),score:/* @__PURE__ */blockBox({w:297,h:69.75,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[14,14],bg:"planAccentWash",center:true,color:"#262523"}),scoreLabel:/* @__PURE__ */blockText({size:13.5,weight:600,lineHeight:18.225,color:"#4A4845",wrap:"balance"}),scoreTag:/* @__PURE__ */blockBox({w:51.609,h:17.5,padding:[2,6,2,6],marginTop:3,radius:[5,5],bg:"surface",color:"#262523"}),scoreTagText:/* @__PURE__ */blockText({size:10,weight:600,lineHeight:13.5,color:"#262523",tracking:.6,face:"mono",upper:true,wrap:"balance",marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */blockBox({w:94.75,h:49.75,gap:[6,0],center:true,color:"#262523"}),scoreWas:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:25.5,color:"#6B6863",deco:"strike"}),scoreArrow:/* @__PURE__ */blockBox({w:16,h:16,color:"#6B6863"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */blockText({size:28,weight:800,lineHeight:28,color:"#262523"}),scoreOf:/* @__PURE__ */blockText({size:13,weight:800,lineHeight:13,color:"muted"}),scoreSince:/* @__PURE__ */blockText({size:12.5,weight:700,lineHeight:18.75,color:"planLink",marginTop:3}),sources:/* @__PURE__ */blockBox({w:131.375,h:24,gap:[4,4],color:"#262523"}),sourceDna:/* @__PURE__ */blockBox({w:44,h:24,padding:[0,9,0,9],radius:[999,999],bg:"planLinkWash",center:true,color:"planLink"}),sourceDnaText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:18,color:"planLink"}),dotWatch:/* @__PURE__ */blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#E5A000",color:"#4A4845",dy:-1}),dotClear:/* @__PURE__ */blockBox({w:9,h:9,radius:[4.5,4.5],bg:"#5FA82B",color:"#4A4845",dy:-1}),scoreLabelMax:135,says:/* @__PURE__ */blockBox({w:297,h:52,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysImg:/* @__PURE__ */blockBox({w:32,h:32,radius:[16,16],color:"#262523"}),saysText:/* @__PURE__ */blockText({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845"}),saysBy:/* @__PURE__ */blockText({size:14.5,weight:800,lineHeight:20.3,color:"#262523"}),saysByGap:2,saysTag:/* @__PURE__ */blockBox({w:51.609,h:15,padding:[2,6,2,6],radius:[5,5],bg:"surface",color:"#262523"}),saysTagText:/* @__PURE__ */blockText({size:10,weight:400,lineHeight:14,color:"#262523",tracking:.6,face:"mono",upper:true,paddingTop:2}),saysBare:/* @__PURE__ */blockBox({w:297,h:81,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysKicker:/* @__PURE__ */blockText({size:17,weight:400,lineHeight:25.5,color:"#262523"}),saysSerif:/* @__PURE__ */blockText({size:17,weight:800,lineHeight:25.5,color:"#262523",tracking:-.17,wrap:"balance"}),jump:/* @__PURE__ */blockBox({w:297,h:60,padding:[8,14,8,8],marginTop:12,gap:[12,12],radius:[14,14],bg:"planInk",center:true,color:"planOnInk"}),jumpImg:/* @__PURE__ */blockBox({w:44,h:44,radius:[10,10],bg:"surface",color:"surface"}),jumpKicker:/* @__PURE__ */blockText({size:13,weight:800,lineHeight:19.5,color:"planAccent"}),jumpTitle:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:18.75,color:"planOnInk"}),jumpGo:/* @__PURE__ */blockText({size:14,weight:800,lineHeight:21,color:"planOnInk"}),jumpPressScale:.98,more:/* @__PURE__ */blockBox({w:87.547,h:36,marginTop:6,marginBottom:-4,gap:[4,4],minHeight:36,center:true,color:"planLink"}),moreText:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:22.5,color:"planLink"}),moreIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"planLink"}),moreInset:16,moreTurn:{closed:90,open:-90},rep:/* @__PURE__ */blockBox({w:297,h:48.5,padding:[14,14,12,14],marginTop:10,radius:[16,16],bg:"#F8F7F4",color:"#262523"})},tipBlockMetrics={card:/* @__PURE__ */blockBox({w:201.5,h:275.031,padding:[8,10,10,10],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"tintBlue",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */blockBox({w:181.5,h:113.438,radius:[10,10],bg:"#F3F3F3"}),n:/* @__PURE__ */blockBox({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20,marginTop:10}),text:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,color:"#4D4D4D",marginTop:4}),foot:/* @__PURE__ */blockBox({w:181.5,h:26.594,padding:[8,0,0,0],gap:[4,4],center:true,color:"ink"}),footText:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,paddingTop:8}),footArrow:/* @__PURE__ */blockBox({w:14,h:14,color:"ink"}),footArrowFlip:true,pressScale:.98,bare:/* @__PURE__ */blockBox({w:181.5,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */blockBox({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */blockBox({w:22,h:22})},tipPhotoBlockMetrics={card:/* @__PURE__ */blockBox({w:221,h:152,padding:[8,8,12,8],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */blockBox({w:205,h:102.5,radius:[10,10],bg:"#F3F3F3"}),imgAspect:2,n:/* @__PURE__ */blockBox({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,marginTop:10}),titleInset:4,pressScale:.98,bare:/* @__PURE__ */blockBox({w:205,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */blockBox({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */blockBox({w:22,h:22,color:"ink"})},tipWebBlockMetrics={card:/* @__PURE__ */blockBox({w:226,h:172.047,gap:[10,10]}),img:/* @__PURE__ */blockBox({w:226,h:141.25,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20.8,wrap:"balance"}),coverRadius:10,row:{from:440,card:/* @__PURE__ */blockBox({w:400,h:80,padding:[6,0,6,0],gap:[10,10],minHeight:80,center:true}),img:/* @__PURE__ */blockBox({w:64,h:64,radius:[10,10]}),arrowColumn:18,arrow:/* @__PURE__ */blockBox({w:18,h:18,color:"ink"}),arrowTurn:180},phone:{upTo:639,card:/* @__PURE__ */blockBox({w:216,h:162.5,gap:[8,8]}),img:/* @__PURE__ */blockBox({w:216,h:135,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),smallUpTo:359,smallW:208},mark:{tile:/* @__PURE__ */blockBox({w:226,h:141.25,radius:[14,14],bg:"#F5F5F5",center:true,color:"ink"}),icon:{share:.36,min:16,max:40,color:"ink"}},ring:{width:2,offset:2,color:"text"},hoverOffset:3},tipPlanBlockMetrics={card:/* @__PURE__ */blockBox({w:225.406,h:182.844,padding:[14,14,12,14],radius:[18,18],bg:"planAccentChip",color:"#262523"}),tones:{y:"planAccentChip",c:"planLinkChip",g:"#DDEFC4",r:"#FFD8D6"},top:/* @__PURE__ */blockBox({w:197.406,h:30,center:true,color:"#262523"}),nText:/* @__PURE__ */blockText({size:30,weight:900,lineHeight:30,color:"#262523"}),icon:/* @__PURE__ */blockBox({w:26,h:26,color:"#262523"}),title:/* @__PURE__ */blockText({size:17,weight:800,lineHeight:21.25,color:"#262523",marginTop:14}),text:/* @__PURE__ */blockText({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845",marginTop:4}),foot:/* @__PURE__ */blockBox({w:197.406,h:25.75,padding:[10,0,0,0],color:"planLink"}),footText:/* @__PURE__ */blockText({size:10.5,weight:400,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true,paddingTop:10})},cartPlanBlockMetrics={line:/* @__PURE__ */blockBox({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:/* @__PURE__ */blockBox({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:/* @__PURE__ */blockBox({w:28,h:28,color:"planLink"}),name:/* @__PURE__ */blockText({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:/* @__PURE__ */blockBox({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:/* @__PURE__ */blockText({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:/* @__PURE__ */blockText({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:/* @__PURE__ */blockBox({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:/* @__PURE__ */blockBox({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:/* @__PURE__ */blockBox({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:/* @__PURE__ */blockText({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})},cartBarBlockMetrics={bar:/* @__PURE__ */blockBox({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__ */blockBox({w:88,h:44,padding:[0,4,0,0],center:true}),thumb:/* @__PURE__ */blockBox({w:40,h:40,radius:[12,12],bg:"#F3F3F3"}),thumbRing:2,thumbOverlap:18,imgInset:4,imgFit:"contain",imgBlend:"multiply",count:/* @__PURE__ */blockBox({w:20,h:20,padding:[0,5,0,5],radius:[10,10],bg:"text",center:true,color:"surface",x:72,y:-4}),countText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"surface",tabular:true}),countAt:{top:-4,right:-4},sum:/* @__PURE__ */blockBox({w:130.656,h:35.688,gap:[2,2]}),total:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:18.7,tracking:-.17,tabular:true}),sub:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:15,color:"muted"}),go:/* @__PURE__ */blockBox({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__ */blockText({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"}}},cartBarWebBlockMetrics={bar:/* @__PURE__ */blockBox({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__ */blockBox({w:102,h:44,padding:[0,6,0,0],center:true}),thumb:/* @__PURE__ */blockBox({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__ */blockBox({w:22,h:22,padding:[0,6,0,6],radius:[11,11],bg:"go",center:true,x:83,y:-5}),countText:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,wrap:"auto",tabular:true}),countAt:{top:-5,right:-3},sum:/* @__PURE__ */blockBox({w:307.484,h:43.5,gap:[2,2]}),total:/* @__PURE__ */blockText({size:20,weight:700,lineHeight:22,color:"ink",tracking:-.2,tabular:true}),sub:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:19.5}),go:/* @__PURE__ */blockBox({w:138.516,h:48,padding:[0,22,0,22],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),goText:/* @__PURE__ */blockText({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__ */blockBox({w:335,h:79,padding:[8,8,8,10],gap:[10,10],minHeight:64,radius:[22,22],bg:"surface",center:true}),thumb:/* @__PURE__ */blockBox({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__ */blockBox({w:94.594,h:48,padding:[0,18,0,18],minHeight:48,radius:[999,999],bg:"ink",color:"surface"}),lastOnly:true,wordHidden:true}},whyBlockMetrics={card:/* @__PURE__ */blockBox({w:393,h:655.609}),head:/* @__PURE__ */blockBox({w:393,h:126.328,padding:[4,16,12,16],gap:[12,12]}),pic:/* @__PURE__ */blockBox({w:64,h:64,radius:[10,10],bg:"#F3F3F3"}),packInset:.08,kind:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:18.6,color:"ink",tracking:.72,face:"mono",upper:true}),title:/* @__PURE__ */blockText({size:22,weight:700,lineHeight:24.64,tracking:-.55,marginTop:2}),sub:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:18.9,color:"#4D4D4D",marginTop:3}),close:/* @__PURE__ */blockBox({w:36,h:36,padding:[1,6,1,6],radius:[18,18],center:true,color:"ink"}),closeIcon:/* @__PURE__ */blockBox({w:20,h:20,color:"ink"}),body:/* @__PURE__ */blockBox({w:393,h:529.281,padding:[0,16,24,16],gap:[12,12]}),box:/* @__PURE__ */blockBox({w:361,h:169.281,padding:[14,14,14,14],radius:[20,20],bg:"tintPink"}),heading:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:21.25}),rows:/* @__PURE__ */blockBox({w:333,h:110.031,marginTop:10,gap:[10,10]}),row:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */blockText({size:12,weight:400,lineHeight:17.4,color:"ink",tracking:.48,face:"mono",upper:true}),secHeading:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:21.25}),how:/* @__PURE__ */blockBox({w:361,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */blockBox({w:361,h:21.75,gap:[8,8],color:"#4D4D4D"}),bulletText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),bulletColumn:14,dot:{size:6,top:9,color:"ink"},para:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:22.5,color:"#4D4D4D",marginTop:6}),acts:/* @__PURE__ */blockBox({w:361,h:98,gap:[2,2]}),btn:/* @__PURE__ */blockBox({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__ */blockText({size:16,weight:700,lineHeight:24.8,color:"surface"}),more:/* @__PURE__ */blockBox({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */blockText({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"}},whyWebBlockMetrics={card:/* @__PURE__ */blockBox({w:558,h:571.375}),head:/* @__PURE__ */blockBox({w:558,h:105.375,padding:[24,24,12,24],gap:[12,12]}),pic:/* @__PURE__ */blockBox({w:64,h:64,radius:[10,10],bg:"#F5F5F5"}),packInset:.08,kind:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink"}),title:/* @__PURE__ */blockText({size:22,weight:500,lineHeight:24.64,color:"ink",tracking:-.44,marginTop:2}),sub:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:20.25,marginTop:3}),close:/* @__PURE__ */blockBox({w:40,h:40,padding:[1,6,1,6],radius:[20,20],center:true}),closeIcon:/* @__PURE__ */blockBox({w:20,h:20}),body:/* @__PURE__ */blockBox({w:558,h:466,padding:[0,24,24,24],gap:[22,22]}),box:/* @__PURE__ */blockBox({w:510,h:129}),heading:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20}),rows:/* @__PURE__ */blockBox({w:510,h:99,marginTop:10,gap:[12,12]}),row:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75}),rowHead:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:21.75,color:"ink"}),secHeading:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20}),how:/* @__PURE__ */blockBox({w:510,h:49.5,marginTop:8,gap:[6,6]}),bullet:/* @__PURE__ */blockBox({w:510,h:21.75,gap:[8,8]}),bulletText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75}),bulletColumn:14,dot:{size:6,top:9.75,color:"ink"},para:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:22.5,marginTop:6}),acts:/* @__PURE__ */blockBox({w:510,h:92,gap:[2,2]}),btn:/* @__PURE__ */blockBox({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__ */blockText({size:17,weight:400,lineHeight:26.35,color:"surface",wrap:"auto"}),more:/* @__PURE__ */blockBox({w:164.891,h:44,padding:[0,12,0,12],minHeight:44,center:true,color:"ink"}),moreText:/* @__PURE__ */blockText({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__ */blockBox({w:341,h:145.031,padding:[24,24,12,24],gap:[10,10]}),pic:/* @__PURE__ */blockBox({w:48,h:48,radius:[10,10],bg:"#F5F5F5"}),title:/* @__PURE__ */blockText({size:20,weight:500,lineHeight:22.4,color:"ink",tracking:-.4,marginTop:2})}},whyPlanBlockMetrics={card:/* @__PURE__ */blockBox({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__ */blockText({size:10.5,weight:400,lineHeight:15.75,color:"#6B6863",tracking:.63,face:"mono",upper:true}),row:/* @__PURE__ */blockBox({w:301,h:59.688,marginTop:10,gap:[10,10],color:"#262523"}),chipColumn:58,chips:{dna:{box:/* @__PURE__ */blockBox({w:58,h:22,radius:[6,6],bg:"planLinkWash",center:true,color:"planLink"}),text:/* @__PURE__ */blockText({size:10.5,weight:700,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true})},record:{box:/* @__PURE__ */blockBox({w:58,h:22,radius:[6,6],bg:"#F2F1EE",center:true,color:"#4A4845"}),text:/* @__PURE__ */blockText({size:10.5,weight:700,lineHeight:15.75,color:"#4A4845",tracking:.42,face:"mono",upper:true})},ask:{box:/* @__PURE__ */blockBox({w:58,h:22,radius:[6,6],bg:"planAccentWash",center:true,color:"#262523"}),text:/* @__PURE__ */blockText({size:10.5,weight:700,lineHeight:15.75,color:"#262523",tracking:.42,face:"mono",upper:true})}},rowTitle:/* @__PURE__ */blockText({size:15,weight:800,lineHeight:19.5,color:"#262523"}),rowBody:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:19.6,color:"#4A4845",marginTop:1}),score:/* @__PURE__ */blockBox({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__ */blockText({size:14.5,weight:800,lineHeight:18.85,color:"planOnInk"}),scoreValue:/* @__PURE__ */blockText({size:16,weight:700,lineHeight:20.8,color:"planAccent",face:"mono"})},lightsBlockMetrics={card:/* @__PURE__ */blockBox({w:325,h:134,marginTop:14}),head:/* @__PURE__ */blockBox({w:325,h:24,marginBottom:10,gap:[12,12],center:true}),lead:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:18.2,color:"#3D3D3D"}),name:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:18.2,color:"ink"}),pills:{better:{box:/* @__PURE__ */blockBox({w:66.094,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#D7F5E7",center:true,color:"ink"}),text:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},same:{box:/* @__PURE__ */blockBox({w:50.734,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#FBEED0",center:true,color:"ink"}),text:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"ink",tracking:.48,face:"mono"})},worse:{box:/* @__PURE__ */blockBox({w:58.406,h:24,padding:[0,10,0,10],minHeight:24,radius:[999,999],bg:"#F6EBDE",center:true,color:"#834D0D"}),text:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"#834D0D",tracking:.48,face:"mono"})}},viz:/* @__PURE__ */blockBox({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__ */blockBox({w:325,h:44,gap:[16,0],center:true}),srcBtn:/* @__PURE__ */blockBox({w:181.5,h:44,gap:[6,6],minHeight:44,center:true,color:"#4D4D4D"}),srcText:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:21.7,color:"#4D4D4D"}),srcIcon:/* @__PURE__ */blockBox({w:16,h:16,color:"#5A6087"}),act:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:700,lineHeight:23.25,color:"ink",marginTop:6})},checkinBlockMetrics={card:/* @__PURE__ */blockBox({w:393,h:179.25}),body:/* @__PURE__ */blockBox({w:393,h:99.25,padding:[0,16,24,16],gap:[24,24]}),question:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:21.25}),picks:/* @__PURE__ */blockBox({w:361,h:96,marginTop:10,gap:[8,8]}),pick:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:400,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickOn:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:700,lineHeight:18,color:"ink",wrap:"balance",paddingTop:4}),pickHover:{color:"pink",share:.3,over:"surface"},stepTop:16,row:/* @__PURE__ */blockBox({w:361,h:44,gap:[8,8],minHeight:44,center:true}),rowLabel:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:18.75}),rowValue:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18.75}),rowIcon:/* @__PURE__ */blockBox({w:18,h:18,color:"ink"}),rowTurn:90,rowPressScale:.98,note:/* @__PURE__ */blockBox({w:361,h:60.594,padding:[10,12,10,12],marginTop:12,radius:[10,10],bg:"#FFE8E6"}),noteText:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:20.3,marginTop:12,paddingTop:10}),noteLink:/* @__PURE__ */blockText({size:14,weight:700,lineHeight:20.3,deco:"underline",decoOffset:3}),done:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,wrap:"balance",marginTop:12}),acts:/* @__PURE__ */blockBox({w:361,h:52,gap:[2,2]}),btn:/* @__PURE__ */blockBox({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__ */blockText({size:16,weight:700,lineHeight:24.8,color:"surface"})},weatherBlockMetrics={card:/* @__PURE__ */blockBox({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__ */blockBox({w:329,h:113.891,gap:[12,12],center:true}),temp:/* @__PURE__ */blockText({size:64,weight:700,lineHeight:60.8,color:"ink",tracking:-2.56,tabular:true}),cond:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2}),glyph:/* @__PURE__ */blockBox({w:88,h:88}),walk:/* @__PURE__ */blockBox({w:329,h:159.844,padding:[12,16,12,16],gap:[4,4],radius:[10,10],bg:"surface"}),walkTitle:/* @__PURE__ */blockBox({w:297,h:22.094,gap:[8,8],center:true,color:"ink"}),walkTitleText:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,color:"ink"}),walkText:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21.75}),lvl:/* @__PURE__ */blockBox({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"ink"}),levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},comfort:/* @__PURE__ */blockBox({w:297,h:32.5,padding:[12,0,0,0],marginTop:8,gap:[8,6],center:true}),comfortRule:{width:1,color:"line"},comfortLabel:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:16.9,color:"muted"}),comfortValue:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink"}),bar:/* @__PURE__ */blockBox({w:82,h:8,gap:[3,3]}),pipOn:/* @__PURE__ */blockBox({w:14,h:8,radius:[2,2],bg:"#77DDAC"}),pipOff:/* @__PURE__ */blockBox({w:14,h:8,radius:[2,2],bg:"#F1F5F2"})},weatherSummaryBlockMetrics={card:/* @__PURE__ */blockBox({w:361,h:265.484,padding:[24,16,24,16],radius:[20,20],bg:"#FCF4E0"}),glyph:/* @__PURE__ */blockBox({w:88,h:88}),temp:/* @__PURE__ */blockText({size:72,weight:700,lineHeight:68.4,color:"ink",tracking:-2.88,tabular:true,marginTop:8}),cond:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:22.1,color:"ink",marginTop:8}),hl:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:21,tabular:true,marginTop:2})},weatherTileBlockMetrics={card:/* @__PURE__ */blockBox({w:272,h:187.984,padding:[16,16,16,16],gap:[8,8],radius:[20,20],bg:"#F5F5F5"}),top:/* @__PURE__ */blockBox({w:240,h:24,gap:[8,8],center:true}),label:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:15.6,color:"ink",tracking:.72,face:"mono",upper:true}),glyph:/* @__PURE__ */blockBox({w:36,h:36,marginTop:-6,marginBottom:-6}),glyphMargin:[-6,-4,-6,0],big:/* @__PURE__ */blockText({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),small:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:16.5,color:"muted",tabular:true}),smallGap:4,meta:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:19.6}),btn:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:700,lineHeight:15,color:"surface"}),btnIcon:/* @__PURE__ */blockBox({w:20,h:20,color:"surface"})},weatherWebBlockMetrics={card:/* @__PURE__ */blockBox({w:533.078,h:242,padding:[24,24,24,24],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),head:/* @__PURE__ */blockBox({w:483.078,h:34,marginBottom:16,gap:[12,12],center:true}),city:/* @__PURE__ */blockText({size:24,weight:700,lineHeight:28.8,color:"ink",tracking:-.48,wrap:"auto"}),units:/* @__PURE__ */blockBox({w:78,h:34,padding:[2,2,2,2],radius:[999,999],edge:{width:1,color:"line",ring:false}}),unit:/* @__PURE__ */blockBox({w:36,h:28,minHeight:28,radius:[999,999],center:true,color:"muted"}),unitText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"muted",wrap:"auto"}),unitOn:/* @__PURE__ */blockBox({w:36,h:28,minHeight:28,radius:[999,999],bg:"ink",center:true,color:"surface"}),unitOnText:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"surface",wrap:"auto"}),now:/* @__PURE__ */blockBox({w:483.078,h:88,gap:[24,12],center:true}),glyph:/* @__PURE__ */blockBox({w:88,h:88}),temp:/* @__PURE__ */blockText({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__ */blockText({size:15,weight:400,lineHeight:21,color:"muted",wrap:"auto",marginTop:6}),tags:/* @__PURE__ */blockBox({w:483.078,h:30,marginTop:24,gap:[8,8]}),tag:/* @__PURE__ */blockBox({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__ */blockText({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__ */blockBox({w:335,h:272,padding:[18,18,18,18],radius:[20,20],bg:"surface",edge:{width:1,color:"line",ring:false}}),glyph:/* @__PURE__ */blockBox({w:64,h:64})}},weatherAlertBlockMetrics={card:/* @__PURE__ */blockBox({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__ */blockBox({w:20,h:20,color:"alert"}),title:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:23.25,color:"#6D1D14"}),titleGap:6,text:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,color:"#6D1D14"}),chev:/* @__PURE__ */blockBox({w:16,h:16,color:"#6D1D14"}),pressScale:.98},weatherDetailsBlockMetrics={grid:/* @__PURE__ */blockBox({w:361,h:591.25,gap:[12,12]}),tile:/* @__PURE__ */blockBox({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__ */blockText({size:12,weight:700,lineHeight:15.6,color:"muted",tracking:.72,face:"mono",upper:true}),labelGap:6,icon:/* @__PURE__ */blockBox({w:16,h:16,color:"ink"}),chev:/* @__PURE__ */blockBox({w:14,h:14,color:"muted"}),value:/* @__PURE__ */blockText({size:28,weight:700,lineHeight:30.8,color:"ink",tracking:-.56,tabular:true}),valueGap:6,unit:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:16.5,color:"ink",tabular:true}),note:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.2}),pressScale:.98},weatherHoursBlockMetrics={cell:/* @__PURE__ */blockBox({w:54,h:100,padding:[2,0,0,0],gap:[4,4],center:true}),column:54,rows:[18,32,16,20,6],time:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:15.6,color:"muted"}),timeNow:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:15.6,color:"ink"}),glyph:/* @__PURE__ */blockBox({w:32,h:32}),icon:/* @__PURE__ */blockBox({w:24,h:24,color:"#926F06"}),chance:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),temp:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:18,color:"ink",tabular:true}),quiet:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:15.6,color:"muted",tabular:true}),bar:/* @__PURE__ */blockBox({w:52,h:6,radius:[3,3],bg:"#77DDAC"}),barInset:1,levels:{good:"#77DDAC",ok:"#F4CF7A",hot:"#DC8F7C",storm:"#8DA4BB"},windows:/* @__PURE__ */blockBox({w:327,h:76.594,marginBottom:12,gap:[8,8]}),window:/* @__PURE__ */blockBox({w:159.5,h:76.594,padding:[10,12,10,12],gap:[2,2],radius:[10,10],bg:"tintGo"}),windowTitle:/* @__PURE__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink",tabular:true}),windowText:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:17.55}),legend:/* @__PURE__ */blockBox({w:327,h:18.188,marginTop:12,gap:[14,4],color:"muted"}),legendItem:/* @__PURE__ */blockBox({w:47.813,h:18.188,gap:[6,6],center:true,color:"muted"}),legendText:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:18.2,color:"muted",marginTop:12}),legendDot:/* @__PURE__ */blockBox({w:10,h:10,radius:[5,5],bg:"#77DDAC",color:"muted"})},weatherForecastBlockMetrics={row:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:700,lineHeight:18,color:"ink"}),sky:/* @__PURE__ */blockBox({w:32,h:30,gap:[1,1]}),glyph:/* @__PURE__ */blockBox({w:30,h:30}),chance:/* @__PURE__ */blockText({size:12,weight:700,lineHeight:12,color:"#1E7AB7",face:"mono"}),low:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:14,color:"muted",face:"mono",tabular:true}),high:/* @__PURE__ */blockText({size:14,weight:400,lineHeight:14,color:"ink",face:"mono",tabular:true}),bar:/* @__PURE__ */blockBox({w:155,h:6,radius:[3,3],bg:"#F1F5F2"}),fill:/* @__PURE__ */blockBox({w:99.203,h:6,radius:[3,3],bg:"#DDB44F",x:23.25}),tag:/* @__PURE__ */blockBox({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__ */blockText({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"}}},weatherLevelsBlockMetrics={phone:{list:/* @__PURE__ */blockBox({w:361,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */blockBox({w:361,h:26,gap:[8,8],center:true}),columns:[24,56,185,72],icon:/* @__PURE__ */blockBox({w:26,h:26}),name:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25}),bar:/* @__PURE__ */blockBox({w:185,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono"}),mid:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono"}),low:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono"})}},web:{list:/* @__PURE__ */blockBox({w:344.891,h:140,marginTop:16,marginBottom:16,gap:[12,12]}),row:/* @__PURE__ */blockBox({w:344.891,h:26,gap:[12,12],center:true}),columns:[26,64,138.891,80],icon:/* @__PURE__ */blockBox({w:26,h:26}),name:/* @__PURE__ */blockText({size:15,weight:400,lineHeight:23.25,wrap:"auto"}),bar:/* @__PURE__ */blockBox({w:138.891,h:8,radius:[999,999],bg:"#ECECEC"}),fills:{high:"#B67A3F",mid:"#F2C763",low:"ink"},level:{high:/* @__PURE__ */blockText({size:13,weight:700,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),mid:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"#A05E32",face:"mono",wrap:"auto"}),low:/* @__PURE__ */blockText({size:13,weight:400,lineHeight:20.15,color:"muted",face:"mono",wrap:"auto"})}},webPhoneUpTo:559},weatherReadingBlockMetrics={phone:{body:/* @__PURE__ */blockBox({w:361,h:88.344,gap:[12,12]}),gap:12,picks:/* @__PURE__ */blockBox({w:361,h:36,gap:[10,10]}),on:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink"}),off:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:400,lineHeight:19.5,color:"ink"}),check:/* @__PURE__ */blockBox({w:16,h:16,color:"ink"}),read:/* @__PURE__ */blockBox({w:361,h:40.344,gap:[12,0]}),value:/* @__PURE__ */blockText({size:36,weight:700,lineHeight:37.8,color:"ink",tracking:-.72,tabular:true}),word:/* @__PURE__ */blockText({size:17,weight:700,lineHeight:26.35,color:"alert",tracking:.34,face:"mono",upper:true})},web:{body:/* @__PURE__ */blockBox({w:344.891,h:140.344}),gap:16,picks:/* @__PURE__ */blockBox({w:344.891,h:82,marginTop:16,marginBottom:16,gap:[10,10]}),on:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:700,lineHeight:19.5,color:"ink",wrap:"auto"}),off:/* @__PURE__ */blockBox({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__ */blockText({size:15,weight:400,lineHeight:19.5,color:"ink",wrap:"auto"}),check:/* @__PURE__ */blockBox({w:16,h:16,color:"ink"}),read:/* @__PURE__ */blockBox({w:344.891,h:42.344,gap:[12,0]}),value:/* @__PURE__ */blockText({size:38.4,weight:700,lineHeight:40.32,color:"ink",tracking:-.768,wrap:"auto",tabular:true}),word:/* @__PURE__ */blockText({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 deepFreeze2(value){if(value!==null&&typeof value=="object"&&!Object.isFrozen(value))for(let v of Object.values(value))deepFreeze2(v);return value}var k=everfurTokens,PRESET=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function asPreset(theme){return Object.defineProperty(theme,PRESET,{value:theme,enumerable:true}),deepFreeze2(theme)}var SCALE_CAPS={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},everfurTheme=asPreset({name:"everfur",colors:{bg:k.color.bg,surface:k.color.efWhite,text:k.color.text,ink:k.role.color.ink,onInk:k.color.efWhite,muted:k.role.color.muted,line:k.role.color.line,go:k.role.color.go,onGo:k.role.color.ink,pink:k.color.efDustyPink,onPink:k.role.color.ink,alert:k.color.alert,alertDeep:k.color.alertDeep,icoSage:k.role.color.icoSage,bgMist:k.color.bgMist,tintSage:k.role.color.tintSage,tintBlue:k.role.color.tintBlue,tintGo:k.role.color.tintGo,tintPink:k.role.color.tintPink,tintYellowEdge:k.role.color.tintYellowEdge,tintWatch:everfurMetrics.colors.watch,tintRed:k.role.color.tintRed,scrim:everfurMetrics.colors.scrim,grab:everfurMetrics.colors.grab,focus:k.role.color.ink,planInk:everfurMetrics.colors.planInk,planOnInk:everfurMetrics.colors.planOnInk,planAccent:everfurMetrics.colors.planAccent,planLink:everfurMetrics.colors.planLink,planAccentWash:everfurMetrics.colors.planAccentWash,planAccentChip:everfurMetrics.colors.planAccentChip,planLinkWash:everfurMetrics.colors.planLinkWash,planLinkChip:everfurMetrics.colors.planLinkChip},radius:{...k.radius},space:{...k.space},type:{family:k.font.family.base,mono:k.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:k.font.size.xs,sm:k.font.size.sm,md:k.font.size.md,lg:k.font.size.lg,xl:k.font.size.xl},weight:{...k.font.weight},lineHeight:{...k.font.lineHeight},scaleCaps:SCALE_CAPS},motion:{duration:{press:k.motion.duration.press,fade:k.motion.duration.fade,enter:k.motion.duration.enter,sheet:k.motion.duration.sheet,sheetOut:k.motion.duration.sheetOut},easing:{out:k.motion.easing.out,drawer:k.motion.easing.drawer},pop:{duration:k.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:everfurMetrics});function presetOf(theme){return theme[PRESET]??everfurTheme}function isObject(v){return v!==null&&typeof v=="object"&&!Array.isArray(v)}function merge(base3,over){if(!isObject(base3)||!isObject(over))return over===void 0?base3:over;let out={...base3};for(let[key,value]of Object.entries(over))value!==void 0&&(out[key]=merge(base3[key],value));return out}function resolveTheme(partial,base3=everfurTheme){if(!partial)return base3;let merged=merge(base3,partial),given=partial.colors;if(given){let colors=merged.colors;for(let[wash,from,share2]of PLAN_WASHES){let c=given[from];c!==void 0&&given[wash]===void 0&&(colors[wash]=mixHex(c,share2,colors.surface)??colors[wash]??c)}}return deepFreeze2(merged)}var PLAN_WASHES=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function mixHex(color,share2,ground){let ch=v=>{let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(v??"");return m?[m[1],m[2],m[3]].map(h=>parseInt(h,16)):void 0},[c,g]=[ch(color),ch(ground)];if(!(!c||!g))return`#${c.map((v,i)=>Math.round(v*share2+(g[i]??0)*(1-share2)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var ThemeContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),host2=globalThis,context=host2[key]??(host2[key]=createContext(null));return context.displayName??(context.displayName="EverfurThemeContext"),context})();function ThemeProvider({theme:theme,children:children}){let outer=useTheme(),key=theme===void 0||isComplete(theme)?theme:contentKey(theme),value=useMemo(()=>isComplete(theme)?filled(theme):resolveTheme(theme,outer),[key,outer]);return createElement(ThemeContext.Provider,{value:value},children)}function contentKey(value){return JSON.stringify(value,(_,v)=>isObject(v)&&!Array.isArray(v)?Object.fromEntries(Object.keys(v).sort().map(k2=>[k2,v[k2]])):v)}function isComplete(theme){return theme!==void 0&&Object.isFrozen(theme)&&GROUPS.every(g=>g in theme)}var GROUPS=["name","colors","radius","space","type","motion","metrics"];function hasEvery(shape,value){if(shape===void 0)return true;if(!isObject(shape))return value!==void 0;if(!isObject(value))return false;for(let key of Object.keys(shape))if(!hasEvery(shape[key],value[key]))return false;return true}var fills=/* @__PURE__ */new WeakMap;function filled(theme){let hit=fills.get(theme);if(hit)return hit;if(hasEvery(everfurTheme,theme))return fills.set(theme,theme),theme;let preset=presetOf(theme),merged=merge(everfurTheme,preset===everfurTheme?theme:merge(preset,theme));merged[PRESET]=preset;let out=deepFreeze2(merged);return fills.set(theme,out),out}function useTheme(){let explicit=useContext(ThemeContext);return explicit?filled(explicit):everfurTheme}var px=n=>Math.round(n*1e3)/1e3;function faceOf(weight,mono=false){return mono?weight>450?"monoBold":"mono":weight>500?"bold":weight>450?"medium":"regular"}function withAlpha(color,alpha){let m=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(!m)return color;let[r,g,b]=[m[1],m[2],m[3]].map(h=>parseInt(h,16));return`rgba(${r}, ${g}, ${b}, ${alpha})`}function channelsOf(color){let hex=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);if(hex)return[hex[1],hex[2],hex[3]].map(h=>parseInt(h,16));let rgb=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(color);return rgb?[rgb[1],rgb[2],rgb[3]].map(Number):void 0}function mixColor(color,share2,base3,fallback){let[c,b]=[channelsOf(color),channelsOf(base3)];return!c||!b?fallback:`rgb(${c.map((v,i)=>Math.round(v*share2+(b[i]??0)*(1-share2))).join(", ")})`}function colorOf(t,value){let m=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(value),role=m?.[1];if(!m||role===void 0||!(role in t.colors))return value;let c=t.colors[role];return m[2]===void 0?c:withAlpha(c,Number(m[2]))}function fillOf(t,value){return value==="none"?"transparent":colorOf(t,value)}var DISABLED_OPACITY=.45;function buttonSpec(t,tone,size,inSheet=false){let b=t.metrics.button;if(tone==="text"){let m2=b.text;return{minHeight:0,paddingX:0,gap:b.ink.gap,radius:0,borderWidth:0,borderColor:"transparent",background:"transparent",iconSize:b.inkSm.iconSize,text:{size:m2.fontSize,weight:m2.fontWeight,lineHeight:px(m2.fontSize*m2.lineHeight),color:colorOf(t,m2.color)},pressScale:1,pressOpacity:m2.pressOpacity,disabledOpacity:b.blockedOpacity??DISABLED_OPACITY,fill:false,ring:false}}let v=t.metrics.variants.button,compact=isCompactSize(size),edged=tone==="outline"||tone==="danger"||tone==="warn",m=compact?{...size==="compactSm"?v.sm:size==="compactLg"?v.lg:v.ink,borderWidth:edged?v.outline.borderWidth:0,ring:v.outline.ring}:size==="row"?b.row:tone==="danger"?b.danger:size==="sm"?b[`${tone}Sm`]:b[tone],c=t.colors,own=tone==="money"||tone==="warn"?b[tone]:void 0,paint={ink:{bg:c.ink,fg:c.onInk,edge:c.ink},go:{bg:c.go,fg:c.onGo,edge:c.ink},outline:{bg:"transparent",fg:c.ink,edge:c.ink},pink:{bg:c.pink,fg:c.onPink,edge:c.ink},danger:{bg:c.surface,fg:c.alert,edge:c.alert}},p=own?{bg:fillOf(t,own.bg),fg:colorOf(t,own.fg),edge:colorOf(t,own.edgeColor)}:paint[tone],weight=tone==="outline"&&inSheet&&!compact?b.outlineInSheetWeight:m.fontWeight;return{minHeight:m.minHeight,paddingX:m.paddingX,gap:m.gap,radius:t.radius.pill,borderWidth:m.borderWidth,borderColor:p.edge,background:p.bg,iconSize:m.iconSize,text:{size:m.fontSize,weight:weight,lineHeight:px(m.fontSize*m.lineHeight),color:p.fg},pressScale:t.motion.reduced?1:compact?v.press:t.metrics.press.button,pressOpacity:1,disabledOpacity:compact?v.disabledOpacity:b.blockedOpacity??DISABLED_OPACITY,fill:m.fill,ring:m.ring}}function isCompactSize(size){return size==="compact"||size==="compactSm"||size==="compactLg"}function pillSpec(t,tone){let m=t.metrics.pill,p=m.tones[tone],fg=tone==="clear"?t.colors.ink:colorOf(t,p.fg);return{minHeight:m.minHeight,paddingX:m.paddingX,radius:t.radius.pill,background:colorOf(t,p.bg),ring:p.ring>0?{width:p.ring,color:colorOf(t,p.ringColor)}:null,dot:tone==="new"?{size:m.dot,gap:m.dotGap,color:t.colors.go}:tone==="allergy"?{size:m.allergyDot.size,gap:m.allergyDot.gap,color:colorOf(t,m.allergyDot.color)}:null,text:{size:m.fontSize,weight:m.fontWeight,lineHeight:px(m.fontSize*m.lineHeight),color:fg,mono:m.mono,tracking:m.letterSpacing,upper:m.upper}}}function sheetTitleSpec(t,narrow){let m=t.metrics.sheet,size=m.titleSize,lineHeight=m.titleLineHeight??t.metrics.card.titleLineHeight;return{size:size,weight:m.titleWeight??t.metrics.card.titleWeight,lineHeight:px(size*lineHeight),color:colorOf(t,m.titleColor??"ink"),tracking:m.titleTracking??t.metrics.card.titleTracking}}function textSpecs(t){let m=t.metrics,c=t.colors;return{cardTitle:{size:m.card.titleSize,weight:m.card.titleWeight,lineHeight:px(m.card.titleSize*m.card.titleLineHeight),color:c.ink,tracking:m.card.titleTracking},cardLead:{size:m.card.leadSize,weight:t.type.weight.regular,lineHeight:px(m.card.leadSize*m.card.leadLineHeight),color:c.text},body:{size:m.card.bodySize,weight:t.type.weight.regular,lineHeight:px(m.card.bodySize*m.card.bodyLineHeight),color:c.text},kicker:{size:m.kicker.fontSize,weight:m.kicker.fontWeight,lineHeight:px(m.kicker.fontSize*m.kicker.lineHeight),color:c.muted,mono:true,tracking:m.kicker.letterSpacing,upper:true},sheetTitle:sheetTitleSpec(t),stepperValue:{size:m.quantityStepper.valueSize,weight:m.quantityStepper.valueWeight,lineHeight:px(m.quantityStepper.valueSize*m.quantityStepper.valueLineHeight),color:colorOf(t,m.quantityStepper.valueColor??"text")},tab:{size:m.tabs.fontSize,weight:m.tabs.fontWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.muted},tabCurrent:{size:m.tabs.fontSize,weight:m.tabs.currentWeight,lineHeight:px(m.tabs.fontSize*m.tabs.lineHeight),color:c.ink},emptyTitle:{size:m.empty.titleSize,weight:m.empty.titleWeight,lineHeight:px(m.empty.titleSize*m.empty.titleLineHeight),color:c.ink,tracking:m.empty.titleTracking},emptyLead:{size:m.empty.leadSize,weight:t.type.weight.regular,lineHeight:px(m.empty.leadSize*m.empty.leadLineHeight),color:c.text},emptyLink:{size:m.empty.linkSize,weight:m.empty.linkWeight,lineHeight:px(m.empty.linkSize*m.card.bodyLineHeight),color:c.ink},sumTerm:{size:m.summary.termSize,weight:t.type.weight.regular,lineHeight:px(m.summary.termSize*m.summary.termLineHeight),color:c.muted},sumValue:{size:m.summary.valueSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.valueSize*m.summary.valueLineHeight),color:c.ink},sumTotal:{size:m.summary.totalSize,weight:m.summary.valueWeight,lineHeight:px(m.summary.totalSize*m.summary.totalLineHeight),color:c.ink}}}function quantityStepperSpec(t){let m=t.metrics.quantityStepper;return{edge:{width:m.borderWidth,color:colorOf(t,m.borderColor),inset:m.ring},button:m.button,icon:m.icon,valueMinWidth:m.valueMinWidth,fill:fillOf(t,m.fill??"none"),glyph:colorOf(t,m.glyph??"ink"),off:{color:colorOf(t,m.offColor),opacity:m.offOpacity}}}function textPartSpec(t,p){return{size:p.size,weight:p.weight,lineHeight:p.lineHeight,color:colorOf(t,p.color),...p.face==="mono"?{mono:true}:{},...p.face==="serif"?{serif:true}:{},...p.tracking?{tracking:p.tracking}:{},...p.upper?{upper:true}:{},...p.deco==="none"?{}:{deco:p.deco==="strike"?"strike":"underline",decoOffset:p.decoOffset,decoThickness:p.decoThickness},...p.tabular?{tabular:true}:{},...p.wrap==="auto"?{}:{wrap:p.wrap==="balance"?"balance":"pretty"}}}function partFill(t,value){return value==="none"?void 0:colorOf(t,value)}function summarySpec(t){let m=t.metrics.summary,lh=(size,ratio)=>px(size*ratio);return{paddingX:m.paddingX,paddingY:m.paddingY,radius:m.radius,borderWidth:m.borderWidth,borderColor:t.colors.line,background:colorOf(t,m.background),shadow:m.shadow,row:{paddingY:m.rowPaddingY,minHeight:m.rowMinHeight,gapX:m.rowGapX,gapY:m.rowGapY,divider:m.rowDivider,center:m.rowCenter},totalRowMinHeight:m.totalRowMinHeight,gap:m.gap??0,totalMarginTop:m.totalMarginTop??0,tabular:m.tabular,term:{size:m.termSize,weight:t.type.weight.regular,lineHeight:lh(m.termSize,m.termLineHeight),color:colorOf(t,m.termColor)},value:{size:m.valueSize,weight:m.valueWeight,lineHeight:lh(m.valueSize,m.valueLineHeight),color:colorOf(t,m.valueColor)},totalTerm:{size:m.totalTermSize,weight:m.totalTermWeight,lineHeight:lh(m.totalTermSize,m.termLineHeight),color:colorOf(t,m.totalTermColor)},total:{size:m.totalSize,weight:m.totalWeight,lineHeight:lh(m.totalSize,m.totalLineHeight),color:colorOf(t,m.valueColor)},off:textPartSpec(t,t.metrics.summary.off)}}function skeletonWidth(t,index){let widths=t.metrics.skeleton.widths;return`${widths[index%widths.length]}%`}function clampStep(value,min,max){return Math.max(min,max===void 0?value:Math.min(max,value))}function itemTestID(parent,key,own){return own!==void 0?own:parent===void 0?void 0:`${parent}-${key}`}var nums=group=>group,isBox=v=>"edge"in v&&"shadow"in v&&"fit"in v,isText=v=>"deco"in v&&"face"in v&&"tabular"in v;function byValue(group){let out=/* @__PURE__ */new Map;for(let[k2,v]of Object.entries(group))out.has(v)||out.set(v,k2);return out}var groups,derived=/* @__PURE__ */new WeakMap;function tokenOf(map,theme,v){let k2=map.get(v),t=k2===void 0?void 0:theme[k2];return typeof t=="number"?t:v}function everfurTokens2(theme){let p=everfurTheme;return theme.space===p.space&&theme.radius===p.radius&&theme.type.size===p.type.size&&theme.type.weight===p.type.weight}function onTheme(theme,base3){let p=everfurTheme;groups??(groups={space:byValue(nums(p.space)),radius:byValue(nums(p.radius)),size:byValue(nums(p.type.size)),weight:byValue(nums(p.type.weight))});let g=groups,space=v=>tokenOf(g.space,nums(theme.space),v),radius=v=>tokenOf(g.radius,nums(theme.radius),v),walk=v=>Array.isArray(v)?v.map(walk):v===null||typeof v!="object"?v:isBox(v)?{...v,padding:v.padding.map(space),gap:v.gap.map(space),marginTop:space(v.marginTop),marginBottom:space(v.marginBottom),radius:v.radius.map(radius)}:isText(v)?{...v,size:tokenOf(g.size,nums(theme.type.size),v.size),weight:tokenOf(g.weight,nums(theme.type.weight),v.weight),marginTop:space(v.marginTop),paddingTop:space(v.paddingTop)}:Object.fromEntries(Object.entries(v).map(([k2,x])=>[k2,walk(x)]));return walk(base3)}function blockMetrics(theme,base3){if(everfurTokens2(theme))return base3;let perTheme=derived.get(base3);perTheme||derived.set(base3,perTheme=/* @__PURE__ */new WeakMap);let hit=perTheme.get(theme);if(hit)return hit;let out=onTheme(theme,base3);return perTheme.set(theme,out),out}function scoreLightsLayout(values,width,height,m,rtl=false){let n=values.length;if(n===0||width<=0)return[];let{rows:rows,gap:gap,widthShare:widthShare}=m.grid,p=width/n,cw=Math.max(1,Math.round(p*widthShare)),ch=Number(((height-(rows-1)*gap)/rows).toFixed(2));return values.map((raw,i)=>{let v=Number.isFinite(raw)?Math.min(10,Math.max(0,raw)):0,lights=[];for(let k2=0;k2<rows;k2+=1){let opacity=Number(Math.max(0,Math.min(1,v-k2)).toFixed(3));opacity>0&&lights.push({y:Number((height-(k2+1)*((height-(rows-1)*gap)/rows)-k2*gap).toFixed(2)),height:ch,opacity:opacity})}let x=Math.round(i*p+(p-cw)/2);return{x:rtl?Math.round(width-x-cw):x,width:cw,zone:v>=m.zones.lot?"lot":v>=m.zones.some?"some":"go",lights:lights}})}var UiSurfaceContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#SurfaceContext@v1"),host2=globalThis;return host2[key]??(host2[key]=createContext(null))})();function useUiSurface(){return useContext(UiSurfaceContext)}var TEXT_VARIANT_TIERS={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function textToneColor(t,tone){let c=t.colors;switch(tone){case"ink":return c.ink;case"text":return c.text;case"muted":return c.muted;case"danger":return c.alertDeep;case"inverse":return c.onInk;default:return}}function textVariantSpec(t,variant,tone,weight){let base3=textPartSpec(t,t.metrics.text[variant]),color=textToneColor(t,tone);return{...base3,...color?{color:color}:{},...weight?{weight:t.type.weight[weight]}:{}}}var PressFeedbackContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),host2=globalThis,context=host2[key]??(host2[key]=createContext(null));return context.displayName??(context.displayName="EverfurPressFeedbackContext"),context})();function usePressFeedback(){return useContext(PressFeedbackContext)}function pressHandlers(feedback,event,onPress,options={}){if(!feedback||options.disabled)return{onPress:onPress,onPressIn:void 0};let{onPressIn:reportIn,onPress:report,haptic:haptic}=feedback,tick=options.haptics!==false&&event.haptic&&haptic?haptic:void 0;return{onPress:onPress&&(report||tick)?()=>{tick?.(event),report?.(event),onPress()}:onPress,onPressIn:reportIn?()=>reportIn(event):void 0}}function pressScaleFor(feedback,component,designScale=1){return feedback?.pressScale?.[component]??designScale}var TEXT_VARIANT_BREAKS={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function textVariantTier(t,variant){return t.type.variantTiers?.[variant]??TEXT_VARIANT_TIERS[variant]}var ReducedMotionContext=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),host2=globalThis,context=host2[key]??(host2[key]=createContext(null));return context.displayName??(context.displayName="EverfurReducedMotionContext"),context})();function useKnownReducedMotion(){return useContext(ReducedMotionContext)}function rnText(t,spec){let face2=faceOf(spec.weight,spec.mono===true);return{fontFamily:spec.serif?t.type.faces.serif??t.type.faces.bold:t.type.faces[face2],...t.type.namedFaces?{}:{fontWeight:String(spec.weight)},fontSize:spec.size,lineHeight:spec.lineHeight,color:spec.color,...spec.tracking?{letterSpacing:spec.tracking}:{},...spec.upper?{textTransform:"uppercase"}:{},...spec.deco?rnDeco(spec):{},...spec.tabular?{fontVariant:["tabular-nums"]}:{},...spec.wrap&&Platform.OS==="web"?{textWrap:spec.wrap}:{}}}function rnDeco(spec){let base3={textDecorationLine:spec.deco==="strike"?"line-through":"underline"};return Platform.OS!=="web"?base3:{...base3,...spec.decoOffset?{textUnderlineOffset:spec.decoOffset}:{},...spec.decoThickness?{textDecorationThickness:spec.decoThickness}:{}}}function rnBox(t,b){let[pt=0,pr=0,pb=0,pl=0]=b.padding,[rt=0,rb=0]=b.radius,fill=partFill(t,b.bg);return{paddingTop:pt,paddingRight:pr,paddingBottom:pb,paddingLeft:pl,...b.marginTop?{marginTop:b.marginTop}:{},...b.gap[0]?{columnGap:b.gap[0]}:{},...b.gap[1]?{rowGap:b.gap[1]}:{},...rt===rb?rt?{borderRadius:rt}:{}:{borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomLeftRadius:rb,borderBottomRightRadius:rb},...fill?{backgroundColor:fill}:{},...b.edge.width>0&&!b.edge.ring?{borderWidth:b.edge.width,borderColor:colorOf(t,b.edge.color)}:{},...b.minHeight?{minHeight:b.minHeight}:{},...rnShadow(b.shadow)}}function rnRing(t,b){return b.edge.width>0&&b.edge.ring?ringOverlay(b.edge.width,colorOf(t,b.edge.color),b.radius[0]??0):null}function webReducedMotion(){if(Platform.OS!=="web")return false;let g=globalThis;return typeof g.matchMedia=="function"&&g.matchMedia("(prefers-reduced-motion: reduce)").matches}function useOsReducedMotion(known){let[reduced,setReduced]=useState(()=>known===null&&webReducedMotion());return useEffect(()=>{if(known!==null)return;let mounted=true,query=AccessibilityInfo?.isReduceMotionEnabled;if(typeof query=="function"){let result=query.call(AccessibilityInfo);result!=null&&typeof result.then=="function"&&result.then(value=>{mounted&&setReduced(value===true)},()=>{})}let subscription=AccessibilityInfo?.addEventListener?.("reduceMotionChanged",value=>setReduced(value===true));return()=>{mounted=false,subscription?.remove?.()}},[known]),known??reduced}function useRnReduced(t){let os=useOsReducedMotion(useKnownReducedMotion());return t.motion.reduced||os}function ariaState(expanded,pressed,current){return{...expanded===void 0?{}:{expanded:expanded},...pressed===void 0?{}:{checked:pressed},...current===void 0?{}:{selected:current!==false}}}function slopFor(size){let pad=Math.max(0,Math.ceil((44-size)/2));return pad===0?void 0:{top:pad,bottom:pad,left:pad,right:pad}}function rnShadow(s){return s.blur===0&&s.y===0&&s.x===0?null:{shadowColor:s.color,shadowOffset:{width:s.x,height:s.y},shadowOpacity:1,shadowRadius:s.blur,elevation:1}}function ringOverlay(width,color,radius){let fill={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:radius};return Platform.OS==="web"?{...fill,boxShadow:`inset 0 0 0 ${width}px ${color}`}:{...fill,borderWidth:width,borderColor:color}}var unnamedClose=/* @__PURE__ */new Set;function warnUnnamedClose(component,onClose,closeLabel){let dev=typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production";!onClose||closeLabel||unnamedClose.has(component)||!dev||(unnamedClose.add(component),console.warn(`@everfur-health/ui-native: ${component} draws its close (onClose) without a closeLabel, so a screen reader cannot name it. Pass closeLabel with onClose.`))}function round2(n){return Math.round(n*100)/100}function typeRoleStyle(t,role){let weight=Number(role.weight),em=role.letterSpacing??0;return{...rnText(t,{size:role.size,weight:weight,lineHeight:round2(role.size*role.lineHeight),color:t.colors.text,tracking:em?round2(role.size*em):0,mono:role.face==="mono",upper:role.uppercase===true}),flexShrink:1}}function breakProps(mode){return mode==="auto"?null:Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:Platform.OS==="android"&&mode==="balance"?{textBreakStrategy:"balanced"}:null}function weightStyle(t,weight){let w=t.type.weight[weight];return t.type.namedFaces?{fontFamily:t.type.faces[faceOf(w)]}:{fontWeight:String(w)}}function Text({tier:tier,variant:variant,tone:tone,weight:weight,level:level,lineBreak:lineBreak,typeRole:typeRole,...props}){let t=useTheme();if(typeRole){let roleCap=t.type.scaleCaps[tier??typeRole.tier??"content"],roleBreaks=lineBreak?breakProps(lineBreak):null;return createElement(Text$1,{...roleCap>0?{maxFontSizeMultiplier:roleCap}:{},...roleBreaks,...props,style:[typeRoleStyle(t,typeRole),props.style]})}let cap=t.type.scaleCaps[tier??(variant?textVariantTier(t,variant):"content")],breaks=breakProps(lineBreak??(variant?TEXT_VARIANT_BREAKS[variant]:"auto"));if(variant===void 0&&tone===void 0&&weight===void 0&&level===void 0)return breaks?createElement(Text$1,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...props}):createElement(Text$1,cap>0?{maxFontSizeMultiplier:cap,...props}:props);let color=textToneColor(t,tone),own=variant?rnText(t,textVariantSpec(t,variant,tone,weight)):{...color?{color:color}:{},...weight?weightStyle(t,weight):{}},heading=level===void 0?{}:{accessibilityRole:"header",...Platform.OS==="web"?{"aria-level":level}:{}};return createElement(Text$1,{...cap>0?{maxFontSizeMultiplier:cap}:{},...breaks,...heading,...props,style:[own,props.style]})}var BOX=24,FINE=16,SEAM=.8,fine=dp=>Math.round(dp*FINE);function place(cx,cy,W,H,ux,uy){let left=cx-W/2,top=cy-H/2,x=Math.round(left),y=Math.round(top);return{position:"absolute",left:x,top:y,width:W,height:H,transform:[{translateX:left-x},{translateY:top-y},{rotate:`${Math.atan2(uy,ux)*180/Math.PI}deg`},{scale:1/FINE}]}}function strokePieces(icon,k2,out){for(let s of icon.strokes){let w=s.width*k2,pts=s.points,n=pts.length/2,last=s.closed?n:n-1;for(let i=0;i<last;i+=1){let j=(i+1)%n,px2=(pts[i*2]??0)*k2,py=(pts[i*2+1]??0)*k2,dx=(pts[j*2]??0)*k2-px2,dy=(pts[j*2+1]??0)*k2-py,len=Math.hypot(dx,dy);if(len===0&&!(n===2&&s.cap))continue;let ux=len===0?1:dx/len,uy=len===0?0:dy/len,e0=s.closed||i>0||s.cap?w/2:0,e1=s.closed||j!==n-1||s.cap?w/2:0,along=(len+e1-e0)/2;out.push({paint:"backgroundColor",style:{...place(px2+ux*along,py+uy*along,fine(len+e0+e1),fine(w),ux,uy),borderTopLeftRadius:e0>0?fine(w)/2:0,borderBottomLeftRadius:e0>0?fine(w)/2:0,borderTopRightRadius:e1>0?fine(w)/2:0,borderBottomRightRadius:e1>0?fine(w)/2:0,...s.opacity===void 0?{}:{opacity:s.opacity}}})}}}function boxPieces(icon,k2,out){for(let b of icon.boxes){let w=(b.w+b.width)*k2,h=(b.h+b.width)*k2;out.push({paint:"borderColor",style:{...place((b.x-b.width/2)*k2+w/2,(b.y-b.width/2)*k2+h/2,fine(w),fine(h),1,0),borderWidth:fine(b.width*k2),borderRadius:(b.radius+b.width/2)*k2*FINE,...b.opacity===void 0?{}:{opacity:b.opacity}}})}}function trianglePieces(icon,k2,out){for(let t of icon.triangles){let p=[0,1,2].map(i=>[(t[i*2]??0)*k2,(t[i*2+1]??0)*k2]),base3=0,len=-1;for(let i=0;i<3;i+=1){let a2=p[i]??[0,0],b=p[(i+1)%3]??[0,0],d=Math.hypot(b[0]-a2[0],b[1]-a2[1]);d>len&&(len=d,base3=i)}if(len<=0)continue;let b0=p[base3]??[0,0],b1=p[(base3+1)%3]??[0,0],a=p[(base3+2)%3]??[0,0],ux=(b1[0]-b0[0])/len,uy=(b1[1]-b0[1])/len,along=(a[0]-b0[0])*ux+(a[1]-b0[1])*uy,across=(a[0]-b0[0])*-uy+(a[1]-b0[1])*ux,h=Math.abs(across),up=across<0,mid=up?-h/2:h/2,bl=fine(along),br=fine(len)-bl,bh=fine(h);out.push({paint:up?"borderBottomColor":"borderTopColor",style:{...place(b0[0]+ux*(len/2)-uy*mid,b0[1]+uy*(len/2)+ux*mid,bl+br,bh,ux,uy),width:0,height:0,borderLeftWidth:bl,borderRightWidth:br,borderLeftColor:"transparent",borderRightColor:"transparent",...up?{borderBottomWidth:bh}:{borderTopWidth:bh}}})}for(let e of icon.seams){let x0=(e[0]??0)*k2,y0=(e[1]??0)*k2,dx=(e[2]??0)*k2-x0,dy=(e[3]??0)*k2-y0,d=Math.hypot(dx,dy),in0=SEAM*(e[4]??0),in1=SEAM*(e[5]??0),bar=d-in0-in1;if(d===0||bar<=0)continue;let mid=in0+bar/2;out.push({paint:"backgroundColor",style:place(x0+dx/d*mid,y0+dy/d*mid,fine(bar),fine(SEAM),dx/d,dy/d)})}}var cache=/* @__PURE__ */new WeakMap;function piecesOf(icon,size){let sizes=cache.get(icon);sizes===void 0&&(sizes=/* @__PURE__ */new Map,cache.set(icon,sizes));let hit=sizes.get(size);if(hit!==void 0)return hit;let out=[],k2=size/BOX;return boxPieces(icon,k2,out),strokePieces(icon,k2,out),trianglePieces(icon,k2,out),sizes.set(size,out),out}function Glyph({icon:icon,size:size,color:color,label:label,testID:testID,style:style}){let t=useTheme(),side=size??t.metrics.icon.size,ink=color??t.colors.ink;/* @__PURE__ */
|
|
28
28
|
return jsx(View,{testID:testID,pointerEvents:"none",style:[{width:side,height:side},style],...label?{accessible:true,accessibilityRole:"image",accessibilityLabel:label}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:piecesOf(icon,side).map((piece,i)=>/* @__PURE__ */jsx(View,{style:[piece.style,{[piece.paint]:ink}]},i))})}var REGISTRY=/* @__PURE__ */(()=>{let key=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),host2=globalThis;return host2[key]??(host2[key]={icons:{},warned:/* @__PURE__ */new Set})})();function registerIcons(icons){Object.assign(REGISTRY.icons,icons)}function iconNamed(name){let icon=REGISTRY.icons[name];return icon===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!REGISTRY.warned.has(name)&&(REGISTRY.warned.add(name),console.warn(`@everfur-health/ui-native: no icon "${name}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),icon}function Icon({name:name,...rest}){let icon=iconNamed(name);return icon?/* @__PURE__ */jsx(Glyph,{icon:icon,...rest}):null}function usePressLayer(component,info,onPress,designScale=1){return pressLayerOf(usePressFeedback(),component,info,onPress,designScale)}function pressLayerOf(feedback,component,info,onPress,designScale=1){let h=pressHandlers(feedback,{component:component,testID:info.testID,...info.item===void 0?{}:{item:info.item},label:info.label,trackId:info.trackId,haptic:info.haptic===true},onPress,{disabled:info.disabled});return{props:h.onPressIn?{onPress:h.onPress,onPressIn:h.onPressIn}:{onPress:h.onPress},scale:pressScaleFor(feedback,component,designScale)}}var cubic=e=>`cubic-bezier(${e.join(", ")})`,styleAt=(style,pressed)=>typeof style=="function"?style({pressed:pressed}):style,animatedPressable;function animatedPressableOf(){return animatedPressable??(animatedPressable=Animated.createAnimatedComponent(Pressable))}function pressTiming(t,value,toValue){let[a,b,c,d]=t.motion.easing.out;return Animated.timing(value,{toValue:toValue,duration:t.motion.duration.press,easing:Easing.bezier(a,b,c,d),useNativeDriver:true})}function PressBox({style:style,scale:scale,still:still,pop:pop,onPressIn:onPressIn,onPressOut:onPressOut,...props}){let t=useTheme(),value=useRef(null),[held,setHeld]=useState(false),scales=!still&&scale!==1,popping=!still&&pop?.scale!=null;if(Platform.OS==="web"){let motion=scales?{transitionProperty:"transform",transitionDuration:`${t.motion.duration.press}ms`,transitionTimingFunction:cubic(t.motion.easing.out)}:null;return createElement(Pressable,{...props,...pop?{ref:pop.ref}:null,onPressIn:onPressIn,onPressOut:onPressOut,style:({pressed:pressed})=>[styleAt(style,pressed),motion,scales&&pressed?{transform:[{scale:scale}]}:null]})}if(!scales&&!popping)return createElement(Pressable,{...props,onPressIn:onPressIn,onPressOut:onPressOut,style:style});let v=value.current??(value.current=new Animated.Value(0)),pressScale=scales?v.interpolate({inputRange:[0,1],outputRange:[1,scale]}):null,both=pressScale&&popping?Animated.multiply(pressScale,pop?.scale):pressScale??pop?.scale;return createElement(animatedPressableOf(),{...props,onPressIn:e=>{props.disabled||(setHeld(true),scales&&pressTiming(t,v,1).start(),onPressIn?.(e))},onPressOut:e=>{setHeld(false),scales&&pressTiming(t,v,0).start(),onPressOut?.(e)},style:[styleAt(style,held),{transform:[{scale:both}]}]})}function Button({label:label,onPress:onPress,tone:tone="ink",size:size="md",icon:icon,disabled:disabled=false,loading:loading=false,loadingLabel:loadingLabel,loadingIndicator:loadingIndicator="spinner",fullWidth:fullWidth,accessibilityLabel:accessibilityLabel,trackId:trackId,haptic:haptic,testID:testID,style:style,children:children,nativeID:nativeID,onPressIn:onPressIn,"aria-expanded":expanded,"aria-pressed":pressed,"aria-current":current}){let t=useTheme(),inSheet=useUiSurface()==="sheet",reduced=useRnReduced(t),s=buttonSpec(t,tone,size,inSheet),blocked=disabled||loading,block2=fullWidth??(inSheet||s.fill),spinner=loading&&loadingIndicator!=="none",spoken2=spinner&&loadingLabel?loadingLabel:accessibilityLabel??(spinner&&loadingLabel?loadingLabel:label),press=usePressLayer("Button",{testID:testID,label:spoken2,trackId:trackId,haptic:haptic,disabled:blocked},onPress,s.pressScale),layerIn=press.props.onPressIn,pressIn=onPressIn&&layerIn?()=>{layerIn(),onPressIn()}:onPressIn??layerIn;/* @__PURE__ */
|
|
29
29
|
return jsxs(PressBox,{...press.props,onPressIn:pressIn,scale:press.scale,still:reduced,disabled:blocked,nativeID:nativeID,hitSlop:slopFor(Math.max(s.minHeight,s.text.lineHeight)),accessibilityRole:"button",accessibilityLabel:spoken2,accessibilityState:{disabled:blocked,busy:loading,...ariaState(expanded,pressed,current)},"aria-busy":loading,testID:testID,style:({pressed:pressed2})=>[styles.base,{minHeight:Math.max(s.minHeight,0),paddingHorizontal:s.paddingX,columnGap:s.gap,borderRadius:s.radius,borderWidth:s.ring?0:s.borderWidth,borderColor:s.borderColor,backgroundColor:s.background},block2?styles.block:styles.auto,blocked?{opacity:s.disabledOpacity}:null,pressed2&&s.pressOpacity!==1&&!blocked?{opacity:s.pressOpacity}:null,style],children:[spinner?/* @__PURE__ */jsx(ActivityIndicator,{size:"small",color:s.text.color,animating:!reduced,hidesWhenStopped:false,accessibilityLabel:spoken2}):icon?/* @__PURE__ */jsx(Icon,{name:icon,size:s.iconSize,color:s.text.color}):null,
|
|
30
|
-
/* @__PURE__ */jsx(View,{style:styles.labelBox,children:/* @__PURE__ */jsx(Text,{tier:"control",style:[rnText(t,s.text),styles.label],children:spinner&&loadingLabel?loadingLabel:children??label})}),s.ring&&s.borderWidth>0?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ringOverlay(s.borderWidth,s.borderColor,s.radius)}):null]})}var styles=StyleSheet.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});StyleSheet.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});StyleSheet.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});StyleSheet.create({st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},acts:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});StyleSheet.create({acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"},st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},stActs:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});function Pill({label:label,tone:tone="plain",testID:testID,style:style,maxFontSizeMultiplier:maxFontSizeMultiplier,grouped:grouped=true}){let t=useTheme(),s=pillSpec(t,tone);/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */jsx(View,{style:styles.labelBox,children:/* @__PURE__ */jsx(Text,{tier:"control",style:[rnText(t,s.text),styles.label],children:spinner&&loadingLabel?loadingLabel:children??label})}),s.ring&&s.borderWidth>0?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ringOverlay(s.borderWidth,s.borderColor,s.radius)}):null]})}var styles=StyleSheet.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});var skeletonLook={block:{height:16,radius:8},shimmer:{duration:1150,bandShare:.6,bandMin:28,band:"rgba(255, 255, 255, 0.42)",skew:-14}};var checkoutCartBarLook={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};StyleSheet.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});StyleSheet.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});function lookDrop(d){return Platform.OS==="web"?{boxShadow:`${d.x}px ${d.y}px ${d.blur}px ${d.spread}px ${d.color}`}:{shadowColor:d.color,shadowOpacity:1,shadowRadius:d.blur/2,shadowOffset:{width:d.x,height:d.y},elevation:Math.round(d.blur/3)}}StyleSheet.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"}});StyleSheet.create({acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"},st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},stActs:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});function Pill({label:label,tone:tone="plain",testID:testID,style:style,maxFontSizeMultiplier:maxFontSizeMultiplier,grouped:grouped=true}){let t=useTheme(),s=pillSpec(t,tone);/* @__PURE__ */
|
|
31
31
|
return jsxs(View,{testID:testID,...grouped?{accessible:true,accessibilityLabel:label}:null,style:[styles6.pill,{minHeight:s.minHeight,paddingHorizontal:s.paddingX,borderRadius:s.radius,backgroundColor:s.background,...s.dot?{columnGap:s.dot.gap}:{}},style],children:[s.ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ringOverlay(s.ring.width,s.ring.color,s.radius)}):null,s.dot?/* @__PURE__ */jsx(View,{style:{width:s.dot.size,height:s.dot.size,borderRadius:s.dot.size/2,backgroundColor:s.dot.color}}):null,
|
|
32
32
|
/* @__PURE__ */jsx(Text,{tier:"control",numberOfLines:1,...maxFontSizeMultiplier===void 0?{}:{maxFontSizeMultiplier:maxFontSizeMultiplier},style:[rnText(t,s.text),styles6.label],children:label})]})}var styles6=StyleSheet.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}}),UI_RN_ICON_ALERT={strokes:[{width:2,cap:true,closed:false,points:[21.73,18,13.73,4,12.997,3.258,11.99,2.986,10.983,3.258,10.25,4,2.25,18,1.982,19.005,2.254,20.008,2.994,20.739,4,21,20,21,20.999,20.731,21.731,19.999,21.998,18.999,21.73,18]},{width:2,cap:true,closed:false,points:[12,9,12,13]},{width:2,cap:true,closed:false,points:[12,17,12.01,17]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_ARROW_LEFT={strokes:[{width:2,cap:true,closed:false,points:[12,19,5,12,12,5]},{width:2,cap:true,closed:false,points:[19,12,5,12]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_BAG={strokes:[{width:2,cap:true,closed:true,points:[6,2,3,6,3,20,3.268,21,4,21.732,5,22,19,22,20,21.732,20.732,21,21,20,21,6,18,2]},{width:2,cap:true,closed:false,points:[3,6,21,6]},{width:2,cap:true,closed:false,points:[16,10,15.696,11.531,14.828,12.828,13.531,13.696,12,14,10.469,13.696,9.172,12.828,8.304,11.531,8,10]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_BELL={strokes:[{width:2,cap:true,closed:false,points:[10.034,20.999,10.765,21.732,11.766,22,12.766,21.732,13.498,20.999]},{width:2,cap:true,closed:false,points:[21.766,8,21.514,5.799,20.818,3.8,19.765,1.999]},{width:2,cap:true,closed:false,points:[3.766,1.999,2.714,3.8,2.018,5.799,1.765,8]},{width:2,cap:true,closed:true,points:[3.028,15.325,2.78,15.838,2.851,16.402,3.22,16.837,3.766,16.999,19.765,16.999,20.312,16.838,20.681,16.404,20.753,15.84,20.506,15.327,19.71,14.47,18.967,13.451,18.347,12.128,17.923,10.358,17.766,8,17.309,5.704,16.009,3.758,14.061,2.457,11.766,1.999,9.47,2.457,7.524,3.758,6.223,5.704,5.765,8,5.609,10.358,5.184,12.128,4.565,13.451,3.822,14.47,3.028,15.325]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_BOWL={strokes:[{width:2,cap:true,closed:false,points:[2,11,22,11]},{width:2,cap:true,closed:false,points:[4,11,4.287,13.12,5.096,15.03,6.35,16.65,7.97,17.904,9.88,18.713,12,19,14.12,18.713,16.03,17.904,17.65,16.65,18.904,15.03,19.713,13.12,20,11]},{width:2,cap:true,closed:false,points:[8.5,8,9.352,7.333,10.581,6.933,12,6.8,13.419,6.933,14.648,7.333,15.5,8]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_BOX={strokes:[{width:2,cap:true,closed:true,points:[11,21.73,12,21.998,13,21.73,20,17.73,20.732,16.999,21,16,21,8,20.732,7.001,20,6.27,13,2.27,12,2.002,11,2.27,4,6.27,3.268,7.001,3,8,3,16,3.268,16.999,4,17.73]},{width:2,cap:true,closed:false,points:[12,22,12,12]},{width:2,cap:true,closed:false,points:[3.29,7,12,12,20.71,7]},{width:2,cap:true,closed:false,points:[7.5,4.27,16.5,9.42]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_CALENDAR={strokes:[{width:2,cap:true,closed:false,points:[8,2,8,6]},{width:2,cap:true,closed:false,points:[16,2,16,6]},{width:2,cap:true,closed:false,points:[3,10,21,10]}],boxes:[{x:3,y:4,w:18,h:18,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_CAMERA={strokes:[{width:2,cap:true,closed:true,points:[14.5,4,9.5,4,7,7,4,7,3,7.268,2.268,8,2,9,2,18,2.268,19,3,19.732,4,20,20,20,21,19.732,21.732,19,22,18,22,9,21.732,8,21,7.268,20,7,17,7,14.5,4]}],boxes:[{x:9,y:10,w:6,h:6,radius:3,width:2}],triangles:[],seams:[]},UI_RN_ICON_CHECK={strokes:[{width:2,cap:true,closed:false,points:[20,6,9,17,4,12]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_CHEVRON={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_CLOCK={strokes:[{width:2,cap:true,closed:true,points:[12,22,14.658,21.643,17.048,20.635,19.071,19.071,20.635,17.048,21.643,14.658,22,12,21.643,9.342,20.635,6.953,19.071,4.929,17.048,3.366,14.658,2.357,12,2,9.341,2.357,6.953,3.366,4.929,4.929,3.365,6.953,2.357,9.342,2,12,2.357,14.658,3.365,17.048,4.929,19.071,6.953,20.635,9.341,21.643,12,22]},{width:2,cap:true,closed:false,points:[12,6.001,12,12,16,14.001]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_DOWNLOAD={strokes:[{width:2,cap:true,closed:false,points:[12,15,12,3]},{width:2,cap:true,closed:false,points:[17,10,12,15,7,10]},{width:2,cap:true,closed:false,points:[21,15,21,19.001,20.847,19.765,20.414,20.414,19.765,20.847,19,21,5,21,4.235,20.847,3.586,20.414,3.153,19.765,3,19.001,3,15]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_EDIT={strokes:[{width:2,cap:true,closed:false,points:[12,3,5,3,4,3.268,3.268,4,3,5,3,19,3.268,20,4,20.732,5,21,19,21,20,20.732,20.732,20,21,19,21,12]},{width:2,cap:true,closed:true,points:[18.375,2.625,19.326,2.076,20.424,2.076,21.375,2.625,21.924,3.576,21.924,4.674,21.375,5.625,12.362,14.639,11.509,15.144,8.636,15.984,8.142,15.858,8.016,15.364,8.856,12.491,9.362,11.639]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_FILE={strokes:[{width:2,cap:true,closed:true,points:[15,2,6,2,5,2.268,4.268,3,4,4,4,20,4.268,21,5,21.732,6,22,18,22,19,21.732,19.732,21,20,20,20,7]},{width:2,cap:true,closed:false,points:[14,2,14,6,14.268,7,15,7.732,16,8,20,8]},{width:2,cap:true,closed:false,points:[10,9,8,9]},{width:2,cap:true,closed:false,points:[16,13,8,13]},{width:2,cap:true,closed:false,points:[16,17,8,17]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_FLASK={strokes:[{width:2,cap:true,closed:false,points:[14.001,2,14.001,8,14.245,8.96,19.755,19.039,20,20.034,19.721,21.019,18.99,21.738,18,21.999,6,21.999,5.01,21.738,4.279,21.019,3.999,20.034,4.245,19.039,9.755,8.96,10,8,10,2]},{width:2,cap:true,closed:false,points:[6.453,15,17.547,15]},{width:2,cap:true,closed:false,points:[8.5,2,15.5,2]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_FOLDER={strokes:[{width:2,cap:true,closed:true,points:[20,20,20.765,19.847,21.415,19.413,21.847,18.765,22,18,22,8,21.847,7.235,21.415,6.585,20.765,6.152,20,6,12.1,6,11.14,5.765,10.41,5.099,9.6,3.899,8.879,3.239,7.93,2.999,4,2.999,3.234,3.152,2.586,3.586,2.152,4.234,2,5,2,18,2.152,18.765,2.586,19.413,3.234,19.847,4,20,20,20]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_HEART={strokes:[{width:2,cap:true,closed:true,points:[2,9.499,2.247,7.868,2.968,6.383,4.096,5.179,5.532,4.364,7.144,4.011,8.788,4.152,10.316,4.776,11.591,5.824,11.777,5.955,12,6.001,12.223,5.955,12.409,5.824,13.682,4.768,15.211,4.139,16.859,3.995,18.475,4.347,19.913,5.165,21.041,6.374,21.759,7.863,22,9.499,21.742,11.114,21.063,12.546,20.101,13.829,19,15,13.508,20.313,12.834,20.817,12.012,20.999,11.189,20.827,10.508,20.332,5,15,3.899,13.831,2.937,12.55,2.258,11.119,2,9.499]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_HELP={strokes:[{width:2,cap:true,closed:false,points:[9.09,9,9.842,7.832,11.04,7.127,12.427,7.039,13.705,7.584,14.6,8.648,14.92,10,14.608,11.08,13.864,11.92,12.976,12.52,12.232,12.88,11.92,13]},{width:2,cap:true,closed:false,points:[12,17,12.01,17]}],boxes:[{x:2,y:2,w:20,h:20,radius:10,width:2}],triangles:[],seams:[]},UI_RN_ICON_HOUSE={strokes:[{width:2,cap:true,closed:false,points:[15,21,15,13,14.707,12.293,14,12,10,12,9.293,12.293,9,13,9,21]},{width:2,cap:true,closed:true,points:[3,10,3.186,9.158,3.709,8.472,10.709,2.473,11.536,2.055,12.464,2.055,13.291,2.473,20.291,8.472,20.814,9.158,21,10,21,19,20.732,20,20,20.732,19,21,5,21,4,20.732,3.268,20,3,19]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_IMAGE={strokes:[{width:2,cap:true,closed:false,points:[21,15,17.914,11.914,17.018,11.397,15.982,11.397,15.086,11.914,6,21]}],boxes:[{x:3,y:3,w:18,h:18,radius:2,width:2},{x:7,y:7,w:4,h:4,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_INFO={strokes:[{width:2,cap:true,closed:false,points:[12,16,12,12]},{width:2,cap:true,closed:false,points:[12,8,12.01,8]}],boxes:[{x:2,y:2,w:20,h:20,radius:10,width:2}],triangles:[],seams:[]},UI_RN_ICON_LEAF={strokes:[{width:2,cap:true,closed:true,points:[11,20,8.727,19.628,6.697,18.538,5.131,16.848,4.199,14.741,4.001,12.446,4.558,10.211,5.811,8.278,7.624,6.856,9.8,6.1,12.322,5.587,14.274,5.099,15.788,4.568,16.993,3.921,18.02,3.088,19,2,19.734,3.557,20.375,5.318,20.828,7.42,21,10,20.72,12.286,19.931,14.388,18.708,16.245,17.127,17.796,15.265,18.98,13.198,19.735,11,20]},{width:2,cap:true,closed:false,points:[2,21,2.218,19.285,2.858,17.776,3.896,16.524,5.311,15.582,7.08,15,8.885,14.469,10.573,13.695,11.993,12.823,13,12]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_LOCK={strokes:[{width:2,cap:true,closed:false,points:[7,11,7,7,7.381,5.087,8.464,3.464,10.087,2.381,12,2,13.913,2.381,15.536,3.464,16.619,5.087,17,7,17,11]}],boxes:[{x:3,y:11,w:18,h:11,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_MAIL={strokes:[{width:2,cap:true,closed:false,points:[22,7,13.03,12.7,12,12.996,10.97,12.7,2,7]}],boxes:[{x:2,y:4,w:20,h:16,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_MESSAGE={strokes:[{width:2,cap:true,closed:true,points:[7.9,20,10.431,20.853,13.102,20.925,15.676,20.211,17.927,18.772,19.656,16.736,20.712,14.282,21,11.627,20.497,9.003,19.246,6.643,17.357,4.754,14.997,3.503,12.373,3,9.718,3.288,7.264,4.344,5.228,6.073,3.789,8.324,3.075,10.898,3.147,13.569,4,16.1,2,22]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_MINUS={strokes:[{width:2,cap:true,closed:false,points:[5,12,19,12]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_MORE={strokes:[],boxes:[{x:4.65,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7},{x:11.15,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7},{x:17.65,y:11.15,w:1.7,h:1.7,radius:.85,width:1.7}],triangles:[],seams:[]},UI_RN_ICON_PAW={strokes:[{width:2,cap:true,closed:true,points:[9,10,10.913,10.381,12.536,11.464,13.619,13.087,14,15,14,18.5,13.615,20.094,12.547,21.338,11.029,21.959,9.395,21.82,8.003,20.952,7.16,19.545,6.576,18.327,5.676,17.425,4.46,16.84,3.054,15.997,2.186,14.607,2.046,12.974,2.665,11.456,3.907,10.387,5.5,10]}],boxes:[{x:9,y:2,w:4,h:4,radius:2,width:2},{x:16,y:6,w:4,h:4,radius:2,width:2},{x:18,y:14,w:4,h:4,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_PHONE={strokes:[{width:2,cap:true,closed:false,points:[13.832,16.568,14.492,16.629,15.045,16.265,15.4,15.8,16.106,15.211,17,15,20,15,21,15.268,21.732,16,22,17,22,20,21.732,21,21,21.732,20,22,16.488,21.654,13.112,20.63,10,18.966,7.272,16.728,5.034,14,3.37,10.888,2.346,7.512,2,4,2.268,3,3,2.268,4,2,7,2,8,2.268,8.732,3,9,4,9,7,8.789,7.894,8.2,8.6,7.732,8.951,7.366,9.515,7.44,10.184,9.084,12.765,11.249,14.928,13.832,16.568]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_PILL={strokes:[{width:2,cap:true,closed:true,points:[10.5,20.5,20.5,10.5,21.594,8.894,21.985,6.99,21.613,5.082,20.536,3.464,18.918,2.387,17.01,2.015,15.106,2.406,13.5,3.5,3.5,13.5,2.406,15.106,2.015,17.01,2.387,18.918,3.464,20.536,5.082,21.613,6.99,21.985,8.894,21.594,10.5,20.5]},{width:2,cap:true,closed:false,points:[8.5,8.5,15.5,15.5]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_PIN={strokes:[{width:2,cap:true,closed:false,points:[20,10,19.688,12.141,18.859,14.242,17.674,16.234,16.294,18.053,14.881,19.631,13.597,20.902,12.601,21.799,12,22,11.399,21.799,10.403,20.902,9.119,19.631,7.706,18.053,6.326,16.234,5.141,14.242,4.312,12.141,4,10,4.392,7.528,5.528,5.298,7.298,3.528,9.528,2.392,12,2,14.472,2.392,16.702,3.528,18.472,5.298,19.608,7.528,20,10]}],boxes:[{x:9,y:7,w:6,h:6,radius:3,width:2}],triangles:[],seams:[]},UI_RN_ICON_PLUS={strokes:[{width:2,cap:true,closed:false,points:[5,12,19.001,12]},{width:2,cap:true,closed:false,points:[12,5,12,19.001]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_SEARCH={strokes:[{width:2,cap:true,closed:false,points:[21,21,16.7,16.7]}],boxes:[{x:3,y:3,w:16,h:16,radius:8,width:2}],triangles:[],seams:[]},UI_RN_ICON_SEND={strokes:[{width:2,cap:true,closed:true,points:[14.536,21.686,15.013,22,15.473,21.662,21.973,2.662,21.857,2.143,21.338,2.027,2.338,8.527,2,8.987,2.314,9.464,10.244,12.644,10.914,13.085,11.356,13.754]},{width:2,cap:true,closed:false,points:[21.854,2.147,10.914,13.086]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_SHIELD={strokes:[{width:2,cap:true,closed:true,points:[20,12.999,19.722,15.298,18.938,17.22,17.73,18.806,16.175,20.096,14.352,21.131,12.34,21.949,11.67,21.94,9.654,21.125,7.828,20.093,6.272,18.805,5.062,17.22,4.279,15.298,4,12.999,4,6,4.293,5.293,5,5,6.574,4.788,8.218,4.21,9.812,3.346,11.24,2.28,12,1.999,12.76,2.28,14.192,3.35,15.786,4.213,17.427,4.79,19,5,19.707,5.293,20,6,20,12.999]},{width:2,cap:true,closed:false,points:[9,12,11,13.999,15,10]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_SPARKLE={strokes:[{width:2,cap:true,closed:true,points:[12,3.5,12.503,5.742,13.338,7.465,14.57,8.727,16.269,9.586,18.5,10.1,16.269,10.603,14.57,11.438,13.338,12.67,12.503,14.369,12,16.6,11.497,14.369,10.662,12.67,9.43,11.438,7.731,10.603,5.5,10.1,7.731,9.586,9.43,8.727,10.662,7.465,11.497,5.742,12,3.5]},{width:2,cap:true,closed:true,points:[19,15.5,19.426,16.793,20.207,17.574,21.5,18,20.207,18.426,19.426,19.207,19,20.5,18.574,19.207,17.793,18.426,16.5,18,17.793,17.574,18.574,16.793,19,15.5]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_SYRINGE={strokes:[{width:2,cap:true,closed:false,points:[17.798,2,21.798,6]},{width:2,cap:true,closed:false,points:[16.799,7.001,19.798,4]},{width:2,cap:true,closed:false,points:[18.8,9,8.5,19.3,7.374,19.967,6.159,19.967,5.1,19.3,4.5,18.7,3.834,17.574,3.834,16.359,4.5,15.3,14.8,5.001]},{width:2,cap:true,closed:false,points:[8.8,11,12.8,15]},{width:2,cap:true,closed:false,points:[4.799,19,1.799,22]},{width:2,cap:true,closed:false,points:[13.799,4,19.8,10]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_UPLOAD={strokes:[{width:2,cap:true,closed:false,points:[12.001,3,12.001,15]},{width:2,cap:true,closed:false,points:[7,8,12.001,3,17,8]},{width:2,cap:true,closed:false,points:[21,15,21,19,20.847,19.765,20.414,20.414,19.765,20.847,19.001,21,5,21,4.235,20.847,3.586,20.414,3.153,19.765,3,19,3,15]}],boxes:[],triangles:[],seams:[]},UI_RN_ICON_USER={strokes:[{width:1.75,cap:true,closed:false,points:[19,21,19,19,18.696,17.469,17.828,16.172,16.531,15.304,15,15,9,15,7.469,15.304,6.172,16.172,5.304,17.469,5,19,5,21]}],boxes:[{x:8,y:3,w:8,h:8,radius:4,width:1.75}],triangles:[],seams:[]},UI_RN_ICON_VIDEO={strokes:[{width:2,cap:true,closed:false,points:[16,13,21.223,16.482,21.736,16.507,22,16.066,22,7.87,21.749,7.436,21.248,7.438,16,10.5]}],boxes:[{x:2,y:6,w:14,h:12,radius:2,width:2}],triangles:[],seams:[]},UI_RN_ICON_X={strokes:[{width:2,cap:true,closed:false,points:[18,6,6,18]},{width:2,cap:true,closed:false,points:[6,6,18,18]}],boxes:[],triangles:[],seams:[]},UI_RN_ICONS={alert:UI_RN_ICON_ALERT,"arrow-left":UI_RN_ICON_ARROW_LEFT,bag:UI_RN_ICON_BAG,bell:UI_RN_ICON_BELL,bowl:UI_RN_ICON_BOWL,box:UI_RN_ICON_BOX,calendar:UI_RN_ICON_CALENDAR,camera:UI_RN_ICON_CAMERA,check:UI_RN_ICON_CHECK,chevron:UI_RN_ICON_CHEVRON,clock:UI_RN_ICON_CLOCK,download:UI_RN_ICON_DOWNLOAD,edit:UI_RN_ICON_EDIT,file:UI_RN_ICON_FILE,flask:UI_RN_ICON_FLASK,folder:UI_RN_ICON_FOLDER,heart:UI_RN_ICON_HEART,help:UI_RN_ICON_HELP,house:UI_RN_ICON_HOUSE,image:UI_RN_ICON_IMAGE,info:UI_RN_ICON_INFO,leaf:UI_RN_ICON_LEAF,lock:UI_RN_ICON_LOCK,mail:UI_RN_ICON_MAIL,message:UI_RN_ICON_MESSAGE,minus:UI_RN_ICON_MINUS,more:UI_RN_ICON_MORE,paw:UI_RN_ICON_PAW,phone:UI_RN_ICON_PHONE,pill:UI_RN_ICON_PILL,pin:UI_RN_ICON_PIN,plus:UI_RN_ICON_PLUS,search:UI_RN_ICON_SEARCH,send:UI_RN_ICON_SEND,shield:UI_RN_ICON_SHIELD,sparkle:UI_RN_ICON_SPARKLE,syringe:UI_RN_ICON_SYRINGE,upload:UI_RN_ICON_UPLOAD,user:UI_RN_ICON_USER,video:UI_RN_ICON_VIDEO,x:UI_RN_ICON_X};function QuantityStepper(props){return useStepper(props,void 0)}function InkedQuantityStepper({ink:ink,...props}){return useStepper(props,ink)}function useStepper({value:value,min:min=1,max:max,label:label,fewerLabel:fewerLabel,moreLabel:moreLabel,disabled:disabled=false,variant:variant="standard",onChange:onChange,trackId:trackId,haptic:haptic,testID:testID,style:style},ink){let t=useTheme(),reduced=useRnReduced(t),s=quantityStepperSpec(t),st=t.metrics.variants.stepper,compact=variant==="compact",lessOff=disabled||value<=min,moreOff=disabled||max!==void 0&&value>=max,designScale=compact?st.press:t.metrics.press.iconButton,fewer=usePressLayer("QuantityStepper",{testID:testID?`${testID}-fewer`:void 0,item:"fewer",label:fewerLabel,trackId:trackId,haptic:haptic,disabled:lessOff},()=>onChange(clampStep(value-1,min,max)),designScale),more=usePressLayer("QuantityStepper",{testID:testID?`${testID}-more`:void 0,item:"more",label:moreLabel,trackId:trackId,haptic:haptic,disabled:moreOff},()=>onChange(clampStep(value+1,min,max)),designScale),last=useRef(value);useEffect(()=>{last.current!==value&&(last.current=value,Platform.OS==="ios"&&AccessibilityInfo.announceForAccessibility(`${label}, ${value}`))},[label,value]);let compactButton=(off,name,a11y,press,id)=>/* @__PURE__ */jsx(PressBox,{...press.props,scale:press.scale,still:reduced,disabled:off,hitSlop:slopFor(st.button.h),accessibilityRole:"button",accessibilityLabel:a11y,accessibilityState:{disabled:off},testID:testID?`${testID}-${id}`:void 0,style:[styles7.button,{width:st.button.w,height:st.button.h,borderRadius:st.button.radius[0]??0},off?{opacity:st.disabledOpacity}:null],children:/* @__PURE__ */jsx(Glyph,{icon:name==="plus"?UI_RN_ICON_PLUS:UI_RN_ICON_MINUS,size:st.icon,color:ink??colorOf(t,st.button.color)})}),button=(off,name,a11y,press,id)=>compact?compactButton(off,name,a11y,press,id):/* @__PURE__ */jsx(PressBox,{...press.props,scale:press.scale,still:reduced,disabled:off,hitSlop:slopFor(s.button),accessibilityRole:"button",accessibilityLabel:a11y,accessibilityState:{disabled:off},testID:testID?`${testID}-${id}`:void 0,style:[styles7.button,{width:s.button,height:s.button,borderRadius:s.button/2},off&&s.off.opacity!==1?{opacity:s.off.opacity}:null],children:/* @__PURE__ */jsx(Glyph,{icon:name==="plus"?UI_RN_ICON_PLUS:UI_RN_ICON_MINUS,size:s.icon,color:off?s.off.color:t.colors.ink})}),ring=compact?rnRing(t,st.track):null;/* @__PURE__ */
|
|
33
33
|
return jsxs(View,{testID:testID,style:[styles7.qty,compact?[rnBox(t,st.track),{height:st.track.h}]:{borderWidth:s.edge.inset?0:s.edge.width,borderColor:s.edge.color,borderRadius:t.radius.pill},style],children:[compact?ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null:s.edge.inset?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ringOverlay(s.edge.width,s.edge.color,t.radius.pill)}):null,button(lessOff,"minus",fewerLabel,fewer,"fewer"),
|
|
34
|
-
/* @__PURE__ */jsx(Text,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:label,accessibilityValue:{now:value,min:min,...max!==void 0?{max:max}:{},text:String(value)},"aria-valuenow":value,"aria-valuemin":min,"aria-valuemax":max,accessibilityState:{disabled:disabled},"aria-disabled":disabled||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:e=>{e.nativeEvent.actionName==="increment"&&!moreOff&&onChange(clampStep(value+1,min,max)),e.nativeEvent.actionName==="decrement"&&!lessOff&&onChange(clampStep(value-1,min,max))},accessibilityLiveRegion:"polite",style:compact?[rnText(t,textPartSpec(t,st.value)),{width:st.valueWidth,textAlign:"center"},ink?{color:ink}:null]:[rnText(t,textSpecs(t).stepperValue),{minWidth:s.valueMinWidth,textAlign:"center",fontVariant:["tabular-nums"]}],children:String(value)}),button(moreOff,"plus",moreLabel,more,"more")]})}var styles7=StyleSheet.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1}});StyleSheet.create({row:{flexDirection:"row",alignSelf:"stretch"},hairline:{position:"absolute",left:0,right:0},tab:{flex:1,flexBasis:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},center:{flexShrink:1,textAlign:"center"}});StyleSheet.create({scrim:{flex:1,justifyContent:"flex-end"},sheet:{maxHeight:"100%"},grab:{alignItems:"center",justifyContent:"center"},head:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1,flexGrow:1},close:{alignItems:"center",justifyContent:"center"},closeEnd:{marginLeft:"auto"},scroll:{flexGrow:0},top:{flexDirection:"row",alignItems:"center"}});function Skeleton({lines:lines=3,shape:shape,label:label,testID:testID,style:style}){let t=useTheme(),m=t.metrics.skeleton,named=label?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:label,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};return shape?/* @__PURE__ */jsx(View,{testID:testID,style:[shapeStyle(t,shape),style],...named}):/* @__PURE__ */jsx(View,{testID:testID,style:[{rowGap:m.gap,alignSelf:"stretch"},style],...named,children:Array.from({length:Math.max(1,lines)},(_,i)=>/* @__PURE__ */jsx(View,{style:{height:m.lineHeight,width:skeletonWidth(t,i),borderRadius:t.radius.pill,backgroundColor:
|
|
34
|
+
/* @__PURE__ */jsx(Text,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:label,accessibilityValue:{now:value,min:min,...max!==void 0?{max:max}:{},text:String(value)},"aria-valuenow":value,"aria-valuemin":min,"aria-valuemax":max,accessibilityState:{disabled:disabled},"aria-disabled":disabled||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:e=>{e.nativeEvent.actionName==="increment"&&!moreOff&&onChange(clampStep(value+1,min,max)),e.nativeEvent.actionName==="decrement"&&!lessOff&&onChange(clampStep(value-1,min,max))},accessibilityLiveRegion:"polite",style:compact?[rnText(t,textPartSpec(t,st.value)),{width:st.valueWidth,textAlign:"center"},ink?{color:ink}:null]:[rnText(t,textSpecs(t).stepperValue),{minWidth:s.valueMinWidth,textAlign:"center",fontVariant:["tabular-nums"]}],children:String(value)}),button(moreOff,"plus",moreLabel,more,"more")]})}var styles7=StyleSheet.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});StyleSheet.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}});StyleSheet.create({row:{flexDirection:"row",alignSelf:"stretch"},hairline:{position:"absolute",left:0,right:0},tab:{flex:1,flexBasis:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},center:{flexShrink:1,textAlign:"center"}});StyleSheet.create({scrim:{flex:1,justifyContent:"flex-end"},sheet:{maxHeight:"100%"},grab:{alignItems:"center",justifyContent:"center"},head:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1,flexGrow:1},close:{alignItems:"center",justifyContent:"center"},closeEnd:{marginLeft:"auto"},scroll:{flexGrow:0},top:{flexDirection:"row",alignItems:"center"}});function Skeleton({lines:lines=3,shape:shape,label:label,testID:testID,style:style,block:block2,color:color}){let t=useTheme(),m=t.metrics.skeleton,fill=color??m.color??t.colors.tintSage,named=label?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:label,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};return block2?/* @__PURE__ */jsx(SkeletonBox,{block:block2,fill:fill,testID:testID,style:style,named:named}):shape?/* @__PURE__ */jsx(View,{testID:testID,style:[shapeStyle(t,shape,fill),style],...named}):/* @__PURE__ */jsx(View,{testID:testID,style:[{rowGap:m.gap,alignSelf:"stretch"},style],...named,children:Array.from({length:Math.max(1,lines)},(_,i)=>/* @__PURE__ */jsx(View,{style:{height:m.lineHeight,width:skeletonWidth(t,i),borderRadius:t.radius.pill,backgroundColor:fill}},i))})}function SkeletonBox({block:block2,fill:fill,testID:testID,style:style,named:named}){let t=useTheme(),reduced=useRnReduced(t),look=skeletonLook,sh=look.shimmer,run2=block2.shimmer===true&&!reduced,[w,setW]=useState(0),sweep=useRef(new Animated.Value(0)).current;useEffect(()=>{if(!run2||w<=0)return;sweep.setValue(0);let loop=Animated.loop(Animated.timing(sweep,{toValue:1,duration:sh.duration,easing:Easing.inOut(Easing.ease),useNativeDriver:Platform.OS!=="web"}));return loop.start(),()=>loop.stop()},[run2,w,sweep,sh.duration]);let band=Math.max(sh.bandMin,w*sh.bandShare);/* @__PURE__ */
|
|
35
|
+
return jsx(View,{testID:testID,onLayout:run2?e=>setW(Math.round(e.nativeEvent.layout.width)):void 0,style:[{width:block2.width??"100%",height:block2.height??look.block.height,borderRadius:block2.radius??look.block.radius,borderCurve:"continuous",backgroundColor:fill,overflow:"hidden"},style],...named,children:run2&&w>0?/* @__PURE__ */jsx(Animated.View,{pointerEvents:"none",style:{position:"absolute",top:-6,bottom:-6,left:0,width:band,backgroundColor:sh.band,transform:[{translateX:sweep.interpolate({inputRange:[0,1],outputRange:[-band,w+band]})},{skewX:`${sh.skew}deg`}]}}):null})}function shapeStyle(t,shape,fill){let round=shape.radius==="circle",width=shape.width??(round?shape.height:void 0),radius=shapeRadius(t,shape,width);return{height:shape.height,...width===void 0?{alignSelf:"stretch"}:{width:width},borderRadius:radius,backgroundColor:fill}}function shapeRadius(t,shape,width){let r=shape.radius??"pill";return r==="none"?0:r==="circle"?(typeof width=="number"?Math.min(width,shape.height):shape.height)/2:t.radius[r]}function SummaryList({rows:given,total:total=false,trailingRows:trailingRows=[],loading:loading=false,loadingLabel:loadingLabel,variant:variant="standard",note:note,grouped:grouped=true,lineBreak:lineBreak,testID:testID,style:style}){let t=useTheme(),s=summarySpec(t);if(loading)/* @__PURE__ */
|
|
35
36
|
return jsx(View,{testID:testID,style:[{padding:s.paddingX,borderRadius:s.radius,backgroundColor:t.colors.surface},style],children:/* @__PURE__ */jsx(Skeleton,{lines:4,label:loadingLabel})});let rows=typeof total=="object"?[...given,{...total,key:total.key??"total"}]:given,large=total!==false;if(rows.length===0)return null;let read=row=>grouped?{accessible:true,accessibilityLabel:`${row.term}, ${row.value}`}:null,breaks=lineBreak===void 0?null:{lineBreak:lineBreak},noteRow=note?{...note,key:note.key??"note"}:void 0,all=[...rows,...trailingRows,...noteRow?[noteRow]:[]];if(variant!=="standard"&&variant!=="flush"){let su=t.metrics.variants.summary;/* @__PURE__ */
|
|
36
37
|
return jsx(View,{testID:testID,style:[rnBox(t,variant==="inset"?su.inset:su.box),style],children:all.map((row,i)=>{let kind=row===noteRow?"note":large&&i===rows.length-1?"total":"row",box=kind==="note"?su.renewRow:kind==="total"?su.totalRow:su.row,term=kind==="note"?su.renewTerm:kind==="total"?su.totalTerm:su.term,value=kind==="note"?su.renew:kind==="total"?su.total:su.value;/* @__PURE__ */
|
|
37
38
|
return jsxs(View,{testID:itemTestID(testID,row.key??i,row.testID),...read(row),style:[styles11.cardRow,{columnGap:box.gap[0]??0,minHeight:box.minHeight||void 0,marginTop:box.marginTop||void 0}],children:[
|
|
@@ -42,8 +43,8 @@ return jsxs(View,{testID:itemTestID(testID,row.key??i,row.testID),...read(row),s
|
|
|
42
43
|
/* @__PURE__ */jsx(Text,{...breaks,style:rnText(t,isTotal?s.totalTerm:s.term),children:row.term}),
|
|
43
44
|
/* @__PURE__ */jsx(Text,{...breaks,style:[rnText(t,isTotal?s.total:row.tone==="off"?s.off:s.value),styles11.value,s.tabular?styles11.tabular:null],children:row.value})]},row.key??`${i}`)})})}var styles11=StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"},cardRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},value:{marginLeft:"auto",textAlign:"right"},tabular:{fontVariant:["tabular-nums"]}});function BlockIcon({icon:icon,size:size,color:color,style:style}){let t=useTheme();return typeof icon=="function"?icon({size:size,color:color??t.colors.ink}):typeof icon!="string"?/* @__PURE__ */jsx(Glyph,{icon:icon,size:size,color:color,style:style}):/* @__PURE__ */jsx(Icon,{name:icon,size:size,color:color,style:style})}function stepTo(q,next){next>q.value&&q.onMore?q.onMore():next<q.value&&q.onFewer?q.onFewer():q.onChange?.(next)}function useShown(key){let[loaded,setLoaded]=useState(null);return{shown:key!==null&&loaded===key,onShown:()=>setLoaded(key)}}function FadeImage({onShown:onShown,onLoad:onLoad,style:style,...props}){let t=useTheme(),reduced=useRnReduced(t),fade=useRef(new Animated.Value(0)).current;/* @__PURE__ */
|
|
44
45
|
return jsx(Animated.Image,{...props,fadeDuration:0,onLoad:e=>{onLoad?.(e);let ms=t.motion.duration.fade;if(reduced||ms<=0){fade.setValue(1),onShown?.();return}Animated.timing(fade,{toValue:1,duration:ms,easing:Easing.out(Easing.cubic),useNativeDriver:Platform.OS!=="web"}).start(()=>onShown?.())},style:[style,{opacity:fade}]})}function BlockThumbnail({src:src,alt:alt,size:size="xs",icon:icon=UI_RN_ICON_BOX,iconSize:iconSize,tint:tint,iconColor:iconColor,onError:onError,testID:testID,style:style}){let t=useTheme(),p=t.metrics.thumbnail[size],[failed,setFailed]=useState(null),[aspect,setAspect]=useState(null),photo=src&&failed!==src?src:null,top=p.top;useEffect(()=>{if(!top||!photo)return;let live=true;return Image.getSize(photo,(w,h)=>{live&&w>0&&h>0&&setAspect(w/h)},()=>{}),()=>{live=false}},[top,photo]);let frame=photo?p.frame:p.empty,[pt=0,pr=0,pb=0,pl=0]=frame.padding,[ipt=0,ipr=0,ipb=0,ipl=0]=p.img.padding,ring=rnRing(t,frame),tall=p.top&&aspect!==null;/* @__PURE__ */
|
|
45
|
-
return jsxs(View,{testID:testID,style:[rnBox(t,frame),size==="md"||size==="lg"?{width:"100%",aspectRatio:1}:{width:frame.w,height:frame.h},{alignItems:"center",justifyContent:"center",overflow:"hidden"},!photo&&tint!==void 0?{backgroundColor:tint}:null,style],...photo?{}:alt?{accessible:true,accessibilityRole:"image",accessibilityLabel:alt}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:[photo?/* @__PURE__ */jsx(FadeImage,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:tall?"stretch":p.img.fit==="contain"?"contain":"cover",style:tall?{position:"absolute",top:pt,left:pl,width:frame.w-pl-pr,height:(frame.w-pl-pr)/aspect}:{position:"absolute",top:pt+ipt,right:pr+ipr,bottom:pb+ipb,left:pl+ipl}},photo):/* @__PURE__ */jsx(BlockIcon,{icon:icon,size:iconSize??p.icon.w,color:iconColor??colorOf(t,p.icon.color)}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});StyleSheet.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});StyleSheet.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});StyleSheet.create({base:{alignSelf:"flex-start"}});StyleSheet.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});StyleSheet.create({box:{flexDirection:"row"},line:{alignItems:"center"},area:{alignItems:"stretch"},input:{flex:1,minWidth:0,margin:0,borderWidth:0,backgroundColor:"transparent"},hidden:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0}});StyleSheet.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});StyleSheet.create({leadAuto:{flexShrink:0},words:{flex:1,minWidth:0},below:{alignSelf:"flex-start"},end:{flexDirection:"row",alignItems:"center",flexShrink:1,maxWidth:"45%",justifyContent:"flex-end"},flush:{marginTop:0}});StyleSheet.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"}});StyleSheet.create({fill:{flex:1},host:{position:"absolute",left:0,right:0,alignItems:"center"},cardHost:{position:"absolute"},card:{alignSelf:"stretch"},start:{textAlign:"left"},pill:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",alignSelf:"center",maxWidth:"100%"},center:{textAlign:"center"},shrink:{flexShrink:1}});StyleSheet.create({row:{flexDirection:"row",alignItems:"center"}});var CSS_EASE_OUT=[0,0,.58,1];function rnSource(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function keyOf2(image){return image===null?null:typeof image=="object"?image.uri:String(image)}function Thumb({m:m,image:image,first:first,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),icon=t.metrics.thumbnail.xs.icon,key=keyOf2(image),[failed,setFailed]=useState(null),source=key!==null&&failed!==key?rnSource(image):null,{shown:shown,onShown:onShown}=useShown(source?key:null),band=m.thumbRing,radius=m.thumb.radius[0]??0,blend=m.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null,inset=m.imgInset;/* @__PURE__ */
|
|
46
|
-
return jsx(View,{style:[{margin:-band,padding:band,borderRadius:radius+band,backgroundColor:partFill(t,m.bar.bg)||void 0},rnShadow(m.thumb.shadow),first?null:{marginLeft:-band-m.thumbOverlap}],children:/* @__PURE__ */jsxs(View,{testID:testID,style:[rnBox(t,{...m.thumb,shadow:{...m.thumb.shadow,x:0,y:0,blur:0}}),{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,width:m.thumb.w,height:m.thumb.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!shown&&fallback?.tint!==void 0?{backgroundColor:fallback.tint}:null],children:[shown?null:/* @__PURE__ */jsx(BlockIcon,{icon:fallback?.icon??UI_RN_ICON_BOX,size:fallback?.iconSize??icon.w,color:fallback?.iconColor??colorOf(t,icon.color)}),source&&key!==null?/* @__PURE__ */jsx(FadeImage,{source:source,onShown:onShown,onError:()=>{setFailed(key),image!==null&&onError?.(image)},resizeMode:m.imgFit,style:[{position:"absolute",top:inset,right:inset,bottom:inset,left:inset},blend]},key):null]})})}function CartBar(props){let{count:count,countLabel:countLabel,thumbs:thumbs,fallback:fallback,onImageError:onImageError,total:total,sub:sub,actionLabel:actionLabel,actionHiddenWord:actionHiddenWord,actionAccessibilityLabel:actionAccessibilityLabel,onPress:onPress,disabled:disabled=false,busy:busy=false,visible:visible=true,variant:variant="standard",loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style,onLayout:onLayout}=props,lastTotal=useRef(total);useEffect(()=>{lastTotal.current!==total&&(lastTotal.current=total,Platform.OS==="ios"&&total&&!loading&&AccessibilityInfo.announceForAccessibility?.([countLabel,total].filter(Boolean).join(", ")))},[total,countLabel,loading]);let t=useTheme(),reduced=useRnReduced(t),web=variant==="web",m=web?blockMetrics(t,cartBarWebBlockMetrics):blockMetrics(t,cartBarBlockMetrics),text=x=>rnText(t,textPartSpec(t,x)),native=Platform.OS!=="web",rise=useRef(new Animated.Value(1)).current,bump=useRef(new Animated.Value(1)).current,height=useRef(0),[pressed,setPressed]=useState(false),was=useRef({visible:visible,count:count});if(useEffect(()=>{let before=was.current;if(was.current={visible:visible,count:count},reduced)return;let bezier2=c=>Easing.bezier(c[0]??0,c[1]??0,c[2]??1,c[3]??1),out=bezier2(t.motion.easing.out);if(visible&&!before.visible)rise.setValue(0),Animated.timing(rise,{toValue:1,duration:m.motion.rise.duration,easing:out,useNativeDriver:native}).start();else if(visible&&typeof count=="number"&&typeof before.count=="number"&&count>before.count){let b=m.motion.bump,easing=b.curve==="out"?out:bezier2(CSS_EASE_OUT);bump.setValue(1),Animated.sequence([Animated.timing(bump,{toValue:b.scale,duration:b.duration*b.peakAt,easing:easing,useNativeDriver:native}),Animated.timing(bump,{toValue:1,duration:b.duration*(1-b.peakAt),easing:easing,useNativeDriver:native})]).start()}},[visible,count,reduced,rise,bump,m,t.motion.easing.out,native]),!visible)return null;let part2=n=>testID===void 0?void 0:`${testID}-${n}`,[gx=0,gy=0]=m.bar.gap,card=[rnBox(t,{...m.bar,shadow:m.lift}),{flexDirection:"row",alignItems:"center",columnGap:gx,rowGap:gy},web?{width:"100%",maxWidth:m.bar.w,alignSelf:"center"}:null];if(loading)/* @__PURE__ */
|
|
46
|
+
return jsxs(View,{testID:testID,style:[rnBox(t,frame),size==="md"||size==="lg"?{width:"100%",aspectRatio:1}:{width:frame.w,height:frame.h},{alignItems:"center",justifyContent:"center",overflow:"hidden"},!photo&&tint!==void 0?{backgroundColor:tint}:null,style],...photo?{}:alt?{accessible:true,accessibilityRole:"image",accessibilityLabel:alt}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:[photo?/* @__PURE__ */jsx(FadeImage,{source:{uri:photo},accessibilityLabel:alt,accessible:!!alt,onError:()=>{setFailed(photo),onError?.(photo)},resizeMode:tall?"stretch":p.img.fit==="contain"?"contain":"cover",style:tall?{position:"absolute",top:pt,left:pl,width:frame.w-pl-pr,height:(frame.w-pl-pr)/aspect}:{position:"absolute",top:pt+ipt,right:pr+ipr,bottom:pb+ipb,left:pl+ipl}},photo):/* @__PURE__ */jsx(BlockIcon,{icon:icon,size:iconSize??p.icon.w,color:iconColor??colorOf(t,p.icon.color)}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});StyleSheet.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});StyleSheet.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});StyleSheet.create({base:{alignSelf:"flex-start"}});StyleSheet.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});StyleSheet.create({box:{flexDirection:"row"},line:{alignItems:"center"},area:{alignItems:"stretch"},input:{flex:1,minWidth:0,margin:0,borderWidth:0,backgroundColor:"transparent"},hidden:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0}});StyleSheet.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});StyleSheet.create({leadAuto:{flexShrink:0},words:{flex:1,minWidth:0},below:{alignSelf:"flex-start"},end:{flexDirection:"row",alignItems:"center",flexShrink:1,maxWidth:"45%",justifyContent:"flex-end"},flush:{marginTop:0}});StyleSheet.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"}});StyleSheet.create({fill:{flex:1},host:{position:"absolute",left:0,right:0,alignItems:"center"},cardHost:{position:"absolute"},card:{alignSelf:"stretch"},start:{textAlign:"left"},pill:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",alignSelf:"center",maxWidth:"100%"},center:{textAlign:"center"},shrink:{flexShrink:1},topHost:{position:"absolute",alignItems:"center",zIndex:1e3},top:{flexDirection:"row",alignItems:"center"},copy:{flex:1}});StyleSheet.create({row:{flexDirection:"row",alignItems:"center"}});var CSS_EASE_OUT=[0,0,.58,1];function rnSource(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function keyOf2(image){return image===null?null:typeof image=="object"?image.uri:String(image)}function Thumb({m:m,image:image,first:first,fallback:fallback,onError:onError,testID:testID}){let t=useTheme(),icon=t.metrics.thumbnail.xs.icon,key=keyOf2(image),[failed,setFailed]=useState(null),source=key!==null&&failed!==key?rnSource(image):null,{shown:shown,onShown:onShown}=useShown(source?key:null),band=m.thumbRing,radius=m.thumb.radius[0]??0,blend=m.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null,inset=m.imgInset;/* @__PURE__ */
|
|
47
|
+
return jsx(View,{style:[{margin:-band,padding:band,borderRadius:radius+band,backgroundColor:partFill(t,m.bar.bg)||void 0},rnShadow(m.thumb.shadow),first?null:{marginLeft:-band-m.thumbOverlap}],children:/* @__PURE__ */jsxs(View,{testID:testID,style:[rnBox(t,{...m.thumb,shadow:{...m.thumb.shadow,x:0,y:0,blur:0}}),{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,width:m.thumb.w,height:m.thumb.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!shown&&fallback?.tint!==void 0?{backgroundColor:fallback.tint}:null],children:[shown?null:/* @__PURE__ */jsx(BlockIcon,{icon:fallback?.icon??UI_RN_ICON_BOX,size:fallback?.iconSize??icon.w,color:fallback?.iconColor??colorOf(t,icon.color)}),source&&key!==null?/* @__PURE__ */jsx(FadeImage,{source:source,onShown:onShown,onError:()=>{setFailed(key),image!==null&&onError?.(image)},resizeMode:m.imgFit,style:[{position:"absolute",top:inset,right:inset,bottom:inset,left:inset},blend]},key):null]})})}var NO_SHADOW={color:"transparent",x:0,y:0,blur:0,spread:0};function checkoutMetrics(t){let m=blockMetrics(t,cartBarBlockMetrics),k2=checkoutCartBarLook;return{...m,bar:{...m.bar,shadow:NO_SHADOW},lift:NO_SHADOW,thumbRing:0,imgInset:k2.imgInset,imgBlend:"normal",total:{...m.total,lineHeight:k2.totalLineHeight},go:{...m.go,h:k2.go.h,minHeight:k2.go.h,padding:[0,k2.go.paddingX,0,k2.go.paddingX],bg:k2.go.bg,edge:{...m.go.edge,width:0},color:k2.go.color},goText:{...m.goText,color:k2.go.color}}}function CartBar(props){let{count:count,countLabel:countLabel,thumbs:thumbs,fallback:fallback,onImageError:onImageError,total:total,sub:sub,actionLabel:actionLabel,actionHiddenWord:actionHiddenWord,actionAccessibilityLabel:actionAccessibilityLabel,onPress:onPress,disabled:disabled=false,busy:busy=false,visible:visible=true,variant:variant="standard",loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style,onLayout:onLayout}=props,lastTotal=useRef(total);useEffect(()=>{lastTotal.current!==total&&(lastTotal.current=total,Platform.OS==="ios"&&total&&!loading&&AccessibilityInfo.announceForAccessibility?.([countLabel,total].filter(Boolean).join(", ")))},[total,countLabel,loading]);let t=useTheme(),reduced=useRnReduced(t),web=variant==="web",checkout=variant==="checkout",m=web?blockMetrics(t,cartBarWebBlockMetrics):checkout?checkoutMetrics(t):blockMetrics(t,cartBarBlockMetrics),text=x=>rnText(t,textPartSpec(t,x)),native=Platform.OS!=="web",rise=useRef(new Animated.Value(1)).current,bump=useRef(new Animated.Value(1)).current,height=useRef(0),[pressed,setPressed]=useState(false),was=useRef({visible:visible,count:count});if(useEffect(()=>{let before=was.current;if(was.current={visible:visible,count:count},reduced)return;let bezier2=c=>Easing.bezier(c[0]??0,c[1]??0,c[2]??1,c[3]??1),out=bezier2(t.motion.easing.out);if(visible&&!before.visible)rise.setValue(0),Animated.timing(rise,{toValue:1,duration:m.motion.rise.duration,easing:out,useNativeDriver:native}).start();else if(visible&&typeof count=="number"&&typeof before.count=="number"&&count>before.count){let b=m.motion.bump,easing=b.curve==="out"?out:bezier2(CSS_EASE_OUT);bump.setValue(1),Animated.sequence([Animated.timing(bump,{toValue:b.scale,duration:b.duration*b.peakAt,easing:easing,useNativeDriver:native}),Animated.timing(bump,{toValue:1,duration:b.duration*(1-b.peakAt),easing:easing,useNativeDriver:native})]).start()}},[visible,count,reduced,rise,bump,m,t.motion.easing.out,native]),!visible)return null;let part2=n=>testID===void 0?void 0:`${testID}-${n}`,[gx=0,gy=0]=m.bar.gap,card=[rnBox(t,{...m.bar,shadow:m.lift}),{flexDirection:"row",alignItems:"center",columnGap:gx,rowGap:gy},web?{width:"100%",maxWidth:m.bar.w,alignSelf:"center"}:null,checkout?lookDrop(checkoutCartBarLook.drop):null];if(loading)/* @__PURE__ */
|
|
47
48
|
return jsx(View,{testID:testID,onLayout:onLayout,style:[card,style],children:/* @__PURE__ */jsx(View,{style:{flex:1},children:/* @__PURE__ */jsx(Skeleton,{lines:2,label:loadingLabel})})});let all=thumbs??[],shownThumbs=all.slice(-3),firstIndex=all.length-shownThumbs.length,waits=disabled||busy,riseFrom=h=>h+m.motion.rise.from,motion={transform:[{translateY:rise.interpolate({inputRange:[0,1],outputRange:[riseFrom(height.current||m.bar.h),0]})}],...m.motion.rise.fade?{opacity:rise}:{}},goRing=rnRing(t,m.go),said=[countLabel,total,sub].filter(x=>!!x);/* @__PURE__ */
|
|
48
49
|
return jsxs(Animated.View,{testID:testID,onLayout:e=>{height.current=e.nativeEvent.layout.height,onLayout?.(e)},style:[card,motion,style],children:[shownThumbs.length>0?/* @__PURE__ */jsxs(Animated.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[rnBox(t,m.thumbs),{flexDirection:"row",alignItems:"center",height:m.thumbs.h},{transform:[{scale:bump}]}],children:[shownThumbs.map((image,i)=>/* @__PURE__ */jsx(Thumb,{m:m,image:image,first:i===0,fallback:fallback,onError:onImageError,testID:part2(`thumb-${firstIndex+i}`)},firstIndex+i)),
|
|
49
50
|
/* @__PURE__ */jsx(View,{testID:part2("count"),style:[rnBox(t,m.count),{position:"absolute",top:m.countAt.top,right:m.countAt.right,minWidth:m.count.w,height:m.count.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */jsx(Text,{style:text(m.countText),children:String(count)})})]}):null,
|
|
@@ -161,7 +162,7 @@ return jsx(View,{testID:testID,style:card,children:/* @__PURE__ */jsx(Skeleton,{
|
|
|
161
162
|
/* @__PURE__ */jsx(View,{style:[rnBox(t,kn),{width:kn.w,height:kn.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */jsx(Text,{style:text(kit.nText),children:number})}),
|
|
162
163
|
/* @__PURE__ */jsx(View,{style:[rnBox(t,kit.thumb),{width:kit.thumb.w,height:kit.thumb.h,alignItems:"center",justifyContent:"center"}],children:thumbIcon(kit.thumbIcon)})]}):/* @__PURE__ */jsxs(View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[rnBox(t,web?w.img:kit.img),{width:"100%",aspectRatio:aspect,overflow:"hidden"}],children:[source?/* @__PURE__ */jsx(FadeImage,{testID:part2("image"),source:source,resizeMode:"cover",onError:failOn,style:{position:"absolute",top:0,right:0,bottom:0,left:0}},typeof image=="string"?image:JSON.stringify(image)):null,n]}),body=/* @__PURE__ */jsxs(Fragment,{children:[top,
|
|
163
164
|
/* @__PURE__ */jsx(View,{style:web?null:{marginTop:kit.title.marginTop,marginHorizontal:photo?ph.titleInset:0},children:onPress&&!cover?/* @__PURE__ */jsx(Pressable,{onPress:onPress,accessibilityRole:"button",accessibilityLabel:title,children:titleText}):titleText}),line&&!web&&!photo?/* @__PURE__ */jsx(Text,{style:[text(kit.text),{marginTop:kit.text.marginTop}],children:line}):null,footEl]});return cover&&footPress?/* @__PURE__ */jsxs(View,{testID:testID,style:[...card,down&&!reduced?{transform:[{scale:press}]}:null],children:[body,
|
|
164
|
-
/* @__PURE__ */jsx(Pressable,{testID:part2("cover"),onPress:onPress,onPressIn:()=>setDown(true),onPressOut:()=>setDown(false),accessibilityRole:"button",accessibilityLabel:accessibilityLabel??title,style:{position:"absolute",top:0,right:0,bottom:0,left:0}})]}):cover?/* @__PURE__ */jsx(Pressable,{testID:testID,onPress:onPress,accessibilityRole:"button",accessibilityLabel:accessibilityLabel??title,style:({pressed:pressed})=>[...card,pressed&&!reduced&&press!==1?{transform:[{scale:press}]}:null],children:body}):/* @__PURE__ */jsx(View,{testID:testID,style:card,children:body})}function rnSource4(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function keyOf3(image){return image==null?null:typeof image=="object"?image.uri:String(image)}var linesOf=text=>text===void 0?[]:typeof text=="string"?[text]:text;function WhySheet(props){let{kind:kind,title:title,sub:sub,image:image,imageKind:imageKind="packshot",fallback:fallback,onImageError:onImageError,onClose:onClose,closeLabel:closeLabel,heading:heading,rows:rows=[],sections:sections=[],tone:tone="calm",action:action,link:link,score:score,variant:variant="standard",loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props;warnUnnamedClose("WhySheet",onClose,closeLabel);let t=useTheme(),reduced=useRnReduced(t),b={why:blockMetrics(t,whyBlockMetrics),whyWeb:blockMetrics(t,whyWebBlockMetrics),whyPlan:blockMetrics(t,whyPlanBlockMetrics)},web=variant==="web",plan=variant==="plan",m=web?b.whyWeb:b.why,pl=b.whyPlan,[down,setDown]=useState(false),key=keyOf3(image),[failed,setFailed]=useState(null),source=key!==null&&failed!==key?rnSource4(image):null,{shown:shown,onShown:onShown}=useShown(source?key:null),text=p=>rnText(t,textPartSpec(t,p)),part2=n=>testID===void 0?void 0:`${testID}-${n}`;if(loading){let ring=plan?rnRing(t,pl.card):null;/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */jsx(Pressable,{testID:part2("cover"),onPress:onPress,onPressIn:()=>setDown(true),onPressOut:()=>setDown(false),accessibilityRole:"button",accessibilityLabel:accessibilityLabel??title,style:{position:"absolute",top:0,right:0,bottom:0,left:0}})]}):cover?/* @__PURE__ */jsx(Pressable,{testID:testID,onPress:onPress,accessibilityRole:"button",accessibilityLabel:accessibilityLabel??title,style:({pressed:pressed})=>[...card,pressed&&!reduced&&press!==1?{transform:[{scale:press}]}:null],children:body}):/* @__PURE__ */jsx(View,{testID:testID,style:card,children:body})}function rnSource4(image){return typeof image=="number"?image:typeof image=="string"?image?{uri:image}:null:image&&typeof image=="object"&&image.uri?image:null}function keyOf3(image){return image==null?null:typeof image=="object"?image.uri:String(image)}var linesOf=text=>text===void 0?[]:typeof text=="string"?[text]:text;function WhySheet(props){let{kind:kind,title:title,sub:sub,image:image,imageKind:imageKind="packshot",fallback:fallback,onImageError:onImageError,onClose:onClose,closeLabel:closeLabel,heading:heading,rows:rows=[],sections:sections=[],tone:tone="calm",action:action,link:link,score:score,variant:variant="standard",loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style,part:half="whole",actions:actions}=props;warnUnnamedClose("WhySheet",onClose,closeLabel);let t=useTheme(),reduced=useRnReduced(t),b={why:blockMetrics(t,whyBlockMetrics),whyWeb:blockMetrics(t,whyWebBlockMetrics),whyPlan:blockMetrics(t,whyPlanBlockMetrics)},web=variant==="web",plan=variant==="plan",m=web?b.whyWeb:b.why,pl=b.whyPlan,[down,setDown]=useState(false),key=keyOf3(image),[failed,setFailed]=useState(null),source=key!==null&&failed!==key?rnSource4(image):null,{shown:shown,onShown:onShown}=useShown(source?key:null),text=p=>rnText(t,textPartSpec(t,p)),part2=n=>testID===void 0?void 0:`${testID}-${n}`;if(loading){let ring=plan?rnRing(t,pl.card):null;/* @__PURE__ */
|
|
165
166
|
return jsxs(View,{testID:testID,style:[plan?rnBox(t,pl.card):{paddingTop:m.head.padding[0],paddingHorizontal:m.body.padding[1],paddingBottom:m.body.padding[2]},style],children:[
|
|
166
167
|
/* @__PURE__ */jsx(Skeleton,{lines:4,label:loadingLabel}),ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}if(plan){let ring=rnRing(t,pl.card),scored=score!==void 0&&rows.length>=2;/* @__PURE__ */
|
|
167
168
|
return jsxs(View,{testID:testID,style:[rnBox(t,pl.card),style],children:[heading?/* @__PURE__ */jsx(Text,{style:text(pl.heading),children:heading}):null,rows.map(row=>{let chip=pl.chips[row.kind??"record"];/* @__PURE__ */
|
|
@@ -170,18 +171,16 @@ return jsxs(View,{style:{flexDirection:"row",alignItems:"flex-start",columnGap:p
|
|
|
170
171
|
/* @__PURE__ */jsxs(View,{style:{flex:1,minWidth:0},children:[
|
|
171
172
|
/* @__PURE__ */jsx(Text,{style:text(pl.rowTitle),children:row.text}),row.detail?/* @__PURE__ */jsx(Text,{style:[text(pl.rowBody),{marginTop:pl.rowBody.marginTop}],children:row.detail}):null]})]},row.key)}),scored?/* @__PURE__ */jsxs(View,{testID:part2("score"),accessible:true,accessibilityLabel:score.accessibilityLabel??`${score.text} ${score.value}`,style:[rnBox(t,pl.score),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
|
|
172
173
|
/* @__PURE__ */jsx(Text,{style:[text(pl.scoreText),{flexShrink:1}],children:score.text}),
|
|
173
|
-
/* @__PURE__ */jsx(Text,{style:text(pl.scoreValue),children:score.value})]}):null,ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}let photo=imageKind==="photo",inset=m.packInset*m.pic.w,blend=photo?null:{mixBlendMode:"multiply"},failOn=()=>{image==null||key===null||(setFailed(key),onImageError?.(image))},btnRing=rnRing(t,m.btn)
|
|
174
|
-
return jsxs(View,{testID:testID,style:style,children:[
|
|
175
|
-
/* @__PURE__ */jsxs(View,{style:[rnBox(t,m.head),{flexDirection:"row",alignItems:"flex-start"}],children:[
|
|
174
|
+
/* @__PURE__ */jsx(Text,{style:text(pl.scoreValue),children:score.value})]}):null,ring?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:ring}):null]})}let photo=imageKind==="photo",inset=m.packInset*m.pic.w,blend=photo?null:{mixBlendMode:"multiply"},failOn=()=>{image==null||key===null||(setFailed(key),onImageError?.(image))},btnRing=rnRing(t,m.btn),headOnly=half==="head",bodyOnly=half==="body",headBox=rnBox(t,m.head),headStyle=headOnly?{columnGap:headBox.columnGap,rowGap:headBox.rowGap}:headBox,head=/* @__PURE__ */jsxs(View,{testID:headOnly?testID:void 0,style:[headStyle,{flexDirection:"row",alignItems:"flex-start"},headOnly?style:null],children:[
|
|
176
175
|
/* @__PURE__ */jsxs(View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[rnBox(t,m.pic),photo?{backgroundColor:colorOf(t,m.photoBg)}:null,!shown&&fallback?.tint!==void 0?{backgroundColor:fallback.tint}:null,{width:m.pic.w,height:m.pic.h,overflow:"hidden",alignItems:"center",justifyContent:"center"}],children:[shown?null:/* @__PURE__ */jsx(BlockIcon,{icon:fallback?.icon??UI_RN_ICON_BOX,size:fallback?.iconSize??t.metrics.thumbnail.xs.icon.w,color:fallback?.iconColor??colorOf(t,t.metrics.thumbnail.xs.icon.color)}),source?/* @__PURE__ */jsx(FadeImage,{testID:part2("image"),source:source,resizeMode:photo?"cover":"contain",onLoad:onShown,onError:failOn,style:[{position:"absolute",top:photo?0:inset,right:photo?0:inset,bottom:photo?0:inset,left:photo?0:inset},blend]},key??void 0):null]}),
|
|
177
|
-
/* @__PURE__ */jsxs(View,{style:{flex:1,minWidth:0},children:[kind?/* @__PURE__ */jsx(Text,{style:text(m.kind),children:kind}):null,title?/* @__PURE__ */jsx(Text,{accessibilityRole:"header",style:[text(m.title),{marginTop:m.title.marginTop}],children:title}):null,sub?/* @__PURE__ */jsx(Text,{style:[text(m.sub),{marginTop:m.sub.marginTop}],children:sub}):null]}),onClose?/* @__PURE__ */jsx(Pressable,{testID:part2("close"),onPress:onClose,hitSlop:slopFor(m.close.w),accessibilityRole:"button",accessibilityLabel:closeLabel,style:{width:m.close.w,height:m.close.h,borderRadius:m.close.w/2,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */jsx(Glyph,{icon:UI_RN_ICON_X,size:m.closeIcon.w,color:colorOf(t,m.close.color)})}):/* @__PURE__ */jsx(View,{style:{width:m.close.w}})]}),
|
|
178
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */jsxs(View,{style:{flex:1,minWidth:0},children:[kind?/* @__PURE__ */jsx(Text,{style:text(m.kind),children:kind}):null,title?/* @__PURE__ */jsx(Text,{accessibilityRole:"header",style:[text(m.title),{marginTop:m.title.marginTop}],children:title}):null,sub?/* @__PURE__ */jsx(Text,{style:[text(m.sub),{marginTop:m.sub.marginTop}],children:sub}):null]}),onClose?/* @__PURE__ */jsx(Pressable,{testID:part2("close"),onPress:onClose,hitSlop:slopFor(m.close.w),accessibilityRole:"button",accessibilityLabel:closeLabel,style:{width:m.close.w,height:m.close.h,borderRadius:m.close.w/2,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */jsx(Glyph,{icon:UI_RN_ICON_X,size:m.closeIcon.w,color:colorOf(t,m.close.color)})}):headOnly?null:/* @__PURE__ */jsx(View,{style:{width:m.close.w}})]}),linkPress=l=>l.onPress?e=>l.onPress?.({currentTarget:e.currentTarget}):void 0,button=(a,id)=>/* @__PURE__ */jsxs(Pressable,{testID:a.testID??id,onPress:a.onPress,onPressIn:()=>setDown(true),onPressOut:()=>setDown(false),accessibilityRole:"button",accessibilityLabel:a.accessibilityLabel??a.label,accessibilityState:ariaState(void 0,a.pressed,void 0),style:[rnBox(t,m.btn),{flexDirection:"row",alignItems:"center",justifyContent:"center",minHeight:m.btn.h},down&&!reduced?{transform:[{scale:m.pressScale}]}:null],children:[
|
|
177
|
+
/* @__PURE__ */jsx(Text,{style:[text(m.btnText),{textAlign:"center"}],children:a.label}),btnRing?/* @__PURE__ */jsx(View,{pointerEvents:"none",style:btnRing}):null]}),more=(l,id,key2)=>/* @__PURE__ */jsx(Pressable,{testID:l.testID??id,onPress:linkPress(l),accessibilityRole:"link",accessibilityLabel:l.accessibilityLabel??l.label,style:[rnBox(t,m.more),{alignSelf:"center",flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */jsx(Text,{style:text(m.moreText),children:l.label})},key2),listed=actions!==void 0&&actions.length>0,bodyParts=/* @__PURE__ */jsxs(Fragment,{children:[rows.length>0?/* @__PURE__ */jsxs(View,{style:[rnBox(t,m.box),web?null:{backgroundColor:colorOf(t,b.why.tones[tone])}],children:[heading?/* @__PURE__ */jsx(Text,{accessibilityRole:"header",style:text(m.heading),children:heading}):null,
|
|
179
178
|
/* @__PURE__ */jsx(View,{style:{rowGap:m.rows.gap[1],marginTop:m.rows.marginTop},children:rows.map(row=>/* @__PURE__ */jsxs(View,{children:[row.label?/* @__PURE__ */jsx(Text,{style:text(m.rowHead),children:row.label}):null,
|
|
180
179
|
/* @__PURE__ */jsx(Text,{style:text(m.row),children:row.text})]},row.key))})]}):null,sections.map((sec,i)=>/* @__PURE__ */jsxs(View,{children:[
|
|
181
180
|
/* @__PURE__ */jsx(Text,{accessibilityRole:"header",style:text(m.secHeading),children:sec.heading}),sec.bullets&&sec.bullets.length>0?/* @__PURE__ */jsx(View,{style:{rowGap:m.how.gap[1],marginTop:m.how.marginTop},children:sec.bullets.map((line,j)=>/* @__PURE__ */jsxs(View,{style:{flexDirection:"row",columnGap:m.bullet.gap[0]},children:[
|
|
182
181
|
/* @__PURE__ */jsx(View,{style:{width:m.bulletColumn},children:/* @__PURE__ */jsx(View,{style:{width:m.dot.size,height:m.dot.size,marginTop:m.dot.top,borderRadius:m.dot.size/2,backgroundColor:colorOf(t,m.dot.color)}})}),
|
|
183
|
-
/* @__PURE__ */jsx(Text,{style:[text(m.bulletText),{flex:1,minWidth:0}],children:line})]},`${j}-${line}`))}):null,linesOf(sec.text).map((line,j)=>/* @__PURE__ */jsx(Text,{style:[text(m.para),{marginTop:m.para.marginTop}],children:line},`${j}-${line}`))]},sec.key??`${i}-${sec.heading}`)),
|
|
184
|
-
/* @__PURE__ */jsx(
|
|
182
|
+
/* @__PURE__ */jsx(Text,{style:[text(m.bulletText),{flex:1,minWidth:0}],children:line})]},`${j}-${line}`))}):null,linesOf(sec.text).map((line,j)=>/* @__PURE__ */jsx(Text,{style:[text(m.para),{marginTop:m.para.marginTop}],children:line},`${j}-${line}`))]},sec.key??`${i}-${sec.heading}`)),listed?/* @__PURE__ */jsx(View,{style:{rowGap:m.acts.gap[1]},children:actions.map((a,i)=>i===0?/* @__PURE__ */jsx(Fragment$1,{children:button(a,part2("action"))},`${i}-${a.label}`):more({label:a.label,testID:a.testID,accessibilityLabel:a.accessibilityLabel,onPress:()=>a.onPress?.()},part2(`more-${i}`),`${i}-${a.label}`))}):action||link?/* @__PURE__ */jsxs(View,{style:{rowGap:m.acts.gap[1]},children:[action?button(action,part2("action")):null,link?more({label:link.label,testID:link.testID,onPress:link.onPress},part2("link")):null]}):null]});return headOnly?head:bodyOnly?bodyParts:/* @__PURE__ */jsxs(View,{testID:testID,style:style,children:[head,
|
|
183
|
+
/* @__PURE__ */jsx(View,{style:rnBox(t,m.body),children:bodyParts})]})}function ScoreLights(props){let{values:values,state:state,heading:heading,since:since,pill:pill,vizLabel:vizLabel,source:source,next:next,loading:loading=false,loadingLabel:loadingLabel,testID:testID,style:style}=props,t=useTheme(),m=blockMetrics(t,lightsBlockMetrics),[width,setWidth]=useState(0),text=p2=>rnText(t,textPartSpec(t,p2)),part2=n=>testID===void 0?void 0:`${testID}-${n}`;if(loading)/* @__PURE__ */
|
|
185
184
|
return jsx(View,{testID:testID,style:[{marginTop:m.card.marginTop},style],children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})});let p=m.pills[state],h=m.viz.h,columns=scoreLightsLayout(values,width,h,m,I18nManager.isRTL),onLayout=e=>setWidth(Math.round(e.nativeEvent.layout.width)),actRing=rnRing(t,m.act);/* @__PURE__ */
|
|
186
185
|
return jsxs(View,{testID:testID,style:[{marginTop:m.card.marginTop},style],children:[
|
|
187
186
|
/* @__PURE__ */jsxs(View,{style:[rnBox(t,m.head),{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:m.head.marginBottom}],children:[
|