@solvimon/solvimon-web 0.1.0-alpha.28 → 0.1.0-alpha.29
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/README.md +26 -1
- package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
- package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
- package/dist/{Avatar.vue.es-Beg7umjO.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +8 -8
- package/dist/{Button.vue.es-rh6mITmN.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
- package/dist/{ChargeOnDemandModal-CPjPa_uq.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +35 -34
- package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
- package/dist/{Chip.vue.es-Cn2R_0mE.mjs → Chip.vue.es-D3UDSyXC.mjs} +3 -3
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/{ContextMenu.vue.es-DRxsa7bZ.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
- package/dist/{CustomerBillingInformation.vue.es-DQfL5RMR.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +21 -20
- package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs} +798 -792
- package/dist/{DividerText.vue.es-M0XqSz55.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
- package/dist/{ErrorNotification.vue.es-CKlt4hr2.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
- package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
- package/dist/{IconButton.vue.es-oe4MVBK1.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
- package/dist/{IconTitle.vue.es-BO6KBS4v.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
- package/dist/{Input.vue.es-DAlPmtE_.mjs → Input.vue.es-D8Oj8MWv.mjs} +23 -22
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs} +4 -4
- package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
- package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
- package/dist/{Modal.vue.es-CTNACAst.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +46 -88
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-BmA8jbMb.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D1Xw-xIt.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs} +68 -69
- package/dist/{PaymentIntegrationFormAdyen-CfT5aD4L.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +126 -117
- package/dist/{PaymentIntegrationFormStripe-DKXJ-mjd.mjs → PaymentIntegrationFormStripe-BYdAkvLt.mjs} +193 -179
- package/dist/{PaymentMethod.vue.es-Cauxx4Xr.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
- package/dist/{PaymentMethodForm-CypZOYUZ.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +7 -7
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs} +36 -35
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +7 -7
- package/dist/{PlanCustomizationEditor-Xtww2r9K.mjs → PlanCustomizationEditor-D29N4HUM.mjs} +9 -9
- package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
- package/dist/{PortalNotAvailable-B_59GUwN.mjs → PortalNotAvailable-DPE9y37H.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-C9LJW3b8.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +32 -32
- package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
- package/dist/{Section.vue.es-iS8hVGWA.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
- package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
- package/dist/{StepInput.vue.es-Dpan1RQd.mjs → StepInput.vue.es-DweyzpkL.mjs} +4 -4
- package/dist/{SubscriptionDetails.entry.ce-DufQX3uI.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +230 -225
- package/dist/{SubscriptionSchedules-DAahcNoI.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs} +3 -3
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +23 -22
- package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
- package/dist/{TrialChip.vue.es-B-XBSHWE.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
- package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
- package/dist/{cn.es-2bVdkiFV.mjs → cn.es-B8acFrov.mjs} +380 -476
- package/dist/components/BillingInformation/BillingInformation.mjs +9 -7
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +57 -54
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -18
- package/dist/components/Invoice/Invoice.mjs +2660 -193
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +6 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +18 -17
- package/dist/components/InvoicesList/InvoicesList.mjs +13 -11
- package/dist/components/PaymentHistory/PaymentHistory.mjs +8 -6
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +19 -17
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +19 -17
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +20 -18
- package/dist/components/WalletBalances/WalletBalances.mjs +17 -15
- package/dist/customElements-BTj4ii4f.mjs +5072 -0
- package/dist/{customer-CqddTiOr.mjs → customer-BIjC0CWJ.mjs} +1 -1
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/{de-DE-BW8dMvhW.mjs → de-DE-DBbERiFr.mjs} +38 -0
- package/dist/{de-DE-BNMj3boy.mjs → de-DE-UJ6X6jXu.mjs} +1 -1
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/{formControl-CsITfsBk.mjs → formControl-BZQLHnOO.mjs} +5 -5
- package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
- package/dist/fr-FR-IWJE-urI.mjs +431 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.es-CpmQmvOg.mjs +633 -0
- package/dist/index.mjs +2 -2
- package/dist/{invoices-Cf1qDAv4.mjs → invoices-e1sKLgxg.mjs} +3 -3
- package/dist/{it-IT-Byg06KWc.mjs → it-IT-B7ui2oxO.mjs} +38 -0
- package/dist/{it-IT-DRvuxM1F.mjs → it-IT-DnJP5URH.mjs} +1 -1
- package/dist/{nl-NL-x3zQqzZ7.mjs → nl-NL-Bafh2xoT.mjs} +38 -0
- package/dist/{nl-NL-DLUwWbMG.mjs → nl-NL-q9xfTZF0.mjs} +1 -1
- package/dist/{paymentMethods-BUuOmDq9.mjs → paymentMethods-B_82JGk_.mjs} +2 -2
- package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
- package/dist/{paymentOutcome-D17VD4MV.mjs → paymentOutcome-BXEU5-84.mjs} +5 -5
- package/dist/payments-BnxbzQUC.mjs +68 -0
- package/dist/pricing-BOhvWWMj.mjs +29 -0
- package/dist/{pricingPlanScheduleOverrides-COr9F8DO.mjs → pricingPlanScheduleOverrides-Dxv5FOBd.mjs} +2 -2
- package/dist/{pricingPlanSchedules-BK_o9p6h.mjs → pricingPlanSchedules-Dv7ZCgNp.mjs} +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +128 -83
- package/dist/screens/PayInvoice/PayInvoice.mjs +572 -218
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +21 -19
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +261 -266
- package/dist/{sorting.es-qtEN8J8T.mjs → sorting.es-CVyKw23D.mjs} +1 -1
- package/dist/subscriptions-BWXZGK0E.mjs +66 -0
- package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -0
- package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
- package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +11 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +4 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +23 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -1
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +2 -0
- package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- package/dist/types/public/core/types.d.ts +5 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +3 -1
- package/dist/types/translations/supported.d.ts +1 -1
- package/dist/types/types/portalAuthentication.d.ts +2 -0
- package/dist/types/types/portalToken.d.ts +9 -0
- package/dist/types/types/shippingAddress.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- package/dist/{useActionDispatchProvider-DC_fUykI.mjs → useActionDispatchProvider-3W2vEyIg.mjs} +1 -1
- package/dist/{useCustomer-C3kTh7wn.mjs → useCustomer-cObBvDOu.mjs} +2 -2
- package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
- package/dist/{useIncrementalLoading-C_sHmW7d.mjs → useIncrementalLoading-CATuO36d.mjs} +2 -2
- package/dist/{useInvoiceData-BIh8-h8b.mjs → useInvoiceData-DD44HTl7.mjs} +2 -2
- package/dist/{useInvoicesList-Y6p0Pqpy.mjs → useInvoicesList-CpB-41MQ.mjs} +10 -10
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
- package/dist/{usePaymentFormHold-FfNc578l.mjs → usePaymentFormHold-ByUZi3A-.mjs} +28 -36
- package/dist/{usePaymentMethodAvailability-CnYTvG15.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +4 -4
- package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
- package/dist/{usePayments-CykCZPG2.mjs → usePayments-BXABv-lF.mjs} +9 -9
- package/dist/{usePortal-CxzKGhbK.mjs → usePortal-CwR_FxTb.mjs} +1 -1
- package/dist/{useService-B0OQJmif.mjs → useService-BZcbUZHI.mjs} +3 -3
- package/dist/{useTimePeriod.es-JkXdHNWr.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
- package/package.json +7 -7
- package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +0 -50
- package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +0 -5279
- package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +0 -362
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
- package/dist/InvoiceSummary.vue.es-DbNoGfYN.mjs +0 -2596
- package/dist/RadioGroupExtended.vue.es-UtKsdmiv.mjs +0 -163
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs +0 -688
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs +0 -5221
- package/dist/TooltipParagraph.vue.es-BjCn2BF6.mjs +0 -129
- package/dist/customElements-Di3zwlEU.mjs +0 -6447
- package/dist/customer.es-B5ppZf0j.mjs +0 -20
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
- package/dist/payments-Ci8bF4C6.mjs +0 -45
- package/dist/subscriptions-CwogJODR.mjs +0 -54
- package/dist/useCustomerFormLabels-CK7K50nB.mjs +0 -1369
- package/dist/useLoadInitialData-4k_Cyqef.mjs +0 -15
- package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +0 -40
- package/dist/usePaymentMethods-gvr-rmwE.mjs +0 -15
|
@@ -1,1108 +0,0 @@
|
|
|
1
|
-
import { computed as _, ref as Q, shallowRef as It, watch as mt, getCurrentScope as Xt, onScopeDispose as jt, shallowReadonly as X, unref as Yt } from "vue";
|
|
2
|
-
const $e = (t, e) => {
|
|
3
|
-
const n = t.__vccOpts || t;
|
|
4
|
-
for (const [o, i] of e)
|
|
5
|
-
n[o] = i;
|
|
6
|
-
return n;
|
|
7
|
-
}, Y = Math.min, C = Math.max, rt = Math.round, it = Math.floor, P = (t) => ({
|
|
8
|
-
x: t,
|
|
9
|
-
y: t
|
|
10
|
-
}), qt = {
|
|
11
|
-
left: "right",
|
|
12
|
-
right: "left",
|
|
13
|
-
bottom: "top",
|
|
14
|
-
top: "bottom"
|
|
15
|
-
}, Ut = {
|
|
16
|
-
start: "end",
|
|
17
|
-
end: "start"
|
|
18
|
-
};
|
|
19
|
-
function bt(t, e, n) {
|
|
20
|
-
return C(t, Y(e, n));
|
|
21
|
-
}
|
|
22
|
-
function et(t, e) {
|
|
23
|
-
return typeof t == "function" ? t(e) : t;
|
|
24
|
-
}
|
|
25
|
-
function B(t) {
|
|
26
|
-
return t.split("-")[0];
|
|
27
|
-
}
|
|
28
|
-
function nt(t) {
|
|
29
|
-
return t.split("-")[1];
|
|
30
|
-
}
|
|
31
|
-
function Pt(t) {
|
|
32
|
-
return t === "x" ? "y" : "x";
|
|
33
|
-
}
|
|
34
|
-
function Mt(t) {
|
|
35
|
-
return t === "y" ? "height" : "width";
|
|
36
|
-
}
|
|
37
|
-
const Kt = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
38
|
-
function k(t) {
|
|
39
|
-
return Kt.has(B(t)) ? "y" : "x";
|
|
40
|
-
}
|
|
41
|
-
function Ft(t) {
|
|
42
|
-
return Pt(k(t));
|
|
43
|
-
}
|
|
44
|
-
function Gt(t, e, n) {
|
|
45
|
-
n === void 0 && (n = !1);
|
|
46
|
-
const o = nt(t), i = Ft(t), s = Mt(i);
|
|
47
|
-
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
48
|
-
return e.reference[s] > e.floating[s] && (r = st(r)), [r, st(r)];
|
|
49
|
-
}
|
|
50
|
-
function Jt(t) {
|
|
51
|
-
const e = st(t);
|
|
52
|
-
return [gt(t), e, gt(e)];
|
|
53
|
-
}
|
|
54
|
-
function gt(t) {
|
|
55
|
-
return t.replace(/start|end/g, (e) => Ut[e]);
|
|
56
|
-
}
|
|
57
|
-
const Rt = ["left", "right"], At = ["right", "left"], Qt = ["top", "bottom"], Zt = ["bottom", "top"];
|
|
58
|
-
function te(t, e, n) {
|
|
59
|
-
switch (t) {
|
|
60
|
-
case "top":
|
|
61
|
-
case "bottom":
|
|
62
|
-
return n ? e ? At : Rt : e ? Rt : At;
|
|
63
|
-
case "left":
|
|
64
|
-
case "right":
|
|
65
|
-
return e ? Qt : Zt;
|
|
66
|
-
default:
|
|
67
|
-
return [];
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function ee(t, e, n, o) {
|
|
71
|
-
const i = nt(t);
|
|
72
|
-
let s = te(B(t), n === "start", o);
|
|
73
|
-
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(gt)))), s;
|
|
74
|
-
}
|
|
75
|
-
function st(t) {
|
|
76
|
-
return t.replace(/left|right|bottom|top/g, (e) => qt[e]);
|
|
77
|
-
}
|
|
78
|
-
function ne(t) {
|
|
79
|
-
return {
|
|
80
|
-
top: 0,
|
|
81
|
-
right: 0,
|
|
82
|
-
bottom: 0,
|
|
83
|
-
left: 0,
|
|
84
|
-
...t
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function oe(t) {
|
|
88
|
-
return typeof t != "number" ? ne(t) : {
|
|
89
|
-
top: t,
|
|
90
|
-
right: t,
|
|
91
|
-
bottom: t,
|
|
92
|
-
left: t
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
function lt(t) {
|
|
96
|
-
const {
|
|
97
|
-
x: e,
|
|
98
|
-
y: n,
|
|
99
|
-
width: o,
|
|
100
|
-
height: i
|
|
101
|
-
} = t;
|
|
102
|
-
return {
|
|
103
|
-
width: o,
|
|
104
|
-
height: i,
|
|
105
|
-
top: n,
|
|
106
|
-
left: e,
|
|
107
|
-
right: e + o,
|
|
108
|
-
bottom: n + i,
|
|
109
|
-
x: e,
|
|
110
|
-
y: n
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function Ot(t, e, n) {
|
|
114
|
-
let {
|
|
115
|
-
reference: o,
|
|
116
|
-
floating: i
|
|
117
|
-
} = t;
|
|
118
|
-
const s = k(e), r = Ft(e), l = Mt(r), f = B(e), a = s === "y", c = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[l] / 2 - i[l] / 2;
|
|
119
|
-
let d;
|
|
120
|
-
switch (f) {
|
|
121
|
-
case "top":
|
|
122
|
-
d = {
|
|
123
|
-
x: c,
|
|
124
|
-
y: o.y - i.height
|
|
125
|
-
};
|
|
126
|
-
break;
|
|
127
|
-
case "bottom":
|
|
128
|
-
d = {
|
|
129
|
-
x: c,
|
|
130
|
-
y: o.y + o.height
|
|
131
|
-
};
|
|
132
|
-
break;
|
|
133
|
-
case "right":
|
|
134
|
-
d = {
|
|
135
|
-
x: o.x + o.width,
|
|
136
|
-
y: u
|
|
137
|
-
};
|
|
138
|
-
break;
|
|
139
|
-
case "left":
|
|
140
|
-
d = {
|
|
141
|
-
x: o.x - i.width,
|
|
142
|
-
y: u
|
|
143
|
-
};
|
|
144
|
-
break;
|
|
145
|
-
default:
|
|
146
|
-
d = {
|
|
147
|
-
x: o.x,
|
|
148
|
-
y: o.y
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
switch (nt(e)) {
|
|
152
|
-
case "start":
|
|
153
|
-
d[r] -= m * (n && a ? -1 : 1);
|
|
154
|
-
break;
|
|
155
|
-
case "end":
|
|
156
|
-
d[r] += m * (n && a ? -1 : 1);
|
|
157
|
-
break;
|
|
158
|
-
}
|
|
159
|
-
return d;
|
|
160
|
-
}
|
|
161
|
-
async function ie(t, e) {
|
|
162
|
-
var n;
|
|
163
|
-
e === void 0 && (e = {});
|
|
164
|
-
const {
|
|
165
|
-
x: o,
|
|
166
|
-
y: i,
|
|
167
|
-
platform: s,
|
|
168
|
-
rects: r,
|
|
169
|
-
elements: l,
|
|
170
|
-
strategy: f
|
|
171
|
-
} = t, {
|
|
172
|
-
boundary: a = "clippingAncestors",
|
|
173
|
-
rootBoundary: c = "viewport",
|
|
174
|
-
elementContext: u = "floating",
|
|
175
|
-
altBoundary: m = !1,
|
|
176
|
-
padding: d = 0
|
|
177
|
-
} = et(e, t), h = oe(d), w = l[m ? u === "floating" ? "reference" : "floating" : u], g = lt(await s.getClippingRect({
|
|
178
|
-
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
|
|
179
|
-
boundary: a,
|
|
180
|
-
rootBoundary: c,
|
|
181
|
-
strategy: f
|
|
182
|
-
})), x = u === "floating" ? {
|
|
183
|
-
x: o,
|
|
184
|
-
y: i,
|
|
185
|
-
width: r.floating.width,
|
|
186
|
-
height: r.floating.height
|
|
187
|
-
} : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), b = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
|
|
188
|
-
x: 1,
|
|
189
|
-
y: 1
|
|
190
|
-
} : {
|
|
191
|
-
x: 1,
|
|
192
|
-
y: 1
|
|
193
|
-
}, A = lt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
194
|
-
elements: l,
|
|
195
|
-
rect: x,
|
|
196
|
-
offsetParent: y,
|
|
197
|
-
strategy: f
|
|
198
|
-
}) : x);
|
|
199
|
-
return {
|
|
200
|
-
top: (g.top - A.top + h.top) / b.y,
|
|
201
|
-
bottom: (A.bottom - g.bottom + h.bottom) / b.y,
|
|
202
|
-
left: (g.left - A.left + h.left) / b.x,
|
|
203
|
-
right: (A.right - g.right + h.right) / b.x
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
const re = async (t, e, n) => {
|
|
207
|
-
const {
|
|
208
|
-
placement: o = "bottom",
|
|
209
|
-
strategy: i = "absolute",
|
|
210
|
-
middleware: s = [],
|
|
211
|
-
platform: r
|
|
212
|
-
} = n, l = s.filter(Boolean), f = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
213
|
-
let a = await r.getElementRects({
|
|
214
|
-
reference: t,
|
|
215
|
-
floating: e,
|
|
216
|
-
strategy: i
|
|
217
|
-
}), {
|
|
218
|
-
x: c,
|
|
219
|
-
y: u
|
|
220
|
-
} = Ot(a, o, f), m = o, d = {}, h = 0;
|
|
221
|
-
for (let w = 0; w < l.length; w++) {
|
|
222
|
-
var p;
|
|
223
|
-
const {
|
|
224
|
-
name: g,
|
|
225
|
-
fn: x
|
|
226
|
-
} = l[w], {
|
|
227
|
-
x: y,
|
|
228
|
-
y: b,
|
|
229
|
-
data: A,
|
|
230
|
-
reset: R
|
|
231
|
-
} = await x({
|
|
232
|
-
x: c,
|
|
233
|
-
y: u,
|
|
234
|
-
initialPlacement: o,
|
|
235
|
-
placement: m,
|
|
236
|
-
strategy: i,
|
|
237
|
-
middlewareData: d,
|
|
238
|
-
rects: a,
|
|
239
|
-
platform: {
|
|
240
|
-
...r,
|
|
241
|
-
detectOverflow: (p = r.detectOverflow) != null ? p : ie
|
|
242
|
-
},
|
|
243
|
-
elements: {
|
|
244
|
-
reference: t,
|
|
245
|
-
floating: e
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
c = y ?? c, u = b ?? u, d = {
|
|
249
|
-
...d,
|
|
250
|
-
[g]: {
|
|
251
|
-
...d[g],
|
|
252
|
-
...A
|
|
253
|
-
}
|
|
254
|
-
}, R && h <= 50 && (h++, typeof R == "object" && (R.placement && (m = R.placement), R.rects && (a = R.rects === !0 ? await r.getElementRects({
|
|
255
|
-
reference: t,
|
|
256
|
-
floating: e,
|
|
257
|
-
strategy: i
|
|
258
|
-
}) : R.rects), {
|
|
259
|
-
x: c,
|
|
260
|
-
y: u
|
|
261
|
-
} = Ot(a, m, f)), w = -1);
|
|
262
|
-
}
|
|
263
|
-
return {
|
|
264
|
-
x: c,
|
|
265
|
-
y: u,
|
|
266
|
-
placement: m,
|
|
267
|
-
strategy: i,
|
|
268
|
-
middlewareData: d
|
|
269
|
-
};
|
|
270
|
-
}, se = function(t) {
|
|
271
|
-
return t === void 0 && (t = {}), {
|
|
272
|
-
name: "flip",
|
|
273
|
-
options: t,
|
|
274
|
-
async fn(e) {
|
|
275
|
-
var n, o;
|
|
276
|
-
const {
|
|
277
|
-
placement: i,
|
|
278
|
-
middlewareData: s,
|
|
279
|
-
rects: r,
|
|
280
|
-
initialPlacement: l,
|
|
281
|
-
platform: f,
|
|
282
|
-
elements: a
|
|
283
|
-
} = e, {
|
|
284
|
-
mainAxis: c = !0,
|
|
285
|
-
crossAxis: u = !0,
|
|
286
|
-
fallbackPlacements: m,
|
|
287
|
-
fallbackStrategy: d = "bestFit",
|
|
288
|
-
fallbackAxisSideDirection: h = "none",
|
|
289
|
-
flipAlignment: p = !0,
|
|
290
|
-
...w
|
|
291
|
-
} = et(t, e);
|
|
292
|
-
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
293
|
-
return {};
|
|
294
|
-
const g = B(i), x = k(l), y = B(l) === l, b = await (f.isRTL == null ? void 0 : f.isRTL(a.floating)), A = m || (y || !p ? [st(l)] : Jt(l)), R = h !== "none";
|
|
295
|
-
!m && R && A.push(...ee(l, p, h, b));
|
|
296
|
-
const v = [l, ...A], O = await f.detectOverflow(e, w), D = [];
|
|
297
|
-
let V = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
298
|
-
if (c && D.push(O[g]), u) {
|
|
299
|
-
const $ = Gt(i, r, b);
|
|
300
|
-
D.push(O[$[0]], O[$[1]]);
|
|
301
|
-
}
|
|
302
|
-
if (V = [...V, {
|
|
303
|
-
placement: i,
|
|
304
|
-
overflows: D
|
|
305
|
-
}], !D.every(($) => $ <= 0)) {
|
|
306
|
-
var U, K;
|
|
307
|
-
const $ = (((U = s.flip) == null ? void 0 : U.index) || 0) + 1, dt = v[$];
|
|
308
|
-
if (dt && (!(u === "alignment" ? x !== k(dt) : !1) || // We leave the current main axis only if every placement on that axis
|
|
309
|
-
// overflows the main axis.
|
|
310
|
-
V.every((E) => k(E.placement) === x ? E.overflows[0] > 0 : !0)))
|
|
311
|
-
return {
|
|
312
|
-
data: {
|
|
313
|
-
index: $,
|
|
314
|
-
overflows: V
|
|
315
|
-
},
|
|
316
|
-
reset: {
|
|
317
|
-
placement: dt
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
let J = (K = V.filter((H) => H.overflows[0] <= 0).sort((H, E) => H.overflows[1] - E.overflows[1])[0]) == null ? void 0 : K.placement;
|
|
321
|
-
if (!J)
|
|
322
|
-
switch (d) {
|
|
323
|
-
case "bestFit": {
|
|
324
|
-
var G;
|
|
325
|
-
const H = (G = V.filter((E) => {
|
|
326
|
-
if (R) {
|
|
327
|
-
const W = k(E.placement);
|
|
328
|
-
return W === x || // Create a bias to the `y` side axis due to horizontal
|
|
329
|
-
// reading directions favoring greater width.
|
|
330
|
-
W === "y";
|
|
331
|
-
}
|
|
332
|
-
return !0;
|
|
333
|
-
}).map((E) => [E.placement, E.overflows.filter((W) => W > 0).reduce((W, zt) => W + zt, 0)]).sort((E, W) => E[1] - W[1])[0]) == null ? void 0 : G[0];
|
|
334
|
-
H && (J = H);
|
|
335
|
-
break;
|
|
336
|
-
}
|
|
337
|
-
case "initialPlacement":
|
|
338
|
-
J = l;
|
|
339
|
-
break;
|
|
340
|
-
}
|
|
341
|
-
if (i !== J)
|
|
342
|
-
return {
|
|
343
|
-
reset: {
|
|
344
|
-
placement: J
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
return {};
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
}, le = /* @__PURE__ */ new Set(["left", "top"]);
|
|
352
|
-
async function ce(t, e) {
|
|
353
|
-
const {
|
|
354
|
-
placement: n,
|
|
355
|
-
platform: o,
|
|
356
|
-
elements: i
|
|
357
|
-
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = B(n), l = nt(n), f = k(n) === "y", a = le.has(r) ? -1 : 1, c = s && f ? -1 : 1, u = et(e, t);
|
|
358
|
-
let {
|
|
359
|
-
mainAxis: m,
|
|
360
|
-
crossAxis: d,
|
|
361
|
-
alignmentAxis: h
|
|
362
|
-
} = typeof u == "number" ? {
|
|
363
|
-
mainAxis: u,
|
|
364
|
-
crossAxis: 0,
|
|
365
|
-
alignmentAxis: null
|
|
366
|
-
} : {
|
|
367
|
-
mainAxis: u.mainAxis || 0,
|
|
368
|
-
crossAxis: u.crossAxis || 0,
|
|
369
|
-
alignmentAxis: u.alignmentAxis
|
|
370
|
-
};
|
|
371
|
-
return l && typeof h == "number" && (d = l === "end" ? h * -1 : h), f ? {
|
|
372
|
-
x: d * c,
|
|
373
|
-
y: m * a
|
|
374
|
-
} : {
|
|
375
|
-
x: m * a,
|
|
376
|
-
y: d * c
|
|
377
|
-
};
|
|
378
|
-
}
|
|
379
|
-
const ae = function(t) {
|
|
380
|
-
return t === void 0 && (t = 0), {
|
|
381
|
-
name: "offset",
|
|
382
|
-
options: t,
|
|
383
|
-
async fn(e) {
|
|
384
|
-
var n, o;
|
|
385
|
-
const {
|
|
386
|
-
x: i,
|
|
387
|
-
y: s,
|
|
388
|
-
placement: r,
|
|
389
|
-
middlewareData: l
|
|
390
|
-
} = e, f = await ce(e, t);
|
|
391
|
-
return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
392
|
-
x: i + f.x,
|
|
393
|
-
y: s + f.y,
|
|
394
|
-
data: {
|
|
395
|
-
...f,
|
|
396
|
-
placement: r
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
};
|
|
401
|
-
}, fe = function(t) {
|
|
402
|
-
return t === void 0 && (t = {}), {
|
|
403
|
-
name: "shift",
|
|
404
|
-
options: t,
|
|
405
|
-
async fn(e) {
|
|
406
|
-
const {
|
|
407
|
-
x: n,
|
|
408
|
-
y: o,
|
|
409
|
-
placement: i,
|
|
410
|
-
platform: s
|
|
411
|
-
} = e, {
|
|
412
|
-
mainAxis: r = !0,
|
|
413
|
-
crossAxis: l = !1,
|
|
414
|
-
limiter: f = {
|
|
415
|
-
fn: (g) => {
|
|
416
|
-
let {
|
|
417
|
-
x,
|
|
418
|
-
y
|
|
419
|
-
} = g;
|
|
420
|
-
return {
|
|
421
|
-
x,
|
|
422
|
-
y
|
|
423
|
-
};
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
...a
|
|
427
|
-
} = et(t, e), c = {
|
|
428
|
-
x: n,
|
|
429
|
-
y: o
|
|
430
|
-
}, u = await s.detectOverflow(e, a), m = k(B(i)), d = Pt(m);
|
|
431
|
-
let h = c[d], p = c[m];
|
|
432
|
-
if (r) {
|
|
433
|
-
const g = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", y = h + u[g], b = h - u[x];
|
|
434
|
-
h = bt(y, h, b);
|
|
435
|
-
}
|
|
436
|
-
if (l) {
|
|
437
|
-
const g = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", y = p + u[g], b = p - u[x];
|
|
438
|
-
p = bt(y, p, b);
|
|
439
|
-
}
|
|
440
|
-
const w = f.fn({
|
|
441
|
-
...e,
|
|
442
|
-
[d]: h,
|
|
443
|
-
[m]: p
|
|
444
|
-
});
|
|
445
|
-
return {
|
|
446
|
-
...w,
|
|
447
|
-
data: {
|
|
448
|
-
x: w.x - n,
|
|
449
|
-
y: w.y - o,
|
|
450
|
-
enabled: {
|
|
451
|
-
[d]: r,
|
|
452
|
-
[m]: l
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
};
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
}, ue = function(t) {
|
|
459
|
-
return t === void 0 && (t = {}), {
|
|
460
|
-
name: "size",
|
|
461
|
-
options: t,
|
|
462
|
-
async fn(e) {
|
|
463
|
-
var n, o;
|
|
464
|
-
const {
|
|
465
|
-
placement: i,
|
|
466
|
-
rects: s,
|
|
467
|
-
platform: r,
|
|
468
|
-
elements: l
|
|
469
|
-
} = e, {
|
|
470
|
-
apply: f = () => {
|
|
471
|
-
},
|
|
472
|
-
...a
|
|
473
|
-
} = et(t, e), c = await r.detectOverflow(e, a), u = B(i), m = nt(i), d = k(i) === "y", {
|
|
474
|
-
width: h,
|
|
475
|
-
height: p
|
|
476
|
-
} = s.floating;
|
|
477
|
-
let w, g;
|
|
478
|
-
u === "top" || u === "bottom" ? (w = u, g = m === (await (r.isRTL == null ? void 0 : r.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = m === "end" ? "top" : "bottom");
|
|
479
|
-
const x = p - c.top - c.bottom, y = h - c.left - c.right, b = Y(p - c[w], x), A = Y(h - c[g], y), R = !e.middlewareData.shift;
|
|
480
|
-
let v = b, O = A;
|
|
481
|
-
if ((n = e.middlewareData.shift) != null && n.enabled.x && (O = y), (o = e.middlewareData.shift) != null && o.enabled.y && (v = x), R && !m) {
|
|
482
|
-
const V = C(c.left, 0), U = C(c.right, 0), K = C(c.top, 0), G = C(c.bottom, 0);
|
|
483
|
-
d ? O = h - 2 * (V !== 0 || U !== 0 ? V + U : C(c.left, c.right)) : v = p - 2 * (K !== 0 || G !== 0 ? K + G : C(c.top, c.bottom));
|
|
484
|
-
}
|
|
485
|
-
await f({
|
|
486
|
-
...e,
|
|
487
|
-
availableWidth: O,
|
|
488
|
-
availableHeight: v
|
|
489
|
-
});
|
|
490
|
-
const D = await r.getDimensions(l.floating);
|
|
491
|
-
return h !== D.width || p !== D.height ? {
|
|
492
|
-
reset: {
|
|
493
|
-
rects: !0
|
|
494
|
-
}
|
|
495
|
-
} : {};
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
|
-
};
|
|
499
|
-
function ct() {
|
|
500
|
-
return typeof window < "u";
|
|
501
|
-
}
|
|
502
|
-
function I(t) {
|
|
503
|
-
return wt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
504
|
-
}
|
|
505
|
-
function S(t) {
|
|
506
|
-
var e;
|
|
507
|
-
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
508
|
-
}
|
|
509
|
-
function F(t) {
|
|
510
|
-
var e;
|
|
511
|
-
return (e = (wt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
512
|
-
}
|
|
513
|
-
function wt(t) {
|
|
514
|
-
return ct() ? t instanceof Node || t instanceof S(t).Node : !1;
|
|
515
|
-
}
|
|
516
|
-
function L(t) {
|
|
517
|
-
return ct() ? t instanceof Element || t instanceof S(t).Element : !1;
|
|
518
|
-
}
|
|
519
|
-
function M(t) {
|
|
520
|
-
return ct() ? t instanceof HTMLElement || t instanceof S(t).HTMLElement : !1;
|
|
521
|
-
}
|
|
522
|
-
function Ct(t) {
|
|
523
|
-
return !ct() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof S(t).ShadowRoot;
|
|
524
|
-
}
|
|
525
|
-
const de = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
526
|
-
function ot(t) {
|
|
527
|
-
const {
|
|
528
|
-
overflow: e,
|
|
529
|
-
overflowX: n,
|
|
530
|
-
overflowY: o,
|
|
531
|
-
display: i
|
|
532
|
-
} = T(t);
|
|
533
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !de.has(i);
|
|
534
|
-
}
|
|
535
|
-
const me = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
536
|
-
function he(t) {
|
|
537
|
-
return me.has(I(t));
|
|
538
|
-
}
|
|
539
|
-
const ge = [":popover-open", ":modal"];
|
|
540
|
-
function at(t) {
|
|
541
|
-
return ge.some((e) => {
|
|
542
|
-
try {
|
|
543
|
-
return t.matches(e);
|
|
544
|
-
} catch {
|
|
545
|
-
return !1;
|
|
546
|
-
}
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
const pe = ["transform", "translate", "scale", "rotate", "perspective"], we = ["transform", "translate", "scale", "rotate", "perspective", "filter"], xe = ["paint", "layout", "strict", "content"];
|
|
550
|
-
function xt(t) {
|
|
551
|
-
const e = yt(), n = L(t) ? T(t) : t;
|
|
552
|
-
return pe.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || we.some((o) => (n.willChange || "").includes(o)) || xe.some((o) => (n.contain || "").includes(o));
|
|
553
|
-
}
|
|
554
|
-
function ye(t) {
|
|
555
|
-
let e = N(t);
|
|
556
|
-
for (; M(e) && !q(e); ) {
|
|
557
|
-
if (xt(e))
|
|
558
|
-
return e;
|
|
559
|
-
if (at(e))
|
|
560
|
-
return null;
|
|
561
|
-
e = N(e);
|
|
562
|
-
}
|
|
563
|
-
return null;
|
|
564
|
-
}
|
|
565
|
-
function yt() {
|
|
566
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
567
|
-
}
|
|
568
|
-
const ve = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
569
|
-
function q(t) {
|
|
570
|
-
return ve.has(I(t));
|
|
571
|
-
}
|
|
572
|
-
function T(t) {
|
|
573
|
-
return S(t).getComputedStyle(t);
|
|
574
|
-
}
|
|
575
|
-
function ft(t) {
|
|
576
|
-
return L(t) ? {
|
|
577
|
-
scrollLeft: t.scrollLeft,
|
|
578
|
-
scrollTop: t.scrollTop
|
|
579
|
-
} : {
|
|
580
|
-
scrollLeft: t.scrollX,
|
|
581
|
-
scrollTop: t.scrollY
|
|
582
|
-
};
|
|
583
|
-
}
|
|
584
|
-
function N(t) {
|
|
585
|
-
if (I(t) === "html")
|
|
586
|
-
return t;
|
|
587
|
-
const e = (
|
|
588
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
589
|
-
t.assignedSlot || // DOM Element detected.
|
|
590
|
-
t.parentNode || // ShadowRoot detected.
|
|
591
|
-
Ct(t) && t.host || // Fallback.
|
|
592
|
-
F(t)
|
|
593
|
-
);
|
|
594
|
-
return Ct(e) ? e.host : e;
|
|
595
|
-
}
|
|
596
|
-
function Vt(t) {
|
|
597
|
-
const e = N(t);
|
|
598
|
-
return q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : M(e) && ot(e) ? e : Vt(e);
|
|
599
|
-
}
|
|
600
|
-
function tt(t, e, n) {
|
|
601
|
-
var o;
|
|
602
|
-
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
603
|
-
const i = Vt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = S(i);
|
|
604
|
-
if (s) {
|
|
605
|
-
const l = pt(r);
|
|
606
|
-
return e.concat(r, r.visualViewport || [], ot(i) ? i : [], l && n ? tt(l) : []);
|
|
607
|
-
}
|
|
608
|
-
return e.concat(i, tt(i, [], n));
|
|
609
|
-
}
|
|
610
|
-
function pt(t) {
|
|
611
|
-
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
612
|
-
}
|
|
613
|
-
function kt(t) {
|
|
614
|
-
const e = T(t);
|
|
615
|
-
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
616
|
-
const i = M(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = rt(n) !== s || rt(o) !== r;
|
|
617
|
-
return l && (n = s, o = r), {
|
|
618
|
-
width: n,
|
|
619
|
-
height: o,
|
|
620
|
-
$: l
|
|
621
|
-
};
|
|
622
|
-
}
|
|
623
|
-
function vt(t) {
|
|
624
|
-
return L(t) ? t : t.contextElement;
|
|
625
|
-
}
|
|
626
|
-
function j(t) {
|
|
627
|
-
const e = vt(t);
|
|
628
|
-
if (!M(e))
|
|
629
|
-
return P(1);
|
|
630
|
-
const n = e.getBoundingClientRect(), {
|
|
631
|
-
width: o,
|
|
632
|
-
height: i,
|
|
633
|
-
$: s
|
|
634
|
-
} = kt(e);
|
|
635
|
-
let r = (s ? rt(n.width) : n.width) / o, l = (s ? rt(n.height) : n.height) / i;
|
|
636
|
-
return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
637
|
-
x: r,
|
|
638
|
-
y: l
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
const be = /* @__PURE__ */ P(0);
|
|
642
|
-
function Wt(t) {
|
|
643
|
-
const e = S(t);
|
|
644
|
-
return !yt() || !e.visualViewport ? be : {
|
|
645
|
-
x: e.visualViewport.offsetLeft,
|
|
646
|
-
y: e.visualViewport.offsetTop
|
|
647
|
-
};
|
|
648
|
-
}
|
|
649
|
-
function Re(t, e, n) {
|
|
650
|
-
return e === void 0 && (e = !1), !n || e && n !== S(t) ? !1 : e;
|
|
651
|
-
}
|
|
652
|
-
function z(t, e, n, o) {
|
|
653
|
-
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
654
|
-
const i = t.getBoundingClientRect(), s = vt(t);
|
|
655
|
-
let r = P(1);
|
|
656
|
-
e && (o ? L(o) && (r = j(o)) : r = j(t));
|
|
657
|
-
const l = Re(s, n, o) ? Wt(s) : P(0);
|
|
658
|
-
let f = (i.left + l.x) / r.x, a = (i.top + l.y) / r.y, c = i.width / r.x, u = i.height / r.y;
|
|
659
|
-
if (s) {
|
|
660
|
-
const m = S(s), d = o && L(o) ? S(o) : o;
|
|
661
|
-
let h = m, p = pt(h);
|
|
662
|
-
for (; p && o && d !== h; ) {
|
|
663
|
-
const w = j(p), g = p.getBoundingClientRect(), x = T(p), y = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, b = g.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
664
|
-
f *= w.x, a *= w.y, c *= w.x, u *= w.y, f += y, a += b, h = S(p), p = pt(h);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
return lt({
|
|
668
|
-
width: c,
|
|
669
|
-
height: u,
|
|
670
|
-
x: f,
|
|
671
|
-
y: a
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
function ut(t, e) {
|
|
675
|
-
const n = ft(t).scrollLeft;
|
|
676
|
-
return e ? e.left + n : z(F(t)).left + n;
|
|
677
|
-
}
|
|
678
|
-
function _t(t, e) {
|
|
679
|
-
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - ut(t, n), i = n.top + e.scrollTop;
|
|
680
|
-
return {
|
|
681
|
-
x: o,
|
|
682
|
-
y: i
|
|
683
|
-
};
|
|
684
|
-
}
|
|
685
|
-
function Ae(t) {
|
|
686
|
-
let {
|
|
687
|
-
elements: e,
|
|
688
|
-
rect: n,
|
|
689
|
-
offsetParent: o,
|
|
690
|
-
strategy: i
|
|
691
|
-
} = t;
|
|
692
|
-
const s = i === "fixed", r = F(o), l = e ? at(e.floating) : !1;
|
|
693
|
-
if (o === r || l && s)
|
|
694
|
-
return n;
|
|
695
|
-
let f = {
|
|
696
|
-
scrollLeft: 0,
|
|
697
|
-
scrollTop: 0
|
|
698
|
-
}, a = P(1);
|
|
699
|
-
const c = P(0), u = M(o);
|
|
700
|
-
if ((u || !u && !s) && ((I(o) !== "body" || ot(r)) && (f = ft(o)), M(o))) {
|
|
701
|
-
const d = z(o);
|
|
702
|
-
a = j(o), c.x = d.x + o.clientLeft, c.y = d.y + o.clientTop;
|
|
703
|
-
}
|
|
704
|
-
const m = r && !u && !s ? _t(r, f) : P(0);
|
|
705
|
-
return {
|
|
706
|
-
width: n.width * a.x,
|
|
707
|
-
height: n.height * a.y,
|
|
708
|
-
x: n.x * a.x - f.scrollLeft * a.x + c.x + m.x,
|
|
709
|
-
y: n.y * a.y - f.scrollTop * a.y + c.y + m.y
|
|
710
|
-
};
|
|
711
|
-
}
|
|
712
|
-
function Oe(t) {
|
|
713
|
-
return Array.from(t.getClientRects());
|
|
714
|
-
}
|
|
715
|
-
function Ce(t) {
|
|
716
|
-
const e = F(t), n = ft(t), o = t.ownerDocument.body, i = C(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = C(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
717
|
-
let r = -n.scrollLeft + ut(t);
|
|
718
|
-
const l = -n.scrollTop;
|
|
719
|
-
return T(o).direction === "rtl" && (r += C(e.clientWidth, o.clientWidth) - i), {
|
|
720
|
-
width: i,
|
|
721
|
-
height: s,
|
|
722
|
-
x: r,
|
|
723
|
-
y: l
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
const St = 25;
|
|
727
|
-
function Se(t, e) {
|
|
728
|
-
const n = S(t), o = F(t), i = n.visualViewport;
|
|
729
|
-
let s = o.clientWidth, r = o.clientHeight, l = 0, f = 0;
|
|
730
|
-
if (i) {
|
|
731
|
-
s = i.width, r = i.height;
|
|
732
|
-
const c = yt();
|
|
733
|
-
(!c || c && e === "fixed") && (l = i.offsetLeft, f = i.offsetTop);
|
|
734
|
-
}
|
|
735
|
-
const a = ut(o);
|
|
736
|
-
if (a <= 0) {
|
|
737
|
-
const c = o.ownerDocument, u = c.body, m = getComputedStyle(u), d = c.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - u.clientWidth - d);
|
|
738
|
-
h <= St && (s -= h);
|
|
739
|
-
} else a <= St && (s += a);
|
|
740
|
-
return {
|
|
741
|
-
width: s,
|
|
742
|
-
height: r,
|
|
743
|
-
x: l,
|
|
744
|
-
y: f
|
|
745
|
-
};
|
|
746
|
-
}
|
|
747
|
-
const Ee = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
748
|
-
function Le(t, e) {
|
|
749
|
-
const n = z(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = M(t) ? j(t) : P(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, f = i * s.x, a = o * s.y;
|
|
750
|
-
return {
|
|
751
|
-
width: r,
|
|
752
|
-
height: l,
|
|
753
|
-
x: f,
|
|
754
|
-
y: a
|
|
755
|
-
};
|
|
756
|
-
}
|
|
757
|
-
function Et(t, e, n) {
|
|
758
|
-
let o;
|
|
759
|
-
if (e === "viewport")
|
|
760
|
-
o = Se(t, n);
|
|
761
|
-
else if (e === "document")
|
|
762
|
-
o = Ce(F(t));
|
|
763
|
-
else if (L(e))
|
|
764
|
-
o = Le(e, n);
|
|
765
|
-
else {
|
|
766
|
-
const i = Wt(t);
|
|
767
|
-
o = {
|
|
768
|
-
x: e.x - i.x,
|
|
769
|
-
y: e.y - i.y,
|
|
770
|
-
width: e.width,
|
|
771
|
-
height: e.height
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
return lt(o);
|
|
775
|
-
}
|
|
776
|
-
function Bt(t, e) {
|
|
777
|
-
const n = N(t);
|
|
778
|
-
return n === e || !L(n) || q(n) ? !1 : T(n).position === "fixed" || Bt(n, e);
|
|
779
|
-
}
|
|
780
|
-
function Te(t, e) {
|
|
781
|
-
const n = e.get(t);
|
|
782
|
-
if (n)
|
|
783
|
-
return n;
|
|
784
|
-
let o = tt(t, [], !1).filter((l) => L(l) && I(l) !== "body"), i = null;
|
|
785
|
-
const s = T(t).position === "fixed";
|
|
786
|
-
let r = s ? N(t) : t;
|
|
787
|
-
for (; L(r) && !q(r); ) {
|
|
788
|
-
const l = T(r), f = xt(r);
|
|
789
|
-
!f && l.position === "fixed" && (i = null), (s ? !f && !i : !f && l.position === "static" && !!i && Ee.has(i.position) || ot(r) && !f && Bt(t, r)) ? o = o.filter((c) => c !== r) : i = l, r = N(r);
|
|
790
|
-
}
|
|
791
|
-
return e.set(t, o), o;
|
|
792
|
-
}
|
|
793
|
-
function De(t) {
|
|
794
|
-
let {
|
|
795
|
-
element: e,
|
|
796
|
-
boundary: n,
|
|
797
|
-
rootBoundary: o,
|
|
798
|
-
strategy: i
|
|
799
|
-
} = t;
|
|
800
|
-
const r = [...n === "clippingAncestors" ? at(e) ? [] : Te(e, this._c) : [].concat(n), o], l = r[0], f = r.reduce((a, c) => {
|
|
801
|
-
const u = Et(e, c, i);
|
|
802
|
-
return a.top = C(u.top, a.top), a.right = Y(u.right, a.right), a.bottom = Y(u.bottom, a.bottom), a.left = C(u.left, a.left), a;
|
|
803
|
-
}, Et(e, l, i));
|
|
804
|
-
return {
|
|
805
|
-
width: f.right - f.left,
|
|
806
|
-
height: f.bottom - f.top,
|
|
807
|
-
x: f.left,
|
|
808
|
-
y: f.top
|
|
809
|
-
};
|
|
810
|
-
}
|
|
811
|
-
function Pe(t) {
|
|
812
|
-
const {
|
|
813
|
-
width: e,
|
|
814
|
-
height: n
|
|
815
|
-
} = kt(t);
|
|
816
|
-
return {
|
|
817
|
-
width: e,
|
|
818
|
-
height: n
|
|
819
|
-
};
|
|
820
|
-
}
|
|
821
|
-
function Me(t, e, n) {
|
|
822
|
-
const o = M(e), i = F(e), s = n === "fixed", r = z(t, !0, s, e);
|
|
823
|
-
let l = {
|
|
824
|
-
scrollLeft: 0,
|
|
825
|
-
scrollTop: 0
|
|
826
|
-
};
|
|
827
|
-
const f = P(0);
|
|
828
|
-
function a() {
|
|
829
|
-
f.x = ut(i);
|
|
830
|
-
}
|
|
831
|
-
if (o || !o && !s)
|
|
832
|
-
if ((I(e) !== "body" || ot(i)) && (l = ft(e)), o) {
|
|
833
|
-
const d = z(e, !0, s, e);
|
|
834
|
-
f.x = d.x + e.clientLeft, f.y = d.y + e.clientTop;
|
|
835
|
-
} else i && a();
|
|
836
|
-
s && !o && i && a();
|
|
837
|
-
const c = i && !o && !s ? _t(i, l) : P(0), u = r.left + l.scrollLeft - f.x - c.x, m = r.top + l.scrollTop - f.y - c.y;
|
|
838
|
-
return {
|
|
839
|
-
x: u,
|
|
840
|
-
y: m,
|
|
841
|
-
width: r.width,
|
|
842
|
-
height: r.height
|
|
843
|
-
};
|
|
844
|
-
}
|
|
845
|
-
function ht(t) {
|
|
846
|
-
return T(t).position === "static";
|
|
847
|
-
}
|
|
848
|
-
function Lt(t, e) {
|
|
849
|
-
if (!M(t) || T(t).position === "fixed")
|
|
850
|
-
return null;
|
|
851
|
-
if (e)
|
|
852
|
-
return e(t);
|
|
853
|
-
let n = t.offsetParent;
|
|
854
|
-
return F(t) === n && (n = n.ownerDocument.body), n;
|
|
855
|
-
}
|
|
856
|
-
function Nt(t, e) {
|
|
857
|
-
const n = S(t);
|
|
858
|
-
if (at(t))
|
|
859
|
-
return n;
|
|
860
|
-
if (!M(t)) {
|
|
861
|
-
let i = N(t);
|
|
862
|
-
for (; i && !q(i); ) {
|
|
863
|
-
if (L(i) && !ht(i))
|
|
864
|
-
return i;
|
|
865
|
-
i = N(i);
|
|
866
|
-
}
|
|
867
|
-
return n;
|
|
868
|
-
}
|
|
869
|
-
let o = Lt(t, e);
|
|
870
|
-
for (; o && he(o) && ht(o); )
|
|
871
|
-
o = Lt(o, e);
|
|
872
|
-
return o && q(o) && ht(o) && !xt(o) ? n : o || ye(t) || n;
|
|
873
|
-
}
|
|
874
|
-
const Fe = async function(t) {
|
|
875
|
-
const e = this.getOffsetParent || Nt, n = this.getDimensions, o = await n(t.floating);
|
|
876
|
-
return {
|
|
877
|
-
reference: Me(t.reference, await e(t.floating), t.strategy),
|
|
878
|
-
floating: {
|
|
879
|
-
x: 0,
|
|
880
|
-
y: 0,
|
|
881
|
-
width: o.width,
|
|
882
|
-
height: o.height
|
|
883
|
-
}
|
|
884
|
-
};
|
|
885
|
-
};
|
|
886
|
-
function Ve(t) {
|
|
887
|
-
return T(t).direction === "rtl";
|
|
888
|
-
}
|
|
889
|
-
const ke = {
|
|
890
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: Ae,
|
|
891
|
-
getDocumentElement: F,
|
|
892
|
-
getClippingRect: De,
|
|
893
|
-
getOffsetParent: Nt,
|
|
894
|
-
getElementRects: Fe,
|
|
895
|
-
getClientRects: Oe,
|
|
896
|
-
getDimensions: Pe,
|
|
897
|
-
getScale: j,
|
|
898
|
-
isElement: L,
|
|
899
|
-
isRTL: Ve
|
|
900
|
-
};
|
|
901
|
-
function $t(t, e) {
|
|
902
|
-
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
903
|
-
}
|
|
904
|
-
function We(t, e) {
|
|
905
|
-
let n = null, o;
|
|
906
|
-
const i = F(t);
|
|
907
|
-
function s() {
|
|
908
|
-
var l;
|
|
909
|
-
clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
|
|
910
|
-
}
|
|
911
|
-
function r(l, f) {
|
|
912
|
-
l === void 0 && (l = !1), f === void 0 && (f = 1), s();
|
|
913
|
-
const a = t.getBoundingClientRect(), {
|
|
914
|
-
left: c,
|
|
915
|
-
top: u,
|
|
916
|
-
width: m,
|
|
917
|
-
height: d
|
|
918
|
-
} = a;
|
|
919
|
-
if (l || e(), !m || !d)
|
|
920
|
-
return;
|
|
921
|
-
const h = it(u), p = it(i.clientWidth - (c + m)), w = it(i.clientHeight - (u + d)), g = it(c), y = {
|
|
922
|
-
rootMargin: -h + "px " + -p + "px " + -w + "px " + -g + "px",
|
|
923
|
-
threshold: C(0, Y(1, f)) || 1
|
|
924
|
-
};
|
|
925
|
-
let b = !0;
|
|
926
|
-
function A(R) {
|
|
927
|
-
const v = R[0].intersectionRatio;
|
|
928
|
-
if (v !== f) {
|
|
929
|
-
if (!b)
|
|
930
|
-
return r();
|
|
931
|
-
v ? r(!1, v) : o = setTimeout(() => {
|
|
932
|
-
r(!1, 1e-7);
|
|
933
|
-
}, 1e3);
|
|
934
|
-
}
|
|
935
|
-
v === 1 && !$t(a, t.getBoundingClientRect()) && r(), b = !1;
|
|
936
|
-
}
|
|
937
|
-
try {
|
|
938
|
-
n = new IntersectionObserver(A, {
|
|
939
|
-
...y,
|
|
940
|
-
// Handle <iframe>s
|
|
941
|
-
root: i.ownerDocument
|
|
942
|
-
});
|
|
943
|
-
} catch {
|
|
944
|
-
n = new IntersectionObserver(A, y);
|
|
945
|
-
}
|
|
946
|
-
n.observe(t);
|
|
947
|
-
}
|
|
948
|
-
return r(!0), s;
|
|
949
|
-
}
|
|
950
|
-
function He(t, e, n, o) {
|
|
951
|
-
o === void 0 && (o = {});
|
|
952
|
-
const {
|
|
953
|
-
ancestorScroll: i = !0,
|
|
954
|
-
ancestorResize: s = !0,
|
|
955
|
-
elementResize: r = typeof ResizeObserver == "function",
|
|
956
|
-
layoutShift: l = typeof IntersectionObserver == "function",
|
|
957
|
-
animationFrame: f = !1
|
|
958
|
-
} = o, a = vt(t), c = i || s ? [...a ? tt(a) : [], ...tt(e)] : [];
|
|
959
|
-
c.forEach((g) => {
|
|
960
|
-
i && g.addEventListener("scroll", n, {
|
|
961
|
-
passive: !0
|
|
962
|
-
}), s && g.addEventListener("resize", n);
|
|
963
|
-
});
|
|
964
|
-
const u = a && l ? We(a, n) : null;
|
|
965
|
-
let m = -1, d = null;
|
|
966
|
-
r && (d = new ResizeObserver((g) => {
|
|
967
|
-
let [x] = g;
|
|
968
|
-
x && x.target === a && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
969
|
-
var y;
|
|
970
|
-
(y = d) == null || y.observe(e);
|
|
971
|
-
})), n();
|
|
972
|
-
}), a && !f && d.observe(a), d.observe(e));
|
|
973
|
-
let h, p = f ? z(t) : null;
|
|
974
|
-
f && w();
|
|
975
|
-
function w() {
|
|
976
|
-
const g = z(t);
|
|
977
|
-
p && !$t(p, g) && n(), p = g, h = requestAnimationFrame(w);
|
|
978
|
-
}
|
|
979
|
-
return n(), () => {
|
|
980
|
-
var g;
|
|
981
|
-
c.forEach((x) => {
|
|
982
|
-
i && x.removeEventListener("scroll", n), s && x.removeEventListener("resize", n);
|
|
983
|
-
}), u == null || u(), (g = d) == null || g.disconnect(), d = null, f && cancelAnimationFrame(h);
|
|
984
|
-
};
|
|
985
|
-
}
|
|
986
|
-
const ze = ae, Ie = fe, Xe = se, je = ue, _e = (t, e, n) => {
|
|
987
|
-
const o = /* @__PURE__ */ new Map(), i = {
|
|
988
|
-
platform: ke,
|
|
989
|
-
...n
|
|
990
|
-
}, s = {
|
|
991
|
-
...i.platform,
|
|
992
|
-
_c: o
|
|
993
|
-
};
|
|
994
|
-
return re(t, e, {
|
|
995
|
-
...i,
|
|
996
|
-
platform: s
|
|
997
|
-
});
|
|
998
|
-
};
|
|
999
|
-
function Be(t) {
|
|
1000
|
-
return t != null && typeof t == "object" && "$el" in t;
|
|
1001
|
-
}
|
|
1002
|
-
function Tt(t) {
|
|
1003
|
-
if (Be(t)) {
|
|
1004
|
-
const e = t.$el;
|
|
1005
|
-
return wt(e) && I(e) === "#comment" ? null : e;
|
|
1006
|
-
}
|
|
1007
|
-
return t;
|
|
1008
|
-
}
|
|
1009
|
-
function Z(t) {
|
|
1010
|
-
return typeof t == "function" ? t() : Yt(t);
|
|
1011
|
-
}
|
|
1012
|
-
function Ht(t) {
|
|
1013
|
-
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1014
|
-
}
|
|
1015
|
-
function Dt(t, e) {
|
|
1016
|
-
const n = Ht(t);
|
|
1017
|
-
return Math.round(e * n) / n;
|
|
1018
|
-
}
|
|
1019
|
-
function Ye(t, e, n) {
|
|
1020
|
-
n === void 0 && (n = {});
|
|
1021
|
-
const o = n.whileElementsMounted, i = _(() => {
|
|
1022
|
-
var v;
|
|
1023
|
-
return (v = Z(n.open)) != null ? v : !0;
|
|
1024
|
-
}), s = _(() => Z(n.middleware)), r = _(() => {
|
|
1025
|
-
var v;
|
|
1026
|
-
return (v = Z(n.placement)) != null ? v : "bottom";
|
|
1027
|
-
}), l = _(() => {
|
|
1028
|
-
var v;
|
|
1029
|
-
return (v = Z(n.strategy)) != null ? v : "absolute";
|
|
1030
|
-
}), f = _(() => {
|
|
1031
|
-
var v;
|
|
1032
|
-
return (v = Z(n.transform)) != null ? v : !0;
|
|
1033
|
-
}), a = _(() => Tt(t.value)), c = _(() => Tt(e.value)), u = Q(0), m = Q(0), d = Q(l.value), h = Q(r.value), p = It({}), w = Q(!1), g = _(() => {
|
|
1034
|
-
const v = {
|
|
1035
|
-
position: d.value,
|
|
1036
|
-
left: "0",
|
|
1037
|
-
top: "0"
|
|
1038
|
-
};
|
|
1039
|
-
if (!c.value)
|
|
1040
|
-
return v;
|
|
1041
|
-
const O = Dt(c.value, u.value), D = Dt(c.value, m.value);
|
|
1042
|
-
return f.value ? {
|
|
1043
|
-
...v,
|
|
1044
|
-
transform: "translate(" + O + "px, " + D + "px)",
|
|
1045
|
-
...Ht(c.value) >= 1.5 && {
|
|
1046
|
-
willChange: "transform"
|
|
1047
|
-
}
|
|
1048
|
-
} : {
|
|
1049
|
-
position: d.value,
|
|
1050
|
-
left: O + "px",
|
|
1051
|
-
top: D + "px"
|
|
1052
|
-
};
|
|
1053
|
-
});
|
|
1054
|
-
let x;
|
|
1055
|
-
function y() {
|
|
1056
|
-
if (a.value == null || c.value == null)
|
|
1057
|
-
return;
|
|
1058
|
-
const v = i.value;
|
|
1059
|
-
_e(a.value, c.value, {
|
|
1060
|
-
middleware: s.value,
|
|
1061
|
-
placement: r.value,
|
|
1062
|
-
strategy: l.value
|
|
1063
|
-
}).then((O) => {
|
|
1064
|
-
u.value = O.x, m.value = O.y, d.value = O.strategy, h.value = O.placement, p.value = O.middlewareData, w.value = v !== !1;
|
|
1065
|
-
});
|
|
1066
|
-
}
|
|
1067
|
-
function b() {
|
|
1068
|
-
typeof x == "function" && (x(), x = void 0);
|
|
1069
|
-
}
|
|
1070
|
-
function A() {
|
|
1071
|
-
if (b(), o === void 0) {
|
|
1072
|
-
y();
|
|
1073
|
-
return;
|
|
1074
|
-
}
|
|
1075
|
-
if (a.value != null && c.value != null) {
|
|
1076
|
-
x = o(a.value, c.value, y);
|
|
1077
|
-
return;
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
function R() {
|
|
1081
|
-
i.value || (w.value = !1);
|
|
1082
|
-
}
|
|
1083
|
-
return mt([s, r, l, i], y, {
|
|
1084
|
-
flush: "sync"
|
|
1085
|
-
}), mt([a, c], A, {
|
|
1086
|
-
flush: "sync"
|
|
1087
|
-
}), mt(i, R, {
|
|
1088
|
-
flush: "sync"
|
|
1089
|
-
}), Xt() && jt(b), {
|
|
1090
|
-
x: X(u),
|
|
1091
|
-
y: X(m),
|
|
1092
|
-
strategy: X(d),
|
|
1093
|
-
placement: X(h),
|
|
1094
|
-
middlewareData: X(p),
|
|
1095
|
-
isPositioned: X(w),
|
|
1096
|
-
floatingStyles: g,
|
|
1097
|
-
update: y
|
|
1098
|
-
};
|
|
1099
|
-
}
|
|
1100
|
-
export {
|
|
1101
|
-
$e as _,
|
|
1102
|
-
He as a,
|
|
1103
|
-
je as b,
|
|
1104
|
-
Xe as f,
|
|
1105
|
-
ze as o,
|
|
1106
|
-
Ie as s,
|
|
1107
|
-
Ye as u
|
|
1108
|
-
};
|