chunk-4LBZICSO.js 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005
  1. import {
  2. h,
  3. i,
  4. l as l4
  5. } from "./chunk-ZBREIOZ2.js";
  6. import {
  7. d as d2,
  8. h as h2,
  9. l as l3,
  10. m as m5
  11. } from "./chunk-FUB4YNLX.js";
  12. import {
  13. u
  14. } from "./chunk-EE6TL7XD.js";
  15. import {
  16. M as M2,
  17. N as N2
  18. } from "./chunk-7SW2GQFP.js";
  19. import {
  20. e as e3,
  21. n as n5,
  22. o as o4
  23. } from "./chunk-YASLQAXE.js";
  24. import {
  25. u as u2
  26. } from "./chunk-VEAEIBHK.js";
  27. import {
  28. x
  29. } from "./chunk-2VFJVI2I.js";
  30. import {
  31. L
  32. } from "./chunk-P4UZNLD5.js";
  33. import {
  34. N,
  35. P,
  36. a as a2,
  37. j as j2,
  38. n as n3,
  39. n2 as n4,
  40. v
  41. } from "./chunk-FUD7XO3N.js";
  42. import {
  43. j as j3
  44. } from "./chunk-6EU7GFUT.js";
  45. import {
  46. p as p2
  47. } from "./chunk-HZJYXMI6.js";
  48. import {
  49. T as T2,
  50. m as m4
  51. } from "./chunk-GRBROWI6.js";
  52. import {
  53. g
  54. } from "./chunk-RZFGRBD7.js";
  55. import {
  56. m as m3,
  57. n as n2,
  58. y as y2
  59. } from "./chunk-EN7YGJWG.js";
  60. import {
  61. y
  62. } from "./chunk-BJHM4JNS.js";
  63. import {
  64. a,
  65. m as m2,
  66. p
  67. } from "./chunk-EOSZHC5H.js";
  68. import {
  69. l as l2
  70. } from "./chunk-7XXXCK2A.js";
  71. import {
  72. r as r3
  73. } from "./chunk-7ZIDBK7B.js";
  74. import {
  75. o as o3
  76. } from "./chunk-WEMIK25H.js";
  77. import {
  78. U
  79. } from "./chunk-VNFRAYHO.js";
  80. import {
  81. o as o2,
  82. s as s2
  83. } from "./chunk-PDKDCAAD.js";
  84. import {
  85. M2 as M,
  86. j2 as j,
  87. o
  88. } from "./chunk-ECW2QABR.js";
  89. import {
  90. k2 as k,
  91. r as r2
  92. } from "./chunk-MRJEICT6.js";
  93. import {
  94. d,
  95. e,
  96. l3 as l,
  97. n2 as n,
  98. t as t2
  99. } from "./chunk-Y3WMVFTW.js";
  100. import {
  101. S,
  102. T
  103. } from "./chunk-IHXECKQQ.js";
  104. import {
  105. s3 as s
  106. } from "./chunk-EMJ4ZSM2.js";
  107. import {
  108. m
  109. } from "./chunk-IKP3YN53.js";
  110. import {
  111. e as e2,
  112. r,
  113. t
  114. } from "./chunk-GZT4BVFP.js";
  115. // node_modules/@arcgis/core/renderers/FlowRenderer.js
  116. var c;
  117. var d3 = new s2({ flow_from: "flow-from", flow_to: "flow-to" });
  118. var h3 = c = class extends v(l) {
  119. constructor(o7) {
  120. super(o7), this.density = 0.8, this.color = new l2([255, 255, 255, 1]), this.maxPathLength = 200, this.trailWidth = 1.5, this.flowSpeed = 10, this.trailLength = 100, this.smoothing = 0, this.flowRepresentation = "flow-from", this.type = "flow", this.authoringInfo = null, this.legendOptions = null, this.trailCap = "butt", this.background = "none";
  121. }
  122. clone() {
  123. const { density: o7, maxPathLength: t4, trailWidth: e4, flowSpeed: r5, trailLength: i5, smoothing: s4, flowRepresentation: n9, trailCap: p5, background: a7 } = this, l10 = this.color.clone(), m10 = (this.visualVariables || []).map((o8) => o8.clone()), d6 = this.authoringInfo?.clone(), h6 = this.legendOptions?.clone();
  124. return new c({ density: o7, color: l10, maxPathLength: t4, trailWidth: e4, flowSpeed: r5, trailLength: i5, trailCap: p5, background: a7, smoothing: s4, flowRepresentation: n9, visualVariables: m10, authoringInfo: d6, legendOptions: h6 });
  125. }
  126. getSymbol(o7, t4) {
  127. }
  128. async getSymbolAsync(o7, t4) {
  129. }
  130. getSymbols() {
  131. return [];
  132. }
  133. };
  134. e([d({ type: Number, json: { write: true } })], h3.prototype, "density", void 0), e([d({ type: l2, json: { write: { allowNull: true } } })], h3.prototype, "color", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], h3.prototype, "maxPathLength", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], h3.prototype, "trailWidth", void 0), e([d({ type: Number, json: { write: true } })], h3.prototype, "flowSpeed", void 0), e([d({ type: Number, json: { write: true } })], h3.prototype, "trailLength", void 0), e([d({ type: Number, cast: o3, json: { write: false } })], h3.prototype, "smoothing", void 0), e([d({ type: d3.apiValues, json: { type: d3.jsonValues, read: { reader: d3.read }, write: { writer: d3.write } } })], h3.prototype, "flowRepresentation", void 0), e([r3({ flowRenderer: "flow" })], h3.prototype, "type", void 0), e([d({ type: j2, json: { write: true } })], h3.prototype, "authoringInfo", void 0), e([d({ type: p2, json: { write: true } })], h3.prototype, "legendOptions", void 0), e([d({ type: String, json: { write: true } })], h3.prototype, "trailCap", void 0), e([d({ type: String, json: { write: true } })], h3.prototype, "background", void 0), h3 = c = e([n("esri.renderers.FlowRenderer")], h3);
  135. var u3 = h3;
  136. // node_modules/@arcgis/core/renderers/support/ColormapInfo.js
  137. var c2 = class extends l {
  138. constructor() {
  139. super(...arguments), this.value = null, this.label = null, this.color = null;
  140. }
  141. };
  142. e([d({ type: Number, json: { write: true } })], c2.prototype, "value", void 0), e([d({ type: String, json: { write: true } })], c2.prototype, "label", void 0), e([d({ type: l2, json: { type: [S], write: true } })], c2.prototype, "color", void 0), c2 = e([n("esri.renderers.support.ColormapInfo")], c2);
  143. var l5 = c2;
  144. // node_modules/@arcgis/core/renderers/RasterColormapRenderer.js
  145. var c3;
  146. var m6 = c3 = class extends l {
  147. constructor(o7) {
  148. super(o7), this.colormapInfos = null, this.type = "raster-colormap";
  149. }
  150. static createFromColormap(o7, r5) {
  151. if (!o7)
  152. return null;
  153. const t4 = o7[0].length === 5, s4 = [...o7].sort((o8) => o8[0][0] - o8[1][0]).map((o8) => l5.fromJSON({ value: o8[0], color: t4 ? o8.slice(1, 5) : o8.slice(1, 4).concat([255]), label: r5 ? r5[o8[0]] ?? "" : o8[0] }));
  154. return new c3({ colormapInfos: s4 });
  155. }
  156. static createFromColorramp(o7) {
  157. const r5 = h(o7, 256);
  158. return c3.createFromColormap(r5);
  159. }
  160. clone() {
  161. return new c3({ colormapInfos: this.colormapInfos.map((o7) => o7.toJSON()) });
  162. }
  163. extractColormap() {
  164. return this.colormapInfos.map(({ value: o7, color: r5 }) => [o7, r5.r, r5.g, r5.b, r5.a > 1 ? r5.a : 255 * r5.a & 255]).sort((o7, r5) => o7[0] - r5[0]);
  165. }
  166. };
  167. e([d({ type: [l5], json: { write: true } })], m6.prototype, "colormapInfos", void 0), e([r3({ rasterColormap: "raster-colormap" })], m6.prototype, "type", void 0), m6 = c3 = e([n("esri.renderers.RasterColormapRenderer")], m6);
  168. var l6 = m6;
  169. // node_modules/@arcgis/core/renderers/RasterShadedReliefRenderer.js
  170. var c4;
  171. var d4 = c4 = class extends l {
  172. constructor(e4) {
  173. super(e4), this.altitude = 45, this.azimuth = 315, this.colorRamp = null, this.hillshadeType = "multi-directional", this.pixelSizePower = 0.664, this.pixelSizeFactor = 0.024, this.scalingType = "none", this.type = "raster-shaded-relief", this.zFactor = 1;
  174. }
  175. readColorRamp(e4) {
  176. return p(e4);
  177. }
  178. clone() {
  179. return new c4({ hillshadeType: this.hillshadeType, altitude: this.altitude, azimuth: this.azimuth, zFactor: this.zFactor, scalingType: this.scalingType, pixelSizeFactor: this.pixelSizeFactor, pixelSizePower: this.pixelSizePower, colorRamp: m(this.colorRamp) });
  180. }
  181. };
  182. e([d({ type: Number, json: { write: true } })], d4.prototype, "altitude", void 0), e([d({ type: Number, json: { write: true } })], d4.prototype, "azimuth", void 0), e([d({ types: m2, json: { write: true } })], d4.prototype, "colorRamp", void 0), e([o("colorRamp")], d4.prototype, "readColorRamp", null), e([d({ type: ["traditional", "multi-directional"], json: { write: true } })], d4.prototype, "hillshadeType", void 0), e([d({ type: Number, json: { write: true } })], d4.prototype, "pixelSizePower", void 0), e([d({ type: Number, json: { write: true } })], d4.prototype, "pixelSizeFactor", void 0), e([d({ type: ["none", "adjusted"], json: { write: true } })], d4.prototype, "scalingType", void 0), e([r3({ rasterShadedRelief: "raster-shaded-relief" })], d4.prototype, "type", void 0), e([d({ type: Number, json: { write: true } })], d4.prototype, "zFactor", void 0), d4 = c4 = e([n("esri.renderers.RasterShadedReliefRenderer")], d4);
  183. var m7 = d4;
  184. // node_modules/@arcgis/core/renderers/support/stretchRendererUtils.js
  185. var n6 = new s2({ none: "none", standardDeviation: "standard-deviation", histogramEqualization: "histogram-equalization", minMax: "min-max", percentClip: "percent-clip", sigmoid: "sigmoid" });
  186. var a3 = { 0: "none", 3: "standardDeviation", 4: "histogramEqualization", 5: "minMax", 6: "percentClip", 9: "sigmoid" };
  187. // node_modules/@arcgis/core/renderers/RasterStretchRenderer.js
  188. var d5;
  189. var h4 = d5 = class extends l {
  190. constructor(t4) {
  191. super(t4), this.colorRamp = null, this.computeGamma = false, this.dynamicRangeAdjustment = false, this.gamma = [], this.maxPercent = null, this.minPercent = null, this.numberOfStandardDeviations = null, this.outputMax = null, this.outputMin = null, this.sigmoidStrengthLevel = null, this.statistics = [], this.histograms = null, this.useGamma = false, this.stretchType = "none", this.type = "raster-stretch";
  192. }
  193. readColorRamp(t4) {
  194. if (t4)
  195. return p(t4);
  196. }
  197. writeStatistics(t4, e4, r5) {
  198. t4?.length && (Array.isArray(t4[0]) || (t4 = t4.map((t5) => [t5.min, t5.max, t5.avg, t5.stddev])), e4[r5] = t4);
  199. }
  200. readStretchType(t4, e4) {
  201. let r5 = e4.stretchType;
  202. return typeof r5 == "number" && (r5 = a3[r5]), n6.read(r5);
  203. }
  204. clone() {
  205. return new d5({ stretchType: this.stretchType, outputMin: this.outputMin, outputMax: this.outputMax, useGamma: this.useGamma, computeGamma: this.computeGamma, statistics: m(this.statistics), gamma: m(this.gamma), sigmoidStrengthLevel: this.sigmoidStrengthLevel, numberOfStandardDeviations: this.numberOfStandardDeviations, minPercent: this.minPercent, maxPercent: this.maxPercent, colorRamp: m(this.colorRamp), histograms: m(this.histograms), dynamicRangeAdjustment: this.dynamicRangeAdjustment });
  206. }
  207. };
  208. e([d({ types: m2, json: { write: true } })], h4.prototype, "colorRamp", void 0), e([o("colorRamp")], h4.prototype, "readColorRamp", null), e([d({ type: Boolean, json: { write: true } })], h4.prototype, "computeGamma", void 0), e([d({ type: Boolean, json: { write: { target: "dra" }, read: { source: "dra" } } })], h4.prototype, "dynamicRangeAdjustment", void 0), e([d({ type: [Number], json: { write: true } })], h4.prototype, "gamma", void 0), e([d({ type: Number, json: { write: true } })], h4.prototype, "maxPercent", void 0), e([d({ type: Number, json: { write: true } })], h4.prototype, "minPercent", void 0), e([d({ type: Number, json: { write: true } })], h4.prototype, "numberOfStandardDeviations", void 0), e([d({ type: Number, json: { read: { source: "max" }, write: { target: "max" } } })], h4.prototype, "outputMax", void 0), e([d({ type: Number, json: { read: { source: "min" }, write: { target: "min" } } })], h4.prototype, "outputMin", void 0), e([d({ type: Number, json: { write: true } })], h4.prototype, "sigmoidStrengthLevel", void 0), e([d({ json: { type: [[Number]], write: true } })], h4.prototype, "statistics", void 0), e([d()], h4.prototype, "histograms", void 0), e([r2("statistics")], h4.prototype, "writeStatistics", null), e([d({ type: Boolean, json: { write: true } })], h4.prototype, "useGamma", void 0), e([d({ type: n6.apiValues, json: { type: n6.jsonValues, write: n6.write } })], h4.prototype, "stretchType", void 0), e([o("stretchType", ["stretchType"])], h4.prototype, "readStretchType", null), e([r3({ rasterStretch: "raster-stretch" })], h4.prototype, "type", void 0), h4 = d5 = e([n("esri.renderers.RasterStretchRenderer")], h4);
  209. var y3 = h4;
  210. // node_modules/@arcgis/core/renderers/VectorFieldRenderer.js
  211. var z;
  212. var u4 = new Set(["esriMetersPerSecond", "esriKilometersPerHour", "esriKnots", "esriFeetPerSecond", "esriMilesPerHour"]);
  213. var Z = new s2({ beaufort_ft: "beaufort-ft", beaufort_km: "beaufort-km", beaufort_kn: "beaufort-kn", beaufort_m: "beaufort-m", beaufort_mi: "beaufort-mi", classified_arrow: "classified-arrow", ocean_current_kn: "ocean-current-kn", ocean_current_m: "ocean-current-m", simple_scalar: "simple-scalar", single_arrow: "single-arrow", wind_speed: "wind-barb" });
  214. var b = new s2({ flow_from: "flow-from", flow_to: "flow-to" });
  215. var h5 = z = class extends v(l) {
  216. constructor(e4) {
  217. super(e4), this.attributeField = "Magnitude", this.flowRepresentation = "flow-from", this.rotationType = "arithmetic", this.style = "single-arrow", this.symbolTileSize = 50, this.type = "vector-field";
  218. }
  219. readInputUnit(e4, M3) {
  220. return u4.has(e4) ? h2.fromJSON(e4) : null;
  221. }
  222. readOutputUnit(e4, M3) {
  223. return u4.has(e4) ? h2.fromJSON(e4) : null;
  224. }
  225. get styleRenderer() {
  226. const e4 = this.style, M3 = this.attributeField, i5 = this._createStyleRenderer(e4);
  227. return i5.field = M3, i5;
  228. }
  229. get sizeVariables() {
  230. const e4 = [];
  231. if (this.visualVariables)
  232. for (const M3 of this.visualVariables)
  233. M3.type === "size" && e4.push(M3);
  234. if (e4.length === 0) {
  235. const M3 = new j3({ field: "Magnitude", minSize: 0.2 * this.symbolTileSize, maxSize: 0.8 * this.symbolTileSize });
  236. this.visualVariables ? this.visualVariables.push(M3) : this._set("visualVariables", [M3]), e4.push(M3);
  237. }
  238. return e4;
  239. }
  240. get rotationVariables() {
  241. const e4 = [];
  242. if (this.visualVariables)
  243. for (const M3 of this.visualVariables)
  244. M3.type === "rotation" && e4.push(M3);
  245. if (e4.length === 0) {
  246. const M3 = new n3({ field: "Direction", rotationType: this.rotationType });
  247. this.visualVariables ? this.visualVariables.push(M3) : this._set("visualVariables", [M3]), e4.push(M3);
  248. }
  249. return e4;
  250. }
  251. clone() {
  252. return new z({ attributeField: this.attributeField, flowRepresentation: this.flowRepresentation, rotationType: this.rotationType, symbolTileSize: this.symbolTileSize, style: this.style, visualVariables: m(this.visualVariables), inputUnit: this.inputUnit, outputUnit: this.outputUnit });
  253. }
  254. async getGraphicsFromPixelData(e4, M3 = false, t4 = []) {
  255. const a7 = new Array(), I2 = l3(this.inputUnit, this.outputUnit), g2 = this.rotationVariables[0]?.rotationType || this.rotationType, o7 = M3 ? m5(e4.pixelBlock, "vector-uv", g2, I2) : d2(e4.pixelBlock, "vector-magdir", I2);
  256. if (t(o7))
  257. return a7;
  258. const s4 = e4.extent, A2 = o7.mask && o7.mask.length > 0;
  259. let c5 = 0;
  260. const w = (s4.xmax - s4.xmin) / o7.width, y4 = (s4.ymax - s4.ymin) / o7.height;
  261. for (let r5 = 0; r5 < o7.height; r5++)
  262. for (let e5 = 0; e5 < o7.width; e5++, c5++) {
  263. let M4 = new j({ x: s4.xmin + e5 * w + w / 2, y: s4.ymax - r5 * y4 - y4 / 2, spatialReference: s4.spatialReference });
  264. M4 = (await L(M4))[0];
  265. const I3 = t4.some((e6) => e6.intersects(M4));
  266. if ((!A2 || o7.mask[c5]) && !I3) {
  267. const e6 = { Magnitude: o7.pixels[0][c5], Direction: o7.pixels[1][c5] }, t5 = new g({ geometry: { type: "point", x: M4.x, y: M4.y, spatialReference: s4.spatialReference }, attributes: e6 });
  268. t5.symbol = this._getVisualVariablesAppliedSymbol(t5), a7.push(t5);
  269. }
  270. }
  271. return a7;
  272. }
  273. getSymbol(e4, M3) {
  274. }
  275. async getSymbolAsync(e4, M3) {
  276. }
  277. getSymbols() {
  278. return [];
  279. }
  280. getClassBreakInfos() {
  281. return this.styleRenderer?.classBreakInfos;
  282. }
  283. getDefaultSymbol() {
  284. return this.styleRenderer?.defaultSymbol;
  285. }
  286. _getDefaultSymbol(e4) {
  287. return new y2({ path: "M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z", outline: new m3({ width: 0 }), size: 20, color: e4 || new l2([0, 92, 230]) });
  288. }
  289. _getVisualVariablesAppliedSymbol(e4) {
  290. if (!e4)
  291. return;
  292. let M3 = this.styleRenderer && this.styleRenderer.getSymbol(e4);
  293. M3 = M3.clone();
  294. const i5 = this.sizeVariables, t4 = this.rotationVariables;
  295. if (i5 && i5.length && this.sizeVariables.forEach((i6) => M2(M3, T2([i6], e4))), t4 && t4.length) {
  296. const i6 = this.flowRepresentation === "flow-to" === (this.style === "ocean-current-kn" || this.style === "ocean-current-m") ? 0 : 180;
  297. e4.attributes.Direction = e4.attributes.Direction + i6, this.rotationVariables.forEach((i7) => N2(M3, m4(i7, e4), i7.axis));
  298. }
  299. return M3;
  300. }
  301. _createStyleRenderer(e4) {
  302. let M3 = { defaultSymbol: this._getDefaultSymbol(), classBreakInfos: [] };
  303. switch (e4) {
  304. case "single-arrow":
  305. M3 = this._createSingleArrowRenderer();
  306. break;
  307. case "beaufort-kn":
  308. M3 = this._createBeaufortKnotsRenderer();
  309. break;
  310. case "beaufort-m":
  311. M3 = this._createBeaufortMeterRenderer();
  312. break;
  313. case "beaufort-ft":
  314. M3 = this._createBeaufortFeetRenderer();
  315. break;
  316. case "beaufort-mi":
  317. M3 = this._createBeaufortMilesRenderer();
  318. break;
  319. case "beaufort-km":
  320. M3 = this._createBeaufortKilometersRenderer();
  321. break;
  322. case "ocean-current-m":
  323. M3 = this._createCurrentMeterRenderer();
  324. break;
  325. case "ocean-current-kn":
  326. M3 = this._createCurrentKnotsRenderer();
  327. break;
  328. case "simple-scalar":
  329. M3 = this._createSimpleScalarRenderer();
  330. break;
  331. case "wind-barb":
  332. M3 = this._createWindBarbsRenderer();
  333. break;
  334. case "classified-arrow":
  335. M3 = this._createClassifiedArrowRenderer();
  336. }
  337. return new N(M3);
  338. }
  339. _createSingleArrowRenderer() {
  340. return { defaultSymbol: this._getDefaultSymbol() };
  341. }
  342. _createBeaufortKnotsRenderer() {
  343. const e4 = [0, 1, 3, 6, 10, 16, 21, 27, 33, 40, 47, 55, 63], i5 = [[40, 146, 199], [89, 162, 186], [129, 179, 171], [160, 194, 155], [191, 212, 138], [218, 230, 119], [250, 250, 100], [252, 213, 83], [252, 179, 102], [250, 141, 52], [247, 110, 42], [240, 71, 29]];
  344. return { defaultSymbol: this._getDefaultSymbol(new l2([214, 47, 39])), classBreakInfos: this._getClassBreaks(e4, i5) };
  345. }
  346. _createBeaufortMeterRenderer() {
  347. const e4 = [0, 0.2, 1.8, 3.3, 5.4, 8.5, 11, 14.1, 17.2, 20.8, 24.4, 28.6, 32.7], i5 = [[69, 117, 181], [101, 137, 184], [132, 158, 186], [162, 180, 189], [192, 204, 190], [222, 227, 191], [255, 255, 191], [255, 220, 161], [250, 185, 132], [245, 152, 105], [237, 117, 81], [232, 21, 21]];
  348. return { defaultSymbol: this._getDefaultSymbol(new l2([214, 47, 39])), classBreakInfos: this._getClassBreaks(e4, i5) };
  349. }
  350. _createBeaufortFeetRenderer() {
  351. const e4 = this._getDefaultSymbol(new l2([214, 47, 39]));
  352. let i5 = [0, 0.2, 1.8, 3.3, 5.4, 8.5, 11, 14.1, 17.2, 20.8, 24.4, 28.6, 32.7];
  353. const t4 = [[69, 117, 181], [101, 137, 184], [132, 158, 186], [162, 180, 189], [192, 204, 190], [222, 227, 191], [255, 255, 191], [255, 220, 161], [250, 185, 132], [245, 152, 105], [237, 117, 81], [232, 21, 21]], a7 = 3.28084;
  354. i5 = i5.map((e5) => e5 * a7);
  355. return { defaultSymbol: e4, classBreakInfos: this._getClassBreaks(i5, t4) };
  356. }
  357. _createBeaufortMilesRenderer() {
  358. const e4 = this._getDefaultSymbol(new l2([214, 47, 39]));
  359. let i5 = [0, 0.2, 1.8, 3.3, 5.4, 8.5, 11, 14.1, 17.2, 20.8, 24.4, 28.6, 32.7];
  360. const t4 = [[69, 117, 181], [101, 137, 184], [132, 158, 186], [162, 180, 189], [192, 204, 190], [222, 227, 191], [255, 255, 191], [255, 220, 161], [250, 185, 132], [245, 152, 105], [237, 117, 81], [232, 21, 21]], a7 = 2.23694;
  361. i5 = i5.map((e5) => e5 * a7);
  362. return { defaultSymbol: e4, classBreakInfos: this._getClassBreaks(i5, t4) };
  363. }
  364. _createBeaufortKilometersRenderer() {
  365. const e4 = this._getDefaultSymbol(new l2([214, 47, 39]));
  366. let i5 = [0, 0.2, 1.8, 3.3, 5.4, 8.5, 11, 14.1, 17.2, 20.8, 24.4, 28.6, 32.7];
  367. const t4 = [[69, 117, 181], [101, 137, 184], [132, 158, 186], [162, 180, 189], [192, 204, 190], [222, 227, 191], [255, 255, 191], [255, 220, 161], [250, 185, 132], [245, 152, 105], [237, 117, 81], [232, 21, 21]], a7 = 3.6;
  368. i5 = i5.map((e5) => e5 * a7);
  369. return { defaultSymbol: e4, classBreakInfos: this._getClassBreaks(i5, t4) };
  370. }
  371. _createCurrentMeterRenderer() {
  372. const e4 = [0, 0.5, 1, 1.5, 2], i5 = [[78, 26, 153], [179, 27, 26], [202, 128, 26], [177, 177, 177]];
  373. return { defaultSymbol: this._getDefaultSymbol(new l2([177, 177, 177])), classBreakInfos: this._getClassBreaks(e4, i5) };
  374. }
  375. _createCurrentKnotsRenderer() {
  376. const e4 = [0, 0.25, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4], i5 = [[0, 0, 0], [0, 37, 100], [78, 26, 153], [151, 0, 100], [179, 27, 26], [177, 78, 26], [202, 128, 26], [177, 179, 52], [177, 177, 177]];
  377. return { defaultSymbol: this._getDefaultSymbol(new l2([177, 177, 177])), classBreakInfos: this._getClassBreaks(e4, i5) };
  378. }
  379. _createClassifiedArrowRenderer() {
  380. const e4 = this._getDefaultSymbol(new l2([56, 168, 0]));
  381. let i5 = [0, 1e-6, 3.5, 7, 10.5, 14];
  382. if (this.sizeVariables?.length) {
  383. const e5 = this.sizeVariables[0].minDataValue, M3 = this.sizeVariables[0].maxDataValue;
  384. if (e5 && M3) {
  385. const t5 = (M3 - e5) / 5;
  386. i5 = Array.from(Array(6).keys()).map((M4) => e5 + t5 * M4);
  387. }
  388. }
  389. const t4 = [[56, 168, 0], [139, 309, 0], [255, 255, 0], [255, 128, 0], [255, 0, 0]];
  390. return { defaultSymbol: e4, classBreakInfos: this._getClassBreaks(i5, t4) };
  391. }
  392. _createSimpleScalarRenderer() {
  393. return { defaultSymbol: n2.fromJSON({ imageData: "iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=", height: 20, width: 20, type: "esriPMS", angle: 0 }) };
  394. }
  395. _createWindBarbsRenderer() {
  396. const e4 = Array.from(Array(31).keys()).map((e5) => 5 * e5), M3 = [{ range: "0-5", path: "M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "5-10", path: "M25 0 L25 40 M25 35 L17.5 37.5", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "10-15", path: "M25 0 L25 40 L10 45 L25 40", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "15-20", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "20-25", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "25-30", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5", imageData: "PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "30-35", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "35-40", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "40-45", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "45-50", path: "M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "50-55", path: "M25 0 L25 40 L10 40 L25 35", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "55-60", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "60-65", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "65-70", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "70-75", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "75-80", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "80-85", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "85-90", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "90-95", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "95-100", path: "M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }, { range: "100-105", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "105-110", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "110-115", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "115-120", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "120-125", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "125-130", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "130-135", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "135-140", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg==" }, { range: "140-145", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+" }, { range: "145-150", path: "M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5", imageData: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4=" }], i5 = n2.fromJSON({ imageData: "iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC", height: 20, width: 20, type: "esriPMS", angle: 0 }), t4 = e4.map((t5, a7) => {
  397. let I2;
  398. if (a7 !== e4.length - 1)
  399. if (a7 === 0)
  400. I2 = { minValue: t5, maxValue: e4[a7 + 1], symbol: i5 };
  401. else {
  402. const i6 = n2.fromJSON({ type: "esriPMS", imageData: M3[a7].imageData, contentType: "image/svg+xml", height: 32, width: 32, angle: 0 });
  403. I2 = { minValue: t5, maxValue: e4[a7 + 1], symbol: i6 };
  404. }
  405. return new a2(I2);
  406. });
  407. return { defaultSymbol: i5, classBreakInfos: t4 };
  408. }
  409. _getClassBreaks(e4, i5) {
  410. return i5.map((i6, t4) => new a2({ minValue: e4[t4], maxValue: e4[t4 + 1], symbol: this._getDefaultSymbol(new l2(i6)) }));
  411. }
  412. };
  413. e([d({ type: String, json: { write: true } })], h5.prototype, "attributeField", void 0), e([d({ type: b.apiValues, json: { type: b.jsonValues, read: { reader: b.read }, write: { writer: b.write } } })], h5.prototype, "flowRepresentation", void 0), e([d({ type: ["geographic", "arithmetic"], json: { write: true } })], h5.prototype, "rotationType", void 0), e([d({ type: Z.apiValues, json: { type: Z.jsonValues, read: { reader: Z.read }, write: { writer: Z.write } } })], h5.prototype, "style", void 0), e([d({ json: { write: true } })], h5.prototype, "symbolTileSize", void 0), e([d({ type: h2.apiValues, json: { type: h2.jsonValues, write: { writer: h2.write } } })], h5.prototype, "inputUnit", void 0), e([o("inputUnit")], h5.prototype, "readInputUnit", null), e([d({ type: h2.apiValues, json: { type: h2.jsonValues, read: { reader: h2.read }, write: { writer: h2.write } } })], h5.prototype, "outputUnit", void 0), e([o("outputUnit")], h5.prototype, "readOutputUnit", null), e([r3({ vectorField: "vector-field" })], h5.prototype, "type", void 0), e([d({ type: N })], h5.prototype, "styleRenderer", null), e([d({ type: j3 })], h5.prototype, "sizeVariables", null), e([d({ type: n3 })], h5.prototype, "rotationVariables", null), h5 = z = e([n("esri.renderers.VectorFieldRenderer")], h5);
  414. var E = h5;
  415. // node_modules/@arcgis/core/rasterRenderers.js
  416. var l7 = { key: "type", base: null, typeMap: { "unique-value": P, "class-breaks": N, "raster-colormap": l6, "raster-stretch": y3, "vector-field": E, "raster-shaded-relief": m7, flow: u3 } };
  417. var i2 = { ...l7, typeMap: { ...l7.typeMap } };
  418. delete i2.typeMap["vector-field"], delete i2.typeMap.flow;
  419. var f = { uniqueValue: P, classBreaks: N, rasterStretch: y3, rasterColormap: l6, vectorField: E, rasterShadedRelief: m7, flowRenderer: u3 };
  420. function p3(e4) {
  421. return e4 && f[e4.type] || null;
  422. }
  423. function u5(r5, s4) {
  424. if (!r5)
  425. return null;
  426. if (r5.type === "classBreaks" && r5.classificationMethod) {
  427. const e4 = r5.authoringInfo || { classificationMethod: "" };
  428. e4.classificationMethod = r5.classificationMethod, r5.authoringInfo = e4;
  429. }
  430. r5.type === "vectorField" && r5.visualVariables && !Array.isArray(r5.visualVariables) && (r5.visualVariables = [r5.visualVariables]);
  431. const t4 = p3(r5);
  432. if (t4) {
  433. const e4 = new t4();
  434. return e4.read(r5, s4), e4;
  435. }
  436. return s4 && s4.messages && r5 && s4.messages.push(new t2("renderer:unsupported", "Renderers of type '" + (r5.type || "unknown") + "' are not supported", { definition: r5, context: s4 })), null;
  437. }
  438. // node_modules/@arcgis/core/layers/support/rasterEnums.js
  439. var o5 = o2()({ RSP_NearestNeighbor: "nearest", RSP_BilinearInterpolation: "bilinear", RSP_CubicConvolution: "cubic", RSP_Majority: "majority" });
  440. var i3 = o2()({ esriNoDataMatchAny: "any", esriNoDataMatchAll: "all" });
  441. // node_modules/@arcgis/core/layers/support/DimensionalDefinition.js
  442. var a4;
  443. var n7 = a4 = class extends l {
  444. constructor(e4) {
  445. super(e4), this.variableName = null, this.dimensionName = null, this.values = [], this.isSlice = false;
  446. }
  447. clone() {
  448. return new a4({ variableName: this.variableName, dimensionName: this.dimensionName, values: m(this.values), isSlice: this.isSlice });
  449. }
  450. };
  451. e([d({ type: String, json: { write: true } })], n7.prototype, "variableName", void 0), e([d({ type: String, json: { write: true } })], n7.prototype, "dimensionName", void 0), e([d({ type: T.array(T.oneOf([T.native(Number), T.array(T.native(Number))])), json: { write: true } })], n7.prototype, "values", void 0), e([d({ type: Boolean, json: { write: true } })], n7.prototype, "isSlice", void 0), n7 = a4 = e([n("esri.layers.support.DimensionalDefinition")], n7);
  452. var p4 = n7;
  453. // node_modules/@arcgis/core/layers/support/RasterJobHandler.js
  454. var n8 = class {
  455. constructor() {
  456. this._workerThread = null, this._destroyed = false;
  457. }
  458. async initialize() {
  459. const e4 = await u2("RasterWorker");
  460. this._destroyed ? e4.close() : this._workerThread = e4;
  461. }
  462. destroy() {
  463. this._destroyed = true, this._workerThread && (this._workerThread.close(), this._workerThread = null);
  464. }
  465. async convertVectorFieldData(r5, o7) {
  466. if (!this._workerThread)
  467. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  468. const n9 = await this._workerThread.invoke("convertVectorFieldData", { pixelBlock: r5.pixelBlock.toJSON(), type: r5.dataType }, o7);
  469. return n9 ? new u(n9) : null;
  470. }
  471. async decode(r5, o7) {
  472. if (!this._workerThread)
  473. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  474. const n9 = await this._workerThread.invoke("decode", r5, o7);
  475. return n9 ? new u(n9) : null;
  476. }
  477. async symbolize(o7, n9) {
  478. if (!this._workerThread)
  479. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  480. const a7 = { extent: o7.extent && o7.extent.toJSON(), pixelBlock: r(o7.pixelBlock) && o7.pixelBlock.toJSON(), simpleStretchParams: o7.simpleStretchParams, bandIds: o7.bandIds }, i5 = await this._workerThread.invoke("symbolize", a7, n9);
  481. return i5 ? new u(i5) : null;
  482. }
  483. async updateSymbolizer(r5, o7) {
  484. if (!this._workerThread)
  485. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  486. const t4 = r5?.rendererJSON?.histograms;
  487. await Promise.all(this._workerThread.broadcast("updateSymbolizer", { symbolizerJSON: r5.toJSON(), histograms: t4 }, o7));
  488. }
  489. async stretch(r5, o7) {
  490. if (!this._workerThread)
  491. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  492. if (!r5?.pixelBlock)
  493. return null;
  494. const n9 = { srcPixelBlock: r5.pixelBlock.toJSON(), stretchParams: r5.stretchParams }, a7 = await this._workerThread.invoke("stretch", n9, o7);
  495. return a7 ? new u(a7) : null;
  496. }
  497. async split(r5, o7) {
  498. if (!this._workerThread)
  499. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  500. if (!r5?.pixelBlock)
  501. return null;
  502. const n9 = { srcPixelBlock: r5.pixelBlock.toJSON(), tileSize: r5.tileSize, maximumPyramidLevel: r5.maximumPyramidLevel }, a7 = await this._workerThread.invoke("split", n9, o7);
  503. return a7 && a7.forEach((e4, r6) => {
  504. a7.set(r6, e4 ? u.fromJSON(e4) : null);
  505. }), a7;
  506. }
  507. async estimateStatisticsHistograms(r5, o7) {
  508. if (!this._workerThread)
  509. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  510. if (!r5?.pixelBlock)
  511. return null;
  512. const t4 = { srcPixelBlock: r5.pixelBlock.toJSON() };
  513. return await this._workerThread.invoke("estimateStatisticsHistograms", t4, o7);
  514. }
  515. async mosaicAndTransform(o7, n9) {
  516. if (!this._workerThread)
  517. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  518. if (!o7?.srcPixelBlocks?.length)
  519. return { pixelBlock: null };
  520. const a7 = { ...o7, srcPixelBlocks: o7.srcPixelBlocks.map((e4) => r(e4) ? e4.toJSON() : null) }, i5 = await this._workerThread.invoke("mosaicAndTransform", a7, n9);
  521. return { pixelBlock: i5.pixelBlock ? new u(i5.pixelBlock) : null, localNorthDirections: i5.localNorthDirections };
  522. }
  523. async createFlowMesh(r5, o7) {
  524. if (!this._workerThread)
  525. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  526. const t4 = { buffer: r5.flowData.data.buffer, maskBuffer: r5.flowData.mask.buffer, width: r5.flowData.width, height: r5.flowData.height }, { meshType: n9, simulationSettings: a7 } = r5, i5 = await this._workerThread.invoke("createFlowMesh", { meshType: n9, flowData: t4, simulationSettings: a7 }, { ...o7, transferList: [t4.buffer, t4.maskBuffer] });
  527. return { vertexData: new Float32Array(i5.vertexBuffer), indexData: new Uint32Array(i5.indexBuffer) };
  528. }
  529. getProjectionOffsetGrid(o7, t4) {
  530. if (!this._workerThread)
  531. throw new s("raster-jobhandler:no-connection", "no available worker connection");
  532. const n9 = r(o7.datumTransformation) ? o7.datumTransformation.steps.map((e4) => ({ wkid: e4.wkid, wkt: e4.wkt, isInverse: e4.isInverse })) : null, a7 = r(o7.rasterTransform) ? o7.rasterTransform.toJSON() : null, i5 = { projectedExtent: o7.projectedExtent.toJSON(), srcBufferExtent: o7.srcBufferExtent.toJSON(), pixelSize: o7.pixelSize, hasWrapAround: o7.hasWrapAround, spacing: o7.spacing, datumTransformationSteps: n9, rasterTransform: a7, isAdaptive: o7.isAdaptive, includeGCSGrid: o7.includeGCSGrid };
  533. return this._workerThread.invoke("getProjectionOffsetGrid", i5, t4);
  534. }
  535. };
  536. // node_modules/@arcgis/core/layers/support/rasterDatasets/multidimensionalUtils.js
  537. function a5(e4, n9, t4) {
  538. const r5 = n9.shift();
  539. if (t4.length === 0) {
  540. const e5 = [];
  541. t4.push({ sliceId: -1, multidimensionalDefinition: e5 });
  542. }
  543. const s4 = t4.length;
  544. for (let a7 = 0; a7 < s4; a7++) {
  545. const n10 = t4.shift().multidimensionalDefinition;
  546. r5.values.forEach((a8) => {
  547. t4.push({ sliceId: -1, multidimensionalDefinition: [...n10, { variableName: e4, dimensionName: r5.name, values: [a8] }] });
  548. });
  549. }
  550. n9.length && a5(e4, n9, t4);
  551. }
  552. function r4(e4, n9) {
  553. const t4 = [];
  554. let r5 = 0;
  555. return (n9 ? e4.variables.filter((e5) => e5.name.toLowerCase() === n9.toLowerCase()) : [...e4.variables].sort((e5, n10) => e5.name > n10.name ? 1 : -1)).forEach((e5) => {
  556. const n10 = [], s4 = [...e5.dimensions].sort((e6, n11) => e6.name > n11.name ? -1 : 1);
  557. a5(e5.name, s4, n10), n10.forEach((e6) => {
  558. t4.push({ ...e6, sliceId: r5++ });
  559. });
  560. }), t4;
  561. }
  562. function s3(n9, t4, a7) {
  563. let r5 = n9;
  564. if (t4 && (t4 = [...t4].sort((e4, n10) => e4.dimensionName < n10.dimensionName ? -1 : 1)).forEach(({ dimensionName: e4, values: n10, isSlice: t5 }) => {
  565. n10.length && (r5 = r5.filter((a8) => {
  566. const r6 = a8.multidimensionalDefinition.find((n11) => n11.dimensionName === e4);
  567. if (r6 == null)
  568. return false;
  569. const s4 = r6.values[0];
  570. return typeof s4 == "number" ? typeof n10[0] == "number" ? n10.includes(s4) : n10.some((e5) => e5[0] <= s4 && e5[1] >= s4) : typeof n10[0] == "number" ? n10.some((e5) => s4[0] <= e5 && s4[1] >= e5) : t5 ? n10.some((e5) => e5[0] === s4[0] && e5[0] === s4[1]) : n10.some((e5) => e5[0] >= s4[0] && e5[0] <= s4[1] || e5[1] >= s4[0] && e5[1] <= s4[1] || e5[0] < s4[0] && e5[1] > s4[1]);
  571. }));
  572. }), r5.length && a7 && r(a7.start) && r(a7.end)) {
  573. const e4 = a7.start.getTime(), n10 = a7.end.getTime(), t5 = r5[0].multidimensionalDefinition.findIndex((e5) => e5.dimensionName === "StdTime");
  574. t5 > -1 && (r5 = r5.filter((a8) => {
  575. const r6 = a8.multidimensionalDefinition[t5].values[0];
  576. return e4 <= r6 && n10 >= r6;
  577. }));
  578. }
  579. return r5.map((e4) => e4.sliceId);
  580. }
  581. function i4(e4, a7) {
  582. const { multidimensionalInfo: r5, keyProperties: s4 } = e4;
  583. if (t(r5))
  584. return null;
  585. const i5 = s4?.DefaultVariable, { variables: o7 } = r5, l10 = i5 ? o7.find(({ name: e5 }) => e5 === i5) ?? o7[0] : o7[0];
  586. return l10.dimensions.map((e5) => {
  587. const { values: n9, extent: r6 } = e5;
  588. let s5 = n9?.[0] ?? r6[0];
  589. return e5.name.toLowerCase() === "stdz" && !e5.hasRanges && Math.abs(r6[1]) <= Math.abs(r6[0]) && (s5 = n9?.length ? e5.values[n9.length - 1] : r6[1]), new p4({ variableName: l10.name, dimensionName: e5.name, values: [s5], isSlice: !a7 || !!e5.hasRanges });
  590. });
  591. }
  592. function o6(e4) {
  593. return !(t(e4) || !e4.length) && e4.some((e5) => {
  594. if (e5.values == null)
  595. return true;
  596. const n9 = e5.values.length;
  597. return n9 === 0 || n9 > 1 || !e5.isSlice && Array.isArray(e5.values[0]);
  598. });
  599. }
  600. function l8(e4, n9) {
  601. const { values: t4 } = n9;
  602. if (t4?.length)
  603. return Array.isArray(t4[0]) !== Array.isArray(e4) ? -1 : Array.isArray(t4[0]) ? t4.findIndex((n10) => n10[0] === e4[0] && n10[1] === e4[1]) : t4.indexOf(e4);
  604. const { extent: a7 } = n9;
  605. if (Array.isArray(e4) || e4 < a7[0] || e4 > a7[1])
  606. return -1;
  607. const r5 = n9.interval || 1;
  608. if (n9.unit !== "ISO8601")
  609. return Math.round((e4 - a7[0]) / r5);
  610. const s4 = a7[0];
  611. let i5 = -1;
  612. switch (n9.intervalUnit?.toLowerCase() || "seconds") {
  613. case "seconds":
  614. i5 = Math.round((e4 - s4) / 1e3 / r5);
  615. break;
  616. case "minutes":
  617. i5 = Math.round((e4 - s4) / 6e4 / r5);
  618. break;
  619. case "hours":
  620. i5 = Math.round((e4 - s4) / 36e5 / r5);
  621. break;
  622. case "days":
  623. i5 = Math.round((e4 - s4) / 864e5 / r5);
  624. break;
  625. case "months":
  626. {
  627. const n10 = new Date(e4).getUTCFullYear() - new Date(s4).getUTCFullYear(), t5 = new Date(s4).getUTCMonth(), a8 = new Date(e4).getUTCMonth();
  628. i5 = n10 === 0 ? a8 - t5 : a8 + 11 - t5 + 12 * (n10 - 1);
  629. }
  630. break;
  631. case "years":
  632. i5 = Math.round((new Date(e4).getUTCFullYear() - new Date(s4).getUTCFullYear()) / r5);
  633. break;
  634. case "decades":
  635. i5 = Math.round((new Date(e4).getUTCFullYear() - new Date(s4).getUTCFullYear()) / 10 / r5);
  636. }
  637. return i5;
  638. }
  639. function u6(e4) {
  640. let n9 = e4.values?.length;
  641. if (n9)
  642. return n9;
  643. const { extent: t4, unit: a7 } = e4, r5 = e4.interval || 1, s4 = t4[1] - t4[0];
  644. if (a7 !== "ISO8601")
  645. return Math.round(s4 / r5);
  646. switch (e4.intervalUnit?.toLowerCase() ?? "seconds") {
  647. case "seconds":
  648. n9 = Math.round(s4 / 1e3 / r5);
  649. break;
  650. case "minutes":
  651. n9 = Math.round(s4 / 6e4 / r5);
  652. break;
  653. case "hours":
  654. n9 = Math.round(s4 / 36e5 / r5);
  655. break;
  656. case "days":
  657. n9 = Math.round(s4 / 864e5 / r5);
  658. break;
  659. case "months":
  660. {
  661. const e5 = new Date(t4[1]).getUTCFullYear() - new Date(t4[0]).getUTCFullYear(), a8 = new Date(t4[1][0]).getUTCMonth(), r6 = new Date(t4[1][1]).getUTCMonth();
  662. n9 = e5 === 0 ? r6 - a8 + 1 : r6 + 11 - a8 + 12 * (e5 - 1) + 1;
  663. }
  664. break;
  665. case "years":
  666. n9 = Math.round((new Date(t4[1]).getUTCFullYear() - new Date(t4[0]).getUTCFullYear()) / r5);
  667. break;
  668. case "decades":
  669. n9 = Math.round((new Date(t4[1]).getUTCFullYear() - new Date(t4[0]).getUTCFullYear()) / 10 / r5);
  670. break;
  671. default:
  672. n9 = 0;
  673. }
  674. return n9;
  675. }
  676. function m8(e4, n9) {
  677. let t4 = 0;
  678. const a7 = e4[0].variableName, r5 = [...n9.variables].sort((e5, n10) => e5.name > n10.name ? 1 : -1);
  679. for (let s4 = 0; s4 < r5.length; s4++) {
  680. const n10 = r5[s4], i5 = [...n10.dimensions].sort((e5, n11) => e5.name > n11.name ? -1 : 1);
  681. if (n10.name !== a7) {
  682. t4 += i5.map((e5) => u6(e5)).reduce((e5, n11) => e5 * n11);
  683. continue;
  684. }
  685. const o7 = i5.map((e5) => u6(e5)), m10 = i5.length;
  686. for (let a8 = 0; a8 < m10; a8++) {
  687. const n11 = e4.find((e5) => e5.dimensionName === i5[a8].name);
  688. if (n11 == null)
  689. return null;
  690. const r6 = l8(n11.values[0], i5[a8]);
  691. if (r6 === -1)
  692. return null;
  693. o7.shift(), t4 += a8 === m10 - 1 ? r6 : r6 * o7.reduce((e5, n12) => e5 * n12);
  694. }
  695. break;
  696. }
  697. return t4;
  698. }
  699. // node_modules/@arcgis/core/renderers/support/rasterRendererHelper.js
  700. var x2 = 0.25;
  701. var T3 = a.fromJSON({ type: "multipart", colorRamps: [{ fromColor: [0, 0, 255], toColor: [0, 255, 255] }, { fromColor: [0, 255, 255], toColor: [255, 255, 0] }, { fromColor: [255, 255, 0], toColor: [255, 0, 0] }] });
  702. var R = a.fromJSON(i[0]);
  703. var j4 = new Set(["scientific", "standard-time", "vector-uv", "vector-magdir", "vector-u", "vector-v", "vector-magnitude", "vector-direction"]);
  704. function k2(e4, n9) {
  705. const { attributeTable: r5, colormap: a7 } = e4;
  706. if (X(e4)) {
  707. const n10 = $(e4);
  708. if (r(n10))
  709. return n10;
  710. }
  711. if (r(a7)) {
  712. const n10 = A(e4);
  713. if (r(n10))
  714. return n10;
  715. }
  716. if (r(r5)) {
  717. const n10 = N3(e4);
  718. if (r(n10))
  719. return n10;
  720. }
  721. return S2(e4, n9);
  722. }
  723. function V(e4) {
  724. const t4 = ["raster-stretch"];
  725. return U2(e4) && t4.push("raster-colormap"), O(e4) && t4.push("unique-value"), _(e4) && t4.push("class-breaks"), D(e4) && t4.push("raster-shaded-relief"), X(e4) && t4.push("vector-field"), Y(e4) && t4.push("flow"), t4;
  726. }
  727. function I(e4, t4, n9) {
  728. const r5 = ["nearest", "bilinear", "cubic", "majority"].find((e5) => e5 === n9?.toLowerCase());
  729. if (t4 === "Map")
  730. return r5 ?? "bilinear";
  731. if (e4.dataType === "standard-time")
  732. return r5 ?? "nearest";
  733. return e4.dataType === "thematic" || e4.attributeTable || e4.colormap ? r5 === "nearest" || r5 === "majority" ? r5 : "nearest" : r5 ?? "bilinear";
  734. }
  735. function S2(e4, r5) {
  736. e4 = L2(e4, r5?.variableName);
  737. const { bandCount: a7 } = e4;
  738. let { bandIds: s4, stretchType: o7 } = r5 || {};
  739. s4?.some((e5) => e5 >= a7) && (s4 = null);
  740. let i5 = e2(e4.statistics), l10 = e2(e4.histograms);
  741. a7 > 1 ? (s4 = s4?.length ? s4 : B(e4), i5 = i5 == null ? null : s4.map((e5) => i5[e5]), l10 = l10 == null ? null : s4.map((e5) => l10[e5])) : s4 = [0], o7 == null && (o7 = F(e4));
  742. let u8 = false;
  743. switch (o7) {
  744. case "none":
  745. u8 = false;
  746. break;
  747. case "percent-clip":
  748. u8 = !l10?.length;
  749. break;
  750. default:
  751. u8 = !i5?.length;
  752. }
  753. const { dataType: m10 } = e4, c5 = s4?.length === 1 && j4.has(m10) ? T3 : null, f3 = new y3({ stretchType: o7, dynamicRangeAdjustment: u8, colorRamp: c5, outputMin: 0, outputMax: 255, gamma: s4.length === 1 ? [1] : [1, 1, 1], useGamma: false });
  754. return o7 === "percent-clip" ? f3.maxPercent = f3.minPercent = x2 : o7 === "standard-deviation" && (f3.numberOfStandardDeviations = 2), u8 || !r(e4.multidimensionalInfo) && !r5?.includeStatisticsInStretch || (o7 === "percent-clip" ? f3.histograms = l10 : o7 !== "min-max" && o7 !== "standard-deviation" || (f3.statistics = i5)), f3;
  755. }
  756. function L2(e4, r5) {
  757. if (r5 == null)
  758. return e4;
  759. let a7 = e2(e4.statistics), s4 = e2(e4.histograms);
  760. const { multidimensionalInfo: i5 } = e4;
  761. if (r5 && r(i5)) {
  762. const e5 = i5.variables.find((e6) => e6.name === r5);
  763. if (e5) {
  764. const { statistics: t4, histograms: n9 } = e5;
  765. t4?.length && (a7 = t4), n9?.length && (s4 = n9);
  766. }
  767. }
  768. return l4.fromJSON({ ...e4.toJSON(), statistics: a7, histograms: s4 });
  769. }
  770. function B(e4) {
  771. const t4 = e4.bandCount;
  772. if (t4 === 1)
  773. return null;
  774. if (t4 === 2)
  775. return [0];
  776. const n9 = e4.keyProperties && e4.keyProperties.BandProperties;
  777. let r5;
  778. if (n9 && n9.length === t4) {
  779. const { red: e5, green: t5, blue: a7, nir: s4 } = q(n9);
  780. e5 != null && t5 != null && a7 != null ? r5 = [e5, t5, a7] : s4 != null && e5 != null && t5 != null && (r5 = [s4, e5, t5]);
  781. }
  782. return !r5 && t4 >= 3 && (r5 = [0, 1, 2]), r5;
  783. }
  784. function q(e4) {
  785. const t4 = {};
  786. for (let n9 = 0; n9 < e4.length; n9++) {
  787. const r5 = e4[n9], a7 = r5.BandName?.toLowerCase();
  788. if (a7 === "red")
  789. t4.red = n9;
  790. else if (a7 === "green")
  791. t4.green = n9;
  792. else if (a7 === "blue")
  793. t4.blue = n9;
  794. else if (a7 === "nearinfrared" || a7 === "nearinfrared_1" || a7 === "nir")
  795. t4.nir = n9;
  796. else if (r5.WavelengthMax && r5.WavelengthMin) {
  797. const e5 = r5.WavelengthMin, a8 = r5.WavelengthMax;
  798. t4.blue == null && e5 >= 410 && e5 <= 480 && a8 >= 480 && a8 <= 540 ? t4.blue = n9 : t4.green == null && e5 >= 490 && e5 <= 560 && a8 >= 560 && a8 <= 610 ? t4.green = n9 : t4.red == null && e5 >= 595 && e5 <= 670 && a8 >= 660 && a8 <= 730 ? t4.red = n9 : t4.nir == null && e5 >= 700 && e5 <= 860 && a8 >= 800 && a8 <= 950 && (t4.nir = n9);
  799. }
  800. }
  801. return t4;
  802. }
  803. function F(e4) {
  804. let n9 = "percent-clip";
  805. const { pixelType: r5, dataType: a7, histograms: s4, statistics: o7 } = e4;
  806. return r5 !== "u8" || a7 !== "processed" && r(s4) && r(o7) ? r5 === "u8" || a7 === "elevation" || j4.has(a7) ? n9 = "min-max" : r(s4) ? n9 = "percent-clip" : r(o7) && (n9 = "min-max") : n9 = "none", n9;
  807. }
  808. function N3(n9, r5, a7, s4) {
  809. if (!O(n9, r5))
  810. return null;
  811. const { attributeTable: o7, statistics: i5 } = n9, u8 = P2(o7, r5), m10 = W(o7, "red"), p5 = W(o7, "green"), d6 = W(o7, "blue"), b2 = new j2(), h6 = [], g2 = new Set(), v2 = !!(m10 && p5 && d6);
  812. if (r(o7))
  813. o7.features.forEach((t4) => {
  814. const n10 = t4.attributes[u8.name];
  815. if (!g2.has(t4.attributes[u8.name]) && n10 != null) {
  816. g2.add(n10);
  817. const r6 = v2 && (m10.type === "single" || m10.type === "double") && (p5.type === "single" || p5.type === "double") && (d6.type === "single" || d6.type === "double") && !o7.features.some((e4) => e4.attributes[m10.name] > 1 || e4.attributes[p5.name] > 1 || e4.attributes[d6.name] > 1), a8 = r6 ? 255 : 1;
  818. h6.push(new n4({ value: t4.attributes[u8.name], label: t4.attributes[u8.name] + "", symbol: { type: "simple-fill", style: "solid", outline: null, color: new l2(v2 ? [t4.attributes[m10.name] * a8, t4.attributes[p5.name] * a8, t4.attributes[d6.name] * a8, 1] : [0, 0, 0, 0]) } }));
  819. }
  820. });
  821. else if (i5?.[0])
  822. for (let t4 = i5[0].min; t4 <= i5[0].max; t4++)
  823. h6.push(new n4({ value: t4, label: t4.toString(), symbol: { type: "simple-fill", style: "solid", outline: null, color: new l2([0, 0, 0, 0]) } }));
  824. if (h6.sort((e4, t4) => e4.value && typeof e4.value.valueOf() == "string" ? 0 : e4.value > t4.value ? 1 : -1), !v2) {
  825. const t4 = h(R, h6.length);
  826. h6.forEach((n10, r6) => n10.symbol.color = new l2(t4[r6].slice(1, 4))), b2.colorRamp = R;
  827. }
  828. if (a7 || s4) {
  829. const t4 = a7 || h(s4, h6.length).map((e4) => e4.slice(1));
  830. h6.forEach((n10, r6) => n10.symbol.color = new l2(t4[r6])), b2.colorRamp = s4;
  831. }
  832. return new P({ field: u8.name, uniqueValueInfos: h6, authoringInfo: b2 });
  833. }
  834. function P2(e4, n9, r5) {
  835. let a7;
  836. return r(e4) ? (a7 = n9 ? e4.fields.find((e5) => n9.toLowerCase() === e5.name.toLowerCase()) : z3(e4.fields), a7 || (r5 || (a7 = e4.fields.find((e5) => e5.type === "string")), a7 || (a7 = W(e4, "value")))) : a7 = new y({ name: "value" }), a7;
  837. }
  838. function z3(e4) {
  839. let t4;
  840. for (let n9 = 0; n9 < e4.length; n9++) {
  841. const r5 = e4[n9].name.toLowerCase();
  842. if (e4[n9].type === "string") {
  843. if (r5.startsWith("class")) {
  844. t4 = e4[n9];
  845. break;
  846. }
  847. t4 == null && (r5.endsWith("name") || r5.endsWith("type")) && (t4 = e4[n9]);
  848. }
  849. }
  850. return t4;
  851. }
  852. function W(e4, t4) {
  853. return t(e4) ? null : e4.fields.find((e5) => e5.name.toLowerCase() === t4);
  854. }
  855. function O(e4, t4) {
  856. const { attributeTable: n9, bandCount: a7 } = e4;
  857. if (t(n9) && K(e4))
  858. return true;
  859. if (t(n9) || a7 > 1)
  860. return false;
  861. if (t4) {
  862. if (n9.fields.find((e5) => e5.name.toLowerCase() === t4.toLowerCase()) == null)
  863. return false;
  864. }
  865. return true;
  866. }
  867. function U2(e4) {
  868. const { bandCount: n9, colormap: r5 } = e4;
  869. return r(r5) && r5.length && n9 === 1;
  870. }
  871. function A(e4) {
  872. if (!U2(e4))
  873. return null;
  874. let r5;
  875. const { attributeTable: a7, colormap: s4 } = e4;
  876. if (r(a7)) {
  877. const e5 = W(a7, "value"), t4 = P2(a7, null, true);
  878. t4.type === "string" && (r5 = {}, a7.features.forEach((n9) => {
  879. const a8 = n9.attributes;
  880. r5[a8[e5.name]] = t4 ? a8[t4.name] : a8[e5.name];
  881. }));
  882. }
  883. return l6.createFromColormap(e2(s4), r5);
  884. }
  885. function D(e4) {
  886. const { bandCount: t4, dataType: n9, pixelType: r5 } = e4;
  887. return n9 === "elevation" || n9 === "generic" && t4 === 1 && (r5 === "s16" || r5 === "f32" || r5 === "f64");
  888. }
  889. function _(e4) {
  890. const { attributeTable: n9, bandCount: r5 } = e4;
  891. return r5 === 1 && (r(n9) || r(e4.histograms));
  892. }
  893. function K(e4) {
  894. return ["u8", "s8"].includes(e4.pixelType) && e4.statistics?.[0]?.min != null && e4.statistics[0]?.max != null && e4.bandCount === 1;
  895. }
  896. function X(e4) {
  897. const { dataType: t4 } = e4;
  898. return t4 === "vector-uv" || t4 === "vector-magdir";
  899. }
  900. function Y(e4) {
  901. const { dataType: t4 } = e4;
  902. return t4 === "vector-uv" || t4 === "vector-magdir";
  903. }
  904. var Z2 = new Map([["m/s", "meter-per-second"], ["km/h", "kilometer-per-hour"], ["knots", "knots"], ["ft/s", "feet-per-second"], ["mph", "mile-per-hour"]]);
  905. function $(e4) {
  906. if (!X(e4))
  907. return null;
  908. let n9;
  909. if (r(e4.statistics) && e4.statistics.length && (e4.dataType === "vector-magdir" || e4.dataType === "vector-uv")) {
  910. const { minMagnitude: t4, maxMagnitude: r6 } = re(e4.dataType, e4.statistics);
  911. n9 = [{ type: "size", field: "Magnitude", minSize: 10, maxSize: 40, minDataValue: t4, maxDataValue: r6 }];
  912. }
  913. const r5 = r(e4.multidimensionalInfo) ? Z2.get(e4.multidimensionalInfo.variables[0].unit) : null, a7 = new E({ visualVariables: n9, inputUnit: r5, rotationType: "geographic" });
  914. return a7.visualVariables = [...a7.sizeVariables, ...a7.rotationVariables], a7;
  915. }
  916. function ee(e4) {
  917. return { color: e4.symbolLayers[0].material?.color, type: "esriSFS", style: "esriSFSSolid" };
  918. }
  919. function te(e4) {
  920. if (e4.type === "uniqueValue") {
  921. const t4 = e4.uniqueValueInfos;
  922. return t4[0].symbol?.symbolLayers?.length && (e4.uniqueValueInfos = t4.map((e5) => ({ value: e5.value, label: e5.label, symbol: e5.symbol ? ee(e5.symbol) : null }))), e4;
  923. }
  924. if (e4.type === "classBreaks") {
  925. const t4 = e4.classBreakInfos;
  926. return t4[0].symbol?.symbolLayers?.length && (e4.classBreakInfos = t4.map((e5) => ({ classMinValue: e5.classMinValue, classMaxValue: e5.classMaxValue, label: e5.label, symbol: e5.symbol ? ee(e5.symbol) : null }))), e4;
  927. }
  928. return e4;
  929. }
  930. function re(e4, t4) {
  931. let n9, r5;
  932. if (e4 === "vector-magdir")
  933. n9 = t4[0].min, r5 = t4[0].max;
  934. else {
  935. const e5 = t4[0].min, a7 = t4[0].max, s4 = t4[1].min, o7 = t4[1].max;
  936. n9 = 0, r5 = Math.max(Math.abs(e5), Math.abs(s4), Math.abs(a7), Math.abs(o7));
  937. }
  938. return { minMagnitude: n9, maxMagnitude: r5 };
  939. }
  940. // node_modules/@arcgis/core/rest/imageService/fetchRasterInfo.js
  941. async function u7(u8, m10, f3) {
  942. const p5 = n5(u8), { renderingRule: c5, sourceJSON: d6 } = m10 || {}, h6 = c5 ? JSON.stringify(c5.rasterFunctionDefinition || c5) : null, g2 = o4({ ...p5.query, renderingRule: h6, f: "json" }), v2 = e3(g2, f3);
  943. u8 = p5.path;
  944. const y4 = d6 || await U(u8, v2).then((e4) => e4.data), S3 = y4.hasRasterAttributeTable ? U(`${u8}/rasterAttributeTable`, v2) : null, V2 = y4.hasColormap ? U(`${u8}/colormap`, v2) : null, x3 = y4.hasHistograms ? U(`${u8}/histograms`, v2) : null, b2 = y4.currentVersion >= 10.3 ? U(`${u8}/keyProperties`, v2) : null, D2 = y4.hasMultidimensions ? U(`${u8}/multidimensionalInfo`, v2) : null, R2 = await Promise.allSettled([S3, V2, x3, b2, D2]);
  945. let T4 = null;
  946. if (y4.minValues && y4.minValues.length === y4.bandCount) {
  947. T4 = [];
  948. for (let e4 = 0; e4 < y4.minValues.length; e4++)
  949. T4.push({ min: y4.minValues[e4], max: y4.maxValues[e4], avg: y4.meanValues[e4], stddev: y4.stdvValues[e4] });
  950. }
  951. const j5 = M.fromJSON(y4.extent), w = Math.ceil(j5.width / y4.pixelSizeX - 0.1), J = Math.ceil(j5.height / y4.pixelSizeY - 0.1), N4 = k.fromJSON(y4.spatialReference || y4.extent.spatialReference), O2 = R2[0].status === "fulfilled" && R2[0].value ? x.fromJSON(R2[0].value.data) : null, I2 = R2[1].status === "fulfilled" ? R2[1].value?.data.colormap : null, z4 = R2[2].status === "fulfilled" ? R2[2].value?.data.histograms : null, C = R2[3].status === "fulfilled" ? R2[3].value?.data ?? {} : {}, $2 = R2[4].status === "fulfilled" ? R2[4].value?.data.multidimensionalInfo : null;
  952. $2?.variables?.length && $2.variables.forEach((e4) => {
  953. e4.statistics?.length && e4.statistics.forEach((e5) => {
  954. e5.avg = e5.mean, e5.stddev = e5.standardDeviation;
  955. });
  956. });
  957. const { defaultVariable: P3, serviceDataType: E2 } = y4;
  958. P3 && P3 !== C.DefaultVariable && (C.DefaultVariable = P3), E2 && E2.includes("esriImageServiceDataTypeVector") && !E2.includes(C.DataType) && (C.DataType = E2.replace("esriImageServiceDataType", ""));
  959. let M3 = y4.noDataValue;
  960. return y4.noDataValues?.length && y4.noDataValues.some((e4) => e4 !== M3) && (M3 = y4.noDataValues), new l4({ width: w, height: J, bandCount: y4.bandCount, extent: M.fromJSON(y4.extent), spatialReference: N4, pixelSize: new j({ x: y4.pixelSizeX, y: y4.pixelSizeY, spatialReference: N4 }), pixelType: y4.pixelType.toLowerCase(), statistics: T4, attributeTable: O2, colormap: I2, histograms: z4, keyProperties: C, noDataValue: M3, multidimensionalInfo: $2 });
  961. }
  962. function m9(e4, t4, a7) {
  963. return u7(e4, { sourceJSON: t4 }, a7);
  964. }
  965. function f2(e4, t4, a7) {
  966. return u7(e4, { renderingRule: t4 }, a7);
  967. }
  968. export {
  969. n6 as n,
  970. l7 as l,
  971. i2 as i,
  972. u5 as u,
  973. p4 as p,
  974. o5 as o,
  975. i3 as i2,
  976. n8 as n2,
  977. r4 as r,
  978. s3 as s,
  979. i4 as i3,
  980. o6 as o2,
  981. m8 as m,
  982. k2 as k,
  983. V,
  984. I,
  985. B,
  986. te,
  987. m9 as m2,
  988. f2 as f
  989. };
  990. //# sourceMappingURL=chunk-4LBZICSO.js.map