@everfur/sdk 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Chat.d-B4GybUU4.d.ts → Chat.d-BIr_4AJt.d.ts} +1 -1
- package/dist/{Chat.d-DPM2ncxi.d.cts → Chat.d-BhevtXn9.d.cts} +1 -1
- package/dist/{DepthViews.d-BGspxovy.d.cts → DepthViews.d-C8KdfzwR.d.cts} +1 -1
- package/dist/{DepthViews.d-BaLh7Lsi.d.cts → DepthViews.d-DWQ-J208.d.cts} +1 -1
- package/dist/{DepthViews.d-BIHVrf9r.d.ts → DepthViews.d-DYVUq4Xk.d.ts} +1 -1
- package/dist/{DepthViews.d-CEVk9poG.d.ts → DepthViews.d-oKr9R0Ql.d.ts} +1 -1
- package/dist/{IntakeMedia.d-CwSkSLNM.d.ts → IntakeMedia.d-B-ZZK6vd.d.ts} +1 -1
- package/dist/{IntakeMedia.d-LRXO38_z.d.cts → IntakeMedia.d-CuVkzIsO.d.cts} +1 -1
- package/dist/{IntakeMedia.d-DmaeGU6T.d.cts → IntakeMedia.d-CyF6NPHx.d.cts} +1 -1
- package/dist/{IntakeMedia.d-Dyb9R8b0.d.ts → IntakeMedia.d-vU8g9OM5.d.ts} +1 -1
- package/dist/{RecordsPage.d-D10RIgdc.d.ts → RecordsPage.d-DU8Nswzh.d.ts} +1 -1
- package/dist/{RecordsPage.d-DbhYNSbq.d.cts → RecordsPage.d-DzPhqMHW.d.cts} +1 -1
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/{attachments.d-CF4lLuGK.d.cts → attachments.d-0nOPDIng.d.cts} +1 -1
- package/dist/{attachments.d-BlukNfIf.d.ts → attachments.d-BlyI-RCY.d.ts} +1 -1
- package/dist/{bookingCopy.d-Bn8bdo89.d.ts → bookingCopy.d-ClL8OxBS.d.ts} +3 -3
- package/dist/{bookingCopy.d-Dg7bPM-U.d.cts → bookingCopy.d-DUVqhF5f.d.cts} +3 -3
- package/dist/{branding.d-XrZYClN4.d.ts → branding.d-D0LV3aFE.d.ts} +1 -1
- package/dist/{branding.d-CqDLKj1U.d.cts → branding.d-DzSPLZKl.d.cts} +1 -1
- package/dist/{casesRepository.d-CVuKTkJo.d.cts → casesRepository.d-DnanKXJ1.d.cts} +1 -1
- package/dist/{casesRepository.d-Dn1fK1b2.d.ts → casesRepository.d-_4QucKVC.d.ts} +1 -1
- package/dist/chat/index.cjs +239 -238
- package/dist/chat/index.d.cts +11 -11
- package/dist/chat/index.d.ts +11 -11
- package/dist/chat/index.js +241 -240
- package/dist/chat/lite/index.cjs +239 -238
- package/dist/chat/lite/index.d.cts +11 -11
- package/dist/chat/lite/index.d.ts +11 -11
- package/dist/chat/lite/index.js +239 -238
- package/dist/chat-cards/index.cjs +2 -2
- package/dist/chat-cards/index.js +9 -9
- package/dist/{chatHandoffToken.d-zdp23Ukr.d.ts → chatHandoffToken.d-BoZGGbIB.d.ts} +5 -5
- package/dist/{chatHandoffToken.d-Cap2z62P.d.cts → chatHandoffToken.d-DhhGdLNH.d.cts} +5 -5
- package/dist/{checkin.d-CuIUahcd.d.cts → checkin.d-DB-HlK7r.d.cts} +9 -4
- package/dist/{checkin.d-BoZXWjxX.d.ts → checkin.d-DogrR06X.d.ts} +9 -4
- package/dist/{chunk-LMIBOI3I.js → chunk-6E3J6IVM.js} +13 -13
- package/dist/{chunk-6AIEUA4V.js → chunk-J5ZUBY3S.js} +1 -1
- package/dist/{chunk-BN7OAFBS.js → chunk-LPHBCDJP.js} +21 -21
- package/dist/{chunk-IXHLESYC.js → chunk-ULQDOC75.js} +1 -1
- package/dist/client/index.cjs +28 -27
- package/dist/client/index.d.cts +13 -13
- package/dist/client/index.d.ts +13 -13
- package/dist/client/index.js +25 -24
- package/dist/{clinicBatch.d-C0xx5L4j.d.cts → clinicBatch.d-BvPF6vXS.d.cts} +2 -2
- package/dist/{clinicBatch.d-DNi4UURs.d.ts → clinicBatch.d-CF0GIvpx.d.ts} +2 -2
- package/dist/{config.d-B7Z-KTGq.d.ts → config.d-Bc41Ax6M.d.ts} +5 -1
- package/dist/{config.d-ClAI2RZ6.d.cts → config.d-Bn6GEGfl.d.cts} +5 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/{context.d-D7zX6Q0J.d.ts → context.d-0QfLaI3W.d.ts} +5 -5
- package/dist/{context.d-guaLkx5t.d.cts → context.d-CyQpedoU.d.cts} +5 -5
- package/dist/{copy.d--F5A9cXK.d.cts → copy.d-B55PpLxr.d.cts} +2 -2
- package/dist/{copy.d-DmxuFJFe.d.ts → copy.d-B8wIE6cH.d.ts} +2 -2
- package/dist/core/index.cjs +32 -31
- package/dist/core/index.d.cts +22 -16
- package/dist/core/index.d.ts +22 -16
- package/dist/core/index.js +37 -36
- package/dist/{depth.d-CgzYE6_n.d.ts → depth.d-CrtZXnLy.d.ts} +2 -2
- package/dist/{depth.d-DLaP0o8Y.d.cts → depth.d-Cxz6VisZ.d.cts} +2 -2
- package/dist/{entitlementRepository.d-CkUTlVAb.d.ts → entitlementRepository.d-BaZTIe1B.d.ts} +3 -3
- package/dist/{entitlementRepository.d-DVTp-BB9.d.cts → entitlementRepository.d-YeNG2TKI.d.cts} +3 -3
- package/dist/{focus.d-u-HYvim0.d.ts → focus.d-520VEHKB.d.ts} +1 -1
- package/dist/{focus.d-CLTjm6In.d.cts → focus.d-DoempN1I.d.cts} +1 -1
- package/dist/health-plan/index.cjs +236 -235
- package/dist/health-plan/index.d.cts +15 -15
- package/dist/health-plan/index.d.ts +15 -15
- package/dist/health-plan/index.js +236 -235
- package/dist/{healthPlanRepository.d-CwRXeoM7.d.ts → healthPlanRepository.d-BHu9LO0r.d.ts} +2 -2
- package/dist/{healthPlanRepository.d-B22kjrYa.d.cts → healthPlanRepository.d-tUR1f_5s.d.cts} +2 -2
- package/dist/{idempotency.d-DrxKLPPe.d.cts → idempotency.d-CcFLvzYW.d.cts} +1 -1
- package/dist/{idempotency.d-CbB07p64.d.ts → idempotency.d-CvqKG3Uq.d.ts} +1 -1
- package/dist/{identity.d-D4VtpqRr.d.ts → identity.d-Bex_XJZx.d.ts} +1 -1
- package/dist/{identity.d-DDpXOtas.d.cts → identity.d-Dm0Buvn8.d.cts} +1 -1
- package/dist/{inbox.d-B2JXK0uI.d.ts → inbox.d-9ajb0oiJ.d.ts} +1 -1
- package/dist/{inbox.d-CwA1ogzV.d.cts → inbox.d-CGCYOZIq.d.cts} +1 -1
- package/dist/index.cjs +259 -258
- package/dist/index.d.cts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.js +258 -257
- package/dist/{introEvents.d-DW3gLljE.d.ts → introEvents.d-CuVaufTy.d.ts} +1 -1
- package/dist/{introEvents.d-B7acmGwf.d.cts → introEvents.d-DU6feqx4.d.cts} +1 -1
- package/dist/{layout.d-C8y_ki1V.d.ts → layout.d-BQ5IVS-m.d.ts} +1 -1
- package/dist/{layout.d-DfaFM_lp.d.cts → layout.d-CSPr33BP.d.cts} +1 -1
- package/dist/notifications/inbox/index.d.cts +6 -6
- package/dist/notifications/inbox/index.d.ts +6 -6
- package/dist/notifications/index.d.cts +7 -7
- package/dist/notifications/index.d.ts +7 -7
- package/dist/{optInView.d-Cps7aLQN.d.ts → optInView.d-DpGXnpGw.d.ts} +21 -3
- package/dist/{optInView.d-ChJyJMBA.d.cts → optInView.d-dLjrI3co.d.cts} +21 -3
- package/dist/{pets.d-BpLObpfM.d.ts → pets.d-CHdSIoBf.d.ts} +1 -1
- package/dist/{pets.d-DXhzTNuI.d.cts → pets.d-jnhrJhqm.d.cts} +1 -1
- package/dist/{petsRepository.d-ai_tZ3lu.d.cts → petsRepository.d-BeKRiNao.d.cts} +1 -1
- package/dist/{petsRepository.d-_QfM7F6T.d.ts → petsRepository.d-BjwB1vku.d.ts} +1 -1
- package/dist/{presentation.d-BkIvMtIl.d.cts → presentation.d-Br3TnwA6.d.cts} +17 -1
- package/dist/{presentation.d-BkIvMtIl.d.ts → presentation.d-Br3TnwA6.d.ts} +17 -1
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/index.cjs +237 -228
- package/dist/records/index.d.cts +39 -12
- package/dist/records/index.d.ts +39 -12
- package/dist/records/index.js +155 -146
- package/dist/{requestFunnel.d-DKBPTpsy.d.ts → requestFunnel.d-C_NMgz9R.d.ts} +2 -2
- package/dist/{requestFunnel.d-BwZDfWVD.d.cts → requestFunnel.d-DoJWLySc.d.cts} +2 -2
- package/dist/{route.d-QBCoO62z.d.cts → route.d-BW2abFVK.d.cts} +2 -2
- package/dist/{route.d-B3u14HJT.d.ts → route.d-Olr_gXaa.d.ts} +2 -2
- package/dist/{runtimeTypes.d-hjN6xvxm.d.ts → runtimeTypes.d-Bp2VW6YE.d.ts} +6 -6
- package/dist/{runtimeTypes.d-BSxuUCOX.d.cts → runtimeTypes.d-StvJY45N.d.cts} +6 -6
- package/dist/{screenProps.d-fHBKArt_.d.ts → screenProps.d-BTLSji0N.d.ts} +1 -1
- package/dist/{screenProps.d-6xmE1C-V.d.cts → screenProps.d-B_5Bh7aQ.d.cts} +1 -1
- package/dist/server/events/index.cjs +2 -2
- package/dist/server/events/index.d.cts +19 -5
- package/dist/server/events/index.d.ts +19 -5
- package/dist/server/events/index.js +2 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +1 -1
- package/dist/shop/index.d.cts +3 -3
- package/dist/shop/index.d.ts +3 -3
- package/dist/slots/index.cjs +200 -199
- package/dist/slots/index.d.cts +5 -5
- package/dist/slots/index.d.ts +5 -5
- package/dist/slots/index.js +200 -199
- package/dist/tabs/index.cjs +200 -190
- package/dist/tabs/index.d.cts +68 -11
- package/dist/tabs/index.d.ts +68 -11
- package/dist/tabs/index.js +201 -191
- package/dist/tabs-bar/index.cjs +247 -0
- package/dist/tabs-bar/index.d.cts +10 -0
- package/dist/tabs-bar/index.d.ts +10 -0
- package/dist/tabs-bar/index.js +247 -0
- package/dist/{tabsModel.d-D9GWPFrL.d.ts → tabsModel.d-B4MSQB57.d.cts} +5 -2
- package/dist/{tabsModel.d-D9GWPFrL.d.cts → tabsModel.d-C8pd-DP3.d.ts} +5 -2
- package/dist/televet/booking/index.cjs +147 -145
- package/dist/televet/booking/index.d.cts +10 -10
- package/dist/televet/booking/index.d.ts +10 -10
- package/dist/televet/booking/index.js +163 -161
- package/dist/televet/call/index.cjs +52 -52
- package/dist/televet/call/index.d.cts +5 -0
- package/dist/televet/call/index.d.ts +5 -0
- package/dist/televet/call/index.js +25 -25
- package/dist/televet/index.d.cts +3 -3
- package/dist/televet/index.d.ts +3 -3
- package/dist/{televetGlobal.d-gZrXPaLl.d.cts → televetGlobal.d-B_I_fy7O.d.cts} +9 -0
- package/dist/{televetGlobal.d-DkJkV55Y.d.ts → televetGlobal.d-DN7o45WJ.d.ts} +9 -0
- package/dist/testing/index.cjs +3 -3
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +3 -3
- package/dist/testing/rn/index.d.cts +9 -9
- package/dist/testing/rn/index.d.ts +9 -9
- package/dist/testing/web/index.d.cts +9 -9
- package/dist/testing/web/index.d.ts +9 -9
- package/dist/texting/index.cjs +32 -27
- package/dist/texting/index.d.cts +5 -5
- package/dist/texting/index.d.ts +5 -5
- package/dist/texting/index.js +52 -47
- package/dist/{threadOptions.d-NSlFx-Lp.d.ts → threadOptions.d-D_3hk79R.d.ts} +5 -5
- package/dist/{threadOptions.d-Dc57dm7h.d.cts → threadOptions.d-D_GU6lp9.d.cts} +5 -5
- package/dist/{timelineRows.d-CthNM5hV.d.ts → timelineRows.d-BbVuARtc.d.ts} +1 -1
- package/dist/{timelineRows.d-7w8NsNi4.d.cts → timelineRows.d-BiLAAbYl.d.cts} +1 -1
- package/dist/{typeStyle.d-8mcLhtbH.d.ts → typeStyle.d-DSk99BuZ.d.ts} +1 -1
- package/dist/{typeStyle.d-CLrQZW-r.d.cts → typeStyle.d-DqR6mWCF.d.cts} +1 -1
- package/dist/{useHealthPlanSubscription.d-CV7M21HS.d.ts → useHealthPlanSubscription.d-CpE6l1VW.d.ts} +3 -3
- package/dist/{useHealthPlanSubscription.d-SA9-SuKe.d.cts → useHealthPlanSubscription.d-DRiWDJXq.d.cts} +3 -3
- package/dist/{useInboxUnread.d-0DrQPn7J.d.ts → useInboxUnread.d-BV7PkWDH.d.ts} +1 -1
- package/dist/{useInboxUnread.d-CRcOTkmu.d.cts → useInboxUnread.d-CElyXBkY.d.cts} +1 -1
- package/dist/{usePresentation.d-BJzFicRQ.d.cts → usePresentation.d-BcazazQH.d.cts} +3 -3
- package/dist/{usePresentation.d-DgSGIWS-.d.ts → usePresentation.d-CMOypLlH.d.ts} +3 -3
- package/dist/{useRecordsDepth.d-ZX2rhcUx.d.ts → useRecordsDepth.d-Bka4KQhq.d.ts} +1 -1
- package/dist/{useRecordsDepth.d-C9W45gwS.d.cts → useRecordsDepth.d-TgmpxKdX.d.cts} +1 -1
- package/dist/{useUnread.d-4SbFChbd.d.ts → useUnread.d-CGqaP-dB.d.ts} +27 -5
- package/dist/{useUnread.d-B0YhhR_D.d.cts → useUnread.d-DVVnYNPU.d.cts} +27 -5
- package/dist/{view.d-3lxzyJlL.d.cts → view.d-CwruYhQy.d.cts} +3 -3
- package/dist/{view.d-DRiYNQJ8.d.ts → view.d-DamH8TQF.d.ts} +3 -3
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/health-plan/index.cjs +9 -8
- 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 +49 -48
- package/dist/web/inbox/index.d.cts +7 -7
- package/dist/web/inbox/index.d.ts +7 -7
- package/dist/web/index.cjs +185 -184
- package/dist/web/index.d.cts +32 -32
- package/dist/web/index.d.ts +32 -32
- package/dist/web/index.js +187 -186
- package/dist/web/intro/index.d.cts +7 -7
- package/dist/web/intro/index.d.ts +7 -7
- package/dist/web/notifications/index.d.cts +6 -6
- package/dist/web/notifications/index.d.ts +6 -6
- package/dist/web/records/depth/index.d.cts +9 -9
- package/dist/web/records/depth/index.d.ts +9 -9
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records-sheet/index.cjs +111 -110
- package/dist/web/records-sheet/index.js +111 -110
- package/dist/web/shop/index.cjs +1 -1
- package/dist/web/shop/index.d.cts +3 -3
- package/dist/web/shop/index.d.ts +3 -3
- package/dist/web/shop/index.js +1 -1
- package/dist/web/televet/booking/index.cjs +3 -3
- package/dist/web/televet/booking/index.d.cts +10 -10
- package/dist/web/televet/booking/index.d.ts +10 -10
- package/dist/web/televet/booking/index.js +69 -69
- package/dist/web/televet/call/index.cjs +1 -1
- package/dist/web/televet/call/index.js +1 -1
- package/dist/web/televet/index.d.cts +3 -3
- package/dist/web/televet/index.d.ts +3 -3
- package/dist/web/texting/index.cjs +34 -29
- package/dist/web/texting/index.d.cts +5 -5
- package/dist/web/texting/index.d.ts +5 -5
- package/dist/web/texting/index.js +45 -40
- package/dist/web/ui/index.cjs +1 -1
- package/dist/web/ui/index.js +33 -33
- package/package.json +16 -1
- package/tabs-bar/package.json +8 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";var e=require("react"),t=require("react-native"),r=require("react/jsx-runtime");var n=/* @__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 i={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"}};function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e))for(let t of Object.values(e))deepFreeze(t);return e}var o=n,a=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function l(e){return Object.defineProperty(e,a,{value:e,enumerable:true}),deepFreeze(e)}var s={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},d=l({name:"everfur",colors:{bg:o.color.bg,surface:o.color.efWhite,text:o.color.text,ink:o.role.color.ink,onInk:o.color.efWhite,muted:o.role.color.muted,line:o.role.color.line,go:o.role.color.go,onGo:o.role.color.ink,pink:o.color.efDustyPink,onPink:o.role.color.ink,alert:o.color.alert,alertDeep:o.color.alertDeep,icoSage:o.role.color.icoSage,bgMist:o.color.bgMist,tintSage:o.role.color.tintSage,tintBlue:o.role.color.tintBlue,tintGo:o.role.color.tintGo,tintPink:o.role.color.tintPink,tintYellowEdge:o.role.color.tintYellowEdge,tintWatch:i.colors.watch,tintRed:o.role.color.tintRed,scrim:i.colors.scrim,grab:i.colors.grab,focus:o.role.color.ink,planInk:i.colors.planInk,planOnInk:i.colors.planOnInk,planAccent:i.colors.planAccent,planLink:i.colors.planLink,planAccentWash:i.colors.planAccentWash,planAccentChip:i.colors.planAccentChip,planLinkWash:i.colors.planLinkWash,planLinkChip:i.colors.planLinkChip},radius:{...o.radius},space:{...o.space},type:{family:o.font.family.base,mono:o.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:o.font.size.xs,sm:o.font.size.sm,md:o.font.size.md,lg:o.font.size.lg,xl:o.font.size.xl},weight:{...o.font.weight},lineHeight:{...o.font.lineHeight},scaleCaps:s},motion:{duration:{press:o.motion.duration.press,fade:o.motion.duration.fade,enter:o.motion.duration.enter,sheet:o.motion.duration.sheet,sheetOut:o.motion.duration.sheetOut},easing:{out:o.motion.easing.out,drawer:o.motion.easing.drawer},pop:{duration:o.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:i});function c(e){return e[a]??d}function u(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function p(e,t){if(!u(e)||!u(t))return t===void 0?e:t;let r={...e};for(let[n,i]of Object.entries(t))i!==void 0&&(r[n]=p(e[n],i));return r}function resolveTheme(e,t=d){if(!e)return t;let r=p(t,e),n=e.colors;if(n){let e=r.colors;for(let[t,r,i]of f){let o=n[r];o!==void 0&&n[t]===void 0&&(e[t]=g(o,i,e.surface)??e[t]??o)}}return deepFreeze(r)}var f=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function g(e,t,r){let n=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e??"");return t?[t[1],t[2],t[3]].map(e=>parseInt(e,16)):void 0},[i,o]=[n(e),n(r)];if(!(!i||!o))return`#${i.map((e,r)=>Math.round(e*t+(o[r]??0)*(1-t)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var h=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),r=globalThis,n=r[t]??(r[t]=e.createContext(null));return n.displayName??(n.displayName="EverfurThemeContext"),n})();function ThemeProvider({theme:t,children:r}){let n=x(),i=t===void 0||b(t)?t:m(t),o=e.useMemo(()=>b(t)?k(t):resolveTheme(t,n),[i,n]);return e.createElement(h.Provider,{value:o},r)}function m(e){return JSON.stringify(e,(e,t)=>u(t)&&!Array.isArray(t)?Object.fromEntries(Object.keys(t).sort().map(e=>[e,t[e]])):t)}function b(e){return e!==void 0&&Object.isFrozen(e)&&y.every(t=>t in e)}var y=["name","colors","radius","space","type","motion","metrics"];function w(e,t){if(e===void 0)return true;if(!u(e))return t!==void 0;if(!u(t))return false;for(let r of Object.keys(e))if(!w(e[r],t[r]))return false;return true}var v=/* @__PURE__ */new WeakMap;function k(e){let t=v.get(e);if(t)return t;if(w(d,e))return v.set(e,e),e;let r=c(e),n=p(d,r===d?e:p(r,e));n[a]=r;let i=deepFreeze(n);return v.set(e,i),i}function x(){let t=e.useContext(h);return t?k(t):d}var _=e=>Math.round(e*1e3)/1e3;function S(e,t=false){return t?e>450?"monoBold":"mono":e>500?"bold":e>450?"medium":"regular"}function C(e,t){let r=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(!r)return e;let[n,i,o]=[r[1],r[2],r[3]].map(e=>parseInt(e,16));return`rgba(${n}, ${i}, ${o}, ${t})`}function T(e){let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(t)return[t[1],t[2],t[3]].map(e=>parseInt(e,16));let r=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(e);return r?[r[1],r[2],r[3]].map(Number):void 0}function F(e,t,r,n){let[i,o]=[T(e),T(r)];return!i||!o?n:`rgb(${i.map((e,r)=>Math.round(e*t+(o[r]??0)*(1-t))).join(", ")})`}function E(e,t){let r=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(t),n=r?.[1];if(!r||n===void 0||!(n in e.colors))return t;let i=e.colors[n];return r[2]===void 0?i:C(i,Number(r[2]))}function z(e,t){return t==="none"?"transparent":E(e,t)}var I=.45;function O(e,t,r,n=false){let i=e.metrics.button;if(t==="text"){let t=i.text;return{minHeight:0,paddingX:0,gap:i.ink.gap,radius:0,borderWidth:0,borderColor:"transparent",background:"transparent",iconSize:i.inkSm.iconSize,text:{size:t.fontSize,weight:t.fontWeight,lineHeight:_(t.fontSize*t.lineHeight),color:E(e,t.color)},pressScale:1,pressOpacity:t.pressOpacity,disabledOpacity:i.blockedOpacity??I,fill:false,ring:false}}let o=e.metrics.variants.button,a=H(r),l=t==="outline"||t==="danger"||t==="warn",s=a?{...r==="compactSm"?o.sm:r==="compactLg"?o.lg:o.ink,borderWidth:l?o.outline.borderWidth:0,ring:o.outline.ring}:r==="row"?i.row:t==="danger"?i.danger:r==="sm"?i[`${t}Sm`]:i[t],d=e.colors,c=t==="money"||t==="warn"?i[t]:void 0,u={ink:{bg:d.ink,fg:d.onInk,edge:d.ink},go:{bg:d.go,fg:d.onGo,edge:d.ink},outline:{bg:"transparent",fg:d.ink,edge:d.ink},pink:{bg:d.pink,fg:d.onPink,edge:d.ink},danger:{bg:d.surface,fg:d.alert,edge:d.alert}},p=c?{bg:z(e,c.bg),fg:E(e,c.fg),edge:E(e,c.edgeColor)}:u[t],f=t==="outline"&&n&&!a?i.outlineInSheetWeight:s.fontWeight;return{minHeight:s.minHeight,paddingX:s.paddingX,gap:s.gap,radius:e.radius.pill,borderWidth:s.borderWidth,borderColor:p.edge,background:p.bg,iconSize:s.iconSize,text:{size:s.fontSize,weight:f,lineHeight:_(s.fontSize*s.lineHeight),color:p.fg},pressScale:e.motion.reduced?1:a?o.press:e.metrics.press.button,pressOpacity:1,disabledOpacity:a?o.disabledOpacity:i.blockedOpacity??I,fill:s.fill,ring:s.ring}}function H(e){return e==="compact"||e==="compactSm"||e==="compactLg"}function D(e,t){let r=e.metrics.sheet,n=r.titleSize,i=r.titleLineHeight??e.metrics.card.titleLineHeight;return{size:n,weight:r.titleWeight??e.metrics.card.titleWeight,lineHeight:_(n*i),color:E(e,r.titleColor??"ink"),tracking:r.titleTracking??e.metrics.card.titleTracking}}function A(e){let t=e.metrics,r=e.colors;return{cardTitle:{size:t.card.titleSize,weight:t.card.titleWeight,lineHeight:_(t.card.titleSize*t.card.titleLineHeight),color:r.ink,tracking:t.card.titleTracking},cardLead:{size:t.card.leadSize,weight:e.type.weight.regular,lineHeight:_(t.card.leadSize*t.card.leadLineHeight),color:r.text},body:{size:t.card.bodySize,weight:e.type.weight.regular,lineHeight:_(t.card.bodySize*t.card.bodyLineHeight),color:r.text},kicker:{size:t.kicker.fontSize,weight:t.kicker.fontWeight,lineHeight:_(t.kicker.fontSize*t.kicker.lineHeight),color:r.muted,mono:true,tracking:t.kicker.letterSpacing,upper:true},sheetTitle:D(e),stepperValue:{size:t.quantityStepper.valueSize,weight:t.quantityStepper.valueWeight,lineHeight:_(t.quantityStepper.valueSize*t.quantityStepper.valueLineHeight),color:E(e,t.quantityStepper.valueColor??"text")},tab:{size:t.tabs.fontSize,weight:t.tabs.fontWeight,lineHeight:_(t.tabs.fontSize*t.tabs.lineHeight),color:r.muted},tabCurrent:{size:t.tabs.fontSize,weight:t.tabs.currentWeight,lineHeight:_(t.tabs.fontSize*t.tabs.lineHeight),color:r.ink},emptyTitle:{size:t.empty.titleSize,weight:t.empty.titleWeight,lineHeight:_(t.empty.titleSize*t.empty.titleLineHeight),color:r.ink,tracking:t.empty.titleTracking},emptyLead:{size:t.empty.leadSize,weight:e.type.weight.regular,lineHeight:_(t.empty.leadSize*t.empty.leadLineHeight),color:r.text},emptyLink:{size:t.empty.linkSize,weight:t.empty.linkWeight,lineHeight:_(t.empty.linkSize*t.card.bodyLineHeight),color:r.ink},sumTerm:{size:t.summary.termSize,weight:e.type.weight.regular,lineHeight:_(t.summary.termSize*t.summary.termLineHeight),color:r.muted},sumValue:{size:t.summary.valueSize,weight:t.summary.valueWeight,lineHeight:_(t.summary.valueSize*t.summary.valueLineHeight),color:r.ink},sumTotal:{size:t.summary.totalSize,weight:t.summary.valueWeight,lineHeight:_(t.summary.totalSize*t.summary.totalLineHeight),color:r.ink}}}function B(e,t){return{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:E(e,t.color),...t.face==="mono"?{mono:true}:{},...t.face==="serif"?{serif:true}:{},...t.tracking?{tracking:t.tracking}:{},...t.upper?{upper:true}:{},...t.deco==="none"?{}:{deco:t.deco==="strike"?"strike":"underline",decoOffset:t.decoOffset,decoThickness:t.decoThickness},...t.tabular?{tabular:true}:{},...t.wrap==="auto"?{}:{wrap:t.wrap==="balance"?"balance":"pretty"}}}var j=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#SurfaceContext@v1"),r=globalThis;return r[t]??(r[t]=e.createContext(null))})();function R(){return e.useContext(j)}var M={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function P(e,t){let r=e.colors;switch(t){case"ink":return r.ink;case"text":return r.text;case"muted":return r.muted;case"danger":return r.alertDeep;case"inverse":return r.onInk;default:return}}function W(e,t,r,n){let i=B(e,e.metrics.text[t]),o=P(e,r);return{...i,...o?{color:o}:{},...n?{weight:e.type.weight[n]}:{}}}var L=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),r=globalThis,n=r[t]??(r[t]=e.createContext(null));return n.displayName??(n.displayName="EverfurPressFeedbackContext"),n})();function N(){return e.useContext(L)}function q(e,t,r,n={}){if(!e||n.disabled)return{onPress:r,onPressIn:void 0};let{onPressIn:i,onPress:o,haptic:a}=e,l=n.haptics!==false&&t.haptic&&a?a:void 0;return{onPress:r&&(o||l)?()=>{l?.(t),o?.(t),r()}:r,onPressIn:i?()=>i(t):void 0}}function U(e,t,r=1){return e?.pressScale?.[t]??r}var G={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function $(e,t){return e.type.variantTiers?.[t]??M[t]}var X=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),r=globalThis,n=r[t]??(r[t]=e.createContext(null));return n.displayName??(n.displayName="EverfurReducedMotionContext"),n})();function V(){return e.useContext(X)}function Y(e,r){let n=S(r.weight,r.mono===true);return{fontFamily:r.serif?e.type.faces.serif??e.type.faces.bold:e.type.faces[n],...e.type.namedFaces?{}:{fontWeight:String(r.weight)},fontSize:r.size,lineHeight:r.lineHeight,color:r.color,...r.tracking?{letterSpacing:r.tracking}:{},...r.upper?{textTransform:"uppercase"}:{},...r.deco?K(r):{},...r.tabular?{fontVariant:["tabular-nums"]}:{},...r.wrap&&t.Platform.OS==="web"?{textWrap:r.wrap}:{}}}function K(e){let r={textDecorationLine:e.deco==="strike"?"line-through":"underline"};return t.Platform.OS!=="web"?r:{...r,...e.decoOffset?{textUnderlineOffset:e.decoOffset}:{},...e.decoThickness?{textDecorationThickness:e.decoThickness}:{}}}function Z(){if(t.Platform.OS!=="web")return false;let e=globalThis;return typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)").matches}function Q(r){let[n,i]=e.useState(()=>r===null&&Z());return e.useEffect(()=>{if(r!==null)return;let e=true,n=t.AccessibilityInfo?.isReduceMotionEnabled;if(typeof n=="function"){let r=n.call(t.AccessibilityInfo);r!=null&&typeof r.then=="function"&&r.then(t=>{e&&i(t===true)},()=>{})}let o=t.AccessibilityInfo?.addEventListener?.("reduceMotionChanged",e=>i(e===true));return()=>{e=false,o?.remove?.()}},[r]),r??n}function J(e){let t=Q(V());return e.motion.reduced||t}function ee(e,t,r){return{...e===void 0?{}:{expanded:e},...t===void 0?{}:{checked:t},...r===void 0?{}:{selected:r!==false}}}function te(e){let t=Math.max(0,Math.ceil((44-e)/2));return t===0?void 0:{top:t,bottom:t,left:t,right:t}}function re(e,r,n){let i={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:n};return t.Platform.OS==="web"?{...i,boxShadow:`inset 0 0 0 ${e}px ${r}`}:{...i,borderWidth:e,borderColor:r}}function ne(e){return Math.round(e*100)/100}function ie(e,t){let r=Number(t.weight),n=t.letterSpacing??0;return{...Y(e,{size:t.size,weight:r,lineHeight:ne(t.size*t.lineHeight),color:e.colors.text,tracking:n?ne(t.size*n):0,mono:t.face==="mono",upper:t.uppercase===true}),flexShrink:1}}function oe(e){return e==="auto"?null:t.Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:t.Platform.OS==="android"&&e==="balance"?{textBreakStrategy:"balanced"}:null}function ae(e,t){let r=e.type.weight[t];return e.type.namedFaces?{fontFamily:e.type.faces[S(r)]}:{fontWeight:String(r)}}function Text({tier:r,variant:n,tone:i,weight:o,level:a,lineBreak:l,typeRole:s,...d}){let c=x();if(s){let n=c.type.scaleCaps[r??s.tier??"content"],i=l?oe(l):null;return e.createElement(t.Text,{...n>0?{maxFontSizeMultiplier:n}:{},...i,...d,style:[ie(c,s),d.style]})}let u=c.type.scaleCaps[r??(n?$(c,n):"content")],p=oe(l??(n?G[n]:"auto"));if(n===void 0&&i===void 0&&o===void 0&&a===void 0)return p?e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...d}):e.createElement(t.Text,u>0?{maxFontSizeMultiplier:u,...d}:d);let f=P(c,i),g=n?Y(c,W(c,n,i,o)):{...f?{color:f}:{},...o?ae(c,o):{}},h=a===void 0?{}:{accessibilityRole:"header",...t.Platform.OS==="web"?{"aria-level":a}:{}};return e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...h,...d,style:[g,d.style]})}var le=24,se=16,de=.8,ce=e=>Math.round(e*se);function ue(e,t,r,n,i,o){let a=e-r/2,l=t-n/2,s=Math.round(a),d=Math.round(l);return{position:"absolute",left:s,top:d,width:r,height:n,transform:[{translateX:a-s},{translateY:l-d},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/se}]}}function pe(e,t,r){for(let n of e.strokes){let e=n.width*t,i=n.points,o=i.length/2,a=n.closed?o:o-1;for(let l=0;l<a;l+=1){let a=(l+1)%o,s=(i[l*2]??0)*t,d=(i[l*2+1]??0)*t,c=(i[a*2]??0)*t-s,u=(i[a*2+1]??0)*t-d,p=Math.hypot(c,u);if(p===0&&!(o===2&&n.cap))continue;let f=p===0?1:c/p,g=p===0?0:u/p,h=n.closed||l>0||n.cap?e/2:0,m=n.closed||a!==o-1||n.cap?e/2:0,b=(p+m-h)/2;r.push({paint:"backgroundColor",style:{...ue(s+f*b,d+g*b,ce(p+h+m),ce(e),f,g),borderTopLeftRadius:h>0?ce(e)/2:0,borderBottomLeftRadius:h>0?ce(e)/2:0,borderTopRightRadius:m>0?ce(e)/2:0,borderBottomRightRadius:m>0?ce(e)/2:0,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}}function fe(e,t,r){for(let n of e.boxes){let e=(n.w+n.width)*t,i=(n.h+n.width)*t;r.push({paint:"borderColor",style:{...ue((n.x-n.width/2)*t+e/2,(n.y-n.width/2)*t+i/2,ce(e),ce(i),1,0),borderWidth:ce(n.width*t),borderRadius:(n.radius+n.width/2)*t*se,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}function ge(e,t,r){for(let n of e.triangles){let e=[0,1,2].map(e=>[(n[e*2]??0)*t,(n[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let r=e[t]??[0,0],n=e[(t+1)%3]??[0,0],a=Math.hypot(n[0]-r[0],n[1]-r[1]);a>o&&(o=a,i=t)}if(o<=0)continue;let a=e[i]??[0,0],l=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],d=(l[0]-a[0])/o,c=(l[1]-a[1])/o,u=(s[0]-a[0])*d+(s[1]-a[1])*c,p=(s[0]-a[0])*-c+(s[1]-a[1])*d,f=Math.abs(p),g=p<0,h=g?-f/2:f/2,m=ce(u),b=ce(o)-m,y=ce(f);r.push({paint:g?"borderBottomColor":"borderTopColor",style:{...ue(a[0]+d*(o/2)-c*h,a[1]+c*(o/2)+d*h,m+b,y,d,c),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:y}:{borderTopWidth:y}}})}for(let n of e.seams){let e=(n[0]??0)*t,i=(n[1]??0)*t,o=(n[2]??0)*t-e,a=(n[3]??0)*t-i,l=Math.hypot(o,a),s=de*(n[4]??0),d=de*(n[5]??0),c=l-s-d;if(l===0||c<=0)continue;let u=s+c/2;r.push({paint:"backgroundColor",style:ue(e+o/l*u,i+a/l*u,ce(c),ce(de),o/l,a/l)})}}var he=/* @__PURE__ */new WeakMap;function me(e,t){let r=he.get(e);r===void 0&&(r=/* @__PURE__ */new Map,he.set(e,r));let n=r.get(t);if(n!==void 0)return n;let i=[],o=t/le;return fe(e,o,i),pe(e,o,i),ge(e,o,i),r.set(t,i),i}function Glyph({icon:e,size:n,color:i,label:o,testID:a,style:l}){let s=x(),d=n??s.metrics.icon.size,c=i??s.colors.ink;/* @__PURE__ */
|
|
3
3
|
return r.jsx(t.View,{testID:a,pointerEvents:"none",style:[{width:d,height:d},l],...o?{accessible:true,accessibilityRole:"image",accessibilityLabel:o}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:me(e,d).map((e,n)=>/* @__PURE__ */r.jsx(t.View,{style:[e.style,{[e.paint]:c}]},n))})}var be=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),t=globalThis;return t[e]??(t[e]={icons:{},warned:/* @__PURE__ */new Set})})();function ye(e){Object.assign(be.icons,e)}function we(e){let t=be.icons[e];return t===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!be.warned.has(e)&&(be.warned.add(e),console.warn(`@everfur-health/ui-native: no icon "${e}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),t}function Icon({name:e,...t}){let n=we(e);return n?/* @__PURE__ */r.jsx(Glyph,{icon:n,...t}):null}function ve(e,t,r,n=1){return ke(N(),e,t,r,n)}function ke(e,t,r,n,i=1){let o=q(e,{component:t,testID:r.testID,...r.item===void 0?{}:{item:r.item},label:r.label,trackId:r.trackId,haptic:r.haptic===true},n,{disabled:r.disabled});return{props:o.onPressIn?{onPress:o.onPress,onPressIn:o.onPressIn}:{onPress:o.onPress},scale:U(e,t,i)}}var xe=e=>`cubic-bezier(${e.join(", ")})`,_e=(e,t)=>typeof e=="function"?e({pressed:t}):e,Se;function Ce(){return Se??(Se=t.Animated.createAnimatedComponent(t.Pressable))}function Te(e,r,n){let[i,o,a,l]=e.motion.easing.out;return t.Animated.timing(r,{toValue:n,duration:e.motion.duration.press,easing:t.Easing.bezier(i,o,a,l),useNativeDriver:true})}function PressBox({style:r,scale:n,still:i,pop:o,onPressIn:a,onPressOut:l,...s}){let d=x(),c=e.useRef(null),[u,p]=e.useState(false),f=!i&&n!==1,g=!i&&o?.scale!=null;if(t.Platform.OS==="web"){let i=f?{transitionProperty:"transform",transitionDuration:`${d.motion.duration.press}ms`,transitionTimingFunction:xe(d.motion.easing.out)}:null;return e.createElement(t.Pressable,{...s,...o?{ref:o.ref}:null,onPressIn:a,onPressOut:l,style:({pressed:e})=>[_e(r,e),i,f&&e?{transform:[{scale:n}]}:null]})}if(!f&&!g)return e.createElement(t.Pressable,{...s,onPressIn:a,onPressOut:l,style:r});let h=c.current??(c.current=new t.Animated.Value(0)),m=f?h.interpolate({inputRange:[0,1],outputRange:[1,n]}):null,b=m&&g?t.Animated.multiply(m,o?.scale):m??o?.scale;return e.createElement(Ce(),{...s,onPressIn:e=>{s.disabled||(p(true),f&&Te(d,h,1).start(),a?.(e))},onPressOut:e=>{p(false),f&&Te(d,h,0).start(),l?.(e)},style:[_e(r,u),{transform:[{scale:b}]}]})}function Button({label:e,onPress:n,tone:i="ink",size:o="md",icon:a,disabled:l=false,loading:s=false,loadingLabel:d,loadingIndicator:c="spinner",fullWidth:u,accessibilityLabel:p,trackId:f,haptic:g,testID:h,style:m,children:b,nativeID:y,onPressIn:w,"aria-expanded":v,"aria-pressed":k,"aria-current":_}){let S=x(),C=R()==="sheet",T=J(S),F=O(S,i,o,C),E=l||s,z=u??(C||F.fill),I=s&&c!=="none",H=I&&d?d:p??(I&&d?d:e),D=ve("Button",{testID:h,label:H,trackId:f,haptic:g,disabled:E},n,F.pressScale),A=D.props.onPressIn,B=w&&A?()=>{A(),w()}:w??A;/* @__PURE__ */
|
|
4
4
|
return r.jsxs(PressBox,{...D.props,onPressIn:B,scale:D.scale,still:T,disabled:E,nativeID:y,hitSlop:te(Math.max(F.minHeight,F.text.lineHeight)),accessibilityRole:"button",accessibilityLabel:H,accessibilityState:{disabled:E,busy:s,...ee(v,k,_)},"aria-busy":s,testID:h,style:({pressed:e})=>[Fe.base,{minHeight:Math.max(F.minHeight,0),paddingHorizontal:F.paddingX,columnGap:F.gap,borderRadius:F.radius,borderWidth:F.ring?0:F.borderWidth,borderColor:F.borderColor,backgroundColor:F.background},z?Fe.block:Fe.auto,E?{opacity:F.disabledOpacity}:null,e&&F.pressOpacity!==1&&!E?{opacity:F.pressOpacity}:null,m],children:[I?/* @__PURE__ */r.jsx(t.ActivityIndicator,{size:"small",color:F.text.color,animating:!T,hidesWhenStopped:false,accessibilityLabel:H}):a?/* @__PURE__ */r.jsx(Icon,{name:a,size:F.iconSize,color:F.text.color}):null,
|
|
5
|
-
/* @__PURE__ */r.jsx(t.View,{style:Fe.labelBox,children:/* @__PURE__ */r.jsx(Text,{tier:"control",style:[Y(S,F.text),Fe.label],children:I&&d?d:b??e})}),F.ring&&F.borderWidth>0?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:re(F.borderWidth,F.borderColor,F.radius)}):null]})}var Fe=t.StyleSheet.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}}),Ee={bg:"#FDFBF8",radius:10,padding:15,borderWidth:1,borderColor:"rgba(0, 0, 0, 0.15)"};function Card({title:e,action:n,lead:i,children:o,tone:a="default",headGap:l,onPress:s,accessibilityLabel:d,trackId:c,haptic:u,variant:p="standard",tint:f,borderColor:g,testID:h,style:m}){let b=x(),y=J(b),w=b.metrics.card,v=A(b),k=d??e,_=ve("Card",{testID:h,label:k,trackId:c,haptic:u},s,b.metrics.press.card),S=e?/* @__PURE__ */r.jsx(Text,{accessibilityRole:"header",tier:"heading",lineBreak:"balance",style:[Y(b,v.cardTitle),ze.shrink],children:e}):null,C=a==="ghost",T=p==="plain"?Ee:null,F=T?{padding:T.padding,borderWidth:T.borderWidth,borderColor:g??(C?E(b,w.ghost.borderColor):T.borderColor),...C?{borderStyle:w.ghost.borderStyle}:null,borderRadius:T.radius,borderCurve:"continuous",backgroundColor:f??T.bg}:{padding:w.padding,borderWidth:w.borderWidth,borderColor:g??(C?E(b,w.ghost.borderColor):b.colors.line),...C?{borderStyle:w.ghost.borderStyle}:null,borderRadius:w.radius,backgroundColor:f??b.colors.surface},z=/* @__PURE__ */r.jsxs(r.Fragment,{children:[n?/* @__PURE__ */r.jsxs(t.View,{style:[ze.head,S?null:ze.end,{columnGap:w.headGapX,rowGap:w.headGapY,marginBottom:l??w.headGap}],children:[S,n]}):S?/* @__PURE__ */r.jsx(t.View,{style:{marginBottom:i||o?l??w.titleGap:0},children:S}):null,i?/* @__PURE__ */r.jsx(Text,{style:[Y(b,v.cardLead),{marginBottom:o?w.leadGap:0}],children:i}):null,o]});return s?/* @__PURE__ */r.jsx(PressBox,{testID:h,..._.props,scale:_.scale,still:y,accessibilityRole:"button",accessibilityLabel:k,style:[F,m],children:z}):/* @__PURE__ */r.jsx(t.View,{testID:h,style:[F,m],children:z})}var ze=t.StyleSheet.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});t.StyleSheet.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});t.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"}});t.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"}});t.StyleSheet.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}});var Ie={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:[]};t.StyleSheet.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});t.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}});t.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"}});t.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"}});t.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"]}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});t.StyleSheet.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});t.StyleSheet.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});t.StyleSheet.create({base:{alignSelf:"flex-start"}});t.StyleSheet.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});t.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}});t.StyleSheet.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});t.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}});t.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"}});t.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}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"}});function Oe(e){let t=0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n<128?t+=1:n<2048?t+=2:n>=55296&&n<=56319&&r+1<e.length?(t+=4,r++):t+=3}return t}var He="a2ui",De="a2ui_cards";var Ae="1.0",Be=/* @__PURE__ */Object.freeze({frameBytes:16*1024,surfaceBytes:32*1024,messages:1,updates:8,depth:8,pointer:128,components:64}),je=/* @__PURE__ */new Set(["__proto__","constructor","prototype"]),Re=/^[A-Za-z0-9_.:-]{1,128}$/,Me=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);function Pe(e){if(typeof e!="string"||e.length>Be.pointer||!e.startsWith("/"))return null;let t=e.slice(1).split("/").map(e=>e.replace(/~1/g,"/").replace(/~0/g,"~"));return t.length>Be.depth||t.some(e=>e===""||je.has(e))?null:t}function We(e,t,r){if(t===void 0||t===""||t==="/")return Me(r)?r:null;let n=Pe(t);if(n===null)return null;let i={...e},o=i;for(let e of n.slice(0,-1)){let t=Me(o[e])?{...o[e]}:{};o[e]=t,o=t}let a=n[n.length-1];return r===null?delete o[a]:o[a]=r,i}var Le=(e,t,r)=>{let n=e.revision??t.revision??(Me(r)?r.revision:void 0);return Number.isSafeInteger(n)&&n>=0?n:null},Ne=e=>e.path==="/revision"?{revision:e.value}:e.path===void 0||e.path===""||e.path==="/"?e.value:void 0;function qe(e){return e.flat().slice(0,8).map(e=>Me(e)&&e.type===void 0&&"messages"in e?{type:He,a2ui:e}:e)}function Ue(e){let t=/* @__PURE__ */new Map;for(let r of qe(e)){if(!Me(r)||r.type!==He||!Me(r.a2ui))return{ok:false,reason:"frame"};let e;try{e=Oe(JSON.stringify(r))}catch{return{ok:false,reason:"frame"}}if(e>Be.frameBytes)return{ok:false,reason:"too_large"};let n=r.a2ui,i=n.messages;if(n.version!==Ae||!Array.isArray(i)||i.length>Be.messages)return{ok:false,reason:"version"};let o=/* @__PURE__ */new Set;for(let e of i){if(!Me(e)||e.version!==void 0&&e.version!==Ae)return{ok:false,reason:"version"};if([e.createSurface,e.updateDataModel,e.updateComponents].filter(e=>e!==void 0).length!==1)return{ok:false,reason:"message"};let r=Me(e.createSurface)?e.createSurface:null,i=Me(e.updateDataModel)?e.updateDataModel:null,a=Me(e.updateComponents)?e.updateComponents:null,l=r??i??a;if(l===null)return{ok:false,reason:"message"};let s=l.surfaceId;if(typeof s!="string"||!Re.test(s))return{ok:false,reason:"message"};let d=t.get(s);if(r!==null){if(d!==void 0)continue;let e=r.components,i=r.dataModel;if(!Array.isArray(e)||e.length>Be.components||!(i===void 0||Me(i)))return{ok:false,reason:"message"};let a={surfaceId:s,catalogId:r.catalogId,revision:Le(r,n,i)??0,components:e.filter(Me),dataModel:i??{},updates:0,bytes:0};t.set(s,a),o.add(a);continue}if(d===void 0)continue;let c=Le(l,n,i===null?void 0:Ne(i));if(!(c===null||c<=d.revision)){if(++d.updates>Be.updates)return{ok:false,reason:"updates"};if(i!==null){if(i.value===void 0)return{ok:false,reason:"message"};let e=We(d.dataModel,i.path,i.value);if(e===null)return{ok:false,reason:"pointer"};d.dataModel=e}else{let e=l.components;if(!Array.isArray(e))return{ok:false,reason:"message"};let t=new Map(d.components.map(e=>[e.id,e]));for(let r of e)Me(r)&&typeof r.id=="string"&&t.set(r.id,r);if(t.size>Be.components)return{ok:false,reason:"message"};d.components=[...t.values()]}d.revision=c,o.add(d)}}for(let t of o)if(t.bytes+=e,t.bytes>Be.surfaceBytes)return{ok:false,reason:"too_large"}}return{ok:true,surfaces:[...t.values()].map(e=>({surfaceId:e.surfaceId,catalogId:e.catalogId,revision:e.revision,components:e.components,dataModel:e.dataModel}))}}var Ge="everfur_chat_cards_v1",$e="chat.cards",Xe=/* @__PURE__ */Object.freeze({cards:4,buttons:3,text:200}),Ve=["visit"],Ye=["book_vet"],Ke=["caution"],Ze=["ink","outline"],Qe=["urgency_soon"],Je=/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){0,4}$/,et=/^[A-Za-z0-9_.-]{1,64}$/,tt=/* @__PURE__ */new Set(["CardStack","ChatCard","ActionRow","ActionButton"]),rt=/<\s*[A-Za-z/!?]|&[A-Za-z#][A-Za-z0-9]*;/,nt=/[\u0000-\u001f\u007f-\u009f\u061c\u200b-\u200f\u2028-\u202e\u2060-\u2064\u2066-\u2069\ufeff]/,it=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ot=(e,t)=>e.includes(t);function at(e,t){let r=Pe(t);if(r===null)return;let n=e;for(let e of r)if(Me(n)&&it(n,e))n=n[e];else return;return n}var lt=e=>typeof e=="string"&&e.trim()!==""&&e.length<=Xe.text&&!rt.test(e)&&!nt.test(e),st=class{constructor(e){this.model=e;this.reason=null;this.byId=/* @__PURE__ */new Map;this.used=/* @__PURE__ */new Set(["root"])}refuse(e){return this.reason??=e,null}index(e){for(let t of e){let e=t.id;if(typeof e!="string"||!et.test(e)||this.byId.has(e))return this.refuse("surface")??false;if(!tt.has(t.component))return this.refuse("component")??false;this.byId.set(e,t)}return true}node(e){return this.byId.get(e)}take(e,t){let r=typeof e=="string"&&!this.used.has(e)?this.byId.get(e):void 0;return r?.component!==t?this.refuse("component"):(this.used.add(e),r)}children(e,t,r){let n=e.children??[];return Array.isArray(n)?n.length>r?this.refuse("limit"):n.length<t?this.refuse("component"):n:this.refuse("component")}text(e,t,r){if(!it(e,t))return r?void 0:this.refuse("text");let n=e[t],i=Me(n)&&Object.keys(n).length===1?at(this.model,n["@path"]):void 0;return lt(i)?i:this.refuse("text")}pick(e,t){return ot(e,t)?t:this.refuse("component")}action(e){let t=Me(e)&&Object.keys(e).length===1&&Me(e.functionCall)?e.functionCall:null,r=t!==null&&Me(t.args)&&Object.keys(t.args).length===1?t.args:null;if(t===null||r===null)return this.refuse("action");switch(t["@call"]??t.call){case"navigate":return ot(Ve,r.route)?{kind:"navigate",route:r.route}:this.refuse("action");case"track":return typeof r.event=="string"&&Je.test(r.event)?{kind:"track",event:r.event}:this.refuse("action");default:return this.refuse("action")}}button(e){let t=this.take(e,"ActionButton");if(t===null)return null;let r=t["@accessibility"],n=this.text(t,"label",false),i=Me(r)?this.text(r,"label",false):this.refuse("text"),o=this.pick(Ze,t.tone),a=this.action(t.action);return n==null||i==null||o===null||a===null?null:{id:t.id,label:n,a11y:i,tone:o,action:a}}card(e){let t=this.take(e,"ChatCard"),r=t===null?null:this.children(t,0,1);if(t===null||r===null)return null;let n=[];for(let e of r){let t=this.take(e,"ActionRow"),r=t===null?null:this.children(t,1,Xe.buttons);if(r===null)return null;for(let e of r){let t=this.button(e);if(t===null)return null;n.push(t)}}let i=this.pick(Ye,t.card),o=this.pick(Ke,t.tone),a=this.text(t,"title",false),l=this.text(t,"body",true);return i===null||o===null||a==null||l===null?null:{id:t.id,card:i,tone:o,title:a,body:l??null,buttons:n}}};function dt(e){if(e.catalogId!==Ge)return{refused:"catalog"};let t=e.dataModel,r=new st(t),n=()=>({refused:r.reason??"surface"});if(!r.index(e.components))return n();let i=r.node("root");if(i?.component!=="CardStack")return{refused:"surface"};let o=r.children(i,1,Xe.cards);if(o===null)return n();let a=[];for(let e of o){let t=r.card(e);if(t===null)return n();a.push(t)}let l=Array.isArray(t.covers)?Qe.filter(e=>t.covers.includes(e)):[];return{cards:a,covers:l}}function ct(e){let t=Ue(e);if(!t.ok)return t;let r=[],n=/* @__PURE__ */new Set;for(let e of t.surfaces){let t=dt(e);if("refused"in t)return{ok:false,reason:t.refused};r.push(...t.cards);for(let e of t.covers)n.add(e)}return r.length>Xe.cards?{ok:false,reason:"limit"}:r.length===0?{ok:false,reason:"empty"}:{ok:true,cards:{surfaceIds:t.surfaces.map(e=>e.surfaceId),cards:r,covers:[...n]}}}function ut(petRef,e){let t={entry:"chat",petRef:petRef};return e?.returnTo!==void 0&&(t.returnTo=e.returnTo),e?.usState!==void 0&&(t.usState=e.usState),e?.prefer!==void 0&&(t.prefer=e.prefer),t}function ok(e,t){/* @__PURE__ */
|
|
5
|
+
/* @__PURE__ */r.jsx(t.View,{style:Fe.labelBox,children:/* @__PURE__ */r.jsx(Text,{tier:"control",style:[Y(S,F.text),Fe.label],children:I&&d?d:b??e})}),F.ring&&F.borderWidth>0?/* @__PURE__ */r.jsx(t.View,{pointerEvents:"none",style:re(F.borderWidth,F.borderColor,F.radius)}):null]})}var Fe=t.StyleSheet.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}}),Ee={bg:"#FDFBF8",radius:10,padding:15,borderWidth:1,borderColor:"rgba(0, 0, 0, 0.15)"};function Card({title:e,action:n,lead:i,children:o,tone:a="default",headGap:l,onPress:s,accessibilityLabel:d,trackId:c,haptic:u,variant:p="standard",tint:f,borderColor:g,testID:h,style:m}){let b=x(),y=J(b),w=b.metrics.card,v=A(b),k=d??e,_=ve("Card",{testID:h,label:k,trackId:c,haptic:u},s,b.metrics.press.card),S=e?/* @__PURE__ */r.jsx(Text,{accessibilityRole:"header",tier:"heading",lineBreak:"balance",style:[Y(b,v.cardTitle),ze.shrink],children:e}):null,C=a==="ghost",T=p==="plain"?Ee:null,F=T?{padding:T.padding,borderWidth:T.borderWidth,borderColor:g??(C?E(b,w.ghost.borderColor):T.borderColor),...C?{borderStyle:w.ghost.borderStyle}:null,borderRadius:T.radius,borderCurve:"continuous",backgroundColor:f??T.bg}:{padding:w.padding,borderWidth:w.borderWidth,borderColor:g??(C?E(b,w.ghost.borderColor):b.colors.line),...C?{borderStyle:w.ghost.borderStyle}:null,borderRadius:w.radius,backgroundColor:f??b.colors.surface},z=/* @__PURE__ */r.jsxs(r.Fragment,{children:[n?/* @__PURE__ */r.jsxs(t.View,{style:[ze.head,S?null:ze.end,{columnGap:w.headGapX,rowGap:w.headGapY,marginBottom:l??w.headGap}],children:[S,n]}):S?/* @__PURE__ */r.jsx(t.View,{style:{marginBottom:i||o?l??w.titleGap:0},children:S}):null,i?/* @__PURE__ */r.jsx(Text,{style:[Y(b,v.cardLead),{marginBottom:o?w.leadGap:0}],children:i}):null,o]});return s?/* @__PURE__ */r.jsx(PressBox,{testID:h,..._.props,scale:_.scale,still:y,accessibilityRole:"button",accessibilityLabel:k,style:[F,m],children:z}):/* @__PURE__ */r.jsx(t.View,{testID:h,style:[F,m],children:z})}var ze=t.StyleSheet.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});t.StyleSheet.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});t.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"}});t.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"}});t.StyleSheet.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}});var Ie={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:[]};t.StyleSheet.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});t.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}});t.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"}});t.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"}});t.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"]}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});t.StyleSheet.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});t.StyleSheet.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});t.StyleSheet.create({base:{alignSelf:"flex-start"}});t.StyleSheet.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});t.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}});t.StyleSheet.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});t.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}});t.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"}});t.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}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"}});function Oe(e){let t=0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n<128?t+=1:n<2048?t+=2:n>=55296&&n<=56319&&r+1<e.length?(t+=4,r++):t+=3}return t}var He="a2ui",De="a2ui_cards";var Ae="1.0",Be=/* @__PURE__ */Object.freeze({frameBytes:16*1024,surfaceBytes:32*1024,messages:1,updates:8,depth:8,pointer:128,components:64}),je=/* @__PURE__ */new Set(["__proto__","constructor","prototype"]),Re=/^[A-Za-z0-9_.:-]{1,128}$/,Me=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);function Pe(e){if(typeof e!="string"||e.length>Be.pointer||!e.startsWith("/"))return null;let t=e.slice(1).split("/").map(e=>e.replace(/~1/g,"/").replace(/~0/g,"~"));return t.length>Be.depth||t.some(e=>e===""||je.has(e))?null:t}function We(e,t,r){if(t===void 0||t===""||t==="/")return Me(r)?r:null;let n=Pe(t);if(n===null)return null;let i={...e},o=i;for(let e of n.slice(0,-1)){let t=Me(o[e])?{...o[e]}:{};o[e]=t,o=t}let a=n[n.length-1];return r===null?delete o[a]:o[a]=r,i}var Le=(e,t,r)=>{let n=e.revision??t.revision??(Me(r)?r.revision:void 0);return Number.isSafeInteger(n)&&n>=0?n:null},Ne=e=>e.path==="/revision"?{revision:e.value}:e.path===void 0||e.path===""||e.path==="/"?e.value:void 0;function qe(e){return e.flat().slice(0,8).map(e=>Me(e)&&e.type===void 0&&"messages"in e?{type:He,a2ui:e}:e)}function Ue(e){let t=/* @__PURE__ */new Map;for(let r of qe(e)){if(!Me(r)||r.type!==He||!Me(r.a2ui))return{ok:false,reason:"frame"};let e;try{e=Oe(JSON.stringify(r))}catch{return{ok:false,reason:"frame"}}if(e>Be.frameBytes)return{ok:false,reason:"too_large"};let n=r.a2ui,i=n.messages;if(n.version!==Ae||!Array.isArray(i)||i.length>Be.messages)return{ok:false,reason:"version"};let o=/* @__PURE__ */new Set;for(let e of i){if(!Me(e)||e.version!==void 0&&e.version!==Ae)return{ok:false,reason:"version"};if([e.createSurface,e.updateDataModel,e.updateComponents].filter(e=>e!==void 0).length!==1)return{ok:false,reason:"message"};let r=Me(e.createSurface)?e.createSurface:null,i=Me(e.updateDataModel)?e.updateDataModel:null,a=Me(e.updateComponents)?e.updateComponents:null,l=r??i??a;if(l===null)return{ok:false,reason:"message"};let s=l.surfaceId;if(typeof s!="string"||!Re.test(s))return{ok:false,reason:"message"};let d=t.get(s);if(r!==null){if(d!==void 0)continue;let e=r.components,i=r.dataModel;if(!Array.isArray(e)||e.length>Be.components||!(i===void 0||Me(i)))return{ok:false,reason:"message"};let a={surfaceId:s,catalogId:r.catalogId,revision:Le(r,n,i)??0,components:e.filter(Me),dataModel:i??{},updates:0,bytes:0};t.set(s,a),o.add(a);continue}if(d===void 0)continue;let c=Le(l,n,i===null?void 0:Ne(i));if(!(c===null||c<=d.revision)){if(++d.updates>Be.updates)return{ok:false,reason:"updates"};if(i!==null){if(i.value===void 0)return{ok:false,reason:"message"};let e=We(d.dataModel,i.path,i.value);if(e===null)return{ok:false,reason:"pointer"};d.dataModel=e}else{let e=l.components;if(!Array.isArray(e))return{ok:false,reason:"message"};let t=new Map(d.components.map(e=>[e.id,e]));for(let r of e)Me(r)&&typeof r.id=="string"&&t.set(r.id,r);if(t.size>Be.components)return{ok:false,reason:"message"};d.components=[...t.values()]}d.revision=c,o.add(d)}}for(let t of o)if(t.bytes+=e,t.bytes>Be.surfaceBytes)return{ok:false,reason:"too_large"}}return{ok:true,surfaces:[...t.values()].map(e=>({surfaceId:e.surfaceId,catalogId:e.catalogId,revision:e.revision,components:e.components,dataModel:e.dataModel}))}}var Ge="everfur_chat_cards_v1",$e="chat.cards",Xe=/* @__PURE__ */Object.freeze({cards:4,buttons:3,text:200}),Ve=["visit"],Ye=["book_vet"],Ke=["caution"],Ze=["ink","outline"],Qe=["urgency_soon"],Je=/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){0,4}$/,et=/^[A-Za-z0-9_.-]{1,64}$/,tt=/* @__PURE__ */new Set(["CardStack","ChatCard","ActionRow","ActionButton"]),rt=/<\s*[A-Za-z/!?]|&[A-Za-z#][A-Za-z0-9]*;/,nt=/[\u0000-\u001f\u007f-\u009f\u061c\u200b-\u200f\u2028-\u202e\u2060-\u2064\u2066-\u2069\ufeff]/,it=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ot=(e,t)=>e.includes(t);function at(e,t){let r=Pe(t);if(r===null)return;let n=e;for(let e of r)if(Me(n)&&it(n,e))n=n[e];else return;return n}var lt=e=>typeof e=="string"&&e.trim()!==""&&e.length<=Xe.text&&!rt.test(e)&&!nt.test(e),st=class{constructor(e){this.model=e;this.reason=null;this.byId=/* @__PURE__ */new Map;this.used=/* @__PURE__ */new Set(["root"])}refuse(e){return this.reason??=e,null}index(e){for(let t of e){let e=t.id;if(typeof e!="string"||!et.test(e)||this.byId.has(e))return this.refuse("surface")??false;if(!tt.has(t.component))return this.refuse("component")??false;this.byId.set(e,t)}return true}node(e){return this.byId.get(e)}unused(){return this.byId.size-[...this.used].filter(e=>this.byId.has(e)).length}take(e,t){let r=typeof e=="string"&&!this.used.has(e)?this.byId.get(e):void 0;return r?.component!==t?this.refuse("component"):(this.used.add(e),r)}children(e,t,r){let n=e.children??[];return Array.isArray(n)?n.length>r?this.refuse("limit"):n.length<t?this.refuse("component"):n:this.refuse("component")}text(e,t,r){if(!it(e,t))return r?void 0:this.refuse("text");let n=e[t],i=Me(n)&&Object.keys(n).length===1?at(this.model,n["@path"]):void 0;return lt(i)?i:this.refuse("text")}pick(e,t){return ot(e,t)?t:this.refuse("component")}action(e){let t=Me(e)&&Object.keys(e).length===1&&Me(e.functionCall)?e.functionCall:null,r=t!==null&&Me(t.args)&&Object.keys(t.args).length===1?t.args:null;if(t===null||r===null)return this.refuse("action");switch(t["@call"]){case"navigate":return ot(Ve,r.route)?{kind:"navigate",route:r.route}:this.refuse("action");case"track":return typeof r.event=="string"&&Je.test(r.event)?{kind:"track",event:r.event}:this.refuse("action");default:return this.refuse("action")}}button(e){let t=this.take(e,"ActionButton");if(t===null)return null;let r=t["@accessibility"],n=this.text(t,"label",false),i=Me(r)?this.text(r,"label",false):this.refuse("text"),o=this.pick(Ze,t.tone),a=this.action(t.action);return n==null||i==null||o===null||a===null?null:{id:t.id,label:n,a11y:i,tone:o,action:a}}card(e){let t=this.take(e,"ChatCard"),r=t===null?null:this.children(t,0,1);if(t===null||r===null)return null;let n=[];for(let e of r){let t=this.take(e,"ActionRow"),r=t===null?null:this.children(t,1,Xe.buttons);if(r===null)return null;for(let e of r){let t=this.button(e);if(t===null)return null;n.push(t)}}let i=this.pick(Ye,t.card),o=this.pick(Ke,t.tone),a=this.text(t,"title",false),l=this.text(t,"body",true);return i===null||o===null||a==null||l===null?null:{id:t.id,card:i,tone:o,title:a,body:l??null,buttons:n}}};function dt(e){if(e.catalogId!==Ge)return{refused:"catalog"};let t=e.dataModel,r=new st(t),n=()=>({refused:r.reason??"surface"});if(!r.index(e.components))return n();let i=r.node("root");if(i?.component!=="CardStack")return{refused:"surface"};let o=r.children(i,1,Xe.cards);if(o===null)return n();let a=[];for(let e of o){let t=r.card(e);if(t===null)return n();a.push(t)}let l=Array.isArray(t.covers)?Qe.filter(e=>t.covers.includes(e)):[];return{cards:a,covers:l,unused:r.unused()}}function ct(e){let t=Ue(e);if(!t.ok)return t;let r=[],n=/* @__PURE__ */new Set,i=0;for(let e of t.surfaces){let t=dt(e);if("refused"in t)return{ok:false,reason:t.refused};r.push(...t.cards);for(let e of t.covers)n.add(e);i+=t.unused}return r.length>Xe.cards?{ok:false,reason:"limit"}:r.length===0?{ok:false,reason:"empty"}:{ok:true,cards:{surfaceIds:t.surfaces.map(e=>e.surfaceId),cards:r,covers:[...n],unused:i}}}function ut(petRef,e){let t={entry:"chat",petRef:petRef};return e?.returnTo!==void 0&&(t.returnTo=e.returnTo),e?.usState!==void 0&&(t.usState=e.usState),e?.prefer!==void 0&&(t.prefer=e.prefer),t}function ok(e,t){/* @__PURE__ */
|
|
6
6
|
return Object.freeze({ok:true,value:e})}function err(e){/* @__PURE__ */
|
|
7
7
|
return Object.freeze({ok:false,error:e})}var pt=class _EverfurConfigError extends Error{constructor(e,t){super(t),this.name="EverfurConfigError",this.kind=e,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var ft=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),gt=globalThis,ht=gt[ft]??(gt[ft]=e.createContext(null));ht.displayName??="EverfurContext";function mt(){let t=e.useContext(ht);if(t===null)throw new pt("not-initialized","Everfur hooks must be called inside <EverfurProvider>. Wrap your tree once, high.");return t}var bt=[{wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true},{wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false},{wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false},{wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"anchor_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"anchor_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"anonTokenInvalid",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true},{wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"before_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundle_mismatch",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundle_not_uploaded",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundles_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"catalog_empty_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"catalog_shrink_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"endpoint_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"environment_mismatch",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"inbox_cursor_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false},{wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"item_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"linked_account_read_only",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false},{wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"open_url_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false},{wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"read_target_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"restricted_key",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_revoked",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false},{wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true},{wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"subscription_keys_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"ticket_not_resolved",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tickets_disabled",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"timezone_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"unrestrictedKeyRequired",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"user_ref_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"web_push_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false}],yt=/* @__PURE__ */Object.freeze(bt.map(e=>/* @__PURE__ */Object.freeze(e)));/* @__PURE__ */Object.freeze(yt.map(e=>e.wireCode));var wt=/* @__PURE__ */Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",session_revoked:"authExpired",anonTokenInvalid:"authRejected",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",unrestrictedKeyRequired:"accessDenied",user_ref_invalid:"validationFailed",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict",linked_account_read_only:"conflict",catalog_empty_refused:"conflict",catalog_shrink_refused:"conflict",endpoint_not_allowed:"validationFailed",event_id_invalid:"validationFailed",inbox_cursor_invalid:"validationFailed",item_id_invalid:"validationFailed",open_url_not_allowed:"validationFailed",read_target_invalid:"validationFailed",subscription_keys_invalid:"validationFailed",web_push_unavailable:"serviceUnavailable",anchor_not_found:"resourceNotFound",anchor_ref_invalid:"validationFailed",before_invalid:"validationFailed",bundle_mismatch:"validationFailed",bundle_not_uploaded:"validationFailed",bundles_unavailable:"serviceUnavailable",environment_mismatch:"validationFailed",restricted_key:"accessDenied",ticket_not_resolved:"conflict",tickets_disabled:"resourceNotFound",timezone_invalid:"validationFailed"}),vt=/* @__PURE__ */Object.freeze(yt.map(e=>/* @__PURE__ */Object.freeze({wireCode:e.wireCode,envelope:e.envelope,retryable:e.retryable,normalized:wt[e.wireCode]}))),kt=new Map(vt.map(e=>[e.envelope+e.wireCode.toUpperCase(),e])),xt=/* @__PURE__ */Object.freeze(["http_envelope",...[...new Set(vt.map(e=>e.envelope))].filter(e=>e!=="http_envelope").sort()]);function contractErrorFor(e,t){if(typeof e!="string")return;let r=e.trim().toUpperCase();if(r.length!==0)for(let e of[t??"http_envelope",...xt]){let t=kt.get(e+r);if(t)return t}}var _t=/* @__PURE__ */Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",identitySignatureRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",runtimeDisposed:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function categoryFor(e){return _t[e]}function fromWire(e){let t=contractErrorFor(e);if(t)return t.normalized;let r=(e??"").trim().toUpperCase(),n=r.replace(/[^A-Z0-9]/g,"");if(n==="AUTHREJECTED")return"authRejected";if(r.startsWith("AUTH"))return"authExpired";switch(n){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 St=/* @__PURE__ */new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function isAutoRetryable(e){return St.has(e)}var Ct=/* @__PURE__ */new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function isRetryableCode(e){return isAutoRetryable(e)||Ct.has(e)}var Tt=500,Ft=8e3,Et=4;function backoffDelayMs(e,t=Math.random){let r=Math.max(0,e),n=Math.min(Tt*2**r,Ft);return Math.floor(t()*n)}var zt="This feature isn't available on your account right now.",It="Something in that request was not right. Check the details and try again.",Ot=/* @__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:zt,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:It,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:zt,runtimeDisposed:It,unknown:"Something went wrong. Please try again."}),Ht="This session has ended. Please sign in again.",Dt="linked_account_read_only";function At(e,t,r){return e==="conflict"&&r===Dt?zt:(e==="authRejected"||e==="authExpired")&&typeof t=="string"&&t.trim().toLowerCase()==="session_revoked"?Ht:userFacingError(e)}function userFacingError(e){return Ot[e]}function Bt(e,t,r){Object.defineProperty(e,t,{value:r,enumerable:false,writable:false,configurable:false})}var jt=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(e,t){let r=contractErrorFor(t?.wireCode,t?.wireEnvelope),n=e==="conflict"&&t?.reasonCode===Dt,i={code:e,category:categoryFor(e),retryable:t?.retryable??(n?false:isRetryableCode(e)),displayMessage:At(e,t?.wireCode,n?Dt:null)};t?.httpStatus!==void 0&&(i.httpStatus=t.httpStatus),t?.requestId&&(i.requestId=t.requestId),typeof t?.reasonCode=="string"&&jt.test(t.reasonCode)&&(i.reasonCode=t.reasonCode);let o=t?.retryAfterSeconds;if(typeof o=="number"&&Number.isFinite(o)&&o>=0&&(i.retryAfterSeconds=Math.round(o)),r);return t?.wireMessage&&Bt(i,"wireMessage",t.wireMessage),t?.raw!==void 0&&t.raw!==null&&Bt(i,"raw",t.raw),/* @__PURE__ */Object.freeze(i)}function errorFrame(e){/* @__PURE__ */
|
|
8
8
|
return Object.freeze({kind:"error",terminal:true,code:e.code,retryable:e.retryable,wireMessage:e.wireMessage,synthesized:e.synthesized,lastEventId:e.lastEventId,serverRequestId:null,...e.freeCap?{freeCap:/* @__PURE__ */Object.freeze({...e.freeCap})}:{}})}var Rt="x-everfur-anon-token",Mt="anonTokenInvalid";async function Pt(e){if(e.userRef!==null||e.anonIdentity===void 0)return null;try{return await e.anonIdentity.token()}catch{return null}}function Wt(e,t){let r=e instanceof Error?e.message:typeof e=="string"?e:null;return makeEverfurError("authRejected",{retryable:false,...t?.wireCode?{wireCode:t.wireCode}:{},...t?.requestId?{requestId:t.requestId}:{},...r?{wireMessage:r}:{},...e!=null?{raw:e}:{}})}function authHeaders(e){let t={};return e.mode==="personalized"?t.authorization=`Bearer ${e.token}`:(t["x-everfur-partner-key"]=e.publishableKey,e.anonToken&&(t[Rt]=e.anonToken)),e.userRef&&(t["x-everfur-user-ref"]=e.userRef),e.sessionId&&(t["x-everfur-session-id"]=e.sessionId),t}function withAuthHeaders(e,t){return{...e,headers:{...Lt(e.headers),...authHeaders(t)}}}function Lt(e){if(!e)return{};let t={};for(let[r,n]of Object.entries(e)){let e=r.toLowerCase();e==="authorization"||e==="x-everfur-partner-key"||e===Rt||(t[r]=n)}return t}async function authedSend(e,t){if(t.mode==="anonymous"){let r=await Pt(t),n=await t.transport.request(withAuthHeaders(e,Nt(t,r)));if(n.ok||Ut(n.error.raw)!==Mt||t.anonIdentity===void 0||t.userRef!==null)return n;let i=await t.anonIdentity.token({forceRefresh:true});return i===null||i===r?n:t.transport.request(withAuthHeaders(e,Nt(t,i)))}let r;try{r=await t.identity.currentToken()}catch(e){return t.identity.reportRejected?.(),err(Wt(e))}let n=await t.transport.request(withAuthHeaders(e,{mode:"personalized",token:r,userRef:t.userRef,...t.sessionId?{sessionId:t.sessionId}:{}}));if(n.ok||n.error.httpStatus!==401)return n;let i;try{i=await t.identity.currentToken({forceRefresh:!0})}catch(e){return t.identity.reportRejected?.(),err(Wt(e,{wireCode:Ut(n.error.raw),requestId:n.error.requestId}))}let o=await t.transport.request(withAuthHeaders(e,{mode:"personalized",token:i,userRef:t.userRef,...t.sessionId?{sessionId:t.sessionId}:{}}));return!o.ok&&o.error.httpStatus===401?(t.identity.reportRejected?.(),err(qt(o.error))):o}function Nt(e,t){return{mode:"anonymous",publishableKey:e.publishableKey,userRef:e.userRef,...e.sessionId?{sessionId:e.sessionId}:{},...t!==null?{anonToken:t}:{}}}function qt(e){let t=e.raw,r=Ut(t);return makeEverfurError("authRejected",{retryable:false,...e.httpStatus!==void 0?{httpStatus:e.httpStatus}:{},...e.requestId?{requestId:e.requestId}:{},...r?{wireCode:r}:{},...e.reasonCode?{reasonCode:e.reasonCode}:{},...e.wireMessage?{wireMessage:e.wireMessage}:{},...t!=null?{raw:t}:{}})}function Ut(e){if(typeof e!="object"||e===null)return null;let t=e,r=(typeof t.error=="object"&&t.error!==null?t.error.code:void 0)??t.code;return typeof r=="string"&&r.length>0?r:null}function networkError(e){return makeEverfurError("internalError",{retryable:true,wireMessage:Gt(e)})}function Gt(e){return e instanceof Error?e.message:typeof e=="string"?e:"network request failed"}var $t=3e4,Xt=Ft*2,Vt="idempotency-key",Yt=/* @__PURE__ */new Set(["POST","PUT","PATCH","DELETE"]),Kt=/* @__PURE__ */Object.freeze({onEvent(){}}),Zt=/* @__PURE__ */Object.freeze({setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),now:()=>Date.now()});function Qt(e){let t=e.trim().replace(/[^A-Za-z0-9_.:-]/g,"-");return t.length===0?null:`efs_${t}`.slice(0,128)}function createRequestFunnel(e){let t=e.observer??Kt,r=e.timers??Zt,n=e.rng??Math.random,i=e.sleep??((e,t)=>gr(e,r,t)),o=e.maxAttempts??Et,a=e.unaryTimeoutMs??$t,l=e.newIdempotencyKey??er(),s=e=>{try{t.onEvent(e)}catch{}};async function d(t,d,c){let u=c?.maxAttempts,p=Math.max(1,u??o),f=c?.idempotent??Yt.has(d.method),g=c?.idempotencyKey===void 0?null:Qt(c.idempotencyKey),h=f?g??l():null,m=Jt(d,h),b=0;for(;;){let o=e=>/* @__PURE__ */Object.freeze({call:t,method:d.method,path:d.path,attempt:b,...h?{idempotencyKey:h}:{},...e});s(o({phase:"attempt"}));let l=pr(a,r),c=fr(l.signal,d.signal),f;try{f=await authedSend({...m,signal:c.signal},e.auth)}catch(e){f=err(networkError(e))}finally{c.dispose(),l.cancel()}if(f.ok)return s(o({phase:"settled",ok:true,reason:"ok"})),f;let g=f.error,y=rr(g,b,{maxAttempts:p,rng:n,now:r.now(),aborted:d.signal?.aborted===true,...u!==void 0?{perCallMaxAttempts:u}:{},...e.errorPolicy!==void 0?{policy:e.errorPolicy}:{}}),w={ok:false,code:g.code,reason:y.reason,...g.httpStatus!==void 0?{httpStatus:g.httpStatus}:{},...g.requestId!==void 0?{requestId:g.requestId}:{}};if(!y.retry)return s(o({phase:"settled",...w})),err(g);if(s(o({phase:"retry",...w,delayMs:y.delayMs})),await i(y.delayMs,d.signal),d.signal?.aborted===true)return s(o({phase:"settled",...w,reason:"aborted"})),err(g);b+=1}}async function c(t){return withAuthHeaders(t,await ur(e.auth))}async function*u(t,r,n){s(
|
|
@@ -15,4 +15,4 @@ return r.jsxs(Card,{variant:"plain",tint:gi[e.tone](o.colors),testID:`everfur-ca
|
|
|
15
15
|
/* @__PURE__ */r.jsx(Icon,{name:fi[e.card],size:22,color:o.colors.ink}),
|
|
16
16
|
/* @__PURE__ */r.jsxs(t.View,{style:yi.words,children:[
|
|
17
17
|
/* @__PURE__ */r.jsx(Text,{variant:"heading",level:3,children:e.title}),e.body!==null?/* @__PURE__ */r.jsx(Text,{variant:"body",children:e.body}):null]})]}),e.buttons.length===0?null:/* @__PURE__ */r.jsx(t.View,{style:yi.buttons,children:e.buttons.map(t=>/* @__PURE__ */r.jsx(Button,{label:t.label,accessibilityLabel:t.a11y,tone:t.tone,loading:i&&t.action.kind==="navigate"&&t.action.route==="visit",loadingIndicator:"none",onPress:n(t.action,e.id)??void 0,testID:`everfur-card-${t.id}`,style:yi.button},t.id))})]})}function bi(e,t,r){e.cover(e=>r.includes("urgency_soon")?t:e===t?null:e)}function Uncovered({messageId:t,host:r}){return e.useEffect(()=>bi(r,t,[]),[t,r]),null}function ServerCards(e){/* @__PURE__ */
|
|
18
|
-
return r.jsx(HostRender,{resetKey:e.a2ui,fallback:/* @__PURE__ */r.jsx(Uncovered,{messageId:e.message.id,host:e.host}),render:()=>/* @__PURE__ */r.jsx(Cards,{...e})})}function Cards({message:n,a2ui:i,host:o}){let a=n.id,{runtime:l}=mt(),{run:s,opening:d}=mi(o),c=e.useMemo(()=>ct(i),[i]),u=c.ok&&c.cards.cards.every(e=>e.buttons.every(t=>s(t.action,e.id)!==null)),p=c.ok&&u?c.cards:null,f=c.ok?u?null:"unrunnable":c.reason,g=p===null?"":p.covers.join(",");return e.useEffect(()=>{f!==null?hi(l,"chat.a2ui.refused",{reason:f}):hi(l,"chat.a2ui.drawn",{cards:c.ok?c.cards.cards.length:0})},[c,f,l]),e.useEffect(()=>{bi(o,a,g===""?[]:g.split(","))},[o,a,g]),p===null?null:/* @__PURE__ */r.jsx(BlockScope,{children:/* @__PURE__ */r.jsx(t.View,{style:yi.stack,testID:"everfur-server-cards",children:p.cards.map(e=>/* @__PURE__ */r.jsx(CardView,{card:e,run:s,opening:d},e.id))})})}var yi=t.StyleSheet.create({stack:{gap:10,marginTop:10,alignSelf:"stretch"},head:{flexDirection:"row",gap:10,alignItems:"flex-start"},words:{flex:1,gap:4},buttons:{flexDirection:"row",flexWrap:"wrap",gap:8,marginTop:12},button:{minHeight:44}});var wi=ServerCards;exports.ServerCards=wi;
|
|
18
|
+
return r.jsx(HostRender,{resetKey:e.a2ui,fallback:/* @__PURE__ */r.jsx(Uncovered,{messageId:e.message.id,host:e.host}),render:()=>/* @__PURE__ */r.jsx(Cards,{...e})})}function Cards({message:n,a2ui:i,host:o}){let a=n.id,{runtime:l}=mt(),{run:s,opening:d}=mi(o),c=e.useMemo(()=>ct(i),[i]),u=c.ok&&c.cards.cards.every(e=>e.buttons.every(t=>s(t.action,e.id)!==null)),p=c.ok&&u?c.cards:null,f=c.ok?u?null:"unrunnable":c.reason,g=p===null?"":p.covers.join(",");return e.useEffect(()=>{f!==null?hi(l,"chat.a2ui.refused",{reason:f}):hi(l,"chat.a2ui.drawn",{cards:c.ok?c.cards.cards.length:0,unused:c.ok?c.cards.unused:0})},[c,f,l]),e.useEffect(()=>{bi(o,a,g===""?[]:g.split(","))},[o,a,g]),p===null?null:/* @__PURE__ */r.jsx(BlockScope,{children:/* @__PURE__ */r.jsx(t.View,{style:yi.stack,testID:"everfur-server-cards",children:p.cards.map(e=>/* @__PURE__ */r.jsx(CardView,{card:e,run:s,opening:d},e.id))})})}var yi=t.StyleSheet.create({stack:{gap:10,marginTop:10,alignSelf:"stretch"},head:{flexDirection:"row",gap:10,alignItems:"flex-start"},words:{flex:1,gap:4},buttons:{flexDirection:"row",flexWrap:"wrap",gap:8,marginTop:12},button:{minHeight:44}});var wi=ServerCards;exports.ServerCards=wi;
|