chunk-EN7YGJWG.js 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221
  1. import {
  2. a as a3,
  3. i as i2,
  4. u
  5. } from "./chunk-VBNMTM7L.js";
  6. import {
  7. l as l3
  8. } from "./chunk-3D3QEPRE.js";
  9. import {
  10. d as d2
  11. } from "./chunk-JFNNSBWL.js";
  12. import {
  13. a as a2
  14. } from "./chunk-C43UE3Z5.js";
  15. import {
  16. l as l2
  17. } from "./chunk-7XXXCK2A.js";
  18. import {
  19. r as r3
  20. } from "./chunk-7ZIDBK7B.js";
  21. import {
  22. c,
  23. i,
  24. m as m2,
  25. p
  26. } from "./chunk-65BYCSII.js";
  27. import {
  28. n as n3,
  29. r as r4
  30. } from "./chunk-6A4U74YA.js";
  31. import {
  32. e as e2,
  33. o as o3
  34. } from "./chunk-WEMIK25H.js";
  35. import {
  36. o2 as o4
  37. } from "./chunk-XNLG7T2T.js";
  38. import {
  39. n as n2,
  40. t as t3
  41. } from "./chunk-AFZ7XSEW.js";
  42. import {
  43. B
  44. } from "./chunk-4NKD334K.js";
  45. import {
  46. j
  47. } from "./chunk-ALDCDSPV.js";
  48. import {
  49. F,
  50. G,
  51. K,
  52. N as N2,
  53. X,
  54. et,
  55. nt
  56. } from "./chunk-VBRY5KJM.js";
  57. import {
  58. o as o2,
  59. s as s4
  60. } from "./chunk-PDKDCAAD.js";
  61. import {
  62. o
  63. } from "./chunk-ECW2QABR.js";
  64. import {
  65. s as s3
  66. } from "./chunk-GCDJLKH4.js";
  67. import {
  68. r as r2
  69. } from "./chunk-MRJEICT6.js";
  70. import {
  71. d,
  72. e,
  73. l3 as l,
  74. n2 as n,
  75. s2,
  76. t as t2,
  77. y3 as y
  78. } from "./chunk-Y3WMVFTW.js";
  79. import {
  80. N,
  81. S,
  82. a
  83. } from "./chunk-IHXECKQQ.js";
  84. import {
  85. f
  86. } from "./chunk-ULGDPLM2.js";
  87. import {
  88. s
  89. } from "./chunk-EMJ4ZSM2.js";
  90. import {
  91. m
  92. } from "./chunk-IKP3YN53.js";
  93. import {
  94. r,
  95. t
  96. } from "./chunk-GZT4BVFP.js";
  97. // node_modules/@arcgis/core/symbols/LineSymbol.js
  98. var i3 = class extends a2 {
  99. constructor(r8) {
  100. super(r8), this.type = "simple-line", this.width = 0.75;
  101. }
  102. hash() {
  103. return `${this.type}.${this.width}`;
  104. }
  105. };
  106. e([r3({ esriSLS: "simple-line" }, { readOnly: true })], i3.prototype, "type", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], i3.prototype, "width", void 0), i3 = e([n("esri.symbols.LineSymbol")], i3);
  107. var c2 = i3;
  108. // node_modules/@arcgis/core/symbols/support/lineMarkers.js
  109. var e3 = ["begin", "end", "begin-end"];
  110. var n4 = ["arrow", "circle", "square", "diamond", "cross", "x"];
  111. // node_modules/@arcgis/core/symbols/LineSymbolMarker.js
  112. var n5;
  113. var m3 = n5 = class extends l {
  114. constructor(r8) {
  115. super(r8), this.placement = "begin-end", this.type = "line-marker", this.style = "arrow";
  116. }
  117. writeStyle(r8, o8, e7, t13) {
  118. o8[e7] = t13?.origin === "web-map" ? "arrow" : r8;
  119. }
  120. set color(r8) {
  121. this._set("color", r8);
  122. }
  123. readColor(r8) {
  124. return r8 && r8[0] != null ? [r8[0], r8[1], r8[2], r8[3] / 255] : r8;
  125. }
  126. writeColor(r8, o8, e7, t13) {
  127. t13?.origin === "web-map" || (o8[e7] = r8);
  128. }
  129. clone() {
  130. return new n5({ color: m(this.color), placement: this.placement, style: this.style });
  131. }
  132. hash() {
  133. return `${this.placement}.${this.color?.hash()}.${this.style}`;
  134. }
  135. };
  136. e([d({ type: ["begin", "end", "begin-end"], json: { write: true } })], m3.prototype, "placement", void 0), e([r3({ "line-marker": "line-marker" }, { readOnly: true }), d({ json: { origins: { "web-map": { write: false } } } })], m3.prototype, "type", void 0), e([d({ type: n4 })], m3.prototype, "style", void 0), e([r2("style")], m3.prototype, "writeStyle", null), e([d({ type: l2, value: null, json: { write: { allowNull: true } } })], m3.prototype, "color", null), e([o("color")], m3.prototype, "readColor", null), e([r2("color")], m3.prototype, "writeColor", null), m3 = n5 = e([n("esri.symbols.LineSymbolMarker")], m3);
  137. var u2 = m3;
  138. // node_modules/@arcgis/core/symbols/SimpleLineSymbol.js
  139. var p2;
  140. var h = new s4({ esriSLSSolid: "solid", esriSLSDash: "dash", esriSLSDot: "dot", esriSLSDashDot: "dash-dot", esriSLSDashDotDot: "long-dash-dot-dot", esriSLSNull: "none", esriSLSInsideFrame: "inside-frame", esriSLSShortDash: "short-dash", esriSLSShortDot: "short-dot", esriSLSShortDashDot: "short-dash-dot", esriSLSShortDashDotDot: "short-dash-dot-dot", esriSLSLongDash: "long-dash", esriSLSLongDashDot: "long-dash-dot" });
  141. var d3 = p2 = class extends c2 {
  142. constructor(...r8) {
  143. super(...r8), this.type = "simple-line", this.style = "solid", this.cap = "round", this.join = "round", this.marker = null, this.miterLimit = 2;
  144. }
  145. normalizeCtorArgs(r8, o8, e7, s8, i9, n17) {
  146. if (r8 && typeof r8 != "string")
  147. return r8;
  148. const l23 = {};
  149. return r8 != null && (l23.style = r8), o8 != null && (l23.color = o8), e7 != null && (l23.width = o3(e7)), s8 != null && (l23.cap = s8), i9 != null && (l23.join = i9), n17 != null && (l23.miterLimit = o3(n17)), l23;
  150. }
  151. clone() {
  152. return new p2({ color: m(this.color), style: this.style, width: this.width, cap: this.cap, join: this.join, miterLimit: this.miterLimit, marker: this.marker?.clone() });
  153. }
  154. hash() {
  155. return `${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`;
  156. }
  157. };
  158. e([r3({ esriSLS: "simple-line" }, { readOnly: true })], d3.prototype, "type", void 0), e([d({ type: h.apiValues, json: { read: h.read, write: h.write } })], d3.prototype, "style", void 0), e([d({ type: ["butt", "round", "square"], json: { write: { overridePolicy: (r8, o8, e7) => ({ enabled: r8 !== "round" && (e7 == null || e7.origin == null) }) } } })], d3.prototype, "cap", void 0), e([d({ type: ["miter", "round", "bevel"], json: { write: { overridePolicy: (r8, o8, e7) => ({ enabled: r8 !== "round" && (e7 == null || e7.origin == null) }) } } })], d3.prototype, "join", void 0), e([d({ types: { key: "type", base: null, defaultKeyValue: "line-marker", typeMap: { "line-marker": u2 } }, json: { write: true, origins: { "web-scene": { write: false } } } })], d3.prototype, "marker", void 0), e([d({ type: Number, json: { read: false, write: false } })], d3.prototype, "miterLimit", void 0), d3 = p2 = e([n("esri.symbols.SimpleLineSymbol")], d3);
  159. var m4 = d3;
  160. // node_modules/@arcgis/core/symbols/support/IconSymbol3DLayerResource.js
  161. var l4;
  162. var d4 = o2()({ circle: "circle", square: "square", cross: "cross", x: "x", kite: "kite", triangle: "triangle" });
  163. var h2 = l4 = class extends l {
  164. constructor(r8) {
  165. super(r8);
  166. }
  167. readHref(r8, e7, o8) {
  168. return r8 ? i(r8, o8) : e7.dataURI;
  169. }
  170. writeHref(r8, e7, o8, c20) {
  171. r8 && (X(r8) ? e7.dataURI = r8 : (e7.href = c(r8, c20), K(e7.href) && (e7.href = F(e7.href))));
  172. }
  173. clone() {
  174. return new l4({ href: this.href, primitive: this.primitive });
  175. }
  176. };
  177. e([d({ type: String, json: { write: true, read: { source: ["href", "dataURI"] } } })], h2.prototype, "href", void 0), e([o("href")], h2.prototype, "readHref", null), e([r2("href", { href: { type: String }, dataURI: { type: String } })], h2.prototype, "writeHref", null), e([r3(d4)], h2.prototype, "primitive", void 0), h2 = l4 = e([n("esri.symbols.support.IconSymbol3DLayerResource")], h2);
  178. var j2 = "circle";
  179. // node_modules/@arcgis/core/symbols/support/ObjectSymbol3DLayerResource.js
  180. var n6;
  181. var a4 = o2()({ sphere: "sphere", cylinder: "cylinder", cube: "cube", cone: "cone", diamond: "diamond", tetrahedron: "tetrahedron", invertedCone: "inverted-cone" });
  182. var m5 = n6 = class extends l {
  183. clone() {
  184. return new n6({ href: this.href, primitive: this.primitive });
  185. }
  186. };
  187. e([d({ type: String, json: { read: m2, write: p } })], m5.prototype, "href", void 0), e([r3(a4)], m5.prototype, "primitive", void 0), m5 = n6 = e([n("esri.symbols.support.ObjectSymbol3DLayerResource")], m5);
  188. var d5 = "sphere";
  189. // node_modules/@arcgis/core/symbols/support/StyleOrigin.js
  190. var p3;
  191. var a5 = p3 = class extends y {
  192. constructor() {
  193. super(...arguments), this.portal = null;
  194. }
  195. clone() {
  196. return new p3({ name: this.name, styleUrl: this.styleUrl, styleName: this.styleName, portal: this.portal });
  197. }
  198. };
  199. e([d({ type: String })], a5.prototype, "name", void 0), e([d({ type: String })], a5.prototype, "styleUrl", void 0), e([d({ type: String })], a5.prototype, "styleName", void 0), e([d({ type: B })], a5.prototype, "portal", void 0), a5 = p3 = e([n("esri.symbols.support.StyleOrigin")], a5);
  200. var l5 = a5;
  201. // node_modules/@arcgis/core/symbols/support/Thumbnail.js
  202. var t4;
  203. var p4 = t4 = class extends y {
  204. clone() {
  205. return new t4({ url: this.url });
  206. }
  207. };
  208. e([d({ type: String })], p4.prototype, "url", void 0), p4 = t4 = e([n("esri.symbols.support.Thumbnail")], p4);
  209. // node_modules/@arcgis/core/symbols/MarkerSymbol.js
  210. var p5 = class extends a2 {
  211. constructor(t13) {
  212. super(t13), this.angle = 0, this.type = null, this.xoffset = 0, this.yoffset = 0, this.size = 9;
  213. }
  214. hash() {
  215. return `${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`;
  216. }
  217. };
  218. e([d({ type: Number, json: { read: (t13) => t13 && -1 * t13, write: (t13, e7) => e7.angle = t13 && -1 * t13 } })], p5.prototype, "angle", void 0), e([d({ type: ["simple-marker", "picture-marker"], readOnly: true })], p5.prototype, "type", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], p5.prototype, "xoffset", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], p5.prototype, "yoffset", void 0), e([d({ type: Number, cast: (t13) => t13 === "auto" ? t13 : o3(t13), json: { write: true } })], p5.prototype, "size", void 0), p5 = e([n("esri.symbols.MarkerSymbol")], p5);
  219. var i4 = p5;
  220. // node_modules/@arcgis/core/symbols/support/urlUtils.js
  221. function s5(a17, r8, t13) {
  222. return r8.imageData ? et({ mediaType: r8.contentType || "image/png", isBase64: true, data: r8.imageData }) : l6(r8.url, t13);
  223. }
  224. function l6(e7, t13) {
  225. return p6(t13) && !K(e7) && t13.layer.parsedUrl ? G(t13.layer.parsedUrl.path, "images", e7) : i(e7, t13);
  226. }
  227. function u3(e7, a17, r8, n17) {
  228. if (X(e7)) {
  229. const t13 = nt(e7);
  230. a17.contentType = t13.mediaType, a17.imageData = t13.data, r8 && r8.imageData === a17.imageData && r8.url && p(r8.url, a17, "url", n17);
  231. } else
  232. p(e7, a17, "url", n17);
  233. }
  234. var m6 = { json: { read: { source: ["imageData", "url"], reader: s5 }, write: { writer(e7, a17, r8, t13) {
  235. u3(e7, a17, this.source, t13);
  236. } } } };
  237. var c3 = { readOnly: true, json: { read: { source: ["imageData", "url"], reader(e7, a17, r8) {
  238. const t13 = {};
  239. return a17.imageData && (t13.imageData = a17.imageData), a17.contentType && (t13.contentType = a17.contentType), a17.url && (t13.url = l6(a17.url, r8)), t13;
  240. } } } };
  241. function p6(e7) {
  242. return e7 && (e7.origin === "service" || e7.origin === "portal-item") && e7.layer && (e7.layer.type === "feature" || e7.layer.type === "stream");
  243. }
  244. // node_modules/@arcgis/core/symbols/PictureMarkerSymbol.js
  245. var l7;
  246. var a6 = l7 = class extends i4 {
  247. constructor(...r8) {
  248. super(...r8), this.color = null, this.type = "picture-marker", this.url = null, this.source = null, this.height = 12, this.width = 12, this.size = null;
  249. }
  250. normalizeCtorArgs(r8, t13, o8) {
  251. if (r8 && typeof r8 != "string" && r8.imageData == null)
  252. return r8;
  253. const s8 = {};
  254. return r8 && (s8.url = r8), t13 != null && (s8.width = o3(t13)), o8 != null && (s8.height = o3(o8)), s8;
  255. }
  256. readHeight(r8, t13) {
  257. return t13.size || r8;
  258. }
  259. readWidth(r8, t13) {
  260. return t13.size || r8;
  261. }
  262. clone() {
  263. const r8 = new l7({ angle: this.angle, height: this.height, url: this.url, width: this.width, xoffset: this.xoffset, yoffset: this.yoffset });
  264. return r8._set("source", m(this.source)), r8;
  265. }
  266. hash() {
  267. return `${super.hash()}.${this.height}.${this.url}.${this.width}`;
  268. }
  269. };
  270. e([d({ json: { write: false } })], a6.prototype, "color", void 0), e([r3({ esriPMS: "picture-marker" }, { readOnly: true })], a6.prototype, "type", void 0), e([d(m6)], a6.prototype, "url", void 0), e([d(c3)], a6.prototype, "source", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], a6.prototype, "height", void 0), e([o("height", ["height", "size"])], a6.prototype, "readHeight", null), e([d({ type: Number, cast: o3, json: { write: true } })], a6.prototype, "width", void 0), e([d({ json: { write: false } })], a6.prototype, "size", void 0), a6 = l7 = e([n("esri.symbols.PictureMarkerSymbol")], a6);
  271. var n7 = a6;
  272. // node_modules/@arcgis/core/symbols/FillSymbol.js
  273. var l8 = class extends a2 {
  274. constructor(e7) {
  275. super(e7), this.outline = null, this.type = null;
  276. }
  277. hash() {
  278. return `${this.type}.${this.outline && this.outline.hash()}`;
  279. }
  280. };
  281. e([d({ types: { key: "type", base: null, defaultKeyValue: "simple-line", typeMap: { "simple-line": m4 } }, json: { default: null, write: true } })], l8.prototype, "outline", void 0), e([d({ type: ["simple-fill", "picture-fill"], readOnly: true })], l8.prototype, "type", void 0), l8 = e([n("esri.symbols.FillSymbol")], l8);
  282. var p7 = l8;
  283. // node_modules/@arcgis/core/symbols/SimpleFillSymbol.js
  284. var p8;
  285. var c4 = new s4({ esriSFSSolid: "solid", esriSFSNull: "none", esriSFSHorizontal: "horizontal", esriSFSVertical: "vertical", esriSFSForwardDiagonal: "forward-diagonal", esriSFSBackwardDiagonal: "backward-diagonal", esriSFSCross: "cross", esriSFSDiagonalCross: "diagonal-cross" });
  286. var m7 = p8 = class extends p7 {
  287. constructor(...o8) {
  288. super(...o8), this.color = new l2([0, 0, 0, 0.25]), this.outline = new m4(), this.type = "simple-fill", this.style = "solid";
  289. }
  290. normalizeCtorArgs(o8, r8, s8) {
  291. if (o8 && typeof o8 != "string")
  292. return o8;
  293. const e7 = {};
  294. return o8 && (e7.style = o8), r8 && (e7.outline = r8), s8 && (e7.color = s8), e7;
  295. }
  296. clone() {
  297. return new p8({ color: m(this.color), outline: this.outline && this.outline.clone(), style: this.style });
  298. }
  299. hash() {
  300. return `${super.hash()}${this.style}.${this.color && this.color.hash()}`;
  301. }
  302. };
  303. e([d()], m7.prototype, "color", void 0), e([d()], m7.prototype, "outline", void 0), e([r3({ esriSFS: "simple-fill" }, { readOnly: true })], m7.prototype, "type", void 0), e([d({ type: c4.apiValues, json: { read: c4.read, write: c4.write } })], m7.prototype, "style", void 0), m7 = p8 = e([n("esri.symbols.SimpleFillSymbol")], m7);
  304. var S2 = m7;
  305. // node_modules/@arcgis/core/symbols/SimpleMarkerSymbol.js
  306. var h3;
  307. var m8 = new s4({ esriSMSCircle: "circle", esriSMSSquare: "square", esriSMSCross: "cross", esriSMSX: "x", esriSMSDiamond: "diamond", esriSMSTriangle: "triangle", esriSMSPath: "path" });
  308. var u4 = h3 = class extends i4 {
  309. constructor(...e7) {
  310. super(...e7), this.color = new l2([255, 255, 255, 0.25]), this.type = "simple-marker", this.size = 12, this.style = "circle", this.outline = new m4();
  311. }
  312. normalizeCtorArgs(e7, o8, r8, t13) {
  313. if (e7 && typeof e7 != "string")
  314. return e7;
  315. const i9 = {};
  316. return e7 && (i9.style = e7), o8 != null && (i9.size = o3(o8)), r8 && (i9.outline = r8), t13 && (i9.color = t13), i9;
  317. }
  318. writeColor(e7, o8) {
  319. e7 && this.style !== "x" && this.style !== "cross" && (o8.color = e7.toJSON()), e7 === null && (o8.color = null);
  320. }
  321. set path(e7) {
  322. this.style = "path", this._set("path", e7);
  323. }
  324. clone() {
  325. return new h3({ angle: this.angle, color: m(this.color), outline: this.outline && this.outline.clone(), path: this.path, size: this.size, style: this.style, xoffset: this.xoffset, yoffset: this.yoffset });
  326. }
  327. hash() {
  328. return `${super.hash()}.${this.color && this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`;
  329. }
  330. };
  331. e([d()], u4.prototype, "color", void 0), e([r2("color")], u4.prototype, "writeColor", null), e([r3({ esriSMS: "simple-marker" }, { readOnly: true })], u4.prototype, "type", void 0), e([d()], u4.prototype, "size", void 0), e([d({ type: m8.apiValues, json: { read: m8.read, write: m8.write } })], u4.prototype, "style", void 0), e([d({ type: String, json: { write: true } })], u4.prototype, "path", null), e([d({ types: { key: "type", base: null, defaultKeyValue: "simple-line", typeMap: { "simple-line": m4 } }, json: { default: null, write: true } })], u4.prototype, "outline", void 0), u4 = h3 = e([n("esri.symbols.SimpleMarkerSymbol")], u4);
  332. var y2 = u4;
  333. // node_modules/@arcgis/core/symbols/support/textUtils.js
  334. var l9 = ["none", "underline", "line-through"];
  335. var t5 = ["normal", "italic", "oblique"];
  336. var r5 = ["normal", "lighter", "bold", "bolder"];
  337. var n8 = { type: Number, cast: (l23) => {
  338. const t13 = a(l23);
  339. return t13 === 0 ? 1 : o4(t13, 0.1, 4);
  340. }, nonNullable: true };
  341. var i5 = ["left", "right", "center"];
  342. var a7 = ["baseline", "top", "middle", "bottom"];
  343. var m9 = { type: i5, nonNullable: true };
  344. var p9 = { type: a7, nonNullable: true };
  345. // node_modules/@arcgis/core/symbols/Font.js
  346. var n9;
  347. var l10 = n9 = class extends l {
  348. constructor(t13) {
  349. super(t13), this.decoration = "none", this.family = "sans-serif", this.size = 9, this.style = "normal", this.weight = "normal";
  350. }
  351. castSize(t13) {
  352. return o3(t13);
  353. }
  354. clone() {
  355. return new n9({ decoration: this.decoration, family: this.family, size: this.size, style: this.style, weight: this.weight });
  356. }
  357. hash() {
  358. return `${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`;
  359. }
  360. };
  361. e([d({ type: l9, json: { default: "none", write: true } })], l10.prototype, "decoration", void 0), e([d({ type: String, json: { write: true } })], l10.prototype, "family", void 0), e([d({ type: Number, json: { write: { overridePolicy: (t13, o8, e7) => ({ enabled: !e7 || !e7.textSymbol3D }) } } })], l10.prototype, "size", void 0), e([s3("size")], l10.prototype, "castSize", null), e([d({ type: t5, json: { default: "normal", write: true } })], l10.prototype, "style", void 0), e([d({ type: r5, json: { default: "normal", write: true } })], l10.prototype, "weight", void 0), l10 = n9 = e([n("esri.symbols.Font")], l10);
  362. var m10 = l10;
  363. // node_modules/@arcgis/core/symbols/TextSymbol.js
  364. var f2;
  365. var g = f2 = class extends a2 {
  366. constructor(...t13) {
  367. super(...t13), this.backgroundColor = null, this.borderLineColor = null, this.borderLineSize = null, this.font = new m10(), this.horizontalAlignment = "center", this.kerning = true, this.haloColor = null, this.haloSize = null, this.rightToLeft = null, this.rotated = false, this.text = "", this.type = "text", this.verticalAlignment = "baseline", this.xoffset = 0, this.yoffset = 0, this.angle = 0, this.width = null, this.lineWidth = 192, this.lineHeight = 1;
  368. }
  369. normalizeCtorArgs(t13, o8, e7) {
  370. if (t13 && typeof t13 != "string")
  371. return t13;
  372. const i9 = {};
  373. return t13 && (i9.text = t13), o8 && (i9.font = o8), e7 && (i9.color = e7), i9;
  374. }
  375. writeLineWidth(t13, o8, e7, i9) {
  376. i9 && typeof i9 != "string" ? i9.origin : o8[e7] = t13;
  377. }
  378. castLineWidth(t13) {
  379. return o3(t13);
  380. }
  381. writeLineHeight(t13, o8, e7, i9) {
  382. i9 && typeof i9 != "string" ? i9.origin : o8[e7] = t13;
  383. }
  384. clone() {
  385. return new f2({ angle: this.angle, backgroundColor: m(this.backgroundColor), borderLineColor: m(this.borderLineColor), borderLineSize: this.borderLineSize, color: m(this.color), font: this.font && this.font.clone(), haloColor: m(this.haloColor), haloSize: this.haloSize, horizontalAlignment: this.horizontalAlignment, kerning: this.kerning, lineHeight: this.lineHeight, lineWidth: this.lineWidth, rightToLeft: this.rightToLeft, rotated: this.rotated, text: this.text, verticalAlignment: this.verticalAlignment, width: this.width, xoffset: this.xoffset, yoffset: this.yoffset });
  386. }
  387. hash() {
  388. return `${this.backgroundColor && this.backgroundColor.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color.hash()}.${this.font && this.font.hash()}.${this.haloColor && this.haloColor.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`;
  389. }
  390. };
  391. e([d({ type: l2, json: { write: true } })], g.prototype, "backgroundColor", void 0), e([d({ type: l2, json: { write: true } })], g.prototype, "borderLineColor", void 0), e([d({ type: Number, json: { write: true } })], g.prototype, "borderLineSize", void 0), e([d({ type: m10, json: { write: true } })], g.prototype, "font", void 0), e([d({ ...m9, json: { write: true } })], g.prototype, "horizontalAlignment", void 0), e([d({ type: Boolean, json: { write: true } })], g.prototype, "kerning", void 0), e([d({ type: l2, json: { write: true } })], g.prototype, "haloColor", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], g.prototype, "haloSize", void 0), e([d({ type: Boolean, json: { write: true } })], g.prototype, "rightToLeft", void 0), e([d({ type: Boolean, json: { write: true } })], g.prototype, "rotated", void 0), e([d({ type: String, json: { write: true } })], g.prototype, "text", void 0), e([r3({ esriTS: "text" }, { readOnly: true })], g.prototype, "type", void 0), e([d({ ...p9, json: { write: true } })], g.prototype, "verticalAlignment", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], g.prototype, "xoffset", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], g.prototype, "yoffset", void 0), e([d({ type: Number, json: { read: (t13) => t13 && -1 * t13, write: (t13, o8) => o8.angle = t13 && -1 * t13 } })], g.prototype, "angle", void 0), e([d({ type: Number, json: { write: true } })], g.prototype, "width", void 0), e([d({ type: Number })], g.prototype, "lineWidth", void 0), e([r2("lineWidth")], g.prototype, "writeLineWidth", null), e([s3("lineWidth")], g.prototype, "castLineWidth", null), e([d(n8)], g.prototype, "lineHeight", void 0), e([r2("lineHeight")], g.prototype, "writeLineHeight", null), g = f2 = e([n("esri.symbols.TextSymbol")], g);
  392. var m11 = g;
  393. // node_modules/@arcgis/core/symbols/Symbol3DLayer.js
  394. var p10 = class extends l {
  395. constructor(e7) {
  396. super(e7), this.enabled = true, this.type = null;
  397. }
  398. writeEnabled(e7, r8, o8) {
  399. e7 || (r8[o8] = e7);
  400. }
  401. };
  402. e([d({ type: Boolean, json: { read: { source: "enable" }, write: { target: "enable" } } })], p10.prototype, "enabled", void 0), e([r2("enabled")], p10.prototype, "writeEnabled", null), e([d({ type: ["icon", "object", "line", "path", "fill", "water", "extrude", "text"], readOnly: true })], p10.prototype, "type", void 0), p10 = e([n("esri.symbols.Symbol3DLayer")], p10);
  403. var a8 = p10;
  404. // node_modules/@arcgis/core/symbols/support/materialUtils.js
  405. function s6(o8, t13) {
  406. const n17 = t13.transparency != null ? r4(t13.transparency) : 1, s8 = t13.color;
  407. return s8 && Array.isArray(s8) ? new l2([s8[0] || 0, s8[1] || 0, s8[2] || 0, n17]) : null;
  408. }
  409. function c5(r8, o8) {
  410. o8.color = r8.toJSON().slice(0, 3);
  411. const t13 = n3(r8.a);
  412. t13 !== 0 && (o8.transparency = t13);
  413. }
  414. var p11 = { type: l2, json: { type: [S], default: null, read: { source: ["color", "transparency"], reader: s6 }, write: { target: { color: { type: [S] }, transparency: { type: S } }, writer: c5 } } };
  415. var a9 = { type: Number, cast: o3, json: { write: true } };
  416. // node_modules/@arcgis/core/symbols/edges/Edges3D.js
  417. var l11 = class extends l {
  418. constructor(o8) {
  419. super(o8), this.color = new l2([0, 0, 0, 1]), this.extensionLength = 0, this.size = e2(1);
  420. }
  421. clone() {
  422. }
  423. cloneProperties() {
  424. return { color: m(this.color), size: this.size, extensionLength: this.extensionLength };
  425. }
  426. };
  427. e([d({ type: ["solid", "sketch"], readOnly: true, json: { read: true, write: { ignoreOrigin: true } } })], l11.prototype, "type", void 0), e([d(p11)], l11.prototype, "color", void 0), e([d({ ...a9, json: { write: { overridePolicy: (o8) => ({ enabled: !!o8 }) } } })], l11.prototype, "extensionLength", void 0), e([d(a9)], l11.prototype, "size", void 0), l11 = e([n("esri.symbols.edges.Edges3D")], l11);
  428. var m12 = l11;
  429. // node_modules/@arcgis/core/symbols/edges/SketchEdges3D.js
  430. var t6;
  431. var c6 = t6 = class extends m12 {
  432. constructor(r8) {
  433. super(r8), this.type = "sketch";
  434. }
  435. clone() {
  436. return new t6(this.cloneProperties());
  437. }
  438. };
  439. e([r3({ sketch: "sketch" }, { readOnly: true })], c6.prototype, "type", void 0), c6 = t6 = e([n("esri.symbols.edges.SketchEdges3D")], c6);
  440. var p12 = c6;
  441. // node_modules/@arcgis/core/symbols/edges/SolidEdges3D.js
  442. var t7;
  443. var p13 = t7 = class extends m12 {
  444. constructor(o8) {
  445. super(o8), this.type = "solid";
  446. }
  447. clone() {
  448. return new t7(this.cloneProperties());
  449. }
  450. };
  451. e([r3({ solid: "solid" }, { readOnly: true })], p13.prototype, "type", void 0), p13 = t7 = e([n("esri.symbols.support.SolidEdges3D")], p13);
  452. var c7 = p13;
  453. // node_modules/@arcgis/core/symbols/edges/utils.js
  454. var t8 = { types: { key: "type", base: m12, typeMap: { solid: c7, sketch: p12 } }, json: { write: true } };
  455. // node_modules/@arcgis/core/symbols/support/Symbol3DMaterial.js
  456. var p14;
  457. var l12 = p14 = class extends l {
  458. constructor(o8) {
  459. super(o8), this.color = null;
  460. }
  461. clone() {
  462. const o8 = { color: r(this.color) ? this.color.clone() : null };
  463. return new p14(o8);
  464. }
  465. };
  466. e([d(p11)], l12.prototype, "color", void 0), l12 = p14 = e([n("esri.symbols.support.Symbol3DMaterial")], l12);
  467. // node_modules/@arcgis/core/symbols/ExtrudeSymbol3DLayer.js
  468. var l13;
  469. var c8 = l13 = class extends a8 {
  470. constructor(e7) {
  471. super(e7), this.type = "extrude", this.size = 1, this.material = null, this.castShadows = true, this.edges = null;
  472. }
  473. clone() {
  474. return new l13({ edges: this.edges && this.edges.clone(), enabled: this.enabled, material: r(this.material) ? this.material.clone() : null, castShadows: this.castShadows, size: this.size });
  475. }
  476. };
  477. e([r3({ Extrude: "extrude" }, { readOnly: true })], c8.prototype, "type", void 0), e([d({ type: Number, json: { write: { enabled: true, isRequired: true } }, nonNullable: true })], c8.prototype, "size", void 0), e([d({ type: l12, json: { write: true } })], c8.prototype, "material", void 0), e([d({ type: Boolean, nonNullable: true, json: { write: true, default: true } })], c8.prototype, "castShadows", void 0), e([d(t8)], c8.prototype, "edges", void 0), c8 = l13 = e([n("esri.symbols.ExtrudeSymbol3DLayer")], c8);
  478. var m13 = c8;
  479. // node_modules/@arcgis/core/symbols/patterns/LinePattern3D.js
  480. var t9 = class extends l {
  481. constructor(r8) {
  482. super(r8);
  483. }
  484. clone() {
  485. }
  486. };
  487. e([d({ type: ["style"], readOnly: true, json: { read: true, write: { ignoreOrigin: true } } })], t9.prototype, "type", void 0), t9 = e([n("esri.symbols.patterns.LinePattern3D")], t9);
  488. var p15 = t9;
  489. // node_modules/@arcgis/core/symbols/patterns/lineStyles.js
  490. var o5 = ["dash", "dash-dot", "dot", "long-dash", "long-dash-dot", "long-dash-dot-dot", "none", "short-dash", "short-dash-dot", "short-dash-dot-dot", "short-dot", "solid"];
  491. // node_modules/@arcgis/core/symbols/patterns/LineStylePattern3D.js
  492. var p16;
  493. var h4 = o2()({ dash: "dash", "dash-dot": "dash-dot", "dash-dot-dot": "long-dash-dot-dot", dot: "dot", "long-dash": "long-dash", "long-dash-dot": "long-dash-dot", null: "none", "short-dash": "short-dash", "short-dash-dot": "short-dash-dot", "short-dash-dot-dot": "short-dash-dot-dot", "short-dot": "short-dot", solid: "solid" });
  494. var c9 = p16 = class extends p15 {
  495. constructor(o8) {
  496. super(o8), this.type = "style", this.style = "solid";
  497. }
  498. clone() {
  499. const o8 = { style: this.style };
  500. return new p16(o8);
  501. }
  502. };
  503. e([d({ type: ["style"] })], c9.prototype, "type", void 0), e([r3(h4), d({ type: o5 })], c9.prototype, "style", void 0), c9 = p16 = e([n("esri.symbols.patterns.LineStylePattern3D")], c9);
  504. var l14 = c9;
  505. // node_modules/@arcgis/core/symbols/patterns/Pattern3D.js
  506. var t10 = class extends l {
  507. constructor(r8) {
  508. super(r8);
  509. }
  510. clone() {
  511. }
  512. };
  513. e([d({ type: ["style"], readOnly: true, json: { read: true, write: { ignoreOrigin: true } } })], t10.prototype, "type", void 0), t10 = e([n("esri.symbols.patterns.Pattern3D")], t10);
  514. var p17 = t10;
  515. // node_modules/@arcgis/core/symbols/patterns/styles.js
  516. var a10 = ["backward-diagonal", "cross", "diagonal-cross", "forward-diagonal", "horizontal", "none", "solid", "vertical"];
  517. // node_modules/@arcgis/core/symbols/patterns/StylePattern3D.js
  518. var p18;
  519. var c10 = p18 = class extends p17 {
  520. constructor(s8) {
  521. super(s8), this.type = "style", this.style = "solid";
  522. }
  523. clone() {
  524. const s8 = { style: this.style };
  525. return new p18(s8);
  526. }
  527. };
  528. e([d({ type: ["style"] })], c10.prototype, "type", void 0), e([d({ type: a10, json: { read: true, write: true } })], c10.prototype, "style", void 0), c10 = p18 = e([n("esri.symbols.patterns.StylePattern3D")], c10);
  529. var a11 = c10;
  530. // node_modules/@arcgis/core/symbols/patterns/utils.js
  531. var s7 = { types: { key: "type", base: p17, typeMap: { style: a11 } }, json: { write: true } };
  532. var o6 = { types: { key: "type", base: p15, typeMap: { style: l14 } }, json: { write: true } };
  533. // node_modules/@arcgis/core/symbols/support/colors.js
  534. var o7 = new l2("white");
  535. var r6 = new l2("black");
  536. var e4 = new l2([255, 255, 255, 0]);
  537. function t11(n17) {
  538. return n17.r === 0 && n17.g === 0 && n17.b === 0;
  539. }
  540. // node_modules/@arcgis/core/symbols/support/Symbol3DFillMaterial.js
  541. var c11;
  542. var l15 = c11 = class extends l12 {
  543. constructor(o8) {
  544. super(o8), this.colorMixMode = null;
  545. }
  546. clone() {
  547. const o8 = { color: r(this.color) ? this.color.clone() : null, colorMixMode: this.colorMixMode };
  548. return new c11(o8);
  549. }
  550. };
  551. e([r3({ multiply: "multiply", replace: "replace", tint: "tint" })], l15.prototype, "colorMixMode", void 0), l15 = c11 = e([n("esri.symbols.support.Symbol3DFillMaterial")], l15);
  552. // node_modules/@arcgis/core/symbols/support/Symbol3DOutline.js
  553. var m14;
  554. var u5 = m14 = class extends l {
  555. constructor(r8) {
  556. super(r8), this.color = new l2([0, 0, 0, 1]), this.size = e2(1), this.pattern = null, this.patternCap = "butt";
  557. }
  558. clone() {
  559. const r8 = { color: r(this.color) ? this.color.clone() : null, size: this.size, pattern: r(this.pattern) ? this.pattern.clone() : null, patternCap: this.patternCap };
  560. return new m14(r8);
  561. }
  562. };
  563. e([d(p11)], u5.prototype, "color", void 0), e([d(a9)], u5.prototype, "size", void 0), e([d(o6)], u5.prototype, "pattern", void 0), e([d({ type: u, json: { default: "butt", write: { overridePolicy() {
  564. return { enabled: r(this.pattern) };
  565. } } } })], u5.prototype, "patternCap", void 0), u5 = m14 = e([n("esri.symbols.support.Symbol3DOutline")], u5);
  566. // node_modules/@arcgis/core/symbols/FillSymbol3DLayer.js
  567. var d6;
  568. var h5 = d6 = class extends a8 {
  569. constructor(t13) {
  570. super(t13), this.type = "fill", this.material = null, this.pattern = null, this.castShadows = true, this.outline = null, this.edges = null;
  571. }
  572. clone() {
  573. const t13 = { edges: r(this.edges) ? this.edges.clone() : null, enabled: this.enabled, material: r(this.material) ? this.material.clone() : null, pattern: r(this.pattern) ? this.pattern.clone() : null, castShadows: this.castShadows, outline: r(this.outline) ? this.outline.clone() : null };
  574. return new d6(t13);
  575. }
  576. static fromSimpleFillSymbol(t13) {
  577. const e7 = t13.outline && t13.outline.style && t13.outline.style !== "inside-frame" && t13.outline.style !== "solid" ? new l14({ style: t13.outline.style }) : null, o8 = { size: t13.outline?.width ?? 0, color: (t13.outline?.color ?? o7).clone(), pattern: e7 };
  578. return e7 && t13.outline?.cap && (o8.patternCap = t13.outline.cap), new d6({ material: new l15({ color: (t13.color ?? e4).clone() }), pattern: t13.style && t13.style !== "solid" ? new a11({ style: t13.style }) : null, outline: o8 });
  579. }
  580. };
  581. e([r3({ Fill: "fill" }, { readOnly: true })], h5.prototype, "type", void 0), e([d({ type: l15, json: { write: true } })], h5.prototype, "material", void 0), e([d(s7)], h5.prototype, "pattern", void 0), e([d({ type: Boolean, nonNullable: true, json: { write: true, default: true } })], h5.prototype, "castShadows", void 0), e([d({ type: u5, json: { write: true } })], h5.prototype, "outline", void 0), e([d(t8)], h5.prototype, "edges", void 0), h5 = d6 = e([n("esri.symbols.FillSymbol3DLayer")], h5);
  582. var f3 = h5;
  583. // node_modules/@arcgis/core/symbols/support/Symbol3DAnchorPosition2D.js
  584. var e5;
  585. var p19 = e5 = class extends y {
  586. constructor() {
  587. super(...arguments), this.x = 0, this.y = 0;
  588. }
  589. clone() {
  590. return new e5({ x: this.x, y: this.y });
  591. }
  592. };
  593. e([d({ type: Number })], p19.prototype, "x", void 0), e([d({ type: Number })], p19.prototype, "y", void 0), p19 = e5 = e([n("esri.symbols.support.Symbol3DAnchorPosition2D")], p19);
  594. // node_modules/@arcgis/core/symbols/support/Symbol3DIconOutline.js
  595. var l16;
  596. var a12 = l16 = class extends l {
  597. constructor(o8) {
  598. super(o8), this.color = new l2([0, 0, 0, 1]), this.size = e2(1);
  599. }
  600. clone() {
  601. const o8 = { color: r(this.color) ? this.color.clone() : null, size: this.size };
  602. return new l16(o8);
  603. }
  604. };
  605. e([d(p11)], a12.prototype, "color", void 0), e([d(a9)], a12.prototype, "size", void 0), a12 = l16 = e([n("esri.symbols.support.Symbol3DIconOutline")], a12);
  606. // node_modules/@arcgis/core/symbols/IconSymbol3DLayer.js
  607. var d7;
  608. var f4 = s.getLogger("esri.symbols.IconSymbol3DLayer");
  609. var b = d7 = class extends a8 {
  610. constructor(o8) {
  611. super(o8), this.material = null, this.resource = null, this.type = "icon", this.size = 12, this.anchor = "center", this.anchorPosition = void 0, this.outline = void 0;
  612. }
  613. clone() {
  614. return new d7({ anchor: this.anchor, anchorPosition: this.anchorPosition && this.anchorPosition.clone(), enabled: this.enabled, material: r(this.material) ? this.material.clone() : null, outline: r(this.outline) ? this.outline.clone() : null, resource: this.resource && this.resource.clone(), size: this.size });
  615. }
  616. static fromSimpleMarkerSymbol(o8) {
  617. const t13 = o8.color || o7, r8 = j3(o8), e7 = o8.outline && o8.outline.width > 0 ? { size: o8.outline.width, color: (o8.outline.color || o7).clone() } : null;
  618. return new d7({ size: o8.size, resource: { primitive: w(o8.style) }, material: { color: t13 }, outline: e7, anchor: r8 ? "relative" : void 0, anchorPosition: r8 });
  619. }
  620. static fromPictureMarkerSymbol(o8) {
  621. const t13 = !o8.color || t11(o8.color) ? o7 : o8.color, r8 = j3(o8);
  622. return new d7({ size: o8.width <= o8.height ? o8.height : o8.width, resource: { href: o8.url }, material: { color: t13.clone() }, anchor: r8 ? "relative" : void 0, anchorPosition: r8 });
  623. }
  624. static fromCIMSymbol(o8) {
  625. return new d7({ resource: { href: et({ mediaType: "application/json", data: JSON.stringify(o8.data) }) } });
  626. }
  627. };
  628. function j3(o8) {
  629. const t13 = "width" in o8 ? o8.width : o8.size, r8 = "height" in o8 ? o8.height : o8.size, e7 = v(o8.xoffset), i9 = v(o8.yoffset);
  630. return (e7 || i9) && t13 && r8 ? { x: -e7 / t13, y: i9 / r8 } : null;
  631. }
  632. function v(o8) {
  633. return isFinite(o8) ? o8 : 0;
  634. }
  635. e([d({ type: l12, json: { write: true } })], b.prototype, "material", void 0), e([d({ type: h2, json: { write: true } })], b.prototype, "resource", void 0), e([r3({ Icon: "icon" }, { readOnly: true })], b.prototype, "type", void 0), e([d(a9)], b.prototype, "size", void 0), e([r3({ center: "center", left: "left", right: "right", top: "top", bottom: "bottom", topLeft: "top-left", topRight: "top-right", bottomLeft: "bottom-left", bottomRight: "bottom-right", relative: "relative" }), d({ json: { default: "center" } })], b.prototype, "anchor", void 0), e([d({ type: p19, json: { type: [Number], read: { reader: (o8) => new p19({ x: o8[0], y: o8[1] }) }, write: { writer: (o8, t13) => {
  636. t13.anchorPosition = [o8.x, o8.y];
  637. }, overridePolicy() {
  638. return { enabled: this.anchor === "relative" };
  639. } } } })], b.prototype, "anchorPosition", void 0), e([d({ type: a12, json: { write: true } })], b.prototype, "outline", void 0), b = d7 = e([n("esri.symbols.IconSymbol3DLayer")], b);
  640. var g2 = { circle: "circle", cross: "cross", diamond: "kite", square: "square", x: "x", triangle: "triangle", path: null };
  641. function w(o8) {
  642. const t13 = g2[o8];
  643. return t13 || (f4.warn(`${o8} cannot be mapped to Icon symbol. Fallback to "circle"`), "circle");
  644. }
  645. var S3 = b;
  646. // node_modules/@arcgis/core/symbols/LineStyleMarker3D.js
  647. var n10 = class extends l3(l) {
  648. constructor(o8) {
  649. super(o8), this.type = "style", this.placement = "begin-end", this.style = "arrow", this.color = null;
  650. }
  651. equals(o8) {
  652. return r(o8) && o8.placement === this.placement && o8.style === this.style && (t(this.color) && t(o8.color) || r(this.color) && r(o8.color) && this.color.toJSON() === o8.color.toJSON());
  653. }
  654. };
  655. e([d({ type: ["style"], readOnly: true, json: { read: true, write: { ignoreOrigin: true } } })], n10.prototype, "type", void 0), e([d({ type: e3, json: { default: "begin-end", write: true } })], n10.prototype, "placement", void 0), e([d({ type: n4, json: { default: "arrow", write: true } })], n10.prototype, "style", void 0), e([d({ type: l2, json: { type: [S], default: null, write: true } })], n10.prototype, "color", void 0), n10 = e([n("esri.symbols.LineStyleMarker3D")], n10);
  656. var y3 = n10;
  657. // node_modules/@arcgis/core/symbols/LineSymbol3DLayer.js
  658. var d8;
  659. var h6 = d8 = class extends a8 {
  660. constructor(t13) {
  661. super(t13), this.material = null, this.type = "line", this.join = "miter", this.cap = "butt", this.size = e2(1), this.pattern = null, this.marker = null;
  662. }
  663. clone() {
  664. const t13 = { enabled: this.enabled, material: r(this.material) ? this.material.clone() : null, size: this.size, join: this.join, cap: this.cap, pattern: r(this.pattern) ? this.pattern.clone() : null, marker: r(this.marker) ? this.marker.clone() : null };
  665. return new d8(t13);
  666. }
  667. static fromSimpleLineSymbol(t13) {
  668. const r8 = { enabled: true, size: t13.width ?? e2(1), cap: t13.cap || "butt", join: t13.join || "miter", pattern: t13.style && t13.style !== "inside-frame" ? new l14({ style: t13.style }) : null, material: new l12({ color: (t13.color || o7).clone() }), marker: t13.marker ? new y3({ placement: t13.marker.placement, style: t13.marker.style, color: t13.marker.color?.clone() ?? null }) : null };
  669. return new d8(r8);
  670. }
  671. };
  672. e([d({ type: l12, json: { write: true } })], h6.prototype, "material", void 0), e([r3({ Line: "line" }, { readOnly: true })], h6.prototype, "type", void 0), e([d({ type: a3, json: { write: true, default: "miter" } })], h6.prototype, "join", void 0), e([d({ type: u, json: { write: true, default: "butt" } })], h6.prototype, "cap", void 0), e([d(a9)], h6.prototype, "size", void 0), e([d(o6)], h6.prototype, "pattern", void 0), e([d({ types: { key: "type", base: y3, typeMap: { style: y3 } }, json: { write: true } })], h6.prototype, "marker", void 0), h6 = d8 = e([n("esri.symbols.LineSymbol3DLayer")], h6);
  673. var f5 = h6;
  674. // node_modules/@arcgis/core/symbols/support/Symbol3DAnchorPosition3D.js
  675. var e6;
  676. var p20 = e6 = class extends y {
  677. constructor() {
  678. super(...arguments), this.x = 0, this.y = 0, this.z = 0;
  679. }
  680. clone() {
  681. return new e6({ x: this.x, y: this.y, z: this.z });
  682. }
  683. };
  684. e([d({ type: Number })], p20.prototype, "x", void 0), e([d({ type: Number })], p20.prototype, "y", void 0), e([d({ type: Number })], p20.prototype, "z", void 0), p20 = e6 = e([n("esri.symbols.support.Symbol3DAnchorPosition3D")], p20);
  685. // node_modules/@arcgis/core/symbols/ObjectSymbol3DLayer.js
  686. var n11;
  687. var c12 = n11 = class extends a8 {
  688. constructor(o8) {
  689. super(o8), this.material = null, this.castShadows = true, this.resource = null, this.type = "object", this.width = void 0, this.height = void 0, this.depth = void 0, this.anchor = void 0, this.anchorPosition = void 0, this.heading = void 0, this.tilt = void 0, this.roll = void 0;
  690. }
  691. clone() {
  692. return new n11({ heading: this.heading, tilt: this.tilt, roll: this.roll, anchor: this.anchor, anchorPosition: this.anchorPosition && this.anchorPosition.clone(), depth: this.depth, enabled: this.enabled, height: this.height, material: r(this.material) ? this.material.clone() : null, castShadows: this.castShadows, resource: this.resource && this.resource.clone(), width: this.width });
  693. }
  694. get isPrimitive() {
  695. return !this.resource || typeof this.resource.href != "string";
  696. }
  697. };
  698. e([d({ type: l12, json: { write: true } })], c12.prototype, "material", void 0), e([d({ type: Boolean, nonNullable: true, json: { write: true, default: true } })], c12.prototype, "castShadows", void 0), e([d({ type: m5, json: { write: true } })], c12.prototype, "resource", void 0), e([r3({ Object: "object" }, { readOnly: true })], c12.prototype, "type", void 0), e([d({ type: Number, json: { write: true } })], c12.prototype, "width", void 0), e([d({ type: Number, json: { write: true } })], c12.prototype, "height", void 0), e([d({ type: Number, json: { write: true } })], c12.prototype, "depth", void 0), e([r3({ center: "center", top: "top", bottom: "bottom", origin: "origin", relative: "relative" }), d({ json: { default: "origin" } })], c12.prototype, "anchor", void 0), e([d({ type: p20, json: { type: [Number], read: { reader: (o8) => new p20({ x: o8[0], y: o8[1], z: o8[2] }) }, write: { writer: (o8, t13) => {
  699. t13.anchorPosition = [o8.x, o8.y, o8.z];
  700. }, overridePolicy() {
  701. return { enabled: this.anchor === "relative" };
  702. } } } })], c12.prototype, "anchorPosition", void 0), e([d({ type: Number, json: { write: true } })], c12.prototype, "heading", void 0), e([d({ type: Number, json: { write: true } })], c12.prototype, "tilt", void 0), e([d({ type: Number, json: { write: true } })], c12.prototype, "roll", void 0), e([d({ readOnly: true })], c12.prototype, "isPrimitive", null), c12 = n11 = e([n("esri.symbols.ObjectSymbol3DLayer")], c12);
  703. var l17 = c12;
  704. // node_modules/@arcgis/core/symbols/PathSymbol3DLayer.js
  705. var n12;
  706. var d9 = n12 = class extends a8 {
  707. constructor(t13) {
  708. super(t13), this.material = null, this.castShadows = true, this.type = "path", this.profile = "circle", this.join = "miter", this.cap = "butt", this.width = void 0, this.height = void 0, this.anchor = "center", this.profileRotation = "all";
  709. }
  710. readWidth(t13, e7) {
  711. return t13 != null ? t13 : e7.height == null && e7.size != null ? e7.size : void 0;
  712. }
  713. readHeight(t13, e7) {
  714. return t13 != null ? t13 : e7.width == null && e7.size != null ? e7.size : void 0;
  715. }
  716. clone() {
  717. return new n12({ enabled: this.enabled, material: r(this.material) ? this.material.clone() : null, castShadows: this.castShadows, profile: this.profile, join: this.join, cap: this.cap, width: this.width, height: this.height, profileRotation: this.profileRotation, anchor: this.anchor });
  718. }
  719. };
  720. e([d({ type: l12, json: { write: true } })], d9.prototype, "material", void 0), e([d({ type: Boolean, nonNullable: true, json: { write: true, default: true } })], d9.prototype, "castShadows", void 0), e([r3({ Path: "path" }, { readOnly: true })], d9.prototype, "type", void 0), e([d({ type: ["circle", "quad"], json: { write: true, default: "circle" } })], d9.prototype, "profile", void 0), e([d({ type: a3, json: { write: true, default: "miter" } })], d9.prototype, "join", void 0), e([d({ type: i2, json: { write: true, default: "butt" } })], d9.prototype, "cap", void 0), e([d({ type: Number, json: { write: { enabled: true, target: { width: { type: Number }, size: { type: Number } } } } })], d9.prototype, "width", void 0), e([o("width", ["width", "size", "height"])], d9.prototype, "readWidth", null), e([d({ type: Number, json: { write: true } })], d9.prototype, "height", void 0), e([o("height", ["height", "size", "width"])], d9.prototype, "readHeight", null), e([d({ type: ["center", "bottom", "top"], json: { write: true, default: "center" } })], d9.prototype, "anchor", void 0), e([d({ type: ["heading", "all"], json: { write: true, default: "all" } })], d9.prototype, "profileRotation", void 0), d9 = n12 = e([n("esri.symbols.PathSymbol3DLayer")], d9);
  721. var c13 = d9;
  722. // node_modules/@arcgis/core/symbols/support/Symbol3DHalo.js
  723. var m15;
  724. var l18 = m15 = class extends l {
  725. constructor() {
  726. super(...arguments), this.color = new l2([0, 0, 0, 1]), this.size = 0;
  727. }
  728. clone() {
  729. const o8 = { color: m(this.color), size: this.size };
  730. return new m15(o8);
  731. }
  732. };
  733. e([d(p11)], l18.prototype, "color", void 0), e([d(a9)], l18.prototype, "size", void 0), l18 = m15 = e([n("esri.symbols.support.Symbol3DHalo")], l18);
  734. // node_modules/@arcgis/core/symbols/support/Symbol3DTextBackground.js
  735. var c14 = class extends l3(l) {
  736. constructor(o8) {
  737. super(o8), this.color = null;
  738. }
  739. };
  740. e([d(p11)], c14.prototype, "color", void 0), c14 = e([n("esri.symbols.support.Symbol3DTextBackground")], c14);
  741. // node_modules/@arcgis/core/symbols/TextSymbol3DLayer.js
  742. var g3;
  743. var d10 = g3 = class extends a8 {
  744. constructor(t13) {
  745. super(t13), this._userSize = void 0, this.halo = null, this.horizontalAlignment = "center", this.lineHeight = 1, this.material = null, this.background = null, this.text = null, this.type = "text", this.verticalAlignment = "baseline";
  746. }
  747. get font() {
  748. return this._get("font") || null;
  749. }
  750. set font(t13) {
  751. r(t13) && r(this._userSize) && (t13.size = this._userSize), this._set("font", t13);
  752. }
  753. writeFont(t13, o8, e7, r8) {
  754. const i9 = { ...r8, textSymbol3D: true };
  755. o8.font = t13.write({}, i9), delete o8.font.size;
  756. }
  757. get size() {
  758. return r(this._userSize) ? this._userSize : r(this.font) && this.font.size != null ? this.font.size : 9;
  759. }
  760. set size(t13) {
  761. this._userSize = t13, r(this.font) && (this.font.size = this._userSize), this.notifyChange("size");
  762. }
  763. clone() {
  764. const t13 = new g3({ enabled: this.enabled, font: this.font && m(this.font), halo: this.halo && m(this.halo), horizontalAlignment: this.horizontalAlignment, lineHeight: this.lineHeight, material: r(this.material) ? this.material.clone() : null, text: this.text, verticalAlignment: this.verticalAlignment, background: m(this.background) });
  765. return t13._userSize = this._userSize, t13;
  766. }
  767. static fromTextSymbol(t13) {
  768. return new g3({ font: r(t13.font) ? t13.font.clone() : new m10(), halo: z(t13.haloColor, t13.haloSize), horizontalAlignment: t13.horizontalAlignment, lineHeight: t13.lineHeight, material: t13.color ? new l12({ color: t13.color.clone() }) : null, text: t13.text, verticalAlignment: t13.verticalAlignment, background: t13.backgroundColor ? new c14({ color: t13.backgroundColor.clone() }) : null });
  769. }
  770. };
  771. function z(t13, e7) {
  772. return t13 && e7 > 0 ? new l18({ color: m(t13), size: e7 }) : null;
  773. }
  774. e([d({ type: m10, json: { write: true } })], d10.prototype, "font", null), e([r2("font")], d10.prototype, "writeFont", null), e([d({ type: l18, json: { write: true } })], d10.prototype, "halo", void 0), e([d({ ...m9, json: { default: "center", write: true } })], d10.prototype, "horizontalAlignment", void 0), e([d({ ...n8, json: { default: 1, write: true } })], d10.prototype, "lineHeight", void 0), e([d({ type: l12, json: { write: true } })], d10.prototype, "material", void 0), e([d({ type: c14, json: { write: true } })], d10.prototype, "background", void 0), e([d(a9)], d10.prototype, "size", null), e([d({ type: String, json: { write: true } })], d10.prototype, "text", void 0), e([r3({ Text: "text" }, { readOnly: true })], d10.prototype, "type", void 0), e([d({ ...p9, json: { default: "baseline", write: true } })], d10.prototype, "verticalAlignment", void 0), d10 = g3 = e([n("esri.symbols.TextSymbol3DLayer")], d10);
  775. var j4 = d10;
  776. // node_modules/@arcgis/core/symbols/WaterSymbol3DLayer.js
  777. var l19;
  778. var c15 = l19 = class extends a8 {
  779. constructor(e7) {
  780. super(e7), this.color = m16.clone(), this.type = "water", this.waterbodySize = "medium", this.waveDirection = null, this.waveStrength = "moderate";
  781. }
  782. clone() {
  783. return new l19({ color: m(this.color), waterbodySize: this.waterbodySize, waveDirection: this.waveDirection, waveStrength: this.waveStrength });
  784. }
  785. };
  786. e([d({ type: l2, nonNullable: true, json: { type: [S], write: (e7, r8, t13) => r8[t13] = e7.toArray(l2.AlphaMode.UNLESS_OPAQUE), default: () => m16.clone(), defaultEquals: (e7) => e7.toCss(true) === m16.toCss(true) } })], c15.prototype, "color", void 0), e([r3({ Water: "water" }, { readOnly: true })], c15.prototype, "type", void 0), e([d({ type: ["small", "medium", "large"], json: { write: true, default: "medium" } })], c15.prototype, "waterbodySize", void 0), e([d({ type: Number, json: { write: true, default: null } })], c15.prototype, "waveDirection", void 0), e([d({ type: ["calm", "rippled", "slight", "moderate"], json: { write: true, default: "moderate" } })], c15.prototype, "waveStrength", void 0), c15 = l19 = e([n("esri.symbols.WaterSymbol3DLayer")], c15);
  787. var m16 = new l2([0, 119, 190]);
  788. var n13 = c15;
  789. // node_modules/@arcgis/core/symbols/Symbol3D.js
  790. var v2 = { icon: S3, object: l17, line: f5, path: c13, fill: f3, extrude: m13, text: j4, water: n13 };
  791. var C = j.ofType({ base: a8, key: "type", typeMap: v2, errorContext: "symbol-layer" });
  792. var T = s.getLogger("esri.symbols.Symbol3D");
  793. var k = class extends a2 {
  794. constructor(e7) {
  795. super(e7), this.styleOrigin = null, this.thumbnail = null, this.type = null;
  796. const t13 = this.__accessor__ && this.__accessor__.metadatas && this.__accessor__.metadatas.symbolLayers, o8 = t13 && t13.type || j;
  797. this._set("symbolLayers", new o8());
  798. }
  799. get color() {
  800. return null;
  801. }
  802. set color(e7) {
  803. this.initialized && T.error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.");
  804. }
  805. set symbolLayers(e7) {
  806. n2(e7, this._get("symbolLayers"));
  807. }
  808. readStyleOrigin(e7, r8, t13) {
  809. if (e7.styleUrl && e7.name) {
  810. const r9 = i(e7.styleUrl, t13);
  811. return new l5({ styleUrl: r9, name: e7.name });
  812. }
  813. if (e7.styleName && e7.name)
  814. return new l5({ portal: t13 && t13.portal || B.getDefault(), styleName: e7.styleName, name: e7.name });
  815. t13 && t13.messages && t13.messages.push(new t2("symbol3d:incomplete-style-origin", "Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property", { context: t13, definition: e7 }));
  816. }
  817. writeStyleOrigin(e7, r8, t13, o8) {
  818. if (e7.styleUrl && e7.name) {
  819. let t14 = c(e7.styleUrl, o8);
  820. K(t14) && (t14 = F(t14)), r8.styleOrigin = { styleUrl: t14, name: e7.name };
  821. } else
  822. e7.styleName && e7.name && (e7.portal && o8 && o8.portal && !N2(e7.portal.restUrl, o8.portal.restUrl) ? o8 && o8.messages && o8.messages.push(new t2("symbol:cross-portal", "The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.", { symbol: this })) : r8.styleOrigin = { styleName: e7.styleName, name: e7.name });
  823. }
  824. normalizeCtorArgs(e7) {
  825. return e7 instanceof a8 || e7 && v2[e7.type] ? { symbolLayers: [e7] } : Array.isArray(e7) ? { symbolLayers: e7 } : e7;
  826. }
  827. };
  828. e([d({ json: { read: false, write: false } })], k.prototype, "color", null), e([d({ type: C, nonNullable: true, json: { write: true } }), s3(t3)], k.prototype, "symbolLayers", null), e([d({ type: l5 })], k.prototype, "styleOrigin", void 0), e([o("styleOrigin")], k.prototype, "readStyleOrigin", null), e([r2("styleOrigin", { "styleOrigin.styleUrl": { type: String }, "styleOrigin.styleName": { type: String }, "styleOrigin.name": { type: String } })], k.prototype, "writeStyleOrigin", null), e([d({ type: p4, json: { read: false } })], k.prototype, "thumbnail", void 0), e([d({ type: ["point-3d", "line-3d", "polygon-3d", "mesh-3d", "label-3d"], readOnly: true })], k.prototype, "type", void 0), k = e([n("esri.symbols.Symbol3D")], k);
  829. var A = k;
  830. // node_modules/@arcgis/core/symbols/callouts/Callout3D.js
  831. var t12 = class extends l {
  832. constructor(r8) {
  833. super(r8), this.visible = true;
  834. }
  835. clone() {
  836. }
  837. };
  838. e([d({ type: ["line"], readOnly: true, json: { read: false, write: { ignoreOrigin: true } } })], t12.prototype, "type", void 0), e([d({ readOnly: true })], t12.prototype, "visible", void 0), t12 = e([n("esri.symbols.callouts.Callout3D")], t12);
  839. var p21 = t12;
  840. // node_modules/@arcgis/core/chunks/LineCallout3DBorder.js
  841. var l20;
  842. var a13 = l20 = class extends l {
  843. constructor() {
  844. super(...arguments), this.color = new l2("white");
  845. }
  846. clone() {
  847. return new l20({ color: m(this.color) });
  848. }
  849. };
  850. e([d(p11)], a13.prototype, "color", void 0), a13 = l20 = e([n("esri.symbols.callouts.LineCallout3DBorder")], a13);
  851. var i6 = a13;
  852. var m17 = Object.freeze(Object.defineProperty({ __proto__: null, default: i6 }, Symbol.toStringTag, { value: "Module" }));
  853. // node_modules/@arcgis/core/symbols/callouts/LineCallout3D.js
  854. var u6;
  855. var d11 = u6 = class extends p21 {
  856. constructor(o8) {
  857. super(o8), this.type = "line", this.color = new l2([0, 0, 0, 1]), this.size = e2(1), this.border = null;
  858. }
  859. get visible() {
  860. return this.size > 0 && r(this.color) && this.color.a > 0;
  861. }
  862. clone() {
  863. return new u6({ color: m(this.color), size: this.size, border: m(this.border) });
  864. }
  865. };
  866. e([r3({ line: "line" }, { readOnly: true })], d11.prototype, "type", void 0), e([d(p11)], d11.prototype, "color", void 0), e([d(a9)], d11.prototype, "size", void 0), e([d({ type: i6, json: { write: true } })], d11.prototype, "border", void 0), e([d({ readOnly: true })], d11.prototype, "visible", null), d11 = u6 = e([n("esri.symbols.callouts.LineCallout3D")], d11);
  867. var y4 = d11;
  868. // node_modules/@arcgis/core/symbols/callouts/calloutUtils.js
  869. function n14(t13) {
  870. if (!t13)
  871. return false;
  872. const e7 = t13.verticalOffset;
  873. return !!e7 && !(e7.screenLength <= 0 || e7.maxWorldLength <= 0);
  874. }
  875. function r7(t13) {
  876. if (!t13)
  877. return false;
  878. if (!t13.supportsCallout || !t13.supportsCallout())
  879. return false;
  880. const e7 = t13.callout;
  881. return !!e7 && (!!e7.visible && !!n14(t13));
  882. }
  883. var l21 = { types: { key: "type", base: p21, typeMap: { line: y4 } }, json: { write: true } };
  884. // node_modules/@arcgis/core/symbols/support/Symbol3DVerticalOffset.js
  885. var p22;
  886. var i7 = p22 = class extends l {
  887. constructor() {
  888. super(...arguments), this.screenLength = 0, this.minWorldLength = 0;
  889. }
  890. clone() {
  891. return new p22({ screenLength: this.screenLength, minWorldLength: this.minWorldLength, maxWorldLength: this.maxWorldLength });
  892. }
  893. };
  894. e([d(a9)], i7.prototype, "screenLength", void 0), e([d({ type: Number, json: { write: true, default: 0 } })], i7.prototype, "minWorldLength", void 0), e([d({ type: Number, json: { write: true } })], i7.prototype, "maxWorldLength", void 0), i7 = p22 = e([n("esri.symbols.support.Symbol3DVerticalOffset")], i7);
  895. // node_modules/@arcgis/core/symbols/LabelSymbol3D.js
  896. var n15;
  897. var u7 = j.ofType({ base: null, key: "type", typeMap: { text: j4 } });
  898. var f6 = n15 = class extends A {
  899. constructor(t13) {
  900. super(t13), this.verticalOffset = null, this.callout = null, this.styleOrigin = null, this.symbolLayers = new u7(), this.type = "label-3d";
  901. }
  902. supportsCallout() {
  903. return true;
  904. }
  905. hasVisibleCallout() {
  906. return r7(this);
  907. }
  908. hasVisibleVerticalOffset() {
  909. return n14(this);
  910. }
  911. clone() {
  912. return new n15({ styleOrigin: m(this.styleOrigin), symbolLayers: m(this.symbolLayers), thumbnail: m(this.thumbnail), callout: m(this.callout), verticalOffset: m(this.verticalOffset) });
  913. }
  914. static fromTextSymbol(t13) {
  915. return new n15({ symbolLayers: [j4.fromTextSymbol(t13)] });
  916. }
  917. };
  918. e([d({ type: i7, json: { write: true } })], f6.prototype, "verticalOffset", void 0), e([d(l21)], f6.prototype, "callout", void 0), e([d({ json: { read: false, write: false } })], f6.prototype, "styleOrigin", void 0), e([d({ type: u7 })], f6.prototype, "symbolLayers", void 0), e([r3({ LabelSymbol3D: "label-3d" }, { readOnly: true })], f6.prototype, "type", void 0), f6 = n15 = e([n("esri.symbols.LabelSymbol3D")], f6);
  919. var b2 = f6;
  920. // node_modules/@arcgis/core/symbols/LineSymbol3D.js
  921. var l22;
  922. var a14 = j.ofType({ base: null, key: "type", typeMap: { line: f5, path: c13 } });
  923. var n16 = j.ofType({ base: null, key: "type", typeMap: { line: f5, path: c13 } });
  924. var c16 = l22 = class extends A {
  925. constructor(o8) {
  926. super(o8), this.symbolLayers = new a14(), this.type = "line-3d";
  927. }
  928. clone() {
  929. return new l22({ styleOrigin: m(this.styleOrigin), symbolLayers: m(this.symbolLayers), thumbnail: m(this.thumbnail) });
  930. }
  931. static fromSimpleLineSymbol(o8) {
  932. return new l22({ symbolLayers: [f5.fromSimpleLineSymbol(o8)] });
  933. }
  934. };
  935. e([d({ type: a14, json: { type: n16 } })], c16.prototype, "symbolLayers", void 0), e([r3({ LineSymbol3D: "line-3d" }, { readOnly: true })], c16.prototype, "type", void 0), c16 = l22 = e([n("esri.symbols.LineSymbol3D")], c16);
  936. var b3 = c16;
  937. // node_modules/@arcgis/core/symbols/MeshSymbol3D.js
  938. var i8;
  939. var y5 = j.ofType({ base: null, key: "type", typeMap: { fill: f3 } });
  940. var c17 = i8 = class extends A {
  941. constructor(o8) {
  942. super(o8), this.symbolLayers = new y5(), this.type = "mesh-3d";
  943. }
  944. clone() {
  945. return new i8({ styleOrigin: m(this.styleOrigin), symbolLayers: m(this.symbolLayers), thumbnail: m(this.thumbnail) });
  946. }
  947. };
  948. e([d({ type: y5 })], c17.prototype, "symbolLayers", void 0), e([r3({ MeshSymbol3D: "mesh-3d" }, { readOnly: true })], c17.prototype, "type", void 0), c17 = i8 = e([n("esri.symbols.MeshSymbol3D")], c17);
  949. var a15 = c17;
  950. // node_modules/@arcgis/core/symbols/PictureFillSymbol.js
  951. var c18;
  952. var u8 = c18 = class extends p7 {
  953. constructor(...t13) {
  954. super(...t13), this.type = "picture-fill", this.url = null, this.xscale = 1, this.yscale = 1, this.width = 12, this.height = 12, this.xoffset = 0, this.yoffset = 0, this.source = null;
  955. }
  956. normalizeCtorArgs(t13, s8, e7, r8) {
  957. if (t13 && typeof t13 != "string" && t13.imageData == null)
  958. return t13;
  959. const i9 = {};
  960. return t13 && (i9.url = t13), s8 && (i9.outline = s8), e7 != null && (i9.width = o3(e7)), r8 != null && (i9.height = o3(r8)), i9;
  961. }
  962. clone() {
  963. const t13 = new c18({ color: m(this.color), height: this.height, outline: this.outline && this.outline.clone(), url: this.url, width: this.width, xoffset: this.xoffset, xscale: this.xscale, yoffset: this.yoffset, yscale: this.yscale });
  964. return t13._set("source", m(this.source)), t13;
  965. }
  966. hash() {
  967. return `${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`;
  968. }
  969. };
  970. e([r3({ esriPFS: "picture-fill" }, { readOnly: true })], u8.prototype, "type", void 0), e([d(m6)], u8.prototype, "url", void 0), e([d({ type: Number, json: { write: true } })], u8.prototype, "xscale", void 0), e([d({ type: Number, json: { write: true } })], u8.prototype, "yscale", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], u8.prototype, "width", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], u8.prototype, "height", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], u8.prototype, "xoffset", void 0), e([d({ type: Number, cast: o3, json: { write: true } })], u8.prototype, "yoffset", void 0), e([d(c3)], u8.prototype, "source", void 0), u8 = c18 = e([n("esri.symbols.PictureFillSymbol")], u8);
  971. var a16 = u8;
  972. // node_modules/@arcgis/core/symbols/PointSymbol3D.js
  973. var b4;
  974. var f7 = j.ofType({ base: null, key: "type", typeMap: { icon: S3, object: l17, text: j4 } });
  975. var S4 = b4 = class extends A {
  976. constructor(t13) {
  977. super(t13), this.verticalOffset = null, this.callout = null, this.symbolLayers = new f7(), this.type = "point-3d";
  978. }
  979. supportsCallout() {
  980. if ((this.symbolLayers ? this.symbolLayers.length : 0) < 1)
  981. return false;
  982. for (const t13 of this.symbolLayers.items)
  983. switch (t13.type) {
  984. case "icon":
  985. case "text":
  986. case "object":
  987. continue;
  988. default:
  989. return false;
  990. }
  991. return true;
  992. }
  993. hasVisibleCallout() {
  994. return r7(this);
  995. }
  996. hasVisibleVerticalOffset() {
  997. return n14(this);
  998. }
  999. clone() {
  1000. return new b4({ verticalOffset: m(this.verticalOffset), callout: m(this.callout), styleOrigin: m(this.styleOrigin), symbolLayers: m(this.symbolLayers), thumbnail: m(this.thumbnail) });
  1001. }
  1002. static fromSimpleMarkerSymbol(t13) {
  1003. return new b4({ symbolLayers: [S3.fromSimpleMarkerSymbol(t13)] });
  1004. }
  1005. static fromPictureMarkerSymbol(t13) {
  1006. return new b4({ symbolLayers: [S3.fromPictureMarkerSymbol(t13)] });
  1007. }
  1008. static fromCIMSymbol(t13) {
  1009. const o8 = t13.data?.symbol?.type;
  1010. if (o8 !== "CIMPointSymbol")
  1011. return null;
  1012. return t13.data.symbol.callout ? new b4({ symbolLayers: [S3.fromCIMSymbol(t13)], callout: { type: "line", size: 0.5, color: [0, 0, 0] }, verticalOffset: { screenLength: 40 } }) : new b4({ symbolLayers: [S3.fromCIMSymbol(t13)] });
  1013. }
  1014. static fromTextSymbol(t13) {
  1015. return new b4({ symbolLayers: [j4.fromTextSymbol(t13)] });
  1016. }
  1017. };
  1018. e([d({ type: i7, json: { write: true } })], S4.prototype, "verticalOffset", void 0), e([d(l21)], S4.prototype, "callout", void 0), e([d({ type: f7, json: { origins: { "web-scene": { write: true } } } })], S4.prototype, "symbolLayers", void 0), e([r3({ PointSymbol3D: "point-3d" }, { readOnly: true })], S4.prototype, "type", void 0), S4 = b4 = e([n("esri.symbols.PointSymbol3D")], S4);
  1019. var h7 = S4;
  1020. // node_modules/@arcgis/core/symbols/PolygonSymbol3D.js
  1021. var L;
  1022. var u9 = j.ofType({ base: null, key: "type", typeMap: { extrude: m13, fill: f3, icon: S3, line: f5, object: l17, text: j4, water: n13 } });
  1023. var j5 = L = class extends A {
  1024. constructor(o8) {
  1025. super(o8), this.symbolLayers = new u9(), this.type = "polygon-3d";
  1026. }
  1027. clone() {
  1028. return new L({ styleOrigin: m(this.styleOrigin), symbolLayers: m(this.symbolLayers), thumbnail: m(this.thumbnail) });
  1029. }
  1030. static fromJSON(o8) {
  1031. const e7 = new L();
  1032. if (e7.read(o8), e7.symbolLayers.length === 2 && e7.symbolLayers.getItemAt(0).type === "fill" && e7.symbolLayers.getItemAt(1).type === "line") {
  1033. const r8 = e7.symbolLayers.getItemAt(0), s8 = e7.symbolLayers.getItemAt(1);
  1034. !s8.enabled || o8.symbolLayers && o8.symbolLayers[1] && o8.symbolLayers[1].enable === false || (r8.outline = { size: s8.size, color: r(s8.material) ? s8.material.color : null }), e7.symbolLayers.removeAt(1);
  1035. }
  1036. return e7;
  1037. }
  1038. static fromSimpleFillSymbol(o8) {
  1039. return new L({ symbolLayers: [f3.fromSimpleFillSymbol(o8)] });
  1040. }
  1041. };
  1042. e([d({ type: u9, json: { write: true } })], j5.prototype, "symbolLayers", void 0), e([r3({ PolygonSymbol3D: "polygon-3d" }, { readOnly: true })], j5.prototype, "type", void 0), j5 = L = e([n("esri.symbols.PolygonSymbol3D")], j5);
  1043. var S5 = j5;
  1044. // node_modules/@arcgis/core/symbols/WebStyleSymbol.js
  1045. var y6;
  1046. var h8 = s.getLogger("esri.symbols.WebStyleSymbol");
  1047. var u10 = y6 = class extends a2 {
  1048. constructor(t13) {
  1049. super(t13), this.styleName = null, this.portal = null, this.styleUrl = null, this.thumbnail = null, this.name = null, this.type = "web-style";
  1050. }
  1051. get fetchCacheKey() {
  1052. const t13 = r(this.portal) ? this.portal : B.getDefault(), e7 = t13.user ? t13.user.username : null;
  1053. return `${this.styleName}:${this.styleUrl}:${this.name}:${e7}:${t13.url}`;
  1054. }
  1055. read(t13, e7) {
  1056. this.portal = e7 ? e7.portal : void 0, super.read(t13, e7);
  1057. }
  1058. clone() {
  1059. return new y6({ name: this.name, styleUrl: this.styleUrl, styleName: this.styleName, portal: this.portal });
  1060. }
  1061. fetchSymbol(t13) {
  1062. return this._fetchSymbol("webRef", t13);
  1063. }
  1064. fetchCIMSymbol(t13) {
  1065. return this._fetchSymbol("cimRef", t13);
  1066. }
  1067. async _fetchSymbol(t13, e7) {
  1068. const s8 = r(e7) ? e7.cache : null, l23 = s8 ? this.fetchCacheKey : null;
  1069. if (r(s8)) {
  1070. const t14 = s8.get(l23);
  1071. if (t14)
  1072. return t14.clone();
  1073. }
  1074. const i9 = await f8();
  1075. f(e7);
  1076. const p23 = i9.resolveWebStyleSymbol(this, { portal: this.portal }, t13, e7);
  1077. p23.catch((t14) => {
  1078. h8.error("#fetchSymbol()", "Failed to create symbol from style", t14);
  1079. });
  1080. const a17 = await p23;
  1081. return t13 === "webRef" && a17.type === "point-3d" || t13 === "cimRef" && a17.type === "cim" ? (r(s8) && s8.set(l23, a17.clone()), a17) : null;
  1082. }
  1083. };
  1084. function f8() {
  1085. return import("./webStyleSymbolUtils-WP22VOP7.js");
  1086. }
  1087. e([d({ json: { write: false } })], u10.prototype, "color", void 0), e([d({ type: String, json: { write: true } })], u10.prototype, "styleName", void 0), e([d({ type: B, json: { write: false } })], u10.prototype, "portal", void 0), e([d({ type: String, json: { read: m2, write: p } })], u10.prototype, "styleUrl", void 0), e([d({ type: p4, json: { read: false } })], u10.prototype, "thumbnail", void 0), e([d({ type: String, json: { write: true } })], u10.prototype, "name", void 0), e([r3({ styleSymbolReference: "web-style" }, { readOnly: true })], u10.prototype, "type", void 0), e([d()], u10.prototype, "fetchCacheKey", null), u10 = y6 = e([n("esri.symbols.WebStyleSymbol")], u10);
  1088. var b5 = u10;
  1089. // node_modules/@arcgis/core/symbols.js
  1090. function x(e7) {
  1091. if (!e7)
  1092. return false;
  1093. switch (e7.type) {
  1094. case "picture-fill":
  1095. case "picture-marker":
  1096. case "simple-fill":
  1097. case "simple-line":
  1098. case "simple-marker":
  1099. case "text":
  1100. case "cim":
  1101. return true;
  1102. default:
  1103. return false;
  1104. }
  1105. }
  1106. function c19(e7) {
  1107. if (!e7)
  1108. return false;
  1109. switch (e7.type) {
  1110. case "label-3d":
  1111. case "line-3d":
  1112. case "mesh-3d":
  1113. case "point-3d":
  1114. case "polygon-3d":
  1115. return true;
  1116. default:
  1117. return false;
  1118. }
  1119. }
  1120. var j6 = { base: a2, key: "type", typeMap: { "simple-fill": S2, "picture-fill": a16, "picture-marker": n7, "simple-line": m4, "simple-marker": y2, text: m11, "label-3d": b2, "line-3d": b3, "mesh-3d": a15, "point-3d": h7, "polygon-3d": S5, "web-style": b5, cim: d2 }, errorContext: "symbol" };
  1121. var D = { base: a2, key: "type", typeMap: { "picture-marker": n7, "simple-marker": y2, text: m11, "web-style": b5, cim: d2 }, errorContext: "symbol" };
  1122. var k2 = s2({ types: j6 });
  1123. var M = { base: a2, key: "type", typeMap: { "simple-fill": S2, "picture-fill": a16, "picture-marker": n7, "simple-line": m4, "simple-marker": y2, text: m11, "line-3d": b3, "mesh-3d": a15, "point-3d": h7, "polygon-3d": S5, "web-style": b5, cim: d2 }, errorContext: "symbol" };
  1124. var P = { base: a2, key: "type", typeMap: { text: m11, "label-3d": b2 }, errorContext: "symbol" };
  1125. var h9 = { base: a2, key: "type", typeMap: { "line-3d": b3, "mesh-3d": a15, "point-3d": h7, "polygon-3d": S5, "web-style": b5, cim: d2 }, errorContext: "symbol" };
  1126. var F2 = { base: a2, key: "type", typeMap: { "label-3d": b2 }, errorContext: "symbol" };
  1127. var g4 = N(j6);
  1128. export {
  1129. t8 as t,
  1130. l12 as l,
  1131. m4 as m,
  1132. j2 as j,
  1133. p19 as p,
  1134. d5 as d,
  1135. l5 as l2,
  1136. p4 as p2,
  1137. A,
  1138. b2 as b,
  1139. b3 as b2,
  1140. n7 as n,
  1141. h7 as h,
  1142. S5 as S,
  1143. S2,
  1144. y2 as y,
  1145. m11 as m2,
  1146. b5 as b3,
  1147. x,
  1148. c19 as c,
  1149. j6 as j2,
  1150. D,
  1151. k2 as k,
  1152. M,
  1153. P,
  1154. h9 as h2,
  1155. F2 as F,
  1156. g4 as g
  1157. };
  1158. //# sourceMappingURL=chunk-EN7YGJWG.js.map