@travel-match/ui 0.5.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/README.md +26 -0
  2. package/dist/components/ArmeniaRouteMap/ArmeniaRouteMap.cjs +2 -0
  3. package/dist/components/ArmeniaRouteMap/ArmeniaRouteMap.cjs.map +1 -0
  4. package/dist/components/ArmeniaRouteMap/ArmeniaRouteMap.js +106 -0
  5. package/dist/components/ArmeniaRouteMap/ArmeniaRouteMap.js.map +1 -0
  6. package/dist/components/ArmeniaRouteMap/regionNames.cjs +2 -0
  7. package/dist/components/ArmeniaRouteMap/regionNames.cjs.map +1 -0
  8. package/dist/components/ArmeniaRouteMap/regionNames.js +49 -0
  9. package/dist/components/ArmeniaRouteMap/regionNames.js.map +1 -0
  10. package/dist/components/GlobeMap/GlobeMap.cjs +2 -0
  11. package/dist/components/GlobeMap/GlobeMap.cjs.map +1 -0
  12. package/dist/components/GlobeMap/GlobeMap.js +202 -0
  13. package/dist/components/GlobeMap/GlobeMap.js.map +1 -0
  14. package/dist/components/GlobeMap/geo.cjs +2 -0
  15. package/dist/components/GlobeMap/geo.cjs.map +1 -0
  16. package/dist/components/GlobeMap/geo.js +150 -0
  17. package/dist/components/GlobeMap/geo.js.map +1 -0
  18. package/dist/components/GlobeMap/world.json.cjs +2 -0
  19. package/dist/components/GlobeMap/world.json.cjs.map +1 -0
  20. package/dist/components/GlobeMap/world.json.js +28990 -0
  21. package/dist/components/GlobeMap/world.json.js.map +1 -0
  22. package/dist/countries/ad.webp +0 -0
  23. package/dist/countries/ae.webp +0 -0
  24. package/dist/countries/af.webp +0 -0
  25. package/dist/countries/al.webp +0 -0
  26. package/dist/countries/am.webp +0 -0
  27. package/dist/countries/at.webp +0 -0
  28. package/dist/countries/az.webp +0 -0
  29. package/dist/countries/ba.webp +0 -0
  30. package/dist/countries/bd.webp +0 -0
  31. package/dist/countries/be.webp +0 -0
  32. package/dist/countries/bg.webp +0 -0
  33. package/dist/countries/bn.webp +0 -0
  34. package/dist/countries/bt.webp +0 -0
  35. package/dist/countries/by.webp +0 -0
  36. package/dist/countries/ch.webp +0 -0
  37. package/dist/countries/cn.webp +0 -0
  38. package/dist/countries/cy.webp +0 -0
  39. package/dist/countries/cz.webp +0 -0
  40. package/dist/countries/de.webp +0 -0
  41. package/dist/countries/dk.webp +0 -0
  42. package/dist/countries/ee.webp +0 -0
  43. package/dist/countries/es.webp +0 -0
  44. package/dist/countries/fi.webp +0 -0
  45. package/dist/countries/fr.webp +0 -0
  46. package/dist/countries/gb.webp +0 -0
  47. package/dist/countries/ge.webp +0 -0
  48. package/dist/countries/gr.webp +0 -0
  49. package/dist/countries/hr.webp +0 -0
  50. package/dist/countries/hu.webp +0 -0
  51. package/dist/countries/id.webp +0 -0
  52. package/dist/countries/ie.webp +0 -0
  53. package/dist/countries/il.webp +0 -0
  54. package/dist/countries/in.webp +0 -0
  55. package/dist/countries/iq.webp +0 -0
  56. package/dist/countries/ir.webp +0 -0
  57. package/dist/countries/is.webp +0 -0
  58. package/dist/countries/it.webp +0 -0
  59. package/dist/countries/jo.webp +0 -0
  60. package/dist/countries/jp.webp +0 -0
  61. package/dist/countries/kg.webp +0 -0
  62. package/dist/countries/kh.webp +0 -0
  63. package/dist/countries/kp.webp +0 -0
  64. package/dist/countries/kr.webp +0 -0
  65. package/dist/countries/kz.webp +0 -0
  66. package/dist/countries/la.webp +0 -0
  67. package/dist/countries/lb.webp +0 -0
  68. package/dist/countries/li.webp +0 -0
  69. package/dist/countries/lk.webp +0 -0
  70. package/dist/countries/lt.webp +0 -0
  71. package/dist/countries/lu.webp +0 -0
  72. package/dist/countries/lv.webp +0 -0
  73. package/dist/countries/mc.webp +0 -0
  74. package/dist/countries/md.webp +0 -0
  75. package/dist/countries/me.webp +0 -0
  76. package/dist/countries/mk.webp +0 -0
  77. package/dist/countries/mm.webp +0 -0
  78. package/dist/countries/mn.webp +0 -0
  79. package/dist/countries/mt.webp +0 -0
  80. package/dist/countries/mv.webp +0 -0
  81. package/dist/countries/my.webp +0 -0
  82. package/dist/countries/nl.webp +0 -0
  83. package/dist/countries/no.webp +0 -0
  84. package/dist/countries/np.webp +0 -0
  85. package/dist/countries/om.webp +0 -0
  86. package/dist/countries/ph.webp +0 -0
  87. package/dist/countries/pk.webp +0 -0
  88. package/dist/countries/pl.webp +0 -0
  89. package/dist/countries/ps.webp +0 -0
  90. package/dist/countries/pt.webp +0 -0
  91. package/dist/countries/ro.webp +0 -0
  92. package/dist/countries/rs.webp +0 -0
  93. package/dist/countries/ru.webp +0 -0
  94. package/dist/countries/sa.webp +0 -0
  95. package/dist/countries/se.webp +0 -0
  96. package/dist/countries/sg.webp +0 -0
  97. package/dist/countries/si.webp +0 -0
  98. package/dist/countries/sk.webp +0 -0
  99. package/dist/countries/sm.webp +0 -0
  100. package/dist/countries/th.webp +0 -0
  101. package/dist/countries/tj.webp +0 -0
  102. package/dist/countries/tl.webp +0 -0
  103. package/dist/countries/tm.webp +0 -0
  104. package/dist/countries/tr.webp +0 -0
  105. package/dist/countries/tw.webp +0 -0
  106. package/dist/countries/ua.webp +0 -0
  107. package/dist/countries/us.webp +0 -0
  108. package/dist/countries/uz.webp +0 -0
  109. package/dist/countries/va.webp +0 -0
  110. package/dist/countries/vn.webp +0 -0
  111. package/dist/countries.cjs +2 -0
  112. package/dist/countries.cjs.map +1 -0
  113. package/dist/countries.d.cts +101 -0
  114. package/dist/countries.d.ts +101 -0
  115. package/dist/countries.js +9 -0
  116. package/dist/countries.js.map +1 -0
  117. package/dist/index.cjs +1 -1
  118. package/dist/index.d.cts +80 -0
  119. package/dist/index.d.ts +80 -0
  120. package/dist/index.js +34 -31
  121. package/dist/node_modules/d3-array/dist/d3-array.cjs +2 -0
  122. package/dist/node_modules/d3-array/dist/d3-array.cjs.map +1 -0
  123. package/dist/node_modules/d3-array/dist/d3-array.js +90 -0
  124. package/dist/node_modules/d3-array/dist/d3-array.js.map +1 -0
  125. package/dist/node_modules/d3-geo/src/area.cjs +2 -0
  126. package/dist/node_modules/d3-geo/src/area.cjs.map +1 -0
  127. package/dist/node_modules/d3-geo/src/area.js +41 -0
  128. package/dist/node_modules/d3-geo/src/area.js.map +1 -0
  129. package/dist/node_modules/d3-geo/src/cartesian.cjs +2 -0
  130. package/dist/node_modules/d3-geo/src/cartesian.cjs.map +1 -0
  131. package/dist/node_modules/d3-geo/src/cartesian.js +41 -0
  132. package/dist/node_modules/d3-geo/src/cartesian.js.map +1 -0
  133. package/dist/node_modules/d3-geo/src/centroid.cjs +2 -0
  134. package/dist/node_modules/d3-geo/src/centroid.cjs.map +1 -0
  135. package/dist/node_modules/d3-geo/src/centroid.js +66 -0
  136. package/dist/node_modules/d3-geo/src/centroid.js.map +1 -0
  137. package/dist/node_modules/d3-geo/src/circle.cjs +2 -0
  138. package/dist/node_modules/d3-geo/src/circle.cjs.map +1 -0
  139. package/dist/node_modules/d3-geo/src/circle.js +23 -0
  140. package/dist/node_modules/d3-geo/src/circle.js.map +1 -0
  141. package/dist/node_modules/d3-geo/src/clip/antimeridian.cjs +2 -0
  142. package/dist/node_modules/d3-geo/src/clip/antimeridian.cjs.map +1 -0
  143. package/dist/node_modules/d3-geo/src/clip/antimeridian.js +40 -0
  144. package/dist/node_modules/d3-geo/src/clip/antimeridian.js.map +1 -0
  145. package/dist/node_modules/d3-geo/src/clip/buffer.cjs +2 -0
  146. package/dist/node_modules/d3-geo/src/clip/buffer.cjs.map +1 -0
  147. package/dist/node_modules/d3-geo/src/clip/buffer.js +29 -0
  148. package/dist/node_modules/d3-geo/src/clip/buffer.js.map +1 -0
  149. package/dist/node_modules/d3-geo/src/clip/circle.cjs +2 -0
  150. package/dist/node_modules/d3-geo/src/clip/circle.cjs.map +1 -0
  151. package/dist/node_modules/d3-geo/src/clip/circle.js +69 -0
  152. package/dist/node_modules/d3-geo/src/clip/circle.js.map +1 -0
  153. package/dist/node_modules/d3-geo/src/clip/index.cjs +2 -0
  154. package/dist/node_modules/d3-geo/src/clip/index.cjs.map +1 -0
  155. package/dist/node_modules/d3-geo/src/clip/index.js +67 -0
  156. package/dist/node_modules/d3-geo/src/clip/index.js.map +1 -0
  157. package/dist/node_modules/d3-geo/src/clip/line.cjs +2 -0
  158. package/dist/node_modules/d3-geo/src/clip/line.cjs.map +1 -0
  159. package/dist/node_modules/d3-geo/src/clip/line.js +45 -0
  160. package/dist/node_modules/d3-geo/src/clip/line.js.map +1 -0
  161. package/dist/node_modules/d3-geo/src/clip/rectangle.cjs +2 -0
  162. package/dist/node_modules/d3-geo/src/clip/rectangle.cjs.map +1 -0
  163. package/dist/node_modules/d3-geo/src/clip/rectangle.js +73 -0
  164. package/dist/node_modules/d3-geo/src/clip/rectangle.js.map +1 -0
  165. package/dist/node_modules/d3-geo/src/clip/rejoin.cjs +2 -0
  166. package/dist/node_modules/d3-geo/src/clip/rejoin.cjs.map +1 -0
  167. package/dist/node_modules/d3-geo/src/clip/rejoin.js +52 -0
  168. package/dist/node_modules/d3-geo/src/clip/rejoin.js.map +1 -0
  169. package/dist/node_modules/d3-geo/src/compose.cjs +2 -0
  170. package/dist/node_modules/d3-geo/src/compose.cjs.map +1 -0
  171. package/dist/node_modules/d3-geo/src/compose.js +13 -0
  172. package/dist/node_modules/d3-geo/src/compose.js.map +1 -0
  173. package/dist/node_modules/d3-geo/src/distance.cjs +2 -0
  174. package/dist/node_modules/d3-geo/src/distance.cjs.map +1 -0
  175. package/dist/node_modules/d3-geo/src/distance.js +13 -0
  176. package/dist/node_modules/d3-geo/src/distance.js.map +1 -0
  177. package/dist/node_modules/d3-geo/src/identity.cjs +2 -0
  178. package/dist/node_modules/d3-geo/src/identity.cjs.map +1 -0
  179. package/dist/node_modules/d3-geo/src/identity.js +6 -0
  180. package/dist/node_modules/d3-geo/src/identity.js.map +1 -0
  181. package/dist/node_modules/d3-geo/src/interpolate.cjs +2 -0
  182. package/dist/node_modules/d3-geo/src/interpolate.cjs.map +1 -0
  183. package/dist/node_modules/d3-geo/src/interpolate.js +15 -0
  184. package/dist/node_modules/d3-geo/src/interpolate.js.map +1 -0
  185. package/dist/node_modules/d3-geo/src/length.cjs +2 -0
  186. package/dist/node_modules/d3-geo/src/length.cjs.map +1 -0
  187. package/dist/node_modules/d3-geo/src/length.js +34 -0
  188. package/dist/node_modules/d3-geo/src/length.js.map +1 -0
  189. package/dist/node_modules/d3-geo/src/math.cjs +2 -0
  190. package/dist/node_modules/d3-geo/src/math.cjs.map +1 -0
  191. package/dist/node_modules/d3-geo/src/math.js +17 -0
  192. package/dist/node_modules/d3-geo/src/math.js.map +1 -0
  193. package/dist/node_modules/d3-geo/src/noop.cjs +2 -0
  194. package/dist/node_modules/d3-geo/src/noop.cjs.map +1 -0
  195. package/dist/node_modules/d3-geo/src/noop.js +6 -0
  196. package/dist/node_modules/d3-geo/src/noop.js.map +1 -0
  197. package/dist/node_modules/d3-geo/src/path/area.cjs +2 -0
  198. package/dist/node_modules/d3-geo/src/path/area.cjs.map +1 -0
  199. package/dist/node_modules/d3-geo/src/path/area.js +35 -0
  200. package/dist/node_modules/d3-geo/src/path/area.js.map +1 -0
  201. package/dist/node_modules/d3-geo/src/path/bounds.cjs +2 -0
  202. package/dist/node_modules/d3-geo/src/path/bounds.cjs.map +1 -0
  203. package/dist/node_modules/d3-geo/src/path/bounds.js +20 -0
  204. package/dist/node_modules/d3-geo/src/path/bounds.js.map +1 -0
  205. package/dist/node_modules/d3-geo/src/path/centroid.cjs +2 -0
  206. package/dist/node_modules/d3-geo/src/path/centroid.cjs.map +1 -0
  207. package/dist/node_modules/d3-geo/src/path/centroid.js +50 -0
  208. package/dist/node_modules/d3-geo/src/path/centroid.js.map +1 -0
  209. package/dist/node_modules/d3-geo/src/path/context.cjs +2 -0
  210. package/dist/node_modules/d3-geo/src/path/context.cjs.map +1 -0
  211. package/dist/node_modules/d3-geo/src/path/context.js +40 -0
  212. package/dist/node_modules/d3-geo/src/path/context.js.map +1 -0
  213. package/dist/node_modules/d3-geo/src/path/index.cjs +2 -0
  214. package/dist/node_modules/d3-geo/src/path/index.cjs.map +1 -0
  215. package/dist/node_modules/d3-geo/src/path/index.js +43 -0
  216. package/dist/node_modules/d3-geo/src/path/index.js.map +1 -0
  217. package/dist/node_modules/d3-geo/src/path/measure.cjs +2 -0
  218. package/dist/node_modules/d3-geo/src/path/measure.cjs.map +1 -0
  219. package/dist/node_modules/d3-geo/src/path/measure.js +33 -0
  220. package/dist/node_modules/d3-geo/src/path/measure.js.map +1 -0
  221. package/dist/node_modules/d3-geo/src/path/string.cjs +2 -0
  222. package/dist/node_modules/d3-geo/src/path/string.cjs.map +1 -0
  223. package/dist/node_modules/d3-geo/src/path/string.js +64 -0
  224. package/dist/node_modules/d3-geo/src/path/string.js.map +1 -0
  225. package/dist/node_modules/d3-geo/src/pointEqual.cjs +2 -0
  226. package/dist/node_modules/d3-geo/src/pointEqual.cjs.map +1 -0
  227. package/dist/node_modules/d3-geo/src/pointEqual.js +9 -0
  228. package/dist/node_modules/d3-geo/src/pointEqual.js.map +1 -0
  229. package/dist/node_modules/d3-geo/src/polygonContains.cjs +2 -0
  230. package/dist/node_modules/d3-geo/src/polygonContains.cjs.map +1 -0
  231. package/dist/node_modules/d3-geo/src/polygonContains.js +31 -0
  232. package/dist/node_modules/d3-geo/src/polygonContains.js.map +1 -0
  233. package/dist/node_modules/d3-geo/src/projection/azimuthal.cjs +2 -0
  234. package/dist/node_modules/d3-geo/src/projection/azimuthal.cjs.map +1 -0
  235. package/dist/node_modules/d3-geo/src/projection/azimuthal.js +12 -0
  236. package/dist/node_modules/d3-geo/src/projection/azimuthal.js.map +1 -0
  237. package/dist/node_modules/d3-geo/src/projection/fit.cjs +2 -0
  238. package/dist/node_modules/d3-geo/src/projection/fit.cjs.map +1 -0
  239. package/dist/node_modules/d3-geo/src/projection/fit.js +32 -0
  240. package/dist/node_modules/d3-geo/src/projection/fit.js.map +1 -0
  241. package/dist/node_modules/d3-geo/src/projection/index.cjs +2 -0
  242. package/dist/node_modules/d3-geo/src/projection/index.cjs.map +1 -0
  243. package/dist/node_modules/d3-geo/src/projection/index.js +105 -0
  244. package/dist/node_modules/d3-geo/src/projection/index.js.map +1 -0
  245. package/dist/node_modules/d3-geo/src/projection/orthographic.cjs +2 -0
  246. package/dist/node_modules/d3-geo/src/projection/orthographic.cjs.map +1 -0
  247. package/dist/node_modules/d3-geo/src/projection/orthographic.js +15 -0
  248. package/dist/node_modules/d3-geo/src/projection/orthographic.js.map +1 -0
  249. package/dist/node_modules/d3-geo/src/projection/resample.cjs +2 -0
  250. package/dist/node_modules/d3-geo/src/projection/resample.cjs.map +1 -0
  251. package/dist/node_modules/d3-geo/src/projection/resample.js +62 -0
  252. package/dist/node_modules/d3-geo/src/projection/resample.js.map +1 -0
  253. package/dist/node_modules/d3-geo/src/rotation.cjs +2 -0
  254. package/dist/node_modules/d3-geo/src/rotation.cjs.map +1 -0
  255. package/dist/node_modules/d3-geo/src/rotation.js +34 -0
  256. package/dist/node_modules/d3-geo/src/rotation.js.map +1 -0
  257. package/dist/node_modules/d3-geo/src/stream.cjs +2 -0
  258. package/dist/node_modules/d3-geo/src/stream.cjs.map +1 -0
  259. package/dist/node_modules/d3-geo/src/stream.js +54 -0
  260. package/dist/node_modules/d3-geo/src/stream.js.map +1 -0
  261. package/dist/node_modules/d3-geo/src/transform.cjs +2 -0
  262. package/dist/node_modules/d3-geo/src/transform.cjs.map +1 -0
  263. package/dist/node_modules/d3-geo/src/transform.js +34 -0
  264. package/dist/node_modules/d3-geo/src/transform.js.map +1 -0
  265. package/dist/node_modules/topojson-client/src/feature.cjs +2 -0
  266. package/dist/node_modules/topojson-client/src/feature.cjs.map +1 -0
  267. package/dist/node_modules/topojson-client/src/feature.js +89 -0
  268. package/dist/node_modules/topojson-client/src/feature.js.map +1 -0
  269. package/dist/node_modules/topojson-client/src/identity.cjs +2 -0
  270. package/dist/node_modules/topojson-client/src/identity.cjs.map +1 -0
  271. package/dist/node_modules/topojson-client/src/identity.js +8 -0
  272. package/dist/node_modules/topojson-client/src/identity.js.map +1 -0
  273. package/dist/node_modules/topojson-client/src/reverse.cjs +2 -0
  274. package/dist/node_modules/topojson-client/src/reverse.cjs.map +1 -0
  275. package/dist/node_modules/topojson-client/src/reverse.js +8 -0
  276. package/dist/node_modules/topojson-client/src/reverse.js.map +1 -0
  277. package/dist/node_modules/topojson-client/src/transform.cjs +2 -0
  278. package/dist/node_modules/topojson-client/src/transform.cjs.map +1 -0
  279. package/dist/node_modules/topojson-client/src/transform.js +16 -0
  280. package/dist/node_modules/topojson-client/src/transform.js.map +1 -0
  281. package/dist/styles.css +1 -1
  282. package/package.json +22 -2
package/dist/index.d.cts CHANGED
@@ -3055,6 +3055,86 @@ export interface DestinationsProps extends Omit<HTMLAttributes<HTMLDivElement>,
3055
3055
  * (Figma "Switch": Abroad · Around Armenia), each group shown as a `DestinationAccordion`.
3056
3056
  */
3057
3057
  export declare const Destinations: import("react").ForwardRefExoticComponent<DestinationsProps & import("react").RefAttributes<HTMLDivElement>>;
3058
+ export interface ArmeniaRouteMapProps extends HTMLAttributes<HTMLDivElement> {
3059
+ /** Region the trip starts from: filled in blue with a white pin, every route begins here. */
3060
+ start?: ArmeniaRegion | null;
3061
+ /** Regions the trip goes to, in order: filled in navy, each with a pin and a dotted route from `start`. */
3062
+ stops?: readonly ArmeniaRegion[];
3063
+ /** Language of the region labels: `'en'`, `'hy'` or `'ru'` (any BCP 47 tag such as `'hy-AM'` works). Default `'en'`. */
3064
+ locale?: string;
3065
+ }
3066
+ /**
3067
+ * Figma "Map" with a route (2978:23659): the Armenia map in a card, with the starting region in blue, the chosen
3068
+ * regions in navy, a pin and a label on each, and a dotted route from the start to every stop. Pass the
3069
+ * selection from the request form; the map updates as it changes. Scales to the width of its container.
3070
+ */
3071
+ export declare const ArmeniaRouteMap: import("react").ForwardRefExoticComponent<ArmeniaRouteMapProps & import("react").RefAttributes<HTMLDivElement>>;
3072
+ /** Languages the region names are translated into. */
3073
+ export type ArmeniaRegionLocale = "en" | "hy" | "ru";
3074
+ /** Names of the Armenia map regions per language (same wording as the web app's `regions.*` translations). */
3075
+ export declare const ARMENIA_REGION_NAMES: Readonly<Record<ArmeniaRegionLocale, Readonly<Record<ArmeniaRegion, string>>>>;
3076
+ /**
3077
+ * Region name in the given language. Takes any BCP 47 tag (`'hy'`, `'hy-AM'`, `'ru-RU'` …) and falls back to
3078
+ * English for languages without a translation.
3079
+ */
3080
+ export declare function getArmeniaRegionName(region: ArmeniaRegion, locale?: string): string;
3081
+ /** A country picked as a whole: its shape is filled and the pin sits in its middle. */
3082
+ export interface GlobeCountryPlace {
3083
+ kind: "country";
3084
+ /** ISO 3166-1 alpha-2, e.g. `"FR"`. */
3085
+ countryCode: string;
3086
+ /** Label text; defaults to the country name in `locale`. */
3087
+ label?: string;
3088
+ }
3089
+ /** A city or an airport: its country is filled and the pin sits on its coordinates. */
3090
+ export interface GlobePointPlace {
3091
+ kind: "city" | "airport";
3092
+ /** ISO 3166-1 alpha-2 of the country it is in, e.g. `"FR"`. */
3093
+ countryCode: string;
3094
+ /** From the airport data (`latitude` / `longitude` of the reference-data airports). Without them the pin sits in the middle of the country. */
3095
+ latitude?: number;
3096
+ longitude?: number;
3097
+ /** IATA code of an airport, e.g. `"CDG"`; identifies the place when it comes back later in the route. */
3098
+ code?: string;
3099
+ /** Label text, e.g. the city name `"Paris"`. Defaults to `code`, then the country name. */
3100
+ label?: string;
3101
+ }
3102
+ export type GlobePlace = GlobeCountryPlace | GlobePointPlace;
3103
+ /** One leg of the trip, drawn as a dotted arc from `from` to `to`. */
3104
+ export interface GlobeSegment {
3105
+ from: GlobePlace;
3106
+ to: GlobePlace;
3107
+ }
3108
+ export interface GlobeMapProps extends HTMLAttributes<HTMLDivElement> {
3109
+ /**
3110
+ * Where the trip starts ("Departing from"): its country is filled in blue, with a white pin. Alone, the globe zooms
3111
+ * in on it. Defaults to the `from` of the first segment.
3112
+ */
3113
+ start?: GlobePlace | null;
3114
+ /**
3115
+ * The legs of the trip, each drawn as a dotted arc: one leg for a one-way trip or a destination, there and back for
3116
+ * a round trip, any chain (or open jaw) for multi-city. Every place other than the start gets a navy country, a pin
3117
+ * and a label; the globe turns and zooms so that all of them are in view.
3118
+ */
3119
+ segments?: readonly GlobeSegment[];
3120
+ /**
3121
+ * A plane in a white circle on every leg, pointing the way (Figma flight maps 2745:43316 / 2745:43151). Once the globe
3122
+ * stops, each leg draws itself with its plane at the tip, one leg after another; then every plane keeps flying its
3123
+ * leg. Under `prefers-reduced-motion` the planes rest on the middle of their legs, as in Figma.
3124
+ */
3125
+ planes?: boolean;
3126
+ /** Language of the default labels (country names): `'en'`, `'hy'` or `'ru'` (shipped with the map), others via the browser. Default `'en'`. */
3127
+ locale?: string;
3128
+ /** Length of the turn-and-zoom animation in ms. Default 900. Skipped under `prefers-reduced-motion`. */
3129
+ duration?: number;
3130
+ }
3131
+ /**
3132
+ * Figma "Map" with "Map / Globe" (2966:17945 empty, 2966:18002 departure, 2745:11779 destination, 2745:43316 /
3133
+ * 2745:43151 flights): a 3D globe in a card. It starts facing Europe and the Middle East, turns and zooms to the
3134
+ * departure once it is chosen, then to fit the whole trip. Countries, cities and airports can be mixed: a country is
3135
+ * filled and pinned in its middle, a city or airport fills its country and is pinned at its coordinates.
3136
+ */
3137
+ export declare const GlobeMap: import("react").ForwardRefExoticComponent<GlobeMapProps & import("react").RefAttributes<HTMLDivElement>>;
3058
3138
  export interface TripTypeFact {
3059
3139
  /** 16px icon before the label. */
3060
3140
  icon?: ReactNode;
package/dist/index.d.ts CHANGED
@@ -3055,6 +3055,86 @@ export interface DestinationsProps extends Omit<HTMLAttributes<HTMLDivElement>,
3055
3055
  * (Figma "Switch": Abroad · Around Armenia), each group shown as a `DestinationAccordion`.
3056
3056
  */
3057
3057
  export declare const Destinations: import("react").ForwardRefExoticComponent<DestinationsProps & import("react").RefAttributes<HTMLDivElement>>;
3058
+ export interface ArmeniaRouteMapProps extends HTMLAttributes<HTMLDivElement> {
3059
+ /** Region the trip starts from: filled in blue with a white pin, every route begins here. */
3060
+ start?: ArmeniaRegion | null;
3061
+ /** Regions the trip goes to, in order: filled in navy, each with a pin and a dotted route from `start`. */
3062
+ stops?: readonly ArmeniaRegion[];
3063
+ /** Language of the region labels: `'en'`, `'hy'` or `'ru'` (any BCP 47 tag such as `'hy-AM'` works). Default `'en'`. */
3064
+ locale?: string;
3065
+ }
3066
+ /**
3067
+ * Figma "Map" with a route (2978:23659): the Armenia map in a card, with the starting region in blue, the chosen
3068
+ * regions in navy, a pin and a label on each, and a dotted route from the start to every stop. Pass the
3069
+ * selection from the request form; the map updates as it changes. Scales to the width of its container.
3070
+ */
3071
+ export declare const ArmeniaRouteMap: import("react").ForwardRefExoticComponent<ArmeniaRouteMapProps & import("react").RefAttributes<HTMLDivElement>>;
3072
+ /** Languages the region names are translated into. */
3073
+ export type ArmeniaRegionLocale = "en" | "hy" | "ru";
3074
+ /** Names of the Armenia map regions per language (same wording as the web app's `regions.*` translations). */
3075
+ export declare const ARMENIA_REGION_NAMES: Readonly<Record<ArmeniaRegionLocale, Readonly<Record<ArmeniaRegion, string>>>>;
3076
+ /**
3077
+ * Region name in the given language. Takes any BCP 47 tag (`'hy'`, `'hy-AM'`, `'ru-RU'` …) and falls back to
3078
+ * English for languages without a translation.
3079
+ */
3080
+ export declare function getArmeniaRegionName(region: ArmeniaRegion, locale?: string): string;
3081
+ /** A country picked as a whole: its shape is filled and the pin sits in its middle. */
3082
+ export interface GlobeCountryPlace {
3083
+ kind: "country";
3084
+ /** ISO 3166-1 alpha-2, e.g. `"FR"`. */
3085
+ countryCode: string;
3086
+ /** Label text; defaults to the country name in `locale`. */
3087
+ label?: string;
3088
+ }
3089
+ /** A city or an airport: its country is filled and the pin sits on its coordinates. */
3090
+ export interface GlobePointPlace {
3091
+ kind: "city" | "airport";
3092
+ /** ISO 3166-1 alpha-2 of the country it is in, e.g. `"FR"`. */
3093
+ countryCode: string;
3094
+ /** From the airport data (`latitude` / `longitude` of the reference-data airports). Without them the pin sits in the middle of the country. */
3095
+ latitude?: number;
3096
+ longitude?: number;
3097
+ /** IATA code of an airport, e.g. `"CDG"`; identifies the place when it comes back later in the route. */
3098
+ code?: string;
3099
+ /** Label text, e.g. the city name `"Paris"`. Defaults to `code`, then the country name. */
3100
+ label?: string;
3101
+ }
3102
+ export type GlobePlace = GlobeCountryPlace | GlobePointPlace;
3103
+ /** One leg of the trip, drawn as a dotted arc from `from` to `to`. */
3104
+ export interface GlobeSegment {
3105
+ from: GlobePlace;
3106
+ to: GlobePlace;
3107
+ }
3108
+ export interface GlobeMapProps extends HTMLAttributes<HTMLDivElement> {
3109
+ /**
3110
+ * Where the trip starts ("Departing from"): its country is filled in blue, with a white pin. Alone, the globe zooms
3111
+ * in on it. Defaults to the `from` of the first segment.
3112
+ */
3113
+ start?: GlobePlace | null;
3114
+ /**
3115
+ * The legs of the trip, each drawn as a dotted arc: one leg for a one-way trip or a destination, there and back for
3116
+ * a round trip, any chain (or open jaw) for multi-city. Every place other than the start gets a navy country, a pin
3117
+ * and a label; the globe turns and zooms so that all of them are in view.
3118
+ */
3119
+ segments?: readonly GlobeSegment[];
3120
+ /**
3121
+ * A plane in a white circle on every leg, pointing the way (Figma flight maps 2745:43316 / 2745:43151). Once the globe
3122
+ * stops, each leg draws itself with its plane at the tip, one leg after another; then every plane keeps flying its
3123
+ * leg. Under `prefers-reduced-motion` the planes rest on the middle of their legs, as in Figma.
3124
+ */
3125
+ planes?: boolean;
3126
+ /** Language of the default labels (country names): `'en'`, `'hy'` or `'ru'` (shipped with the map), others via the browser. Default `'en'`. */
3127
+ locale?: string;
3128
+ /** Length of the turn-and-zoom animation in ms. Default 900. Skipped under `prefers-reduced-motion`. */
3129
+ duration?: number;
3130
+ }
3131
+ /**
3132
+ * Figma "Map" with "Map / Globe" (2966:17945 empty, 2966:18002 departure, 2745:11779 destination, 2745:43316 /
3133
+ * 2745:43151 flights): a 3D globe in a card. It starts facing Europe and the Middle East, turns and zooms to the
3134
+ * departure once it is chosen, then to fit the whole trip. Countries, cities and airports can be mixed: a country is
3135
+ * filled and pinned in its middle, a city or airport fills its country and is pinned at its coordinates.
3136
+ */
3137
+ export declare const GlobeMap: import("react").ForwardRefExoticComponent<GlobeMapProps & import("react").RefAttributes<HTMLDivElement>>;
3058
3138
  export interface TripTypeFact {
3059
3139
  /** 16px icon before the label. */
3060
3140
  icon?: ReactNode;
package/dist/index.js CHANGED
@@ -141,34 +141,37 @@ import { StepCard as an, Steps as on } from "./components/StepCard/StepCard.js";
141
141
  import { PhotoAccordion as sn } from "./components/PhotoAccordion/PhotoAccordion.js";
142
142
  import { DestinationAccordion as cn } from "./components/DestinationAccordion/DestinationAccordion.js";
143
143
  import { Destinations as ln } from "./components/Destinations/Destinations.js";
144
- import { TripTypes as un } from "./components/TripTypes/TripTypes.js";
145
- import { Dialog as dn, DialogClose as fn, useDialogPlacement as pn } from "./components/Dialog/Dialog.js";
146
- import { ConfirmationDialog as mn } from "./components/ConfirmationDialog/ConfirmationDialog.js";
147
- import { RequestTypeOption as hn } from "./components/RequestTypeOption/RequestTypeOption.js";
148
- import { NewRequestOptionCard as gn, NewRequestOverlay as _n } from "./components/NewRequestOverlay/NewRequestOverlay.js";
149
- import { EmptyState as vn } from "./components/EmptyState/EmptyState.js";
150
- import { ErrorState as yn } from "./components/ErrorState/ErrorState.js";
151
- import { RequestStatusTimeline as bn } from "./components/RequestStatusTimeline/RequestStatusTimeline.js";
152
- import { HeroColumns as xn } from "./components/HeroColumns/HeroColumns.js";
153
- import { HeroSwitcher as Sn } from "./components/HeroSwitcher/HeroSwitcher.js";
154
- import { HeroOrbit as Cn, HeroOrbitCard as wn } from "./components/HeroOrbit/HeroOrbit.js";
155
- import { HeroMap as Tn } from "./components/HeroMap/HeroMap.js";
156
- import { HowItWorksStepTag as En, HowItWorksSteps as Dn } from "./components/HowItWorksSteps/HowItWorksSteps.js";
157
- import { ExampleRequests as On } from "./components/ExampleRequests/ExampleRequests.js";
158
- import { WhyTravelMatch as kn, WhyTravelMatchOffers as An } from "./components/WhyTravelMatch/WhyTravelMatch.js";
159
- import { PackageAnimation as jn } from "./components/PackageAnimation/PackageAnimation.js";
160
- import { PartnerCarousel as Mn } from "./components/PartnerCarousel/PartnerCarousel.js";
161
- import { CtaRequestFlow as Nn } from "./components/CtaRequestFlow/CtaRequestFlow.js";
162
- import { CtaSentence as Pn } from "./components/CtaSentence/CtaSentence.js";
163
- import { Sheet as Fn } from "./components/Sheet/Sheet.js";
164
- import { SelectSheet as In } from "./components/SelectSheet/SelectSheet.js";
165
- import { AccountSheet as Ln } from "./components/AccountSheet/AccountSheet.js";
166
- import { NotificationsPanel as Rn } from "./components/NotificationsPanel/NotificationsPanel.js";
167
- import { DatePickerSheet as zn, DateRangePickerSheet as Bn } from "./components/DatePickerSheet/DatePickerSheet.js";
168
- import { BackLink as Vn } from "./components/BackLink/BackLink.js";
169
- import { FilterChips as Hn } from "./components/FilterChips/FilterChips.js";
170
- import { SocialButton as Un } from "./components/SocialButton/SocialButton.js";
171
- import { Divider as Wn } from "./components/Divider/Divider.js";
172
- import { SegmentedControl as Gn } from "./components/SegmentedControl/SegmentedControl.js";
173
- import { PasswordStrength as Kn } from "./components/PasswordStrength/PasswordStrength.js";
174
- export { pe as ARMENIA_REGIONS, kt as AccountMenu, At as AccountMenuItem, jt as AccountMenuSeparator, Ln as AccountSheet, tn as AgenciesFilter, Ht as AgencyCard, de as AgencyLogo, Ut as AgencyOfferCard, n as AirplaneSeatIcon, me as ArmeniaMap, r as BackArrowIcon, Vn as BackLink, i as BaggageIcon, a as BedIcon, o as BookmarkIcon, st as Breadcrumb, ct as BreadcrumbItem, s as BriefcaseIcon, Qe as BudgetField, _e as Button, _t as Calendar, nt as CalendarDay, c as CalendarIcon, l as CarIcon, Ke as Checkbox, u as CheckmarkIcon, Oe as ChoiceChip, ke as ChoiceChipGroup, d as CompareIcon, mn as ConfirmationDialog, Nn as CtaRequestFlow, Pn as CtaSentence, ze as CurrencySelect, We as DateField, vt as DatePicker, yt as DatePickerPanel, zn as DatePickerSheet, bt as DateRangePicker, xt as DateRangePickerPanel, Bn as DateRangePickerSheet, cn as DestinationAccordion, ln as Destinations, dn as Dialog, fn as DialogClose, Wn as Divider, f as DownArrowIcon, p as EmailIcon, vn as EmptyState, m as ErrorCircleIcon, yn as ErrorState, On as ExampleRequests, h as EyeOpenIcon, g as EyeSlashedIcon, Qt as FaqItem, $t as FaqList, ve as FieldMessage, Hn as FilterChips, v as FlagFranceIcon, y as FlagGermanyIcon, _ as FlagIcon, b as FlagItalyIcon, x as FlagNetherlandsIcon, S as FlagRoundIcon, C as FlagRussiaIcon, w as FlagUaeIcon, T as ForkKnifeIcon, ye as FormField, ut as FormProgress, ot as HeaderItem, Vt as HelpQuestionCard, xn as HeroColumns, Tn as HeroMap, Cn as HeroOrbit, wn as HeroOrbitCard, Sn as HeroSwitcher, En as HowItWorksStepTag, Dn as HowItWorksSteps, ce as Icon, Xe as IconButton, ht as IconTile, Ae as InclusionIndicator, E as InfoIcon, pt as InlineAlert, be as Label, D as LanguageIcon, Re as LanguageSelect, O as LockIcon, le as Logo, ue as LogoAnimation, k as MapPinIcon, A as MenuIcon, j as MinusIcon, M as MountainIcon, gn as NewRequestOptionCard, _n as NewRequestOverlay, N as NextArrowIcon, P as NotificationIcon, Ft as NotificationItem, Et as NotificationsButton, Dt as NotificationsDropdown, Ot as NotificationsMenu, Rn as NotificationsPanel, Wt as OfferComparison, Gt as OfferComparisonRow, Pe as Option, Fe as OptionList, F as OtherIcon, jn as PackageAnimation, qt as PackageCard, Kt as PackageCardElement, lt as Pagination, I as PaperIcon, Jt as PartnerCard, Mn as PartnerCarousel, L as PassportIcon, Me as PasswordInput, Kn as PasswordStrength, R as PeopleIcon, Be as PhoneInput, sn as PhotoAccordion, nn as PlanCard, z as PlaneIcon, B as PlaneLandingIcon, V as PlaneTakeoffIcon, rn as PlansPicker, H as PlusIcon, en as PopularQuestions, Pt as PortalFooter, St as PortalHeader, Ct as PortalHeaderMenuGroup, wt as PortalHeaderMenuItem, Tt as PortalHeaderShow, U as PreferencesIcon, Ze as QuantityStepper, qe as Radio, Je as RadioGroup, De as Rating, It as RequestCard, rt as RequestSearch, Te as RequestStatus, bn as RequestStatusTimeline, Lt as RequestSummary, Rt as RequestSummaryEditLink, zt as RequestSummaryRow, Bt as RequestSummarySection, hn as RequestTypeOption, W as ResizeFieldIcon, G as ReverseArrowIcon, Yt as ReviewItem, Zt as ReviewsEmptyState, Xt as ReviewsSummary, K as RoadmapIcon, Ge as RouteField, q as SaveTimeIcon, J as SearchIcon, Ve as SearchInput, He as SearchResult, Ue as SearchResultGroup, Gn as SegmentedControl, Le as Select, In as SelectSheet, Ie as SelectedItem, Y as SendIcon, Fn as Sheet, X as ShieldIcon, dt as ShowMore, Nt as SiteFooter, Mt as SiteHeader, Un as SocialButton, at as SortSelect, Z as StarIcon, it as StatusFilter, we as StatusTag, an as StepCard, ft as StepProgress, on as Steps, Q as StopsIcon, Ce as Tag, gt as TelegramConnect, Se as Text, je as TextInput, Ne as Textarea, $ as TicketIcon, mt as Toast, Ye as Toggle, ee as TrashBinIcon, $e as TravelerSelector, et as TravelerSelectorNote, tt as TravelerSelectorSection, un as TripTypes, te as UpArrowIcon, ne as UpDownArrowIcon, re as UserIcon, Ee as VerificationBadge, he as WORLD_COUNTRIES, ie as WalletIcon, kn as WhyTravelMatch, An as WhyTravelMatchOffers, ge as WorldMap, ae as XMarkIcon, e as cn, t as createIcon, fe as getAgencyInitials, oe as iconNames, se as icons, pn as useDialogPlacement, xe as useFieldIds };
144
+ import { ARMENIA_REGION_NAMES as un, getArmeniaRegionName as dn } from "./components/ArmeniaRouteMap/regionNames.js";
145
+ import { ArmeniaRouteMap as fn } from "./components/ArmeniaRouteMap/ArmeniaRouteMap.js";
146
+ import { GlobeMap as pn } from "./components/GlobeMap/GlobeMap.js";
147
+ import { TripTypes as mn } from "./components/TripTypes/TripTypes.js";
148
+ import { Dialog as hn, DialogClose as gn, useDialogPlacement as _n } from "./components/Dialog/Dialog.js";
149
+ import { ConfirmationDialog as vn } from "./components/ConfirmationDialog/ConfirmationDialog.js";
150
+ import { RequestTypeOption as yn } from "./components/RequestTypeOption/RequestTypeOption.js";
151
+ import { NewRequestOptionCard as bn, NewRequestOverlay as xn } from "./components/NewRequestOverlay/NewRequestOverlay.js";
152
+ import { EmptyState as Sn } from "./components/EmptyState/EmptyState.js";
153
+ import { ErrorState as Cn } from "./components/ErrorState/ErrorState.js";
154
+ import { RequestStatusTimeline as wn } from "./components/RequestStatusTimeline/RequestStatusTimeline.js";
155
+ import { HeroColumns as Tn } from "./components/HeroColumns/HeroColumns.js";
156
+ import { HeroSwitcher as En } from "./components/HeroSwitcher/HeroSwitcher.js";
157
+ import { HeroOrbit as Dn, HeroOrbitCard as On } from "./components/HeroOrbit/HeroOrbit.js";
158
+ import { HeroMap as kn } from "./components/HeroMap/HeroMap.js";
159
+ import { HowItWorksStepTag as An, HowItWorksSteps as jn } from "./components/HowItWorksSteps/HowItWorksSteps.js";
160
+ import { ExampleRequests as Mn } from "./components/ExampleRequests/ExampleRequests.js";
161
+ import { WhyTravelMatch as Nn, WhyTravelMatchOffers as Pn } from "./components/WhyTravelMatch/WhyTravelMatch.js";
162
+ import { PackageAnimation as Fn } from "./components/PackageAnimation/PackageAnimation.js";
163
+ import { PartnerCarousel as In } from "./components/PartnerCarousel/PartnerCarousel.js";
164
+ import { CtaRequestFlow as Ln } from "./components/CtaRequestFlow/CtaRequestFlow.js";
165
+ import { CtaSentence as Rn } from "./components/CtaSentence/CtaSentence.js";
166
+ import { Sheet as zn } from "./components/Sheet/Sheet.js";
167
+ import { SelectSheet as Bn } from "./components/SelectSheet/SelectSheet.js";
168
+ import { AccountSheet as Vn } from "./components/AccountSheet/AccountSheet.js";
169
+ import { NotificationsPanel as Hn } from "./components/NotificationsPanel/NotificationsPanel.js";
170
+ import { DatePickerSheet as Un, DateRangePickerSheet as Wn } from "./components/DatePickerSheet/DatePickerSheet.js";
171
+ import { BackLink as Gn } from "./components/BackLink/BackLink.js";
172
+ import { FilterChips as Kn } from "./components/FilterChips/FilterChips.js";
173
+ import { SocialButton as qn } from "./components/SocialButton/SocialButton.js";
174
+ import { Divider as Jn } from "./components/Divider/Divider.js";
175
+ import { SegmentedControl as Yn } from "./components/SegmentedControl/SegmentedControl.js";
176
+ import { PasswordStrength as Xn } from "./components/PasswordStrength/PasswordStrength.js";
177
+ export { pe as ARMENIA_REGIONS, un as ARMENIA_REGION_NAMES, kt as AccountMenu, At as AccountMenuItem, jt as AccountMenuSeparator, Vn as AccountSheet, tn as AgenciesFilter, Ht as AgencyCard, de as AgencyLogo, Ut as AgencyOfferCard, n as AirplaneSeatIcon, me as ArmeniaMap, fn as ArmeniaRouteMap, r as BackArrowIcon, Gn as BackLink, i as BaggageIcon, a as BedIcon, o as BookmarkIcon, st as Breadcrumb, ct as BreadcrumbItem, s as BriefcaseIcon, Qe as BudgetField, _e as Button, _t as Calendar, nt as CalendarDay, c as CalendarIcon, l as CarIcon, Ke as Checkbox, u as CheckmarkIcon, Oe as ChoiceChip, ke as ChoiceChipGroup, d as CompareIcon, vn as ConfirmationDialog, Ln as CtaRequestFlow, Rn as CtaSentence, ze as CurrencySelect, We as DateField, vt as DatePicker, yt as DatePickerPanel, Un as DatePickerSheet, bt as DateRangePicker, xt as DateRangePickerPanel, Wn as DateRangePickerSheet, cn as DestinationAccordion, ln as Destinations, hn as Dialog, gn as DialogClose, Jn as Divider, f as DownArrowIcon, p as EmailIcon, Sn as EmptyState, m as ErrorCircleIcon, Cn as ErrorState, Mn as ExampleRequests, h as EyeOpenIcon, g as EyeSlashedIcon, Qt as FaqItem, $t as FaqList, ve as FieldMessage, Kn as FilterChips, v as FlagFranceIcon, y as FlagGermanyIcon, _ as FlagIcon, b as FlagItalyIcon, x as FlagNetherlandsIcon, S as FlagRoundIcon, C as FlagRussiaIcon, w as FlagUaeIcon, T as ForkKnifeIcon, ye as FormField, ut as FormProgress, pn as GlobeMap, ot as HeaderItem, Vt as HelpQuestionCard, Tn as HeroColumns, kn as HeroMap, Dn as HeroOrbit, On as HeroOrbitCard, En as HeroSwitcher, An as HowItWorksStepTag, jn as HowItWorksSteps, ce as Icon, Xe as IconButton, ht as IconTile, Ae as InclusionIndicator, E as InfoIcon, pt as InlineAlert, be as Label, D as LanguageIcon, Re as LanguageSelect, O as LockIcon, le as Logo, ue as LogoAnimation, k as MapPinIcon, A as MenuIcon, j as MinusIcon, M as MountainIcon, bn as NewRequestOptionCard, xn as NewRequestOverlay, N as NextArrowIcon, P as NotificationIcon, Ft as NotificationItem, Et as NotificationsButton, Dt as NotificationsDropdown, Ot as NotificationsMenu, Hn as NotificationsPanel, Wt as OfferComparison, Gt as OfferComparisonRow, Pe as Option, Fe as OptionList, F as OtherIcon, Fn as PackageAnimation, qt as PackageCard, Kt as PackageCardElement, lt as Pagination, I as PaperIcon, Jt as PartnerCard, In as PartnerCarousel, L as PassportIcon, Me as PasswordInput, Xn as PasswordStrength, R as PeopleIcon, Be as PhoneInput, sn as PhotoAccordion, nn as PlanCard, z as PlaneIcon, B as PlaneLandingIcon, V as PlaneTakeoffIcon, rn as PlansPicker, H as PlusIcon, en as PopularQuestions, Pt as PortalFooter, St as PortalHeader, Ct as PortalHeaderMenuGroup, wt as PortalHeaderMenuItem, Tt as PortalHeaderShow, U as PreferencesIcon, Ze as QuantityStepper, qe as Radio, Je as RadioGroup, De as Rating, It as RequestCard, rt as RequestSearch, Te as RequestStatus, wn as RequestStatusTimeline, Lt as RequestSummary, Rt as RequestSummaryEditLink, zt as RequestSummaryRow, Bt as RequestSummarySection, yn as RequestTypeOption, W as ResizeFieldIcon, G as ReverseArrowIcon, Yt as ReviewItem, Zt as ReviewsEmptyState, Xt as ReviewsSummary, K as RoadmapIcon, Ge as RouteField, q as SaveTimeIcon, J as SearchIcon, Ve as SearchInput, He as SearchResult, Ue as SearchResultGroup, Yn as SegmentedControl, Le as Select, Bn as SelectSheet, Ie as SelectedItem, Y as SendIcon, zn as Sheet, X as ShieldIcon, dt as ShowMore, Nt as SiteFooter, Mt as SiteHeader, qn as SocialButton, at as SortSelect, Z as StarIcon, it as StatusFilter, we as StatusTag, an as StepCard, ft as StepProgress, on as Steps, Q as StopsIcon, Ce as Tag, gt as TelegramConnect, Se as Text, je as TextInput, Ne as Textarea, $ as TicketIcon, mt as Toast, Ye as Toggle, ee as TrashBinIcon, $e as TravelerSelector, et as TravelerSelectorNote, tt as TravelerSelectorSection, mn as TripTypes, te as UpArrowIcon, ne as UpDownArrowIcon, re as UserIcon, Ee as VerificationBadge, he as WORLD_COUNTRIES, ie as WalletIcon, Nn as WhyTravelMatch, Pn as WhyTravelMatchOffers, ge as WorldMap, ae as XMarkIcon, e as cn, t as createIcon, fe as getAgencyInitials, dn as getArmeniaRegionName, oe as iconNames, se as icons, _n as useDialogPlacement, xe as useFieldIds };
@@ -0,0 +1,2 @@
1
+ "use client";function e(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function t(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function n(n){let i,a,o;n.length===2?(i=n===e||n===t?n:r,a=n,o=n):(i=e,a=(t,r)=>e(n(t),r),o=(e,t)=>n(e)-t);function s(e,t,n=0,r=e.length){if(n<r){if(i(t,t)!==0)return r;do{let i=n+r>>>1;a(e[i],t)<0?n=i+1:r=i}while(n<r)}return n}function c(e,t,n=0,r=e.length){if(n<r){if(i(t,t)!==0)return r;do{let i=n+r>>>1;a(e[i],t)<=0?n=i+1:r=i}while(n<r)}return n}function l(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i}return{left:s,center:l,right:c}}function r(){return 0}function i(e){return e===null?NaN:+e}var a=n(e);a.right,a.left,n(i).center;var o=class{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){let t=this._partials,n=0;for(let r=0;r<this._n&&r<32;r++){let i=t[r],a=e+i,o=Math.abs(e)<Math.abs(i)?e-(a-i):i-(a-e);o&&(t[n++]=o),e=a}return t[n]=e,this._n=n+1,this}valueOf(){let e=this._partials,t=this._n,n,r,i,a=0;if(t>0){for(a=e[--t];t>0&&(n=a,r=e[--t],a=n+r,i=r-(a-n),!i););t>0&&(i<0&&e[t-1]<0||i>0&&e[t-1]>0)&&(r=i*2,n=a+r,r==n-a&&(a=n))}return a}};Array.prototype.slice;function*s(e){for(let t of e)yield*t}function c(e){return Array.from(s(e))}function l(e){return function(t,n=0,r=t.length){let i=r-(n=+n);for(;i;){let r=e()*i--|0,a=t[i+n];t[i+n]=t[r+n],t[r+n]=a}return t}}exports.Adder=o,exports.ascending=e,exports.bisector=n,exports.descending=t,exports.merge=c,exports.shuffler=l;
2
+ //# sourceMappingURL=d3-array.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"d3-array.cjs","names":["ascending","a","b","descending","bisector","compare1","compare2","delta","f","zero","d","x","left","lo","hi","mid","right","center","number","ascendingBisect","Adder","p","i","j","y","n","flatten","array","arrays","merge","shuffler","m","i1","i0","random","t"],"sources":["../../../../node_modules/d3-array/dist/d3-array.mjs"],"sourcesContent":["// https://d3js.org/d3-array/ v3.2.5 Copyright 2010-2026 Mike Bostock\nfunction ascending(a, b) {\n return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n\nfunction descending(a, b) {\n return a == null || b == null ? NaN\n : b < a ? -1\n : b > a ? 1\n : b >= a ? 0\n : NaN;\n}\n\nfunction bisector(f) {\n let compare1, compare2, delta;\n\n // If an accessor is specified, promote it to a comparator. In this case we\n // can test whether the search value is (self-) comparable. We can’t do this\n // for a comparator (except for specific, known comparators) because we can’t\n // tell if the comparator is symmetric, and an asymmetric comparator can’t be\n // used to test whether a single value is comparable.\n if (f.length !== 2) {\n compare1 = ascending;\n compare2 = (d, x) => ascending(f(d), x);\n delta = (d, x) => f(d) - x;\n } else {\n compare1 = f === ascending || f === descending ? f : zero;\n compare2 = f;\n delta = f;\n }\n\n function left(a, x, lo = 0, hi = a.length) {\n if (lo < hi) {\n if (compare1(x, x) !== 0) return hi;\n do {\n const mid = (lo + hi) >>> 1;\n if (compare2(a[mid], x) < 0) lo = mid + 1;\n else hi = mid;\n } while (lo < hi);\n }\n return lo;\n }\n\n function right(a, x, lo = 0, hi = a.length) {\n if (lo < hi) {\n if (compare1(x, x) !== 0) return hi;\n do {\n const mid = (lo + hi) >>> 1;\n if (compare2(a[mid], x) <= 0) lo = mid + 1;\n else hi = mid;\n } while (lo < hi);\n }\n return lo;\n }\n\n function center(a, x, lo = 0, hi = a.length) {\n const i = left(a, x, lo, hi - 1);\n return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;\n }\n\n return {left, center, right};\n}\n\nfunction zero() {\n return 0;\n}\n\nfunction number(x) {\n return x === null ? NaN : +x;\n}\n\nfunction* numbers(values, valueof) {\n if (valueof === undefined) {\n for (let value of values) {\n if (value != null && (value = +value) >= value) {\n yield value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {\n yield value;\n }\n }\n }\n}\n\nconst ascendingBisect = bisector(ascending);\nconst bisectRight = ascendingBisect.right;\nconst bisectLeft = ascendingBisect.left;\nconst bisectCenter = bisector(number).center;\n\nfunction blur(values, r) {\n if (!((r = +r) >= 0)) throw new RangeError(\"invalid r\");\n let length = values.length;\n if (!((length = Math.floor(length)) >= 0)) throw new RangeError(\"invalid length\");\n if (!length || !r) return values;\n const blur = blurf(r);\n const temp = values.slice();\n blur(values, temp, 0, length, 1);\n blur(temp, values, 0, length, 1);\n blur(values, temp, 0, length, 1);\n return values;\n}\n\nconst blur2 = Blur2(blurf);\n\nconst blurImage = Blur2(blurfImage);\n\nfunction Blur2(blur) {\n return function(data, rx, ry = rx) {\n if (!((rx = +rx) >= 0)) throw new RangeError(\"invalid rx\");\n if (!((ry = +ry) >= 0)) throw new RangeError(\"invalid ry\");\n let {data: values, width, height} = data;\n if (!((width = Math.floor(width)) >= 0)) throw new RangeError(\"invalid width\");\n if (!((height = Math.floor(height !== undefined ? height : values.length / width)) >= 0)) throw new RangeError(\"invalid height\");\n if (!width || !height || (!rx && !ry)) return data;\n const blurx = rx && blur(rx);\n const blury = ry && blur(ry);\n const temp = values.slice();\n if (blurx && blury) {\n blurh(blurx, temp, values, width, height);\n blurh(blurx, values, temp, width, height);\n blurh(blurx, temp, values, width, height);\n blurv(blury, values, temp, width, height);\n blurv(blury, temp, values, width, height);\n blurv(blury, values, temp, width, height);\n } else if (blurx) {\n blurh(blurx, values, temp, width, height);\n blurh(blurx, temp, values, width, height);\n blurh(blurx, values, temp, width, height);\n } else if (blury) {\n blurv(blury, values, temp, width, height);\n blurv(blury, temp, values, width, height);\n blurv(blury, values, temp, width, height);\n }\n return data;\n };\n}\n\nfunction blurh(blur, T, S, w, h) {\n for (let y = 0, n = w * h; y < n;) {\n blur(T, S, y, y += w, 1);\n }\n}\n\nfunction blurv(blur, T, S, w, h) {\n for (let x = 0, n = w * h; x < w; ++x) {\n blur(T, S, x, x + n, w);\n }\n}\n\nfunction blurfImage(radius) {\n const blur = blurf(radius);\n return (T, S, start, stop, step) => {\n start <<= 2, stop <<= 2, step <<= 2;\n blur(T, S, start + 0, stop + 0, step);\n blur(T, S, start + 1, stop + 1, step);\n blur(T, S, start + 2, stop + 2, step);\n blur(T, S, start + 3, stop + 3, step);\n };\n}\n\n// Given a target array T, a source array S, sets each value T[i] to the average\n// of {S[i - r], …, S[i], …, S[i + r]}, where r = ⌊radius⌋, start <= i < stop,\n// for each i, i + step, i + 2 * step, etc., and where S[j] is clamped between\n// S[start] (inclusive) and S[stop] (exclusive). If the given radius is not an\n// integer, S[i - r - 1] and S[i + r + 1] are added to the sum, each weighted\n// according to r - ⌊radius⌋.\nfunction blurf(radius) {\n const radius0 = Math.floor(radius);\n if (radius0 === radius) return bluri(radius);\n const t = radius - radius0;\n const w = 2 * radius + 1;\n return (T, S, start, stop, step) => { // stop must be aligned!\n if (!((stop -= step) >= start)) return; // inclusive stop\n let sum = radius0 * S[start];\n const s0 = step * radius0;\n const s1 = s0 + step;\n for (let i = start, j = start + s0; i < j; i += step) {\n sum += S[Math.min(stop, i)];\n }\n for (let i = start, j = stop; i <= j; i += step) {\n sum += S[Math.min(stop, i + s0)];\n T[i] = (sum + t * (S[Math.max(start, i - s1)] + S[Math.min(stop, i + s1)])) / w;\n sum -= S[Math.max(start, i - s0)];\n }\n };\n}\n\n// Like blurf, but optimized for integer radius.\nfunction bluri(radius) {\n const w = 2 * radius + 1;\n return (T, S, start, stop, step) => { // stop must be aligned!\n if (!((stop -= step) >= start)) return; // inclusive stop\n let sum = radius * S[start];\n const s = step * radius;\n for (let i = start, j = start + s; i < j; i += step) {\n sum += S[Math.min(stop, i)];\n }\n for (let i = start, j = stop; i <= j; i += step) {\n sum += S[Math.min(stop, i + s)];\n T[i] = sum / w;\n sum -= S[Math.max(start, i - s)];\n }\n };\n}\n\nfunction count(values, valueof) {\n let count = 0;\n if (valueof === undefined) {\n for (let value of values) {\n if (value != null && (value = +value) >= value) {\n ++count;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {\n ++count;\n }\n }\n }\n return count;\n}\n\nfunction length$1(array) {\n return array.length | 0;\n}\n\nfunction empty(length) {\n return !(length > 0);\n}\n\nfunction arrayify(values) {\n return typeof values !== \"object\" || \"length\" in values ? values : Array.from(values);\n}\n\nfunction reducer(reduce) {\n return values => reduce(...values);\n}\n\nfunction cross(...values) {\n const reduce = typeof values[values.length - 1] === \"function\" && reducer(values.pop());\n values = values.map(arrayify);\n const lengths = values.map(length$1);\n const j = values.length - 1;\n const index = new Array(j + 1).fill(0);\n const product = [];\n if (j < 0 || lengths.some(empty)) return product;\n while (true) {\n product.push(index.map((j, i) => values[i][j]));\n let i = j;\n while (++index[i] === lengths[i]) {\n if (i === 0) return reduce ? product.map(reduce) : product;\n index[i--] = 0;\n }\n }\n}\n\nfunction cumsum(values, valueof) {\n var sum = 0, index = 0;\n return Float64Array.from(values, valueof === undefined\n ? v => (sum += +v || 0)\n : v => (sum += +valueof(v, index++, values) || 0));\n}\n\nfunction variance(values, valueof) {\n let count = 0;\n let delta;\n let mean = 0;\n let sum = 0;\n if (valueof === undefined) {\n for (let value of values) {\n if (value != null && (value = +value) >= value) {\n delta = value - mean;\n mean += delta / ++count;\n sum += delta * (value - mean);\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {\n delta = value - mean;\n mean += delta / ++count;\n sum += delta * (value - mean);\n }\n }\n }\n if (count > 1) return sum / (count - 1);\n}\n\nfunction deviation(values, valueof) {\n const v = variance(values, valueof);\n return v ? Math.sqrt(v) : v;\n}\n\nfunction extent(values, valueof) {\n let min;\n let max;\n if (valueof === undefined) {\n for (const value of values) {\n if (value != null) {\n if (min === undefined) {\n if (value >= value) min = max = value;\n } else {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null) {\n if (min === undefined) {\n if (value >= value) min = max = value;\n } else {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n return [min, max];\n}\n\n// https://github.com/python/cpython/blob/a74eea238f5baba15797e2e8b570d153bc8690a7/Modules/mathmodule.c#L1423\nclass Adder {\n constructor() {\n this._partials = new Float64Array(32);\n this._n = 0;\n }\n add(x) {\n const p = this._partials;\n let i = 0;\n for (let j = 0; j < this._n && j < 32; j++) {\n const y = p[j],\n hi = x + y,\n lo = Math.abs(x) < Math.abs(y) ? x - (hi - y) : y - (hi - x);\n if (lo) p[i++] = lo;\n x = hi;\n }\n p[i] = x;\n this._n = i + 1;\n return this;\n }\n valueOf() {\n const p = this._partials;\n let n = this._n, x, y, lo, hi = 0;\n if (n > 0) {\n hi = p[--n];\n while (n > 0) {\n x = hi;\n y = p[--n];\n hi = x + y;\n lo = y - (hi - x);\n if (lo) break;\n }\n if (n > 0 && ((lo < 0 && p[n - 1] < 0) || (lo > 0 && p[n - 1] > 0))) {\n y = lo * 2;\n x = hi + y;\n if (y == x - hi) hi = x;\n }\n }\n return hi;\n }\n}\n\nfunction fsum(values, valueof) {\n const adder = new Adder();\n if (valueof === undefined) {\n for (let value of values) {\n if (value = +value) {\n adder.add(value);\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if (value = +valueof(value, ++index, values)) {\n adder.add(value);\n }\n }\n }\n return +adder;\n}\n\nfunction fcumsum(values, valueof) {\n const adder = new Adder();\n let index = -1;\n return Float64Array.from(values, valueof === undefined\n ? v => adder.add(+v || 0)\n : v => adder.add(+valueof(v, ++index, values) || 0)\n );\n}\n\nclass InternMap extends Map {\n constructor(entries, key = keyof) {\n super();\n Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});\n if (entries != null) for (const [key, value] of entries) this.set(key, value);\n }\n get(key) {\n return super.get(intern_get(this, key));\n }\n has(key) {\n return super.has(intern_get(this, key));\n }\n set(key, value) {\n return super.set(intern_set(this, key), value);\n }\n delete(key) {\n return super.delete(intern_delete(this, key));\n }\n}\n\nclass InternSet extends Set {\n constructor(values, key = keyof) {\n super();\n Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});\n if (values != null) for (const value of values) this.add(value);\n }\n has(value) {\n return super.has(intern_get(this, value));\n }\n add(value) {\n return super.add(intern_set(this, value));\n }\n delete(value) {\n return super.delete(intern_delete(this, value));\n }\n}\n\nfunction intern_get({_intern, _key}, value) {\n const key = _key(value);\n return _intern.has(key) ? _intern.get(key) : value;\n}\n\nfunction intern_set({_intern, _key}, value) {\n const key = _key(value);\n if (_intern.has(key)) return _intern.get(key);\n _intern.set(key, value);\n return value;\n}\n\nfunction intern_delete({_intern, _key}, value) {\n const key = _key(value);\n if (_intern.has(key)) {\n value = _intern.get(key);\n _intern.delete(key);\n }\n return value;\n}\n\nfunction keyof(value) {\n return value !== null && typeof value === \"object\" ? value.valueOf() : value;\n}\n\nfunction identity(x) {\n return x;\n}\n\nfunction group(values, ...keys) {\n return nest(values, identity, identity, keys);\n}\n\nfunction groups(values, ...keys) {\n return nest(values, Array.from, identity, keys);\n}\n\nfunction flatten$1(groups, keys) {\n for (let i = 1, n = keys.length; i < n; ++i) {\n groups = groups.flatMap(g => g.pop().map(([key, value]) => [...g, key, value]));\n }\n return groups;\n}\n\nfunction flatGroup(values, ...keys) {\n return flatten$1(groups(values, ...keys), keys);\n}\n\nfunction flatRollup(values, reduce, ...keys) {\n return flatten$1(rollups(values, reduce, ...keys), keys);\n}\n\nfunction rollup(values, reduce, ...keys) {\n return nest(values, identity, reduce, keys);\n}\n\nfunction rollups(values, reduce, ...keys) {\n return nest(values, Array.from, reduce, keys);\n}\n\nfunction index(values, ...keys) {\n return nest(values, identity, unique, keys);\n}\n\nfunction indexes(values, ...keys) {\n return nest(values, Array.from, unique, keys);\n}\n\nfunction unique(values) {\n if (values.length !== 1) throw new Error(\"duplicate key\");\n return values[0];\n}\n\nfunction nest(values, map, reduce, keys) {\n return (function regroup(values, i) {\n if (i >= keys.length) return reduce(values);\n const groups = new InternMap();\n const keyof = keys[i++];\n let index = -1;\n for (const value of values) {\n const key = keyof(value, ++index, values);\n const group = groups.get(key);\n if (group) group.push(value);\n else groups.set(key, [value]);\n }\n for (const [key, values] of groups) {\n groups.set(key, regroup(values, i));\n }\n return map(groups);\n })(values, 0);\n}\n\nfunction permute(source, keys) {\n return Array.from(keys, key => source[key]);\n}\n\nfunction sort(values, ...F) {\n if (typeof values[Symbol.iterator] !== \"function\") throw new TypeError(\"values is not iterable\");\n values = Array.from(values);\n let [f] = F;\n if ((f && f.length !== 2) || F.length > 1) {\n const index = Uint32Array.from(values, (d, i) => i);\n if (F.length > 1) {\n F = F.map(f => values.map(f));\n index.sort((i, j) => {\n for (const f of F) {\n const c = ascendingDefined(f[i], f[j]);\n if (c) return c;\n }\n });\n } else {\n f = values.map(f);\n index.sort((i, j) => ascendingDefined(f[i], f[j]));\n }\n return permute(values, index);\n }\n return values.sort(compareDefined(f));\n}\n\nfunction compareDefined(compare = ascending) {\n if (compare === ascending) return ascendingDefined;\n if (typeof compare !== \"function\") throw new TypeError(\"compare is not a function\");\n return (a, b) => {\n const x = compare(a, b);\n if (x || x === 0) return x;\n return (compare(b, b) === 0) - (compare(a, a) === 0);\n };\n}\n\nfunction ascendingDefined(a, b) {\n return (a == null || !(a >= a)) - (b == null || !(b >= b)) || (a < b ? -1 : a > b ? 1 : 0);\n}\n\nfunction groupSort(values, reduce, key) {\n return (reduce.length !== 2\n ? sort(rollup(values, reduce, key), (([ak, av], [bk, bv]) => ascending(av, bv) || ascending(ak, bk)))\n : sort(group(values, key), (([ak, av], [bk, bv]) => reduce(av, bv) || ascending(ak, bk))))\n .map(([key]) => key);\n}\n\nvar array = Array.prototype;\n\nvar slice = array.slice;\n\nfunction constant(x) {\n return () => x;\n}\n\nconst e10 = Math.sqrt(50),\n e5 = Math.sqrt(10),\n e2 = Math.sqrt(2);\n\nfunction tickSpec(start, stop, count) {\n const step = (stop - start) / Math.max(0, count),\n power = Math.floor(Math.log10(step)),\n error = step / Math.pow(10, power),\n factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1;\n let i1, i2, inc;\n if (power < 0) {\n inc = Math.pow(10, -power) / factor;\n i1 = Math.round(start * inc);\n i2 = Math.round(stop * inc);\n if (i1 / inc < start) ++i1;\n if (i2 / inc > stop) --i2;\n inc = -inc;\n } else {\n inc = Math.pow(10, power) * factor;\n i1 = Math.round(start / inc);\n i2 = Math.round(stop / inc);\n if (i1 * inc < start) ++i1;\n if (i2 * inc > stop) --i2;\n }\n if (i2 < i1 && 0.5 <= count && count < 2) return tickSpec(start, stop, count * 2);\n return [i1, i2, inc];\n}\n\nfunction ticks(start, stop, count) {\n stop = +stop, start = +start, count = +count;\n if (!(count > 0)) return [];\n if (start === stop) return [start];\n const reverse = stop < start, [i1, i2, inc] = reverse ? tickSpec(stop, start, count) : tickSpec(start, stop, count);\n if (!(i2 >= i1)) return [];\n const n = i2 - i1 + 1, ticks = new Array(n);\n if (reverse) {\n if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) / -inc;\n else for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) * inc;\n } else {\n if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) / -inc;\n else for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) * inc;\n }\n return ticks;\n}\n\nfunction tickIncrement(start, stop, count) {\n stop = +stop, start = +start, count = +count;\n return tickSpec(start, stop, count)[2];\n}\n\nfunction tickStep(start, stop, count) {\n stop = +stop, start = +start, count = +count;\n const reverse = stop < start, inc = reverse ? tickIncrement(stop, start, count) : tickIncrement(start, stop, count);\n return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);\n}\n\nfunction nice(start, stop, count) {\n let prestep;\n while (true) {\n const step = tickIncrement(start, stop, count);\n if (step === prestep || step === 0 || !isFinite(step)) {\n return [start, stop];\n } else if (step > 0) {\n const i = Math.ceil(start / step);\n const j = Math.floor(stop / step);\n start = (i - (i * step > start)) * step;\n stop = (j + (j * step < stop)) * step;\n } else if (step < 0) {\n const s = -step;\n const i = Math.ceil(start * s);\n const j = Math.floor(stop * s);\n start = (i - (i / s > start)) / s;\n stop = (j + (j / s < stop)) / s;\n }\n prestep = step;\n }\n}\n\nfunction thresholdSturges(values) {\n return Math.max(1, Math.ceil(Math.log(count(values)) / Math.LN2) + 1);\n}\n\nfunction bin() {\n var value = identity,\n domain = extent,\n threshold = thresholdSturges;\n\n function histogram(data) {\n if (!Array.isArray(data)) data = Array.from(data);\n\n var i,\n n = data.length,\n x,\n step,\n values = new Array(n);\n\n for (i = 0; i < n; ++i) {\n values[i] = value(data[i], i, data);\n }\n\n var xz = domain(values),\n x0 = xz[0],\n x1 = xz[1],\n tz = threshold(values, x0, x1);\n\n // Convert number of thresholds into uniform thresholds, and nice the\n // default domain accordingly.\n if (!Array.isArray(tz)) {\n const max = x1, tn = +tz;\n if (domain === extent) [x0, x1] = nice(x0, x1, tn);\n tz = ticks(x0, x1, tn);\n\n // If the domain is aligned with the first tick (which it will by\n // default), then we can use quantization rather than bisection to bin\n // values, which is substantially faster.\n if (tz[0] <= x0) step = tickIncrement(x0, x1, tn);\n\n // If the last threshold is coincident with the domain’s upper bound, the\n // last bin will be zero-width. If the default domain is used, and this\n // last threshold is coincident with the maximum input value, we can\n // extend the niced upper bound by one tick to ensure uniform bin widths;\n // otherwise, we simply remove the last threshold. Note that we don’t\n // coerce values or the domain to numbers, and thus must be careful to\n // compare order (>=) rather than strict equality (===)!\n if (tz[tz.length - 1] >= x1) {\n if (max >= x1 && domain === extent) {\n const step = tickIncrement(x0, x1, tn);\n if (isFinite(step)) {\n if (step > 0) {\n x1 = (Math.floor(x1 / step) + 1) * step;\n } else if (step < 0) {\n x1 = (Math.ceil(x1 * -step) + 1) / -step;\n }\n }\n } else {\n tz.pop();\n }\n }\n }\n\n // Remove any thresholds outside the domain.\n // Be careful not to mutate an array owned by the user!\n var m = tz.length, a = 0, b = m;\n while (tz[a] <= x0) ++a;\n while (tz[b - 1] > x1) --b;\n if (a || b < m) tz = tz.slice(a, b), m = b - a;\n\n var bins = new Array(m + 1),\n bin;\n\n // Initialize bins.\n for (i = 0; i <= m; ++i) {\n bin = bins[i] = [];\n bin.x0 = i > 0 ? tz[i - 1] : x0;\n bin.x1 = i < m ? tz[i] : x1;\n }\n\n // Assign data to bins by value, ignoring any outside the domain.\n if (isFinite(step)) {\n if (step > 0) {\n for (i = 0; i < n; ++i) {\n if ((x = values[i]) != null && x0 <= x && x <= x1) {\n bins[Math.min(m, Math.floor((x - x0) / step))].push(data[i]);\n }\n }\n } else if (step < 0) {\n for (i = 0; i < n; ++i) {\n if ((x = values[i]) != null && x0 <= x && x <= x1) {\n const j = Math.floor((x0 - x) * step);\n bins[Math.min(m, j + (tz[j] <= x))].push(data[i]); // handle off-by-one due to rounding\n }\n }\n }\n } else {\n for (i = 0; i < n; ++i) {\n if ((x = values[i]) != null && x0 <= x && x <= x1) {\n bins[bisectRight(tz, x, 0, m)].push(data[i]);\n }\n }\n }\n\n return bins;\n }\n\n histogram.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(_), histogram) : value;\n };\n\n histogram.domain = function(_) {\n return arguments.length ? (domain = typeof _ === \"function\" ? _ : constant([_[0], _[1]]), histogram) : domain;\n };\n\n histogram.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : constant(Array.isArray(_) ? slice.call(_) : _), histogram) : threshold;\n };\n\n return histogram;\n}\n\nfunction max(values, valueof) {\n let max;\n if (valueof === undefined) {\n for (const value of values) {\n if (value != null\n && (max < value || (max === undefined && value >= value))) {\n max = value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null\n && (max < value || (max === undefined && value >= value))) {\n max = value;\n }\n }\n }\n return max;\n}\n\nfunction maxIndex(values, valueof) {\n let max;\n let maxIndex = -1;\n let index = -1;\n if (valueof === undefined) {\n for (const value of values) {\n ++index;\n if (value != null\n && (max < value || (max === undefined && value >= value))) {\n max = value, maxIndex = index;\n }\n }\n } else {\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null\n && (max < value || (max === undefined && value >= value))) {\n max = value, maxIndex = index;\n }\n }\n }\n return maxIndex;\n}\n\nfunction min(values, valueof) {\n let min;\n if (valueof === undefined) {\n for (const value of values) {\n if (value != null\n && (min > value || (min === undefined && value >= value))) {\n min = value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null\n && (min > value || (min === undefined && value >= value))) {\n min = value;\n }\n }\n }\n return min;\n}\n\nfunction minIndex(values, valueof) {\n let min;\n let minIndex = -1;\n let index = -1;\n if (valueof === undefined) {\n for (const value of values) {\n ++index;\n if (value != null\n && (min > value || (min === undefined && value >= value))) {\n min = value, minIndex = index;\n }\n }\n } else {\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null\n && (min > value || (min === undefined && value >= value))) {\n min = value, minIndex = index;\n }\n }\n }\n return minIndex;\n}\n\n// Based on https://github.com/mourner/quickselect\n// ISC license, Copyright 2018 Vladimir Agafonkin.\nfunction quickselect(array, k, left = 0, right = Infinity, compare) {\n k = Math.floor(k);\n left = Math.floor(Math.max(0, left));\n right = Math.floor(Math.min(array.length - 1, right));\n\n if (!(left <= k && k <= right)) return array;\n\n compare = compare === undefined ? ascendingDefined : compareDefined(compare);\n\n while (right > left) {\n if (right - left > 600) {\n const n = right - left + 1;\n const m = k - left + 1;\n const z = Math.log(n);\n const s = 0.5 * Math.exp(2 * z / 3);\n const sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1);\n const newLeft = Math.max(left, Math.floor(k - m * s / n + sd));\n const newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd));\n quickselect(array, k, newLeft, newRight, compare);\n }\n\n const t = array[k];\n let i = left;\n let j = right;\n\n swap(array, left, k);\n if (compare(array[right], t) > 0) swap(array, left, right);\n\n while (i < j) {\n swap(array, i, j), ++i, --j;\n while (compare(array[i], t) < 0) ++i;\n while (compare(array[j], t) > 0) --j;\n }\n\n if (compare(array[left], t) === 0) swap(array, left, j);\n else ++j, swap(array, j, right);\n\n if (j <= k) left = j + 1;\n if (k <= j) right = j - 1;\n }\n\n return array;\n}\n\nfunction swap(array, i, j) {\n const t = array[i];\n array[i] = array[j];\n array[j] = t;\n}\n\nfunction greatest(values, compare = ascending) {\n let max;\n let defined = false;\n if (compare.length === 1) {\n let maxValue;\n for (const element of values) {\n const value = compare(element);\n if (defined\n ? ascending(value, maxValue) > 0\n : ascending(value, value) === 0) {\n max = element;\n maxValue = value;\n defined = true;\n }\n }\n } else {\n for (const value of values) {\n if (defined\n ? compare(value, max) > 0\n : compare(value, value) === 0) {\n max = value;\n defined = true;\n }\n }\n }\n return max;\n}\n\nfunction quantile(values, p, valueof) {\n values = Float64Array.from(numbers(values, valueof));\n if (!(n = values.length) || isNaN(p = +p)) return;\n if (p <= 0 || n < 2) return min(values);\n if (p >= 1) return max(values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = max(quickselect(values, i0).subarray(0, i0 + 1)),\n value1 = min(values.subarray(i0 + 1));\n return value0 + (value1 - value0) * (i - i0);\n}\n\nfunction quantileSorted(values, p, valueof = number) {\n if (!(n = values.length) || isNaN(p = +p)) return;\n if (p <= 0 || n < 2) return +valueof(values[0], 0, values);\n if (p >= 1) return +valueof(values[n - 1], n - 1, values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = +valueof(values[i0], i0, values),\n value1 = +valueof(values[i0 + 1], i0 + 1, values);\n return value0 + (value1 - value0) * (i - i0);\n}\n\nfunction quantileIndex(values, p, valueof = number) {\n if (isNaN(p = +p)) return;\n numbers = Float64Array.from(values, (_, i) => number(valueof(values[i], i, values)));\n if (p <= 0) return minIndex(numbers);\n if (p >= 1) return maxIndex(numbers);\n var numbers,\n index = Uint32Array.from(values, (_, i) => i),\n j = numbers.length - 1,\n i = Math.floor(j * p);\n quickselect(index, i, 0, j, (i, j) => ascendingDefined(numbers[i], numbers[j]));\n i = greatest(index.subarray(0, i + 1), (i) => numbers[i]);\n return i >= 0 ? i : -1;\n}\n\nfunction thresholdFreedmanDiaconis(values, min, max) {\n const c = count(values), d = quantile(values, 0.75) - quantile(values, 0.25);\n return c && d ? Math.ceil((max - min) / (2 * d * Math.pow(c, -1 / 3))) : 1;\n}\n\nfunction thresholdScott(values, min, max) {\n const c = count(values), d = deviation(values);\n return c && d ? Math.ceil((max - min) * Math.cbrt(c) / (3.49 * d)) : 1;\n}\n\nfunction mean(values, valueof) {\n let count = 0;\n let sum = 0;\n if (valueof === undefined) {\n for (let value of values) {\n if (value != null && (value = +value) >= value) {\n ++count, sum += value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {\n ++count, sum += value;\n }\n }\n }\n if (count) return sum / count;\n}\n\nfunction median(values, valueof) {\n return quantile(values, 0.5, valueof);\n}\n\nfunction medianIndex(values, valueof) {\n return quantileIndex(values, 0.5, valueof);\n}\n\nfunction* flatten(arrays) {\n for (const array of arrays) {\n yield* array;\n }\n}\n\nfunction merge(arrays) {\n return Array.from(flatten(arrays));\n}\n\nfunction mode(values, valueof) {\n const counts = new InternMap();\n if (valueof === undefined) {\n for (let value of values) {\n if (value != null && value >= value) {\n counts.set(value, (counts.get(value) || 0) + 1);\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null && value >= value) {\n counts.set(value, (counts.get(value) || 0) + 1);\n }\n }\n }\n let modeValue;\n let modeCount = 0;\n for (const [value, count] of counts) {\n if (count > modeCount) {\n modeCount = count;\n modeValue = value;\n }\n }\n return modeValue;\n}\n\nfunction pairs(values, pairof = pair) {\n const pairs = [];\n let previous;\n let first = false;\n for (const value of values) {\n if (first) pairs.push(pairof(previous, value));\n previous = value;\n first = true;\n }\n return pairs;\n}\n\nfunction pair(a, b) {\n return [a, b];\n}\n\nfunction range(start, stop, step) {\n start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;\n\n var i = -1,\n n = Math.max(0, Math.ceil((stop - start) / step)) | 0,\n range = new Array(n);\n\n while (++i < n) {\n range[i] = start + i * step;\n }\n\n return range;\n}\n\nfunction rank(values, valueof = ascending) {\n if (typeof values[Symbol.iterator] !== \"function\") throw new TypeError(\"values is not iterable\");\n let V = Array.from(values);\n const R = new Float64Array(V.length);\n if (valueof.length !== 2) V = V.map(valueof), valueof = ascending;\n const compareIndex = (i, j) => valueof(V[i], V[j]);\n let k, r;\n values = Uint32Array.from(V, (_, i) => i);\n // Risky chaining due to Safari 14 https://github.com/d3/d3-array/issues/123\n values.sort(valueof === ascending ? (i, j) => ascendingDefined(V[i], V[j]) : compareDefined(compareIndex));\n values.forEach((j, i) => {\n const c = compareIndex(j, k === undefined ? j : k);\n if (c >= 0) {\n if (k === undefined || c > 0) k = j, r = i;\n R[j] = r;\n } else {\n R[j] = NaN;\n }\n });\n return R;\n}\n\nfunction least(values, compare = ascending) {\n let min;\n let defined = false;\n if (compare.length === 1) {\n let minValue;\n for (const element of values) {\n const value = compare(element);\n if (defined\n ? ascending(value, minValue) < 0\n : ascending(value, value) === 0) {\n min = element;\n minValue = value;\n defined = true;\n }\n }\n } else {\n for (const value of values) {\n if (defined\n ? compare(value, min) < 0\n : compare(value, value) === 0) {\n min = value;\n defined = true;\n }\n }\n }\n return min;\n}\n\nfunction leastIndex(values, compare = ascending) {\n if (compare.length === 1) return minIndex(values, compare);\n let minValue;\n let min = -1;\n let index = -1;\n for (const value of values) {\n ++index;\n if (min < 0\n ? compare(value, value) === 0\n : compare(value, minValue) < 0) {\n minValue = value;\n min = index;\n }\n }\n return min;\n}\n\nfunction greatestIndex(values, compare = ascending) {\n if (compare.length === 1) return maxIndex(values, compare);\n let maxValue;\n let max = -1;\n let index = -1;\n for (const value of values) {\n ++index;\n if (max < 0\n ? compare(value, value) === 0\n : compare(value, maxValue) > 0) {\n maxValue = value;\n max = index;\n }\n }\n return max;\n}\n\nfunction scan(values, compare) {\n const index = leastIndex(values, compare);\n return index < 0 ? undefined : index;\n}\n\nvar shuffle = shuffler(Math.random);\n\nfunction shuffler(random) {\n return function shuffle(array, i0 = 0, i1 = array.length) {\n let m = i1 - (i0 = +i0);\n while (m) {\n const i = random() * m-- | 0, t = array[m + i0];\n array[m + i0] = array[i + i0];\n array[i + i0] = t;\n }\n return array;\n };\n}\n\nfunction sum(values, valueof) {\n let sum = 0;\n if (valueof === undefined) {\n for (let value of values) {\n if (value = +value) {\n sum += value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if (value = +valueof(value, ++index, values)) {\n sum += value;\n }\n }\n }\n return sum;\n}\n\nfunction transpose(matrix) {\n if (!(n = matrix.length)) return [];\n for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) {\n for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {\n row[j] = matrix[j][i];\n }\n }\n return transpose;\n}\n\nfunction length(d) {\n return d.length;\n}\n\nfunction zip() {\n return transpose(arguments);\n}\n\nfunction every(values, test) {\n if (typeof test !== \"function\") throw new TypeError(\"test is not a function\");\n let index = -1;\n for (const value of values) {\n if (!test(value, ++index, values)) {\n return false;\n }\n }\n return true;\n}\n\nfunction some(values, test) {\n if (typeof test !== \"function\") throw new TypeError(\"test is not a function\");\n let index = -1;\n for (const value of values) {\n if (test(value, ++index, values)) {\n return true;\n }\n }\n return false;\n}\n\nfunction filter(values, test) {\n if (typeof test !== \"function\") throw new TypeError(\"test is not a function\");\n const array = [];\n let index = -1;\n for (const value of values) {\n if (test(value, ++index, values)) {\n array.push(value);\n }\n }\n return array;\n}\n\nfunction map(values, mapper) {\n if (typeof values[Symbol.iterator] !== \"function\") throw new TypeError(\"values is not iterable\");\n if (typeof mapper !== \"function\") throw new TypeError(\"mapper is not a function\");\n return Array.from(values, (value, index) => mapper(value, index, values));\n}\n\nfunction reduce(values, reducer, value) {\n if (typeof reducer !== \"function\") throw new TypeError(\"reducer is not a function\");\n const iterator = values[Symbol.iterator]();\n let done, next, index = -1;\n if (arguments.length < 3) {\n ({done, value} = iterator.next());\n if (done) return;\n ++index;\n }\n while (({done, value: next} = iterator.next()), !done) {\n value = reducer(value, next, ++index, values);\n }\n return value;\n}\n\nfunction reverse(values) {\n if (typeof values[Symbol.iterator] !== \"function\") throw new TypeError(\"values is not iterable\");\n return Array.from(values).reverse();\n}\n\nfunction difference(values, ...others) {\n values = new InternSet(values);\n for (const other of others) {\n for (const value of other) {\n values.delete(value);\n }\n }\n return values;\n}\n\nfunction disjoint(values, other) {\n const iterator = other[Symbol.iterator](), set = new InternSet();\n for (const v of values) {\n if (set.has(v)) return false;\n let value, done;\n while (({value, done} = iterator.next())) {\n if (done) break;\n if (Object.is(v, value)) return false;\n set.add(value);\n }\n }\n return true;\n}\n\nfunction intersection(values, ...others) {\n values = new InternSet(values);\n others = others.map(set);\n out: for (const value of values) {\n for (const other of others) {\n if (!other.has(value)) {\n values.delete(value);\n continue out;\n }\n }\n }\n return values;\n}\n\nfunction set(values) {\n return values instanceof InternSet ? values : new InternSet(values);\n}\n\nfunction superset(values, other) {\n const iterator = values[Symbol.iterator](), set = new Set();\n for (const o of other) {\n const io = intern(o);\n if (set.has(io)) continue;\n let value, done;\n while (({value, done} = iterator.next())) {\n if (done) return false;\n const ivalue = intern(value);\n set.add(ivalue);\n if (Object.is(io, ivalue)) break;\n }\n }\n return true;\n}\n\nfunction intern(value) {\n return value !== null && typeof value === \"object\" ? value.valueOf() : value;\n}\n\nfunction subset(values, other) {\n return superset(other, values);\n}\n\nfunction union(...others) {\n const set = new InternSet();\n for (const other of others) {\n for (const o of other) {\n set.add(o);\n }\n }\n return set;\n}\n\nexport { Adder, InternMap, InternSet, ascending, bin, bisectRight as bisect, bisectCenter, bisectLeft, bisectRight, bisector, blur, blur2, blurImage, count, cross, cumsum, descending, deviation, difference, disjoint, every, extent, fcumsum, filter, flatGroup, flatRollup, fsum, greatest, greatestIndex, group, groupSort, groups, bin as histogram, index, indexes, intersection, least, leastIndex, map, max, maxIndex, mean, median, medianIndex, merge, min, minIndex, mode, nice, pairs, permute, quantile, quantileIndex, quantileSorted, quickselect, range, rank, reduce, reverse, rollup, rollups, scan, shuffle, shuffler, some, sort, subset, sum, superset, thresholdFreedmanDiaconis, thresholdScott, thresholdSturges, tickIncrement, tickStep, ticks, transpose, union, variance, zip };\n"],"ignoreList":[0],"mappings":"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"}
@@ -0,0 +1,90 @@
1
+ "use client";
2
+ // node_modules/d3-array/dist/d3-array.mjs
3
+ function e(e, t) {
4
+ return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
5
+ }
6
+ function t(e, t) {
7
+ return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
8
+ }
9
+ function n(n) {
10
+ let i, a, o;
11
+ n.length === 2 ? (i = n === e || n === t ? n : r, a = n, o = n) : (i = e, a = (t, r) => e(n(t), r), o = (e, t) => n(e) - t);
12
+ function s(e, t, n = 0, r = e.length) {
13
+ if (n < r) {
14
+ if (i(t, t) !== 0) return r;
15
+ do {
16
+ let i = n + r >>> 1;
17
+ a(e[i], t) < 0 ? n = i + 1 : r = i;
18
+ } while (n < r);
19
+ }
20
+ return n;
21
+ }
22
+ function c(e, t, n = 0, r = e.length) {
23
+ if (n < r) {
24
+ if (i(t, t) !== 0) return r;
25
+ do {
26
+ let i = n + r >>> 1;
27
+ a(e[i], t) <= 0 ? n = i + 1 : r = i;
28
+ } while (n < r);
29
+ }
30
+ return n;
31
+ }
32
+ function l(e, t, n = 0, r = e.length) {
33
+ let i = s(e, t, n, r - 1);
34
+ return i > n && o(e[i - 1], t) > -o(e[i], t) ? i - 1 : i;
35
+ }
36
+ return {
37
+ left: s,
38
+ center: l,
39
+ right: c
40
+ };
41
+ }
42
+ function r() {
43
+ return 0;
44
+ }
45
+ function i(e) {
46
+ return e === null ? NaN : +e;
47
+ }
48
+ var a = n(e);
49
+ a.right, a.left, n(i).center;
50
+ var o = class {
51
+ constructor() {
52
+ this._partials = /* @__PURE__ */ new Float64Array(32), this._n = 0;
53
+ }
54
+ add(e) {
55
+ let t = this._partials, n = 0;
56
+ for (let r = 0; r < this._n && r < 32; r++) {
57
+ let i = t[r], a = e + i, o = Math.abs(e) < Math.abs(i) ? e - (a - i) : i - (a - e);
58
+ o && (t[n++] = o), e = a;
59
+ }
60
+ return t[n] = e, this._n = n + 1, this;
61
+ }
62
+ valueOf() {
63
+ let e = this._partials, t = this._n, n, r, i, a = 0;
64
+ if (t > 0) {
65
+ for (a = e[--t]; t > 0 && (n = a, r = e[--t], a = n + r, i = r - (a - n), !i););
66
+ t > 0 && (i < 0 && e[t - 1] < 0 || i > 0 && e[t - 1] > 0) && (r = i * 2, n = a + r, r == n - a && (a = n));
67
+ }
68
+ return a;
69
+ }
70
+ };
71
+ Array.prototype.slice;
72
+ function* s(e) {
73
+ for (let t of e) yield* t;
74
+ }
75
+ function c(e) {
76
+ return Array.from(s(e));
77
+ }
78
+ function l(e) {
79
+ return function(t, n = 0, r = t.length) {
80
+ let i = r - (n = +n);
81
+ for (; i;) {
82
+ let r = e() * i-- | 0, a = t[i + n];
83
+ t[i + n] = t[r + n], t[r + n] = a;
84
+ }
85
+ return t;
86
+ };
87
+ }
88
+ export { o as Adder, e as ascending, n as bisector, t as descending, c as merge, l as shuffler };
89
+
90
+ //# sourceMappingURL=d3-array.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"d3-array.js","names":["ascending","a","b","descending","bisector","compare1","compare2","delta","f","zero","d","x","left","lo","hi","mid","right","center","number","ascendingBisect","Adder","p","i","j","y","n","flatten","array","arrays","merge","shuffler","m","i1","i0","random","t"],"sources":["../../../../node_modules/d3-array/dist/d3-array.mjs"],"sourcesContent":["// https://d3js.org/d3-array/ v3.2.5 Copyright 2010-2026 Mike Bostock\nfunction ascending(a, b) {\n return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n\nfunction descending(a, b) {\n return a == null || b == null ? NaN\n : b < a ? -1\n : b > a ? 1\n : b >= a ? 0\n : NaN;\n}\n\nfunction bisector(f) {\n let compare1, compare2, delta;\n\n // If an accessor is specified, promote it to a comparator. In this case we\n // can test whether the search value is (self-) comparable. We can’t do this\n // for a comparator (except for specific, known comparators) because we can’t\n // tell if the comparator is symmetric, and an asymmetric comparator can’t be\n // used to test whether a single value is comparable.\n if (f.length !== 2) {\n compare1 = ascending;\n compare2 = (d, x) => ascending(f(d), x);\n delta = (d, x) => f(d) - x;\n } else {\n compare1 = f === ascending || f === descending ? f : zero;\n compare2 = f;\n delta = f;\n }\n\n function left(a, x, lo = 0, hi = a.length) {\n if (lo < hi) {\n if (compare1(x, x) !== 0) return hi;\n do {\n const mid = (lo + hi) >>> 1;\n if (compare2(a[mid], x) < 0) lo = mid + 1;\n else hi = mid;\n } while (lo < hi);\n }\n return lo;\n }\n\n function right(a, x, lo = 0, hi = a.length) {\n if (lo < hi) {\n if (compare1(x, x) !== 0) return hi;\n do {\n const mid = (lo + hi) >>> 1;\n if (compare2(a[mid], x) <= 0) lo = mid + 1;\n else hi = mid;\n } while (lo < hi);\n }\n return lo;\n }\n\n function center(a, x, lo = 0, hi = a.length) {\n const i = left(a, x, lo, hi - 1);\n return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;\n }\n\n return {left, center, right};\n}\n\nfunction zero() {\n return 0;\n}\n\nfunction number(x) {\n return x === null ? NaN : +x;\n}\n\nfunction* numbers(values, valueof) {\n if (valueof === undefined) {\n for (let value of values) {\n if (value != null && (value = +value) >= value) {\n yield value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {\n yield value;\n }\n }\n }\n}\n\nconst ascendingBisect = bisector(ascending);\nconst bisectRight = ascendingBisect.right;\nconst bisectLeft = ascendingBisect.left;\nconst bisectCenter = bisector(number).center;\n\nfunction blur(values, r) {\n if (!((r = +r) >= 0)) throw new RangeError(\"invalid r\");\n let length = values.length;\n if (!((length = Math.floor(length)) >= 0)) throw new RangeError(\"invalid length\");\n if (!length || !r) return values;\n const blur = blurf(r);\n const temp = values.slice();\n blur(values, temp, 0, length, 1);\n blur(temp, values, 0, length, 1);\n blur(values, temp, 0, length, 1);\n return values;\n}\n\nconst blur2 = Blur2(blurf);\n\nconst blurImage = Blur2(blurfImage);\n\nfunction Blur2(blur) {\n return function(data, rx, ry = rx) {\n if (!((rx = +rx) >= 0)) throw new RangeError(\"invalid rx\");\n if (!((ry = +ry) >= 0)) throw new RangeError(\"invalid ry\");\n let {data: values, width, height} = data;\n if (!((width = Math.floor(width)) >= 0)) throw new RangeError(\"invalid width\");\n if (!((height = Math.floor(height !== undefined ? height : values.length / width)) >= 0)) throw new RangeError(\"invalid height\");\n if (!width || !height || (!rx && !ry)) return data;\n const blurx = rx && blur(rx);\n const blury = ry && blur(ry);\n const temp = values.slice();\n if (blurx && blury) {\n blurh(blurx, temp, values, width, height);\n blurh(blurx, values, temp, width, height);\n blurh(blurx, temp, values, width, height);\n blurv(blury, values, temp, width, height);\n blurv(blury, temp, values, width, height);\n blurv(blury, values, temp, width, height);\n } else if (blurx) {\n blurh(blurx, values, temp, width, height);\n blurh(blurx, temp, values, width, height);\n blurh(blurx, values, temp, width, height);\n } else if (blury) {\n blurv(blury, values, temp, width, height);\n blurv(blury, temp, values, width, height);\n blurv(blury, values, temp, width, height);\n }\n return data;\n };\n}\n\nfunction blurh(blur, T, S, w, h) {\n for (let y = 0, n = w * h; y < n;) {\n blur(T, S, y, y += w, 1);\n }\n}\n\nfunction blurv(blur, T, S, w, h) {\n for (let x = 0, n = w * h; x < w; ++x) {\n blur(T, S, x, x + n, w);\n }\n}\n\nfunction blurfImage(radius) {\n const blur = blurf(radius);\n return (T, S, start, stop, step) => {\n start <<= 2, stop <<= 2, step <<= 2;\n blur(T, S, start + 0, stop + 0, step);\n blur(T, S, start + 1, stop + 1, step);\n blur(T, S, start + 2, stop + 2, step);\n blur(T, S, start + 3, stop + 3, step);\n };\n}\n\n// Given a target array T, a source array S, sets each value T[i] to the average\n// of {S[i - r], …, S[i], …, S[i + r]}, where r = ⌊radius⌋, start <= i < stop,\n// for each i, i + step, i + 2 * step, etc., and where S[j] is clamped between\n// S[start] (inclusive) and S[stop] (exclusive). If the given radius is not an\n// integer, S[i - r - 1] and S[i + r + 1] are added to the sum, each weighted\n// according to r - ⌊radius⌋.\nfunction blurf(radius) {\n const radius0 = Math.floor(radius);\n if (radius0 === radius) return bluri(radius);\n const t = radius - radius0;\n const w = 2 * radius + 1;\n return (T, S, start, stop, step) => { // stop must be aligned!\n if (!((stop -= step) >= start)) return; // inclusive stop\n let sum = radius0 * S[start];\n const s0 = step * radius0;\n const s1 = s0 + step;\n for (let i = start, j = start + s0; i < j; i += step) {\n sum += S[Math.min(stop, i)];\n }\n for (let i = start, j = stop; i <= j; i += step) {\n sum += S[Math.min(stop, i + s0)];\n T[i] = (sum + t * (S[Math.max(start, i - s1)] + S[Math.min(stop, i + s1)])) / w;\n sum -= S[Math.max(start, i - s0)];\n }\n };\n}\n\n// Like blurf, but optimized for integer radius.\nfunction bluri(radius) {\n const w = 2 * radius + 1;\n return (T, S, start, stop, step) => { // stop must be aligned!\n if (!((stop -= step) >= start)) return; // inclusive stop\n let sum = radius * S[start];\n const s = step * radius;\n for (let i = start, j = start + s; i < j; i += step) {\n sum += S[Math.min(stop, i)];\n }\n for (let i = start, j = stop; i <= j; i += step) {\n sum += S[Math.min(stop, i + s)];\n T[i] = sum / w;\n sum -= S[Math.max(start, i - s)];\n }\n };\n}\n\nfunction count(values, valueof) {\n let count = 0;\n if (valueof === undefined) {\n for (let value of values) {\n if (value != null && (value = +value) >= value) {\n ++count;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {\n ++count;\n }\n }\n }\n return count;\n}\n\nfunction length$1(array) {\n return array.length | 0;\n}\n\nfunction empty(length) {\n return !(length > 0);\n}\n\nfunction arrayify(values) {\n return typeof values !== \"object\" || \"length\" in values ? values : Array.from(values);\n}\n\nfunction reducer(reduce) {\n return values => reduce(...values);\n}\n\nfunction cross(...values) {\n const reduce = typeof values[values.length - 1] === \"function\" && reducer(values.pop());\n values = values.map(arrayify);\n const lengths = values.map(length$1);\n const j = values.length - 1;\n const index = new Array(j + 1).fill(0);\n const product = [];\n if (j < 0 || lengths.some(empty)) return product;\n while (true) {\n product.push(index.map((j, i) => values[i][j]));\n let i = j;\n while (++index[i] === lengths[i]) {\n if (i === 0) return reduce ? product.map(reduce) : product;\n index[i--] = 0;\n }\n }\n}\n\nfunction cumsum(values, valueof) {\n var sum = 0, index = 0;\n return Float64Array.from(values, valueof === undefined\n ? v => (sum += +v || 0)\n : v => (sum += +valueof(v, index++, values) || 0));\n}\n\nfunction variance(values, valueof) {\n let count = 0;\n let delta;\n let mean = 0;\n let sum = 0;\n if (valueof === undefined) {\n for (let value of values) {\n if (value != null && (value = +value) >= value) {\n delta = value - mean;\n mean += delta / ++count;\n sum += delta * (value - mean);\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {\n delta = value - mean;\n mean += delta / ++count;\n sum += delta * (value - mean);\n }\n }\n }\n if (count > 1) return sum / (count - 1);\n}\n\nfunction deviation(values, valueof) {\n const v = variance(values, valueof);\n return v ? Math.sqrt(v) : v;\n}\n\nfunction extent(values, valueof) {\n let min;\n let max;\n if (valueof === undefined) {\n for (const value of values) {\n if (value != null) {\n if (min === undefined) {\n if (value >= value) min = max = value;\n } else {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null) {\n if (min === undefined) {\n if (value >= value) min = max = value;\n } else {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n return [min, max];\n}\n\n// https://github.com/python/cpython/blob/a74eea238f5baba15797e2e8b570d153bc8690a7/Modules/mathmodule.c#L1423\nclass Adder {\n constructor() {\n this._partials = new Float64Array(32);\n this._n = 0;\n }\n add(x) {\n const p = this._partials;\n let i = 0;\n for (let j = 0; j < this._n && j < 32; j++) {\n const y = p[j],\n hi = x + y,\n lo = Math.abs(x) < Math.abs(y) ? x - (hi - y) : y - (hi - x);\n if (lo) p[i++] = lo;\n x = hi;\n }\n p[i] = x;\n this._n = i + 1;\n return this;\n }\n valueOf() {\n const p = this._partials;\n let n = this._n, x, y, lo, hi = 0;\n if (n > 0) {\n hi = p[--n];\n while (n > 0) {\n x = hi;\n y = p[--n];\n hi = x + y;\n lo = y - (hi - x);\n if (lo) break;\n }\n if (n > 0 && ((lo < 0 && p[n - 1] < 0) || (lo > 0 && p[n - 1] > 0))) {\n y = lo * 2;\n x = hi + y;\n if (y == x - hi) hi = x;\n }\n }\n return hi;\n }\n}\n\nfunction fsum(values, valueof) {\n const adder = new Adder();\n if (valueof === undefined) {\n for (let value of values) {\n if (value = +value) {\n adder.add(value);\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if (value = +valueof(value, ++index, values)) {\n adder.add(value);\n }\n }\n }\n return +adder;\n}\n\nfunction fcumsum(values, valueof) {\n const adder = new Adder();\n let index = -1;\n return Float64Array.from(values, valueof === undefined\n ? v => adder.add(+v || 0)\n : v => adder.add(+valueof(v, ++index, values) || 0)\n );\n}\n\nclass InternMap extends Map {\n constructor(entries, key = keyof) {\n super();\n Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});\n if (entries != null) for (const [key, value] of entries) this.set(key, value);\n }\n get(key) {\n return super.get(intern_get(this, key));\n }\n has(key) {\n return super.has(intern_get(this, key));\n }\n set(key, value) {\n return super.set(intern_set(this, key), value);\n }\n delete(key) {\n return super.delete(intern_delete(this, key));\n }\n}\n\nclass InternSet extends Set {\n constructor(values, key = keyof) {\n super();\n Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});\n if (values != null) for (const value of values) this.add(value);\n }\n has(value) {\n return super.has(intern_get(this, value));\n }\n add(value) {\n return super.add(intern_set(this, value));\n }\n delete(value) {\n return super.delete(intern_delete(this, value));\n }\n}\n\nfunction intern_get({_intern, _key}, value) {\n const key = _key(value);\n return _intern.has(key) ? _intern.get(key) : value;\n}\n\nfunction intern_set({_intern, _key}, value) {\n const key = _key(value);\n if (_intern.has(key)) return _intern.get(key);\n _intern.set(key, value);\n return value;\n}\n\nfunction intern_delete({_intern, _key}, value) {\n const key = _key(value);\n if (_intern.has(key)) {\n value = _intern.get(key);\n _intern.delete(key);\n }\n return value;\n}\n\nfunction keyof(value) {\n return value !== null && typeof value === \"object\" ? value.valueOf() : value;\n}\n\nfunction identity(x) {\n return x;\n}\n\nfunction group(values, ...keys) {\n return nest(values, identity, identity, keys);\n}\n\nfunction groups(values, ...keys) {\n return nest(values, Array.from, identity, keys);\n}\n\nfunction flatten$1(groups, keys) {\n for (let i = 1, n = keys.length; i < n; ++i) {\n groups = groups.flatMap(g => g.pop().map(([key, value]) => [...g, key, value]));\n }\n return groups;\n}\n\nfunction flatGroup(values, ...keys) {\n return flatten$1(groups(values, ...keys), keys);\n}\n\nfunction flatRollup(values, reduce, ...keys) {\n return flatten$1(rollups(values, reduce, ...keys), keys);\n}\n\nfunction rollup(values, reduce, ...keys) {\n return nest(values, identity, reduce, keys);\n}\n\nfunction rollups(values, reduce, ...keys) {\n return nest(values, Array.from, reduce, keys);\n}\n\nfunction index(values, ...keys) {\n return nest(values, identity, unique, keys);\n}\n\nfunction indexes(values, ...keys) {\n return nest(values, Array.from, unique, keys);\n}\n\nfunction unique(values) {\n if (values.length !== 1) throw new Error(\"duplicate key\");\n return values[0];\n}\n\nfunction nest(values, map, reduce, keys) {\n return (function regroup(values, i) {\n if (i >= keys.length) return reduce(values);\n const groups = new InternMap();\n const keyof = keys[i++];\n let index = -1;\n for (const value of values) {\n const key = keyof(value, ++index, values);\n const group = groups.get(key);\n if (group) group.push(value);\n else groups.set(key, [value]);\n }\n for (const [key, values] of groups) {\n groups.set(key, regroup(values, i));\n }\n return map(groups);\n })(values, 0);\n}\n\nfunction permute(source, keys) {\n return Array.from(keys, key => source[key]);\n}\n\nfunction sort(values, ...F) {\n if (typeof values[Symbol.iterator] !== \"function\") throw new TypeError(\"values is not iterable\");\n values = Array.from(values);\n let [f] = F;\n if ((f && f.length !== 2) || F.length > 1) {\n const index = Uint32Array.from(values, (d, i) => i);\n if (F.length > 1) {\n F = F.map(f => values.map(f));\n index.sort((i, j) => {\n for (const f of F) {\n const c = ascendingDefined(f[i], f[j]);\n if (c) return c;\n }\n });\n } else {\n f = values.map(f);\n index.sort((i, j) => ascendingDefined(f[i], f[j]));\n }\n return permute(values, index);\n }\n return values.sort(compareDefined(f));\n}\n\nfunction compareDefined(compare = ascending) {\n if (compare === ascending) return ascendingDefined;\n if (typeof compare !== \"function\") throw new TypeError(\"compare is not a function\");\n return (a, b) => {\n const x = compare(a, b);\n if (x || x === 0) return x;\n return (compare(b, b) === 0) - (compare(a, a) === 0);\n };\n}\n\nfunction ascendingDefined(a, b) {\n return (a == null || !(a >= a)) - (b == null || !(b >= b)) || (a < b ? -1 : a > b ? 1 : 0);\n}\n\nfunction groupSort(values, reduce, key) {\n return (reduce.length !== 2\n ? sort(rollup(values, reduce, key), (([ak, av], [bk, bv]) => ascending(av, bv) || ascending(ak, bk)))\n : sort(group(values, key), (([ak, av], [bk, bv]) => reduce(av, bv) || ascending(ak, bk))))\n .map(([key]) => key);\n}\n\nvar array = Array.prototype;\n\nvar slice = array.slice;\n\nfunction constant(x) {\n return () => x;\n}\n\nconst e10 = Math.sqrt(50),\n e5 = Math.sqrt(10),\n e2 = Math.sqrt(2);\n\nfunction tickSpec(start, stop, count) {\n const step = (stop - start) / Math.max(0, count),\n power = Math.floor(Math.log10(step)),\n error = step / Math.pow(10, power),\n factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1;\n let i1, i2, inc;\n if (power < 0) {\n inc = Math.pow(10, -power) / factor;\n i1 = Math.round(start * inc);\n i2 = Math.round(stop * inc);\n if (i1 / inc < start) ++i1;\n if (i2 / inc > stop) --i2;\n inc = -inc;\n } else {\n inc = Math.pow(10, power) * factor;\n i1 = Math.round(start / inc);\n i2 = Math.round(stop / inc);\n if (i1 * inc < start) ++i1;\n if (i2 * inc > stop) --i2;\n }\n if (i2 < i1 && 0.5 <= count && count < 2) return tickSpec(start, stop, count * 2);\n return [i1, i2, inc];\n}\n\nfunction ticks(start, stop, count) {\n stop = +stop, start = +start, count = +count;\n if (!(count > 0)) return [];\n if (start === stop) return [start];\n const reverse = stop < start, [i1, i2, inc] = reverse ? tickSpec(stop, start, count) : tickSpec(start, stop, count);\n if (!(i2 >= i1)) return [];\n const n = i2 - i1 + 1, ticks = new Array(n);\n if (reverse) {\n if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) / -inc;\n else for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) * inc;\n } else {\n if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) / -inc;\n else for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) * inc;\n }\n return ticks;\n}\n\nfunction tickIncrement(start, stop, count) {\n stop = +stop, start = +start, count = +count;\n return tickSpec(start, stop, count)[2];\n}\n\nfunction tickStep(start, stop, count) {\n stop = +stop, start = +start, count = +count;\n const reverse = stop < start, inc = reverse ? tickIncrement(stop, start, count) : tickIncrement(start, stop, count);\n return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);\n}\n\nfunction nice(start, stop, count) {\n let prestep;\n while (true) {\n const step = tickIncrement(start, stop, count);\n if (step === prestep || step === 0 || !isFinite(step)) {\n return [start, stop];\n } else if (step > 0) {\n const i = Math.ceil(start / step);\n const j = Math.floor(stop / step);\n start = (i - (i * step > start)) * step;\n stop = (j + (j * step < stop)) * step;\n } else if (step < 0) {\n const s = -step;\n const i = Math.ceil(start * s);\n const j = Math.floor(stop * s);\n start = (i - (i / s > start)) / s;\n stop = (j + (j / s < stop)) / s;\n }\n prestep = step;\n }\n}\n\nfunction thresholdSturges(values) {\n return Math.max(1, Math.ceil(Math.log(count(values)) / Math.LN2) + 1);\n}\n\nfunction bin() {\n var value = identity,\n domain = extent,\n threshold = thresholdSturges;\n\n function histogram(data) {\n if (!Array.isArray(data)) data = Array.from(data);\n\n var i,\n n = data.length,\n x,\n step,\n values = new Array(n);\n\n for (i = 0; i < n; ++i) {\n values[i] = value(data[i], i, data);\n }\n\n var xz = domain(values),\n x0 = xz[0],\n x1 = xz[1],\n tz = threshold(values, x0, x1);\n\n // Convert number of thresholds into uniform thresholds, and nice the\n // default domain accordingly.\n if (!Array.isArray(tz)) {\n const max = x1, tn = +tz;\n if (domain === extent) [x0, x1] = nice(x0, x1, tn);\n tz = ticks(x0, x1, tn);\n\n // If the domain is aligned with the first tick (which it will by\n // default), then we can use quantization rather than bisection to bin\n // values, which is substantially faster.\n if (tz[0] <= x0) step = tickIncrement(x0, x1, tn);\n\n // If the last threshold is coincident with the domain’s upper bound, the\n // last bin will be zero-width. If the default domain is used, and this\n // last threshold is coincident with the maximum input value, we can\n // extend the niced upper bound by one tick to ensure uniform bin widths;\n // otherwise, we simply remove the last threshold. Note that we don’t\n // coerce values or the domain to numbers, and thus must be careful to\n // compare order (>=) rather than strict equality (===)!\n if (tz[tz.length - 1] >= x1) {\n if (max >= x1 && domain === extent) {\n const step = tickIncrement(x0, x1, tn);\n if (isFinite(step)) {\n if (step > 0) {\n x1 = (Math.floor(x1 / step) + 1) * step;\n } else if (step < 0) {\n x1 = (Math.ceil(x1 * -step) + 1) / -step;\n }\n }\n } else {\n tz.pop();\n }\n }\n }\n\n // Remove any thresholds outside the domain.\n // Be careful not to mutate an array owned by the user!\n var m = tz.length, a = 0, b = m;\n while (tz[a] <= x0) ++a;\n while (tz[b - 1] > x1) --b;\n if (a || b < m) tz = tz.slice(a, b), m = b - a;\n\n var bins = new Array(m + 1),\n bin;\n\n // Initialize bins.\n for (i = 0; i <= m; ++i) {\n bin = bins[i] = [];\n bin.x0 = i > 0 ? tz[i - 1] : x0;\n bin.x1 = i < m ? tz[i] : x1;\n }\n\n // Assign data to bins by value, ignoring any outside the domain.\n if (isFinite(step)) {\n if (step > 0) {\n for (i = 0; i < n; ++i) {\n if ((x = values[i]) != null && x0 <= x && x <= x1) {\n bins[Math.min(m, Math.floor((x - x0) / step))].push(data[i]);\n }\n }\n } else if (step < 0) {\n for (i = 0; i < n; ++i) {\n if ((x = values[i]) != null && x0 <= x && x <= x1) {\n const j = Math.floor((x0 - x) * step);\n bins[Math.min(m, j + (tz[j] <= x))].push(data[i]); // handle off-by-one due to rounding\n }\n }\n }\n } else {\n for (i = 0; i < n; ++i) {\n if ((x = values[i]) != null && x0 <= x && x <= x1) {\n bins[bisectRight(tz, x, 0, m)].push(data[i]);\n }\n }\n }\n\n return bins;\n }\n\n histogram.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(_), histogram) : value;\n };\n\n histogram.domain = function(_) {\n return arguments.length ? (domain = typeof _ === \"function\" ? _ : constant([_[0], _[1]]), histogram) : domain;\n };\n\n histogram.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : constant(Array.isArray(_) ? slice.call(_) : _), histogram) : threshold;\n };\n\n return histogram;\n}\n\nfunction max(values, valueof) {\n let max;\n if (valueof === undefined) {\n for (const value of values) {\n if (value != null\n && (max < value || (max === undefined && value >= value))) {\n max = value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null\n && (max < value || (max === undefined && value >= value))) {\n max = value;\n }\n }\n }\n return max;\n}\n\nfunction maxIndex(values, valueof) {\n let max;\n let maxIndex = -1;\n let index = -1;\n if (valueof === undefined) {\n for (const value of values) {\n ++index;\n if (value != null\n && (max < value || (max === undefined && value >= value))) {\n max = value, maxIndex = index;\n }\n }\n } else {\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null\n && (max < value || (max === undefined && value >= value))) {\n max = value, maxIndex = index;\n }\n }\n }\n return maxIndex;\n}\n\nfunction min(values, valueof) {\n let min;\n if (valueof === undefined) {\n for (const value of values) {\n if (value != null\n && (min > value || (min === undefined && value >= value))) {\n min = value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null\n && (min > value || (min === undefined && value >= value))) {\n min = value;\n }\n }\n }\n return min;\n}\n\nfunction minIndex(values, valueof) {\n let min;\n let minIndex = -1;\n let index = -1;\n if (valueof === undefined) {\n for (const value of values) {\n ++index;\n if (value != null\n && (min > value || (min === undefined && value >= value))) {\n min = value, minIndex = index;\n }\n }\n } else {\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null\n && (min > value || (min === undefined && value >= value))) {\n min = value, minIndex = index;\n }\n }\n }\n return minIndex;\n}\n\n// Based on https://github.com/mourner/quickselect\n// ISC license, Copyright 2018 Vladimir Agafonkin.\nfunction quickselect(array, k, left = 0, right = Infinity, compare) {\n k = Math.floor(k);\n left = Math.floor(Math.max(0, left));\n right = Math.floor(Math.min(array.length - 1, right));\n\n if (!(left <= k && k <= right)) return array;\n\n compare = compare === undefined ? ascendingDefined : compareDefined(compare);\n\n while (right > left) {\n if (right - left > 600) {\n const n = right - left + 1;\n const m = k - left + 1;\n const z = Math.log(n);\n const s = 0.5 * Math.exp(2 * z / 3);\n const sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1);\n const newLeft = Math.max(left, Math.floor(k - m * s / n + sd));\n const newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd));\n quickselect(array, k, newLeft, newRight, compare);\n }\n\n const t = array[k];\n let i = left;\n let j = right;\n\n swap(array, left, k);\n if (compare(array[right], t) > 0) swap(array, left, right);\n\n while (i < j) {\n swap(array, i, j), ++i, --j;\n while (compare(array[i], t) < 0) ++i;\n while (compare(array[j], t) > 0) --j;\n }\n\n if (compare(array[left], t) === 0) swap(array, left, j);\n else ++j, swap(array, j, right);\n\n if (j <= k) left = j + 1;\n if (k <= j) right = j - 1;\n }\n\n return array;\n}\n\nfunction swap(array, i, j) {\n const t = array[i];\n array[i] = array[j];\n array[j] = t;\n}\n\nfunction greatest(values, compare = ascending) {\n let max;\n let defined = false;\n if (compare.length === 1) {\n let maxValue;\n for (const element of values) {\n const value = compare(element);\n if (defined\n ? ascending(value, maxValue) > 0\n : ascending(value, value) === 0) {\n max = element;\n maxValue = value;\n defined = true;\n }\n }\n } else {\n for (const value of values) {\n if (defined\n ? compare(value, max) > 0\n : compare(value, value) === 0) {\n max = value;\n defined = true;\n }\n }\n }\n return max;\n}\n\nfunction quantile(values, p, valueof) {\n values = Float64Array.from(numbers(values, valueof));\n if (!(n = values.length) || isNaN(p = +p)) return;\n if (p <= 0 || n < 2) return min(values);\n if (p >= 1) return max(values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = max(quickselect(values, i0).subarray(0, i0 + 1)),\n value1 = min(values.subarray(i0 + 1));\n return value0 + (value1 - value0) * (i - i0);\n}\n\nfunction quantileSorted(values, p, valueof = number) {\n if (!(n = values.length) || isNaN(p = +p)) return;\n if (p <= 0 || n < 2) return +valueof(values[0], 0, values);\n if (p >= 1) return +valueof(values[n - 1], n - 1, values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = +valueof(values[i0], i0, values),\n value1 = +valueof(values[i0 + 1], i0 + 1, values);\n return value0 + (value1 - value0) * (i - i0);\n}\n\nfunction quantileIndex(values, p, valueof = number) {\n if (isNaN(p = +p)) return;\n numbers = Float64Array.from(values, (_, i) => number(valueof(values[i], i, values)));\n if (p <= 0) return minIndex(numbers);\n if (p >= 1) return maxIndex(numbers);\n var numbers,\n index = Uint32Array.from(values, (_, i) => i),\n j = numbers.length - 1,\n i = Math.floor(j * p);\n quickselect(index, i, 0, j, (i, j) => ascendingDefined(numbers[i], numbers[j]));\n i = greatest(index.subarray(0, i + 1), (i) => numbers[i]);\n return i >= 0 ? i : -1;\n}\n\nfunction thresholdFreedmanDiaconis(values, min, max) {\n const c = count(values), d = quantile(values, 0.75) - quantile(values, 0.25);\n return c && d ? Math.ceil((max - min) / (2 * d * Math.pow(c, -1 / 3))) : 1;\n}\n\nfunction thresholdScott(values, min, max) {\n const c = count(values), d = deviation(values);\n return c && d ? Math.ceil((max - min) * Math.cbrt(c) / (3.49 * d)) : 1;\n}\n\nfunction mean(values, valueof) {\n let count = 0;\n let sum = 0;\n if (valueof === undefined) {\n for (let value of values) {\n if (value != null && (value = +value) >= value) {\n ++count, sum += value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {\n ++count, sum += value;\n }\n }\n }\n if (count) return sum / count;\n}\n\nfunction median(values, valueof) {\n return quantile(values, 0.5, valueof);\n}\n\nfunction medianIndex(values, valueof) {\n return quantileIndex(values, 0.5, valueof);\n}\n\nfunction* flatten(arrays) {\n for (const array of arrays) {\n yield* array;\n }\n}\n\nfunction merge(arrays) {\n return Array.from(flatten(arrays));\n}\n\nfunction mode(values, valueof) {\n const counts = new InternMap();\n if (valueof === undefined) {\n for (let value of values) {\n if (value != null && value >= value) {\n counts.set(value, (counts.get(value) || 0) + 1);\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null && value >= value) {\n counts.set(value, (counts.get(value) || 0) + 1);\n }\n }\n }\n let modeValue;\n let modeCount = 0;\n for (const [value, count] of counts) {\n if (count > modeCount) {\n modeCount = count;\n modeValue = value;\n }\n }\n return modeValue;\n}\n\nfunction pairs(values, pairof = pair) {\n const pairs = [];\n let previous;\n let first = false;\n for (const value of values) {\n if (first) pairs.push(pairof(previous, value));\n previous = value;\n first = true;\n }\n return pairs;\n}\n\nfunction pair(a, b) {\n return [a, b];\n}\n\nfunction range(start, stop, step) {\n start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;\n\n var i = -1,\n n = Math.max(0, Math.ceil((stop - start) / step)) | 0,\n range = new Array(n);\n\n while (++i < n) {\n range[i] = start + i * step;\n }\n\n return range;\n}\n\nfunction rank(values, valueof = ascending) {\n if (typeof values[Symbol.iterator] !== \"function\") throw new TypeError(\"values is not iterable\");\n let V = Array.from(values);\n const R = new Float64Array(V.length);\n if (valueof.length !== 2) V = V.map(valueof), valueof = ascending;\n const compareIndex = (i, j) => valueof(V[i], V[j]);\n let k, r;\n values = Uint32Array.from(V, (_, i) => i);\n // Risky chaining due to Safari 14 https://github.com/d3/d3-array/issues/123\n values.sort(valueof === ascending ? (i, j) => ascendingDefined(V[i], V[j]) : compareDefined(compareIndex));\n values.forEach((j, i) => {\n const c = compareIndex(j, k === undefined ? j : k);\n if (c >= 0) {\n if (k === undefined || c > 0) k = j, r = i;\n R[j] = r;\n } else {\n R[j] = NaN;\n }\n });\n return R;\n}\n\nfunction least(values, compare = ascending) {\n let min;\n let defined = false;\n if (compare.length === 1) {\n let minValue;\n for (const element of values) {\n const value = compare(element);\n if (defined\n ? ascending(value, minValue) < 0\n : ascending(value, value) === 0) {\n min = element;\n minValue = value;\n defined = true;\n }\n }\n } else {\n for (const value of values) {\n if (defined\n ? compare(value, min) < 0\n : compare(value, value) === 0) {\n min = value;\n defined = true;\n }\n }\n }\n return min;\n}\n\nfunction leastIndex(values, compare = ascending) {\n if (compare.length === 1) return minIndex(values, compare);\n let minValue;\n let min = -1;\n let index = -1;\n for (const value of values) {\n ++index;\n if (min < 0\n ? compare(value, value) === 0\n : compare(value, minValue) < 0) {\n minValue = value;\n min = index;\n }\n }\n return min;\n}\n\nfunction greatestIndex(values, compare = ascending) {\n if (compare.length === 1) return maxIndex(values, compare);\n let maxValue;\n let max = -1;\n let index = -1;\n for (const value of values) {\n ++index;\n if (max < 0\n ? compare(value, value) === 0\n : compare(value, maxValue) > 0) {\n maxValue = value;\n max = index;\n }\n }\n return max;\n}\n\nfunction scan(values, compare) {\n const index = leastIndex(values, compare);\n return index < 0 ? undefined : index;\n}\n\nvar shuffle = shuffler(Math.random);\n\nfunction shuffler(random) {\n return function shuffle(array, i0 = 0, i1 = array.length) {\n let m = i1 - (i0 = +i0);\n while (m) {\n const i = random() * m-- | 0, t = array[m + i0];\n array[m + i0] = array[i + i0];\n array[i + i0] = t;\n }\n return array;\n };\n}\n\nfunction sum(values, valueof) {\n let sum = 0;\n if (valueof === undefined) {\n for (let value of values) {\n if (value = +value) {\n sum += value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if (value = +valueof(value, ++index, values)) {\n sum += value;\n }\n }\n }\n return sum;\n}\n\nfunction transpose(matrix) {\n if (!(n = matrix.length)) return [];\n for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) {\n for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {\n row[j] = matrix[j][i];\n }\n }\n return transpose;\n}\n\nfunction length(d) {\n return d.length;\n}\n\nfunction zip() {\n return transpose(arguments);\n}\n\nfunction every(values, test) {\n if (typeof test !== \"function\") throw new TypeError(\"test is not a function\");\n let index = -1;\n for (const value of values) {\n if (!test(value, ++index, values)) {\n return false;\n }\n }\n return true;\n}\n\nfunction some(values, test) {\n if (typeof test !== \"function\") throw new TypeError(\"test is not a function\");\n let index = -1;\n for (const value of values) {\n if (test(value, ++index, values)) {\n return true;\n }\n }\n return false;\n}\n\nfunction filter(values, test) {\n if (typeof test !== \"function\") throw new TypeError(\"test is not a function\");\n const array = [];\n let index = -1;\n for (const value of values) {\n if (test(value, ++index, values)) {\n array.push(value);\n }\n }\n return array;\n}\n\nfunction map(values, mapper) {\n if (typeof values[Symbol.iterator] !== \"function\") throw new TypeError(\"values is not iterable\");\n if (typeof mapper !== \"function\") throw new TypeError(\"mapper is not a function\");\n return Array.from(values, (value, index) => mapper(value, index, values));\n}\n\nfunction reduce(values, reducer, value) {\n if (typeof reducer !== \"function\") throw new TypeError(\"reducer is not a function\");\n const iterator = values[Symbol.iterator]();\n let done, next, index = -1;\n if (arguments.length < 3) {\n ({done, value} = iterator.next());\n if (done) return;\n ++index;\n }\n while (({done, value: next} = iterator.next()), !done) {\n value = reducer(value, next, ++index, values);\n }\n return value;\n}\n\nfunction reverse(values) {\n if (typeof values[Symbol.iterator] !== \"function\") throw new TypeError(\"values is not iterable\");\n return Array.from(values).reverse();\n}\n\nfunction difference(values, ...others) {\n values = new InternSet(values);\n for (const other of others) {\n for (const value of other) {\n values.delete(value);\n }\n }\n return values;\n}\n\nfunction disjoint(values, other) {\n const iterator = other[Symbol.iterator](), set = new InternSet();\n for (const v of values) {\n if (set.has(v)) return false;\n let value, done;\n while (({value, done} = iterator.next())) {\n if (done) break;\n if (Object.is(v, value)) return false;\n set.add(value);\n }\n }\n return true;\n}\n\nfunction intersection(values, ...others) {\n values = new InternSet(values);\n others = others.map(set);\n out: for (const value of values) {\n for (const other of others) {\n if (!other.has(value)) {\n values.delete(value);\n continue out;\n }\n }\n }\n return values;\n}\n\nfunction set(values) {\n return values instanceof InternSet ? values : new InternSet(values);\n}\n\nfunction superset(values, other) {\n const iterator = values[Symbol.iterator](), set = new Set();\n for (const o of other) {\n const io = intern(o);\n if (set.has(io)) continue;\n let value, done;\n while (({value, done} = iterator.next())) {\n if (done) return false;\n const ivalue = intern(value);\n set.add(ivalue);\n if (Object.is(io, ivalue)) break;\n }\n }\n return true;\n}\n\nfunction intern(value) {\n return value !== null && typeof value === \"object\" ? value.valueOf() : value;\n}\n\nfunction subset(values, other) {\n return superset(other, values);\n}\n\nfunction union(...others) {\n const set = new InternSet();\n for (const other of others) {\n for (const o of other) {\n set.add(o);\n }\n }\n return set;\n}\n\nexport { Adder, InternMap, InternSet, ascending, bin, bisectRight as bisect, bisectCenter, bisectLeft, bisectRight, bisector, blur, blur2, blurImage, count, cross, cumsum, descending, deviation, difference, disjoint, every, extent, fcumsum, filter, flatGroup, flatRollup, fsum, greatest, greatestIndex, group, groupSort, groups, bin as histogram, index, indexes, intersection, least, leastIndex, map, max, maxIndex, mean, median, medianIndex, merge, min, minIndex, mode, nice, pairs, permute, quantile, quantileIndex, quantileSorted, quickselect, range, rank, reduce, reverse, rollup, rollups, scan, shuffle, shuffler, some, sort, subset, sum, superset, thresholdFreedmanDiaconis, thresholdScott, thresholdSturges, tickIncrement, tickStep, ticks, transpose, union, variance, zip };\n"],"ignoreList":[0],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ "use client";const e=require("../../d3-array/dist/d3-array.cjs"),t=require("./math.cjs"),n=require("./noop.cjs"),r=require("./stream.cjs");var i=new e.Adder,a=new e.Adder,o,s,c,l,u,d={point:n.default,lineStart:n.default,lineEnd:n.default,polygonStart:function(){i=new e.Adder,d.lineStart=f,d.lineEnd=p},polygonEnd:function(){var e=+i;a.add(e<0?t.tau+e:e),this.lineStart=this.lineEnd=this.point=n.default},sphere:function(){a.add(t.tau)}};function f(){d.point=m}function p(){h(o,s)}function m(e,n){d.point=h,o=e,s=n,e*=t.radians,n*=t.radians,c=e,l=t.cos(n=n/2+t.quarterPi),u=t.sin(n)}function h(e,n){e*=t.radians,n*=t.radians,n=n/2+t.quarterPi;var r=e-c,a=r>=0?1:-1,o=a*r,s=t.cos(n),d=t.sin(n),f=u*d,p=l*s+f*t.cos(o),m=f*a*t.sin(o);i.add(t.atan2(m,p)),c=e,l=s,u=d}function g(t){return a=new e.Adder,r.default(t,d),a*2}Object.defineProperty(exports,"areaRingSum",{enumerable:!0,get:function(){return i}}),exports.areaStream=d,exports.default=g;
2
+ //# sourceMappingURL=area.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"area.cjs","names":["Adder","noop","tau","radians","cos","quarterPi","sin","atan2","require_d3_array","require_math","require_noop","require_stream","areaRingSum","areaSum","lambda00","phi00","lambda0","cosPhi0","sinPhi0","areaStream","areaRingStart","areaRingEnd","areaRing","areaPointFirst","areaPoint","lambda","phi","dLambda","sdLambda","adLambda","cosPhi","sinPhi","k","u","v","area_default","object"],"sources":["../../../../node_modules/d3-geo/src/area.js"],"sourcesContent":["import {Adder} from \"d3-array\";\nimport {atan2, cos, quarterPi, radians, sin, tau} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nexport var areaRingSum = new Adder();\n\n// hello?\n\nvar areaSum = new Adder(),\n lambda00,\n phi00,\n lambda0,\n cosPhi0,\n sinPhi0;\n\nexport var areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaRingSum = new Adder();\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n var areaRing = +areaRingSum;\n areaSum.add(areaRing < 0 ? tau + areaRing : areaRing);\n this.lineStart = this.lineEnd = this.point = noop;\n },\n sphere: function() {\n areaSum.add(tau);\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaRingEnd() {\n areaPoint(lambda00, phi00);\n}\n\nfunction areaPointFirst(lambda, phi) {\n areaStream.point = areaPoint;\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n lambda0 = lambda, cosPhi0 = cos(phi = phi / 2 + quarterPi), sinPhi0 = sin(phi);\n}\n\nfunction areaPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n phi = phi / 2 + quarterPi; // half the angular distance from south pole\n\n // Spherical excess E for a spherical triangle with vertices: south pole,\n // previous point, current point. Uses a formula derived from Cagnoli’s\n // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).\n var dLambda = lambda - lambda0,\n sdLambda = dLambda >= 0 ? 1 : -1,\n adLambda = sdLambda * dLambda,\n cosPhi = cos(phi),\n sinPhi = sin(phi),\n k = sinPhi0 * sinPhi,\n u = cosPhi0 * cosPhi + k * cos(adLambda),\n v = k * sdLambda * sin(adLambda);\n areaRingSum.add(atan2(v, u));\n\n // Advance the previous points.\n lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi;\n}\n\nexport default function(object) {\n areaSum = new Adder();\n stream(object, areaStream);\n return areaSum * 2;\n}\n"],"ignoreList":[0],"mappings":"A,2IAKA,IAAWY,EAAc,IAAIZ,EAAAA,MAIzBa,EAAU,IAAIb,EAAAA,MACdc,EACAC,EACAC,EACAC,EACAC,EAEOC,EAAa,CACtB,MAAOlB,EAAAA,QACP,UAAWA,EAAAA,QACX,QAASA,EAAAA,QACT,aAAc,UAAW,CACvB,EAAc,IAAID,EAAAA,MAClB,EAAW,UAAYoB,EACvB,EAAW,QAAUC,CACvB,EACA,WAAY,UAAW,CACrB,IAAIC,EAAW,CAACV,EAChBC,EAAQ,IAAIS,EAAW,EAAIpB,EAAAA,IAAMoB,EAAWA,CAAQ,EACpD,KAAK,UAAY,KAAK,QAAU,KAAK,MAAQrB,EAAAA,OAC/C,EACA,OAAQ,UAAW,CACjBY,EAAQ,IAAIX,EAAAA,GAAG,CACjB,CACF,EAEA,SAASkB,GAAgB,CACvB,EAAW,MAAQG,CACrB,CAEA,SAASF,GAAc,CACrBG,EAAUV,EAAUC,CAAK,CAC3B,CAEA,SAASQ,EAAe,EAAQ,EAAK,CACnC,EAAW,MAAQC,EACnB,EAAWC,EAAQ,EAAQC,EAC3B,GAAUvB,EAAAA,QAAS,GAAOA,EAAAA,QAC1B,EAAUsB,EAAQ,EAAUrB,EAAAA,IAAI,EAAMsB,EAAM,EAAIrB,EAAAA,SAAS,EAAG,EAAUC,EAAAA,IAAIoB,CAAG,CAC/E,CAEA,SAASF,EAAU,EAAQ,EAAK,CAC9B,GAAUrB,EAAAA,QAAS,GAAOA,EAAAA,QAC1B,EAAMuB,EAAM,EAAIrB,EAAAA,UAKhB,IAAIsB,EAAUF,EAAST,EACnBY,EAAWD,GAAW,EAAI,EAAI,GAC9BE,EAAWD,EAAWD,EACtBG,EAAS1B,EAAAA,IAAIsB,CAAG,EAChBK,EAASzB,EAAAA,IAAIoB,CAAG,EAChBM,EAAId,EAAUa,EACdE,EAAIhB,EAAUa,EAASE,EAAI5B,EAAAA,IAAIyB,CAAQ,EACvCK,EAAIF,EAAIJ,EAAWtB,EAAAA,IAAIuB,CAAQ,EACnCjB,EAAY,IAAIL,EAAAA,MAAM2B,EAAGD,CAAC,CAAC,EAG3B,EAAUR,EAAQ,EAAUK,EAAQ,EAAUC,CAChD,CAEA,SAAAI,EAAwB,EAAQ,CAG9B,MAFA,GAAU,IAAInC,EAAAA,MACdW,EAAA,QAAOyB,EAAQjB,CAAU,EAClBN,EAAU,CACnB,C"}