wacomm 1.79.1 → 1.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6309,9 +6309,9 @@ function E2({ className: e = "", size: t = me.md }) {
6309
6309
  );
6310
6310
  }
6311
6311
  const j2 = {
6312
- sports: Hv,
6313
- pets: qv,
6314
- cardgames: E2
6312
+ "1_sports": Hv,
6313
+ "2_pets": qv,
6314
+ "3_cardgames": E2
6315
6315
  // Future categories can be added here
6316
6316
  };
6317
6317
  function L2({ categoryType: e, size: t = me.md, className: o = "" }) {
@@ -39908,11 +39908,11 @@ function TR(e) {
39908
39908
  }, [r]), null;
39909
39909
  }
39910
39910
  const cB = xr(TR);
39911
- const PR = import("./maplibre-gl-BaiwSKaM.mjs").then((e) => e.m), wR = A.forwardRef(function(t, o) {
39911
+ const PR = import("./maplibre-gl-DMDcGdsX.mjs").then((e) => e.m), wR = A.forwardRef(function(t, o) {
39912
39912
  return Fg(t, o, PR);
39913
39913
  }), xR = Vg;
39914
39914
  const CR = vR;
39915
- const SR = import("./mapbox-gl-Dxucvo--.mjs").then((e) => e.m), uB = A.forwardRef(function(t, o) {
39915
+ const SR = import("./mapbox-gl-7dMRgpHv.mjs").then((e) => e.m), uB = A.forwardRef(function(t, o) {
39916
39916
  return Fg(t, o, SR);
39917
39917
  }), IR = Vg;
39918
39918
  function MR({ locations: e }) {
@@ -26,7 +26,7 @@
26
26
  L4.9,6.1L3.6,7.3C2.8,8.2,2.8,9.5,3.6,10.4z`}),J.jsx("path",{className:"st0",d:`M28.4,4.7c-0.8-0.9-2.2-0.9-3.1,0L24,6.1l-1.3-1.4c-0.8-0.9-2.2-0.9-3.1,0s-0.8,2.5,0,3.4l1.3,1.4L24,13
27
27
  l3.1-3.4l1.3-1.4C29.2,7.2,29.2,5.7,28.4,4.7z`}),J.jsx("line",{className:"st0",x1:"7",y1:"14",x2:"9",y2:"14"}),J.jsx("line",{className:"st0",x1:"8",y1:"10",x2:"8",y2:"14"}),J.jsx("line",{className:"st0",x1:"23",y1:"29",x2:"25",y2:"29"}),J.jsx("line",{className:"st0",x1:"24",y1:"25",x2:"24",y2:"29"}),J.jsx("path",{className:"st0",d:`M26.5,21c-0.1,0-0.2,0-0.4,0c0.2-0.4,0.4-0.8,0.4-1.3c0-1.4-1.1-2.5-2.5-2.5c-1.4,0-2.5,1.1-2.5,2.5
28
28
  c0,0.5,0.1,0.9,0.4,1.3c-0.1,0-0.2,0-0.4,0c-1.4,0-2.5,1.1-2.5,2.5c0,1.4,1.1,2.5,2.5,2.5c1.2,0,2.2-0.9,2.4-2h0.1
29
- c0.2,1.1,1.2,2,2.4,2c1.4,0,2.5-1.1,2.5-2.5C29,22.1,27.9,21,26.5,21z`}),J.jsx("polygon",{className:"st0",points:"8,18 3,23.5 8,29 13,23.5 "})]})}const S2={sports:jv,pets:Lv,cardgames:C2};function I2({categoryType:e,size:t=he.md,className:o=""}){const n=S2[e];return n?J.jsx(n,{size:t,className:o}):null}function M2({className:e="",size:t=he.md}){return J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,height:t,width:t,viewBox:"0 -960 960 960",children:J.jsx("path",{d:"m414-168 12-56q3-13 12.5-21.5T462-256l124-10q13-2 24 5t16 19l16 38q39-23 70-55.5t52-72.5l-12-6q-11-8-16-19.5t-2-24.5l28-122q3-12 12.5-20t21.5-10q-5-25-12.5-48.5T764-628q-9 5-19.5 4.5T726-630l-106-64q-11-7-16-19t-2-25l8-34q-31-14-63.5-21t-66.5-7q-14 0-29 1.5t-29 4.5l30 68q5 12 2.5 25T442-680l-94 82q-10 9-23.5 10t-24.5-6l-92-56q-23 38-35.5 81.5T160-480q0 16 4 52l88-8q14-2 25.5 4.5T294-412l48 114q5 12 2.5 25T332-252l-38 32q27 20 57.5 33t62.5 19Zm72-172q-13 2-24-5t-16-19l-54-124q-5-12-1.5-25t13.5-21l102-86q9-9 22-10t24 6l112 66q11 7 17 19t3 25l-32 130q-3 13-12 21.5T618-352l-132 12Zm-6 260q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"})})}function k2({className:e="",size:t=he.md}){return J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,height:t,width:t,viewBox:"0 -960 960 960",children:J.jsx("path",{d:"m280-40 123-622q6-29 27-43.5t44-14.5q23 0 42.5 10t31.5 30l40 64q18 29 46.5 52.5T700-529v-71h60v560h-60v-406q-48-11-89-35t-71-59l-24 120 84 80v300h-80v-240l-84-80-72 320h-84Zm17-395-85-16q-16-3-25-16.5t-6-30.5l30-157q6-32 34-50.5t60-12.5l46 9-54 274Zm243-305q-33 0-56.5-23.5T460-820q0-33 23.5-56.5T540-900q33 0 56.5 23.5T620-820q0 33-23.5 56.5T540-740Z"})})}function A2({className:e="",size:t=he.md}){return J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,height:t,width:t,viewBox:"0 -960 960 960",children:J.jsx("path",{d:"m137-160-57-56 164-164q31-31 42.5-77.5T298-600q0-58 26-114t74-104q91-91 201-103t181 61q72 72 60 182T738-478q-48 48-104 74t-114 26q-97 0-142 11t-77 43L137-160Zm275-334q47 46 127 34t143-75q64-64 76.5-143.5T724-803q-48-48-125.5-36T456-763q-63 63-76.5 142.5T412-494ZM720-40q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113T720-40Zm0-80q33 0 56.5-23.5T800-200q0-33-23.5-56.5T720-280q-33 0-56.5 23.5T640-200q0 33 23.5 56.5T720-120Zm0-80Z"})})}function O2({className:e="",size:t=he.md}){return J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,height:t,width:t,viewBox:"0 -960 960 960",children:J.jsx("path",{d:"m216-160-56-56 384-384H440v80h-80v-160h233q16 0 31 6t26 17l120 119q27 27 66 42t84 16v80q-62 0-112.5-19T718-476l-40-42-88 88 90 90-262 151-40-69 172-99-68-68-266 265Zm-96-280v-80h200v80H120ZM40-560v-80h200v80H40Zm739-80q-33 0-57-23.5T698-720q0-33 24-56.5t57-23.5q33 0 57 23.5t24 56.5q0 33-24 56.5T779-640Zm-659-40v-80h200v80H120Z"})})}function R2({className:e="",size:t=he.md}){return J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,height:t,width:t,viewBox:"0 -960 960 960",children:J.jsx("path",{d:"M162-520h114q-6-38-23-71t-43-59q-18 29-30.5 61.5T162-520Zm522 0h114q-5-36-17.5-68.5T750-650q-26 26-43 59t-23 71ZM210-310q26-26 43-59t23-71H162q5 36 17.5 68.5T210-310Zm540 0q18-29 30.5-61.5T798-440H684q6 38 23 71t43 59ZM358-520h82v-278q-53 8-98.5 29.5T260-712q39 38 64.5 86.5T358-520Zm162 0h82q8-57 33.5-105.5T700-712q-36-35-81.5-56.5T520-798v278Zm-80 358v-278h-82q-8 57-33.5 105.5T260-248q36 35 81.5 56.5T440-162Zm80 0q53-8 98.5-29.5T700-248q-39-38-64.5-86.5T602-440h-82v278Zm-40-318Zm0 400q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"})})}function D2({className:e="",size:t=he.md}){return J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,height:t,width:t,viewBox:"0 -960 960 960",children:J.jsx("path",{d:"M480-320q-117 0-198.5-81.5T200-600q0-117 81.5-198.5T480-880q117 0 198.5 81.5T760-600q0 117-81.5 198.5T480-320Zm0-80q83 0 141.5-58.5T680-600q0-83-58.5-141.5T480-800q-83 0-141.5 58.5T280-600q0 83 58.5 141.5T480-400Zm-80-200q17 0 28.5-11.5T440-640q0-17-11.5-28.5T400-680q-17 0-28.5 11.5T360-640q0 17 11.5 28.5T400-600Zm160 0q17 0 28.5-11.5T600-640q0-17-11.5-28.5T560-680q-17 0-28.5 11.5T520-640q0 17 11.5 28.5T560-600Zm-80-80q17 0 28.5-11.5T520-720q0-17-11.5-28.5T480-760q-17 0-28.5 11.5T440-720q0 17 11.5 28.5T480-680ZM440-80v-40q0-33-23.5-56.5T360-200h-80v-80h400v80h-80q-33 0-56.5 23.5T520-120v40h-80Zm40-520Z"})})}function E2({className:e="fill-gray-600",size:t=he.md}){return J.jsx("svg",{className:e,height:t,width:t,version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 306.292 306.292",children:J.jsx("g",{children:J.jsx("path",{d:`M299.109,71.481c-8.554-18.094-23.642-31.774-42.484-38.52c-18.844-6.748-39.186-5.751-57.279,2.803
29
+ c0.2,1.1,1.2,2,2.4,2c1.4,0,2.5-1.1,2.5-2.5C29,22.1,27.9,21,26.5,21z`}),J.jsx("polygon",{className:"st0",points:"8,18 3,23.5 8,29 13,23.5 "})]})}const S2={"1_sports":jv,"2_pets":Lv,"3_cardgames":C2};function I2({categoryType:e,size:t=he.md,className:o=""}){const n=S2[e];return n?J.jsx(n,{size:t,className:o}):null}function M2({className:e="",size:t=he.md}){return J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,height:t,width:t,viewBox:"0 -960 960 960",children:J.jsx("path",{d:"m414-168 12-56q3-13 12.5-21.5T462-256l124-10q13-2 24 5t16 19l16 38q39-23 70-55.5t52-72.5l-12-6q-11-8-16-19.5t-2-24.5l28-122q3-12 12.5-20t21.5-10q-5-25-12.5-48.5T764-628q-9 5-19.5 4.5T726-630l-106-64q-11-7-16-19t-2-25l8-34q-31-14-63.5-21t-66.5-7q-14 0-29 1.5t-29 4.5l30 68q5 12 2.5 25T442-680l-94 82q-10 9-23.5 10t-24.5-6l-92-56q-23 38-35.5 81.5T160-480q0 16 4 52l88-8q14-2 25.5 4.5T294-412l48 114q5 12 2.5 25T332-252l-38 32q27 20 57.5 33t62.5 19Zm72-172q-13 2-24-5t-16-19l-54-124q-5-12-1.5-25t13.5-21l102-86q9-9 22-10t24 6l112 66q11 7 17 19t3 25l-32 130q-3 13-12 21.5T618-352l-132 12Zm-6 260q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"})})}function k2({className:e="",size:t=he.md}){return J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,height:t,width:t,viewBox:"0 -960 960 960",children:J.jsx("path",{d:"m280-40 123-622q6-29 27-43.5t44-14.5q23 0 42.5 10t31.5 30l40 64q18 29 46.5 52.5T700-529v-71h60v560h-60v-406q-48-11-89-35t-71-59l-24 120 84 80v300h-80v-240l-84-80-72 320h-84Zm17-395-85-16q-16-3-25-16.5t-6-30.5l30-157q6-32 34-50.5t60-12.5l46 9-54 274Zm243-305q-33 0-56.5-23.5T460-820q0-33 23.5-56.5T540-900q33 0 56.5 23.5T620-820q0 33-23.5 56.5T540-740Z"})})}function A2({className:e="",size:t=he.md}){return J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,height:t,width:t,viewBox:"0 -960 960 960",children:J.jsx("path",{d:"m137-160-57-56 164-164q31-31 42.5-77.5T298-600q0-58 26-114t74-104q91-91 201-103t181 61q72 72 60 182T738-478q-48 48-104 74t-114 26q-97 0-142 11t-77 43L137-160Zm275-334q47 46 127 34t143-75q64-64 76.5-143.5T724-803q-48-48-125.5-36T456-763q-63 63-76.5 142.5T412-494ZM720-40q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113T720-40Zm0-80q33 0 56.5-23.5T800-200q0-33-23.5-56.5T720-280q-33 0-56.5 23.5T640-200q0 33 23.5 56.5T720-120Zm0-80Z"})})}function O2({className:e="",size:t=he.md}){return J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,height:t,width:t,viewBox:"0 -960 960 960",children:J.jsx("path",{d:"m216-160-56-56 384-384H440v80h-80v-160h233q16 0 31 6t26 17l120 119q27 27 66 42t84 16v80q-62 0-112.5-19T718-476l-40-42-88 88 90 90-262 151-40-69 172-99-68-68-266 265Zm-96-280v-80h200v80H120ZM40-560v-80h200v80H40Zm739-80q-33 0-57-23.5T698-720q0-33 24-56.5t57-23.5q33 0 57 23.5t24 56.5q0 33-24 56.5T779-640Zm-659-40v-80h200v80H120Z"})})}function R2({className:e="",size:t=he.md}){return J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,height:t,width:t,viewBox:"0 -960 960 960",children:J.jsx("path",{d:"M162-520h114q-6-38-23-71t-43-59q-18 29-30.5 61.5T162-520Zm522 0h114q-5-36-17.5-68.5T750-650q-26 26-43 59t-23 71ZM210-310q26-26 43-59t23-71H162q5 36 17.5 68.5T210-310Zm540 0q18-29 30.5-61.5T798-440H684q6 38 23 71t43 59ZM358-520h82v-278q-53 8-98.5 29.5T260-712q39 38 64.5 86.5T358-520Zm162 0h82q8-57 33.5-105.5T700-712q-36-35-81.5-56.5T520-798v278Zm-80 358v-278h-82q-8 57-33.5 105.5T260-248q36 35 81.5 56.5T440-162Zm80 0q53-8 98.5-29.5T700-248q-39-38-64.5-86.5T602-440h-82v278Zm-40-318Zm0 400q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"})})}function D2({className:e="",size:t=he.md}){return J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,height:t,width:t,viewBox:"0 -960 960 960",children:J.jsx("path",{d:"M480-320q-117 0-198.5-81.5T200-600q0-117 81.5-198.5T480-880q117 0 198.5 81.5T760-600q0 117-81.5 198.5T480-320Zm0-80q83 0 141.5-58.5T680-600q0-83-58.5-141.5T480-800q-83 0-141.5 58.5T280-600q0 83 58.5 141.5T480-400Zm-80-200q17 0 28.5-11.5T440-640q0-17-11.5-28.5T400-680q-17 0-28.5 11.5T360-640q0 17 11.5 28.5T400-600Zm160 0q17 0 28.5-11.5T600-640q0-17-11.5-28.5T560-680q-17 0-28.5 11.5T520-640q0 17 11.5 28.5T560-600Zm-80-80q17 0 28.5-11.5T520-720q0-17-11.5-28.5T480-760q-17 0-28.5 11.5T440-720q0 17 11.5 28.5T480-680ZM440-80v-40q0-33-23.5-56.5T360-200h-80v-80h400v80h-80q-33 0-56.5 23.5T520-120v40h-80Zm40-520Z"})})}function E2({className:e="fill-gray-600",size:t=he.md}){return J.jsx("svg",{className:e,height:t,width:t,version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 306.292 306.292",children:J.jsx("g",{children:J.jsx("path",{d:`M299.109,71.481c-8.554-18.094-23.642-31.774-42.484-38.52c-18.844-6.748-39.186-5.751-57.279,2.803
30
30
  c-6.996,3.307-13.397,7.655-19.002,12.861c-0.341-0.174-0.689-0.334-1.053-0.465c-2.247-0.805-4.722-0.684-6.88,0.336
31
31
  l-24.527,11.595c-3.118,1.474-4.993,4.508-5.142,7.729L6.619,105.204c-4.793,1.316-7.612,6.269-6.295,11.062
32
32
  c1.097,3.996,4.721,6.619,8.673,6.619c0.789,0,1.591-0.105,2.389-0.324l41.318-11.347l13.88,29.362l-37.462,14.199
@@ -415,7 +415,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
415
415
  * @license MIT
416
416
  * This source code is licensed under the MIT license found in the
417
417
  * LICENSE file in the root directory of this source tree.
418
- */function cR({value:e,setValue:t,disabled:o=!1}){return C.jsx(Vi,{dateAdapter:fl,children:C.jsx(iR,{value:e,minDate:or.getToday(),disabled:o,onChange:t,slotProps:{textField:{sx:{"& .MuiPickersSectionList-root":{padding:0},"& .MuiPickersInputBase-sectionsContainer":{padding:0},width:"100%",height:30,"& .MuiInputBase-root":{height:30,"& .MuiInputBase-input":{padding:"0px 16px",color:"gray"}}}}}})})}const Eg=e=>e.format("MMM D"),xu=e=>e.format("hh:mm A"),Cu=e=>e.format("MMM D, hh:mm A"),jg=(e,t)=>e.month()===t.month()&&e.date()===t.date(),Lg=(e,t)=>jg(e,t)?`${Eg(e)}, ${xu(e)} - ${xu(t)}`:`${Cu(e)} - ${Cu(t)}`;function uR({startDate:e,endDate:t,className:o=""}){return C.jsx("div",{className:Ie("text-gray-600 text-sm",o),children:Lg(e,t)})}function dR({date:e}){return!e||e.length<10?null:C.jsx("div",{className:"text-gray-600 text-sm",children:e.substring(0,10)})}const pR=A.createContext(null);function fR(e,t){const o=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,r=Array.isArray(t)?t[0]:t?t.x:0,s=Array.isArray(t)?t[1]:t?t.y:0;return o===r&&n===s}function hn(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!hn(e[o],t[o]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const r of o)if(!t.hasOwnProperty(r)||!hn(e[r],t[r]))return!1;return!0}return!1}function mR(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function l0(e,t){if(!e.getProjection)return;const o=e.getProjection(),n=t.getProjection();hn(o,n)||t.setProjection(o)}function c0(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function u0(e,t){const o=t.viewState||t;let n=!1;if("zoom"in o){const r=e.zoom;e.zoom=o.zoom,n=n||r!==e.zoom}if("bearing"in o){const r=e.bearing;e.bearing=o.bearing,n=n||r!==e.bearing}if("pitch"in o){const r=e.pitch;e.pitch=o.pitch,n=n||r!==e.pitch}if(o.padding&&!e.isPaddingEqual(o.padding)&&(n=!0,e.padding=o.padding),"longitude"in o&&"latitude"in o){const r=e.center;e.center=new r.constructor(o.longitude,o.latitude),n=n||r!==e.center}return n}const hR=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function d0(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const n of e.layers)t[n.id]=n;const o=e.layers.map(n=>{let r=null;"interactive"in n&&(r=Object.assign({},n),delete r.interactive);const s=t[n.ref];if(s){r=r||Object.assign({},n),delete r.ref;for(const i of hR)i in s&&(r[i]=s[i])}return r||n});return{...e,layers:o}}const p0={version:8,sources:{},layers:[]},f0={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},Cc={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},m0={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},yR=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],gR=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ds{constructor(t,o,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=r=>{const s=this.props[m0[r.type]];s?s(r):r.type==="error"&&console.error(r.error)},this._onPointerEvent=r=>{(r.type==="mousemove"||r.type==="mouseout")&&this._updateHover(r);const s=this.props[f0[r.type]];s&&(this.props.interactiveLayerIds&&r.type!=="mouseover"&&r.type!=="mouseout"&&(r.features=this._hoveredFeatures||this._queryRenderedFeatures(r.point)),s(r),delete r.features)},this._onCameraEvent=r=>{if(!this._internalUpdate){const s=this.props[Cc[r.type]];s&&s(r)}r.type in this._deferredEvents&&(this._deferredEvents[r.type]=!1)},this._MapClass=t,this.props=o,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const o=this.props;this.props=t;const n=this._updateSettings(t,o);n&&this._createShadowTransform(this._map);const r=this._updateSize(t),s=this._updateViewState(t,!0);this._updateStyle(t,o),this._updateStyleComponents(t,o),this._updateHandlers(t,o),(n||r||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,o){const n=ds.savedMaps.pop();if(!n)return null;const r=n.map,s=r.getContainer();for(o.className=s.className;s.childNodes.length>0;)o.appendChild(s.childNodes[0]);r._container=o;const i=r._resizeObserver;i&&(i.disconnect(),i.observe(o)),n.setProps({...t,styleDiffing:!1}),r.resize();const{initialViewState:a}=t;return a&&(a.bounds?r.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):n._updateViewState(a,!1)),r.isStyleLoaded()?r.fire("load"):r.once("styledata",()=>r.fire("load")),r._update(),n}_initialize(t){const{props:o}=this,{mapStyle:n=p0}=o,r={...o,...o.initialViewState,accessToken:o.mapboxAccessToken||bR()||null,container:t,style:d0(n)},s=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),o.gl){const u=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=u,o.gl)}const i=new this._MapClass(r);s.padding&&i.setPadding(s.padding),o.cursor&&(i.getCanvas().style.cursor=o.cursor),this._createShadowTransform(i);const a=i._render;i._render=u=>{this._inRender=!0,a.call(i,u),this._inRender=!1};const l=i._renderTaskQueue.run;i._renderTaskQueue.run=u=>{l.call(i._renderTaskQueue,u),this._onBeforeRepaint()},i.on("render",()=>this._onAfterRepaint());const c=i.fire;i.fire=this._fireEvent.bind(this,c),i.on("resize",()=>{this._renderTransform.resize(i.transform.width,i.transform.height)}),i.on("styledata",()=>{this._updateStyleComponents(this.props,{}),l0(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const u in f0)i.on(u,this._onPointerEvent);for(const u in Cc)i.on(u,this._onCameraEvent);for(const u in m0)i.on(u,this._onEvent);this._map=i}recycle(){const o=this.map.getContainer().querySelector("[mapboxgl-children]");o==null||o.remove(),ds.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const o=mR(t.transform);t.painter.transform=o,this._renderTransform=o}_updateSize(t){const{viewState:o}=t;if(o){const n=this._map;if(o.width!==n.transform.width||o.height!==n.transform.height)return n.resize(),!0}return!1}_updateViewState(t,o){if(this._internalUpdate)return!1;const n=this._map,r=this._renderTransform,{zoom:s,pitch:i,bearing:a}=r,l=n.isMoving();l&&(r.cameraElevationReference="sea");const c=u0(r,{...c0(n.transform),...t});if(l&&(r.cameraElevationReference="ground"),c&&o){const u=this._deferredEvents;u.move=!0,u.zoom||(u.zoom=s!==r.zoom),u.rotate||(u.rotate=a!==r.bearing),u.pitch||(u.pitch=i!==r.pitch)}return l||u0(n.transform,t),c}_updateSettings(t,o){const n=this._map;let r=!1;for(const s of yR)if(s in t&&!hn(t[s],o[s])){r=!0;const i=n[`set${s[0].toUpperCase()}${s.slice(1)}`];i==null||i.call(n,t[s])}return r}_updateStyle(t,o){if(t.cursor!==o.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==o.mapStyle){const{mapStyle:n=p0,styleDiffing:r=!0}=t,s={diff:r};return"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(d0(n),s),!0}return!1}_updateStyleComponents(t,o){const n=this._map;let r=!1;return n.isStyleLoaded()&&("light"in t&&n.setLight&&!hn(t.light,o.light)&&(r=!0,n.setLight(t.light)),"fog"in t&&n.setFog&&!hn(t.fog,o.fog)&&(r=!0,n.setFog(t.fog)),"terrain"in t&&n.setTerrain&&!hn(t.terrain,o.terrain)&&(!t.terrain||n.getSource(t.terrain.source))&&(r=!0,n.setTerrain(t.terrain))),r}_updateHandlers(t,o){var n,r;const s=this._map;let i=!1;for(const a of gR){const l=(n=t[a])!==null&&n!==void 0?n:!0,c=(r=o[a])!==null&&r!==void 0?r:!0;hn(l,c)||(i=!0,l?s[a].enable(l):s[a].disable())}return i}_queryRenderedFeatures(t){const o=this._map,n=o.transform,{interactiveLayerIds:r=[]}=this.props;try{return o.transform=this._renderTransform,o.queryRenderedFeatures(t,{layers:r.filter(o.getLayer.bind(o))})}catch{return[]}finally{o.transform=n}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const s=t.type,i=((o=this._hoveredFeatures)===null||o===void 0?void 0:o.length)>0,a=this._queryRenderedFeatures(t.point),l=a.length>0;!l&&i&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=a,l&&!i&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=s}else this._hoveredFeatures=null}_fireEvent(t,o,n){const r=this._map,s=r.transform,i=typeof o=="string"?o:o.type;return i==="move"&&this._updateViewState(this.props,!1),i in Cc&&(typeof o=="object"&&(o.viewState=c0(s)),this._map.isMoving())?(r.transform=this._renderTransform,t.call(r,o,n),r.transform=s,r):(t.call(r,o,n),r)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&t.fire(n);this._internalUpdate=!1;const o=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{l0(this._renderTransform,o),t.transform=o}}}ds.savedMaps=[];function bR(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const vR=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function TR(e){if(!e)return null;const t=e.map,o={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:n=>{const r=t.transform;t.transform=e.transform;const s=t.project(n);return t.transform=r,s},unproject:n=>{const r=t.transform;t.transform=e.transform;const s=t.unproject(n);return t.transform=r,s},queryTerrainElevation:(n,r)=>{const s=t.transform;t.transform=e.transform;const i=t.queryTerrainElevation(n,r);return t.transform=s,i},queryRenderedFeatures:(n,r)=>{const s=t.transform;t.transform=e.transform;const i=t.queryRenderedFeatures(n,r);return t.transform=s,i}};for(const n of PR(t))!(n in o)&&!vR.includes(n)&&(o[n]=t[n].bind(t));return o}function PR(e){const t=new Set;let o=e;for(;o;){for(const n of Object.getOwnPropertyNames(o))n[0]!=="_"&&typeof e[n]=="function"&&n!=="fire"&&n!=="setEventedParent"&&t.add(n);o=Object.getPrototypeOf(o)}return Array.from(t)}const wR=typeof document<"u"?Y.useLayoutEffect:Y.useEffect,xR=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function CR(e,t){for(const n of xR)n in t&&(e[n]=t[n]);const{RTLTextPlugin:o="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;o&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(o,n=>{n&&console.error(n)},!0)}const Zl=A.createContext(null);function Ng(e,t,o){const n=Y.useContext(pR),[r,s]=Y.useState(null),i=Y.useRef(),{current:a}=Y.useRef({mapLib:null,map:null});Y.useEffect(()=>{const u=e.mapLib;let p=!0,m;return Promise.resolve(u||o).then(f=>{if(!p)return;if(!f)throw new Error("Invalid mapLib");const y="Map"in f?f:f.default;if(!y.Map)throw new Error("Invalid mapLib");if(CR(y,e),!y.supported||y.supported(e))e.reuseMaps&&(m=ds.reuse(e,i.current)),m||(m=new ds(y.Map,e,i.current)),a.map=TR(m),a.mapLib=y,s(m),n==null||n.onMapMount(a.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(f=>{const{onError:y}=e;y?y({type:"error",target:null,originalEvent:null,error:f}):console.error(f)}),()=>{p=!1,m&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?m.recycle():m.destroy())}},[]),wR(()=>{r&&r.setProps(e)}),Y.useImperativeHandle(t,()=>a.map,[r]);const l=Y.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return A.createElement("div",{id:e.id,ref:i,style:l},r&&A.createElement(Zl.Provider,{value:a},A.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const SR=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Cr(e,t){if(!e||!t)return;const o=e.style;for(const n in t){const r=t[n];Number.isFinite(r)&&!SR.test(n)?o[n]=`${r}px`:o[n]=r}}function IR(e,t){const{map:o,mapLib:n}=Y.useContext(Zl),r=Y.useRef({props:e});r.current.props=e;const s=Y.useMemo(()=>{let h=!1;A.Children.forEach(e.children,D=>{D&&(h=!0)});const b={...e,element:h?document.createElement("div"):null},P=new n.Marker(b);return P.setLngLat([e.longitude,e.latitude]),P.getElement().addEventListener("click",D=>{var E,O;(O=(E=r.current.props).onClick)===null||O===void 0||O.call(E,{type:"click",target:P,originalEvent:D})}),P.on("dragstart",D=>{var E,O;const j=D;j.lngLat=s.getLngLat(),(O=(E=r.current.props).onDragStart)===null||O===void 0||O.call(E,j)}),P.on("drag",D=>{var E,O;const j=D;j.lngLat=s.getLngLat(),(O=(E=r.current.props).onDrag)===null||O===void 0||O.call(E,j)}),P.on("dragend",D=>{var E,O;const j=D;j.lngLat=s.getLngLat(),(O=(E=r.current.props).onDragEnd)===null||O===void 0||O.call(E,j)}),P},[]);Y.useEffect(()=>(s.addTo(o.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:a,offset:l,style:c,draggable:u=!1,popup:p=null,rotation:m=0,rotationAlignment:f="auto",pitchAlignment:y="auto"}=e;return Y.useEffect(()=>{Cr(s.getElement(),c)},[c]),Y.useImperativeHandle(t,()=>s,[]),(s.getLngLat().lng!==i||s.getLngLat().lat!==a)&&s.setLngLat([i,a]),l&&!fR(s.getOffset(),l)&&s.setOffset(l),s.isDraggable()!==u&&s.setDraggable(u),s.getRotation()!==m&&s.setRotation(m),s.getRotationAlignment()!==f&&s.setRotationAlignment(f),s.getPitchAlignment()!==y&&s.setPitchAlignment(y),s.getPopup()!==p&&s.setPopup(p),nn.createPortal(e.children,s.getElement())}const zg=Y.memo(Y.forwardRef(IR));function h0(e){return new Set(e?e.trim().split(/\s+/):[])}function MR(e,t){const{map:o,mapLib:n}=Y.useContext(Zl),r=Y.useMemo(()=>document.createElement("div"),[]),s=Y.useRef({props:e});s.current.props=e;const i=Y.useMemo(()=>{const a={...e},l=new n.Popup(a);return l.setLngLat([e.longitude,e.latitude]),l.once("open",c=>{var u,p;(p=(u=s.current.props).onOpen)===null||p===void 0||p.call(u,c)}),l},[]);if(Y.useEffect(()=>{const a=l=>{var c,u;(u=(c=s.current.props).onClose)===null||u===void 0||u.call(c,l)};return i.on("close",a),i.setDOMContent(r).addTo(o.getMap()),()=>{i.off("close",a),i.isOpen()&&i.remove()}},[]),Y.useEffect(()=>{Cr(i.getElement(),e.style)},[e.style]),Y.useImperativeHandle(t,()=>i,[]),i.isOpen()&&((i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!hn(i.options.offset,e.offset)&&i.setOffset(e.offset),(i.options.anchor!==e.anchor||i.options.maxWidth!==e.maxWidth)&&(i.options.anchor=e.anchor,i.setMaxWidth(e.maxWidth)),i.options.className!==e.className)){const a=h0(i.options.className),l=h0(e.className);for(const c of a)l.has(c)||i.removeClassName(c);for(const c of l)a.has(c)||i.addClassName(c);i.options.className=e.className}return nn.createPortal(e.children,r)}const hB=Y.memo(Y.forwardRef(MR));function $i(e,t,o,n){const r=Y.useContext(Zl),s=Y.useMemo(()=>e(r),[]);return Y.useEffect(()=>{const i=n||o||t,a=typeof t=="function"&&typeof o=="function"?t:null,l=typeof o=="function"?o:typeof t=="function"?t:null,{map:c}=r;return c.hasControl(s)||(c.addControl(s,i==null?void 0:i.position),a&&a(r)),()=>{l&&l(r),c.hasControl(s)&&c.removeControl(s)}},[]),s}function kR(e){const t=$i(({mapLib:o})=>new o.AttributionControl(e),{position:e.position});return Y.useEffect(()=>{Cr(t._container,e.style)},[e.style]),null}const yB=Y.memo(kR);function AR(e){const t=$i(({mapLib:o})=>new o.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return Y.useEffect(()=>{Cr(t._controlContainer,e.style)},[e.style]),null}const gB=Y.memo(AR);function OR(e,t){const o=Y.useRef({props:e}),n=$i(({mapLib:r})=>{const s=new r.GeolocateControl(e),i=s._setupUI;return s._setupUI=a=>{s._container.hasChildNodes()||i(a)},s.on("geolocate",a=>{var l,c;(c=(l=o.current.props).onGeolocate)===null||c===void 0||c.call(l,a)}),s.on("error",a=>{var l,c;(c=(l=o.current.props).onError)===null||c===void 0||c.call(l,a)}),s.on("outofmaxbounds",a=>{var l,c;(c=(l=o.current.props).onOutOfMaxBounds)===null||c===void 0||c.call(l,a)}),s.on("trackuserlocationstart",a=>{var l,c;(c=(l=o.current.props).onTrackUserLocationStart)===null||c===void 0||c.call(l,a)}),s.on("trackuserlocationend",a=>{var l,c;(c=(l=o.current.props).onTrackUserLocationEnd)===null||c===void 0||c.call(l,a)}),s},{position:e.position});return o.current.props=e,Y.useImperativeHandle(t,()=>n,[]),Y.useEffect(()=>{Cr(n._container,e.style)},[e.style]),null}const bB=Y.memo(Y.forwardRef(OR));function RR(e){const t=$i(({mapLib:o})=>new o.NavigationControl(e),{position:e.position});return Y.useEffect(()=>{Cr(t._container,e.style)},[e.style]),null}const DR=Y.memo(RR);function ER(e){const t=$i(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),o=Y.useRef(e),n=o.current;o.current=e;const{style:r}=e;return e.maxWidth!==void 0&&e.maxWidth!==n.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==n.unit&&t.setUnit(e.unit),Y.useEffect(()=>{Cr(t._container,r)},[r]),null}const vB=Y.memo(ER);const jR=Promise.resolve().then(()=>require("./maplibre-gl-C7yaiwFx.js")).then(e=>e.maplibreGl),LR=A.forwardRef(function(t,o){return Ng(t,o,jR)}),NR=zg;const zR=DR;const BR=Promise.resolve().then(()=>require("./mapbox-gl-QYs55BnH.js")).then(e=>e.mapboxGl),TB=A.forwardRef(function(t,o){return Ng(t,o,BR)}),FR=zg;function VR({locations:e}){if(Mh.IsZeroArray(e))return null;const t=({id:o,longitude:n,latitude:r,icon:s})=>C.jsx("li",{children:C.jsx(FR,{longitude:n,latitude:r,children:s})},o);return C.jsx(bs,{items:e,itemRenderer:t})}const GR=({longitude:e,latitude:t,zoom:o=10,setCoordinates:n,locations:r=[],token:s,navigationControl:i})=>{const a=Y.useRef(null),[l,c]=Y.useState({longitude:e,latitude:t,zoom:o});return Y.useEffect(()=>{a.current&&a.current.flyTo({center:[e,t],duration:3e3,essential:!0})},[t,e]),C.jsxs(LR,{ref:a,...l,mapStyle:`https://tiles.locationiq.com/v3/streets/vector.json?key=${s}`,style:{width:"100%",height:"100%"},onMove:u=>c(u.viewState),onClick:u=>{const{lng:p,lat:m}=u.lngLat;n&&n({lat:m,lng:p})},children:[C.jsx(NR,{longitude:e,latitude:t,children:"📌"}),C.jsx(VR,{locations:r}),C.jsx(zR,{position:i.position})]})};var Bg=(e=>(e.TR="top-right",e))(Bg||{});const fr=Math.min,Ln=Math.max,Gn=Math.round,Dn=Math.floor,lo=e=>({x:e,y:e}),WR={left:"right",right:"left",bottom:"top",top:"bottom"};function Su(e,t,o){return Ln(e,fr(t,o))}function Xi(e,t){return typeof e=="function"?e(t):e}function mr(e){return e.split("-")[0]}function Qi(e){return e.split("-")[1]}function Fg(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}function En(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ap(e){return Fg(En(e))}function HR(e,t,o){o===void 0&&(o=!1);const n=Qi(e),r=ap(e),s=ip(r);let i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=tl(i)),[i,tl(i)]}function qR(e){const t=tl(e);return[Iu(e),t,Iu(t)]}function Iu(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const y0=["left","right"],g0=["right","left"],ZR=["top","bottom"],YR=["bottom","top"];function UR(e,t,o){switch(e){case"top":case"bottom":return o?t?g0:y0:t?y0:g0;case"left":case"right":return t?ZR:YR;default:return[]}}function JR(e,t,o,n){const r=Qi(e);let s=UR(mr(e),o==="start",n);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Iu)))),s}function tl(e){const t=mr(e);return WR[t]+e.slice(t.length)}function $R(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vg(e){return typeof e!="number"?$R(e):{top:e,right:e,bottom:e,left:e}}function ji(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function b0(e,t,o){let{reference:n,floating:r}=e;const s=En(t),i=ap(t),a=ip(i),l=mr(t),c=s==="y",u=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,m=n[a]/2-r[a]/2;let f;switch(l){case"top":f={x:u,y:n.y-r.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:p};break;case"left":f={x:n.x-r.width,y:p};break;default:f={x:n.x,y:n.y}}switch(Qi(t)){case"start":f[i]-=m*(o&&c?-1:1);break;case"end":f[i]+=m*(o&&c?-1:1);break}return f}async function XR(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:m=!1,padding:f=0}=Xi(t,e),y=Vg(f),b=a[m?p==="floating"?"reference":"floating":p],P=ji(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(b)))==null||o?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),D=p==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),O=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},j=ji(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:D,offsetParent:E,strategy:l}):D);return{top:(P.top-j.top+y.top)/O.y,bottom:(j.bottom-P.bottom+y.bottom)/O.y,left:(P.left-j.left+y.left)/O.x,right:(j.right-P.right+y.right)/O.x}}const QR=50,KR=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:XR},l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:p}=b0(c,n,l),m=n,f=0;const y={};for(let h=0;h<s.length;h++){const b=s[h];if(!b)continue;const{name:P,fn:D}=b,{x:E,y:O,data:j,reset:R}=await D({x:u,y:p,initialPlacement:n,placement:m,strategy:r,middlewareData:y,rects:c,platform:a,elements:{reference:e,floating:t}});u=E??u,p=O??p,y[P]={...y[P],...j},R&&f<QR&&(f++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(c=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:u,y:p}=b0(c,m,l)),h=-1)}return{x:u,y:p,placement:m,strategy:r,middlewareData:y}},_R=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Xi(e,t)||{};if(c==null)return{};const p=Vg(u),m={x:o,y:n},f=ap(r),y=ip(f),h=await i.getDimensions(c),b=f==="y",P=b?"top":"left",D=b?"bottom":"right",E=b?"clientHeight":"clientWidth",O=s.reference[y]+s.reference[f]-m[f]-s.floating[y],j=m[f]-s.reference[f],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let M=R?R[E]:0;(!M||!await(i.isElement==null?void 0:i.isElement(R)))&&(M=a.floating[E]||s.floating[y]);const L=O/2-j/2,z=M/2-h[y]/2-1,k=fr(p[P],z),S=fr(p[D],z),g=k,B=M-h[y]-S,T=M/2-h[y]/2+L,v=Su(g,T,B),x=!l.arrow&&Qi(r)!=null&&T!==v&&s.reference[y]/2-(T<g?k:S)-h[y]/2<0,w=x?T<g?T-g:T-B:0;return{[f]:m[f]+w,data:{[f]:v,centerOffset:T-v-w,...x&&{alignmentOffset:w}},reset:x}}});const eD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:h=!0,...b}=Xi(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const P=mr(r),D=En(a),E=mr(a)===a,O=await(l.isRTL==null?void 0:l.isRTL(c.floating)),j=m||(E||!h?[tl(a)]:qR(a)),R=y!=="none";!m&&R&&j.push(...JR(a,h,y,O));const M=[a,...j],L=await l.detectOverflow(t,b),z=[];let k=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&z.push(L[P]),p){const T=HR(r,i,O);z.push(L[T[0]],L[T[1]])}if(k=[...k,{placement:r,overflows:z}],!z.every(T=>T<=0)){var S,g;const T=(((S=s.flip)==null?void 0:S.index)||0)+1,v=M[T];if(v&&(!(p==="alignment"?D!==En(v):!1)||k.every(d=>En(d.placement)===D?d.overflows[0]>0:!0)))return{data:{index:T,overflows:k},reset:{placement:v}};let x=(g=k.filter(w=>w.overflows[0]<=0).sort((w,d)=>w.overflows[1]-d.overflows[1])[0])==null?void 0:g.placement;if(!x)switch(f){case"bestFit":{var B;const w=(B=k.filter(d=>{if(R){const F=En(d.placement);return F===D||F==="y"}return!0}).map(d=>[d.placement,d.overflows.filter(F=>F>0).reduce((F,V)=>F+V,0)]).sort((d,F)=>d[1]-F[1])[0])==null?void 0:B[0];w&&(x=w);break}case"initialPlacement":x=a;break}if(r!==x)return{reset:{placement:x}}}return{}}}};const tD=new Set(["left","top"]);async function oD(e,t){const{placement:o,platform:n,elements:r}=e,s=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=mr(o),a=Qi(o),l=En(o)==="y",c=tD.has(i)?-1:1,u=s&&l?-1:1,p=Xi(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(f=a==="end"?y*-1:y),l?{x:f*u,y:m*c}:{x:m*c,y:f*u}}const nD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await oD(t,e);return i===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},rD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:P=>{let{x:D,y:E}=P;return{x:D,y:E}}},...c}=Xi(e,t),u={x:o,y:n},p=await s.detectOverflow(t,c),m=En(mr(r)),f=Fg(m);let y=u[f],h=u[m];if(i){const P=f==="y"?"top":"left",D=f==="y"?"bottom":"right",E=y+p[P],O=y-p[D];y=Su(E,y,O)}if(a){const P=m==="y"?"top":"left",D=m==="y"?"bottom":"right",E=h+p[P],O=h-p[D];h=Su(E,h,O)}const b=l.fn({...t,[f]:y,[m]:h});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[f]:i,[m]:a}}}}}};function Yl(){return typeof window<"u"}function Is(e){return Gg(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Uo(e){var t;return(t=(Gg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gg(e){return Yl()?e instanceof Node||e instanceof qt(e).Node:!1}function uo(e){return Yl()?e instanceof Element||e instanceof qt(e).Element:!1}function Jo(e){return Yl()?e instanceof HTMLElement||e instanceof qt(e).HTMLElement:!1}function v0(e){return!Yl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot}function Ki(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=To(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&r!=="inline"&&r!=="contents"}function sD(e){return/^(table|td|th)$/.test(Is(e))}function Ul(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const iD=/transform|translate|scale|rotate|perspective|filter/,aD=/paint|layout|strict|content/,_n=e=>!!e&&e!=="none";let Sc;function lp(e){const t=uo(e)?To(e):e;return _n(t.transform)||_n(t.translate)||_n(t.scale)||_n(t.rotate)||_n(t.perspective)||!Jl()&&(_n(t.backdropFilter)||_n(t.filter))||iD.test(t.willChange||"")||aD.test(t.contain||"")}function lD(e){let t=Wn(e);for(;Jo(t)&&!ps(t);){if(lp(t))return t;if(Ul(t))return null;t=Wn(t)}return null}function Jl(){return Sc==null&&(Sc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sc}function ps(e){return/^(html|body|#document)$/.test(Is(e))}function To(e){return qt(e).getComputedStyle(e)}function $l(e){return uo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wn(e){if(Is(e)==="html")return e;const t=e.assignedSlot||e.parentNode||v0(e)&&e.host||Uo(e);return v0(t)?t.host:t}function Wg(e){const t=Wn(e);return ps(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jo(t)&&Ki(t)?t:Wg(t)}function hr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=Wg(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=qt(r);if(s){const a=Li(i);return t.concat(i,i.visualViewport||[],Ki(r)?r:[],a&&o?hr(a):[])}else return t.concat(r,hr(r,[],o))}function Li(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hg(e){const t=To(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Jo(e),s=r?e.offsetWidth:o,i=r?e.offsetHeight:n,a=Gn(o)!==s||Gn(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function cp(e){return uo(e)?e:e.contextElement}function Qr(e){const t=cp(e);if(!Jo(t))return lo(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:s}=Hg(t);let i=(s?Gn(o.width):o.width)/n,a=(s?Gn(o.height):o.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const cD=lo(0);function qg(e){const t=qt(e);return!Jl()||!t.visualViewport?cD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uD(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==qt(e)?!1:t}function yr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),s=cp(e);let i=lo(1);t&&(n?uo(n)&&(i=Qr(n)):i=Qr(e));const a=uD(s,o,n)?qg(s):lo(0);let l=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,u=r.width/i.x,p=r.height/i.y;if(s){const m=qt(s),f=n&&uo(n)?qt(n):n;let y=m,h=Li(y);for(;h&&n&&f!==y;){const b=Qr(h),P=h.getBoundingClientRect(),D=To(h),E=P.left+(h.clientLeft+parseFloat(D.paddingLeft))*b.x,O=P.top+(h.clientTop+parseFloat(D.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,p*=b.y,l+=E,c+=O,y=qt(h),h=Li(y)}}return ji({width:u,height:p,x:l,y:c})}function Xl(e,t){const o=$l(e).scrollLeft;return t?t.left+o:yr(Uo(e)).left+o}function Zg(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Xl(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function dD(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const s=r==="fixed",i=Uo(n),a=t?Ul(t.floating):!1;if(n===i||a&&s)return o;let l={scrollLeft:0,scrollTop:0},c=lo(1);const u=lo(0),p=Jo(n);if((p||!p&&!s)&&((Is(n)!=="body"||Ki(i))&&(l=$l(n)),p)){const f=yr(n);c=Qr(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}const m=i&&!p&&!s?Zg(i,l):lo(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+u.x+m.x,y:o.y*c.y-l.scrollTop*c.y+u.y+m.y}}function pD(e){return Array.from(e.getClientRects())}function fD(e){const t=Uo(e),o=$l(e),n=e.ownerDocument.body,r=Ln(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Ln(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+Xl(e);const a=-o.scrollTop;return To(n).direction==="rtl"&&(i+=Ln(t.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}const T0=25;function mD(e,t){const o=qt(e),n=Uo(e),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,l=0;if(r){s=r.width,i=r.height;const u=Jl();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const c=Xl(n);if(c<=0){const u=n.ownerDocument,p=u.body,m=getComputedStyle(p),f=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(n.clientWidth-p.clientWidth-f);y<=T0&&(s-=y)}else c<=T0&&(s+=c);return{width:s,height:i,x:a,y:l}}function hD(e,t){const o=yr(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,s=Jo(e)?Qr(e):lo(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,c=n*s.y;return{width:i,height:a,x:l,y:c}}function P0(e,t,o){let n;if(t==="viewport")n=mD(e,o);else if(t==="document")n=fD(Uo(e));else if(uo(t))n=hD(t,o);else{const r=qg(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ji(n)}function Yg(e,t){const o=Wn(e);return o===t||!uo(o)||ps(o)?!1:To(o).position==="fixed"||Yg(o,t)}function yD(e,t){const o=t.get(e);if(o)return o;let n=hr(e,[],!1).filter(a=>uo(a)&&Is(a)!=="body"),r=null;const s=To(e).position==="fixed";let i=s?Wn(e):e;for(;uo(i)&&!ps(i);){const a=To(i),l=lp(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Ki(i)&&!l&&Yg(e,i))?n=n.filter(u=>u!==i):r=a,i=Wn(i)}return t.set(e,n),n}function gD(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const i=[...o==="clippingAncestors"?Ul(t)?[]:yD(t,this._c):[].concat(o),n],a=P0(t,i[0],r);let l=a.top,c=a.right,u=a.bottom,p=a.left;for(let m=1;m<i.length;m++){const f=P0(t,i[m],r);l=Ln(f.top,l),c=fr(f.right,c),u=fr(f.bottom,u),p=Ln(f.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function bD(e){const{width:t,height:o}=Hg(e);return{width:t,height:o}}function vD(e,t,o){const n=Jo(t),r=Uo(t),s=o==="fixed",i=yr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=lo(0);function c(){l.x=Xl(r)}if(n||!n&&!s)if((Is(t)!=="body"||Ki(r))&&(a=$l(t)),n){const f=yr(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else r&&c();s&&!n&&r&&c();const u=r&&!n&&!s?Zg(r,a):lo(0),p=i.left+a.scrollLeft-l.x-u.x,m=i.top+a.scrollTop-l.y-u.y;return{x:p,y:m,width:i.width,height:i.height}}function Ic(e){return To(e).position==="static"}function w0(e,t){if(!Jo(e)||To(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Uo(e)===o&&(o=o.ownerDocument.body),o}function Ug(e,t){const o=qt(e);if(Ul(e))return o;if(!Jo(e)){let r=Wn(e);for(;r&&!ps(r);){if(uo(r)&&!Ic(r))return r;r=Wn(r)}return o}let n=w0(e,t);for(;n&&sD(n)&&Ic(n);)n=w0(n,t);return n&&ps(n)&&Ic(n)&&!lp(n)?o:n||lD(e)||o}const TD=async function(e){const t=this.getOffsetParent||Ug,o=this.getDimensions,n=await o(e.floating);return{reference:vD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function PD(e){return To(e).direction==="rtl"}const wD={convertOffsetParentRelativeRectToViewportRelativeRect:dD,getDocumentElement:Uo,getClippingRect:gD,getOffsetParent:Ug,getElementRects:TD,getClientRects:pD,getDimensions:bD,getScale:Qr,isElement:uo,isRTL:PD};function Jg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xD(e,t){let o=null,n;const r=Uo(e);function s(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:p,width:m,height:f}=c;if(a||t(),!m||!f)return;const y=Dn(p),h=Dn(r.clientWidth-(u+m)),b=Dn(r.clientHeight-(p+f)),P=Dn(u),E={rootMargin:-y+"px "+-h+"px "+-b+"px "+-P+"px",threshold:Ln(0,fr(1,l))||1};let O=!0;function j(R){const M=R[0].intersectionRatio;if(M!==l){if(!O)return i();M?i(!1,M):n=setTimeout(()=>{i(!1,1e-7)},1e3)}M===1&&!Jg(c,e.getBoundingClientRect())&&i(),O=!1}try{o=new IntersectionObserver(j,{...E,root:r.ownerDocument})}catch{o=new IntersectionObserver(j,E)}o.observe(e)}return i(!0),s}function CD(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=cp(e),u=r||s?[...c?hr(c):[],...t?hr(t):[]]:[];u.forEach(P=>{r&&P.addEventListener("scroll",o,{passive:!0}),s&&P.addEventListener("resize",o)});const p=c&&a?xD(c,o):null;let m=-1,f=null;i&&(f=new ResizeObserver(P=>{let[D]=P;D&&D.target===c&&f&&t&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),o()}),c&&!l&&f.observe(c),t&&f.observe(t));let y,h=l?yr(e):null;l&&b();function b(){const P=yr(e);h&&!Jg(h,P)&&o(),h=P,y=requestAnimationFrame(b)}return o(),()=>{var P;u.forEach(D=>{r&&D.removeEventListener("scroll",o),s&&D.removeEventListener("resize",o)}),p==null||p(),(P=f)==null||P.disconnect(),f=null,l&&cancelAnimationFrame(y)}}const SD=nD;const ID=rD,MD=eD;const kD=_R;const x0=(e,t,o)=>{const n=new Map,r={platform:wD,...o},s={...r.platform,_c:n};return KR(e,t,{...r,platform:s})};var La={exports:{}};/*!
418
+ */function cR({value:e,setValue:t,disabled:o=!1}){return C.jsx(Vi,{dateAdapter:fl,children:C.jsx(iR,{value:e,minDate:or.getToday(),disabled:o,onChange:t,slotProps:{textField:{sx:{"& .MuiPickersSectionList-root":{padding:0},"& .MuiPickersInputBase-sectionsContainer":{padding:0},width:"100%",height:30,"& .MuiInputBase-root":{height:30,"& .MuiInputBase-input":{padding:"0px 16px",color:"gray"}}}}}})})}const Eg=e=>e.format("MMM D"),xu=e=>e.format("hh:mm A"),Cu=e=>e.format("MMM D, hh:mm A"),jg=(e,t)=>e.month()===t.month()&&e.date()===t.date(),Lg=(e,t)=>jg(e,t)?`${Eg(e)}, ${xu(e)} - ${xu(t)}`:`${Cu(e)} - ${Cu(t)}`;function uR({startDate:e,endDate:t,className:o=""}){return C.jsx("div",{className:Ie("text-gray-600 text-sm",o),children:Lg(e,t)})}function dR({date:e}){return!e||e.length<10?null:C.jsx("div",{className:"text-gray-600 text-sm",children:e.substring(0,10)})}const pR=A.createContext(null);function fR(e,t){const o=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,r=Array.isArray(t)?t[0]:t?t.x:0,s=Array.isArray(t)?t[1]:t?t.y:0;return o===r&&n===s}function hn(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!hn(e[o],t[o]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const r of o)if(!t.hasOwnProperty(r)||!hn(e[r],t[r]))return!1;return!0}return!1}function mR(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function l0(e,t){if(!e.getProjection)return;const o=e.getProjection(),n=t.getProjection();hn(o,n)||t.setProjection(o)}function c0(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function u0(e,t){const o=t.viewState||t;let n=!1;if("zoom"in o){const r=e.zoom;e.zoom=o.zoom,n=n||r!==e.zoom}if("bearing"in o){const r=e.bearing;e.bearing=o.bearing,n=n||r!==e.bearing}if("pitch"in o){const r=e.pitch;e.pitch=o.pitch,n=n||r!==e.pitch}if(o.padding&&!e.isPaddingEqual(o.padding)&&(n=!0,e.padding=o.padding),"longitude"in o&&"latitude"in o){const r=e.center;e.center=new r.constructor(o.longitude,o.latitude),n=n||r!==e.center}return n}const hR=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function d0(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const n of e.layers)t[n.id]=n;const o=e.layers.map(n=>{let r=null;"interactive"in n&&(r=Object.assign({},n),delete r.interactive);const s=t[n.ref];if(s){r=r||Object.assign({},n),delete r.ref;for(const i of hR)i in s&&(r[i]=s[i])}return r||n});return{...e,layers:o}}const p0={version:8,sources:{},layers:[]},f0={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},Cc={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},m0={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},yR=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],gR=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ds{constructor(t,o,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=r=>{const s=this.props[m0[r.type]];s?s(r):r.type==="error"&&console.error(r.error)},this._onPointerEvent=r=>{(r.type==="mousemove"||r.type==="mouseout")&&this._updateHover(r);const s=this.props[f0[r.type]];s&&(this.props.interactiveLayerIds&&r.type!=="mouseover"&&r.type!=="mouseout"&&(r.features=this._hoveredFeatures||this._queryRenderedFeatures(r.point)),s(r),delete r.features)},this._onCameraEvent=r=>{if(!this._internalUpdate){const s=this.props[Cc[r.type]];s&&s(r)}r.type in this._deferredEvents&&(this._deferredEvents[r.type]=!1)},this._MapClass=t,this.props=o,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const o=this.props;this.props=t;const n=this._updateSettings(t,o);n&&this._createShadowTransform(this._map);const r=this._updateSize(t),s=this._updateViewState(t,!0);this._updateStyle(t,o),this._updateStyleComponents(t,o),this._updateHandlers(t,o),(n||r||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,o){const n=ds.savedMaps.pop();if(!n)return null;const r=n.map,s=r.getContainer();for(o.className=s.className;s.childNodes.length>0;)o.appendChild(s.childNodes[0]);r._container=o;const i=r._resizeObserver;i&&(i.disconnect(),i.observe(o)),n.setProps({...t,styleDiffing:!1}),r.resize();const{initialViewState:a}=t;return a&&(a.bounds?r.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):n._updateViewState(a,!1)),r.isStyleLoaded()?r.fire("load"):r.once("styledata",()=>r.fire("load")),r._update(),n}_initialize(t){const{props:o}=this,{mapStyle:n=p0}=o,r={...o,...o.initialViewState,accessToken:o.mapboxAccessToken||bR()||null,container:t,style:d0(n)},s=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),o.gl){const u=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=u,o.gl)}const i=new this._MapClass(r);s.padding&&i.setPadding(s.padding),o.cursor&&(i.getCanvas().style.cursor=o.cursor),this._createShadowTransform(i);const a=i._render;i._render=u=>{this._inRender=!0,a.call(i,u),this._inRender=!1};const l=i._renderTaskQueue.run;i._renderTaskQueue.run=u=>{l.call(i._renderTaskQueue,u),this._onBeforeRepaint()},i.on("render",()=>this._onAfterRepaint());const c=i.fire;i.fire=this._fireEvent.bind(this,c),i.on("resize",()=>{this._renderTransform.resize(i.transform.width,i.transform.height)}),i.on("styledata",()=>{this._updateStyleComponents(this.props,{}),l0(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const u in f0)i.on(u,this._onPointerEvent);for(const u in Cc)i.on(u,this._onCameraEvent);for(const u in m0)i.on(u,this._onEvent);this._map=i}recycle(){const o=this.map.getContainer().querySelector("[mapboxgl-children]");o==null||o.remove(),ds.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const o=mR(t.transform);t.painter.transform=o,this._renderTransform=o}_updateSize(t){const{viewState:o}=t;if(o){const n=this._map;if(o.width!==n.transform.width||o.height!==n.transform.height)return n.resize(),!0}return!1}_updateViewState(t,o){if(this._internalUpdate)return!1;const n=this._map,r=this._renderTransform,{zoom:s,pitch:i,bearing:a}=r,l=n.isMoving();l&&(r.cameraElevationReference="sea");const c=u0(r,{...c0(n.transform),...t});if(l&&(r.cameraElevationReference="ground"),c&&o){const u=this._deferredEvents;u.move=!0,u.zoom||(u.zoom=s!==r.zoom),u.rotate||(u.rotate=a!==r.bearing),u.pitch||(u.pitch=i!==r.pitch)}return l||u0(n.transform,t),c}_updateSettings(t,o){const n=this._map;let r=!1;for(const s of yR)if(s in t&&!hn(t[s],o[s])){r=!0;const i=n[`set${s[0].toUpperCase()}${s.slice(1)}`];i==null||i.call(n,t[s])}return r}_updateStyle(t,o){if(t.cursor!==o.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==o.mapStyle){const{mapStyle:n=p0,styleDiffing:r=!0}=t,s={diff:r};return"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(d0(n),s),!0}return!1}_updateStyleComponents(t,o){const n=this._map;let r=!1;return n.isStyleLoaded()&&("light"in t&&n.setLight&&!hn(t.light,o.light)&&(r=!0,n.setLight(t.light)),"fog"in t&&n.setFog&&!hn(t.fog,o.fog)&&(r=!0,n.setFog(t.fog)),"terrain"in t&&n.setTerrain&&!hn(t.terrain,o.terrain)&&(!t.terrain||n.getSource(t.terrain.source))&&(r=!0,n.setTerrain(t.terrain))),r}_updateHandlers(t,o){var n,r;const s=this._map;let i=!1;for(const a of gR){const l=(n=t[a])!==null&&n!==void 0?n:!0,c=(r=o[a])!==null&&r!==void 0?r:!0;hn(l,c)||(i=!0,l?s[a].enable(l):s[a].disable())}return i}_queryRenderedFeatures(t){const o=this._map,n=o.transform,{interactiveLayerIds:r=[]}=this.props;try{return o.transform=this._renderTransform,o.queryRenderedFeatures(t,{layers:r.filter(o.getLayer.bind(o))})}catch{return[]}finally{o.transform=n}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const s=t.type,i=((o=this._hoveredFeatures)===null||o===void 0?void 0:o.length)>0,a=this._queryRenderedFeatures(t.point),l=a.length>0;!l&&i&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=a,l&&!i&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=s}else this._hoveredFeatures=null}_fireEvent(t,o,n){const r=this._map,s=r.transform,i=typeof o=="string"?o:o.type;return i==="move"&&this._updateViewState(this.props,!1),i in Cc&&(typeof o=="object"&&(o.viewState=c0(s)),this._map.isMoving())?(r.transform=this._renderTransform,t.call(r,o,n),r.transform=s,r):(t.call(r,o,n),r)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&t.fire(n);this._internalUpdate=!1;const o=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{l0(this._renderTransform,o),t.transform=o}}}ds.savedMaps=[];function bR(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const vR=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function TR(e){if(!e)return null;const t=e.map,o={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:n=>{const r=t.transform;t.transform=e.transform;const s=t.project(n);return t.transform=r,s},unproject:n=>{const r=t.transform;t.transform=e.transform;const s=t.unproject(n);return t.transform=r,s},queryTerrainElevation:(n,r)=>{const s=t.transform;t.transform=e.transform;const i=t.queryTerrainElevation(n,r);return t.transform=s,i},queryRenderedFeatures:(n,r)=>{const s=t.transform;t.transform=e.transform;const i=t.queryRenderedFeatures(n,r);return t.transform=s,i}};for(const n of PR(t))!(n in o)&&!vR.includes(n)&&(o[n]=t[n].bind(t));return o}function PR(e){const t=new Set;let o=e;for(;o;){for(const n of Object.getOwnPropertyNames(o))n[0]!=="_"&&typeof e[n]=="function"&&n!=="fire"&&n!=="setEventedParent"&&t.add(n);o=Object.getPrototypeOf(o)}return Array.from(t)}const wR=typeof document<"u"?Y.useLayoutEffect:Y.useEffect,xR=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function CR(e,t){for(const n of xR)n in t&&(e[n]=t[n]);const{RTLTextPlugin:o="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;o&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(o,n=>{n&&console.error(n)},!0)}const Zl=A.createContext(null);function Ng(e,t,o){const n=Y.useContext(pR),[r,s]=Y.useState(null),i=Y.useRef(),{current:a}=Y.useRef({mapLib:null,map:null});Y.useEffect(()=>{const u=e.mapLib;let p=!0,m;return Promise.resolve(u||o).then(f=>{if(!p)return;if(!f)throw new Error("Invalid mapLib");const y="Map"in f?f:f.default;if(!y.Map)throw new Error("Invalid mapLib");if(CR(y,e),!y.supported||y.supported(e))e.reuseMaps&&(m=ds.reuse(e,i.current)),m||(m=new ds(y.Map,e,i.current)),a.map=TR(m),a.mapLib=y,s(m),n==null||n.onMapMount(a.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(f=>{const{onError:y}=e;y?y({type:"error",target:null,originalEvent:null,error:f}):console.error(f)}),()=>{p=!1,m&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?m.recycle():m.destroy())}},[]),wR(()=>{r&&r.setProps(e)}),Y.useImperativeHandle(t,()=>a.map,[r]);const l=Y.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return A.createElement("div",{id:e.id,ref:i,style:l},r&&A.createElement(Zl.Provider,{value:a},A.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const SR=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Cr(e,t){if(!e||!t)return;const o=e.style;for(const n in t){const r=t[n];Number.isFinite(r)&&!SR.test(n)?o[n]=`${r}px`:o[n]=r}}function IR(e,t){const{map:o,mapLib:n}=Y.useContext(Zl),r=Y.useRef({props:e});r.current.props=e;const s=Y.useMemo(()=>{let h=!1;A.Children.forEach(e.children,D=>{D&&(h=!0)});const b={...e,element:h?document.createElement("div"):null},P=new n.Marker(b);return P.setLngLat([e.longitude,e.latitude]),P.getElement().addEventListener("click",D=>{var E,O;(O=(E=r.current.props).onClick)===null||O===void 0||O.call(E,{type:"click",target:P,originalEvent:D})}),P.on("dragstart",D=>{var E,O;const j=D;j.lngLat=s.getLngLat(),(O=(E=r.current.props).onDragStart)===null||O===void 0||O.call(E,j)}),P.on("drag",D=>{var E,O;const j=D;j.lngLat=s.getLngLat(),(O=(E=r.current.props).onDrag)===null||O===void 0||O.call(E,j)}),P.on("dragend",D=>{var E,O;const j=D;j.lngLat=s.getLngLat(),(O=(E=r.current.props).onDragEnd)===null||O===void 0||O.call(E,j)}),P},[]);Y.useEffect(()=>(s.addTo(o.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:a,offset:l,style:c,draggable:u=!1,popup:p=null,rotation:m=0,rotationAlignment:f="auto",pitchAlignment:y="auto"}=e;return Y.useEffect(()=>{Cr(s.getElement(),c)},[c]),Y.useImperativeHandle(t,()=>s,[]),(s.getLngLat().lng!==i||s.getLngLat().lat!==a)&&s.setLngLat([i,a]),l&&!fR(s.getOffset(),l)&&s.setOffset(l),s.isDraggable()!==u&&s.setDraggable(u),s.getRotation()!==m&&s.setRotation(m),s.getRotationAlignment()!==f&&s.setRotationAlignment(f),s.getPitchAlignment()!==y&&s.setPitchAlignment(y),s.getPopup()!==p&&s.setPopup(p),nn.createPortal(e.children,s.getElement())}const zg=Y.memo(Y.forwardRef(IR));function h0(e){return new Set(e?e.trim().split(/\s+/):[])}function MR(e,t){const{map:o,mapLib:n}=Y.useContext(Zl),r=Y.useMemo(()=>document.createElement("div"),[]),s=Y.useRef({props:e});s.current.props=e;const i=Y.useMemo(()=>{const a={...e},l=new n.Popup(a);return l.setLngLat([e.longitude,e.latitude]),l.once("open",c=>{var u,p;(p=(u=s.current.props).onOpen)===null||p===void 0||p.call(u,c)}),l},[]);if(Y.useEffect(()=>{const a=l=>{var c,u;(u=(c=s.current.props).onClose)===null||u===void 0||u.call(c,l)};return i.on("close",a),i.setDOMContent(r).addTo(o.getMap()),()=>{i.off("close",a),i.isOpen()&&i.remove()}},[]),Y.useEffect(()=>{Cr(i.getElement(),e.style)},[e.style]),Y.useImperativeHandle(t,()=>i,[]),i.isOpen()&&((i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!hn(i.options.offset,e.offset)&&i.setOffset(e.offset),(i.options.anchor!==e.anchor||i.options.maxWidth!==e.maxWidth)&&(i.options.anchor=e.anchor,i.setMaxWidth(e.maxWidth)),i.options.className!==e.className)){const a=h0(i.options.className),l=h0(e.className);for(const c of a)l.has(c)||i.removeClassName(c);for(const c of l)a.has(c)||i.addClassName(c);i.options.className=e.className}return nn.createPortal(e.children,r)}const hB=Y.memo(Y.forwardRef(MR));function $i(e,t,o,n){const r=Y.useContext(Zl),s=Y.useMemo(()=>e(r),[]);return Y.useEffect(()=>{const i=n||o||t,a=typeof t=="function"&&typeof o=="function"?t:null,l=typeof o=="function"?o:typeof t=="function"?t:null,{map:c}=r;return c.hasControl(s)||(c.addControl(s,i==null?void 0:i.position),a&&a(r)),()=>{l&&l(r),c.hasControl(s)&&c.removeControl(s)}},[]),s}function kR(e){const t=$i(({mapLib:o})=>new o.AttributionControl(e),{position:e.position});return Y.useEffect(()=>{Cr(t._container,e.style)},[e.style]),null}const yB=Y.memo(kR);function AR(e){const t=$i(({mapLib:o})=>new o.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return Y.useEffect(()=>{Cr(t._controlContainer,e.style)},[e.style]),null}const gB=Y.memo(AR);function OR(e,t){const o=Y.useRef({props:e}),n=$i(({mapLib:r})=>{const s=new r.GeolocateControl(e),i=s._setupUI;return s._setupUI=a=>{s._container.hasChildNodes()||i(a)},s.on("geolocate",a=>{var l,c;(c=(l=o.current.props).onGeolocate)===null||c===void 0||c.call(l,a)}),s.on("error",a=>{var l,c;(c=(l=o.current.props).onError)===null||c===void 0||c.call(l,a)}),s.on("outofmaxbounds",a=>{var l,c;(c=(l=o.current.props).onOutOfMaxBounds)===null||c===void 0||c.call(l,a)}),s.on("trackuserlocationstart",a=>{var l,c;(c=(l=o.current.props).onTrackUserLocationStart)===null||c===void 0||c.call(l,a)}),s.on("trackuserlocationend",a=>{var l,c;(c=(l=o.current.props).onTrackUserLocationEnd)===null||c===void 0||c.call(l,a)}),s},{position:e.position});return o.current.props=e,Y.useImperativeHandle(t,()=>n,[]),Y.useEffect(()=>{Cr(n._container,e.style)},[e.style]),null}const bB=Y.memo(Y.forwardRef(OR));function RR(e){const t=$i(({mapLib:o})=>new o.NavigationControl(e),{position:e.position});return Y.useEffect(()=>{Cr(t._container,e.style)},[e.style]),null}const DR=Y.memo(RR);function ER(e){const t=$i(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),o=Y.useRef(e),n=o.current;o.current=e;const{style:r}=e;return e.maxWidth!==void 0&&e.maxWidth!==n.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==n.unit&&t.setUnit(e.unit),Y.useEffect(()=>{Cr(t._container,r)},[r]),null}const vB=Y.memo(ER);const jR=Promise.resolve().then(()=>require("./maplibre-gl-Bj5pFIjW.js")).then(e=>e.maplibreGl),LR=A.forwardRef(function(t,o){return Ng(t,o,jR)}),NR=zg;const zR=DR;const BR=Promise.resolve().then(()=>require("./mapbox-gl-kmk5qw3B.js")).then(e=>e.mapboxGl),TB=A.forwardRef(function(t,o){return Ng(t,o,BR)}),FR=zg;function VR({locations:e}){if(Mh.IsZeroArray(e))return null;const t=({id:o,longitude:n,latitude:r,icon:s})=>C.jsx("li",{children:C.jsx(FR,{longitude:n,latitude:r,children:s})},o);return C.jsx(bs,{items:e,itemRenderer:t})}const GR=({longitude:e,latitude:t,zoom:o=10,setCoordinates:n,locations:r=[],token:s,navigationControl:i})=>{const a=Y.useRef(null),[l,c]=Y.useState({longitude:e,latitude:t,zoom:o});return Y.useEffect(()=>{a.current&&a.current.flyTo({center:[e,t],duration:3e3,essential:!0})},[t,e]),C.jsxs(LR,{ref:a,...l,mapStyle:`https://tiles.locationiq.com/v3/streets/vector.json?key=${s}`,style:{width:"100%",height:"100%"},onMove:u=>c(u.viewState),onClick:u=>{const{lng:p,lat:m}=u.lngLat;n&&n({lat:m,lng:p})},children:[C.jsx(NR,{longitude:e,latitude:t,children:"📌"}),C.jsx(VR,{locations:r}),C.jsx(zR,{position:i.position})]})};var Bg=(e=>(e.TR="top-right",e))(Bg||{});const fr=Math.min,Ln=Math.max,Gn=Math.round,Dn=Math.floor,lo=e=>({x:e,y:e}),WR={left:"right",right:"left",bottom:"top",top:"bottom"};function Su(e,t,o){return Ln(e,fr(t,o))}function Xi(e,t){return typeof e=="function"?e(t):e}function mr(e){return e.split("-")[0]}function Qi(e){return e.split("-")[1]}function Fg(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}function En(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ap(e){return Fg(En(e))}function HR(e,t,o){o===void 0&&(o=!1);const n=Qi(e),r=ap(e),s=ip(r);let i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=tl(i)),[i,tl(i)]}function qR(e){const t=tl(e);return[Iu(e),t,Iu(t)]}function Iu(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const y0=["left","right"],g0=["right","left"],ZR=["top","bottom"],YR=["bottom","top"];function UR(e,t,o){switch(e){case"top":case"bottom":return o?t?g0:y0:t?y0:g0;case"left":case"right":return t?ZR:YR;default:return[]}}function JR(e,t,o,n){const r=Qi(e);let s=UR(mr(e),o==="start",n);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Iu)))),s}function tl(e){const t=mr(e);return WR[t]+e.slice(t.length)}function $R(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vg(e){return typeof e!="number"?$R(e):{top:e,right:e,bottom:e,left:e}}function ji(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function b0(e,t,o){let{reference:n,floating:r}=e;const s=En(t),i=ap(t),a=ip(i),l=mr(t),c=s==="y",u=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,m=n[a]/2-r[a]/2;let f;switch(l){case"top":f={x:u,y:n.y-r.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:p};break;case"left":f={x:n.x-r.width,y:p};break;default:f={x:n.x,y:n.y}}switch(Qi(t)){case"start":f[i]-=m*(o&&c?-1:1);break;case"end":f[i]+=m*(o&&c?-1:1);break}return f}async function XR(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:m=!1,padding:f=0}=Xi(t,e),y=Vg(f),b=a[m?p==="floating"?"reference":"floating":p],P=ji(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(b)))==null||o?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),D=p==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),O=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},j=ji(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:D,offsetParent:E,strategy:l}):D);return{top:(P.top-j.top+y.top)/O.y,bottom:(j.bottom-P.bottom+y.bottom)/O.y,left:(P.left-j.left+y.left)/O.x,right:(j.right-P.right+y.right)/O.x}}const QR=50,KR=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:XR},l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:p}=b0(c,n,l),m=n,f=0;const y={};for(let h=0;h<s.length;h++){const b=s[h];if(!b)continue;const{name:P,fn:D}=b,{x:E,y:O,data:j,reset:R}=await D({x:u,y:p,initialPlacement:n,placement:m,strategy:r,middlewareData:y,rects:c,platform:a,elements:{reference:e,floating:t}});u=E??u,p=O??p,y[P]={...y[P],...j},R&&f<QR&&(f++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(c=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:u,y:p}=b0(c,m,l)),h=-1)}return{x:u,y:p,placement:m,strategy:r,middlewareData:y}},_R=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Xi(e,t)||{};if(c==null)return{};const p=Vg(u),m={x:o,y:n},f=ap(r),y=ip(f),h=await i.getDimensions(c),b=f==="y",P=b?"top":"left",D=b?"bottom":"right",E=b?"clientHeight":"clientWidth",O=s.reference[y]+s.reference[f]-m[f]-s.floating[y],j=m[f]-s.reference[f],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let M=R?R[E]:0;(!M||!await(i.isElement==null?void 0:i.isElement(R)))&&(M=a.floating[E]||s.floating[y]);const L=O/2-j/2,z=M/2-h[y]/2-1,k=fr(p[P],z),S=fr(p[D],z),g=k,B=M-h[y]-S,T=M/2-h[y]/2+L,v=Su(g,T,B),x=!l.arrow&&Qi(r)!=null&&T!==v&&s.reference[y]/2-(T<g?k:S)-h[y]/2<0,w=x?T<g?T-g:T-B:0;return{[f]:m[f]+w,data:{[f]:v,centerOffset:T-v-w,...x&&{alignmentOffset:w}},reset:x}}});const eD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:h=!0,...b}=Xi(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const P=mr(r),D=En(a),E=mr(a)===a,O=await(l.isRTL==null?void 0:l.isRTL(c.floating)),j=m||(E||!h?[tl(a)]:qR(a)),R=y!=="none";!m&&R&&j.push(...JR(a,h,y,O));const M=[a,...j],L=await l.detectOverflow(t,b),z=[];let k=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&z.push(L[P]),p){const T=HR(r,i,O);z.push(L[T[0]],L[T[1]])}if(k=[...k,{placement:r,overflows:z}],!z.every(T=>T<=0)){var S,g;const T=(((S=s.flip)==null?void 0:S.index)||0)+1,v=M[T];if(v&&(!(p==="alignment"?D!==En(v):!1)||k.every(d=>En(d.placement)===D?d.overflows[0]>0:!0)))return{data:{index:T,overflows:k},reset:{placement:v}};let x=(g=k.filter(w=>w.overflows[0]<=0).sort((w,d)=>w.overflows[1]-d.overflows[1])[0])==null?void 0:g.placement;if(!x)switch(f){case"bestFit":{var B;const w=(B=k.filter(d=>{if(R){const F=En(d.placement);return F===D||F==="y"}return!0}).map(d=>[d.placement,d.overflows.filter(F=>F>0).reduce((F,V)=>F+V,0)]).sort((d,F)=>d[1]-F[1])[0])==null?void 0:B[0];w&&(x=w);break}case"initialPlacement":x=a;break}if(r!==x)return{reset:{placement:x}}}return{}}}};const tD=new Set(["left","top"]);async function oD(e,t){const{placement:o,platform:n,elements:r}=e,s=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=mr(o),a=Qi(o),l=En(o)==="y",c=tD.has(i)?-1:1,u=s&&l?-1:1,p=Xi(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(f=a==="end"?y*-1:y),l?{x:f*u,y:m*c}:{x:m*c,y:f*u}}const nD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await oD(t,e);return i===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},rD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:P=>{let{x:D,y:E}=P;return{x:D,y:E}}},...c}=Xi(e,t),u={x:o,y:n},p=await s.detectOverflow(t,c),m=En(mr(r)),f=Fg(m);let y=u[f],h=u[m];if(i){const P=f==="y"?"top":"left",D=f==="y"?"bottom":"right",E=y+p[P],O=y-p[D];y=Su(E,y,O)}if(a){const P=m==="y"?"top":"left",D=m==="y"?"bottom":"right",E=h+p[P],O=h-p[D];h=Su(E,h,O)}const b=l.fn({...t,[f]:y,[m]:h});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[f]:i,[m]:a}}}}}};function Yl(){return typeof window<"u"}function Is(e){return Gg(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Uo(e){var t;return(t=(Gg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gg(e){return Yl()?e instanceof Node||e instanceof qt(e).Node:!1}function uo(e){return Yl()?e instanceof Element||e instanceof qt(e).Element:!1}function Jo(e){return Yl()?e instanceof HTMLElement||e instanceof qt(e).HTMLElement:!1}function v0(e){return!Yl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot}function Ki(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=To(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&r!=="inline"&&r!=="contents"}function sD(e){return/^(table|td|th)$/.test(Is(e))}function Ul(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const iD=/transform|translate|scale|rotate|perspective|filter/,aD=/paint|layout|strict|content/,_n=e=>!!e&&e!=="none";let Sc;function lp(e){const t=uo(e)?To(e):e;return _n(t.transform)||_n(t.translate)||_n(t.scale)||_n(t.rotate)||_n(t.perspective)||!Jl()&&(_n(t.backdropFilter)||_n(t.filter))||iD.test(t.willChange||"")||aD.test(t.contain||"")}function lD(e){let t=Wn(e);for(;Jo(t)&&!ps(t);){if(lp(t))return t;if(Ul(t))return null;t=Wn(t)}return null}function Jl(){return Sc==null&&(Sc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sc}function ps(e){return/^(html|body|#document)$/.test(Is(e))}function To(e){return qt(e).getComputedStyle(e)}function $l(e){return uo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wn(e){if(Is(e)==="html")return e;const t=e.assignedSlot||e.parentNode||v0(e)&&e.host||Uo(e);return v0(t)?t.host:t}function Wg(e){const t=Wn(e);return ps(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jo(t)&&Ki(t)?t:Wg(t)}function hr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=Wg(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=qt(r);if(s){const a=Li(i);return t.concat(i,i.visualViewport||[],Ki(r)?r:[],a&&o?hr(a):[])}else return t.concat(r,hr(r,[],o))}function Li(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hg(e){const t=To(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Jo(e),s=r?e.offsetWidth:o,i=r?e.offsetHeight:n,a=Gn(o)!==s||Gn(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function cp(e){return uo(e)?e:e.contextElement}function Qr(e){const t=cp(e);if(!Jo(t))return lo(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:s}=Hg(t);let i=(s?Gn(o.width):o.width)/n,a=(s?Gn(o.height):o.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const cD=lo(0);function qg(e){const t=qt(e);return!Jl()||!t.visualViewport?cD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uD(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==qt(e)?!1:t}function yr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),s=cp(e);let i=lo(1);t&&(n?uo(n)&&(i=Qr(n)):i=Qr(e));const a=uD(s,o,n)?qg(s):lo(0);let l=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,u=r.width/i.x,p=r.height/i.y;if(s){const m=qt(s),f=n&&uo(n)?qt(n):n;let y=m,h=Li(y);for(;h&&n&&f!==y;){const b=Qr(h),P=h.getBoundingClientRect(),D=To(h),E=P.left+(h.clientLeft+parseFloat(D.paddingLeft))*b.x,O=P.top+(h.clientTop+parseFloat(D.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,p*=b.y,l+=E,c+=O,y=qt(h),h=Li(y)}}return ji({width:u,height:p,x:l,y:c})}function Xl(e,t){const o=$l(e).scrollLeft;return t?t.left+o:yr(Uo(e)).left+o}function Zg(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Xl(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function dD(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const s=r==="fixed",i=Uo(n),a=t?Ul(t.floating):!1;if(n===i||a&&s)return o;let l={scrollLeft:0,scrollTop:0},c=lo(1);const u=lo(0),p=Jo(n);if((p||!p&&!s)&&((Is(n)!=="body"||Ki(i))&&(l=$l(n)),p)){const f=yr(n);c=Qr(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}const m=i&&!p&&!s?Zg(i,l):lo(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+u.x+m.x,y:o.y*c.y-l.scrollTop*c.y+u.y+m.y}}function pD(e){return Array.from(e.getClientRects())}function fD(e){const t=Uo(e),o=$l(e),n=e.ownerDocument.body,r=Ln(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Ln(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+Xl(e);const a=-o.scrollTop;return To(n).direction==="rtl"&&(i+=Ln(t.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}const T0=25;function mD(e,t){const o=qt(e),n=Uo(e),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,l=0;if(r){s=r.width,i=r.height;const u=Jl();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const c=Xl(n);if(c<=0){const u=n.ownerDocument,p=u.body,m=getComputedStyle(p),f=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(n.clientWidth-p.clientWidth-f);y<=T0&&(s-=y)}else c<=T0&&(s+=c);return{width:s,height:i,x:a,y:l}}function hD(e,t){const o=yr(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,s=Jo(e)?Qr(e):lo(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,c=n*s.y;return{width:i,height:a,x:l,y:c}}function P0(e,t,o){let n;if(t==="viewport")n=mD(e,o);else if(t==="document")n=fD(Uo(e));else if(uo(t))n=hD(t,o);else{const r=qg(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ji(n)}function Yg(e,t){const o=Wn(e);return o===t||!uo(o)||ps(o)?!1:To(o).position==="fixed"||Yg(o,t)}function yD(e,t){const o=t.get(e);if(o)return o;let n=hr(e,[],!1).filter(a=>uo(a)&&Is(a)!=="body"),r=null;const s=To(e).position==="fixed";let i=s?Wn(e):e;for(;uo(i)&&!ps(i);){const a=To(i),l=lp(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Ki(i)&&!l&&Yg(e,i))?n=n.filter(u=>u!==i):r=a,i=Wn(i)}return t.set(e,n),n}function gD(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const i=[...o==="clippingAncestors"?Ul(t)?[]:yD(t,this._c):[].concat(o),n],a=P0(t,i[0],r);let l=a.top,c=a.right,u=a.bottom,p=a.left;for(let m=1;m<i.length;m++){const f=P0(t,i[m],r);l=Ln(f.top,l),c=fr(f.right,c),u=fr(f.bottom,u),p=Ln(f.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function bD(e){const{width:t,height:o}=Hg(e);return{width:t,height:o}}function vD(e,t,o){const n=Jo(t),r=Uo(t),s=o==="fixed",i=yr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=lo(0);function c(){l.x=Xl(r)}if(n||!n&&!s)if((Is(t)!=="body"||Ki(r))&&(a=$l(t)),n){const f=yr(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else r&&c();s&&!n&&r&&c();const u=r&&!n&&!s?Zg(r,a):lo(0),p=i.left+a.scrollLeft-l.x-u.x,m=i.top+a.scrollTop-l.y-u.y;return{x:p,y:m,width:i.width,height:i.height}}function Ic(e){return To(e).position==="static"}function w0(e,t){if(!Jo(e)||To(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Uo(e)===o&&(o=o.ownerDocument.body),o}function Ug(e,t){const o=qt(e);if(Ul(e))return o;if(!Jo(e)){let r=Wn(e);for(;r&&!ps(r);){if(uo(r)&&!Ic(r))return r;r=Wn(r)}return o}let n=w0(e,t);for(;n&&sD(n)&&Ic(n);)n=w0(n,t);return n&&ps(n)&&Ic(n)&&!lp(n)?o:n||lD(e)||o}const TD=async function(e){const t=this.getOffsetParent||Ug,o=this.getDimensions,n=await o(e.floating);return{reference:vD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function PD(e){return To(e).direction==="rtl"}const wD={convertOffsetParentRelativeRectToViewportRelativeRect:dD,getDocumentElement:Uo,getClippingRect:gD,getOffsetParent:Ug,getElementRects:TD,getClientRects:pD,getDimensions:bD,getScale:Qr,isElement:uo,isRTL:PD};function Jg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xD(e,t){let o=null,n;const r=Uo(e);function s(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:p,width:m,height:f}=c;if(a||t(),!m||!f)return;const y=Dn(p),h=Dn(r.clientWidth-(u+m)),b=Dn(r.clientHeight-(p+f)),P=Dn(u),E={rootMargin:-y+"px "+-h+"px "+-b+"px "+-P+"px",threshold:Ln(0,fr(1,l))||1};let O=!0;function j(R){const M=R[0].intersectionRatio;if(M!==l){if(!O)return i();M?i(!1,M):n=setTimeout(()=>{i(!1,1e-7)},1e3)}M===1&&!Jg(c,e.getBoundingClientRect())&&i(),O=!1}try{o=new IntersectionObserver(j,{...E,root:r.ownerDocument})}catch{o=new IntersectionObserver(j,E)}o.observe(e)}return i(!0),s}function CD(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=cp(e),u=r||s?[...c?hr(c):[],...t?hr(t):[]]:[];u.forEach(P=>{r&&P.addEventListener("scroll",o,{passive:!0}),s&&P.addEventListener("resize",o)});const p=c&&a?xD(c,o):null;let m=-1,f=null;i&&(f=new ResizeObserver(P=>{let[D]=P;D&&D.target===c&&f&&t&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),o()}),c&&!l&&f.observe(c),t&&f.observe(t));let y,h=l?yr(e):null;l&&b();function b(){const P=yr(e);h&&!Jg(h,P)&&o(),h=P,y=requestAnimationFrame(b)}return o(),()=>{var P;u.forEach(D=>{r&&D.removeEventListener("scroll",o),s&&D.removeEventListener("resize",o)}),p==null||p(),(P=f)==null||P.disconnect(),f=null,l&&cancelAnimationFrame(y)}}const SD=nD;const ID=rD,MD=eD;const kD=_R;const x0=(e,t,o)=>{const n=new Map,r={platform:wD,...o},s={...r.platform,_c:n};return KR(e,t,{...r,platform:s})};var La={exports:{}};/*!
419
419
  Copyright (c) 2018 Jed Watson.
420
420
  Licensed under the MIT License (MIT), see
421
421
  http://jedwatson.github.io/classnames
@@ -1,4 +1,4 @@
1
- import { g as qT } from "./index-3Ujd8XWM.mjs";
1
+ import { g as qT } from "./index-5IkUDWtG.mjs";
2
2
  function $T(Cu, gm) {
3
3
  for (var Io = 0; Io < gm.length; Io++) {
4
4
  const gs = gm[Io];