@alfadocs/ui-kit-debug 1.90.1 → 1.90.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/dist/_chunks/address-autocomplete-DR4Xn23Z.js +519 -0
  2. package/dist/_chunks/address-autocomplete-DR4Xn23Z.js.map +1 -0
  3. package/dist/_chunks/{address-fields-CfnXK8RT.js → address-fields-qxQkGwPf.js} +5 -5
  4. package/dist/_chunks/{address-fields-CfnXK8RT.js.map → address-fields-qxQkGwPf.js.map} +1 -1
  5. package/dist/_chunks/{ai-permission-notice-CoW22jx1.js → ai-permission-notice-VNh3W57L.js} +2 -2
  6. package/dist/_chunks/{ai-permission-notice-CoW22jx1.js.map → ai-permission-notice-VNh3W57L.js.map} +1 -1
  7. package/dist/_chunks/{anamnesis-summary-rows-fbEQwcuW.js → anamnesis-summary-rows-EKPfVCmh.js} +2 -2
  8. package/dist/_chunks/{anamnesis-summary-rows-fbEQwcuW.js.map → anamnesis-summary-rows-EKPfVCmh.js.map} +1 -1
  9. package/dist/_chunks/autocomplete-BXMcNoa3.js +562 -0
  10. package/dist/_chunks/autocomplete-BXMcNoa3.js.map +1 -0
  11. package/dist/_chunks/{balance-badge-cell-C4FYwmrZ.js → balance-badge-cell-D9VhFp0L.js} +3 -3
  12. package/dist/_chunks/{balance-badge-cell-C4FYwmrZ.js.map → balance-badge-cell-D9VhFp0L.js.map} +1 -1
  13. package/dist/_chunks/{booking-C0FoW8Yx.js → booking-CcE_oviI.js} +1896 -1859
  14. package/dist/_chunks/booking-CcE_oviI.js.map +1 -0
  15. package/dist/_chunks/{calendar-appointment-editor-dialog-C1v2MNE4.js → calendar-appointment-editor-dialog-CiAGAX2t.js} +7 -7
  16. package/dist/_chunks/{calendar-appointment-editor-dialog-C1v2MNE4.js.map → calendar-appointment-editor-dialog-CiAGAX2t.js.map} +1 -1
  17. package/dist/_chunks/{checkbox-BjDv-r3o.js → checkbox-a7Sh-dXb.js} +32 -31
  18. package/dist/_chunks/checkbox-a7Sh-dXb.js.map +1 -0
  19. package/dist/_chunks/{checkbox-group-Cw2H5qaq.js → checkbox-group-eGdv9fZc.js} +2 -2
  20. package/dist/_chunks/{checkbox-group-Cw2H5qaq.js.map → checkbox-group-eGdv9fZc.js.map} +1 -1
  21. package/dist/_chunks/{city-input-CJVGswxp.js → city-input-CA59CjnV.js} +2 -2
  22. package/dist/_chunks/{city-input-CJVGswxp.js.map → city-input-CA59CjnV.js.map} +1 -1
  23. package/dist/_chunks/{combobox-CDPm_n0p.js → combobox-D-gpgEDy.js} +314 -294
  24. package/dist/_chunks/combobox-D-gpgEDy.js.map +1 -0
  25. package/dist/_chunks/{country-select-DQ8q7ypA.js → country-select-BfmX9y5i.js} +2 -2
  26. package/dist/_chunks/{country-select-DQ8q7ypA.js.map → country-select-BfmX9y5i.js.map} +1 -1
  27. package/dist/_chunks/{data-table-B_IcS0Ke.js → data-table-CqQgoNsU.js} +2 -2
  28. package/dist/_chunks/{data-table-B_IcS0Ke.js.map → data-table-CqQgoNsU.js.map} +1 -1
  29. package/dist/_chunks/{face-scheme-BgJGFDTa.js → face-scheme-BKSE98bo.js} +2 -2
  30. package/dist/_chunks/{face-scheme-BgJGFDTa.js.map → face-scheme-BKSE98bo.js.map} +1 -1
  31. package/dist/_chunks/{file-manager-C9YOT-Dn.js → file-manager-BnI1ZWZu.js} +2 -2
  32. package/dist/_chunks/{file-manager-C9YOT-Dn.js.map → file-manager-BnI1ZWZu.js.map} +1 -1
  33. package/dist/_chunks/{header-settings-BVhjndtV.js → header-settings-BeA2fnol.js} +24 -23
  34. package/dist/_chunks/header-settings-BeA2fnol.js.map +1 -0
  35. package/dist/_chunks/{heatmap-HTz3Jvzy.js → heatmap-fCxwNz2o.js} +2 -2
  36. package/dist/_chunks/{heatmap-HTz3Jvzy.js.map → heatmap-fCxwNz2o.js.map} +1 -1
  37. package/dist/_chunks/{link-cell-renderer-C0ynDik7.js → link-cell-renderer-CnCgudvq.js} +3 -3
  38. package/dist/_chunks/{link-cell-renderer-C0ynDik7.js.map → link-cell-renderer-CnCgudvq.js.map} +1 -1
  39. package/dist/_chunks/{login-dev-card-DYwbL5sD.js → login-dev-card-BZBR58mu.js} +2 -2
  40. package/dist/_chunks/{login-dev-card-DYwbL5sD.js.map → login-dev-card-BZBR58mu.js.map} +1 -1
  41. package/dist/_chunks/{map-view-Bvi06RVh.js → map-view-UrNgxBy3.js} +260 -237
  42. package/dist/_chunks/map-view-UrNgxBy3.js.map +1 -0
  43. package/dist/_chunks/{index.modern-BeRXQVdc.js → maps-core-gate-DkNqGkm3.js} +360 -319
  44. package/dist/_chunks/maps-core-gate-DkNqGkm3.js.map +1 -0
  45. package/dist/_chunks/{marketplace-app-shell-x_abo_ye.js → marketplace-app-shell-CmZx0Oam.js} +2 -2
  46. package/dist/_chunks/{marketplace-app-shell-x_abo_ye.js.map → marketplace-app-shell-CmZx0Oam.js.map} +1 -1
  47. package/dist/_chunks/{notes-panel-CZO1qsD-.js → notes-panel-Dywo6R55.js} +2 -2
  48. package/dist/_chunks/{notes-panel-CZO1qsD-.js.map → notes-panel-Dywo6R55.js.map} +1 -1
  49. package/dist/_chunks/{patient-details-D0P5eog5.js → patient-details-BUr7Oemx.js} +2 -2
  50. package/dist/_chunks/{patient-details-D0P5eog5.js.map → patient-details-BUr7Oemx.js.map} +1 -1
  51. package/dist/_chunks/{patient-field-row-R73dZJY6.js → patient-field-row-bJk8Q_qr.js} +5 -5
  52. package/dist/_chunks/{patient-field-row-R73dZJY6.js.map → patient-field-row-bJk8Q_qr.js.map} +1 -1
  53. package/dist/_chunks/patient-search-Ca9j5cWb.js +1306 -0
  54. package/dist/_chunks/patient-search-Ca9j5cWb.js.map +1 -0
  55. package/dist/_chunks/{patient-summary-card-6U74-ivO.js → patient-summary-card-CCQZ8X37.js} +2 -2
  56. package/dist/_chunks/{patient-summary-card-6U74-ivO.js.map → patient-summary-card-CCQZ8X37.js.map} +1 -1
  57. package/dist/_chunks/{periodontal-diagnosis-B9YmmVmM.js → periodontal-diagnosis-DD3hrg9X.js} +2 -2
  58. package/dist/_chunks/{periodontal-diagnosis-B9YmmVmM.js.map → periodontal-diagnosis-DD3hrg9X.js.map} +1 -1
  59. package/dist/_chunks/{permission-matrix-BoQjENGV.js → permission-matrix-BJ6sg3Zp.js} +3 -3
  60. package/dist/_chunks/{permission-matrix-BoQjENGV.js.map → permission-matrix-BJ6sg3Zp.js.map} +1 -1
  61. package/dist/_chunks/{practice-results-B61krlwu.js → practice-results-DQuOfqej.js} +2 -2
  62. package/dist/_chunks/{practice-results-B61krlwu.js.map → practice-results-DQuOfqej.js.map} +1 -1
  63. package/dist/_chunks/{province-select-CPdTwEob.js → province-select-D64whw0m.js} +2 -2
  64. package/dist/_chunks/{province-select-CPdTwEob.js.map → province-select-D64whw0m.js.map} +1 -1
  65. package/dist/_chunks/{registration-form-DmP3YUfp.js → registration-form-CRm6DaB9.js} +2 -2
  66. package/dist/_chunks/{registration-form-DmP3YUfp.js.map → registration-form-CRm6DaB9.js.map} +1 -1
  67. package/dist/_chunks/{reviews-panel-UzQQLb-z.js → reviews-panel-B7InBORU.js} +42 -41
  68. package/dist/_chunks/reviews-panel-B7InBORU.js.map +1 -0
  69. package/dist/_chunks/{rich-text-editor-BZTyxQBd.js → rich-text-editor-BfEu57dk.js} +3 -3
  70. package/dist/_chunks/{rich-text-editor-BZTyxQBd.js.map → rich-text-editor-BfEu57dk.js.map} +1 -1
  71. package/dist/_chunks/{slot-grid-Bb13H9Rl.js → slot-grid-DrwynKeN.js} +91 -89
  72. package/dist/_chunks/{slot-grid-Bb13H9Rl.js.map → slot-grid-DrwynKeN.js.map} +1 -1
  73. package/dist/_chunks/{task-editor-BOETWbjU.js → task-editor-CI1SKUNc.js} +2 -2
  74. package/dist/_chunks/{task-editor-BOETWbjU.js.map → task-editor-CI1SKUNc.js.map} +1 -1
  75. package/dist/_chunks/{use-appointment-details-read-CWN-nJCZ.js → use-appointment-details-read-BytPq3Ux.js} +2 -2
  76. package/dist/_chunks/{use-appointment-details-read-CWN-nJCZ.js.map → use-appointment-details-read-BytPq3Ux.js.map} +1 -1
  77. package/dist/_chunks/{voice-control-panel-BziKE-KK.js → voice-control-panel-BP0otrID.js} +2 -2
  78. package/dist/_chunks/{voice-control-panel-BziKE-KK.js.map → voice-control-panel-BP0otrID.js.map} +1 -1
  79. package/dist/_chunks/{workflow-webhook-action-DulCpCRz.js → workflow-webhook-action-B_nBJ_ht.js} +2 -2
  80. package/dist/_chunks/{workflow-webhook-action-DulCpCRz.js.map → workflow-webhook-action-B_nBJ_ht.js.map} +1 -1
  81. package/dist/agent-catalog.json +2 -2
  82. package/dist/agent-i18n/en.json +1 -1
  83. package/dist/components/_shared/maps-core-gate.d.ts +18 -0
  84. package/dist/components/_shared/maps-core-gate.d.ts.map +1 -0
  85. package/dist/components/address-autocomplete/address-autocomplete.d.ts.map +1 -1
  86. package/dist/components/address-autocomplete/index.js +1 -1
  87. package/dist/components/address-fields/index.js +1 -1
  88. package/dist/components/ai-permission-notice/index.js +1 -1
  89. package/dist/components/appointment-details-panel/index.js +1 -1
  90. package/dist/components/autocomplete/autocomplete.agent.d.ts.map +1 -1
  91. package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
  92. package/dist/components/autocomplete/index.js +1 -1
  93. package/dist/components/booking/booking.d.ts.map +1 -1
  94. package/dist/components/booking/details-form.d.ts.map +1 -1
  95. package/dist/components/booking/index.js +1 -1
  96. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  97. package/dist/components/checkbox/index.js +1 -1
  98. package/dist/components/checkbox-group/index.js +1 -1
  99. package/dist/components/city-input/index.js +1 -1
  100. package/dist/components/combobox/combobox.d.ts.map +1 -1
  101. package/dist/components/combobox/index.js +1 -1
  102. package/dist/components/country-select/index.js +1 -1
  103. package/dist/components/data-table/index.js +2 -2
  104. package/dist/components/face-scheme/index.js +1 -1
  105. package/dist/components/file-manager/index.js +1 -1
  106. package/dist/components/header-settings/header-settings.d.ts +2 -1
  107. package/dist/components/header-settings/header-settings.d.ts.map +1 -1
  108. package/dist/components/header-settings/index.js +1 -1
  109. package/dist/components/heatmap/index.js +1 -1
  110. package/dist/components/map-view/index.js +1 -1
  111. package/dist/components/map-view/map-view.d.ts.map +1 -1
  112. package/dist/components/notes-panel/index.js +1 -1
  113. package/dist/components/patient-details/index.js +1 -1
  114. package/dist/components/patient-search/index.js +1 -1
  115. package/dist/components/patient-search/patient-search.d.ts.map +1 -1
  116. package/dist/components/patient-summary-card/index.js +1 -1
  117. package/dist/components/patient-table/index.js +1 -1
  118. package/dist/components/periodontal-diagnosis/index.js +1 -1
  119. package/dist/components/permission-matrix/index.js +1 -1
  120. package/dist/components/practice-results/index.js +1 -1
  121. package/dist/components/province-select/index.js +1 -1
  122. package/dist/components/reviews-panel/index.js +1 -1
  123. package/dist/components/reviews-panel/reviews-panel.d.ts.map +1 -1
  124. package/dist/components/rich-text-editor/index.js +1 -1
  125. package/dist/components/slot-grid/index.js +1 -1
  126. package/dist/components/slot-grid/slot-grid.d.ts.map +1 -1
  127. package/dist/components/task-editor/index.js +1 -1
  128. package/dist/components/voice-control-panel/index.js +1 -1
  129. package/dist/host-compat.css +1 -10
  130. package/dist/index.js +37 -37
  131. package/dist/patterns/anamnesis/index.js +1 -1
  132. package/dist/patterns/calendar/index.js +1 -1
  133. package/dist/patterns/login-form/index.js +1 -1
  134. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  135. package/dist/patterns/registration-form/index.js +1 -1
  136. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  137. package/dist/tokens.css +1 -1
  138. package/package.json +1 -1
  139. package/dist/_chunks/address-autocomplete-bPR2mNBt.js +0 -498
  140. package/dist/_chunks/address-autocomplete-bPR2mNBt.js.map +0 -1
  141. package/dist/_chunks/autocomplete-CnB1mHGc.js +0 -539
  142. package/dist/_chunks/autocomplete-CnB1mHGc.js.map +0 -1
  143. package/dist/_chunks/booking-C0FoW8Yx.js.map +0 -1
  144. package/dist/_chunks/checkbox-BjDv-r3o.js.map +0 -1
  145. package/dist/_chunks/combobox-CDPm_n0p.js.map +0 -1
  146. package/dist/_chunks/header-settings-BVhjndtV.js.map +0 -1
  147. package/dist/_chunks/index.modern-BeRXQVdc.js.map +0 -1
  148. package/dist/_chunks/map-view-Bvi06RVh.js.map +0 -1
  149. package/dist/_chunks/patient-search-CCOUZABE.js +0 -1196
  150. package/dist/_chunks/patient-search-CCOUZABE.js.map +0 -1
  151. package/dist/_chunks/reviews-panel-UzQQLb-z.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import * as Le from "react";
2
- import M, { useMemo as w, useContext as R, useEffect as E, useLayoutEffect as V, forwardRef as B, useImperativeHandle as z, useState as I, useReducer as Se, useCallback as ue, useRef as j, Children as ge, createContext as Ue } from "react";
1
+ import * as Se from "react";
2
+ import M, { useMemo as w, useContext as R, useEffect as b, useLayoutEffect as V, forwardRef as B, useImperativeHandle as z, useState as I, useReducer as _e, useCallback as ue, useRef as j, Children as ge, createContext as Ge } from "react";
3
3
  import { createPortal as oe } from "react-dom";
4
4
  import { g as He } from "./_commonjsHelpers-DaMA6jEr.js";
5
- var re, be;
6
- function Ge() {
7
- return be || (be = 1, re = function e(n, t) {
5
+ var re, Ee;
6
+ function Je() {
7
+ return Ee || (Ee = 1, re = function e(n, t) {
8
8
  if (n === t) return !0;
9
9
  if (n && t && typeof n == "object" && typeof t == "object") {
10
10
  if (n.constructor !== t.constructor) return !1;
@@ -30,8 +30,8 @@ function Ge() {
30
30
  return n !== n && t !== t;
31
31
  }), re;
32
32
  }
33
- var Je = Ge();
34
- const W = /* @__PURE__ */ He(Je), Ve = "1.8.3";
33
+ var Ve = Je();
34
+ const W = /* @__PURE__ */ He(Ve), $e = "1.8.3";
35
35
  function N(e, n) {
36
36
  var t = {};
37
37
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
@@ -67,43 +67,43 @@ function Oe(e, n, t, o) {
67
67
  c((o = o.apply(e, [])).next());
68
68
  });
69
69
  }
70
- function $e(e, n) {
70
+ function qe(e, n) {
71
71
  e.src = n;
72
72
  }
73
- const qe = (e) => {
73
+ const Ze = (e) => {
74
74
  var n, t, o, r = "The Google Maps JavaScript API", i = "google", a = "importLibrary", s = "__ib__", g = document, c = window, l = c[i] || (c[i] = {}), h = l.maps || (l.maps = {}), f = /* @__PURE__ */ new Set(), u = new URLSearchParams(), p = () => n || (n = new Promise(async (y, d) => {
75
75
  var m;
76
76
  await (t = g.createElement("script")), u.set("libraries", [...f] + "");
77
77
  for (o in e)
78
78
  u.set(o.replace(/[A-Z]/g, (C) => "_" + C[0].toLowerCase()), e[o]);
79
- u.set("callback", i + ".maps." + s), $e(t, "https://maps.googleapis.com/maps/api/js?" + u), h[s] = y, t.onerror = () => n = d(Error(r + " could not load.")), t.nonce = ((m = g.querySelector("script[nonce]")) == null ? void 0 : m.nonce) || "", g.head.append(t);
79
+ u.set("callback", i + ".maps." + s), qe(t, "https://maps.googleapis.com/maps/api/js?" + u), h[s] = y, t.onerror = () => n = d(Error(r + " could not load.")), t.nonce = ((m = g.querySelector("script[nonce]")) == null ? void 0 : m.nonce) || "", g.head.append(t);
80
80
  }));
81
81
  h[a] ? console.warn(r + " only loads once. Ignoring:", e) : h[a] = (y, ...d) => f.add(y) && p().then(() => h[a](y, ...d));
82
- }, Ze = (e) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`, We = (e) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`, Ke = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", Ye = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", _e = process.env.NODE_ENV !== "production", fe = _e ? (e) => {
82
+ }, We = (e) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`, Ke = (e) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`, Ye = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", Xe = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", Ie = process.env.NODE_ENV !== "production", fe = Ie ? (e) => {
83
83
  console.warn(`[@googlemaps/js-api-loader] ${e}`);
84
84
  } : () => {
85
- }, Xe = _e ? (e) => {
85
+ }, Qe = Ie ? (e) => {
86
86
  console.info(`[@googlemaps/js-api-loader] ${e}`);
87
87
  } : () => {
88
- }, Qe = process.env.NODE_ENV !== "production";
88
+ }, en = process.env.NODE_ENV !== "production";
89
89
  let ae = !1;
90
- function en(e) {
90
+ function nn(e) {
91
91
  if (ae) {
92
- fe(Ze(e));
92
+ fe(We(e));
93
93
  return;
94
94
  }
95
- tn(e), ae = !0;
95
+ on(e), ae = !0;
96
96
  }
97
- async function nn(e) {
97
+ async function tn(e) {
98
98
  var n, t;
99
- if (ae || fe(Ke), !((t = (n = window == null ? void 0 : window.google) == null ? void 0 : n.maps) != null && t.importLibrary))
99
+ if (ae || fe(Ye), !((t = (n = window == null ? void 0 : window.google) == null ? void 0 : n.maps) != null && t.importLibrary))
100
100
  throw new Error("google.maps.importLibrary is not installed.");
101
101
  return await google.maps.importLibrary(e);
102
102
  }
103
- function tn(e) {
103
+ function on(e) {
104
104
  var t, o;
105
105
  const n = !!((o = (t = window.google) == null ? void 0 : t.maps) != null && o.importLibrary);
106
- n ? Xe(We(e)) : Qe && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && fe(Ye), n || qe(e);
106
+ n ? Qe(Ke(e)) : en && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && fe(Xe), n || Ze(e);
107
107
  }
108
108
  const x = {
109
109
  NOT_LOADED: "NOT_LOADED",
@@ -111,15 +111,15 @@ const x = {
111
111
  LOADED: "LOADED",
112
112
  FAILED: "FAILED",
113
113
  AUTH_FAILURE: "AUTH_FAILURE"
114
- }, on = "GMP_visgl_rgmlibrary_v1_default", rn = [
115
- `gmp_visgl_reactgooglemaps_v${Ve}`
114
+ }, rn = "GMP_visgl_rgmlibrary_v1_default", an = [
115
+ `gmp_visgl_reactgooglemaps_v${$e}`
116
116
  ], $ = M.createContext(null);
117
117
  let F = x.NOT_LOADED, Q;
118
118
  const se = /* @__PURE__ */ new Set();
119
119
  function ee(e) {
120
120
  e !== F && (F = e, se.forEach((n) => n(F)));
121
121
  }
122
- function an() {
122
+ function sn() {
123
123
  const [e, n] = I({});
124
124
  return { mapInstances: e, addMapInstance: (i, a = "default") => {
125
125
  n((s) => Object.assign(Object.assign({}, s), { [a]: i }));
@@ -134,7 +134,7 @@ function an() {
134
134
  n({});
135
135
  } };
136
136
  }
137
- function sn() {
137
+ function ln() {
138
138
  const [e, n] = I({});
139
139
  return {
140
140
  map3dInstances: e,
@@ -154,8 +154,8 @@ function sn() {
154
154
  }
155
155
  };
156
156
  }
157
- function ln(e) {
158
- const { onLoad: n, onError: t, apiKey: o, version: r, libraries: i = [], region: a, language: s, authReferrerPolicy: g, channel: c, solutionChannel: l, fetchAppCheckToken: h } = e, [f, u] = I(F), [p, y] = Se((C, b) => C[b.name] ? C : Object.assign(Object.assign({}, C), { [b.name]: b.value }), {}), d = w(() => {
157
+ function cn(e) {
158
+ const { onLoad: n, onError: t, apiKey: o, version: r, libraries: i = [], region: a, language: s, authReferrerPolicy: g, channel: c, solutionChannel: l, fetchAppCheckToken: h } = e, [f, u] = I(F), [p, y] = _e((C, E) => C[E.name] ? C : Object.assign(Object.assign({}, C), { [E.name]: E.value }), {}), d = w(() => {
159
159
  const C = {
160
160
  apiKey: o,
161
161
  version: r,
@@ -179,19 +179,19 @@ function ln(e) {
179
179
  ]), m = ue((C) => Oe(this, void 0, void 0, function* () {
180
180
  if (p[C])
181
181
  return p[C];
182
- const b = yield nn(C);
183
- return y({ name: C, value: b }), b;
182
+ const E = yield tn(C);
183
+ return y({ name: C, value: E }), E;
184
184
  }), [p]);
185
- return E(() => (se.add(u), u(F), () => {
185
+ return b(() => (se.add(u), u(F), () => {
186
186
  se.delete(u);
187
- }), []), E(
187
+ }), []), b(
188
188
  () => {
189
189
  Oe(this, void 0, void 0, function* () {
190
- var C, b;
190
+ var C, E;
191
191
  try {
192
192
  Q && Q !== d && console.warn("The Google Maps JavaScript API has already been loaded with different parameters. The new parameters will be ignored. If you need to use different parameters, please refresh the page.");
193
193
  const P = ["core", "maps", ...i];
194
- if (!((b = (C = window.google) === null || C === void 0 ? void 0 : C.maps) === null || b === void 0) && b.importLibrary) {
194
+ if (!((E = (C = window.google) === null || C === void 0 ? void 0 : C.maps) === null || E === void 0) && E.importLibrary) {
195
195
  Q || ee(x.LOADED), yield Promise.all(P.map((v) => m(v))), n && n();
196
196
  return;
197
197
  }
@@ -208,7 +208,7 @@ function ln(e) {
208
208
  language: s,
209
209
  authReferrerPolicy: g
210
210
  }).filter(([, v]) => v !== void 0));
211
- c !== void 0 && c >= 0 && c <= 999 && (A.channel = String(c)), l === void 0 ? A.solutionChannel = on : l !== "" && (A.solutionChannel = l), en(A), yield Promise.all(P.map((v) => m(v))), ee(x.LOADED), n && n();
211
+ c !== void 0 && c >= 0 && c <= 999 && (A.channel = String(c)), l === void 0 ? A.solutionChannel = rn : l !== "" && (A.solutionChannel = l), nn(A), yield Promise.all(P.map((v) => m(v))), ee(x.LOADED), n && n();
212
212
  } catch (P) {
213
213
  ee(x.FAILED), t ? t(P) : console.error("The Google Maps JavaScript API failed to load.", P);
214
214
  }
@@ -216,7 +216,7 @@ function ln(e) {
216
216
  },
217
217
  // eslint-disable-next-line react-hooks/exhaustive-deps
218
218
  [d, n, t, m, i]
219
- ), E(() => {
219
+ ), b(() => {
220
220
  if (f !== x.LOADED)
221
221
  return;
222
222
  const C = google.maps.Settings.getInstance();
@@ -227,11 +227,11 @@ function ln(e) {
227
227
  importLibrary: m
228
228
  };
229
229
  }
230
- function cn(e) {
231
- return w(() => e.disableUsageAttribution ? null : rn, [e.disableUsageAttribution]);
230
+ function dn(e) {
231
+ return w(() => e.disableUsageAttribution ? null : an, [e.disableUsageAttribution]);
232
232
  }
233
- const _t = (e) => {
234
- const { children: n } = e, t = N(e, ["children"]), { mapInstances: o, addMapInstance: r, removeMapInstance: i, clearMapInstances: a } = an(), { map3dInstances: s, addMap3DInstance: g, removeMap3DInstance: c, clearMap3DInstances: l } = sn(), { status: h, loadedLibraries: f, importLibrary: u } = ln(t), p = cn(t), y = w(() => ({
233
+ const wt = (e) => {
234
+ const { children: n } = e, t = N(e, ["children"]), { mapInstances: o, addMapInstance: r, removeMapInstance: i, clearMapInstances: a } = sn(), { map3dInstances: s, addMap3DInstance: g, removeMap3DInstance: c, clearMap3DInstances: l } = ln(), { status: h, loadedLibraries: f, importLibrary: u } = cn(t), p = dn(t), y = w(() => ({
235
235
  mapInstances: o,
236
236
  addMapInstance: r,
237
237
  removeMapInstance: i,
@@ -260,20 +260,20 @@ const _t = (e) => {
260
260
  ]);
261
261
  return M.createElement($.Provider, { value: y }, n);
262
262
  };
263
- function dn(e, n) {
264
- for (const t of hn) {
265
- const o = n[t], r = Ie[t];
266
- E(() => {
263
+ function un(e, n) {
264
+ for (const t of mn) {
265
+ const o = n[t], r = we[t];
266
+ b(() => {
267
267
  if (!e || !o)
268
268
  return;
269
269
  const i = google.maps.event.addListener(e, r, (a) => {
270
- o(un(r, e, a));
270
+ o(gn(r, e, a));
271
271
  });
272
272
  return () => i.remove();
273
273
  }, [e, r, o]);
274
274
  }
275
275
  }
276
- function un(e, n, t) {
276
+ function gn(e, n, t) {
277
277
  var o;
278
278
  const r = {
279
279
  type: e,
@@ -283,7 +283,7 @@ function un(e, n, t) {
283
283
  stop: () => {
284
284
  }
285
285
  };
286
- if (gn.includes(e)) {
286
+ if (fn.includes(e)) {
287
287
  const i = r, a = n.getCenter(), s = n.getZoom(), g = n.getHeading() || 0, c = n.getTilt() || 0, l = n.getBounds();
288
288
  return (!a || !l || !Number.isFinite(s)) && console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"), i.detail = {
289
289
  center: (a == null ? void 0 : a.toJSON()) || { lat: 0, lng: 0 },
@@ -297,7 +297,7 @@ function un(e, n, t) {
297
297
  west: -180
298
298
  }
299
299
  }, i;
300
- } else if (fn.includes(e)) {
300
+ } else if (hn.includes(e)) {
301
301
  if (!t)
302
302
  throw new Error("[createEvent] mouse events must provide a srcEvent");
303
303
  const i = r;
@@ -308,7 +308,7 @@ function un(e, n, t) {
308
308
  }
309
309
  return r;
310
310
  }
311
- const Ie = {
311
+ const we = {
312
312
  onBoundsChanged: "bounds_changed",
313
313
  onCenterChanged: "center_changed",
314
314
  onClick: "click",
@@ -334,31 +334,31 @@ const Ie = {
334
334
  // since that is going to be fired in every situation where the camera is
335
335
  // updated.
336
336
  onCameraChanged: "bounds_changed"
337
- }, gn = [
337
+ }, fn = [
338
338
  "bounds_changed",
339
339
  "center_changed",
340
340
  "heading_changed",
341
341
  "tilt_changed",
342
342
  "zoom_changed"
343
- ], fn = [
343
+ ], hn = [
344
344
  "click",
345
345
  "contextmenu",
346
346
  "dblclick",
347
347
  "mousemove",
348
348
  "mouseout",
349
349
  "mouseover"
350
- ], hn = Object.keys(Ie);
350
+ ], mn = Object.keys(we);
351
351
  function K(e, n) {
352
352
  const t = j(e);
353
353
  return n(e, t.current) || (t.current = e), t.current;
354
354
  }
355
- function mn(e, n, t) {
356
- E(e, [K(n, t)]);
355
+ function pn(e, n, t) {
356
+ b(e, [K(n, t)]);
357
357
  }
358
- function we(e, n) {
359
- mn(e, n, W);
358
+ function Te(e, n) {
359
+ pn(e, n, W);
360
360
  }
361
- const pn = /* @__PURE__ */ new Set([
361
+ const vn = /* @__PURE__ */ new Set([
362
362
  "backgroundColor",
363
363
  "clickableIcons",
364
364
  "controlSize",
@@ -395,19 +395,19 @@ const pn = /* @__PURE__ */ new Set([
395
395
  "zoomControl",
396
396
  "zoomControlOptions"
397
397
  ]);
398
- function vn(e, n) {
398
+ function yn(e, n) {
399
399
  const t = {}, o = Object.keys(n);
400
400
  for (const r of o)
401
- pn.has(r) && (t[r] = n[r]);
402
- we(() => {
401
+ vn.has(r) && (t[r] = n[r]);
402
+ Te(() => {
403
403
  e && e.setOptions(t);
404
404
  }, [t]);
405
405
  }
406
- function Te() {
406
+ function Ne() {
407
407
  var e;
408
408
  return ((e = R($)) === null || e === void 0 ? void 0 : e.status) || x.NOT_LOADED;
409
409
  }
410
- function yn(e, n) {
410
+ function Cn(e, n) {
411
411
  const { viewport: t, viewState: o } = n, r = !!t;
412
412
  return V(() => {
413
413
  if (!e || !o)
@@ -421,17 +421,17 @@ function yn(e, n) {
421
421
  });
422
422
  }, [e, o]), r;
423
423
  }
424
- function Cn(e) {
424
+ function bn(e) {
425
425
  return !e || typeof e != "object" || !("lat" in e && "lng" in e) ? !1 : Number.isFinite(e.lat) && Number.isFinite(e.lng);
426
426
  }
427
- function Ne(e, n) {
427
+ function xe(e, n) {
428
428
  if (!e || !n)
429
429
  return !1;
430
430
  const t = te(e), o = te(n);
431
431
  return !(t.lat !== o.lat || t.lng !== o.lng);
432
432
  }
433
433
  function te(e) {
434
- return Cn(e) ? e : e.toJSON();
434
+ return bn(e) ? e : e.toJSON();
435
435
  }
436
436
  function Me(e) {
437
437
  if ("north" in e && "south" in e && "east" in e && "west" in e)
@@ -450,29 +450,29 @@ function En(e, n) {
450
450
  const t = Me(e), o = Me(n);
451
451
  return t.north === o.north && t.south === o.south && t.east === o.east && t.west === o.west;
452
452
  }
453
- function xe(e, n) {
453
+ function Re(e, n) {
454
454
  if (!e || !n)
455
455
  return e === n;
456
456
  const t = "getArray" in n ? n.getArray() : n;
457
457
  if (e.length !== t.length)
458
458
  return !1;
459
459
  for (let o = 0; o < e.length; o++)
460
- if (!Ne(e[o], t[o]))
460
+ if (!xe(e[o], t[o]))
461
461
  return !1;
462
462
  return !0;
463
463
  }
464
- function bn(e, n) {
464
+ function On(e, n) {
465
465
  if (!e || !n)
466
466
  return e === n;
467
467
  const t = "getArray" in n ? n.getArray().map((o) => o.getArray()) : n;
468
468
  if (e.length !== t.length)
469
469
  return !1;
470
470
  for (let o = 0; o < e.length; o++)
471
- if (!xe(e[o], t[o]))
471
+ if (!Re(e[o], t[o]))
472
472
  return !1;
473
473
  return !0;
474
474
  }
475
- function On(e, n, t) {
475
+ function Mn(e, n, t) {
476
476
  const o = t.center ? te(t.center) : null;
477
477
  let r = null, i = null;
478
478
  o && Number.isFinite(o.lat) && Number.isFinite(o.lng) && (r = o.lat, i = o.lng);
@@ -485,7 +485,7 @@ function On(e, n, t) {
485
485
  r !== null && i !== null && (n.current.center.lat !== r || n.current.center.lng !== i) && (c.center = { lat: r, lng: i }, l = !0), a !== null && n.current.zoom !== a && (c.zoom = a, l = !0), s !== null && n.current.heading !== s && (c.heading = s, l = !0), g !== null && n.current.tilt !== g && (c.tilt = g, l = !0), l && e.moveCamera(c);
486
486
  });
487
487
  }
488
- const Mn = () => {
488
+ const Pn = () => {
489
489
  const e = {
490
490
  position: "absolute",
491
491
  top: 0,
@@ -519,14 +519,14 @@ function le() {
519
519
  const [e, n] = I(null), t = ue((o) => n(o), [n]);
520
520
  return [e, t];
521
521
  }
522
- function Re() {
523
- return Te() === x.LOADED;
524
- }
525
522
  function je() {
526
- const [, e] = Se((n) => n + 1, 0);
523
+ return Ne() === x.LOADED;
524
+ }
525
+ function Be() {
526
+ const [, e] = _e((n) => n + 1, 0);
527
527
  return e;
528
528
  }
529
- function Pn(e, n) {
529
+ function An(e, n) {
530
530
  const t = e.getCenter(), o = e.getZoom(), r = e.getHeading() || 0, i = e.getTilt() || 0, a = e.getBounds();
531
531
  (!t || !a || !Number.isFinite(o)) && console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"), Object.assign(n.current, {
532
532
  center: (t == null ? void 0 : t.toJSON()) || { lat: 0, lng: 0 },
@@ -535,18 +535,18 @@ function Pn(e, n) {
535
535
  tilt: i
536
536
  });
537
537
  }
538
- function An(e) {
539
- const n = je(), t = j({
538
+ function Ln(e) {
539
+ const n = Be(), t = j({
540
540
  center: { lat: 0, lng: 0 },
541
541
  heading: 0,
542
542
  tilt: 0,
543
543
  zoom: 0
544
544
  });
545
- return E(() => {
545
+ return b(() => {
546
546
  if (!e)
547
547
  return;
548
548
  const o = google.maps.event.addListener(e, "bounds_changed", () => {
549
- Pn(e, t), n();
549
+ An(e, t), n();
550
550
  });
551
551
  return () => o.remove();
552
552
  }, [e, n]), t;
@@ -564,8 +564,8 @@ class ne {
564
564
  }
565
565
  ne.entries = {};
566
566
  function kn(e, n) {
567
- const t = Re(), [o, r] = I(null), [i, a] = le(), s = An(o), { id: g, defaultBounds: c, defaultCenter: l, defaultZoom: h, defaultHeading: f, defaultTilt: u, reuseMaps: p, renderingType: y, colorScheme: d } = e, m = N(e, ["id", "defaultBounds", "defaultCenter", "defaultZoom", "defaultHeading", "defaultTilt", "reuseMaps", "renderingType", "colorScheme"]), C = e.zoom !== void 0 || e.defaultZoom !== void 0, b = e.center !== void 0 || e.defaultCenter !== void 0;
568
- !c && (!C || !b) && console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"), !m.center && l && (m.center = l), !m.zoom && Number.isFinite(h) && (m.zoom = h), !m.heading && Number.isFinite(f) && (m.heading = f), !m.tilt && Number.isFinite(u) && (m.tilt = u);
567
+ const t = je(), [o, r] = I(null), [i, a] = le(), s = Ln(o), { id: g, defaultBounds: c, defaultCenter: l, defaultZoom: h, defaultHeading: f, defaultTilt: u, reuseMaps: p, renderingType: y, colorScheme: d } = e, m = N(e, ["id", "defaultBounds", "defaultCenter", "defaultZoom", "defaultHeading", "defaultTilt", "reuseMaps", "renderingType", "colorScheme"]), C = e.zoom !== void 0 || e.defaultZoom !== void 0, E = e.center !== void 0 || e.defaultCenter !== void 0;
568
+ !c && (!C || !E) && console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"), !m.center && l && (m.center = l), !m.zoom && Number.isFinite(h) && (m.zoom = h), !m.heading && Number.isFinite(f) && (m.heading = f), !m.tilt && Number.isFinite(u) && (m.tilt = u);
569
569
  const P = m.internalUsageAttributionIds;
570
570
  P == null ? m.internalUsageAttributionIds = n.internalUsageAttributionIds : m.internalUsageAttributionIds = [
571
571
  ...n.internalUsageAttributionIds || [],
@@ -574,26 +574,26 @@ function kn(e, n) {
574
574
  for (const v of Object.keys(m))
575
575
  m[v] === void 0 && delete m[v];
576
576
  const A = j(void 0);
577
- return E(
577
+ return b(
578
578
  () => {
579
579
  if (!i || !t)
580
580
  return;
581
- const { addMapInstance: v, removeMapInstance: O } = n, { mapId: D } = e, S = `${D || "default"}:${y || "default"}:${d || "LIGHT"}`;
582
- let k, T;
583
- if (p && ne.has(S) ? (T = ne.pop(S), k = T.getDiv(), i.appendChild(k), T.setOptions(m), setTimeout(() => T.moveCamera({}), 0)) : (k = document.createElement("div"), k.style.height = "100%", i.appendChild(k), T = new google.maps.Map(k, Object.assign(Object.assign(Object.assign({}, m), y ? { renderingType: y } : {}), d ? { colorScheme: d } : {}))), r(T), v(T, g), c) {
581
+ const { addMapInstance: v, removeMapInstance: O } = n, { mapId: k } = e, S = `${k || "default"}:${y || "default"}:${d || "LIGHT"}`;
582
+ let L, T;
583
+ if (p && ne.has(S) ? (T = ne.pop(S), L = T.getDiv(), i.appendChild(L), T.setOptions(m), setTimeout(() => T.moveCamera({}), 0)) : (L = document.createElement("div"), L.style.height = "100%", i.appendChild(L), T = new google.maps.Map(L, Object.assign(Object.assign(Object.assign({}, m), y ? { renderingType: y } : {}), d ? { colorScheme: d } : {}))), r(T), v(T, g), c) {
584
584
  const { padding: Y } = c, X = N(c, ["padding"]);
585
585
  T.fitBounds(X, Y);
586
- } else (!C || !b) && T.fitBounds({ east: 180, west: -180, south: -90, north: 90 });
586
+ } else (!C || !E) && T.fitBounds({ east: 180, west: -180, south: -90, north: 90 });
587
587
  if (A.current) {
588
588
  const { mapId: Y, cameraState: X } = A.current;
589
- Y !== D && T.moveCamera(X);
589
+ Y !== k && T.moveCamera(X);
590
590
  }
591
591
  return () => {
592
592
  A.current = {
593
- mapId: D,
593
+ mapId: k,
594
594
  // eslint-disable-next-line react-hooks/exhaustive-deps
595
595
  cameraState: s.current
596
- }, k.remove(), p ? ne.push(S, T) : google.maps.event.clearInstanceListeners(T), r(null), O(g);
596
+ }, L.remove(), p ? ne.push(S, T) : google.maps.event.clearInstanceListeners(T), r(null), O(g);
597
597
  };
598
598
  },
599
599
  // some dependencies are ignored in the list below:
@@ -613,14 +613,14 @@ function kn(e, n) {
613
613
  ]
614
614
  ), [o, a, s];
615
615
  }
616
- const Be = M.createContext(null), Dn = (e) => {
617
- const { children: n, id: t, className: o, style: r } = e, i = R($), a = Te();
616
+ const Fe = M.createContext(null), Dn = (e) => {
617
+ const { children: n, id: t, className: o, style: r } = e, i = R($), a = Ne();
618
618
  if (!i)
619
619
  throw new Error("<Map> can only be used inside an <ApiProvider> component.");
620
620
  const [s, g, c] = kn(e, i);
621
- On(s, c, e), dn(s, e), vn(s, e);
622
- const l = yn(s, e), h = !!e.controlled;
623
- E(() => {
621
+ Mn(s, c, e), un(s, e), yn(s, e);
622
+ const l = Cn(s, e), h = !!e.controlled;
623
+ b(() => {
624
624
  if (s)
625
625
  return l && s.setOptions({ disableDefaultUI: !0 }), (l || h) && s.setOptions({
626
626
  gestureHandling: "none",
@@ -642,11 +642,11 @@ const Be = M.createContext(null), Dn = (e) => {
642
642
  let u = null, p = null;
643
643
  f && Number.isFinite(f.lat) && Number.isFinite(f.lng) && (u = f.lat, p = f.lng);
644
644
  const y = w(() => {
645
- var C, b, P;
645
+ var C, E, P;
646
646
  return {
647
647
  center: { lat: u ?? 0, lng: p ?? 0 },
648
648
  zoom: (C = e.zoom) !== null && C !== void 0 ? C : 0,
649
- heading: (b = e.heading) !== null && b !== void 0 ? b : 0,
649
+ heading: (E = e.heading) !== null && E !== void 0 ? E : 0,
650
650
  tilt: (P = e.tilt) !== null && P !== void 0 ? P : 0
651
651
  };
652
652
  }, [u, p, e.zoom, e.heading, e.tilt]);
@@ -669,8 +669,8 @@ const Be = M.createContext(null), Dn = (e) => {
669
669
  return a === x.AUTH_FAILURE ? M.createElement(
670
670
  "div",
671
671
  { style: Object.assign({ position: "relative" }, o ? {} : d), className: o },
672
- M.createElement(Mn, null)
673
- ) : M.createElement("div", Object.assign({ ref: g, "data-testid": "map", style: o ? void 0 : d, className: o }, t ? { id: t } : {}), s ? M.createElement(Be.Provider, { value: m }, n) : null);
672
+ M.createElement(Pn, null)
673
+ ) : M.createElement("div", Object.assign({ ref: g, "data-testid": "map", style: o ? void 0 : d, className: o }, t ? { id: t } : {}), s ? M.createElement(Fe.Provider, { value: m }, n) : null);
674
674
  };
675
675
  Dn.deckGLViewProps = !0;
676
676
  const Pe = /* @__PURE__ */ new Set();
@@ -679,34 +679,34 @@ function Z(...e) {
679
679
  Pe.has(n) || (Pe.add(n), console.error(...e));
680
680
  }
681
681
  const q = (e = null) => {
682
- const n = R($), { map: t } = R(Be) || {};
682
+ const n = R($), { map: t } = R(Fe) || {};
683
683
  if (n === null)
684
684
  return Z("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."), null;
685
685
  const { mapInstances: o } = n;
686
686
  return e !== null ? o[e] || null : t || o.default || null;
687
687
  };
688
- function H(e) {
689
- const n = Re(), t = R($);
690
- return E(() => {
688
+ function G(e) {
689
+ const n = je(), t = R($);
690
+ return b(() => {
691
691
  !n || !t || t.importLibrary(e);
692
692
  }, [n, t, e]), (t == null ? void 0 : t.loadedLibraries[e]) || null;
693
693
  }
694
694
  var ie;
695
- const { useLayoutEffect: Ln, useRef: Sn } = Le, _n = (ie = Le.useInsertionEffect) !== null && ie !== void 0 ? ie : Ln;
696
- function In() {
695
+ const { useLayoutEffect: Sn, useRef: _n } = Se, In = (ie = Se.useInsertionEffect) !== null && ie !== void 0 ? ie : Sn;
696
+ function wn() {
697
697
  throw new Error("useEffectEvent: invalid call during rendering.");
698
698
  }
699
- function wn(e) {
700
- const n = Sn(In);
701
- return _n(() => {
699
+ function Tn(e) {
700
+ const n = _n(wn);
701
+ return In(() => {
702
702
  n.current = e;
703
703
  }, [e]), ((...t) => n.current(...t));
704
704
  }
705
- const Fe = wn, Tn = () => {
705
+ const ze = Tn, Nn = () => {
706
706
  };
707
- function L(e, n, t) {
708
- const o = Fe(t ?? Tn), r = !!t;
709
- E(() => {
707
+ function D(e, n, t) {
708
+ const o = ze(t ?? Nn), r = !!t;
709
+ b(() => {
710
710
  if (!e || !n || !r)
711
711
  return;
712
712
  const i = google.maps.event.addListener(e, n, o);
@@ -714,22 +714,22 @@ function L(e, n, t) {
714
714
  }, [e, n, r]);
715
715
  }
716
716
  function _(e, n, t) {
717
- E(() => {
717
+ b(() => {
718
718
  e && (e[n] = t);
719
719
  }, [e, n, t]);
720
720
  }
721
- const Nn = () => {
721
+ const xn = () => {
722
722
  };
723
723
  function ce(e, n, t) {
724
- const o = Fe(t ?? Nn), r = !!t;
725
- E(() => {
724
+ const o = ze(t ?? xn), r = !!t;
725
+ b(() => {
726
726
  if (!e || !n || !r)
727
727
  return;
728
728
  const i = o;
729
729
  return e.addEventListener(n, i), () => e.removeEventListener(n, i);
730
730
  }, [e, n, r]);
731
731
  }
732
- class xn {
732
+ class Rn {
733
733
  constructor() {
734
734
  this.renderedStyles = /* @__PURE__ */ new Set(), this.styleElement = null;
735
735
  }
@@ -750,95 +750,95 @@ class xn {
750
750
  this.styleElement && (this.styleElement.remove(), this.styleElement = null, this.renderedStyles.clear());
751
751
  }
752
752
  }
753
- const Rn = new xn();
754
- function jn(e, n) {
753
+ const jn = new Rn();
754
+ function Bn(e, n) {
755
755
  var t;
756
756
  if (!(!((t = google == null ? void 0 : google.maps) === null || t === void 0) && t.version))
757
757
  return;
758
758
  const o = google.maps.version.split("."), r = parseInt(o[0], 10), i = parseInt(o[1], 10);
759
759
  return r > e || r === e && i >= n;
760
760
  }
761
- const he = M.createContext(null), Bn = {
761
+ const he = M.createContext(null), Fn = {
762
762
  BOTTOM: ["50%", "100%"]
763
- }, Fn = B((e, n) => {
764
- const { children: t, style: o, className: r, anchorPoint: i } = e, [a, s] = Un(e), g = w(() => a ? { marker: a } : null, [a]);
765
- return z(n, () => a, [a]), s ? M.createElement(he.Provider, { value: g }, oe(M.createElement(zn, { anchorPoint: i, styles: o, className: r }, t), s)) : null;
763
+ }, zn = B((e, n) => {
764
+ const { children: t, style: o, className: r, anchorPoint: i } = e, [a, s] = Gn(e), g = w(() => a ? { marker: a } : null, [a]);
765
+ return z(n, () => a, [a]), s ? M.createElement(he.Provider, { value: g }, oe(M.createElement(Un, { anchorPoint: i, styles: o, className: r }, t), s)) : null;
766
766
  });
767
- Fn.displayName = "AdvancedMarker";
767
+ zn.displayName = "AdvancedMarker";
768
768
  function de(e) {
769
769
  return e.nodeType === Node.ELEMENT_NODE;
770
770
  }
771
- const zn = ({ children: e, styles: n, className: t }) => M.createElement("div", { className: t, style: n }, e);
772
- function Un(e) {
773
- const [n, t] = I(null), [o, r] = I(null), i = q(), a = H("marker"), { children: s, onClick: g, className: c, onMouseEnter: l, onMouseLeave: h, onDrag: f, onDragStart: u, onDragEnd: p, collisionBehavior: y, clickable: d, draggable: m, position: C, title: b, zIndex: P, anchorPoint: A, anchorLeft: v, anchorTop: O } = e, D = ge.count(s);
774
- return E(() => {
771
+ const Un = ({ children: e, styles: n, className: t }) => M.createElement("div", { className: t, style: n }, e);
772
+ function Gn(e) {
773
+ const [n, t] = I(null), [o, r] = I(null), i = q(), a = G("marker"), { children: s, onClick: g, className: c, onMouseEnter: l, onMouseLeave: h, onDrag: f, onDragStart: u, onDragEnd: p, collisionBehavior: y, clickable: d, draggable: m, position: C, title: E, zIndex: P, anchorPoint: A, anchorLeft: v, anchorTop: O } = e, k = ge.count(s);
774
+ return b(() => {
775
775
  if (!i || !a)
776
776
  return;
777
777
  const S = new a.AdvancedMarkerElement();
778
778
  S.map = i, t(S);
779
- let k = null;
780
- return D > 0 && (k = document.createElement("div"), S.content = k, r(k)), () => {
781
- S.map = null, k == null || k.remove(), t(null), r(null);
779
+ let L = null;
780
+ return k > 0 && (L = document.createElement("div"), S.content = L, r(L)), () => {
781
+ S.map = null, L == null || L.remove(), t(null), r(null);
782
782
  };
783
- }, [i, a, D]), E(() => {
784
- !(n != null && n.content) || !de(n.content) || D > 0 || (n.content.className = c ?? "");
785
- }, [n, c, D]), Hn(n, A, v, O, D > 0), _(n, "position", C), _(n, "title", b ?? ""), _(n, "zIndex", P), _(n, "collisionBehavior", y), E(() => {
783
+ }, [i, a, k]), b(() => {
784
+ !(n != null && n.content) || !de(n.content) || k > 0 || (n.content.className = c ?? "");
785
+ }, [n, c, k]), Hn(n, A, v, O, k > 0), _(n, "position", C), _(n, "title", E ?? ""), _(n, "zIndex", P), _(n, "collisionBehavior", y), b(() => {
786
786
  n && (m !== void 0 ? n.gmpDraggable = m : f || u || p ? n.gmpDraggable = !0 : n.gmpDraggable = !1);
787
- }, [n, m, f, p, u]), E(() => {
787
+ }, [n, m, f, p, u]), b(() => {
788
788
  if (!n)
789
789
  return;
790
790
  const S = d !== void 0 ? d : !!g || !!l || !!h;
791
791
  n.gmpClickable = S, S && (n != null && n.content) && de(n.content) && (n.content.style.pointerEvents = "all", g && (n.content.style.cursor = "pointer"));
792
- }, [n, d, g, l, h]), L(n, "click", g), L(n, "drag", f), L(n, "dragstart", u), L(n, "dragend", p), ce(n == null ? void 0 : n.element, "mouseenter", l), ce(n == null ? void 0 : n.element, "mouseleave", h), [n, o];
792
+ }, [n, d, g, l, h]), D(n, "click", g), D(n, "drag", f), D(n, "dragstart", u), D(n, "dragend", p), ce(n == null ? void 0 : n.element, "mouseenter", l), ce(n == null ? void 0 : n.element, "mouseleave", h), [n, o];
793
793
  }
794
794
  function Hn(e, n, t, o, r) {
795
- E(() => {
795
+ b(() => {
796
796
  if (!e || !r)
797
797
  return;
798
- const i = jn(3, 62), a = e.content;
798
+ const i = Bn(3, 62), a = e.content;
799
799
  if (!(!a || !de(a))) {
800
800
  if (t !== void 0 || o !== void 0) {
801
801
  i || console.warn(`AdvancedMarker: The anchorLeft and anchorTop props are only supported in Google Maps API version 3.62 and above. The current version is ${google.maps.version}.`), e.anchorLeft = t, e.anchorTop = o, n !== void 0 && console.warn("AdvancedMarker: the anchorPoint prop is ignored when anchorLeft and/or anchorTop are set.");
802
802
  return;
803
803
  }
804
804
  if (n !== void 0) {
805
- const [s, g] = n ?? Bn.BOTTOM, c = `calc(-1 * ${s})`, l = `calc(-1 * ${g})`;
806
- i ? (e.anchorLeft = c, e.anchorTop = l, a.style.transform = "") : (a.style.transform = `translate(50%, 100%) translate(${c}, ${l})`, e.dataset.origin = "rgm", Rn.addAdvancedMarkerPointerEventsOverwrite());
805
+ const [s, g] = n ?? Fn.BOTTOM, c = `calc(-1 * ${s})`, l = `calc(-1 * ${g})`;
806
+ i ? (e.anchorLeft = c, e.anchorTop = l, a.style.transform = "") : (a.style.transform = `translate(50%, 100%) translate(${c}, ${l})`, e.dataset.origin = "rgm", jn.addAdvancedMarkerPointerEventsOverwrite());
807
807
  }
808
808
  }
809
809
  }, [e, n, t, o, r]);
810
810
  }
811
- function Gn(e) {
811
+ function Jn(e) {
812
812
  var n, t, o;
813
- const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onRadiusChanged: l, onCenterChanged: h, center: f, defaultCenter: u, radius: p, defaultRadius: y } = e, d = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onRadiusChanged", "onCenterChanged", "center", "defaultCenter", "radius", "defaultRadius"]), [m, C] = I(null), b = q(), P = K(Object.assign(Object.assign({}, d), { clickable: (n = d.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = d.draggable) !== null && t !== void 0 ? t : !!(i || a || s || h), editable: (o = d.editable) !== null && o !== void 0 ? o : !!l }), W);
814
- return E(() => {
815
- if (!b) {
816
- b === void 0 && console.error("<Circle> has to be inside a Map component.");
813
+ const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onRadiusChanged: l, onCenterChanged: h, center: f, defaultCenter: u, radius: p, defaultRadius: y } = e, d = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onRadiusChanged", "onCenterChanged", "center", "defaultCenter", "radius", "defaultRadius"]), [m, C] = I(null), E = q(), P = K(Object.assign(Object.assign({}, d), { clickable: (n = d.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = d.draggable) !== null && t !== void 0 ? t : !!(i || a || s || h), editable: (o = d.editable) !== null && o !== void 0 ? o : !!l }), W);
814
+ return b(() => {
815
+ if (!E) {
816
+ E === void 0 && console.error("<Circle> has to be inside a Map component.");
817
817
  return;
818
818
  }
819
819
  const A = new google.maps.Circle(Object.assign(Object.assign({}, P), { center: f ?? u, radius: p ?? y }));
820
- return A.setMap(b), C(A), () => {
820
+ return A.setMap(E), C(A), () => {
821
821
  A.setMap(null), C(null);
822
822
  };
823
- }, [b]), L(m, "click", r), L(m, "drag", i), L(m, "dragstart", a), L(m, "dragend", s), L(m, "mouseover", g), L(m, "mouseout", c), L(m, "radius_changed", l ? () => {
823
+ }, [E]), D(m, "click", r), D(m, "drag", i), D(m, "dragstart", a), D(m, "dragend", s), D(m, "mouseover", g), D(m, "mouseout", c), D(m, "radius_changed", l ? () => {
824
824
  const A = m == null ? void 0 : m.getRadius();
825
825
  A !== void 0 && l(A);
826
- } : null), L(m, "center_changed", h ? () => {
826
+ } : null), D(m, "center_changed", h ? () => {
827
827
  h(m == null ? void 0 : m.getCenter());
828
- } : null), E(() => {
828
+ } : null), b(() => {
829
829
  m && m.setOptions(P);
830
- }, [m, P]), E(() => {
831
- !m || !f || Ne(f, m.getCenter()) || m.setCenter(f);
832
- }, [m, f]), E(() => {
830
+ }, [m, P]), b(() => {
831
+ !m || !f || xe(f, m.getCenter()) || m.setCenter(f);
832
+ }, [m, f]), b(() => {
833
833
  !m || p === void 0 || p !== m.getRadius() && m.setRadius(p);
834
834
  }, [m, p]), m;
835
835
  }
836
- const Jn = B((e, n) => {
837
- const t = Gn(e);
836
+ const Vn = B((e, n) => {
837
+ const t = Jn(e);
838
838
  return z(n, () => t, [t]), M.createElement(M.Fragment, null);
839
839
  });
840
- Jn.displayName = "Circle";
841
- function Vn(e, n, t) {
840
+ Vn.displayName = "Circle";
841
+ function $n(e, n, t) {
842
842
  if (n != null && typeof n != "object")
843
843
  throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");
844
844
  const o = e.style;
@@ -859,9 +859,9 @@ function Vn(e, n, t) {
859
859
  }
860
860
  function Ae(e, n, t) {
861
861
  const o = n.indexOf("--") === 0;
862
- t == null || typeof t == "boolean" || t === "" ? o ? e.setProperty(n, "") : n === "float" ? e.cssFloat = "" : e[n] = "" : o ? e.setProperty(n, t) : typeof t == "number" && t !== 0 && !qn(n) ? e[n] = t + "px" : n === "float" ? e.cssFloat = t : e[n] = ("" + t).trim();
862
+ t == null || typeof t == "boolean" || t === "" ? o ? e.setProperty(n, "") : n === "float" ? e.cssFloat = "" : e[n] = "" : o ? e.setProperty(n, t) : typeof t == "number" && t !== 0 && !Zn(n) ? e[n] = t + "px" : n === "float" ? e.cssFloat = t : e[n] = ("" + t).trim();
863
863
  }
864
- const $n = /* @__PURE__ */ new Set([
864
+ const qn = /* @__PURE__ */ new Set([
865
865
  "animationIterationCount",
866
866
  "aspectRatio",
867
867
  "borderImageOutset",
@@ -908,19 +908,19 @@ const $n = /* @__PURE__ */ new Set([
908
908
  "strokeOpacity",
909
909
  "strokeWidth"
910
910
  ]);
911
- function qn(e) {
912
- return $n.has(e);
911
+ function Zn(e) {
912
+ return qn.has(e);
913
913
  }
914
- function ke(e) {
914
+ function Le(e) {
915
915
  const n = e.getPaths(), t = [];
916
916
  for (let o = 0; o < n.getLength(); o++)
917
917
  t.push(n.getAt(o).getArray());
918
918
  return t;
919
919
  }
920
- function Zn(e) {
920
+ function Wn(e) {
921
921
  var n, t, o;
922
- const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathsChanged: l, polygon: h, encodedPaths: f, paths: u, defaultPaths: p } = e, y = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathsChanged", "polygon", "encodedPaths", "paths", "defaultPaths"]), [d, m] = I(null), C = q(), b = H("geometry"), P = j(!1), A = K(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(i || a || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), W);
923
- return E(() => {
922
+ const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathsChanged: l, polygon: h, encodedPaths: f, paths: u, defaultPaths: p } = e, y = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathsChanged", "polygon", "encodedPaths", "paths", "defaultPaths"]), [d, m] = I(null), C = q(), E = G("geometry"), P = j(!1), A = K(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(i || a || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), W);
923
+ return b(() => {
924
924
  if (!C) {
925
925
  C === void 0 && console.error("<Polygon> has to be inside a Map component.");
926
926
  return;
@@ -931,33 +931,33 @@ function Zn(e) {
931
931
  const O = u ?? p;
932
932
  O && Array.isArray(O) && v.setPaths(O), v.setOptions(A);
933
933
  } else {
934
- const O = u ?? p, D = Object.assign({}, A);
935
- O && Array.isArray(O) && (D.paths = O), v = new google.maps.Polygon(D);
934
+ const O = u ?? p, k = Object.assign({}, A);
935
+ O && Array.isArray(O) && (k.paths = O), v = new google.maps.Polygon(k);
936
936
  }
937
937
  return v.setMap(C), m(v), () => {
938
938
  v.setMap(null), m(null);
939
939
  };
940
- }, [C, h]), L(d, "click", r), L(d, "drag", i), L(d, "dragstart", a), L(d, "mouseover", g), L(d, "mouseout", c), L(d, "dragend", (v) => {
941
- s == null || s(v), l && d && !P.current && l(ke(d));
942
- }), E(() => {
940
+ }, [C, h]), D(d, "click", r), D(d, "drag", i), D(d, "dragstart", a), D(d, "mouseover", g), D(d, "mouseout", c), D(d, "dragend", (v) => {
941
+ s == null || s(v), l && d && !P.current && l(Le(d));
942
+ }), b(() => {
943
943
  if (!d || !l)
944
944
  return;
945
945
  const v = [], O = d.getPaths();
946
946
  if (typeof O.getLength != "function" || typeof O.getAt != "function")
947
947
  return;
948
- const D = () => {
949
- P.current || l(ke(d));
950
- }, S = (k) => {
951
- v.push(google.maps.event.addListener(k, "insert_at", D)), v.push(google.maps.event.addListener(k, "remove_at", D)), v.push(google.maps.event.addListener(k, "set_at", D));
948
+ const k = () => {
949
+ P.current || l(Le(d));
950
+ }, S = (L) => {
951
+ v.push(google.maps.event.addListener(L, "insert_at", k)), v.push(google.maps.event.addListener(L, "remove_at", k)), v.push(google.maps.event.addListener(L, "set_at", k));
952
952
  };
953
- for (let k = 0; k < O.getLength(); k++)
954
- S(O.getAt(k));
955
- return v.push(google.maps.event.addListener(O, "insert_at", (k) => {
956
- S(O.getAt(k)), D();
957
- })), v.push(google.maps.event.addListener(O, "set_at", (k) => {
958
- S(O.getAt(k)), D();
959
- })), v.push(google.maps.event.addListener(O, "remove_at", D)), () => {
960
- v.forEach((k) => k.remove());
953
+ for (let L = 0; L < O.getLength(); L++)
954
+ S(O.getAt(L));
955
+ return v.push(google.maps.event.addListener(O, "insert_at", (L) => {
956
+ S(O.getAt(L)), k();
957
+ })), v.push(google.maps.event.addListener(O, "set_at", (L) => {
958
+ S(O.getAt(L)), k();
959
+ })), v.push(google.maps.event.addListener(O, "remove_at", k)), () => {
960
+ v.forEach((L) => L.remove());
961
961
  };
962
962
  }, [
963
963
  d,
@@ -966,30 +966,30 @@ function Zn(e) {
966
966
  f,
967
967
  A.editable,
968
968
  A.draggable
969
- ]), E(() => {
969
+ ]), b(() => {
970
970
  d && d.setOptions(A);
971
- }, [d, A]), E(() => {
971
+ }, [d, A]), b(() => {
972
972
  if (!d || !u || !Array.isArray(u))
973
973
  return;
974
- const v = u[0], O = Array.isArray(v) ? u : [u], D = d.getPaths();
975
- bn(O, D) || (P.current = !0, d.setPaths(u), P.current = !1);
976
- }, [d, u]), E(() => {
977
- if (!d || !f || !b)
974
+ const v = u[0], O = Array.isArray(v) ? u : [u], k = d.getPaths();
975
+ On(O, k) || (P.current = !0, d.setPaths(u), P.current = !1);
976
+ }, [d, u]), b(() => {
977
+ if (!d || !f || !E)
978
978
  return;
979
979
  P.current = !0;
980
- const v = f.map((O) => b.encoding.decodePath(O));
980
+ const v = f.map((O) => E.encoding.decodePath(O));
981
981
  d.setPaths(v), P.current = !1;
982
- }, [d, f, b]), d;
982
+ }, [d, f, E]), d;
983
983
  }
984
- const Wn = B((e, n) => {
985
- const t = Zn(e);
984
+ const Kn = B((e, n) => {
985
+ const t = Wn(e);
986
986
  return z(n, () => t, [t]), M.createElement(M.Fragment, null);
987
987
  });
988
- Wn.displayName = "Polygon";
989
- function Kn(e) {
988
+ Kn.displayName = "Polygon";
989
+ function Yn(e) {
990
990
  var n, t, o;
991
- const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathChanged: l, polyline: h, encodedPath: f, path: u, defaultPath: p } = e, y = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathChanged", "polyline", "encodedPath", "path", "defaultPath"]), [d, m] = I(null), C = q(), b = H("geometry"), P = j(!1), A = K(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(i || a || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), W);
992
- return E(() => {
991
+ const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathChanged: l, polyline: h, encodedPath: f, path: u, defaultPath: p } = e, y = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathChanged", "polyline", "encodedPath", "path", "defaultPath"]), [d, m] = I(null), C = q(), E = G("geometry"), P = j(!1), A = K(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(i || a || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), W);
992
+ return b(() => {
993
993
  if (!C) {
994
994
  C === void 0 && console.error("<Polyline> has to be inside a Map component.");
995
995
  return;
@@ -1000,15 +1000,15 @@ function Kn(e) {
1000
1000
  const O = u ?? p;
1001
1001
  O && Array.isArray(O) && v.setPath(O), v.setOptions(A);
1002
1002
  } else {
1003
- const O = u ?? p, D = Object.assign({}, A);
1004
- O && Array.isArray(O) && (D.path = O), v = new google.maps.Polyline(D);
1003
+ const O = u ?? p, k = Object.assign({}, A);
1004
+ O && Array.isArray(O) && (k.path = O), v = new google.maps.Polyline(k);
1005
1005
  }
1006
1006
  return v.setMap(C), m(v), () => {
1007
1007
  v.setMap(null), m(null);
1008
1008
  };
1009
- }, [C, h]), L(d, "click", r), L(d, "drag", i), L(d, "dragstart", a), L(d, "mouseover", g), L(d, "mouseout", c), L(d, "dragend", (v) => {
1009
+ }, [C, h]), D(d, "click", r), D(d, "drag", i), D(d, "dragstart", a), D(d, "mouseover", g), D(d, "mouseout", c), D(d, "dragend", (v) => {
1010
1010
  s == null || s(v), l && d && !P.current && l(d.getPath().getArray());
1011
- }), E(() => {
1011
+ }), b(() => {
1012
1012
  if (!d || !l)
1013
1013
  return;
1014
1014
  const v = d.getPath();
@@ -1016,13 +1016,13 @@ function Kn(e) {
1016
1016
  return;
1017
1017
  const O = () => {
1018
1018
  P.current || l(v.getArray());
1019
- }, D = [
1019
+ }, k = [
1020
1020
  google.maps.event.addListener(v, "insert_at", O),
1021
1021
  google.maps.event.addListener(v, "remove_at", O),
1022
1022
  google.maps.event.addListener(v, "set_at", O)
1023
1023
  ];
1024
1024
  return () => {
1025
- D.forEach((S) => S.remove());
1025
+ k.forEach((S) => S.remove());
1026
1026
  };
1027
1027
  }, [
1028
1028
  d,
@@ -1031,34 +1031,34 @@ function Kn(e) {
1031
1031
  f,
1032
1032
  A.editable,
1033
1033
  A.draggable
1034
- ]), E(() => {
1034
+ ]), b(() => {
1035
1035
  d && d.setOptions(A);
1036
- }, [d, A]), E(() => {
1036
+ }, [d, A]), b(() => {
1037
1037
  if (!d || !u)
1038
1038
  return;
1039
1039
  const v = d.getPath();
1040
- xe(u, v) || (P.current = !0, d.setPath(u), P.current = !1);
1041
- }, [d, u]), E(() => {
1042
- if (!d || !f || !b)
1040
+ Re(u, v) || (P.current = !0, d.setPath(u), P.current = !1);
1041
+ }, [d, u]), b(() => {
1042
+ if (!d || !f || !E)
1043
1043
  return;
1044
1044
  P.current = !0;
1045
- const v = b.encoding.decodePath(f);
1045
+ const v = E.encoding.decodePath(f);
1046
1046
  d.setPath(v), P.current = !1;
1047
- }, [d, f, b]), d;
1047
+ }, [d, f, E]), d;
1048
1048
  }
1049
- const Yn = B((e, n) => {
1050
- const t = Kn(e);
1049
+ const Xn = B((e, n) => {
1050
+ const t = Yn(e);
1051
1051
  return z(n, () => t, [t]), M.createElement(M.Fragment, null);
1052
1052
  });
1053
- Yn.displayName = "Polyline";
1054
- const Xn = {
1053
+ Xn.displayName = "Polyline";
1054
+ const Qn = {
1055
1055
  center: { lat: 0, lng: 0, altitude: 0 },
1056
1056
  range: 0,
1057
1057
  heading: 0,
1058
1058
  tilt: 0,
1059
1059
  roll: 0
1060
- }, Qn = ["center", "range", "heading", "tilt", "roll"];
1061
- function et(e, n, t) {
1060
+ }, et = ["center", "range", "heading", "tilt", "roll"];
1061
+ function nt(e, n, t) {
1062
1062
  const o = e[t];
1063
1063
  if (o != null)
1064
1064
  if (t === "center") {
@@ -1067,15 +1067,15 @@ function et(e, n, t) {
1067
1067
  } else
1068
1068
  n.current[t] = o;
1069
1069
  }
1070
- function nt(e) {
1071
- const n = je(), t = j(Object.assign({}, Xn));
1072
- return E(() => {
1070
+ function tt(e) {
1071
+ const n = Be(), t = j(Object.assign({}, Qn));
1072
+ return b(() => {
1073
1073
  if (!e)
1074
1074
  return;
1075
1075
  const o = [];
1076
- for (const r of Qn) {
1076
+ for (const r of et) {
1077
1077
  const i = `gmp-${r}change`, a = () => {
1078
- et(e, t, r), n();
1078
+ nt(e, t, r), n();
1079
1079
  };
1080
1080
  e.addEventListener(i, a), o.push(() => e.removeEventListener(i, a));
1081
1081
  }
@@ -1085,13 +1085,13 @@ function nt(e) {
1085
1085
  };
1086
1086
  }, [e, n]), t;
1087
1087
  }
1088
- function tt(e) {
1089
- const n = H("maps3d"), [t, o] = I(!1), [, r] = le(), [i, a] = le(), s = nt(i);
1090
- return E(() => {
1088
+ function ot(e) {
1089
+ const n = G("maps3d"), [t, o] = I(!1), [, r] = le(), [i, a] = le(), s = tt(i);
1090
+ return b(() => {
1091
1091
  customElements.whenDefined("gmp-map-3d").then(() => {
1092
1092
  o(!0);
1093
1093
  });
1094
- }, []), E(
1094
+ }, []), b(
1095
1095
  () => {
1096
1096
  if (!i)
1097
1097
  return;
@@ -1107,24 +1107,24 @@ function tt(e) {
1107
1107
  defaultRange: m,
1108
1108
  defaultRoll: C,
1109
1109
  // Non-element props to exclude
1110
- id: b,
1110
+ id: E,
1111
1111
  style: P,
1112
1112
  className: A,
1113
1113
  children: v,
1114
1114
  onCenterChanged: O,
1115
- onHeadingChanged: D,
1115
+ onHeadingChanged: k,
1116
1116
  onTiltChanged: S,
1117
- onRangeChanged: k,
1117
+ onRangeChanged: L,
1118
1118
  onRollChanged: T,
1119
1119
  onCameraChanged: Y,
1120
1120
  onClick: X,
1121
- onSteadyChange: Ot,
1122
- onAnimationEnd: Mt,
1123
- onError: Pt,
1124
- mode: At,
1125
- gestureHandling: kt
1126
- } = e, ze = N(e, ["center", "heading", "tilt", "range", "roll", "defaultCenter", "defaultHeading", "defaultTilt", "defaultRange", "defaultRoll", "id", "style", "className", "children", "onCenterChanged", "onHeadingChanged", "onTiltChanged", "onRangeChanged", "onRollChanged", "onCameraChanged", "onClick", "onSteadyChange", "onAnimationEnd", "onError", "mode", "gestureHandling"]), pe = c ?? p, ve = l ?? y, ye = h ?? d, Ce = f ?? m, Ee = u ?? C, G = Object.assign({}, ze);
1127
- pe && (G.center = pe), ve !== void 0 && (G.heading = ve), ye !== void 0 && (G.tilt = ye), Ce !== void 0 && (G.range = Ce), Ee !== void 0 && (G.roll = Ee), Object.assign(i, G);
1121
+ onSteadyChange: Pt,
1122
+ onAnimationEnd: At,
1123
+ onError: Lt,
1124
+ mode: kt,
1125
+ gestureHandling: Dt
1126
+ } = e, Ue = N(e, ["center", "heading", "tilt", "range", "roll", "defaultCenter", "defaultHeading", "defaultTilt", "defaultRange", "defaultRoll", "id", "style", "className", "children", "onCenterChanged", "onHeadingChanged", "onTiltChanged", "onRangeChanged", "onRollChanged", "onCameraChanged", "onClick", "onSteadyChange", "onAnimationEnd", "onError", "mode", "gestureHandling"]), pe = c ?? p, ve = l ?? y, ye = h ?? d, Ce = f ?? m, be = u ?? C, H = Object.assign({}, Ue);
1127
+ pe && (H.center = pe), ve !== void 0 && (H.heading = ve), ye !== void 0 && (H.tilt = ye), Ce !== void 0 && (H.range = Ce), be !== void 0 && (H.roll = be), Object.assign(i, H);
1128
1128
  },
1129
1129
  // this effect should only run when the map3d element first becomes
1130
1130
  // available, so we skip re-running it when other props change.
@@ -1132,25 +1132,25 @@ function tt(e) {
1132
1132
  [i]
1133
1133
  ), [i, r, a, s, !!n && t];
1134
1134
  }
1135
- function ot(e) {
1135
+ function rt(e) {
1136
1136
  return e ? "toJSON" in e && typeof e.toJSON == "function" ? e.toJSON() : e : null;
1137
1137
  }
1138
- function rt(e, n, t) {
1138
+ function it(e, n, t) {
1139
1139
  var o, r, i, a, s, g, c;
1140
- const l = ot(t.center), h = (o = l == null ? void 0 : l.lat) !== null && o !== void 0 ? o : null, f = (r = l == null ? void 0 : l.lng) !== null && r !== void 0 ? r : null, u = (i = l == null ? void 0 : l.altitude) !== null && i !== void 0 ? i : null, p = (a = t.range) !== null && a !== void 0 ? a : null, y = (s = t.heading) !== null && s !== void 0 ? s : null, d = (g = t.tilt) !== null && g !== void 0 ? g : null, m = (c = t.roll) !== null && c !== void 0 ? c : null;
1140
+ const l = rt(t.center), h = (o = l == null ? void 0 : l.lat) !== null && o !== void 0 ? o : null, f = (r = l == null ? void 0 : l.lng) !== null && r !== void 0 ? r : null, u = (i = l == null ? void 0 : l.altitude) !== null && i !== void 0 ? i : null, p = (a = t.range) !== null && a !== void 0 ? a : null, y = (s = t.heading) !== null && s !== void 0 ? s : null, d = (g = t.tilt) !== null && g !== void 0 ? g : null, m = (c = t.roll) !== null && c !== void 0 ? c : null;
1141
1141
  V(() => {
1142
1142
  var C;
1143
1143
  if (!e)
1144
1144
  return;
1145
- const b = n.current;
1146
- h !== null && f !== null && (b.center.lat !== h || b.center.lng !== f || u !== null && b.center.altitude !== u) && (e.center = {
1145
+ const E = n.current;
1146
+ h !== null && f !== null && (E.center.lat !== h || E.center.lng !== f || u !== null && E.center.altitude !== u) && (e.center = {
1147
1147
  lat: h,
1148
1148
  lng: f,
1149
- altitude: (C = u ?? b.center.altitude) !== null && C !== void 0 ? C : 0
1150
- }), p !== null && b.range !== p && (e.range = p), y !== null && b.heading !== y && (e.heading = y), d !== null && b.tilt !== d && (e.tilt = d), m !== null && b.roll !== m && (e.roll = m);
1149
+ altitude: (C = u ?? E.center.altitude) !== null && C !== void 0 ? C : 0
1150
+ }), p !== null && E.range !== p && (e.range = p), y !== null && E.heading !== y && (e.heading = y), d !== null && E.tilt !== d && (e.tilt = d), m !== null && E.roll !== m && (e.roll = m);
1151
1151
  });
1152
1152
  }
1153
- const De = [
1153
+ const ke = [
1154
1154
  "gmp-centerchange",
1155
1155
  "gmp-headingchange",
1156
1156
  "gmp-tiltchange",
@@ -1172,7 +1172,7 @@ function J(e, n) {
1172
1172
  }
1173
1173
  };
1174
1174
  }
1175
- function it(e, n) {
1175
+ function at(e, n) {
1176
1176
  const t = n;
1177
1177
  return {
1178
1178
  type: "gmp-click",
@@ -1183,7 +1183,7 @@ function it(e, n) {
1183
1183
  }
1184
1184
  };
1185
1185
  }
1186
- function at(e, n) {
1186
+ function st(e, n) {
1187
1187
  return {
1188
1188
  type: "gmp-steadychange",
1189
1189
  map3d: e,
@@ -1192,32 +1192,32 @@ function at(e, n) {
1192
1192
  }
1193
1193
  };
1194
1194
  }
1195
- function st(e, n) {
1195
+ function lt(e, n) {
1196
1196
  const { onCenterChanged: t, onHeadingChanged: o, onTiltChanged: r, onRangeChanged: i, onRollChanged: a, onCameraChanged: s, onClick: g, onSteadyChange: c, onAnimationEnd: l, onError: h } = n;
1197
- U(e, "gmp-centerchange", t, J), U(e, "gmp-headingchange", o, J), U(e, "gmp-tiltchange", r, J), U(e, "gmp-rangechange", i, J), U(e, "gmp-rollchange", a, J), E(() => {
1197
+ U(e, "gmp-centerchange", t, J), U(e, "gmp-headingchange", o, J), U(e, "gmp-tiltchange", r, J), U(e, "gmp-rangechange", i, J), U(e, "gmp-rollchange", a, J), b(() => {
1198
1198
  if (!e || !s)
1199
1199
  return;
1200
1200
  const f = () => {
1201
1201
  s(J(e, "camerachange"));
1202
1202
  };
1203
- for (const u of De)
1203
+ for (const u of ke)
1204
1204
  e.addEventListener(u, f);
1205
1205
  return () => {
1206
- for (const u of De)
1206
+ for (const u of ke)
1207
1207
  e.removeEventListener(u, f);
1208
1208
  };
1209
- }, [e, s]), E(() => {
1209
+ }, [e, s]), b(() => {
1210
1210
  if (!e || !g)
1211
1211
  return;
1212
1212
  const f = (u) => {
1213
- g(it(e, u));
1213
+ g(at(e, u));
1214
1214
  };
1215
1215
  return e.addEventListener("gmp-click", f), () => e.removeEventListener("gmp-click", f);
1216
- }, [e, g]), E(() => {
1216
+ }, [e, g]), b(() => {
1217
1217
  if (!e || !c)
1218
1218
  return;
1219
1219
  const f = (u) => {
1220
- c(at(e, u));
1220
+ c(st(e, u));
1221
1221
  };
1222
1222
  return e.addEventListener("gmp-steadychange", f), () => e.removeEventListener("gmp-steadychange", f);
1223
1223
  }, [e, c]), U(e, "gmp-animationend", l, (f, u) => ({
@@ -1229,7 +1229,7 @@ function st(e, n) {
1229
1229
  }));
1230
1230
  }
1231
1231
  function U(e, n, t, o) {
1232
- E(() => {
1232
+ b(() => {
1233
1233
  if (!e || !t)
1234
1234
  return;
1235
1235
  const r = () => {
@@ -1238,7 +1238,7 @@ function U(e, n, t, o) {
1238
1238
  return e.addEventListener(n, r), () => e.removeEventListener(n, r);
1239
1239
  }, [e, n, t, o]);
1240
1240
  }
1241
- const lt = /* @__PURE__ */ new Set([
1241
+ const ct = /* @__PURE__ */ new Set([
1242
1242
  "bounds",
1243
1243
  "defaultUIHidden",
1244
1244
  "gestureHandling",
@@ -1251,31 +1251,31 @@ const lt = /* @__PURE__ */ new Set([
1251
1251
  "minTilt",
1252
1252
  "mode"
1253
1253
  ]);
1254
- function ct(e, n) {
1254
+ function dt(e, n) {
1255
1255
  const t = w(() => {
1256
1256
  const o = {}, r = Object.keys(n);
1257
1257
  for (const i of r) {
1258
- if (!lt.has(i))
1258
+ if (!ct.has(i))
1259
1259
  continue;
1260
1260
  const a = n[i];
1261
1261
  a !== void 0 && (o[i] = a);
1262
1262
  }
1263
1263
  return o;
1264
1264
  }, [n]);
1265
- we(() => {
1265
+ Te(() => {
1266
1266
  e && Object.assign(e, t);
1267
1267
  }, [e, t]);
1268
1268
  }
1269
- const dt = M.createContext(null), ut = {
1269
+ const ut = M.createContext(null), gt = {
1270
1270
  width: "100%",
1271
1271
  height: "100%",
1272
1272
  position: "relative"
1273
- }, gt = B((e, n) => {
1273
+ }, ft = B((e, n) => {
1274
1274
  const { children: t, id: o, className: r, style: i } = e, a = R($);
1275
1275
  if (!a)
1276
1276
  throw new Error("<Map3D> can only be used inside an <APIProvider> component.");
1277
- const { addMap3DInstance: s, removeMap3DInstance: g } = a, [c, l, h, f, u] = tt(e);
1278
- rt(c, f, e), st(c, e), ct(c, e), E(() => {
1277
+ const { addMap3DInstance: s, removeMap3DInstance: g } = a, [c, l, h, f, u] = ot(e);
1278
+ it(c, f, e), lt(c, e), dt(c, e), b(() => {
1279
1279
  if (!c)
1280
1280
  return;
1281
1281
  const d = o ?? "default";
@@ -1294,56 +1294,56 @@ const dt = M.createContext(null), ut = {
1294
1294
  c == null || c.stopCameraAnimation();
1295
1295
  }
1296
1296
  }), [c]);
1297
- const p = w(() => Object.assign(Object.assign({}, ut), i), [i]), y = w(() => ({ map3d: c }), [c]);
1297
+ const p = w(() => Object.assign(Object.assign({}, gt), i), [i]), y = w(() => ({ map3d: c }), [c]);
1298
1298
  return u ? M.createElement(
1299
1299
  "div",
1300
1300
  Object.assign({ ref: l, "data-testid": "map-3d", style: r ? void 0 : p, className: r }, o ? { id: o } : {}),
1301
- M.createElement("gmp-map-3d", { ref: h, style: { width: "100%", height: "100%" } }, c && M.createElement(dt.Provider, { value: y }, t))
1301
+ M.createElement("gmp-map-3d", { ref: h, style: { width: "100%", height: "100%" } }, c && M.createElement(ut.Provider, { value: y }, t))
1302
1302
  ) : M.createElement("div", Object.assign({ ref: l, "data-testid": "map-3d", style: r ? void 0 : p, className: r }, o ? { id: o } : {}));
1303
1303
  });
1304
- gt.displayName = "Map3D";
1305
- const me = Ue(null), ft = B(function(n, t) {
1306
- const { children: o, onClick: r, position: i, altitudeMode: a, collisionBehavior: s, drawsWhenOccluded: g, extruded: c, label: l, sizePreserved: h, zIndex: f, title: u } = n, p = !!r, [y, d] = I(null), [m, C] = I(!1), b = w(() => {
1304
+ ft.displayName = "Map3D";
1305
+ const me = Ge(null), ht = B(function(n, t) {
1306
+ const { children: o, onClick: r, position: i, altitudeMode: a, collisionBehavior: s, drawsWhenOccluded: g, extruded: c, label: l, sizePreserved: h, zIndex: f, title: u } = n, p = !!r, [y, d] = I(null), [m, C] = I(!1), E = w(() => {
1307
1307
  const v = document.createElement("div");
1308
1308
  return v.style.display = "none", document.body.appendChild(v), v;
1309
1309
  }, []);
1310
- E(() => () => b.remove(), [b]);
1310
+ b(() => () => E.remove(), [E]);
1311
1311
  const P = ue((v) => {
1312
1312
  d(v), typeof t == "function" ? t(v) : t && (t.current = v);
1313
1313
  }, [t]);
1314
1314
  ce(y, "gmp-click", r), V(() => {
1315
- if (m || !y || !b)
1315
+ if (m || !y || !E)
1316
1316
  return;
1317
1317
  for (; y.firstChild; )
1318
1318
  y.removeChild(y.firstChild);
1319
- const v = Array.from(b.childNodes);
1319
+ const v = Array.from(E.childNodes);
1320
1320
  for (const O of v) {
1321
1321
  if (O.nodeType !== Node.ELEMENT_NODE)
1322
1322
  continue;
1323
- const D = O, S = D.tagName.toLowerCase();
1323
+ const k = O, S = k.tagName.toLowerCase();
1324
1324
  if (S === "img" || S === "svg") {
1325
- const k = document.createElement("template");
1326
- k.content.appendChild(D.cloneNode(!0)), y.appendChild(k);
1325
+ const L = document.createElement("template");
1326
+ L.content.appendChild(k.cloneNode(!0)), y.appendChild(L);
1327
1327
  } else
1328
- y.appendChild(D.cloneNode(!0));
1328
+ y.appendChild(k.cloneNode(!0));
1329
1329
  }
1330
- }, [y, b, o, m]);
1330
+ }, [y, E, o, m]);
1331
1331
  const A = w(() => ({ marker: y, setContentHandledExternally: C }), [y]);
1332
1332
  return _(y, "position", i), _(y, "altitudeMode", a), _(y, "collisionBehavior", s), _(y, "drawsWhenOccluded", g), _(y, "extruded", c), _(y, "label", l), _(y, "sizePreserved", h), _(y, "zIndex", f), _(y, "title", u ?? ""), M.createElement(
1333
1333
  me.Provider,
1334
1334
  { value: A },
1335
1335
  p ? M.createElement("gmp-marker-3d-interactive", { ref: P }) : M.createElement("gmp-marker-3d", { ref: P }),
1336
- oe(o, b)
1336
+ oe(o, E)
1337
1337
  );
1338
1338
  });
1339
- ft.displayName = "Marker3D";
1340
- const ht = B(function(n, t) {
1339
+ ht.displayName = "Marker3D";
1340
+ const mt = B(function(n, t) {
1341
1341
  var o;
1342
1342
  const { children: r, headerContent: i, style: a, className: s, open: g = !0, position: c, anchor: l, anchorId: h, altitudeMode: f, lightDismissDisabled: u, autoPanDisabled: p, onClose: y } = n, [d, m] = I(null), C = j(null);
1343
- z(t, () => d, [d]), mt(d, g, y), _(d, "open", g ?? !1), _(d, "altitudeMode", f), _(d, "lightDismissDisabled", u), _(d, "autoPanDisabled", p);
1344
- const b = (o = l ?? h) !== null && o !== void 0 ? o : c;
1345
- return _(d, "positionAnchor", b), V(() => {
1346
- d && (Vn(d, a || null, C.current), C.current = a || null);
1343
+ z(t, () => d, [d]), pt(d, g, y), _(d, "open", g ?? !1), _(d, "altitudeMode", f), _(d, "lightDismissDisabled", u), _(d, "autoPanDisabled", p);
1344
+ const E = (o = l ?? h) !== null && o !== void 0 ? o : c;
1345
+ return _(d, "positionAnchor", E), V(() => {
1346
+ d && ($n(d, a || null, C.current), C.current = a || null);
1347
1347
  }, [d, a]), M.createElement(
1348
1348
  "gmp-popover",
1349
1349
  { ref: m, className: s },
@@ -1351,12 +1351,12 @@ const ht = B(function(n, t) {
1351
1351
  r
1352
1352
  );
1353
1353
  });
1354
- ht.displayName = "Popover";
1355
- function mt(e, n, t) {
1354
+ mt.displayName = "Popover";
1355
+ function pt(e, n, t) {
1356
1356
  const o = j(void 0), r = j(n);
1357
- E(() => {
1357
+ b(() => {
1358
1358
  r.current = n;
1359
- }, [n]), E(() => {
1359
+ }, [n]), b(() => {
1360
1360
  if (!e || !t)
1361
1361
  return;
1362
1362
  const i = new MutationObserver((a) => {
@@ -1374,9 +1374,9 @@ function mt(e, n, t) {
1374
1374
  };
1375
1375
  }, [e, t]);
1376
1376
  }
1377
- function pt(e) {
1377
+ function vt(e) {
1378
1378
  const [n, t] = I(null), o = q(), { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c } = e, l = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut"]), { position: h, draggable: f } = l;
1379
- return E(() => {
1379
+ return b(() => {
1380
1380
  if (!o) {
1381
1381
  o === void 0 && console.error("<Marker> has to be inside a Map component.");
1382
1382
  return;
@@ -1385,7 +1385,7 @@ function pt(e) {
1385
1385
  return u.setMap(o), t(u), () => {
1386
1386
  u.setMap(null), t(null);
1387
1387
  };
1388
- }, [o]), E(() => {
1388
+ }, [o]), b(() => {
1389
1389
  if (!n)
1390
1390
  return;
1391
1391
  const u = n, p = google.maps.event;
@@ -1401,23 +1401,23 @@ function pt(e) {
1401
1401
  s,
1402
1402
  g,
1403
1403
  c
1404
- ]), E(() => {
1404
+ ]), b(() => {
1405
1405
  n && l && n.setOptions(l);
1406
- }, [n, l]), E(() => {
1406
+ }, [n, l]), b(() => {
1407
1407
  f || !h || !n || n.setPosition(h);
1408
1408
  }, [f, h, n]), n;
1409
1409
  }
1410
- const vt = B((e, n) => {
1411
- const t = pt(e);
1410
+ const yt = B((e, n) => {
1411
+ const t = vt(e);
1412
1412
  return z(n, () => t, [t]), M.createElement(M.Fragment, null);
1413
1413
  });
1414
- vt.displayName = "Marker";
1415
- const yt = (e) => {
1416
- const n = R(he), t = R(me), o = n == null ? void 0 : n.marker, r = t == null ? void 0 : t.marker, i = t == null ? void 0 : t.setContentHandledExternally, a = w(() => document.createElement("div"), []), s = H("marker");
1417
- return E(() => {
1414
+ yt.displayName = "Marker";
1415
+ const Ct = (e) => {
1416
+ const n = R(he), t = R(me), o = n == null ? void 0 : n.marker, r = t == null ? void 0 : t.marker, i = t == null ? void 0 : t.setContentHandledExternally, a = w(() => document.createElement("div"), []), s = G("marker");
1417
+ return b(() => {
1418
1418
  if (r && i)
1419
1419
  return i(!0), () => i(!1);
1420
- }, [r, i]), E(() => {
1420
+ }, [r, i]), b(() => {
1421
1421
  if (!r || !s)
1422
1422
  return;
1423
1423
  const g = Object.assign({}, e), c = new s.PinElement(g);
@@ -1425,7 +1425,7 @@ const yt = (e) => {
1425
1425
  r.removeChild(r.firstChild);
1426
1426
  return r.append(c), () => {
1427
1427
  };
1428
- }, [r, s, a, e]), E(() => {
1428
+ }, [r, s, a, e]), b(() => {
1429
1429
  var g;
1430
1430
  if (r)
1431
1431
  return;
@@ -1441,12 +1441,12 @@ const yt = (e) => {
1441
1441
  h.removeChild(h.firstChild);
1442
1442
  h && h.appendChild(l.element);
1443
1443
  }, [o, a, r, e]), oe(e.children, a);
1444
- }, Ct = (e) => {
1445
- const { children: n } = e, t = R(he), o = R(me), r = t == null ? void 0 : t.marker, i = o == null ? void 0 : o.marker, a = o == null ? void 0 : o.setContentHandledExternally, s = w(() => document.createElement("div"), []), g = H("marker");
1446
- return E(() => {
1444
+ }, bt = (e) => {
1445
+ const { children: n } = e, t = R(he), o = R(me), r = t == null ? void 0 : t.marker, i = o == null ? void 0 : o.marker, a = o == null ? void 0 : o.setContentHandledExternally, s = w(() => document.createElement("div"), []), g = G("marker");
1446
+ return b(() => {
1447
1447
  if (i && a)
1448
1448
  return a(!0), () => a(!1);
1449
- }, [i, a]), E(() => {
1449
+ }, [i, a]), b(() => {
1450
1450
  if (!i || !g)
1451
1451
  return;
1452
1452
  const c = Object.assign({}, e), l = new g.PinElement(c);
@@ -1454,7 +1454,7 @@ const yt = (e) => {
1454
1454
  i.removeChild(i.firstChild);
1455
1455
  return i.appendChild(l), () => {
1456
1456
  };
1457
- }, [i, g, s, n, e]), E(() => {
1457
+ }, [i, g, s, n, e]), b(() => {
1458
1458
  var c;
1459
1459
  if (i)
1460
1460
  return;
@@ -1477,23 +1477,23 @@ const yt = (e) => {
1477
1477
  n,
1478
1478
  e
1479
1479
  ]), oe(n, s);
1480
- }, It = (e) => {
1480
+ }, Tt = (e) => {
1481
1481
  var n;
1482
- const t = H("marker"), o = w(() => t ? typeof customElements < "u" && customElements.get("gmp-pin") !== void 0 : !1, [t]);
1482
+ const t = G("marker"), o = w(() => t ? typeof customElements < "u" && customElements.get("gmp-pin") !== void 0 : !1, [t]);
1483
1483
  if (!t)
1484
1484
  return null;
1485
1485
  if (o) {
1486
1486
  const { glyph: r, glyphSrc: i, glyphText: a } = e, s = N(e, ["glyph", "glyphSrc", "glyphText"]), g = r instanceof URL || typeof r == "string" && r.startsWith("http"), c = a ?? (typeof r == "string" && !g ? r : void 0), l = i ?? (g ? String(r) : void 0);
1487
- return M.createElement(Ct, Object.assign({}, s, { glyphText: c, glyphSrc: l }));
1487
+ return M.createElement(bt, Object.assign({}, s, { glyphText: c, glyphSrc: l }));
1488
1488
  } else {
1489
1489
  const { glyph: r, glyphSrc: i, glyphText: a } = e, s = N(e, ["glyph", "glyphSrc", "glyphText"]), g = (n = r ?? i) !== null && n !== void 0 ? n : a;
1490
- return M.createElement(yt, Object.assign({}, s, { glyph: g }));
1490
+ return M.createElement(Ct, Object.assign({}, s, { glyph: g }));
1491
1491
  }
1492
1492
  };
1493
1493
  function Et(e) {
1494
1494
  var n, t, o;
1495
1495
  const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onBoundsChanged: l, bounds: h, defaultBounds: f } = e, u = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onBoundsChanged", "bounds", "defaultBounds"]), [p, y] = I(null), d = q(), m = K(Object.assign(Object.assign({}, u), { clickable: (n = u.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = u.draggable) !== null && t !== void 0 ? t : !!(i || a || s || l), editable: (o = u.editable) !== null && o !== void 0 ? o : !!l }), W);
1496
- return E(() => {
1496
+ return b(() => {
1497
1497
  if (!d) {
1498
1498
  d === void 0 && console.error("<Rectangle> has to be inside a Map component.");
1499
1499
  return;
@@ -1502,29 +1502,70 @@ function Et(e) {
1502
1502
  return C.setMap(d), y(C), () => {
1503
1503
  C.setMap(null), y(null);
1504
1504
  };
1505
- }, [d]), L(p, "click", r), L(p, "drag", i), L(p, "dragstart", a), L(p, "dragend", s), L(p, "mouseover", g), L(p, "mouseout", c), L(p, "bounds_changed", l ? () => {
1505
+ }, [d]), D(p, "click", r), D(p, "drag", i), D(p, "dragstart", a), D(p, "dragend", s), D(p, "mouseover", g), D(p, "mouseout", c), D(p, "bounds_changed", l ? () => {
1506
1506
  l(p == null ? void 0 : p.getBounds());
1507
- } : null), E(() => {
1507
+ } : null), b(() => {
1508
1508
  p && p.setOptions(m);
1509
- }, [p, m]), E(() => {
1509
+ }, [p, m]), b(() => {
1510
1510
  !p || !h || En(h, p.getBounds()) || p.setBounds(h);
1511
1511
  }, [p, h]), p;
1512
1512
  }
1513
- const bt = B((e, n) => {
1513
+ const Ot = B((e, n) => {
1514
1514
  const t = Et(e);
1515
1515
  return z(n, () => t, [
1516
1516
  t
1517
1517
  ]), M.createElement(M.Fragment, null);
1518
1518
  });
1519
- bt.displayName = "Rectangle";
1519
+ Ot.displayName = "Rectangle";
1520
+ const Mt = {
1521
+ core: "Settings",
1522
+ maps: "Map"
1523
+ }, De = (e) => {
1524
+ var t;
1525
+ const n = (t = globalThis.google) == null ? void 0 : t.maps;
1526
+ return !n || typeof n.importLibrary != "function" ? !0 : e.every((o) => {
1527
+ const r = Mt[o];
1528
+ return r !== void 0 && typeof n[r] == "function";
1529
+ });
1530
+ };
1531
+ function Nt({
1532
+ libraries: e = [],
1533
+ pending: n,
1534
+ children: t
1535
+ }) {
1536
+ const o = ["core", ...e.filter((s) => s !== "core")], r = o.join(","), [i, a] = I(() => ({
1537
+ status: De(o) ? "ready" : "pending"
1538
+ }));
1539
+ if (b(() => {
1540
+ var c;
1541
+ const s = (c = globalThis.google) == null ? void 0 : c.maps;
1542
+ if (!s || De(r.split(","))) {
1543
+ a({ status: "ready" });
1544
+ return;
1545
+ }
1546
+ let g = !1;
1547
+ return Promise.all(r.split(",").map((l) => {
1548
+ var h;
1549
+ return (h = s.importLibrary) == null ? void 0 : h.call(s, l);
1550
+ })).then(() => {
1551
+ g || a({ status: "ready" });
1552
+ }).catch((l) => {
1553
+ g || a({ status: "failed", error: l });
1554
+ }), () => {
1555
+ g = !0;
1556
+ };
1557
+ }, [r]), i.status === "failed") throw i.error;
1558
+ return i.status === "ready" ? t : n;
1559
+ }
1520
1560
  export {
1521
- _t as A,
1522
- Dn as M,
1523
- It as P,
1524
- Fn as a,
1525
- vt as b,
1526
- H as c,
1527
- q as d,
1528
- Re as u
1561
+ wt as A,
1562
+ Nt as M,
1563
+ Tt as P,
1564
+ Dn as a,
1565
+ zn as b,
1566
+ yt as c,
1567
+ G as d,
1568
+ q as e,
1569
+ je as u
1529
1570
  };
1530
- //# sourceMappingURL=index.modern-BeRXQVdc.js.map
1571
+ //# sourceMappingURL=maps-core-gate-DkNqGkm3.js.map