@arcgis/core 5.2.0-next.125 → 5.2.0-next.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analysis/ElevationProfile/ElevationProfileDisplayUnits.d.ts +3 -2
- package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +1 -0
- package/applications/Components/basemapToggleUtils.d.ts +53 -0
- package/applications/Components/basemapToggleUtils.js +2 -0
- package/arcgisGlobal.d.ts +2 -0
- package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
- package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{e35eb93c0fb1f6de8db0.js → 00d9e41deecf5828975c.js} +1 -1
- package/assets/esri/core/workers/chunks/{fe9582bc2244667e40ab.js → 05afa8c2b5929ce0545a.js} +1 -1
- package/assets/esri/core/workers/chunks/0a20f84b5f004a77a9f9.js +1 -0
- package/assets/esri/core/workers/chunks/{cfd56e0a716baf95e17b.js → 0a2b7c691a577cb3d189.js} +1 -1
- package/assets/esri/core/workers/chunks/{6cf34cfdd063a1b6fe3e.js → 0ccd4200c5a2a5de6e16.js} +1 -1
- package/assets/esri/core/workers/chunks/{ab8a1140bf31f46f8ebf.js → 1262918b2161d79851c0.js} +1 -1
- package/assets/esri/core/workers/chunks/{bdf012e591a8476db467.js → 1406a884241809b62bff.js} +1 -1
- package/assets/esri/core/workers/chunks/{d3ef23923424ad8c5048.js → 1c2723f9630e7d597843.js} +1 -1
- package/assets/esri/core/workers/chunks/{378bdb4e5cd1ebada1f4.js → 1c33aa349beea9a3792f.js} +1 -1
- package/assets/esri/core/workers/chunks/1d040aa8951fff3141d9.js +1 -0
- package/assets/esri/core/workers/chunks/{54eeb4cac4fa092359ab.js → 2226c20c38e20713bcb5.js} +2 -2
- package/assets/esri/core/workers/chunks/{54eeb4cac4fa092359ab.js.LICENSE.txt → 2226c20c38e20713bcb5.js.LICENSE.txt} +2 -2
- package/assets/esri/core/workers/chunks/26995de0c18bef8db590.js +1 -0
- package/assets/esri/core/workers/chunks/2c7fc24649d91552e68a.js +1 -0
- package/assets/esri/core/workers/chunks/{f05becec0952a61bc654.js → 2ebad7e588b26e74cefe.js} +1 -1
- package/assets/esri/core/workers/chunks/{2f52ad525744b8793d49.js → 3b7dff15a0058ea29886.js} +1 -1
- package/assets/esri/core/workers/chunks/{4716693eca44e8f89f5c.js → 3bf56c33876ba56c4b21.js} +1 -1
- package/assets/esri/core/workers/chunks/3c6ee445e49da0076ac1.js +1 -0
- package/assets/esri/core/workers/chunks/3ef367c9b7bf1588307d.js +1 -0
- package/assets/esri/core/workers/chunks/{5b9b76e180cf206a8a0c.js → 4327d2c39a660bd89da7.js} +1 -1
- package/assets/esri/core/workers/chunks/4678a8170d8a3ccd1a7b.js +1 -0
- package/assets/esri/core/workers/chunks/474d9541d387b31ad275.js +1 -0
- package/assets/esri/core/workers/chunks/{26bc509a031788bfa678.js → 4f464047c6f6c9486efd.js} +1 -1
- package/assets/esri/core/workers/chunks/50c29d10ec53f0e48e8a.js +1 -0
- package/assets/esri/core/workers/chunks/{58528ccb7f72ae76d52b.js → 540f60e31b19d85e9371.js} +1 -1
- package/assets/esri/core/workers/chunks/{44857a76be2c0ac65bb9.js → 55a560fd872f7463b33d.js} +1 -1
- package/assets/esri/core/workers/chunks/58fb92775d668cfd295c.js +1 -0
- package/assets/esri/core/workers/chunks/{f0901f9c7135b708434f.js → 5adf2792416b22cd602f.js} +1 -1
- package/assets/esri/core/workers/chunks/{b013b70e40dfb6ce013e.js → 668ec0bdfb2095e90c9e.js} +1 -1
- package/assets/esri/core/workers/chunks/67678054342178b601cf.js +1 -0
- package/assets/esri/core/workers/chunks/67dcf9b873cb037b2647.js +1 -0
- package/assets/esri/core/workers/chunks/75879ae88fd87b089a87.js +1 -0
- package/assets/esri/core/workers/chunks/76548469fe1b9c3b2051.js +1 -0
- package/assets/esri/core/workers/chunks/7d6da4e89aa951e6523f.js +1 -0
- package/assets/esri/core/workers/chunks/7dd94567833386dc74de.js +1 -0
- package/assets/esri/core/workers/chunks/{24673aac70d6c949b6fa.js → 86d7a3ae672a51b75fcc.js} +1 -1
- package/assets/esri/core/workers/chunks/88e11b645a1361f1bdbe.js +1 -0
- package/assets/esri/core/workers/chunks/{f0709c48daca93e759c8.js → 8b0d6205ceeec1ab446f.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f55701d23a5e5a0c70c.js → 8cb216404a6254bc695c.js} +123 -122
- package/assets/esri/core/workers/chunks/9d6a96e4c7ccedcb0c13.js +1 -0
- package/assets/esri/core/workers/chunks/9ec04faad97be55309b8.js +1 -0
- package/assets/esri/core/workers/chunks/a08385ebf1715414c1a6.js +1 -0
- package/assets/esri/core/workers/chunks/{b96358d475dc98034aa4.js → a15ed056e7493ddf3b4c.js} +1 -1
- package/assets/esri/core/workers/chunks/{25e212fe9a2ea37c9e81.js → a3a33ffa34f4d645ddfe.js} +1 -1
- package/assets/esri/core/workers/chunks/{e22a013ec38989caf9de.js → a790fc6b22acf651574b.js} +1 -1
- package/assets/esri/core/workers/chunks/af0704494398f33aa315.js +1 -0
- package/assets/esri/core/workers/chunks/{813dd84933b407c8fe86.js → b34305474a861aaf6ccb.js} +1 -1
- package/assets/esri/core/workers/chunks/{ce1ccf9ec90b786591e5.js → b396c4b4bb144200acc7.js} +1 -1
- package/assets/esri/core/workers/chunks/{bbaaebe1774a22dba39b.js → bbfb80a6983574007ce5.js} +1 -1
- package/assets/esri/core/workers/chunks/{3f082329a544c2c1d62d.js → bcf2e5cf6b9c6d0442bb.js} +1 -1
- package/assets/esri/core/workers/chunks/c35e9dee87937f483a3d.js +1 -0
- package/assets/esri/core/workers/chunks/c5b733c3a5b2680042a2.js +1 -0
- package/assets/esri/core/workers/chunks/{4f7e8e4ddf52b5245ea4.js → c77496c350004ee66eb2.js} +1 -1
- package/assets/esri/core/workers/chunks/{85739ed6af0f0a3cb302.js → c94bdfed831c775e04c0.js} +1 -1
- package/assets/esri/core/workers/chunks/{2e3fd81653dc0d86456c.js → cfeba0ffb7fdc2a9af05.js} +1 -1
- package/assets/esri/core/workers/chunks/d371d9279b30548efa02.js +1 -0
- package/assets/esri/core/workers/chunks/d5f0fed415b5b155d57c.js +1 -0
- package/assets/esri/core/workers/chunks/d6e914f6ed45ea59034e.js +1 -0
- package/assets/esri/core/workers/chunks/{0fba5c0e89b057da548d.js → dc92710a8fdfb9135e55.js} +1 -1
- package/assets/esri/core/workers/chunks/e0894a308c84d5c158b0.js +1 -0
- package/assets/esri/core/workers/chunks/{df79c00b5ddbef7148a0.js → eaa7cb3ffa8c11706a09.js} +1 -1
- package/assets/esri/core/workers/chunks/eebbc86a15ae3adb5f38.js +1 -0
- package/assets/esri/core/workers/chunks/f479b4a4cee4bb2e046c.js +1 -0
- package/assets/esri/core/workers/chunks/{78abd6c42f39e6f6ffbb.js → f983296b6f4a62a911eb.js} +1 -1
- package/assets/esri/images/portal/gaussiansplatlayer16.png +0 -0
- package/assets/esri/images/portal/knowledgegraphlayer16.png +0 -0
- package/assets/esri/images/portal/propresentation16.png +0 -0
- package/assets/esri/images/portal/urbanproject16.png +0 -0
- package/assets/esri/images/support/loading-throb.gif +0 -0
- package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
- package/assets/esri/libs/pdfjs/pdf.worker.mjs +4 -63051
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-arabic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-georgian.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-thai.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-arabic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-georgian.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-thai.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-arabic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-georgian.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-thai.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/3ae1e25e-3aa6-4061-a016-a079159f9d65.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/41331c3c-3759-4462-8695-33c9a21b6a5b.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/94aa531e-7746-4df0-bb6e-349891f2eda5.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-arabic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-georgian.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-thai.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-cyrillic.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-ext.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-greek.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-hebrew.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-math.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-vietnamese.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d.woff2 +0 -0
- package/assets/esri/themes/base/fonts/fonts.scss +0 -0
- package/assets/esri/themes/base/icons/style.scss +0 -0
- package/assets/esri/themes/base/icons/variables.scss +0 -0
- package/assets/esri/themes/base/images/files/archive-32.svg +0 -0
- package/assets/esri/themes/base/images/files/cad-32.svg +0 -0
- package/assets/esri/themes/base/images/files/code-32.svg +0 -0
- package/assets/esri/themes/base/images/files/csv-32.svg +0 -0
- package/assets/esri/themes/base/images/files/excel-32.svg +0 -0
- package/assets/esri/themes/base/images/files/generic-32.svg +0 -0
- package/assets/esri/themes/base/images/files/gpx-32.svg +0 -0
- package/assets/esri/themes/base/images/files/image-32.svg +0 -0
- package/assets/esri/themes/base/images/files/pdf-32.svg +0 -0
- package/assets/esri/themes/base/images/files/report-32.svg +0 -0
- package/assets/esri/themes/base/images/files/sound-32.svg +0 -0
- package/assets/esri/themes/base/images/files/text-32.svg +0 -0
- package/assets/esri/themes/base/images/files/video-32.svg +0 -0
- package/assets/esri/themes/base/images/files/word-32.svg +0 -0
- package/assets/esri/themes/base/images/files/zip-32.svg +0 -0
- package/assets/esri/themes/base/images/loading-throb.gif +0 -0
- package/assets/esri/themes/base/widgets/_Bookmarks.scss +0 -0
- package/assets/esri/themes/base/widgets/_Tooltip.scss +37 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.en.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.zh-TW.json +1 -1
- package/chunks/GlobalIllumination.glsl.js +10 -9
- package/chunks/GlobalIlluminationBlur.glsl.js +8 -8
- package/chunks/HeatmapDensity.glsl.js +5 -5
- package/chunks/Pattern.glsl.js +30 -30
- package/chunks/RibbonLine.glsl.js +19 -19
- package/config.js +1 -1
- package/core/Accessor.d.ts +1 -1
- package/core/accessorSupport/types.d.ts +5 -1
- package/core/lang.js +1 -1
- package/interfaces.d.ts +3 -0
- package/kernel.js +1 -1
- package/layers/ParquetLayer.d.ts +24 -15
- package/layers/ParquetLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +2 -2
- package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
- package/layers/geospatialPDF/LGIDictMapFrame.js +1 -1
- package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
- package/layers/geospatialPDF/geospatialPDFParserUtils.js +2 -0
- package/layers/geospatialPDF/projectionToWKTUtils.js +2 -0
- package/layers/geospatialPDF/renderExtentUtils.js +1 -1
- package/layers/geospatialPDF/sharedUtils.js +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/dehydratedFeatures.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
- package/layers/raster/types.d.ts +6 -0
- package/layers/support/TimeSeriesCalculation.d.ts +32 -0
- package/layers/support/TimeSeriesCalculation.js +2 -0
- package/layers/support/TimeSeriesInfo.d.ts +19 -0
- package/layers/support/TimeSeriesInfo.js +1 -1
- package/layers/support/commonProperties.js +1 -1
- package/layers/support/timeSeriesUtils.d.ts +25 -1
- package/layers/support/timeSeriesUtils.js +1 -1
- package/layers/types.d.ts +1 -0
- package/package.json +3 -3
- package/popup/FeatureContentCollection.d.ts +19 -26
- package/popup/FeatureContentCollection.js +1 -1
- package/popup/types.d.ts +14 -3
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/sceneLayerItem.js +1 -1
- package/renderers/support/AuthoringInfo.d.ts +8 -1
- package/renderers/support/AuthoringInfo.js +1 -1
- package/renderers/support/AuthoringInfoVisualVariable.d.ts +8 -1
- package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
- package/rest/imageService/fetchRasterInfo.js +1 -1
- package/rest/knowledgeGraph/DataModel.js +1 -1
- package/smartMapping/renderers/color.d.ts +12 -0
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/opacity.d.ts +6 -0
- package/smartMapping/renderers/opacity.js +1 -1
- package/smartMapping/renderers/size.d.ts +12 -0
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/regenerateUtils.js +1 -1
- package/smartMapping/renderers/support/rendererUtils.js +1 -1
- package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
- package/smartMapping/renderers/type.d.ts +6 -0
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/renderers/univariateColorSize.d.ts +6 -0
- package/smartMapping/renderers/univariateColorSize.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/callouts/calloutAnalysisUtils.js +2 -0
- package/symbols/cim/callouts/effects/BackgroundCallout.js +1 -1
- package/symbols/cim/callouts/effects/BalloonCallout.js +1 -1
- package/symbols/cim/callouts/effects/PointSymbolCallout.js +1 -1
- package/symbols/cim/callouts/effects/SimpleLineCallout.js +1 -1
- package/symbols/cim/callouts/effects/calloutUtils.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +8 -0
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
- package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +8 -0
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
- package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +3 -2
- package/views/2d/engine/webgl/ClipMesh.js +1 -1
- package/views/2d/engine/webgl/mesh/factories/CalloutMeshWriterCoordinator.js +1 -1
- package/views/2d/engine/webgl/mesh/factories/MeshWriterGroupCoordinator.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/templateUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/AFillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/CalloutMeshWriterPolicy.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterReferences.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/2d/engine/webgl/util/AnnotationMatcher.js +1 -1
- package/views/2d/engine/webgl/util/Matcher.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/support/annodime/MatcherGeometryOverride.js +1 -1
- package/views/2d/layers/support/annodime/PrivateMatcherGeometryOverrideEffect.js +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/Dimension/DimensionController.js +1 -1
- package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +3 -2
- package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
- package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +5 -3
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementRootPlugin.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +1 -0
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
- package/views/3d/input/handlers/DragRotate.js +1 -1
- package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
- package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
- package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
- package/views/3d/interactive/editingTools/manipulatedObjectUtils.js +1 -1
- package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
- package/views/3d/interactive/editingTools/tooltipUtils3D.js +1 -1
- package/views/3d/layers/graphics/FeatureGraphics3DGraphicsPipeline.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
- package/views/3d/layers/support/FeatureMemory.js +2 -0
- package/views/3d/layers/support/FeatureTile.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/featureReference.js +1 -1
- package/views/3d/navigation/modes/GroundNavigationMode3D.js +1 -1
- package/views/3d/state/Constraints.js +1 -1
- package/views/3d/state/controllers/GroundNavigationController.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/planarDistanceToGroundRatio.js +2 -0
- package/views/3d/support/popupHitTest.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +13 -13
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +2 -2
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
- package/views/DOMContainer.d.ts +2 -2
- package/views/DOMContainer.js +1 -1
- package/views/PopupView.d.ts +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
- package/views/analysis/LengthDimensionResult.d.ts +4 -1
- package/views/draw/support/managers/TooltipManager.js +1 -1
- package/views/interactive/options/SnappingOptions.d.ts +4 -2
- package/views/interactive/options/SnappingOptions.js +1 -1
- package/views/interactive/options/ViewOptions.d.ts +18 -0
- package/views/interactive/options/bindViewToolOptions.js +2 -0
- package/views/interactive/snapping/SnappingManagerPool.js +1 -1
- package/views/interactive/snapping/allLayerSnapping.js +1 -1
- package/views/interactive/tooltip/components/ElevationModeSelect.js +2 -0
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/content/TooltipContent.js +1 -1
- package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
- package/views/interactive/tooltip/infos/SketchTooltipInfo.js +1 -1
- package/views/overlay/FocusRegionOverlayItem.js +1 -1
- package/views/selection/SelectionOperation.d.ts +27 -1
- package/views/selection/types.d.ts +8 -20
- package/views/support/hitTestSelectUtils.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +1 -0
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
- package/widgets/AreaMeasurement2D.js +1 -1
- package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +1 -0
- package/widgets/BasemapLayerList.d.ts +1 -0
- package/widgets/BasemapToggle/BasemapToggleViewModel.d.ts +1 -0
- package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
- package/widgets/BasemapToggle.js +1 -1
- package/widgets/BatchAttributeForm/expressions/types.d.ts +1 -0
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +9 -1
- package/widgets/BatchAttributeForm/types.d.ts +5 -1
- package/widgets/BatchAttributeForm.d.ts +1 -0
- package/widgets/Bookmarks/BookmarksViewModel.d.ts +1 -0
- package/widgets/Bookmarks.d.ts +1 -0
- package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +1 -0
- package/widgets/CatalogLayerList.d.ts +1 -0
- package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +1 -0
- package/widgets/DirectionalPad/DirectionalPadViewModel.js +1 -1
- package/widgets/DirectionalPad.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +1 -0
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
- package/widgets/DistanceMeasurement2D.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/legacy/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.d.ts +1 -0
- package/widgets/FeatureForm.d.ts +1 -0
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +14 -0
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.d.ts +14 -0
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.d.ts +1 -0
- package/widgets/FeatureTemplates.d.ts +1 -0
- package/widgets/Features/FeaturesViewModel.d.ts +1 -0
- package/widgets/Features.d.ts +2 -1
- package/widgets/HistogramRangeSlider.d.ts +1 -0
- package/widgets/Home/HomeViewModel.d.ts +1 -0
- package/widgets/Home.d.ts +1 -0
- package/widgets/LayerList/LayerListViewModel.d.ts +1 -0
- package/widgets/LayerList.d.ts +1 -0
- package/widgets/Locate/LocateViewModel.d.ts +1 -0
- package/widgets/Locate.d.ts +1 -0
- package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/NavigationManagerPanoramic.js +1 -1
- package/widgets/OrientedImageryViewer/types.d.ts +4 -1
- package/widgets/OrientedImageryViewer.d.ts +4 -1
- package/widgets/Popup/types.d.ts +0 -7
- package/widgets/Popup.d.ts +8 -7
- package/widgets/Print/PrintViewModel.d.ts +1 -0
- package/widgets/Print.d.ts +1 -0
- package/widgets/Search.d.ts +1 -0
- package/widgets/Sketch.d.ts +1 -0
- package/widgets/Slider.d.ts +4 -0
- package/widgets/TimeSlider/TimeSliderViewModel.d.ts +2 -0
- package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
- package/widgets/TimeSlider.d.ts +1 -0
- package/widgets/TimeSlider.js +1 -1
- package/widgets/Track/TrackViewModel.d.ts +1 -0
- package/widgets/Track.d.ts +1 -0
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.d.ts +1 -0
- package/widgets/UtilityNetworkTrace.d.ts +1 -0
- package/widgets/ValuePicker/types.d.ts +1 -0
- package/widgets/ValuePicker.d.ts +1 -0
- package/widgets/smartMapping/SmartMappingSliderBase.d.ts +1 -0
- package/widgets/support/SelectionList/types.d.ts +2 -0
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.d.ts +2 -1
- package/assets/esri/core/workers/chunks/0148cb611bf7c8c5fe8a.js +0 -1
- package/assets/esri/core/workers/chunks/0a4a5ed831a4e4d8e0fc.js +0 -1
- package/assets/esri/core/workers/chunks/0acc754907395e83bbc6.js +0 -1
- package/assets/esri/core/workers/chunks/0f8ff964461cf8e0673b.js +0 -1
- package/assets/esri/core/workers/chunks/1e46703cb566c25458ad.js +0 -1
- package/assets/esri/core/workers/chunks/25c90092def215949db9.js +0 -1
- package/assets/esri/core/workers/chunks/2a34760b3f0c134898ec.js +0 -1
- package/assets/esri/core/workers/chunks/38890ac5917942374ab8.js +0 -1
- package/assets/esri/core/workers/chunks/3b4ceaf21be540cb3499.js +0 -1
- package/assets/esri/core/workers/chunks/4c4ba466e23159991322.js +0 -1
- package/assets/esri/core/workers/chunks/5afc12671a9a1bb6c56c.js +0 -1
- package/assets/esri/core/workers/chunks/606ac9358f508bda94f2.js +0 -1
- package/assets/esri/core/workers/chunks/6c3535aa7250c08b9e5b.js +0 -1
- package/assets/esri/core/workers/chunks/6c4def0faaef861a09c9.js +0 -1
- package/assets/esri/core/workers/chunks/7285a37cd5359aa4bac5.js +0 -1
- package/assets/esri/core/workers/chunks/753d1ff177ecee8e2377.js +0 -1
- package/assets/esri/core/workers/chunks/8a8e94b5d7d153361b0b.js +0 -1
- package/assets/esri/core/workers/chunks/923c45ebcf45d9ce8ae0.js +0 -1
- package/assets/esri/core/workers/chunks/9af36ee6a0df224859bc.js +0 -1
- package/assets/esri/core/workers/chunks/a7ce5b958dfeb240c4a5.js +0 -1
- package/assets/esri/core/workers/chunks/aed479c14d93955f4798.js +0 -1
- package/assets/esri/core/workers/chunks/be52c319a0a81ce1ba36.js +0 -1
- package/assets/esri/core/workers/chunks/c0ec87800faf99cbd8bd.js +0 -1
- package/assets/esri/core/workers/chunks/ca5a4f62b09cc8579dc0.js +0 -1
- package/assets/esri/core/workers/chunks/d090baaa974e1e83fa44.js +0 -1
- package/assets/esri/core/workers/chunks/e9f8325a4cf89ae816cc.js +0 -1
- package/assets/esri/core/workers/chunks/ed7d4e8725aaa0ca4589.js +0 -1
- package/assets/esri/core/workers/chunks/f4572ad25712d204f258.js +0 -1
- package/layers/geospatialPDF/GeospatialPDFParserUtils.js +0 -2
- package/layers/geospatialPDF/Projection.js +0 -2
- package/views/2d/engine/webgl/mesh/bufcut.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7320],{6797(e,t,r){r.d(t,{Ui:()=>y});var i=r(69622),n=r(7762),s=r(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function l(e){return e instanceof n.A?Object.keys(e.items):a(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=l(e),n=l(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=n.filter(e=>!i.includes(e)),y=i.filter(e=>!n.includes(e)),d=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(s,y).sort(),h=c(e);if(h&&o.has(h)&&d.length)return{type:"complete",oldValue:e,newValue:t};let g;const f=a(e)&&a(t);for(const i of d){const n=u(e,i),s=u(t,i);let o;if((f||"function"!=typeof n&&"function"!=typeof s)&&n!==s&&(null!=n||null!=s)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(n,s);else if(n instanceof Date&&s instanceof Date){if(n.getTime()===s.getTime())continue;o={type:"complete",oldValue:n,newValue:s}}else o="object"==typeof n&&"object"==typeof s&&c(n)===c(s)?p(n,s):{type:"complete",oldValue:n,newValue:s};null!=o&&(null!=g?g.diff[i]=o:g={type:"partial",diff:{[i]:o}})}}return g}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},44794(e,t,r){r.d(t,{v:()=>a});var i=r(4718),n=r(62788),s=r(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=i.gh){return new o(e,t)}},99680(e,t,r){r.r(t),r.d(t,{default:()=>ae});var i=r(32198),n=r(37838),s=r(69540),o=r(7762),a=r(51447),l=r(49186),u=r(44208),c=r(53966),p=r(25728),y=r(93637),d=r(36708),h=r(84952),g=r(10107),f=r(64108),m=r(43937),w=r(5443),v=r(16930),b=r(55156),_=r(60950),C=r(89808),x=r(99959);const P=Symbol("isParquetGraphicOrigin");var S;class M extends x.A{get[(S=P,_.ym)](){return this.layer}get[b.e](){return this.layer}get[C.Q](){return this.layer}constructor(e){super(),this[S]=!0,this.type="parquet",this.layer=e}get id(){return this.layer.id}}var A=r(4146),R=r(65529),q=r(92474),F=r(17676),E=r(83027),L=r(42760),T=r(22671);let I=class extends((0,R.Zt)(q.x_)){constructor(e){super(e),this.type="parquet"}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._initialize(t)),this.addHandles([(0,d.wB)(()=>this.layer.data,async e=>{if(e)try{await this._proxy.updateFileProvider(await(0,L.Dt)(e))}catch{}}),(0,d.wB)(()=>this.layer.customParameters,e=>this._setCustomParameters(e))]),Promise.resolve(this)}async reload(e){const t=await this._createLoadParameters(e);return this._proxy.reload(t)}destroy(){this._connection?.destroy()}async openPorts(){return await this.load(),this._connection.openPorts()}async getDiagnosticsSnapshot(){return await this.load(),this._proxy.getDiagnosticsSnapshot()}async getColumnIndex(e){return await this.load(),this._proxy.getColumnIndex(e)}async getOffsetIndex(e){return await this.load(),this._proxy.getOffsetIndex(e)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._proxy.queryFeatures(e.toJSON(),{signal:t?.signal})}async queryFeatures(e,t={}){const r=await this.queryFeaturesJSON(e,{signal:t?.signal});return T.A.fromJSON(r)}async queryObjectIds(e,t){return await this._proxy.queryObjectIds(e.toJSON(),{signal:t?.signal})}async queryFeatureCount(e,t){return this._proxy.queryFeatureCount(e.toJSON(),{signal:t?.signal})}async queryExtent(e,t){if(null==this.layer.geometryEncoding)return c.A.getLogger(this).warn("Tried to queryExtent, but source does not have a geometry. Returning null extent."),{count:0,extent:null};const r=await this._proxy.queryExtent(e.toJSON(),{signal:t?.signal});return{count:r.count,extent:w.A.fromJSON(r.extent)}}async _initialize(e){const t={onSourceChange:()=>this.emit("source-changed"),onRangeRead:e=>this.emit("range-read",e)};this._connection=await(0,E.h)("ParquetSourceWorker",{strategy:"dedicated",signal:e,registryTarget:this,client:t}),(0,F.Te)(e),this._proxy=this._connection.createInvokeProxy();const r=await this._createLoadParameters(e),{layerDefinition:i,capabilities:n}=await this._proxy.load(r);(0,F.Te)(e),this.sourceJSON=i,this.capabilities=n}async _createLoadParameters(e){if(!this.layer.data)throw new l.A("parquet:missing-data","A data source must be specified",this.layer);const t=await(0,L.Dt)(this.layer.data,{signal:e});return(0,F.Te)(e),{provider:t,fields:this.layer.fields?.map(e=>e.toJSON()),geometryType:this.layer.geometryType?(0,L.sA)(this.layer.geometryType):null,spatialReference:this.layer.spatialReference?.toJSON(),geometryEncoding:this.layer.geometryEncoding?.toJSON(),displayOptimization:this.layer.displayOptimization,customParameters:this.layer.customParameters}}_setCustomParameters(e){this._proxy.setCustomParameters(e).catch(()=>{c.A.getLogger(this).warn("Failed to update customParameters")})}_queryStream(e,t){return this._proxy.queryStream(e,t)}_getStreamNextFeatures(e,t){return this._proxy.getStreamNextFeatures(e,t)}};(0,i.Cg)([(0,g.MZ)()],I.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({constructOnly:!0})],I.prototype,"layer",void 0),(0,i.Cg)([(0,g.MZ)()],I.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,g.MZ)()],I.prototype,"capabilities",void 0),I=(0,i.Cg)([(0,f.$)("esri.layers.graphics.sources.ParquetSource")],I);var O=r(63074),Z=r(69208),j=r(10497),N=r(87718),z=r(56658),U=r(34287),D=r(32756),V=r(54310),$=r(25036),J=r(10873),G=r(29005),B=r(20437),k=r(17036),K=r(30524),Q=r(9075),W=r(34582),H=r(46499),X=r(39383),Y=r(56370),ee=r(89160),te=r(41214),re=r(97552),ie=r(30291);const ne=(0,k.p)(),se="__OBJECTID",oe={types:{key:"type",base:null,typeMap:{wkb:W.A,location:Q.A}},json:{name:"layerDefinition.geometryEncoding",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{read:{source:"geometryEncoding"}}}}};let ae=class extends((0,z.J)((0,N.F)((0,O.dM)((0,D.fY)((0,j.z)((0,$.j)((0,V.J)((0,U.q)((0,p.M)((0,Z.d)((0,s.OU)(A.A)))))))))))){constructor(e){super(e),this._emptyUrls=new o.A,this.copyright=null,this.definitionExpression=null,this.returnM=void 0,this.returnZ=void 0,this.displayOptimization=null,this.fields=null,this.fieldsIndex=null,this.geometryEncoding=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new M(this),this.labelsVisible=!0,this.labelingInfo=null,this.objectIdField=se,this.operationalLayerType="ParquetLayer",this.outFields=null,this.persistenceEnabled=!!(0,u.A)("parquetlayer-persistence-enabled"),this.popupTemplate=null,this.source=null,this.spatialReference=null,this.templates=null,this.type="parquet",this.data=null}initialize(){this.addHandles((0,d.on)(()=>this.source,"source-changed",()=>{this.emit("refresh",{dataChanged:!0})}))}destroy(){this.source?.destroy()}async load(e){return this.addResolvingPromise(this._load(e)),this}get capabilities(){return this.source?.capabilities}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,r,i){const n=e.filter(e=>!(e.name===se&&"oid"===e.type)).map(e=>e.toJSON(i));(0,y.sM)(r,n,t)}get isTable(){return null==this.geometryEncoding&&null==this.displayOptimization}set renderer(e){(0,K.yp)(e,this.fieldsIndex),this._set("renderer",e)}get title(){let e=this._get("title");if(e&&"defaults"!==this.originOf("title"))return e;switch(this.data?.type){case"files":{const t=this.data.urls?.at(0);e=t?(0,h.e7)(t,["parquet"]):null;break}case"portal-item":e=this.data.portalItem?.title}return e||"Parquet"}set title(e){this._set("title",e)}writeData(e,t,r,i){if(!e)return;if("portal-item"===e.type&&"Parquet Feature Layer"!==e.portalItem?.type)return void i.messages?.push(new l.A("parquet-layer:unsupported-data",`Portal item with type '${e.portalItem?.type}' is not supported in web maps`,{layer:this,itemId:e.portalItem?.id}));const n=e.write({},i);n&&(t.source=n)}get urls(){return"files"===this.data?.type?this.data.urls:this._emptyUrls}set urls(e){(0,a.Lx)(c.A.getLogger(this),"urls",{replacement:"data",version:"5.1",warnOnce:!0}),this.data=new Y.A({urls:this._normalizeUrls(e)})}createPopupTemplate(e){return(0,ie.tn)(this,e)}createQuery(){const e=new re.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}async createSource(e){const t=new I({layer:this});return await t.load(e),t}getFieldDomain(e,t){return null}getField(e){return this.fieldsIndex.get(e)}async queryFeatures(e,t){await this.load();const r=await this.source.queryFeatures(this._normalizeQuery(e),t),i=this.graphicOrigin;if(r?.features)for(const e of r.features)e.layer=e.sourceLayer=this,e.origin=i;return r}async queryObjectIds(e,t){return await this.load(),this.source.queryObjectIds(this._normalizeQuery(e),t)}async queryFeatureCount(e,t){return await this.load(),this.source.queryFeatureCount(this._normalizeQuery(e),t)}async queryExtent(e,t){return await this.load(),this.source.queryExtent(this._normalizeQuery(e),t)}async hasDataChanged(){if("portal-item"===this.data?.type){const e=this.data.portalItem,t=e.modified?.getTime();if(await e.reload(),t===e.modified?.getTime())return!1}return await this.source.reload(null),!0}_normalizeQuery(e){return re.A.from(e)??this.createQuery()}_normalizeUrls(e){return Array.isArray(e)?new o.A(e):e??new o.A}async _load(e){"portal-item"===this.data?.type&&await this.data.portalItem.load();const t=await this.createSource(e);this._set("source",t),this.read(t.sourceJSON,{origin:"service"}),["fields"].forEach(e=>this.revertToOrigin(e,"service")),(0,K.yp)(this.renderer,this.fieldsIndex),null==this.spatialReference&&(this.spatialReference=v.A.WGS84)}};(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,write:!1}})],ae.prototype,"capabilities",null),(0,i.Cg)([(0,g.MZ)({type:String})],ae.prototype,"copyright",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ae.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ae.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean})],ae.prototype,"returnM",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean})],ae.prototype,"returnZ",void 0),(0,i.Cg)([(0,g.MZ)()],ae.prototype,"displayOptimization",void 0),(0,i.Cg)([(0,g.MZ)({type:[B.A],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],ae.prototype,"fields",void 0),(0,i.Cg)([(0,m.K)("fields")],ae.prototype,"writeFields",null),(0,i.Cg)([(0,g.MZ)(ne.fieldsIndex)],ae.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,g.MZ)(oe)],ae.prototype,"geometryEncoding",void 0),(0,i.Cg)([(0,g.MZ)({type:w.A,json:{name:"extent"}})],ae.prototype,"fullExtent",void 0),(0,i.Cg)([(0,g.MZ)({type:L.ye.apiValues,json:{name:"layerDefinition.geometryType",read:{reader:L.ye.read},write:{writer:L.ye.write,ignoreOrigin:!0,isRequired:!0},origins:{service:{read:{source:"geometryType",reader:L.ye.read}}}}})],ae.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,clonable:!1})],ae.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,g.MZ)(J.kF)],ae.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,g.MZ)({type:[H.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:X.w},write:!0}})],ae.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,g.MZ)(J.fV)],ae.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)()],ae.prototype,"file",void 0),(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0})],ae.prototype,"objectIdField",void 0),(0,i.Cg)([(0,g.MZ)({type:["ParquetLayer"]})],ae.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)(ne.outFields)],ae.prototype,"outFields",void 0),(0,i.Cg)([(0,g.MZ)(J.M6)],ae.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],ae.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({types:te.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:!0,origins:{service:{read:{source:"drawingInfo.renderer"}}}}})],ae.prototype,"renderer",null),(0,i.Cg)([(0,g.MZ)({type:I,readOnly:!0,cast:null,json:{read:!1}})],ae.prototype,"source",void 0),(0,i.Cg)([(0,g.MZ)({type:v.A,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{read:{source:"extent.spatialReference"}}}}})],ae.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.MZ)({type:[G.A]})],ae.prototype,"templates",void 0),(0,i.Cg)([(0,g.MZ)()],ae.prototype,"title",null),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],ae.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({types:{key:"type",base:null,typeMap:{files:Y.A,"portal-item":ee.A}},json:{name:"source",origins:{"web-map":{write:{target:"source",ignoreOrigin:!0}}}}})],ae.prototype,"data",void 0),(0,i.Cg)([(0,m.K)("web-map","data")],ae.prototype,"writeData",null),(0,i.Cg)([(0,g.MZ)({type:o.A.ofType(String),json:{read:!1,write:!1}})],ae.prototype,"urls",null),ae=(0,i.Cg)([(0,f.$)("esri.layers.ParquetLayer")],ae)},24460(e,t,r){function i(e){const{minValue:t,maxValue:r,numValues:i,nullCount:n,distinctCount:s}=e;return null!=i&&n===i?{type:"null-only",nullCount:n,distinctCount:s}:"number"==typeof t&&Number.isFinite(t)&&"number"==typeof r&&Number.isFinite(r)&&t<=r?{type:"bounds",minValue:t,maxValue:r,nullCount:n,distinctCount:s}:null!=t||null!=r||null!=s||null!=n?{type:"unknown",nullCount:n,distinctCount:s}:null}function n(e){const t=new Map;for(const r of e.files){const e=s(r);t.set(r.name,e)}return t}function s(e){const t=new Map;for(const r of e.statistics??[]){const e=r.column.at(-1);if(null==e)continue;const n=i({minValue:r.minValue,maxValue:r.maxValue,numValues:null,nullCount:r.nullCount??0,distinctCount:r.distinctCount??null});null!=n&&t.set(e,n)}return new a(0,0,t)}function o(e){const t=e.minValue(),r=e.maxValue(),n=e.numValues(),s=e.distinctCount()??null;return i({minValue:t,maxValue:r,numValues:n,nullCount:e.nullCount()??null,distinctCount:s})}r.d(t,{Hk:()=>o,MB:()=>a,t8:()=>n});class a{static fromFile(e){const t=e.numRows(),r=e.byteLength(),i=new Map;for(const t of e.getColumnDescriptors()){const e=o(t);null!=e&&i.set(t.name(),e),t.free()}return new a(t,r,i)}constructor(e,t,r){this.rowCount=e,this.byteSize=t,this.statistics=r}}},95031(e,t,r){r.d(t,{M:()=>x});var i=r(56507),n=r(32198),s=r(49186),o=r(65529),a=r(44208),l=r(563),u=r(84952),c=r(53929),p=r(24460);class y{static async create(e,t,r,i,n){if(!n){const n=await(0,c.DV)(r,{geometryInfo:e,provider:t}),s=p.MB.fromFile(n);return new y(e,t,r,i,s,Promise.resolve(n))}return new y(e,t,r,i,n,null)}constructor(e,t,r,i,n,s){this._geometryInfo=e,this._provider=t,this.url=r,this.id=i,this.statistics=n,this._file=s}destroy(){null!=this._file&&this._file.then(e=>e.free())}get file(){return null==this._file&&(this._file=(0,c.DV)(this.url,{geometryInfo:this._geometryInfo,provider:this._provider})),this._file}async getDiagnosticsSnapshot(){return{...(await this.file).diagnosticsSnapshot(),fileId:this.id,fileName:this.url}}async getColumnIndex(e,t){return(await this.file).columnIndex(e,t)}async getOffsetIndex(e,t){return(await this.file).offsetIndex(e,t)}}const d="_spatial.json",h=new l.QueueProcessor({concurrency:12,process:async e=>{const{data:t}=await(0,i.A)(e.url,e.options);return t}});let g=1;class f{constructor(e,t=()=>{}){this._geometryInfo=e,this._getCustomParameters=t,this.events=new o.bk}async destroy(){await this.clear()}async clear(){if(this._infos){const e=await this._infos;for(const t of e.values())t.destroy();e.clear(),this._infos=null}}async getMetadata(){const e={stack:[],error:void 0,hasError:!1};try{const t=(await this._getParquetFileNames()).at(0);if(!t)return null;const r=(0,n.mS)(e,await(0,c.DV)(t,{provider:this}),!1);return(0,c._6)(r)}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}getGeometryInfo(){return this._geometryInfo}async getFiles(){const e=await this._getInfoMap();return Array.from(e.values())}async updateGeometryInfo(e){if(this._geometryInfo)throw new Error("GeometryInfo already set");await this.clear(),this._geometryInfo=e}async fetchLength(e){const{byteLength:t,cacheTag:r}=await this._fetchLengthAndTag(e);if(!(0,a.A)("parquetlayer-cache-enabled"))return t;try{await this._createOrResetCache(e,r)}catch(e){}return t}async fetchRange(e,t,r,i){const n={fileId:e,requestId:g++,range:{start:t,end:r+1}};this.events.emit("rangeRead",{...n,phase:"start"});try{const s=await this._fetchRangeWithCache(e,t,r,i);return this.events.emit("rangeRead",{...n,phase:"complete"}),s}catch(e){throw this.events.emit("rangeRead",{...n,phase:"error"}),e}}_getCacheFileName(e){return e}async _requestStatistics(e){const{data:t}=await(0,i.A)(e,{responseType:"json",query:this._getCustomParameters()});return t}async _fetchRange(e,t,r,i){const n={url:e,options:{responseType:"array-buffer",query:this._getCustomParameters()??{},cacheMode:"no-store",useQueue:!0,headers:{range:`bytes=${t}-${r}`}}},o=await h.push(n),a=r-t+1;if(o.byteLength!==a)throw new s.A("InvalidRangeRequest",`request returned ${o.byteLength} bytes for range ${t}-${r}, expected ${a}.`);return o}async _fetchLengthAndTag(e){if((0,u.w8)(e)){const{data:t}=await(0,i.A)(e,{responseType:"blob"});return{byteLength:t.size,cacheTag:null}}const t=await this._requestHead(e),r=t.headers.get("Content-Length");if(null==r)throw new Error("Unable to parse content length");const n=t.headers.get("etag")??t.headers.get("Last-Modified");return{byteLength:parseInt(r,10),cacheTag:n}}async _getInfoMap(){return this._infos||(this._infos=this._fetchParquetFiles()),this._infos}async _updateParquetFileInfos(e){const t=await this._getInfoMap(),r=new Set(e);for(const e of r)if(!t.get(e)){const r=t.size,i=await y.create(this.getGeometryInfo(),this,e,r,null);t.set(e,i)}for(const e of t.keys())if(!r.has(e))throw new Error("Deletion not supported")}async _getFileStatistics(e){this._statistics||(this._statistics=this._fetchStatistics());const t=await this._statistics,r=function(e){return e.split(/[?#]/)[0].split("/").at(-1)??e}(e);return t.get(r)}async _fetchParquetFiles(){const e=(await this._getParquetFileNames()).map(async(e,t)=>{const r=t,i=await this._getFileStatistics(e);return y.create(this.getGeometryInfo(),this,e,r,i)}),t=await Promise.all(e),r=new Map;for(const e of t)r.set(e.url,e);return r}async _fetchStatistics(){const e=await this._getStatisticsFileName();if(null==e)return new Map;const t=await this._resolveFileUrl(e),r=await this._requestStatistics(t);return(0,p.t8)(r)}async _requestHead(e){const{data:t}=await(0,i.A)(e,{responseType:"native",method:"head",query:this._getCustomParameters()});return t}async _openCache(e){return caches.open(this._getCacheName(e))}async _fetchRangeWithCache(e,t,r,i){if(!(0,a.A)("parquetlayer-cache-enabled"))return this._fetchRange(e,t,r,i);const n=new URL(this._getCacheFileName(e));n.searchParams.append("range",`${t}-${r}`);try{const s=await this._openCache(e),o=await s.match(n);if(o)return await o.arrayBuffer();const a=await this._fetchRange(e,t,r,i);return await s.put(n,new Response(a,{headers:{"Content-Type":"application/octet-stream","Content-Length":a.byteLength.toString()}})),a}catch(n){return this._fetchRange(e,t,r,i)}}_getCacheName(e){return`parquet.v1:${this._getCacheFileName(e)}`}async _createOrResetCache(e,t){const r=this._getCacheName(e),i=new URL(this._getCacheFileName(e));if(i.searchParams.append("metadata","true"),null==t)return void await caches.delete(r);let n=await caches.open(r);const s=await n.match(i),o=await(s?.json());o?.tag!==t&&(await caches.delete(r),n=await caches.open(r));const a=JSON.stringify({tag:t});await n.put(i,new Response(a,{headers:{"Content-Type":"application/json","Content-Length":a.length.toString()}}))}}function m(e){const t=e.split(/[?#]/)[0];return t===d||t.endsWith(d)}var w=r(39131);class v extends f{constructor(e,t,r){super(t,r),this._schema=e,this._isAgol=!!(0,w.py)(this._schema.itemUrl)}async update(e){throw new Error("Unsupported")}async _getParquetFileNames(){return[`${this._baseUrl}/data`]}async _getStatisticsFileName(){return null}_getCacheFileName(e){return`${this._baseUrl}/data`}async _resolveFileUrl(e){return this._resolvedUrl||(this._resolvedUrl=this._fetchResolvedUrl()),this._resolvedUrl}async _fetchLengthAndTag(e){const t=await super._fetchLengthAndTag(e);return t.cacheTag=this._schema.modified.getTime().toString(),t}async _fetchRange(e,t,r,i){try{const n=await this._resolveFileUrl(e);return await super._fetchRange(n,t,r,i)}catch{this._resolvedUrl=null}const n=await this._resolveFileUrl(e);return super._fetchRange(n,t,r,i)}get _baseUrl(){return this._schema.itemCdnUrl??this._schema.itemUrl}async _fetchResolvedUrl(){return this._isAgol?(await(0,i.A)(`${this._baseUrl}/data`,{query:{signedurl:!0,expiration:9,f:"json"}})).data.signedUrl:`${this._baseUrl}/data`}}var b=r(47828);class _ extends f{constructor(e,t,r){super(t,r),this._schema=e,this._directoryChanged=!1}get _baseUrl(){return this._schema.itemCdnUrl??this._schema.itemUrl}async update(e){throw new Error("Unsupported")}async _getParquetFileNames(){const e=await this._getResources();return Array.from(e.keys()).filter(e=>e.endsWith(".parquet"))}async _getStatisticsFileName(){const e=await this._getResources();return Array.from(e.keys()).find(m)??null}_getCacheFileName(e){return`${this._baseUrl}/resources/${e}`}async _resolveFileUrl(e){const t=await this._getResource(e);return t.signedUrl?t.signedUrl:`${this._baseUrl}/resources/${e}`}async _fetchLengthAndTag(e){const t=await this._getResource(e),r=this._schema.itemMetadata.modified.getTime().toString();return{byteLength:t.size,cacheTag:r}}async _fetchRange(e,t,r,i){if(this._directoryChanged)throw(0,b.O)();try{const n=await this._resolveFileUrl(e);return await super._fetchRange(n,t,r,i)}catch{if("directory-changed"===await this._refetchResources())throw(0,b.O)()}const n=await this._resolveFileUrl(e);return super._fetchRange(n,t,r,i)}_refetchResources(){return this._directoryChanged?Promise.resolve("directory-changed"):(this._updateResourcesPromise||(this._updateResourcesPromise=this._executeRefetchResources().finally(()=>{this._updateResourcesPromise=null})),this._updateResourcesPromise)}async _executeRefetchResources(){return await this._refetchPortalItemMetadata()?(this.events.emit("sourceChanged"),this._directoryChanged=!0,"directory-changed"):(this._resources=this._fetchResources(),"ok")}async _refetchPortalItemMetadata(){const e=this._schema.itemMetadata.url,t=await(0,i.A)(this._schema.itemUrl,{responseType:"json",query:{f:"json"}}),{modified:r,url:n}=t.data;if(null==n)throw new Error("Portal item metadata must have a url defined.");if(null==r)throw new Error("Portal item metadata must have a modified timestamp defined.");return this._schema.itemMetadata={modified:new Date(r),url:n},e!==n}async _getResources(){return this._resources||(this._resources=this._fetchResources()),await this._resources}async _getResource(e){const t=(await this._getResources()).get(e);if(!t)throw new Error(`Resource ${e} not found.`);return t}async _fetchResources(){const e=new Map;let t=1;const r=function(e){const t=e.split("/").filter(Boolean),r=t.indexOf("resources");if(-1===r||r===t.length-1)throw new Error(`URL does not contain a resources directory name: ${e}`);return`${t.slice(r+1).map(e=>decodeURIComponent(e)).join("/")}/`}(this._schema.itemMetadata.url);for(;-1!==t;){const n=await(0,i.A)(`${this._baseUrl}/resources`,{query:{f:"json",start:t,num:100}});for(const t of n.data.resources)t.resource.startsWith(r)&&e.set(t.resource,t);t=n.data.nextStart}return e}}class C extends f{constructor(e,t=null,r=()=>{}){super(t,r),this._schema=e}async update(e){await this._updateParquetFileInfos(await this._getParquetFileNames()),this._schema=e}async _resolveFileUrl(e){return e}async _getParquetFileNames(){return this._schema.urls.filter(e=>!e.endsWith(".json"))}async _getStatisticsFileName(){return this._schema.urls.find(m)??null}}function x(e,t,r){switch(e.type){case"urls":return new C(e,t,r);case"portal-parquet-file":return new v(e,t,r);case"portal-parquet-layer":return new _(e,t,r)}}},32756(e,t,r){r.d(t,{Rr:()=>a});var i=r(32198),n=r(93637),s=r(91429),o=r(91880);function a(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const n=new o.A;return n.read(i,r),[n]}const l={type:[o.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){const s=e.find(e=>!!e.field);s&&(0,n.sM)(r,[s.toJSON()],t)}}}};r.d(t,["fY",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,s.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,l])},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(69540),s=r(66552),o=r(25482),a=r(91429);const l=new s.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],u)},34582(e,t,r){r.d(t,{A:()=>a});var i=r(32198),n=r(69540),s=r(25482),o=r(91429);let a=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.type="wkb",this.field=null}};(0,i.Cg)([(0,o.MZ)({type:["wkb"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:["counter-clockwise"],json:{write:!0}})],a.prototype,"orientation",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"field",void 0),a=(0,i.Cg)([(0,o.$K)("esri.layers.support.GeometryEncodingWkb")],a)},46499(e,t,r){r.d(t,{A:()=>P});var i,n,s=r(32198),o=(r(44208),r(66552)),a=r(25482),l=r(4718),u=r(90629),c=r(91429),p=r(90360),y=r(73913),d=r(32730),h=r(77548),g=r(59868),f=r(73838),m=r(33910),w=r(36005),v=r(43937);const b=new o.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function _(e,t,r){return{enabled:!(0,h.TU)(r?.layer)}}function C(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let P=class extends a.o{static{i=d.vK}static{n=this}static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){const e=r(t[i[0]],i[1],i[2]),n=i[3],s=r(t[i[4]],i[5],i[6]);switch(n){case"AND":return e&&s;case"OR":return e||s}}return!1}catch(e){}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=g.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,d.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,d.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&C(i))e=new y.A({expression:this.getLabelExpressionArcade()});else if(!e)return;const n=e.toJSON(i);n.expression&&(t[r]=n)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,d.XJ)(this)}getLabelExpressionArcade(){return(0,d.BI)(this)}getLabelExpressionSingleField(){return(0,d.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new n({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,l.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,l.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],P.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:_}}}}})],P.prototype,"allowOverrun",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:_}}}}})],P.prototype,"deconflictionStrategy",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],P.prototype,"labelExpression",void 0),(0,s.Cg)([(0,w.w)("labelExpression")],P.prototype,"readLabelExpression",null),(0,s.Cg)([(0,v.K)("labelExpression")],P.prototype,"writeLabelExpression",null),(0,s.Cg)([(0,c.MZ)({type:y.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return C(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],P.prototype,"labelExpressionInfo",void 0),(0,s.Cg)([(0,v.K)("labelExpressionInfo")],P.prototype,"writeLabelExpressionInfo",null),(0,s.Cg)([(0,c.MZ)({type:b.apiValues,json:{type:b.jsonValues,read:b.read,write:b.write}})],P.prototype,"labelPlacement",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],P.prototype,"offsetDistance",void 0),(0,s.Cg)([(0,c.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],P.prototype,"labelPosition",void 0),(0,s.Cg)([(0,c.MZ)({type:Number})],P.prototype,"maxScale",void 0),(0,s.Cg)([(0,v.K)("maxScale")],P.prototype,"writeMaxScale",null),(0,s.Cg)([(0,c.MZ)({type:Number})],P.prototype,"minScale",void 0),(0,s.Cg)([(0,v.K)("minScale")],P.prototype,"writeMinScale",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:_}}}}})],P.prototype,"repeatLabel",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:_}}}}})],P.prototype,"repeatLabelDistance",null),(0,s.Cg)([(0,c.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,p.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,p.C)({types:m.Rv})},write:f.oO,default:null}},write:f.oO,default:null}})],P.prototype,"symbol",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],P.prototype,"useCodedValues",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],P.prototype,"where",void 0),P=n=(0,s.Cg)([(0,c.$K)("esri.layers.support.LabelClass")],P)},73913(e,t,r){r.d(t,{A:()=>c});var i,n=r(32198),s=r(25482),o=r(91429),a=r(32730),l=r(36005),u=r(43937);let c=class extends s.o{static{i=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"expression",void 0),(0,n.Cg)([(0,l.w)("expression",["expression","value"])],c.prototype,"readExpression",null),(0,n.Cg)([(0,u.K)("expression")],c.prototype,"writeExpression",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"title",void 0),(0,n.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],c.prototype,"value",void 0),c=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.LabelExpressionInfo")],c)},91880(e,t,r){r.d(t,{A:()=>u});var i,n=r(32198),s=r(66552),o=r(25482),a=r(91429);const l=new s.J({asc:"ascending",desc:"descending"});let u=class extends o.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},56370(e,t,r){r.d(t,{A:()=>y});var i=r(32198),n=r(69540),s=r(7762),o=r(49186),a=r(25482),l=r(91429),u=r(64108),c=r(97159),p=r(43937);let y=class extends((0,a.T)(n.Pw)){constructor(e){super(e),this.type="files",this.urls=new s.A}writeUrls(e,t,r,i){const n=e.toArray().map(e=>(0,c.t)(e,i)).filter(e=>!!e);n.length?t.urls=n:i.messages?.push(new o.A("parquet-layer:missing-urls","Missing or empty 'urls'",{data:this}))}};(0,i.Cg)([(0,l.MZ)({type:["files"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:s.A.ofType(String),json:{write:{isRequired:!0}}})],y.prototype,"urls",void 0),(0,i.Cg)([(0,p.K)("urls")],y.prototype,"writeUrls",null),y=(0,i.Cg)([(0,u.$)("esri.layers.support.ParquetFilesData")],y)},89160(e,t,r){r.d(t,{A:()=>p});var i=r(32198),n=r(69540),s=r(25482),o=r(91429),a=r(64108),l=r(80812),u=r(36005),c=r(43937);let p=class extends((0,s.T)(n.Pw)){constructor(e){super(e),this.type="portal-item"}readPortalItem(e,t,r){if(t.itemId)return new l.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}};(0,i.Cg)([(0,o.MZ)({type:["portal-item"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:l.default,json:{write:{isRequired:!0}}})],p.prototype,"portalItem",void 0),(0,i.Cg)([(0,u.w)("portalItem",["itemId"])],p.prototype,"readPortalItem",null),(0,i.Cg)([(0,c.K)("portalItem",{itemId:{type:String}})],p.prototype,"writePortalItem",null),p=(0,i.Cg)([(0,a.$)("esri.layers.support.ParquetPortalItemData")],p)},39383(e,t,r){r.d(t,{w:()=>l,z:()=>p});var i=r(49186),n=r(53966),s=r(46499);const o=()=>n.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function l(e,t,r){return e?e.map(e=>{const i=new s.A;if(i.read(e,r),i.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],c={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function p(e,t){const r=[];for(const n of e){const e=n.labelPlacement,s=c[t];if(!n.symbol)return o().warn("No ILabelClass symbol specified."),[];if(!s)return o().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(s.includes(e))r.push(n);else{const i=s[0];e&&o().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);const a=n.clone();a.labelPlacement=i,r.push(a)}}return r}},50639(e,t,r){r.d(t,{G:()=>s});var i=r(9075),n=r(34582);function s(e){switch(e.type){case"wkb":return n.A.fromJSON(e);case"location":return i.A.fromJSON(e)}}},42760(e,t,r){r.d(t,{Dt:()=>h,hG:()=>y,nc:()=>d,sA:()=>p}),r(7762);var i=r(49186),n=r(44208),s=r(66552),o=r(16930),a=(r(95031),r(20437)),l=r(30524),u=r(50639);r(56370);const c=new s.J({esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint"});function p(e){return c.toJSON(e)}function y(e){return c.fromJSON(e)}async function d(e,t){if(t.geometryType&&t.spatialReference&&t.geometryEncoding&&t.fields&&t.displayOptimization)return t;if(!e)throw new i.A("parquet:bad-input","No metadata found");const r={...t},s=e.fields.map(e=>a.A.fromJSON(e));if(null==r.fields)r.fields=s;else{const e=new Set(r.fields.map(e=>e.name));if(!(0,n.A)("parquetlayer-legacy-field-overrides-enabled"))for(const t of s)e.has(t.name)||r.fields.push(t)}if(null!=r.geometryEncoding){const e=r.geometryEncoding;switch(e.type){case"wkb":{const t=s.find(t=>t.name===e.field);if(!t)throw new i.A("parquet:unsupported",`Geometry encoding references field ${e.field} which does not exist`);if("blob"!==t.type)throw new i.A("parquet:unsupported",`Invalid field type for geometry encoding. Found ${t.type} but expected 'blob'`);break}case"location":for(const t of[e.xField,e.yField])if(null!=t){const e=s.find(e=>e.name===t);if(!e)throw new i.A("parquet:unsupported",`Geometry encoding references field ${t} which does not exist`);if(!(0,l.WA)(e))throw new i.A("parquet:unsupported",`Invalid field type for location geometry encoding. Found ${e.type} but expected a numeric`)}}}return null==r.geometryEncoding&&(r.geometryEncoding=e.geometryEncoding?(0,u.G)(e.geometryEncoding):null),r.fields=function(e,t){const r=t.geoMetadata;if(null==r)return e;const i=new Set(Object.keys(r.columns));return e.filter(e=>!i.has(e.name))}(r.fields,e),!r.displayOptimization&&e.displayOptimization&&(r.displayOptimization=e.displayOptimization),!r.geometryType&&e.geometryType&&(r.geometryType=y(e.geometryType)),!r.spatialReference&&e.spatialReference&&(r.spatialReference=o.A.fromJSON(e.spatialReference)),r}async function h(e,t){switch(e.type){case"files":return{type:"urls",urls:e.urls.toArray()};case"portal-item":{const r=await e.portalItem.load(t);switch(r.type){case"Apache Parquet":return{type:"portal-parquet-file",itemUrl:r.itemUrl,itemCdnUrl:r.itemCdnUrl,modified:r.modified,size:r.size};case"Parquet layer":case"Parquet Layer":case"Parquet feature layer":case"Parquet Feature Layer":if(!r.url)throw new i.A("parquet:bad-item",`Item of type ${r.type} must have a url defined`,r);return{type:"portal-parquet-layer",itemUrl:r.itemUrl,itemCdnUrl:r.itemCdnUrl,itemMetadata:{modified:r.modified,url:r.url}};default:throw new i.A("parquet:bad-item",`Item of type ${r.type} is not supported`,r)}}}}r.d(t,["ye",0,c])},22671(e,t,r){r.d(t,{A:()=>w});var i,n=r(32198),s=r(52106),o=r(66552),a=r(25482),l=r(4718),u=r(91429),c=r(16930),p=r(60408),y=r(65864),d=r(50498),h=r(20437),g=r(36005),f=r(43937);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=c.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*s+i,e=>n-e*o,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=c.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const s=e[t],o=r.fromJSON(s),a=s.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=i);const l=s.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}n.push(o)}return n}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),s.push([i,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,p.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,p.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,p.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=r(a)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],w.prototype,"features",void 0),(0,n.Cg)([(0,g.w)("features")],w.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[h.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],w.prototype,"geometryType",void 0),(0,n.Cg)([(0,f.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:d.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,g.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,n.Cg)([(0,f.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),n=r(66552),s=r(53966),o=r(91429),a=r(93223);const l=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field";r.d(t,["K",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&c||r&&u||null,t&&r&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,l])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4907],{26887(e,t,i){function n(){return[1,0,0,1,0,0]}function r(e,t,i,n,r,o){return[e,t,i,n,r,o]}i.d(t,{fA:()=>r,vt:()=>n});Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:[1,0,0,1,0,0],clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5]]},create:n,fromValues:r},Symbol.toStringTag,{value:"Module"}))},4144(e,t,i){i.r(t),i.d(t,{clipToSpatialReference:()=>l,execute:()=>c,executeMany:()=>u,foldInto360Range:()=>h,foldInto360RangeGeodetic:()=>p,isLoaded:()=>s,load:()=>a,normalizeGeometry:()=>d,supportsCurves:()=>f,transform:()=>g});var n=i(76061),r=i(83290);let o;function s(){return!!o&&(0,r.i)()}async function a(){if(!s()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(9192)]).then(()=>i(9192)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(()=>i(15756)).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorProject,t(r.p)}}function l(e,t,i){return o.clipToSpatialReference(e,t,null,i)}function c(e,t){return o.execute(e,t,null)}function u(e,t){const i=o.executeMany(new n.S(e),t,null);return Array.from(i)}function h(e,t){return o.foldInto360Range(e,t)}function p(e,t,i){return o.foldInto360RangeGeodetic(e,t,i)}function d(e,t,i){return o.normalizeGeometry(e,t,i)}function f(){return o.supportsCurves()}function g(e,t,i,n,r){return o.transform(e,t,i,n,r)}},83276(e,t,i){i.r(t),i.d(t,{execute:()=>y,executeMany:()=>x,isLoaded:()=>f,load:()=>m,projectExecute:()=>_,projectExecuteMany:()=>w,projectIsLoaded:()=>d,projectLoad:()=>g,projectSupportsCurves:()=>h,supportsCurves:()=>p});var n=i(4144),r=i(85036),o=i(17499);let s,a,l,c,u,h,p;function d(){return!!s&&(0,n.isLoaded)()}function f(){return(0,r.Q)("projectOperator","isLoaded","projectIsLoaded"),d()}async function g(){if(!d()){const[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(9567),i.e(9829),i.e(1666)]).then(()=>i(78125)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(6129)]).then(()=>i(86129)),(0,n.load)()]);s=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,c=e.toGeometry,u=t.createProjectionTransformation,h=(0,n.supportsCurves)(),p=h}}function m(){return(0,r.Q)("projectOperator","load","projectLoad"),g()}function _(e,t,i){const r=l(e),h=u(a(r),a(t),i),p=c((0,n.execute)(s(e),h),t);return!i?.zConversionDisabled&&p?.hasZ&&(0,o.g)([p],r,t),p}function y(e,t,i){return(0,r.Q)("projectOperator","execute","projectExecute"),_(e,t,i)}function w(e,t,i){const r=e.map(s),h=l(e),p=u(a(h),a(t),i),d=(0,n.executeMany)(r,p).map(e=>c(e,t));return!i?.zConversionDisabled&&d&&(0,o.g)(d,h,t),d}function x(e,t,i){return(0,r.Q)("projectOperator","executeMany","projectExecuteMany"),w(e,t,i)}},17499(e,t,i){i.d(t,{g:()=>o});var n=i(60408),r=i(62815);function o(e,t,i){let o;for(const s of e)if(s&&(0,n.Pv)(s)&&!("vertexAttributes"in s)){if(!o){const e="type"in s?s.type:(0,n.$B)(s);if(o=(0,r.N)(e,t,i),!o)return}o(s)}}},62815(e,t,i){i.d(t,{N:()=>a,d:()=>l});var n=i(86211),r=i(73941),o=i(21325),s=i(52006);function a(e,t,i){const n=l(t,i);if(1!==n)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,n);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const i of e.curvePaths)for(const e of i){const i=(0,s.yP)(e);i.length>2&&(i[2]*=t)}if(e.paths)for(const i of e.paths)for(const e of i)e.length>2&&(e[2]*=t)}}(e,n);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const i of e.curveRings)for(const e of i){const i=(0,s.yP)(e);i.length>2&&(i[2]*=t)}if(e.rings)for(const i of e.rings)for(const e of i)e.length>2&&(e[2]*=t)}}(e,n);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const i of e.points)i.length>2&&(i[2]*=t)}(e,n);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,n);default:return}}function l(e,t){return null==e||null==t||(0,o.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,n.G9)(e)/(0,n.G9)(t)}},44907(e,t,i){i.r(t),i.d(t,{default:()=>Pe});var n=i(32198),r=i(49186),o=i(53966),s=i(25728),a=i(17676),l=i(91429),c=i(16930),u=i(21325),h=i(4146),p=i(63074),d=i(8303),f=i(72545),g=i(25036),m=i(86738),_=i(92474),y=i(83027),w=i(48163),x=i(37585),P=i(5443),A=i(39829),M=i(88411),v=i(83276);class R{constructor(e){this.ctm=e.ctm,this.spatialReference=e.toSpatialReference(),this.pairedNeatline=e.pairedNeatline,this.outerExtentMediabox=this._getExtentFromArray(e.outerExtentMediaBox),this.geoControlPoints=e.geoControlPoints,this.outerMediaBox=e.outerExtentMediaBox,this.sourceMediaBoxPolygon=this.createSourceMediaBoxPolygon(),this.sourceNeatlinePolygon=this.createSourceNeatlinePolygon()}createSourceMediaBoxPolygon(){const e=[];for(const[t,i]of this.outerMediaBox){const n=T(this.ctm,t,i);e.push([n[0],n[1]])}return new A.A({rings:[e],spatialReference:this.spatialReference})}createSourceNeatlinePolygon(){const e=[];for(const[t,i]of this.pairedNeatline){const n=T(this.ctm,t,i);e.push([n[0],n[1]])}return new A.A({rings:[e],spatialReference:this.spatialReference})}createProjectedPolygon(e,t,i){(0,a.Te)(i);const n=e;if(n.spatialReference.equals(t))return n;if(!n||!n.extent)throw new r.A("geospatial-pdf-layer:load","Could not project neatline");const o=Math.max(n.extent.width,n.extent.height)/256,s=(0,M.densifyExecute)(n,o);return(0,v.projectExecute)(s,t)}toExtent(){return this._getExtentFromArray(this.pairedNeatline)}_getExtentFromArray(e){let t=1/0,i=1/0,n=-1/0,r=-1/0;for(let o=0;o<e.length;o++){const s=T(this.ctm,e[o][0],e[o][1]);t=Math.min(t,s[0]),i=Math.min(i,s[1]),n=Math.max(n,s[0]),r=Math.max(r,s[1])}return new P.A({xmin:t,ymin:i,xmax:n,ymax:r,spatialReference:this.spatialReference})}}function T(e,t,i){const[n,r,o,s,a,l]=e,c=(0,w.vt)();return(0,x.hZ)(c,n*t+o*i+a,r*t+s*i+l),c}i(44208);var C=i(26887),F=i(48237);function S(e,t,i,n){const r=Math.min(e.length,t.length,3),o=e.slice(0,r).map((e,n)=>({sourcePoint:{x:e[0],y:e[1]},mapPoint:new m.A({x:t[n][0],y:t[n][1],spatialReference:i})}));return new F.A({controlPoints:o,width:n.xmax-n.xmin,height:n.ymax-n.ymin})}function E(e){if(!e?.transform||e.transform.length<6)throw new r.A("geospatial-pdf-layer:georefrencer","created georeferencer does not have valid transform");return e.transform}function b(e){return(0,C.fA)(e[0],-e[1],-e[3],e[4],e[2],e[5])}function D(e){return[[e[0],e[1]],[e[0],e[3]],[e[2],e[3]],[e[2],e[1]]]}class G{constructor(e){const t=this.inputValidation(e);this._registration=t.registration,this._projection=t.projection,this._neatline=t.neatline,this.pairedNeatline=this._pairNeatline(),this.outerExtentMediaBox=D(t.mediaBox),this.geoControlPoints=this._getRegistrationPoints("geo"),this.ctm=t.ctm??this._buildCTMFromRegistration(),this.outputValidation()}inputValidation(e){const{ctm:t,registration:i,projection:n,display:o,neatline:s,mediaBox:a}=e;if(t&&6!==t.length)throw new r.A("geospatial-pdf-layer:invalid-frame","LGIDict has invalid CTM.");if(!t&&(!i||i.length<3))throw new r.A("geospatial-pdf-layer:invalid-frame","LGIDict missing CTM and minimum registration points");if(!a||4!==a.length)throw new r.A("geospatial-pdf-layer:invalid-frame","LGIDict missing or invalid MediaBox.");if(!s||s.length<4||s.length%2!=0)throw new r.A("geospatial-pdf-layer:invalid-frame","LGIDict missing or invalid amount of neatline points");return{ctm:t?(0,C.fA)(t[0],t[1],t[2],t[3],t[4],t[5]):void 0,registration:i??[],projection:n,display:o,neatline:s,mediaBox:a}}outputValidation(){if(6!==this.ctm.length)throw new r.A("geospatial-pdf-layer:invalid-frame","LGIDict missing or invalid CTM");if(this.pairedNeatline.length<4)throw new r.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 4 neatline points.");if(4!==this.outerExtentMediaBox.length)throw new r.A("geospatial-pdf-layer:invalid-frame","Failed to generate outerextent from mediaBox.");if(!this.ctm&&this.geoControlPoints.length<2)throw new r.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 2 geoControlPoints if defaulting.")}toSpatialReference(){return this._projection}_buildCTMFromRegistration(){const e=[],t=[];for(const i of this._registration)i.length<4||(e.push((0,w.fA)(i[0],i[1])),t.push((0,w.fA)(i[2],i[3])));const i=this._getSourceRect();return b(E(S(e,t,this.toSpatialReference(),i)))}_extentFromArray(e){let t=1/0,i=1/0,n=-1/0,o=-1/0;for(let r=0;r<e.length;r++){const s=e[r];t=Math.min(t,s[0]),i=Math.min(i,s[1]),n=Math.max(n,s[0]),o=Math.max(o,s[1])}if(!(Number.isFinite(t)&&Number.isFinite(i)&&Number.isFinite(n)&&Number.isFinite(o)))throw new r.A("geospatial-pdf-layer: invalid-frame","Failed to compute extent from registration.");return{xmin:t,ymin:i,xmax:n,ymax:o}}_getSourceRect(){if(4===this.outerExtentMediaBox?.length)return this._extentFromArray(this.outerExtentMediaBox);if(this._neatline.length>=6)return this._extentFromArray(this.pairedNeatline);const e=this._getRegistrationPoints("page");if(e.length>=2)return this._extentFromArray(e);throw new r.A("geospatial-pdf-layer: invalid-frame","Cannot build source rectangle from Neatline or Registration points.")}_getRegistrationPoints(e){const[t,i]="page"===e?[0,1]:[2,3];return this._registration.filter(e=>e.length>i).map(e=>[e[t],e[i]])}_pairNeatline(){const e=[];for(let t=0;t<this._neatline.length;t+=2){const i=this._neatline[t],n=this._neatline[t+1];Number.isFinite(i)&&Number.isFinite(n)&&e.push([i,n])}return 2===e.length&&(e.splice(1,0,[e[1][0],e[0][1]]),e.push([e[0][0],e[2][1]])),e}}const N={OriginLatitude:"Origin_Latitude",CentralMeridian:"Central_Meridian",ScaleFactor:"Scale_Factor",FalseEasting:"False_Easting",FalseNorthing:"False_Northing",Zone:"Zone",Hemisphere:"Hemisphere",StandardParallelOne:"Standard_Parallel_One",StandardParallelTwo:"Standard_Parallel_Two"},j=/^(?:NAD83|NORTH AMERICAN 1983|NAR(?:-[A-Z])?)$/i,L=/^(?:NAD27|NORTH AMERICAN 1927|NAS(?:-[A-Z])?)$/i,O=/^(?:WGS84|WGS 84|WGE)$/i;function I(e){const t=function(e){return function(e){const t=function(e){switch(e){case"Projection":case"Display":return e;default:return}}(e.Type),i=function(e){switch(e){case"TC":case"PH":case"UT":case"AC":case"LE":case"SPCS":return e;default:return}}(e.Projection_Type);let n;if(i||(n="Projection is missing or has unsupported ProjectionType"),t||(n="Projection dictionary is missing or has invalid Type. Expected Projection or Display."),e.Datum||(n="Projection is missing a Datum"),n)throw new r.A("geospatial-pdf-layer:invalid-projection",n);return z(e,i),{kind:"projected",dictionaryType:t,projectionType:i,datum:e.Datum}}(e)}(e);if("projected"===t.kind){const{projectionType:i,datum:n}=t;return"SPCS"===i?function(e,t){const i=B(t);if(2800===e.Zone&&i&&Z(i))return new c.A({wkid:32110});throw new r.A("geospatial-pdf-layer:invalid-projection",`Unsupported State Plane projection: datum ${t.name}, zone ${e.Zone}`)}(e,n):new c.A({wkt:$(e,i,n)})}}function z(e,t){const i=function(e){switch(e){case"TC":return["OriginLatitude","CentralMeridian","ScaleFactor","FalseEasting","FalseNorthing"];case"PH":return["OriginLatitude","CentralMeridian","FalseEasting","FalseNorthing"];case"UT":return["Zone","Hemisphere"];case"AC":case"LE":return["OriginLatitude","CentralMeridian","StandardParallelOne","StandardParallelTwo","FalseEasting","FalseNorthing"];case"SPCS":return["Zone"]}}(t);for(const n of i){const i=e[N[n]];if(void 0===i||""===i)throw new r.A("geospatial-pdf-layer:invalid-projection",`Projection ${t} missing required parameter ${n}.`)}}function $(e,t,i){const n=function(e,t,i){const n=function(e){const t=B(e);return t?Z(t)?"NAD_1983":H(t)?"NAD_1927":k(t)?"WGS_1984":"geospatialPDF":"geospatialPDF"}(i);switch(t){case"TC":return`${n}_GeospatialPDF_Transverse_Mercator`;case"PH":return`${n}_GeospatialPDF_Polyconic`;case"UT":return`${n}_GeospatialPDF_UTM_Zone_${e.Zone}_${e.Hemisphere}`;case"AC":return`${n}_GeospatialPDF_Albers_Equal_Area`;case"LE":return`${n}_GeospatialPDF_Lambert_Conformal_Conic`}}(e,t,i),o=function(e){switch(e){case"TC":case"UT":return"Transverse_Mercator";case"PH":return"Polyconic";case"AC":return"Albers";case"LE":return"Lambert_Conformal_Conic"}}(t),s=function(e){if("definition"===e.kind){const t=e.ellipsoid;if(!t?.semi_Major_Axis)throw new r.A("geospatial-pdf-layer:invalid-Datum","Datum definition requires semi-major axis");const i=function(e){if(null!=e.inverse_Flattening)return e.inverse_Flattening;const t=e.semi_Major_Axis,i=e.semi_Minor_Axis;if(null==t||null==i)throw new r.A("geospatial-pdf-layer:invalid-Datum","Ellipsoid definition missing InvFlattening or SemiMinorAxis.");return t===i?0:t/(t-i)}(t),n=e.name??"GeospatialPDF_Datum",o=`SPHEROID["${t.description??"GeospatialPDF_Spheroid"}",${t.semi_Major_Axis},${i}]`,s=e.to_WGS84;return`DATUM["${n}",${o}${s?`,TOWGS84[${s.dx??0},${s.dy??0},${s.dz??0},${s.rx??0},${s.ry??0},${s.rz??0},${s.sf??0}]`:""}]`}if(e.name){const t=e.name.toUpperCase();if(Z(t))return'DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]]';if(H(t))return'DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]]';if(k(t))return'DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]]'}throw new r.A("geospatial-pdf-layer:invalid-Datum","Unsupported datum "+e.name)}(i),a=function(e){const t=e.toLowerCase();return["m","meter","meters","metre","metres"].includes(t)?'UNIT["Meter",1.0]':["ft","foot","feet"].includes(t)?'UNIT["Foot",0.3048]':`UNIT["${e}",1.0]`}(e.Units??"M"),l=function(e,t){switch(t){case"TC":return[`PARAMETER["False_Easting",${e.False_Easting}]`,`PARAMETER["False_Northing",${e.False_Northing}]`,`PARAMETER["Central_Meridian",${e.Central_Meridian}]`,`PARAMETER["Latitude_Of_Origin",${e.Origin_Latitude}]`,`PARAMETER["Scale_Factor",${e.Scale_Factor}]`];case"PH":return[`PARAMETER["False_Easting",${e.False_Easting}]`,`PARAMETER["False_Northing",${e.False_Northing}]`,`PARAMETER["Central_Meridian",${e.Central_Meridian}]`,`PARAMETER["Latitude_Of_Origin",${e.Origin_Latitude}]`];case"AC":case"LE":return[`PARAMETER["False_Easting",${e.False_Easting}]`,`PARAMETER["False_Northing",${e.False_Northing}]`,`PARAMETER["Central_Meridian",${e.Central_Meridian}]`,`PARAMETER["Latitude_Of_Origin",${e.Origin_Latitude}]`,`PARAMETER["Standard_Parallel_1",${e.Standard_Parallel_One}]`,`PARAMETER["Standard_Parallel_2",${e.Standard_Parallel_Two}]`];case"UT":return function(e){if(!e.Zone)throw new r.A("geospatial-pdf-layer:invalid-projection","No zone found for projection code UT");const t=6*e.Zone-183;return['PARAMETER["False_Easting",500000]',`PARAMETER["False_Northing",${/^s/i.test(e.Hemisphere??"")?1e7:0}]`,`PARAMETER["Central_Meridian",${t}]`,'PARAMETER["Latitude_Of_Origin",0]','PARAMETER["Scale_Factor",0.9996]']}(e)}}(e,t);return`PROJCS["${n}",GEOGCS["${function(e){const t=B(e);return t?Z(t)?"GCS_North_American_1983":H(t)?"GCS_North_American_1927":k(t)?"GCS_WGS_1984":"GCS_GeospatialPDF":"GCS_GeospatialPDF"}(i)}",${s},PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]],PROJECTION["${o}"],${l.join(",\n ")},${a}]`}function B(e){return e.name?function(e){return e.trim().toUpperCase().replace(/_/g," ").replace(/\s+/g," ")}(e.name):null}function Z(e){return j.test(e)}function H(e){return L.test(e)}function k(e){return O.test(e)}class V{constructor(e){const{bbox:t,bounds:i,gpts:n,lpts:r,gcs:o,mediaBox:s}=this.inputValidation(e);this._bbox=t,this._bounds=i,this._gpts=n,this._lpts=r,this._gcs=o,this.outerExtentMediaBox=D(s),this.geoControlPoints=this._getProjectedGeoControlPoints().map(e=>[e[0],e[1]]);const a=this._getBoundsPolygonPage()??this._getPageControlPoints();this.pairedNeatline=a.map(e=>[e[0],e[1]]),this.neatLine=this.pairedNeatline.flat(),this._georeference=this._createControlPointsGeoreference();const l=E(this._georeference);this.ctm=b(l),this.outputValidation()}toSpatialReference(){return new c.A({wkt:this._gcs.WKT})}inputValidation(e){const{bbox:t,bounds:i,gpts:n,lpts:o,gcs:s,mediaBox:a}=e;if(!t||4!==t.length)throw new r.A("geospatial-pdf-layer:invalid-frame","Viewport missing or invalid BBox.");if(!a||4!==a.length)throw new r.A("geospatial-pdf-layer:invalid-frame","Viewport missing or invalid MediaBox.");if(!n||n.length<6||n.length%2!=0)throw new r.A("geospatial-pdf-layer:invalid-frame","MeasureFrame missing or invalid GPTS.");if(!o||o.length<6||o.length%2!=0)throw new r.A("geospatial-pdf-layer:invalid-frame","MeasureFrame missing or invalid LPTS.");if(o.length!==n.length)throw new r.A("geospatial-pdf-layer: invalid-frame","MeasureFrame LPTS and GPTS must be same length");if(!s?.WKT)throw new r.A("geospatial-pdf-layer:invalid-frame","MeasureFrame missing or invalid WKT.");return{bbox:t,bounds:i,gpts:n,lpts:o,gcs:{WKT:s.WKT},mediaBox:a}}outputValidation(){if(4!==this.outerExtentMediaBox.length)throw new r.A("geospatial-pdf-layer:invalid-frame","Failed to generate outer extent from mediaBox.");if(this.geoControlPoints.length<2)throw new r.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 2 geoControlPoints.");if(this.pairedNeatline.length<4)throw new r.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 4 neatline points.");if(!this.ctm||6!==this.ctm.length)throw new r.A("geospatial-pdf-layer:invalid-frame","Missing or invalid Map Frame CTM")}_createControlPointsGeoreference(){const e=this._getPageControlPoints(),t=this._getProjectedGeoControlPoints(),i=this._getViewportRect();return S(e,t,this.toSpatialReference(),i)}_getBoundsPolygonLocal(){if(!this._bounds||this._bounds.length<8||this._bounds.length%2!=0)return null;const e=[];for(let t=0;t<this._bounds.length;t+=2)e.push({u:this._bounds[t],v:this._bounds[t+1]});return e}_getBoundsPolygonPage(){const e=this._getBoundsPolygonLocal();return e?.map(e=>this._localToPage(e.u,e.v))??null}_getPageControlPoints(){const e=[];for(let t=0;t<this._lpts.length;t+=2){const i=this._lpts[t],n=this._lpts[t+1];e.push(this._localToPage(i,n))}return e}_getProjectedGeoControlPoints(){const e=this.toSpatialReference(),t=[];for(let i=0;i<this._gpts.length;i+=2){const n=this._gpts[i],r=this._gpts[i+1],o=new m.A({x:r,y:n}),s=(0,v.projectExecute)(o,e);t.push((0,w.fA)(s.x,s.y))}return t}_getViewportRect(){const[e,t,i,n]=this._bbox;return{xmin:Math.min(e,i),ymin:Math.min(t,n),xmax:Math.max(e,i),ymax:Math.max(t,n)}}_localToPage(e,t){const[i,n,r,o]=this._bbox;return(0,w.fA)(i+e*(r-i),n+t*(o-n))}}function J(e){const t=oe(e,"LGIDict map frame must be an object.");return{CTM:Y(t.CTM),Registration:ee(t.Registration),Neatline:Y(t.Neatline),Projection:K(t.Projection),Display:K(t.Display)}}function U(e){const t=oe(e,"Viewport frame must be an object."),i=function(e){if(re(e))return{Bounds:Y(e.Bounds),GPTS:Y(e.GPTS),LPTS:Y(e.LPTS),GCS:W(e.GCS)}}(t.Measure);return{BBox:Y(t.BBox),Measure_Raw:t.Measure,Measure:i,Raw:t}}function W(e){if(re(e))return{WKT:te(e.WKT)}}function K(e){if(re(e))return{Type:ie(e.Type),Units:ie(e.Units),Datum:q(e.Datum),Projection_Type:ie(e.ProjectionType),Central_Meridian:ne(e.CentralMeridian),False_Easting:ne(e.FalseEasting),False_Northing:ne(e.FalseNorthing),Height:ne(e.Height),Hemisphere:ie(e.Hemisphere),Latitude_One:ne(e.LatitudeOne),Latitude_Two:ne(e.LatitudeTwo),Latitude_Of_True_Scale:ne(e.LatitudeOfTrueScale),Longitude_One:ne(e.LongitudeOne),Longitude_Two:ne(e.LongitudeTwo),Longitude_Down_From_Pole:ne(e.LongitudeDownFromPole),Orientation:ie(e.Orientation),Origin_Height:ne(e.OriginHeight),Origin_Latitude:ne(e.OriginLatitude),Origin_Longitude:ne(e.OriginLongitude),Scale_Factor:ne(e.ScaleFactor),Standard_Parallel:ne(e.StandardParallel),Standard_Parallel_One:ne(e.StandardParallelOne),Standard_Parallel_Two:ne(e.StandardParallelTwo),Zone:ne(e.Zone),Description:ie(e.Description),raw:e}}function q(e){return null==e?null:"string"==typeof e?{kind:"name",name:ie(e),ellipsoid:null,to_WGS84:null,raw:e}:re(e)?{kind:"definition",name:ie(e.Description),ellipsoid:Q(e.Ellipsoid),to_WGS84:X(e.ToWGS84),raw:e}:{kind:"unknown",name:ie(e),ellipsoid:null,to_WGS84:null,raw:e}}function Q(e){if(re(e))return{semi_Major_Axis:ne(e.SemiMajorAxis),inverse_Flattening:ne(e.InvFlattening),semi_Minor_Axis:ne(e.SemiMinorAxis),description:ie(e.Description)}}function X(e){if(re(e))return{dx:ne(e.dx)??0,dy:ne(e.dy)??0,dz:ne(e.dz)??0,rx:ne(e.rx)??0,ry:ne(e.ry)??0,rz:ne(e.rz)??0,sf:ne(e.sf)??0}}function Y(e){if(!Array.isArray(e))return;const t=[];for(const i of e){const e=ne(i);if(void 0===e)return;t.push(e)}return t}function ee(e){if(Array.isArray(e))return e.filter(e=>Array.isArray(e)).map(e=>e.map(e=>ne(e)).filter(e=>void 0!==e))}function te(e){if(null!=e)return"string"==typeof e?e:String(e)}function ie(e){const t=te(e);if(void 0!==t)return t.trim()}function ne(e){if(null==e)return;if("number"==typeof e)return Number.isFinite(e)?e:void 0;if("string"!=typeof e)return;const t=e.trim();if(""===t)return;const i=Number(t);return Number.isFinite(i)?i:void 0}function re(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}function oe(e,t){if(!re(e))throw new r.A("geospatial-pdf-layer:parse",t);return e}let se=class extends _.x_{constructor(){super(...arguments),this._connection=null,this._workerHandler=null}load(e){const t=(0,y.h)("GeospatialPDFLayerWorker",{...e,strategy:"dedicated",registryTarget:this}).then(e=>{this._connection=e,this._workerHandler=this._connection.createInvokeProxy()});return this.addResolvingPromise(t),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null,this._workerHandler=null,super.destroy()}async loadPDF(e,t={}){await this.load(t);const{geospatialMetadata:i}=await this._workerHandler.loadPDF(e,t),n=function(e,t=0){const i={mediaBox:Y(e.MediaBox),rotate:ne(e.Rotate),hasLGIDict:null!=e.LGIDict,hasVP:null!=e.VP},n=function(e,t){return function(e){return null==e?[]:Array.isArray(e)?e.map(e=>J(e)):[J(e)]}(e)[t]}(e.LGIDict,t);if(n){if(!n.Projection)throw new r.A("geospatial-pdf-layer:parse","LGIDict map frame missing Projection.");const t=I(n.Projection);let o;try{o=n.Display?I(n.Display):void 0}catch{o=t}return{result:i,lgiDictFrame:new G({ctm:n.CTM,registration:n.Registration,projection:t,display:o,neatline:n.Neatline,mediaBox:Y(e.MediaBox)})}}const o=function(e,t){return function(e){return null==e?[]:Array.isArray(e)?e.map(e=>U(e)):[U(e)]}(e)[t]}(e.VP,t);return o?{result:i,vpFrame:new V({bbox:o.BBox,bounds:o.Measure?.Bounds,gpts:o.Measure?.GPTS,lpts:o.Measure?.LPTS,gcs:o.Measure?.GCS,mediaBox:Y(e.MediaBox)})}:{result:i}}(i,0),o=n.lgiDictFrame??n.vpFrame;if(!o)throw new r.A("geospatial-pdf-layer:load","pdf does not contain supported LGIDict or VP/Measure.");const s=new R(o),a=s.spatialReference.toJSON();return{frame:s,sourceSpatialReference:a,fullExtent:s.toExtent()}}async render(e,t,i,n,r,o){const s={sourceExtentAsJSON:e.toJSON(),width:t,height:i,ctm:n,currentRing:r};return this._workerHandler.renderPDF(s,o)}};se=(0,n.Cg)([(0,l.$K)("esri.layers.geospatialPDF.GeospatialPDFWorkerClient")],se);var ae=i(49859),le=i(14140),ce=i(87186);let ue=class extends ae.A{constructor(){super(...arguments),this._workerClient=new se,this._extent=null,this._ctm=null,this._neatlineRing=[],this._width=0,this._height=0,this._tileSize=512,this.datasetFormat="PDF",this.frame=null,this.neatlineExtent=null,this.page=1,this.tileType="Raster"}destroy(){this._workerClient.destroy(),this.neatlineExtent=null,this._extent=null,this._ctm=null,this._neatlineRing=[]}async fetchRawTile(e,t,i,n={}){const r=this._extent,o=this._ctm,s=this.getTileExtentPDF(e,t,i);return s.intersects(r)?function(e){return new le.A({width:e.width,height:e.height,pixelType:"u8",pixels:[e.red,e.green,e.blue],mask:e.mask})}(await this._workerClient.render(s,this._tileSize,this._tileSize,o,this._neatlineRing,n)):null}async _open(e){if(!this.url)throw new r.A("geospatial-pdf-raster:open","GeospatialPDFRaster requires a url.");const t=await this._workerClient.loadPDF({url:this.url,page:this.page},e);this.frame=t.frame;const i=this.frame.outerExtentMediabox;if(!i)throw new r.A("geospatial-pdf-raster:open","Failed to compute Geospatial PDF extent.");this.neatlineExtent=t.fullExtent,this._extent=i,this._ctm=this.frame.ctm,this._neatlineRing=this.frame.sourceMediaBoxPolygon.rings[0];const n=function(e,t){const[i,n,o,s]=e,a=i*s-n*o;if(!Number.isFinite(a)||0===a)throw new r.A("geospatial-pdf-raster:open","Failed to derive raster dimensions from an invalid PDF CTM.");const l=10*Math.hypot(s,n)/Math.abs(a),c=10*Math.hypot(o,i)/Math.abs(a),u=Math.max(1,Math.ceil(t.width*l)),h=Math.max(1,Math.ceil(t.height*c));if(!Number.isFinite(u)||!Number.isFinite(h))throw new r.A("geospatial-pdf-raster:open","PDF CTM produced invalid raster dimensions.");return[u,h]}(this.frame.ctm,this._extent);this._width=n[0],this._height=n[1];const o={x:i.width/this._width,y:i.height/this._height},s=new ce.A({width:this._width,height:this._height,pixelType:"u8",extent:i,pixelSize:o,spatialReference:i.spatialReference,bandCount:3,keyProperties:{DataType:"Processed"}});this.createRemoteDatasetStorageInfo(s,this._tileSize,this._tileSize),this._set("rasterInfo",s),this.updateTileInfo()}getTileExtentPDF(e,t,i){const n=this._extent,r=2**e,o=n.width/this._width*r,s=n.height/this._height*r,a=new m.A({x:n.xmin,y:n.ymax});return this.getTileExtent({x:o,y:s},t,i,a,n.spatialReference,[512,512])}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],ue.prototype,"datasetFormat",void 0),(0,n.Cg)([(0,l.MZ)({constructOnly:!0})],ue.prototype,"page",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],ue.prototype,"tileType",void 0),ue=(0,n.Cg)([(0,l.$K)("esri.layers.raster.datasets.GeospatialPDFRaster")],ue);var he=i(34930),pe=i(60694),de=i(13868),fe=i(87045),ge=i(36280),me=i(12711),_e=i(85676),ye=i(93223);let we=class extends((0,p.dM)((0,g.j)((0,d.A)((0,f.G)((0,s.M)(h.A)))))){constructor(e){super(e),this.interpolation="bilinear",this.renderer=null,this.serviceRasterInfo=null,this.symbolizer=null,this._frame=null,this.clippedToNeatline=!0,this.neatlineVisible=!0,this.raster=null,this.spatialReference=null,this.type="geospatial-pdf"}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["PDF"],supportsData:!1},e).catch(a.QP).then(()=>this._openRaster(e?.signal))),Promise.resolve(this)}destroy(){this._shutdownJobHandler(),this.raster?.destroy()}get fullExtent(){return this.serviceRasterInfo?.extent}set url(e){this._set("url",(0,pe.Jf)(e,o.A.getLogger(this)))}async fetchImageBitmapTile(){throw new r.A("geospatial-pdf-layer:fetch-image-bitmap-tile","GeospatialPDFLayer does not expose pre-rendered image tile URLs.")}async fetchPixels(e,t,i,n={}){return xe(this),await this._initJobHandler(),this.raster.fetchPixels(e,Math.round(t),Math.round(i),n)}async fetchTile(e,t,i,n={}){if(xe(this),n.requestAsImageElement)throw new r.A("geospatial-pdf-layer:fetch-tile","GeospatialPDFLayer does not support requestAsImageElement.");await this._initJobHandler();const o=await this.raster.fetchTile(e,t,i,n);return this.clippedToNeatline&&o.pixelBlock&&this._frame&&o.srcExtent&&(o.pixelBlock=await(0,he.$Q)(o.pixelBlock,o.srcExtent,this._frame.sourceNeatlinePolygon)),o}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent?.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}getCompatibleTileInfo(e,t,i=!1){if(!this.loaded||null==t)return null;if(i&&e.equals(this.spatialReference))return this.tileInfo;const n=(0,u.Vp)(e);return fe.A.create({size:256,spatialReference:e,origin:n?{x:n.origin[0],y:n.origin[1]}:{x:t.xmin,y:t.ymax}})}getRawDisplayBandIds(){return xe(this),[0,1,2]}_configDefaultSettings(){this._configPDFSymbolizer()}_configPDFSymbolizer(){xe(this);const{rasterInfo:e}=this.raster,t=new ge.A({stretchType:"none",useGamma:!1}),i=(0,me.$P)(t.toJSON());this._set("renderer",t),this.symbolizer?(this.symbolizer.rendererJSON=i,this.symbolizer.rasterInfo=e):this.symbolizer=new _e.A({rendererJSON:i,rasterInfo:e});const n=this.symbolizer.bind();n.success||o.A.getLogger(this).warn("geospatial-pdf-layer",n.error||"The fixed GeospatialPDFLayer renderer is not supported.")}async _initJobHandler(){if(!this._rasterJobHandler)return super._initJobHandler().then(()=>{this._rasterJobHandler&&(xe(this),this.raster.rasterJobHandler=this._rasterJobHandler)}).catch(()=>{})}async _openRaster(e){const t=new ue({url:this.url});if(await t.open({signal:e}),!t.rasterInfo)throw t.destroy(),new r.A("geospatialpdf-layer:load","cannot load resources on "+this.url);const{rasterInfo:i}=t;this._set("serviceRasterInfo",i),this.setAtOrigin("spatialReference",i.spatialReference,"service"),this.setAtOrigin("tileInfo",t.rasterInfo.storageInfo.tileInfo,"service"),this._frame=t.frame,this.raster=t,this._configDefaultSettings()}_shutdownJobHandler(){super._shutdownJobHandler(),this.raster&&(this.raster.rasterJobHandler=null)}};function xe(e){if(!e.raster||!e.serviceRasterInfo)throw new r.A("imagery-tile","no raster")}(0,n.Cg)([(0,ye.e)(de.SZ)],we.prototype,"interpolation",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],we.prototype,"renderer",void 0),(0,n.Cg)([(0,l.MZ)()],we.prototype,"serviceRasterInfo",void 0),(0,n.Cg)([(0,l.MZ)({clonable:!1})],we.prototype,"symbolizer",void 0),(0,n.Cg)([(0,l.MZ)({clonable:!1})],we.prototype,"_compatibleFullExtent",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean})],we.prototype,"clippedToNeatline",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!1}})],we.prototype,"fullExtent",null),(0,n.Cg)([(0,l.MZ)({type:Boolean})],we.prototype,"neatlineVisible",void 0),(0,n.Cg)([(0,l.MZ)()],we.prototype,"raster",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0,type:c.A,json:{read:!1}})],we.prototype,"spatialReference",void 0),(0,n.Cg)([(0,l.MZ)({type:fe.A})],we.prototype,"tileInfo",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0,value:"geospatial-pdf"})],we.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)()],we.prototype,"url",null),we=(0,n.Cg)([(0,l.$K)("esri.layers.GeospatialPDFLayer")],we);const Pe=we},91806(e,t,i){i.d(t,{A:()=>l});var n,r=i(32198),o=i(25482),s=i(91429),a=i(78888);let l=class extends o.o{static{n=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new n({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"cols",void 0),(0,r.Cg)([(0,s.MZ)({type:a.jz,json:{write:!0}})],l.prototype,"level",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"levelValue",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"origin",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"resolution",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],l.prototype,"rows",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"scale",void 0),l=n=(0,r.Cg)([(0,s.$K)("esri.layers.support.LOD")],l)},87045(e,t,i){i.d(t,{A:()=>w});var n,r=i(32198),o=i(66552),s=i(25482),a=i(86211),l=i(91429),c=i(78888),u=i(86738),h=i(16930),p=i(21325),d=i(28735),f=i(91806),g=i(72802),m=i(36005),_=i(43937);const y=new o.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=class extends s.o{static{n=this}static create(e={}){const{resolutionFactor:t=1,scales:i,size:r=256,spatialReference:o=h.A.WebMercator,numLODs:s=24}=e;if(!(0,p.fn)(o)){const e=[];if(i)for(let t=0;t<i.length;t++){const n=i[t];e.push(new f.A({level:t,scale:n,resolution:n}))}else{let t=5e-4;for(let i=s-1;i>=0;i--)e.unshift(new f.A({level:i,scale:t,resolution:t})),t*=2}return new n({dpi:96,lods:e,origin:new u.A(0,0,o),size:[r,r],spatialReference:o})}const l=(0,p.Vp)(o),c=e.origin?new u.A({x:e.origin.x,y:e.origin.y,spatialReference:o}):new u.A(l?{x:l.origin[0],y:l.origin[1],spatialReference:o}:{x:0,y:0,spatialReference:o}),d=1/(39.37*(0,a.GA)(o)*96),g=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],n=t*d;g.push(new f.A({level:e,scale:t,resolution:n}))}else{let e=(0,p.EA)(o)?512/r*591657527.5917094:256/r*591657527.591555;const i=Math.ceil(s/t);g.push(new f.A({level:0,scale:e,resolution:e*d}));for(let n=1;n<i;n++){const i=e/2**t,r=i*d;g.push(new f.A({level:n,scale:i,resolution:r})),e=i}}return new n({dpi:96,lods:g,origin:c,size:[r,r],spatialReference:o})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,p.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return u.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const n=[],r=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{n.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,r[e.level]=e})),this._set("scales",n),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const i=Math.floor(e),n=i+1;return t[i]/(t[i]/t[n])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let n=0;for(;n<i;n++){const i=t[n],r=t[n+1];if(i<=e)return n;if(r===e)return n+1;if(i>e&&r<e)return n+Math.log(i/e)/Math.log(i/r)}return n}tileAt(e,t,i,n){const r=this.lodAt(e);if(!r)return null;let o,s;if("number"==typeof t)o=t,s=i;else if((0,p.aI)(t.spatialReference,this.spatialReference))o=t.x,s=t.y,n=i;else{const e=(0,d.Cv)(t,this.spatialReference);if(null==e)return null;o=e.x,s=e.y,n=i}const a=r.resolution*this.size[0],l=r.resolution*this.size[1];return n??=new g.U(0,0,0),n.level=e,n.row=Math.floor((this.origin.y-s)/l+.001),n.col=Math.floor((o-this.origin.x)/a+.001),this.updateTileInfo(n),n}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;const n=e.level-i.level,r=i.resolution*this.size[0]/2**n,o=i.resolution*this.size[1]/2**n;return e.extent[0]=this.origin.x+e.col*r,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+r,e.extent[3]=e.extent[1]+o,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const i=this.lodAt(t.level);if(null==i)return null;const{resolution:n}=i,r=n*this.size[0],o=n*this.size[1];return e[0]=this.origin.x+t.col*r,e[1]=this.origin.y-(t.row+1)*o,e[2]=e[0]+r,e[3]=e[1]+o,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return n.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const i=[],r=this.lods.length-t;for(let e=0;e<r;e++){const n=e+t,{scale:r,resolution:o}=n>=0?this.lods[n]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new f.A({level:e,scale:r,resolution:o}))}return new n({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const n=e[i];this._upsampleLevels[n.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/n.resolution:0},t=n}}};(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:y.read,write:y.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,r.Cg)([(0,m.w)("origin")],w.prototype,"readOrigin",null),(0,r.Cg)([(0,l.MZ)({type:[f.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,r.Cg)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,r.Cg)([(0,m.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,r.Cg)([(0,_.K)("size",{cols:{type:c.jz},rows:{type:c.jz}})],w.prototype,"writeSize",null),(0,r.Cg)([(0,l.MZ)({type:h.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=n=(0,r.Cg)([(0,l.$K)("esri.layers.support.TileInfo")],w)},72802(e,t,i){i.d(t,{U:()=>r});var n=i(19419);class r{constructor(e,t,i,r=(0,n.vt)()){this._level=e,this._row=t,this._col=i,this.extent=r}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new r(e.level,e.row,e.col,e.extent)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3981],{32488(t,e,n){n.d(e,{A:()=>M});const s=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],i=["آ","أ","إ","ا"],r=["ﻵ","ﻷ","ﻹ","ﻻ"],o=["ﻶ","ﻸ","ﻺ","ﻼ"],a=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],h=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],l=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],c=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],u=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],d=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],g=["ء","ف"],y=["غ","ي"],p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],x=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],_=10,m=11,I=12,P=18,b=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],w=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],T=[[P,P,P,P,P,P,P,P,P,6,5,6,8,5,P,P,P,P,P,P,P,P,P,P,P,P,P,P,5,5,5,6,8,4,4,m,m,m,4,4,4,4,4,_,9,_,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,P,P,P,P,P,P,5,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,9,4,m,m,m,m,4,4,4,4,0,4,4,P,4,4,m,m,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,1,I,1,I,I,1,I,I,1,I,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,m,m,7,9,7,4,4,I,I,I,I,I,I,I,I,I,I,I,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,3,3,3,3,3,3,3,3,3,3,m,3,3,7,7,7,I,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,I,I,I,I,I,I,I,3,4,I,I,I,I,I,I,7,7,I,I,4,I,I,I,I,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,I,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,I,I,I,I,I,I,I,I,I,I,I,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,I,I,I,I,I,I,I,I,I,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,P,P,P,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,m,m,m,m,m,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,P,P,P,P,P,4,4,4,4,4,P,P,P,P,P,P,2,0,4,4,2,2,2,2,2,2,_,_,4,4,4,0,2,2,2,2,2,2,2,2,2,2,_,_,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,I,1,1,1,1,1,1,1,1,1,1,_,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,I,I,I,I,I,I,I,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,m,4,4,_,_,4,4,4,4,4,m,m,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,P],[4,4,4,m,m,m,4,4,4,4,4,_,9,_,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,m,m,4,4,4,m,m,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class M{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,n){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,n){j=[],J=[];for(let s=0;s<n;s++)t[s]=s,e[s]=s,j[s]=s}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,n))return t;e=this.inputFormat,n=this.outputFormat;let s=t;const a=H,c=W(e.charAt(1)),f=W(n.charAt(1)),g=(e.startsWith("I")?"L":e.charAt(0))+c,y=(n.startsWith("I")?"L":n.charAt(0))+f,p=e.charAt(2)+n.charAt(2);a.defInFormat=g,a.defOutFormat=y,a.defSwap=p;const x=A(t,g,y,p,a);let _=!1;return"R"===n.charAt(1)?_=!0:"C"!==n.charAt(1)&&"D"!==n.charAt(1)||(_="rtl"===this.checkContextual(x)),this.sourceToTarget=j,this.targetToSource=function(t){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[t[n]]=n;return e}(this.sourceToTarget),K=this.targetToSource,s=e.charAt(3)===n.charAt(3)?x:"S"===n.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);const n=(e=String(e)).split("");let s=0,i=1,a=n.length;t||(s=n.length-1,i=-1,a=1);const c=function(t,e,n,s){let i=0;const a=[];let c=0;for(let f=e;f*n<s;f+=n)if(z(t[f])||G(t[f])){if("ل"===t[f]&&D(t,f+n,n,s)){t[f]=Y(t[f+n],0===i?r:o),f+=n,Z(t,f,n,s),a[c]=f,c++,i=0;continue}const e=t[f];1===i?t[f]=V(t,f+n,n,s)?O(t[f]):E(t[f],l):!0===V(t,f+n,n,s)?t[f]=E(t[f],u):t[f]=E(t[f],h),G(e)||(i=1),!0===U(e)&&(i=0)}else i=0;return a}(n,s,i,a);let f="";for(let e=0;e<n.length;e++)B(c,c.length,e)>-1?(q(K,e,!t,-1),j.splice(e,1)):f+=n[e];return f}(_,x):function(t,e){if(0===t.length)return"";void 0===e&&(e=!0);let n="";const s=(t=String(t)).split("");for(let r=0;r<t.length;r++){let o=!1;if(s[r]>="ﹰ"&&s[r]<"\ufeff"){const a=t.charCodeAt(r);s[r]>="ﻵ"&&s[r]<="ﻼ"?(e?(r>0&&" "===s[r-1]?n=n.slice(0,-1)+"ل":(n+="ل",o=!0),n+=i[(a-65269)/2]):(n+=i[(a-65269)/2],n+="ل",r+1<t.length&&" "===s[r+1]?r++:o=!0),o&&(q(K,r,!0,1),j.splice(r,0,j[r]))):n+=d[a-65136]}else n+=s[r]}return n}(x,_),this.sourceToTarget=j,this.targetToSource=K,this.levels=J,s}_inputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=S(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return nt.test(t)}}function A(t,e,n,s,i){const r=function(t,e,n){if(void 0===e.inFormat&&(e.inFormat=n.defInFormat),void 0===e.outFormat&&(e.outFormat=n.defOutFormat),void 0===e.swap&&(e.swap=n.defSwap),e.inFormat===e.outFormat)return e;const s=e.inFormat.slice(0,1),i=e.outFormat.slice(0,1);let r,o=e.inFormat.slice(1,4),a=e.outFormat.slice(1,4);return o.startsWith("C")&&(r=S(t),o="ltr"===r||"rtl"===r?r.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=s+o),a.startsWith("C")&&(r=S(t),"rtl"===r?a="RTL":"ltr"===r?(r=function(t){const e=t.split("");return e.reverse(),S(e.join(""))}(t),a=r.toUpperCase()):a="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=i+a),e}(t,{inFormat:e,outFormat:n,swap:s},i);if(r.inFormat===r.outFormat)return t;e=r.inFormat,n=r.outFormat,s=r.swap;const o=e.slice(0,1),a=e.slice(1,4),h=n.slice(0,1),l=n.slice(1,4);if(i.inFormat=e,i.outFormat=n,i.swap=s,"L"===o&&"VLTR"===n){if("LTR"===a)return i.dir=X,L(t,i);if("RTL"===a)return i.dir=tt,L(t,i)}if("V"===o&&"V"===h)return i.dir="RTL"===a?tt:X,N(t,i);if("L"===o&&"VRTL"===n)return"LTR"===a?(i.dir=X,t=L(t,i)):(i.dir=tt,t=L(t,i)),N(t);if("VLTR"===e&&"LLTR"===n)return i.dir=X,L(t,i);if("V"===o&&"L"===h&&a!==l)return t=N(t),"RTL"===a?A(t,"LLTR","VLTR",s,i):A(t,"LRTL","VRTL",s,i);if("VRTL"===e&&"LRTL"===n)return A(t,"LRTL","VRTL",s,i);if("L"===o&&"L"===h){const e=i.swap;return i.swap=e.slice(0,1)+"N","RTL"===a?(i.dir=tt,t=L(t,i),i.swap="N"+e.slice(1,3),i.dir=X,t=L(t,i)):(i.dir=X,t=L(t,i),i.swap="N"+e.slice(1,3),t=A(t,"VLTR","LRTL",i.swap,i)),t}return t}function S(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function L(t,e){const n=t.split(""),s=[];return v(n,s,e),function(t,e,n){if(0!==n.hiLevel&&n.swap[0]!==n.swap[1])for(let n=0;n<t.length;n++)1===e[n]&&(t[n]=F(t[n]))}(n,s,e),R(2,n,s,e),R(1,n,s,e),J=s,n.join("")}function v(t,e,n){const s=t.length,i=n.dir?x:p;let r=0,o=-1;const a=[],h=[];n.hiLevel=n.dir,n.lastArabic=!1,n.hasUbatAl=!1,n.hasUbatB=!1,n.hasUbatS=!1;for(let e=0;e<s;e++)a[e]=k(t[e]);for(let l=0;l<s;l++){const s=r,c=C(t,a,h,l,n);h[l]=c,r=i[s][c];const u=240&r;r&=15;const f=i[r][Q];if(e[l]=f,u>0)if(16===u){for(let t=o;t<l;t++)e[t]=1;o=-1}else o=-1;if(i[r][$])-1===o&&(o=l);else if(o>-1){for(let t=o;t<l;t++)e[t]=f;o=-1}5===a[l]&&(e[l]=0),n.hiLevel|=f}n.hasUbatS&&function(t,e,n,s){for(let i=0;i<n;i++)if(6===t[i]){e[i]=s.dir;for(let n=i-1;n>=0&&8===t[n];n--)e[n]=s.dir}}(a,e,s,n)}function k(t){const e=t.charCodeAt(0),n=w[e>>8];return n<100?n:T[n-100][255&e]}function N(t,e){const n=t.split("");if(e){const t=[];v(n,t,e),J=t}return n.reverse(),j.reverse(),n.join("")}function B(t,e,n){for(let s=0;s<e;s++)if(t[s]===n)return s;return-1}function z(t){for(let e=0;e<g.length;e++)if(t>=g[e]&&t<=y[e])return!0;return!1}function V(t,e,n,s){for(;e*n<s&&G(t[e]);)e+=n;return!!(e*n<s&&z(t[e]))}function D(t,e,n,s){for(;e*n<s&&G(t[e]);)e+=n;let r=" ";if(!(e*n<s))return!1;r=t[e];for(let t=0;t<i.length;t++)if(i[t]===r)return!0;return!1}function R(t,e,n,s){if(s.hiLevel<t)return;if(1===t&&s.dir===tt&&!s.hasUbatB)return e.reverse(),void j.reverse();const i=e.length;let r,o,a,h,l,c=0;for(;c<i;){if(n[c]>=t){for(r=c+1;r<i&&n[r]>=t;)r++;for(o=c,a=r-1;o<a;o++,a--)h=e[o],e[o]=e[a],e[a]=h,l=j[o],j[o]=j[a],j[a]=l;c=r}c++}}function C(t,e,n,s,i){const r=e[s];return{UBAT_L:()=>(i.lastArabic=!1,0),UBAT_R:()=>(i.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>i.lastArabic?3:2,UBAT_AL:()=>(i.lastArabic=!0,i.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,r;return s<1||s+1>=e.length||2!==(t=n[s-1])&&3!==t||2!==(r=e[s+1])&&3!==r?4:(i.lastArabic&&(r=3),r===t?r:4)},UBAT_ES:()=>2===(s>0?n[s-1]:5)&&s+1<e.length&&2===e[s+1]?2:4,UBAT_ET:()=>{if(s>0&&2===n[s-1])return 2;if(i.lastArabic)return 4;let t=s+1;const r=e.length;for(;t<r&&11===e[t];)t++;return t<r&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===i.inFormat){const n=e.length;let i=s+1;for(;i<n&&12===e[i];)i++;if(i<n){const n=t[s].charCodeAt(0),r=n>=1425&&n<=2303||64286===n,o=e[i];if(r&&(1===o||7===o))return 1}}return s<1||5===e[s-1]?4:n[s-1]},UBAT_B:()=>(i.lastArabic=!0,i.hasUbatB=!0,i.dir),UBAT_S:()=>(i.hasUbatS=!0,4),UBAT_LRE:()=>(i.lastArabic=!1,4),UBAT_RLE:()=>(i.lastArabic=!1,4),UBAT_LRO:()=>(i.lastArabic=!1,4),UBAT_RLO:()=>(i.lastArabic=!1,4),UBAT_PDF:()=>(i.lastArabic=!1,4),UBAT_BN:()=>4}[b[r]]()}function F(t){let e,n=0,i=s.length-1;for(;n<=i;)if(e=Math.floor((n+i)/2),t<s[e][0])i=e-1;else{if(!(t>s[e][0]))return s[e][1];n=e+1}return t}function U(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function O(t){for(let e=0;e<a.length;e++)if(t===a[e])return c[e];return t}function E(t,e){for(let n=0;n<a.length;n++)if(t===a[n])return e[n];return t}function G(t){return t>="ً"&&t<="ٕ"}function W(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function Z(t,e,n,s){for(;e*n<s&&G(t[e]);)e+=n;return e*n<s&&(t[e]=" ",!0)}function Y(t,e){for(let n=0;n<i.length;n++)if(t===i[n])return e[n];return t}function q(t,e,n,s){for(let i=0;i<t.length;i++)(t[i]>e||!n&&t[i]===e)&&(t[i]+=s)}let j=[],K=[],J=[];const H={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},Q=5,$=6,X=0,tt=1,et=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,nt=/[\u0591-\u06ff\ufb1d-\ufefc]/},95488(t,e,n){n.d(e,{I:()=>i});var s=n(11406);class i extends s.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},34304(t,e,n){n.d(e,{DF:()=>h,FD:()=>i,ct:()=>l});let s=1e-6;function i(){return s}const r=Math.random,o=Math.PI/180,a=180/Math.PI;function h(t){return t*o}function l(t){return t*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:r,equals:function(t,e){return Math.abs(t-e)<=s*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:i,setEpsilon:function(t){s=t},toDegree:l,toRadian:h},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,r])},51624(t,e,n){n.d(e,{A:()=>l});var s=n(44208),i=n(69397),r=n(93687);const o=4294967296,a=new TextDecoder("utf-8"),h=(0,s.A)("safari")||(0,s.A)("ios")?6:(0,s.A)("ff")?12:32;class l{constructor(t,e,n=0,s=t?.byteLength??0){this._tag=0,this._dataType=99,this._init(t,e,n,s)}[Symbol.dispose](){this.release()}_init(t,e,n,s){this._data=t,this._dataView=e,this._pos=n,this._end=s}get usedMemory(){return 64+(0,i.Qf)(this._data)}asUnsafe(){return this}clone(){return new l(this._data,this._dataView,this._pos,this._end)}clonePooled(){return l.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(t,e,n=0,s=t?.byteLength??0){const i=l.pool.acquire();return i._init(t,e,n,s),i}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;const e=this._decodeVarint();if(this._tag=e>>3,this._dataType=7&e,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;if(t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return t;throw new Error("Varint overflow")}getPackedEnd(){const t=this.getUInt32();return this._pos+t}getUInt64(){return this._decodeVarint()}getSInt32(){const t=this.getUInt32();return t>>>1^-(1&t)}getSInt64(){return this._decodeSVarint()}getBool(){const t=0!==this._data[this._pos];return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){const t=this._dataView,e=this._pos,n=t.getUint32(e,!0)+t.getUint32(e+4,!0)*o;return this._skip(8),n}getSFixed64(){const t=this._dataView,e=this._pos,n=t.getUint32(e,!0)+t.getInt32(e+4,!0)*o;return this._skip(8),n}getDouble(){const t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){const t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){const t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){const t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){const t=this._getLength(),e=this._pos,n=this._toString(this._data,e,e+t);return this._skip(t),n}getBytes(){const t=this._getLength(),e=this._pos,n=this._toBytes(this._data,e,e+t);return this._skip(t),n}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,e,n,s){const i=this.getMessage(),r=t(i,e,n,s);return i.release(),r}processMessage(t){const e=this.getMessage(),n=t(e);return e.release(),n}getMessage(){const t=this._getLength(),e=l.pool.acquire();return e._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),e}release(){l.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){const t=this._data;let e=this._pos,n=0,s=0;if(this._end-e>=10)do{if(s=t[e++],n|=127&s,!(128&s))break;if(s=t[e++],n|=(127&s)<<7,!(128&s))break;if(s=t[e++],n|=(127&s)<<14,!(128&s))break;if(s=t[e++],n|=(127&s)<<21,!(128&s))break;if(s=t[e++],n+=268435456*(127&s),!(128&s))break;if(s=t[e++],n+=34359738368*(127&s),!(128&s))break;if(s=t[e++],n+=4398046511104*(127&s),!(128&s))break;if(s=t[e++],n+=562949953421312*(127&s),!(128&s))break;if(s=t[e++],n+=72057594037927940*(127&s),!(128&s))break;if(s=t[e++],n+=0x8000000000000000*(127&s),!(128&s))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;e!==this._end&&(s=t[e],128&s);)++e,n+=(127&s)*i,i*=128;if(e===this._end)throw new Error("Varint overrun!");++e,n+=s*i}return this._pos=e,n}_decodeSVarint(){const t=this._data;let e,n=0,s=0;const i=1&t[this._pos];if(s=t[this._pos++],n|=127&s,!(128&s))return i?-(n+1)/2:n/2;if(s=t[this._pos++],n|=(127&s)<<7,!(128&s))return i?-(n+1)/2:n/2;if(s=t[this._pos++],n|=(127&s)<<14,!(128&s))return i?-(n+1)/2:n/2;if(s=t[this._pos++],n|=(127&s)<<21,!(128&s))return i?-(n+1)/2:n/2;if(s=t[this._pos++],n+=268435456*(127&s),!(128&s))return i?-(n+1)/2:n/2;if(s=t[this._pos++],n+=34359738368*(127&s),!(128&s))return i?-(n+1)/2:n/2;if(s=t[this._pos++],n+=4398046511104*(127&s),!(128&s))return i?-(n+1)/2:n/2;if(e=BigInt(n),s=t[this._pos++],e+=0x2000000000000n*BigInt(127&s),!(128&s))return Number(i?-(e+1n)/2n:e/2n);if(s=t[this._pos++],e+=0x100000000000000n*BigInt(127&s),!(128&s))return Number(i?-(e+1n)/2n:e/2n);if(s=t[this._pos++],e+=0x8000000000000000n*BigInt(127&s),!(128&s))return Number(i?-(e+1n)/2n:e/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,e,n){if((n=Math.min(this._end,n))-e>h){const s=t.subarray(e,n);return a.decode(s)}let s="",i="";for(let r=e;r<n;++r){const e=t[r];128&e?i+="%"+e.toString(16):(s+=decodeURIComponent(i)+String.fromCharCode(e),i="")}return i.length&&(s+=decodeURIComponent(i)),s}_toBytes(t,e,n){return n=Math.min(this._end,n),new Uint8Array(t.buffer,e,n-e)}static{this.pool=new r.A(()=>new l(null,null),void 0,t=>{t._data=null,t._dataView=null})}}},36745(t,e,n){n.d(e,{z:()=>a});var s=n(4718),i=n(51118),r=n(60408),o=n(92722);class a{static fromOptimized(t,e,n=1){return(new h).initialize(t,e,n)}static fromJSON(t){const[e,n]=c(t),s=(0,r.Pv)(t),i=(0,r.W0)(t);return(new u).initialize(e,n,s,i,1)}static fromOptimizedCIM(t,e,n=1){return(new f).initialize(t,e,n)}static fromJSONCIM(t,e=1){const[n,s]=c(t),i=(0,r.Pv)(t),o=(0,r.W0)(t);return(new d).initialize(n,s,i,o,e)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),n=t.geometryType;return e&&n?this.fromOptimized(e,n):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),n=t.geometryType;return e&&n?this.fromOptimizedCIM(e,n):null}static createEmptyOptimized(t,e=!1,n=!1,s=1){return(new f).initialize(new o.A([],[],e,n),t,s)}static createEmptyJSON(t,e=!1,n=!1){return(new u).initialize([],t,e,n,1)}static createEmptyOptimizedCIM(t,e=!1,n=!1,s=1){return(new f).initialize(new o.A([],[],e,n),t,s)}static createEmptyJSONCIM(t,e=!1,n=!1,s=1){return(new d).initialize([],t,e,n,s)}asJSON(){const t=(0,i.x)(this),{hasZ:e,hasM:n}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:n}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:n?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:n}:{paths:t,hasZ:e,hasM:n}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,n=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const s=t,i=e;for(;this.nextPoint();)n+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return n+=(t-s)*(e+i),-.5*n}invertY(){this.yFactor*=-1}}class h extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,n){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=n,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,n=this._pathOffset;return(new h).initialize(new o.A([this.pathSize],e.slice(n,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,e=this._stride,n=this._geometry.coords;let s=0;for(let i=this._pathOffset+e;i<t;i+=e){const t=n[i-e],r=n[i-e+1],o=n[i]-t,a=n[i+1]-r;s+=Math.sqrt(o*o+a*a)}return s}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,n=this._end-this._stride;for(let s=0;s<this._stride;s++)if(t[e+s]!==t[n+s])return!1;return!0}clone(){return(new h).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function c(t){return(0,r.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,r.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r.fT)(t)?[[[l(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class u extends a{initialize(t,e,n,s,i){return this._paths=t,this.geometryType=e,this.hasZ=n,this.hasM=s,this._pathIndex=this._pointIndex=-1,this.yFactor=i,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let n=0;for(let s=1;s<t;s++){const t=e[s-1],i=e[s],r=t[0],o=t[1],a=i[0]-r,h=i[1]-o;n+=Math.sqrt(a*a+h*h)}return n}startPath(){this._paths.push([])}getCurrentPath(){return(new u).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,i.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:e}=this,n=new o.A([],[],t,e),{coords:s,lengths:i}=n;if("esriGeometryPoint"===this.geometryType)s.push(...this._paths[0][0]),i.length=0;else for(const n of this._paths){for(const i of n)s.push(i[0]),s.push(i[1]*this.yFactor),t&&s.push(i[2]),e&&s.push(i[this._mIndex]);i.push(n.length)}return n}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}clone(){return(new u).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class f extends h{initialize(t,e,n){return super.initialize(t,e,n),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new f).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class d extends u{initialize(t,e,n,s,i){return super.initialize(t,e,n,s,i)}clone(){return(new d).initialize((0,s.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},51118(t,e,n){function s(t){const e=[];for(t.reset();t.nextPath();){const n=[];for(;t.nextPoint();){const e=[t.x,t.y];t.hasZ&&e.push(t.z),t.hasM&&e.push(t.m),n.push(e)}e.push(n)}return t.reset(),e}function i(t){const e=[];for(;t.nextPoint();)e.push([t.x,t.y]);return t.seekPathStart(),e}n.d(e,{A:()=>i,x:()=>s})},537(t,e,n){n.d(e,{B$:()=>p,LJ:()=>x,Pj:()=>I,Rg:()=>g,Yz:()=>_,z8:()=>y});var s=n(19419),i=n(79567),r=n(52006);function o(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function a(t){return void 0!==t.points}function h(t){return void 0!==t.x&&void 0!==t.y}function l(t){return void 0!==t.paths}function c(t){return void 0!==t.rings}function u(t){return function(e,n){return null==e?n:null==n?e:t(e,n)}}const f=u(Math.min),d=u(Math.max);function g(t,e){return l(e)?_(t,e.curvePaths??e.paths,!1,!1)??t:c(e)?_(t,e.curveRings??e.rings,!1,!1)??t:a(e)?I(t,e.points,!1,!1,!1,!1):o(e)?m(t,e):(h(e)&&(t[0]=e.x,t[1]=e.y,t[2]=e.x,t[3]=e.y),t)}function y(t){let e,n,i,r;for(t.reset(),e=i=1/0,n=r=-1/0;t.nextPath();){const s=p(t);e=Math.min(s[0],e),i=Math.min(s[1],i),n=Math.max(s[2],n),r=Math.max(s[3],r)}return(0,s.vt)([e,i,n,r])}function p(t){let e,n,i,r;for(e=i=1/0,n=r=-1/0;t.nextPoint();)e=Math.min(t.x,e),i=Math.min(t.y,i),n=Math.max(t.x,n),r=Math.max(t.y,r);return(0,s.vt)([e,i,n,r])}function x(t,e){return l(e)?_(t,e.curvePaths??e.paths,!0,!1)??t:c(e)?_(t,e.curveRings??e.rings,!0,!1)??t:a(e)?I(t,e.points,!0,!1,!0,!1):o(e)?m(t,e,0,0,!0,!1):(h(e)&&(t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.x,t[4]=e.y,t[5]=e.z),t)}function _(t,e,n,o){const a=n?3:2;if(!e.length||!e[0].length)return null;let h,l,c,u,[g,y]=(0,r.yP)(e[0][0]),p=g,x=y;for(let t=0;t<e.length;t++){const _=e[t];for(let t=0;t<_.length;t++){const e=(0,r.yP)(_[t]),[m,I]=e;if(g=f(g,m),y=f(y,I),p=d(p,m),x=d(x,I),n&&e.length>2){const t=e[2];h=f(h,t),l=d(l,t)}if(o&&e.length>a){const t=e[a];c=f(c,t),u=d(u,t)}const P=_[t];if((0,r.Xq)(P)||t<1)continue;const b=(0,r.yP)(_[t-1]),w=(0,s.fA)(g,y,p,x);[g,y,p,x]=(0,i.e)(w,b,P)}}return n?o?(t[0]=g,t[1]=y,t[2]=h,t[3]=c,t[4]=p,t[5]=x,t[6]=l,t[7]=u,t.length=8,t):(t[0]=g,t[1]=y,t[2]=h,t[3]=p,t[4]=x,t[5]=l,t.length=6,t):o?(t[0]=g,t[1]=y,t[2]=c,t[3]=p,t[4]=x,t[5]=u,t.length=6,t):(t[0]=g,t[1]=y,t[2]=p,t[3]=x,t.length=4,t)}function m(t,e,n,s,i,r){const o=e.xmin,a=e.xmax,h=e.ymin,l=e.ymax;let c=e.zmin,u=e.zmax,f=e.mmin,d=e.mmax;return i?(c=c||0,u=u||0,r?(f=f||0,d=d||0,t[0]=o,t[1]=h,t[2]=c,t[3]=f,t[4]=a,t[5]=l,t[6]=u,t[7]=d,t):(t[0]=o,t[1]=h,t[2]=c,t[3]=a,t[4]=l,t[5]=u,t)):r?(f=f||0,d=d||0,t[0]=o,t[1]=h,t[2]=f,t[3]=a,t[4]=l,t[5]=d,t):(t[0]=o,t[1]=h,t[2]=a,t[3]=l,t)}function I(t,e,n,s,i,r){const o=n?3:2,a=s&&r,h=n&&i;if(!e.length||!e[0].length)return null;let l,c,u,g,[y,p]=e[0],[x,_]=e[0];for(let t=0;t<e.length;t++){const n=e[t],[s,i]=n;if(y=f(y,s),p=f(p,i),x=d(x,s),_=d(_,i),h&&n.length>2){const t=n[2];l=f(l,t),c=d(c,t)}if(a&&n.length>o){const t=n[o];u=f(l,t),g=d(c,t)}}return i?(l=l||0,c=c||0,r?(u=u||0,g=g||0,t[0]=y,t[1]=p,t[2]=l,t[3]=u,t[4]=x,t[5]=_,t[6]=c,t[7]=g,t):(t[0]=y,t[1]=p,t[2]=l,t[3]=x,t[4]=_,t[5]=c,t)):r?(u=u||0,g=g||0,t[0]=y,t[1]=p,t[2]=u,t[3]=x,t[4]=_,t[5]=g,t):(t[0]=y,t[1]=p,t[2]=x,t[3]=_,t)}},12359(t,e,n){n.d(e,{IK:()=>c,TP:()=>u,Ve:()=>a,Z4:()=>r,l8:()=>o,w2:()=>l});var s=n(51118),i=n(95108);function r({xmin:t,xmax:e,ymin:n,ymax:s,zmin:i,zmax:r,hasZ:o}){const a=[(t+e)/2,(n+s)/2];return o&&a.push((i+r)/2),a}function o(t){return function(t,e){if(!t?.length)return null;const n=[],s=[],r=e?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let n=0,i=t.length;n<i;n++){const i=h(t[n],e,r);i&&s.push(i)}if(s.sort((t,n)=>{let s=t[2]-n[2];return 0===s&&e&&(s=t[4]-n[4]),s}),s.length&&(n[0]=s[0][0],n[1]=s[0][1],e&&(n[2]=s[0][3]),(n[0]<r[0]||n[0]>r[1]||n[1]<r[2]||n[1]>r[3]||e&&(n[2]<r[4]||n[2]>r[5]))&&(n.length=0)),!n.length){const s=t[0]&&t[0].length?function(t,e){const n=e?[0,0,0]:[0,0],s=e?[0,0,0]:[0,0];let r=0,o=0,a=0,h=0;for(let l=0,c=t.length;l<c-1;l++){const c=t[l],u=t[l+1];if(c&&u){n[0]=c[0],n[1]=c[1],s[0]=u[0],s[1]=u[1],e&&c.length>2&&u.length>2&&(n[2]=c[2],s[2]=u[2]);const t=(0,i.R3)(n,s);if(t){r+=t;const n=(0,i.t9)(c,u);o+=t*n[0],a+=t*n[1],e&&n.length>2&&(h+=t*n[2])}}}return r>0?e?[o/r,a/r,h/r]:[o/r,a/r]:t.length?t[0]:null}(t[0],e):null;if(!s)return null;n[0]=s[0],n[1]=s[1],e&&s.length>2&&(n[2]=s[2])}return n}(t.rings,t.hasZ??!1)}function a(t){const e=o(t);if(!e)return null;const{hasZ:n,spatialReference:s}=t,[i,r,a]=e;return isNaN(i)||isNaN(r)||n&&isNaN(a)?null:{x:i,y:r,z:n?a:void 0,spatialReference:s}}function h(t,e,n){let s=0,i=0,r=0,o=0,a=0;const h=t.length?t[0][0]:0,l=t.length?t[0][1]:0,c=t.length&&e?t[0][2]:0;for(let u=0;u<t.length;u++){const f=t[u],d=t[(u+1)%t.length],[g,y,p]=f,x=g-h,_=y-l,[m,I,P]=d,b=m-h,w=I-l,T=x*w-b*_;if(o+=T,s+=(x+b)*T,i+=(_+w)*T,e&&f.length>2&&d.length>2){const t=p-c,e=P-c,n=x*e-b*t;r+=(t+e)*n,a+=n}g<n[0]&&(n[0]=g),g>n[1]&&(n[1]=g),y<n[2]&&(n[2]=y),y>n[3]&&(n[3]=y),e&&(p<n[4]&&(n[4]=p),p>n[5]&&(n[5]=p))}if(o>0&&(o*=-1),a>0&&(a*=-1),!o)return null;o*=.5,a*=.5;const u=[s/(6*o)+h,i/(6*o)+l,o];return e&&(n[4]===n[5]||0===a?(u[3]=(n[4]+n[5])/2,u[4]=0):(u[3]=r/(6*a)+c,u[4]=a)),u}function l(t,e){let n=0,s=0,i=0;t.nextPoint();const r=t.pathSize?t.x:0,o=t.pathSize?t.y:0;for(let a=0;a<t.pathSize;a++){t.seekInPath(a);const h=[t.x,t.y];t.seekInPath((a+1)%t.pathSize);const l=[t.x,t.y],[c,u]=h,f=c-r,d=u-o,[g,y]=l,p=g-r,x=y-o,_=f*x-p*d;i+=_,n+=(f+p)*_,s+=(d+x)*_,c<e[0]&&(e[0]=c),c>e[1]&&(e[1]=c),u<e[2]&&(e[2]=u),u>e[3]&&(e[3]=u)}return i>0&&(i*=-1),i?(i*=.5,[n/(6*i)+r,s/(6*i)+o,i]):null}function c(t){const{hasZ:e,totalSize:n}=t;if(0===n)return null;const r=[],o=[],a=e?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const e=h((0,s.A)(t),t.hasZ,a);e&&o.push(e)}if(o.sort((t,n)=>{let s=t[2]-n[2];return 0===s&&e&&(s=t[4]-n[4]),s}),o.length&&(r[0]=o[0][0],r[1]=o[0][1],e&&(r[2]=o[0][3]),(r[0]<a[0]||r[0]>a[1]||r[1]<a[2]||r[1]>a[3]||e&&(r[2]<a[4]||r[2]>a[5]))&&(r.length=0)),!r.length){t.reset(),t.nextPath();const n=t.pathSize?function(t){const{hasZ:e}=t,n=e?[0,0,0]:[0,0],s=e?[0,0,0]:[0,0];let r=0,o=0,a=0,h=0;if(t.nextPoint()){let l=t.x,c=t.y,u=t.z;for(;t.nextPoint();){const f=t.x,d=t.y,g=t.z;n[0]=l,n[1]=c,s[0]=f,s[1]=d,e&&(n[2]=u,s[2]=g);const y=(0,i.R3)(n,s);if(y){r+=y;const t=(0,i.t9)(n,s);o+=y*t[0],a+=y*t[1],e&&t.length>2&&(h+=y*t[2])}l=f,c=d,u=g}}return r>0?e?[o/r,a/r,h/r]:[o/r,a/r]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!n)return null;r[0]=n[0],r[1]=n[1],e&&n.length>2&&(r[2]=n[2])}return r}function u(t){let e=0;for(t.reset();t.nextPath();)e+=t.getCurrentRingArea();if(e<1e-6){const e=c(t);return e?[e[0],e[1]]:null}const n=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const s=[t.x,t.y];for(t.reset();t.nextPath();)d(n,s,t);return n[0]*=1/e,n[1]*=1/e,n[0]+=s[0],n[1]+=s[1],n}const f=1/3;function d(t,e,n){if(!t||!n||n.pathSize<3)return null;n.nextPoint();const s=n.x,i=n.y;n.nextPoint();let r,o=n.x-s,a=n.y-i,h=0,l=0;for(;n.nextPoint();)h=n.x-s,l=n.y-i,r=.5*f*(h*a-l*o),t[0]+=r*(o+h),t[1]+=r*(a+l),o=h,a=l;const c=n.getCurrentRingArea(),u=[s,i];return u[0]-=e[0],u[1]-=e[1],u[0]*=c,u[1]*=c,t[0]+=u[0],t[1]+=u[1],t}},95108(t,e,n){n.d(e,{$3:()=>c,Ng:()=>a,R3:()=>i,Xf:()=>o,Yl:()=>l,gR:()=>r,m3:()=>f,t9:()=>h});var s=n(4576);function i(t,e){const n=e[0]-t[0],s=e[1]-t[1];if(t.length>2&&e.length>2){const i=t[2]-e[2];return Math.sqrt(n*n+s*s+i*i)}return Math.sqrt(n*n+s*s)}function r(t,e,n,s){const[i,r]=e,[o,a]=n,[h,l]=s,c=h-o,u=l-a,f=c*c+u*u,d=(i-o)*c+(r-a)*u,g=Math.min(1,Math.max(0,d/f));return t[0]=o+c*g,t[1]=a+u*g,t}function o(t,e,n){let s,i,r,o,h=!1,l=1/0;for(n.reset();n.nextPath();)if(n.nextPoint())for(s=n.x,i=n.y;n.nextPoint();)r=n.x,o=n.y,i>e!=o>e&&t<(r-s)*(e-i)/(o-i)+s&&(h=!h),l=Math.min(l,a(t,e,s,i,r,o)),s=r,i=o;return 0===l?0:(h?1:-1)*Math.sqrt(l)}function a(t,e,n,s,i,r){let o=n,a=s,h=i-o,l=r-a;if(0!==h||0!==l){const n=((t-o)*h+(e-a)*l)/(h*h+l*l);n>1?(o=i,a=r):n>0&&(o+=h*n,a+=l*n)}return h=t-o,l=e-a,h*h+l*l}function h(t,e){return function(t,e,n){const s=t[0]+n*(e[0]-t[0]),i=t[1]+n*(e[1]-t[1]);return t.length>2&&e.length>2?[s,i,t[2]+n*(e[2]-t[2])]:[s,i]}(t,e,.5)}function l(t){const e=t.length;let n=0;for(let s=0;s<e-1;++s)n+=i(t[s],t[s+1]);return n}function c(t,e=0,n=1){let s=0;const i=t.length;let r=t[0];for(let o=1;o<i;o++){const i=t[o];s+=(i[e]-r[e])*(i[n]+r[n]),r=i}if(u(t)){const i=t[0];s+=(i[e]-r[e])*(i[n]+r[n])}return s>=0}function u(t){const e=t.length;return e>0&&!(0,s.aI)(t[0],t[e-1])}function f(t){if("rings"in t)for(const e of t.rings)u(e)&&e.push(e[0].slice())}n(52006)},52006(t,e,n){function s(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function i(t){return"curveRings"in t?t.curveRings:t.curvePaths}function r(t){return"b"in t}function o(t){return"c"in t}function a(t){return Array.isArray(t)}function h(t){return"a"in t}function l(t){return"a"in t&&4===t.a.length}function c(t){return"a"in t&&7===t.a.length}function u(t,e){return i(t).flat().some(t=>function(t,e){return!(a(t)||(r(t)?e.has("cubic-bezier"):o(t)?e.has("circular-arc"):!l(t)&&!c(t)||e.has("elliptic-arc")))}(t,e))}function f(t){return a(t)?t:r(t)?t.b[0]:o(t)?t.c[0]:t.a[0]}function d(t){if(r(t)){const[e,n,s]=t.b;return{b:[[...e],[...n],[...s]]}}if(o(t)){const[e,n]=t.c;return{c:[[...e],[...n]]}}if(a(t))return[...t];if(l(t)){const[e,n,s,i]=t.a;return{a:[[...e],[...n],s,i]}}if(c(t)){const[e,n,s,i,r,o,a]=t.a;return{a:[[...e],[...n],s,i,r,o,a]}}return t}n.d(e,{DA:()=>l,Ed:()=>s,FD:()=>i,FG:()=>h,V8:()=>u,Xq:()=>a,aO:()=>o,n1:()=>r,tk:()=>d,wY:()=>c,yP:()=>f}),n(4576)},78957(t,e,n){n.d(e,{d:()=>c,R:()=>P});class s{constructor(t=i){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;const{_data:e,_compare:n}=this;e.push(t);let s=e.length-1>>>0;const i=e[s];for(;s>0;){const t=s-1>>1,r=e[t];if(!(n(r,i)<=0))break;e[t]=i,e[s]=r,s=t}}dequeue(){const{_data:t,_compare:e}=this,n=t[0],s=t.pop();if(0===t.length)return n;t[0]=s;let i=0;const r=t.length,o=t[0];let a,h,l=null;for(;;){const n=2*i+1,s=2*i+2;if(l=null,n<r&&(a=t[n],e(a,o)>0&&(l=n)),s<r&&(h=t[s],(null===l&&e(h,o)<=0||null!==l&&e(h,a)<=0)&&(l=s)),null===l)break;t[i]=t[l],t[l]=o,i=l}return n}}const i=(t,e)=>t<e?-1:t>e?1:0;var r=n(19419),o=n(537),a=n(12359),h=n(95108),l=n(12176);function c(t){if(0===t.totalSize)return null;const e=(0,o.z8)(t);if(!e)return null;const n=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19;let s=0,i=0;t.reset();for(let e=0;t.nextPath();e++){const n=t.getCurrentRingArea();n>i&&(i=n,s=e)}if(t.seekPath(s),0===t.pathSize)return null;t.seekPathStart();const h=(0,o.B$)(t);if(Math.abs(i)<=2*n*n)return[(h[0]+h[2])/2,(h[1]+h[3])/2];t.seekPathStart();const l=(0,a.w2)(t,(0,r.vt)());if(null===l)return null;if(t.totalPoints<4)return l;const c=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],g=[NaN,NaN,NaN,NaN],y=[NaN,NaN,NaN,NaN];let p=!1,I=f(l,t,!0);0===I.distance&&(p=!0,c[0][0]=l[0],c[0][1]=l[1],I=f(l,t,!1)),g[0]=I.distance,y[0]=0;const P=[NaN,NaN];let b=!1,w=.25,T=-1,M=NaN;do{if(M=NaN,c[1]=d(t,x(h[0],h[2],w),0,e),isNaN(c[1][0])||isNaN(c[1][1])||(I=f(c[1],t,!1),M=I.distance),!isNaN(M)&&M>n&&u(c[1],t))b=!0,g[1]=M,y[1]=_(c[1],l);else if(!isNaN(M)&&M>T&&(T=M,P[0]=c[1][0],P[1]=c[1][1]),w-=.01,w<.1){if(!(T>=0))break;b=!0,g[1]=T,c[1][0]=P[0],c[1][1]=P[1],y[1]=_(c[1],l)}}while(!b);b=!1,w=.5,T=-1;let A=.01,S=1;do{if(M=NaN,c[2]=d(t,x(h[0],h[2],w),0,e),isNaN(c[2][0])||isNaN(c[2][1])||(I=f(c[2],t,!1),M=I.distance),!isNaN(M)&&M>n&&u(c[2],t))b=!0,g[2]=M,y[2]=_(c[2],l);else if(!isNaN(M)&&M>T)T=M,P[0]=c[2][0],P[1]=c[2][1];else if(M>T&&(T=M,P[0]=c[2][0],P[1]=c[2][1]),w=.5+A*S,A+=.01,S*=-1,w<.3||w>.7){if(!(T>=0))break;b=!0,g[2]=T,c[2][0]=P[0],c[2][1]=P[1],y[2]=_(c[2],l)}}while(!b);b=!1,w=.75,T=-1;do{if(M=NaN,c[3]=d(t,x(h[0],h[2],w),0,e),isNaN(c[3][0])||isNaN(c[3][1])||(I=f(c[3],t,!1),M=I.distance),!isNaN(M)&&M>n&&u(c[3],t))b=!0,g[3]=M,y[3]=_(c[3],l);else if(M>T&&(T=M,P[0]=c[3][0],P[1]=c[3][1]),w+=.01,w>.9){if(!(T>=0))break;b=!0,g[3]=T,c[3][0]=P[0],c[3][1]=P[1],y[3]=_(c[3],l)}}while(!b);const L=[0,1,2,3],v=p?0:1;let k;for(let t=v;t<4;t++)for(let t=v;t<3;t++){const e=y[t],n=y[t+1];m(e,n)>0&&(k=L[t],L[t]=L[t+1],L[t+1]=k,y[t]=n,y[t+1]=e)}let N=v,B=0,z=0;for(let t=v;t<4;t++){switch(t){case 0:z=2*g[L[t]];break;case 1:z=1.66666666*g[L[t]];break;case 2:z=1.33333333*g[L[t]];break;case 3:z=g[L[t]]}z>B&&(B=z,N=L[t])}return c[N]}function u(t,e){let n,s,i,r,o=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(n=e.x,s=e.y;e.nextPoint();n=i,s=r)i=e.x,r=e.y,s>t[1]!=r>t[1]&&((i-n)*(t[1]-s)-(r-s)*(t[0]-n)>0?o++:o--);return 0!==o}function f(t,e,n){if(n&&u(t,e))return{coord:t,distance:0};let s=1/0,i=0,r=0,o=[0,0],a=[0,0];const l=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(o[0]=e.x,o[1]=e.y;e.nextPoint();o=a){a=[e.x,e.y],(0,h.gR)(l,t,o,a);const n=_(t,l);n<s&&(s=n,i=l[0],r=l[1])}return{coord:[i,r],distance:Math.sqrt(s)}}function d(t,e,n,s){const i=[e,0];let o=1/0,a=1/0,h=!1,c=!1;const u=[[e,s[1]-1],[e,s[3]+1]],f=[0,0],d=[0,0],p=[0,0],x=[[0,0],[0,0]],_=(0,r.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(x[0][0]=t.x,x[0][1]=t.y;t.nextPoint();x[0][0]=x[1][0],x[0][1]=x[1][1]){if(x[1][0]=t.x,x[1][1]=t.y,null===g(_,x))continue;if(d[0]=u[0][0],d[1]=u[0][1],p[0]=u[1][0],p[1]=u[1][1],0===y(_,d,p))continue;if(!(0,l.Ql)(u[0],u[1],x[0],x[1],f))continue;const e=f[1];o>a?e<o&&(o=e,h=!0):e<a&&(a=e,c=!0)}return h&&c?i[1]=(o+a)/2:i[0]=i[1]=NaN,i}function g(t,e){if(e.length<2)return null;t||(t=(0,r.vt)());const[n,s]=e[0],[i,o]=e[1];return t[0]=Math.min(n,i),t[1]=Math.min(s,o),t[2]=Math.max(n,i),t[3]=Math.max(s,o),t}function y(t,e,n){let s=p(e,t),i=p(n,t);const r=t[0],o=t[1],a=t[2],h=t[3];if(s&i)return 0;if(!(s|i))return 4;const l=(s?1:0)|(i?2:0);do{const l=n[0]-e[0],c=n[1]-e[1];if(l>c)3&s?(1&s?(e[1]+=c*(r-e[0])/l,e[0]=r):(e[1]+=c*(a-e[0])/l,e[0]=a),s=p(e,t)):3&i?(1&i?(n[1]+=c*(r-n[0])/l,n[0]=r):(n[1]+=c*(a-n[0])/l,n[0]=a),i=p(n,t)):s?(4&s?(e[0]+=l*(o-e[1])/c,e[1]=o):(e[0]+=l*(h-e[1])/c,e[1]=h),s=p(e,t)):(4&i?(n[0]+=l*(o-n[1])/c,n[1]=o):(n[0]+=l*(h-n[1])/c,n[1]=h),i=p(n,t));else if(12&s?(4&s?(e[0]+=l*(o-e[1])/c,e[1]=o):(e[0]+=l*(h-e[1])/c,e[1]=h),s=p(e,t)):12&i?(4&i?(n[0]+=l*(o-n[1])/c,n[1]=o):(n[0]+=l*(h-n[1])/c,n[1]=h),i=p(n,t)):s?(1&s?(e[1]+=c*(r-e[0])/l,e[0]=r):(e[1]+=c*(a-e[0])/l,e[0]=a),s=p(e,t)):(1&i?(n[1]+=c*(r-n[0])/l,n[0]=r):(n[1]+=c*(a-n[0])/l,n[0]=a),i=p(n,t)),s&i)return 0}while(s|i);return l}function p(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function x(t,e,n){return t+(e-t)*n}function _(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function m(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const n=isNaN(t),s=isNaN(e);return n<s?-1:n>s?1:0}class I{constructor(t,e,n,s){this.x=t,this.y=e,this.cellSize=n,this.distancefromCellCenter=(0,h.Xf)(t,e,s),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function P(t){if(!t.nextPath()||!t.pathSize)return null;const e=(0,o.B$)(t),n=e[2]-e[0],i=e[3]-e[1];if(0===n||0===i)return[e[0]+n/2,e[1]+i/2];const r=Math.max(Math.min(n,i)/100,1),h=new s((t,e)=>e.maxDistanceToPolygon-t.maxDistanceToPolygon),l=Math.min(n,i);let c=l/2,u=0,f=0;for(u=e[0];u<e[2];u+=l)for(f=e[1];f<e[3];f+=l)h.enqueue(new I(u+c,f+c,c,t));t.reset(),t.nextPath();const d=(0,a.IK)(t);if(null===d)return null;let g,y=new I(d[0],d[1],0,t);for(;h.size>0;)g=h.dequeue(),g.distancefromCellCenter>y.distancefromCellCenter&&(y=g),g.maxDistanceToPolygon-y.distancefromCellCenter<=r||(c=g.cellSize/2,h.enqueue(new I(g.x-c,g.y-c,c,t)),h.enqueue(new I(g.x+c,g.y-c,c,t)),h.enqueue(new I(g.x-c,g.y+c,c,t)),h.enqueue(new I(g.x+c,g.y+c,c,t)));return[y.x,y.y]}},97770(t,e,n){n.d(e,{Ey:()=>B,F8:()=>N,J2:()=>S,Yq:()=>v,_m:()=>L,iS:()=>k,wj:()=>z});var s=n(66552),i=n(73444),r=n(98623),o=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},h={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},l={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},u={year:"numeric",month:"long",day:"numeric"},f={year:"numeric",month:"short",day:"numeric"},d={year:"numeric",month:"long",weekday:"long",day:"numeric"},g={hour:"numeric",minute:"numeric"},y={...g,second:"numeric"},p={hourCycle:"h23"},x={...g,...p},_={...y,...p},m={"short-date":c,"short-date-short-time":{...c,...g},"short-date-short-time-24":{...c,...x},"short-date-long-time":{...c,...y},"short-date-long-time-24":{...c,..._},"short-date-le":c,"short-date-le-short-time":{...c,...g},"short-date-le-short-time-24":{...c,...x},"short-date-le-long-time":{...c,...y},"short-date-le-long-time-24":{...c,..._},"long-month-day-year":u,"long-month-day-year-short-time":{...u,...g},"long-month-day-year-short-time-24":{...u,...x},"long-month-day-year-long-time":{...u,...y},"long-month-day-year-long-time-24":{...u,..._},"day-short-month-year":f,"day-short-month-year-short-time":{...f,...g},"day-short-month-year-short-time-24":{...f,...x},"day-short-month-year-long-time":{...f,...y},"day-short-month-year-long-time-24":{...f,..._},"long-date":d,"long-date-short-time":{...d,...g},"long-date-short-time-24":{...d,...x},"long-date-long-time":{...d,...y},"long-date-long-time-24":{...d,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":g,"long-time":y},I=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),P={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},b=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),w=b.find(({type:t})=>"month"===t)?.value.toLowerCase();function T(){const t=(0,i.lR)();return(t&&P[t])??(0,i.QC)()}"mart"!==w&&(P.bs="sr-Latn-CS");let M=new WeakMap;const A=m["short-date-short-time"];function S(t){return m[t]}function L(t){const{dateStyle:e,timeStyle:n,hour12:s,year:i,month:r}=t,o={};return e?o.dateStyle=e:i&&(o.year=i,o.month=r||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===s?void 0:"always"===s),o}function v(t,e=A){return function(t){let e=M.get(t);if(!e){const n=T(),s=z(t.timeZone??"system"),i={...t,timeZone:s};e=new Intl.DateTimeFormat(n,i),M.set(t,e)}return e}(e).format(t)}function k(t,e=A){return v(new Date(t),{...e,...l,...h})}function N(t,e=A){return v(new Date(`1970-01-01T${t}Z`),{...e,...l,...a})}function B(t,e=A){const n=o.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return v(n.toJSDate(),e);const s=0===n.offset?"UTC":e.timeZone,i={...e,timeZone:s};return n.toLocaleString(i,{locale:T()})}function z(t){switch(t){case"system":return r.N;case r.L:return"UTC";default:return t}}(0,i.Ml)(()=>{M=new WeakMap}),n.d(e,["_v",0,I])},73444(t,e,n){n.d(e,{JK:()=>h,Ml:()=>p,QC:()=>u,lR:()=>c,oQ:()=>g});var s=n(36563);let i;n(44208);const r=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const t=o?.getAttribute("lang"),e=globalThis.navigator?.language;return r??t??e??"en"}function h(){return void 0===i&&(i=a()),i}const l=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(t=h()){return f(t)?.language}function u(t=h()){const e=f(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function f(t=h()){return l.exec(t)?.groups}const d=[];function g(t){return d.push(t),(0,s.hA)(()=>{d.splice(d.indexOf(t),1)})}new Map;const y=[];function p(t){return y.push(t),(0,s.hA)(()=>y.splice(y.indexOf(t),1))}function x(){const t=a();i!==t&&([...y].forEach(e=>e(t)),i=t,[...d].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",x),o&&new MutationObserver(()=>{x()}).observe(o,{attributeFilter:["lang"]})},92722(t,e,n){n.d(e,{A:()=>i});var s=n(69397);class i{constructor(t=[],e=[],n=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:s}){return new i(t,e,n||!1,s||!1)}static fromRect([t,e,n,s]){const r=n-t,o=s-e;return new i([5],[t,e,r,0,0,o,-r,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:s}=this;let i=this.coords[s*e],r=this.coords[s*e+1];for(let o=1;o<n;o+=1){const n=s*(e+o),a=this.coords[n],h=this.coords[n+1];t+=-.5*(a-i)*(h+r),i=a,r=h}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const s of this.lengths){for(let i=0;i<s;i++){const s=n*(e+i);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let s=0;const{stride:i}=this;for(const t of n){for(let n=1;n<t;n++){const t=i*(s+n);e[t]+=e[t-i],e[t+1]+=e[t+1-i]}s+=t}return t}clone(t){if(this.isPoint)return new i([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:s}=this,r=this.coords.slice(0,s*n);return t?(t.set(r),new i(e,t,this.hasZ,this.hasM)):new i(e,Array.from(r),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,s=0;e<n.length;e+=t)n[s++]=this.coords[e],n[s++]=this.coords[e+1];return new i(this.lengths,n,!1,!1)}}},98623(t,e,n){const s=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,s])},36984(t,e,n){n.r(e),n.d(e,{default:()=>X});var s=n(17676),i=n(29953),r=n(6774),o=n(13195);function a(t){return 746===t||747===t||!(t<4352)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103&&!(t>=65097&&t<=65103)||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351&&!(t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=12592&&t<=12687||t>=43360&&t<=43391||t>=55216&&t<=55295||t>=4352&&t<=4607||t>=44032&&t<=55215||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12688&&t<=12703||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543&&12540!==t||t>=65280&&t<=65519&&!(65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||t>=65104&&t<=65135&&!(t>=65112&&t<=65118||t>=65123&&t<=65126)||t>=5120&&t<=5759||t>=6320&&t<=6399||t>=65040&&t<=65055||t>=19904&&t<=19967||t>=40960&&t<=42127||t>=42128&&t<=42191)}function h(t){return!(t<11904)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=65280&&t<=65519||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543||t>=65040&&t<=65055||t>=42128&&t<=42191||t>=40960&&t<=42127)}function l(t){switch(t){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1}function c(t){switch(t){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1}var u=n(18989);class f{constructor(t,e,n,s,i,r,o){this._glyphItems=t,this._maxWidth=e,this._lineHeight=n,this._letterSpacing=s,this._hAnchor=i,this._vAnchor=r,this._justify=o}getShaping(t,e,n){const s=this._letterSpacing,i=this._lineHeight,r=this._justify,o=this._maxWidth,u=[];let f=0,d=0;for(const e of t){const t=e.codePointAt(0);if(null==t)continue;const i=n&&a(t);let r;for(const e of this._glyphItems)if(r=e[t],r)break;u.push({codePoint:t,x:f,y:d,vertical:i,glyphItem:r}),r&&(f+=r.shaping.xAdvance+s)}let g=f;o>0&&(g=f/Math.max(1,Math.ceil(f/o)));const y=t.includes(""),p=[],x=u.length;for(let t=0;t<x-1;t++){const e=u[t].codePoint,n=h(e);if(l(e)||n){let s=0;if(10===e)s-=1e4;else if(n&&y)s+=150;else{40!==e&&65288!==e||(s+=50);const n=u[t+1].codePoint;41!==n&&65289!==n||(s+=50)}p.push(this._buildBreak(t+1,u[t].x,g,p,s,!1))}}const _=this._optimalBreaks(this._buildBreak(x,f,g,p,0,!0));let m=0;const I=e?-i:i;let P=0;for(let t=0;t<_.length;t++){const e=_[t];let n=P;for(;n<e&&c(u[n].codePoint);)u[n].glyphItem=null,++n;let s=e-1;for(;s>n&&c(u[s].codePoint);)u[s].glyphItem=null,--s;if(n<=s){const t=u[n].x;for(let e=n;e<=s;e++)u[e].x-=t,u[e].y=d;let e=u[s].x;u[s].glyphItem&&(e+=u[s].glyphItem.shaping.xAdvance),m=Math.max(e,m),r&&this._applyJustification(u,n,s)}P=e,d+=I}if(u.length>0){const t=_.length-1,n=(r-this._hAnchor)*m;let s=(-this._vAnchor*(t+1)+.5)*i;e&&t&&(s+=t*i);for(const t of u)t.x+=n,t.y+=s}return u.filter(t=>t.glyphItem)}static getTextBox(t,e){if(!t.length)return null;let n=1/0,s=1/0,i=0,r=0;for(const o of t){const t=o.glyphItem.shaping.xAdvance,a=o.x,h=o.y-17,l=a+t,c=h+e;n=Math.min(n,a),i=Math.max(i,l),s=Math.min(s,h),r=Math.max(r,c)}return{x:n,y:s,width:i-n,height:r-s}}static getBox(t){if(!t.length)return null;let e=1/0,n=1/0,s=0,i=0;for(const r of t){const{height:t,left:o,top:a,width:h}=r.glyphItem.rect,l=r.x,c=r.y-(t-Math.abs(a)),u=l+h+o,f=c+t;e=Math.min(e,l),s=Math.max(s,u),n=Math.min(n,c),i=Math.max(i,f)}return{x:e,y:n,width:s-e,height:i-n}}static addDecoration(t,e){const n=t.length;if(0===n)return;const s={rect:new u.A(4,0,4,8),sdf:!0,page:0};let i=t[0].x+t[0].glyphItem.rect.left,r=t[0].y;for(let o=1;o<n;o++){const n=t[o];if(n.y!==r){const a=t[o-1].x+t[o-1].glyphItem.rect.left+t[o-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:r+e-3,vertical:!1,glyphItem:{mosaicItem:s,rect:{width:a-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}}),r=n.y,i=n.x+n.glyphItem.rect.left}}const o=t[n-1].x+t[n-1].glyphItem.rect.left+t[n-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:r+e-3,vertical:!1,glyphItem:{mosaicItem:s,rect:{width:o-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}})}_breakScore(t,e,n,s){const i=(t-e)*(t-e);return s?t<e?i/2:2*i:i+Math.abs(n)*n}_buildBreak(t,e,n,s,i,r){let o=null,a=this._breakScore(e,n,i,r);for(const t of s){const s=e-t.x,h=this._breakScore(s,n,i,r)+t.score;h<=a&&(o=t,a=h)}return{index:t,x:e,score:a,previousBreak:o}}_optimalBreaks(t){return t?this._optimalBreaks(t.previousBreak).concat(t.index):[]}_applyJustification(t,e,n){const s=t[n],i=s.vertical?24:s.glyphItem?s.glyphItem.shaping.xAdvance:0,r=(s.x+i)*this._justify;for(let s=e;s<=n;s++)t[s].x-=r}}const d=.5;class g{constructor(t,e,n=0,s=-1,i=d){this.x=t,this.y=e,this.angle=n,this.segment=s,this.minzoom=i}}class y{constructor(t,e,n,s,i,r=d,a=o.MG){this.anchor=t,this.labelAngle=e,this.glyphAngle=n,this.page=s,this.alternateVerticalGlyph=i,this.minzoom=r,this.maxzoom=a}}class p{constructor(t,e,n,s,i,r,o,a,h,l,c,u){this.tl=t,this.tr=e,this.bl=n,this.br=s,this.mosaicRect=i,this.labelAngle=r,this.minAngle=o,this.maxAngle=a,this.anchor=h,this.minzoom=l,this.maxzoom=c,this.page=u}}class x{constructor(t){this.shapes=t}}class _{getIconPlacement(t,e,n){const s=new r.bR(t.x,t.y),i=0===n.rotationAlignment,a=n.keepUpright;let h=n.rotate*o.os;i&&(h+=t.angle);const l=new x([]);return l.iconColliders=[],this._addIconPlacement(l,s,e,n,h),i&&a&&this._addIconPlacement(l,s,e,n,h+o.Jo),l}_addIconPlacement(t,e,n,s,i){const a=n.rasterizationScale,h=n.width/a,l=n.height/a,c=s.offset;let u=c[0],f=c[1];switch(s.anchor){case 0:u-=h/2,f-=l/2;break;case 1:f-=l/2;break;case 2:u-=h,f-=l/2;break;case 3:u-=h/2;break;case 4:u-=h/2,f-=l;break;case 5:break;case 7:f-=l;break;case 6:u-=h;break;case 8:u-=h,f-=l}const g=n.rect,y=2/a,x=u-y,_=f-y,m=x+g.width/a,I=_+g.height/a,P=new r.bR(x,_),b=new r.bR(m,I),w=new r.bR(x,I),T=new r.bR(m,_);if(0!==i){const t=Math.cos(i),e=Math.sin(i);P.rotate(t,e),b.rotate(t,e),w.rotate(t,e),T.rotate(t,e)}const M=new p(P,T,w,b,g,i,0,256,e,d,o.MG,0);t.shapes.push(M);{const n=s.size,r=s.padding,a={xTile:e.x,yTile:e.y,dxPixels:u*n-r,dyPixels:f*n-r,hard:!s.optional,partIndex:0,width:h*n+2*r,height:l*n+2*r,angle:i,minLod:d,maxLod:o.MG};t.iconColliders.push(a)}}getTextPlacement(t,e,n,s){const i=new r.bR(t.x,t.y),{keepUpright:a,rotate:h,rotationAlignment:l,size:c}=s,u=h*o.os,g=0===l,_=a,m=s.padding;let I=d;const P=g?t.angle:0,b=t.segment>=0&&g,w=[],T=[],M=!b;let A=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY,L=A,v=S;const k=(b||g)&&_,N=c/24;let B=!1;for(const t of e)if(t.vertical){B=!0;break}let z,V=0,D=0;if(!b&&B){const t=f.getTextBox(e,24*s.lineHeight);switch(s.anchor){case 1:V=t.height/2,D=-t.width/2;break;case 2:V=-t.height/2,D=t.width/2;break;case 3:V=t.height/2,D=t.width/2;break;case 4:V=-t.height/2,D=-t.width/2;break;case 5:V=t.height;break;case 7:D=-t.width;break;case 6:D=t.width;break;case 8:V=-t.height}}V+=24*s.offset[0],D+=24*s.offset[1];for(const a of e){const e=a.glyphItem?.mosaicItem,h=a.glyphItem?.rect;if(!e||e.rect.isEmpty)continue;const l=e.rect,c=e.page;if(w&&M){if(void 0!==z&&z!==a.y){let e,n,i,r;B?(e=-v+V,n=A+D,i=v-L,r=S-A):(e=A+V,n=L+D,i=S-A,r=v-L);const a={xTile:t.x,yTile:t.y,dxPixels:e*N-m,dyPixels:n*N-m,hard:!s.optional,partIndex:1,width:i*N+2*m,height:r*N+2*m,angle:u,minLod:d,maxLod:o.MG};w.push(a),A=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY,L=A,v=S}z=a.y}const f=[];if(b){const e=.5*h.width,s=(a.x+h.left-3+e)*N*8;if(I=this._placeGlyph(t,I,s,n,t.segment,1,a.vertical,c,f),_&&(I=this._placeGlyph(t,I,s,n,t.segment,-1,a.vertical,c,f)),I>=2)break}else f.push(new y(i,P,P,c,!1)),g&&_&&f.push(new y(i,P+o.Jo,P+o.Jo,c,!1));const x=a.x+h.left,R=a.y-17-h.top,C=x+h.width,F=R+h.height;let U,O,E,G,W,Z,Y,q;if(!b&&B)if(a.vertical){const t=(x+C)/2-h.height/2,e=(R+F)/2+h.width/2;U=new r.bR(-e-3+V,t-3+D),O=new r.bR(U.x+l.width,U.y+l.height),E=new r.bR(U.x,O.y),G=new r.bR(O.x,U.y)}else U=new r.bR(3-R+V,x-3+D),O=new r.bR(U.x-l.height,U.y+l.width),E=new r.bR(O.x,U.y),G=new r.bR(U.x,O.y);else U=new r.bR(x-3+V,R-3+D),O=new r.bR(U.x+l.width,U.y+l.height),E=new r.bR(U.x,O.y),G=new r.bR(O.x,U.y);for(const e of f){let n,i,o,c;if(e.alternateVerticalGlyph){if(!W){const t=(R+F)/2+D;W=new r.bR((x+C)/2+V-h.height/2-3,t+h.width/2+3),Z=new r.bR(W.x+l.height,W.y-l.width),Y=new r.bR(Z.x,W.y),q=new r.bR(W.x,Z.y)}n=W,i=Y,o=q,c=Z}else n=U,i=E,o=G,c=O;const f=R,d=F,g=e.glyphAngle+u;if(0!==g){const t=Math.cos(g),e=Math.sin(g);n=n.clone(),i=i?.clone(),o=o?.clone(),c=c?.clone(),n.rotate(t,e),c?.rotate(t,e),i?.rotate(t,e),o?.rotate(t,e)}let y=0,_=256;if(b&&B?a.vertical?e.alternateVerticalGlyph?(y=32,_=96):(y=224,_=32):(y=224,_=96):(y=192,_=64),T.push(new p(n,o,i,c,l,e.labelAngle,y,_,e.anchor,e.minzoom,e.maxzoom,e.page)),w&&(!k||this._legible(e.labelAngle)))if(M)x<A&&(A=x),f<L&&(L=f),C>S&&(S=C),d>v&&(v=d);else if(e.minzoom<2){const n={xTile:t.x,yTile:t.y,dxPixels:(x+V)*N-m,dyPixels:(f+V)*N-m,hard:!s.optional,partIndex:1,width:(C-x)*N+2*m,height:(d-f)*N+2*m,angle:g,minLod:e.minzoom,maxLod:e.maxzoom};w.push(n)}}}if(I>=2)return null;if(w&&M){let e,n,i,r;B?(e=-v+V,n=A+D,i=v-L,r=S-A):(e=A+V,n=L+D,i=S-A,r=v-L);const a={xTile:t.x,yTile:t.y,dxPixels:e*N-m,dyPixels:n*N-m,hard:!s.optional,partIndex:1,width:i*N+2*m,height:r*N+2*m,angle:u,minLod:d,maxLod:o.MG};w.push(a)}const R=new x(T);return w&&w.length>0&&(R.textColliders=w),R}_legible(t){const e=(0,o.z0)(t);return e<65||e>=193}_placeGlyph(t,e,n,s,i,a,h,l,c){let u=a;const f=u<0?(0,o.Wh)(t.angle+o.Jo,o.pJ):t.angle;let d=0;n<0&&(u*=-1,n*=-1,d=o.Jo),u>0&&++i;let g=new r.bR(t.x,t.y),p=s[i],x=o.MG;if(s.length<=i)return x;for(;;){const t=p.x-g.x,r=p.y-g.y,a=Math.sqrt(t*t+r*r),_=Math.max(n/a,e),m=t/a,I=r/a,P=(0,o.Wh)(Math.atan2(I,m)+d,o.pJ);if(c.push(new y(g,f,P,l,!1,_,x)),h&&c.push(new y(g,f,P,l,!0,_,x)),_<=e)return _;g=p.clone();do{if(i+=u,s.length<=i||i<0)return _;p=s[i]}while(g.isEqual(p));let b=p.x-g.x,w=p.y-g.y;const T=Math.sqrt(b*b+w*w);b*=a/T,w*=a/T,g.x-=b,g.y-=w,x=_}}}var m=n(51624),I=n(15585);class P{constructor(t,e,n=0){this.values={},this._geometry=void 0,this._pbfGeometry=null,this.featureIndex=n;const s=e.keys,i=e.values,r=t.asUnsafe();for(;r.next();)switch(r.tag()){case 1:this.id=r.getUInt64();break;case 2:{const t=r.getMessage().asUnsafe(),e=this.values;for(;!t.empty();){const n=t.getUInt32(),r=t.getUInt32();e[s[n]]=i[r]}t.release();break}case 3:this.type=r.getUInt32();break;case 4:this._pbfGeometry=r.getMessage();break;default:r.skip()}}getGeometry(t){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const e=this._pbfGeometry.asUnsafe();let n,s;this._pbfGeometry=null,t?t.reset(this.type):n=[];let i,o=1,a=0,h=0,l=0;for(;!e.empty();){if(0===a){const t=e.getUInt32();o=7&t,a=t>>3}switch(a--,o){case 1:h+=e.getSInt32(),l+=e.getSInt32(),t?t.moveTo(h,l):n&&(s&&n.push(s),s=[],s.push(new r.bR(h,l)));break;case 2:h+=e.getSInt32(),l+=e.getSInt32(),t?t.lineTo(h,l):s&&s.push(new r.bR(h,l));break;case 7:t?t.close():s&&!s[0].equals(h,l)&&s.push(s[0].clone());break;default:throw e.release(),new Error("Invalid path operation")}}return t?i=t.result():n&&(s&&n.push(s),i=n),e.release(),this._geometry=i,i}}n(44208);class b{constructor(t){this._array=[],this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}}class w extends b{constructor(){super(12)}add(t,e,n){const s=this.array;s.push(t),s.push(e),s.push(n)}}class T{constructor(t){this.extent=4096,this.keys=[],this.values=[],this._pbfLayer=t.clone();const e=t.asUnsafe();for(;e.next();)switch(e.tag()){case 1:this.name=e.getString();break;case 3:this.keys.push(e.getString());break;case 4:this.values.push(e.processMessage(T._parseValue));break;case 5:this.extent=e.getUInt32();break;default:e.skip()}}getData(){return this._pbfLayer}static _parseValue(t){for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getInt64();case 5:return t.getUInt64();case 6:return t.getSInt64();case 7:return t.getBool();default:t.skip()}return null}}var M=n(89518);class A extends b{constructor(t){super(t)}add(t,e,n,s,i,r,o,a,h,l,c,u){const f=this.array;let d=(0,M.M9)(t,e);f.push(d);const g=31;d=(0,M.Ss)(Math.round(g*n),Math.round(g*s),Math.round(g*i),Math.round(g*r)),f.push(d),d=(0,M.Ss)(Math.round(g*o),Math.round(g*a),Math.round(g*h),Math.round(g*l)),f.push(d),d=(0,M.M9)(c,0),f.push(d),u&&f.push(...u)}}class S extends b{constructor(t){super(t)}add(t,e,n){const s=this.array;s.push((0,M.M9)(t,e)),n&&s.push(...n)}}class L extends b{constructor(t){super(t)}add(t,e,n,s,i,r,o){const a=this.array,h=this.index;let l=(0,M.M9)(t,e);return a.push(l),l=(0,M.Ss)(Math.round(15*n),Math.round(15*s),i,r),a.push(l),o&&a.push(...o),h}}class v extends b{constructor(t){super(t)}add(t,e,n,s,i,r,a,h,l,c,u,f){const d=this.array;let g=(0,M.M9)(t,e);d.push(g),g=(0,M.M9)(Math.round(8*n),Math.round(8*s)),d.push(g),g=(0,M.M9)((0,M.ws)(i/4,r/4),(0,M.ws)(h,l)),d.push(g),g=(0,M.M9)((0,M.ws)(0,(0,o.z0)(a)),(0,M.ws)(10*c,Math.min(10*u,255))),d.push(g),f&&d.push(...f)}}class k extends b{constructor(t){super(t)}add(t,e,n,s,i){const r=this.array,o=(0,M.M9)(2*t+n,2*e+s);r.push(o),i&&r.push(...i)}}class N{constructor(t,e,n){this.layerExtent=4096,this._features=[],this.layer=t,this.zoom=e,this._spriteInfo=n,this._filter=t.getFeatureFilter()}pushFeature(t){this._filter&&!this._filter.filter(t,this.zoom)||this._features.push(t)}hasFeatures(){return this._features.length>0}getResources(t,e,n){}}class B extends N{constructor(t,e,n,s,i){super(t,e,n),this.type=4,this._circleVertexBuffer=s,this._circleIndexBuffer=i}get circleIndexStart(){return this._circleIndexStart}get circleIndexCount(){return this._circleIndexCount}processFeatures(t){const e=this._circleVertexBuffer,n=this._circleIndexBuffer;this._circleIndexStart=3*n.index,this._circleIndexCount=0;const s=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);for(const r of this._features){const o=r.getGeometry(t);if(!o)continue;const a=s.circleMaterial.encodeAttributes(r,i,s);for(const t of o)if(t)for(const s of t){const t=e.index;e.add(s.x,s.y,0,0,a),e.add(s.x,s.y,0,1,a),e.add(s.x,s.y,1,0,a),e.add(s.x,s.y,1,1,a),n.add(t,t+1,t+2),n.add(t+1,t+2,t+3),this._circleIndexCount+=6}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this._circleVertexBuffer.array.length,t+=this._circleIndexBuffer.array.length;const e=new Uint32Array(t),n=new Int32Array(e.buffer);let s=0;e[s++]=this.type,e[s++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[s++]=this.layerUIDs[t];e[s++]=this._circleIndexStart,e[s++]=this._circleIndexCount,e[s++]=this._circleVertexBuffer.array.length;for(let t=0;t<this._circleVertexBuffer.array.length;t++)n[s++]=this._circleVertexBuffer.array[t];e[s++]=this._circleIndexBuffer.array.length;for(let t=0;t<this._circleIndexBuffer.array.length;t++)e[s++]=this._circleIndexBuffer.array[t];return e.buffer}}var z=n(98291),V=n(83349);class D extends N{constructor(t,e,n,s,i,r,o){super(t,e,n),this.type=1,this._patternMap=new Map,this._fillVertexBuffer=s,this._fillIndexBuffer=i,this._outlineVertexBuffer=r,this._outlineIndexBuffer=o}get fillIndexStart(){return this._fillIndexStart}get fillIndexCount(){return this._fillIndexCount}get outlineIndexStart(){return this._outlineIndexStart}get outlineIndexCount(){return this._outlineIndexCount}getResources(t,e,n){const s=this.layer,i=this.zoom,r=s.getPaintProperty("fill-pattern");if(r)if(r.isDataDriven)for(const t of this._features)e(r.getValue(i,t),!0);else e(r.getValue(i),!0)}processFeatures(t){this._fillIndexStart=3*this._fillIndexBuffer.index,this._fillIndexCount=0,this._outlineIndexStart=3*this._outlineIndexBuffer.index,this._outlineIndexCount=0;const e=this.layer,n=this.zoom,{fillMaterial:s,outlineMaterial:i,hasDataDrivenFill:r,hasDataDrivenOutline:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("fill-pattern"),h=a?.isDataDriven;let l=!a&&e.getPaintValue("fill-antialias",n);if(e.outlineUsesFillColor){if(l&&!e.hasDataDrivenOpacity){const t=e.getPaintValue("fill-opacity",n),s=e.getPaintValue("fill-opacity",n+1);t<1&&s<1&&(l=!1)}if(l&&!e.hasDataDrivenColor){const t=e.getPaintValue("fill-color",n),s=e.getPaintValue("fill-color",n+1);t[3]<1&&s[3]<1&&(l=!1)}}const c=this._features,u=t?.validateTessellation;if(h){const r=[];for(const h of c){const c=a.getValue(n,h),u=this._spriteInfo[c];if(!u?.rect)continue;const f=s.encodeAttributes(h,n,e,u),d=l&&o?i.encodeAttributes(h,n,e):[],g=h.getGeometry(t);r.push({ddFillAttributes:f,ddOutlineAttributes:d,page:u.page,geometry:g}),r.sort((t,e)=>t.page-e.page)}for(const{ddFillAttributes:t,ddOutlineAttributes:n,page:s,geometry:i}of r)this._processFeature(i,l,e.outlineUsesFillColor,t,n,u,s)}else for(const a of c){const h=r?s.encodeAttributes(a,n,e):null,c=l&&o?i.encodeAttributes(a,n,e):null,f=a.getGeometry(t);this._processFeature(f,l,e.outlineUsesFillColor,h,c,u)}}serialize(){let t=10;t+=this.layerUIDs.length,t+=this._fillVertexBuffer.array.length,t+=this._fillIndexBuffer.array.length,t+=this._outlineVertexBuffer.array.length,t+=this._outlineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),n=new Int32Array(e.buffer);let s=0;e[s++]=this.type,e[s++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[s++]=this.layerUIDs[t];e[s++]=this._fillIndexStart,e[s++]=this._fillIndexCount,e[s++]=this._outlineIndexStart,e[s++]=this._outlineIndexCount;const i=this._patternMap,r=i.size;if(e[s++]=r,r>0)for(const[t,[n,r]]of i)e[s++]=t,e[s++]=n,e[s++]=r;e[s++]=this._fillVertexBuffer.array.length;for(let t=0;t<this._fillVertexBuffer.array.length;t++)n[s++]=this._fillVertexBuffer.array[t];e[s++]=this._fillIndexBuffer.array.length;for(let t=0;t<this._fillIndexBuffer.array.length;t++)e[s++]=this._fillIndexBuffer.array[t];e[s++]=this._outlineVertexBuffer.array.length;for(let t=0;t<this._outlineVertexBuffer.array.length;t++)n[s++]=this._outlineVertexBuffer.array[t];e[s++]=this._outlineIndexBuffer.array.length;for(let t=0;t<this._outlineIndexBuffer.array.length;t++)e[s++]=this._outlineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,n,s,i,r,o){if(!t)return;const a=t.length,h=!i||0===i.length;if(e&&(!n||h))for(let e=0;e<a;e++)this._processOutline(t[e],i);let l;for(let e=0;e<a;e++){const n=D._area(t[e]);n>32?(void 0!==l&&this._processFill(t,l,s,r,o),l=[e]):n<-32&&void 0!==l&&l.push(e)}void 0!==l&&this._processFill(t,l,s,r,o)}_processOutline(t,e){const n=this._outlineVertexBuffer,s=this._outlineIndexBuffer,i=s.index;let o,a,h;const l=new r.bR(0,0),c=new r.bR(0,0),u=new r.bR(0,0);let f=-1,d=-1,g=-1,y=-1,p=-1,x=!1,_=t.length;if(_<2)return;const m=t[0];let I=t[_-1];for(;_&&I.isEqual(m);)--_,I=t[_-1];if(!(_-0<2)){for(let i=0;i<_;++i){0===i?(o=t[_-1],a=t[0],h=t[1],l.assignSub(a,o),l.normalize(),l.rightPerpendicular()):(o=a,a=h,h=i!==_-1?t[i+1]:t[0],l.assign(c));const r=this._isClipEdge(o,a);-1===y&&(x=r),c.assignSub(h,a),c.normalize(),c.rightPerpendicular();const m=l.x*c.y-l.y*c.x;u.assignAdd(l,c),u.normalize();const I=-u.x*-l.x+-u.y*-l.y;let P=Math.abs(0!==I?1/I:1);P>8&&(P=8),m>=0?(g=n.add(a.x,a.y,l.x,l.y,0,1,e),-1===y&&(y=g),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g),d=n.add(a.x,a.y,P*-u.x,P*-u.y,0,-1,e),-1===p&&(p=d),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g),f=d,d=g,g=n.add(a.x,a.y,u.x,u.y,0,1,e),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g),d=n.add(a.x,a.y,c.x,c.y,0,1,e),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g)):(g=n.add(a.x,a.y,P*u.x,P*u.y,0,1,e),-1===y&&(y=g),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g),d=n.add(a.x,a.y,-l.x,-l.y,0,-1,e),-1===p&&(p=d),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g),f=d,d=g,g=n.add(a.x,a.y,-u.x,-u.y,0,-1,e),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g),f=n.add(a.x,a.y,-c.x,-c.y,0,-1,e),f>=0&&d>=0&&g>=0&&!r&&s.add(f,d,g))}f>=0&&d>=0&&y>=0&&!x&&s.add(f,d,y),f>=0&&y>=0&&p>=0&&!x&&s.add(f,p,y),this._outlineIndexCount+=3*(s.index-i)}}_processFill(t,e,n,s,i){let r;e.length>1&&(r=[]);let o=0;for(const n of e)0!==o&&r.push(o),o+=t[n].length;const a=2*o,h=z.A.acquire();for(const n of e){const e=t[n],s=e.length;for(let t=0;t<s;++t)h.push(e[t].x,e[t].y)}const l=(0,V.e)(h,r,2);if(V.e.deviation(h,r,2,l)>0){const s=e.map(e=>t[e].length),{buffer:r,vertexCount:o}=(0,I.QT)(h,s);if(o>0){const t=this._fillVertexBuffer.index;for(let t=0;t<o;t++)this._fillVertexBuffer.add(r[2*t],r[2*t+1],n);for(let e=0;e<o;e+=3){const n=t+e;this._fillIndexBuffer.add(n,n+1,n+2)}if(void 0!==i){const t=this._patternMap,e=t.get(i);e?e[1]+=o:t.set(i,[this._fillIndexStart+this._fillIndexCount,o])}this._fillIndexCount+=o}}else{const t=l.length;if(t>0){const e=this._fillVertexBuffer.index;let s=0;for(;s<a;)this._fillVertexBuffer.add(h[s++],h[s++],n);let r=0;for(;r<t;)this._fillIndexBuffer.add(e+l[r++],e+l[r++],e+l[r++]);if(void 0!==i){const e=this._patternMap,n=e.get(i);n?n[1]+=t:e.set(i,[this._fillIndexStart+this._fillIndexCount,t])}this._fillIndexCount+=t}}z.A.release(h)}_isClipEdge(t,e){return t.x===e.x?t.x<=-64||t.x>=4160:t.y===e.y&&(t.y<=-64||t.y>=4160)}static _area(t){let e=0;const n=t.length-1;for(let s=0;s<n;s++)e+=(t[s].x-t[s+1].x)*(t[s].y+t[s+1].y);return e+=(t[n].x-t[0].x)*(t[n].y+t[0].y),.5*e}}var R=n(83773);class C extends N{constructor(t,e,n,s,i){super(t,e,n),this.type=2,this._tessellationOptions={pixelCoordRatio:8,halfWidth:0,offset:0},this._patternMap=new Map,this.tessellationProperties={_lineVertexBuffer:null,_lineIndexBuffer:null,_ddValues:null},this.tessellationProperties._lineVertexBuffer=s,this.tessellationProperties._lineIndexBuffer=i,this._lineTessellator=new R.i(F(this.tessellationProperties),U(this.tessellationProperties),t.canUseThinTessellation)}get lineIndexStart(){return this._lineIndexStart}get lineIndexCount(){return this._lineIndexCount}getResources(t,e,n){const s=this.layer,i=this.zoom,r=s.getPaintProperty("line-pattern"),o=s.getPaintProperty("line-dasharray"),a=s.getLayoutProperty("line-cap");if(!r&&!o)return;const h=a?.getValue(i)||0,l=a?.isDataDriven,c=r?.isDataDriven,u=o?.isDataDriven;if(c||u)for(const t of this._features)e(c?r.getValue(i,t):this._getDashArrayKey(t,i,s,o,l,a,h));else if(r)e(r.getValue(i));else if(o){const t=o.getValue(i);e(s.getDashKey(t,h))}}processFeatures(t){this._lineIndexStart=3*this.tessellationProperties._lineIndexBuffer.index,this._lineIndexCount=0;const e=this.layer,n=this.zoom,s=this._features,i=this._tessellationOptions,{hasDataDrivenLine:r,lineMaterial:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("line-pattern"),h=e.getPaintProperty("line-dasharray"),l=a?.isDataDriven,c=h?.isDataDriven;let u;u=e.getLayoutProperty("line-cap");const f=u?.isDataDriven?u:null,d=f?null:e.getLayoutValue("line-cap",n),g=d||0,y=!!f;u=e.getLayoutProperty("line-join");const p=u?.isDataDriven?u:null,x=p?null:e.getLayoutValue("line-join",n);u=e.getLayoutProperty("line-miter-limit");const _=u?.isDataDriven?u:null,m=_?null:e.getLayoutValue("line-miter-limit",n);u=e.getLayoutProperty("line-round-limit");const I=u?.isDataDriven?u:null,P=I?null:e.getLayoutValue("line-round-limit",n);u=e.getPaintProperty("line-width");const b=u?.isDataDriven?u:null,w=b?null:e.getPaintValue("line-width",n);u=e.getPaintProperty("line-offset");const T=u?.isDataDriven?u:null,M=T?null:e.getPaintValue("line-offset",n);if(l||c){const r=[];for(const i of s){const s=l?a.getValue(n,i):this._getDashArrayKey(i,n,e,h,y,f,g),c=this._spriteInfo[s];if(!c?.rect)continue;const u=o.encodeAttributes(i,n,e,c),A=i.getGeometry(t);r.push({ddAttributes:u,page:c.page,cap:f?f.getValue(n,i):d,join:p?p.getValue(n,i):x,miterLimit:_?_.getValue(n,i):m,roundLimit:I?I.getValue(n,i):P,halfWidth:.5*(b?b.getValue(n,i):w),offset:T?T.getValue(n,i):M,geometry:A})}r.sort((t,e)=>t.page-e.page),i.textured=!0;for(const{ddAttributes:t,page:e,cap:n,join:s,miterLimit:o,roundLimit:a,halfWidth:h,offset:l,geometry:c}of r)i.capType=n,i.joinType=s,i.miterLimit=o,i.roundLimit=a,i.halfWidth=h,i.offset=l,this._processFeature(c,t,e)}else{if(a){const t=a.getValue(n),e=this._spriteInfo[t];if(!e?.rect)return}i.textured=!(!a&&!h),i.capType=d,i.joinType=x,i.miterLimit=m,i.roundLimit=P,i.halfWidth=.5*w,i.offset=M;for(const a of s){const s=r?o.encodeAttributes(a,n,e):null;f&&(i.capType=f.getValue(n,a)),p&&(i.joinType=p.getValue(n,a)),_&&(i.miterLimit=_.getValue(n,a)),I&&(i.roundLimit=I.getValue(n,a)),b&&(i.halfWidth=.5*b.getValue(n,a)),T&&(i.offset=T.getValue(n,a));const h=a.getGeometry(t);this._processFeature(h,s)}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this.tessellationProperties._lineVertexBuffer.array.length,t+=this.tessellationProperties._lineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),n=new Int32Array(e.buffer);let s=0;e[s++]=this.type,e[s++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[s++]=this.layerUIDs[t];e[s++]=this._lineIndexStart,e[s++]=this._lineIndexCount;const i=this._patternMap,r=i.size;if(e[s++]=r,r>0)for(const[t,[n,r]]of i)e[s++]=t,e[s++]=n,e[s++]=r;e[s++]=this.tessellationProperties._lineVertexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineVertexBuffer.array.length;t++)n[s++]=this.tessellationProperties._lineVertexBuffer.array[t];e[s++]=this.tessellationProperties._lineIndexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineIndexBuffer.array.length;t++)e[s++]=this.tessellationProperties._lineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,n){if(!t)return;const s=t.length;for(let i=0;i<s;i++)this._processGeometry(t[i],e,n)}_processGeometry(t,e,n){if(t.length<2)return;let s,i,r=t[0],o=1;for(;o<t.length;)s=t[o].x-r.x,i=t[o].y-r.y,s*s+i*i<1e-6?t.splice(o,1):(r=t[o],++o);if(t.length<2)return;const a=this.tessellationProperties._lineIndexBuffer,h=3*a.index;this._tessellationOptions.initialDistance=0,this._tessellationOptions.wrapDistance=65535,this.tessellationProperties._ddValues=e,this._lineTessellator.tessellate(t,this._tessellationOptions);const l=3*a.index-h;if(void 0!==n){const t=this._patternMap,e=t.get(n);e?e[1]+=l:t.set(n,[h+this._lineIndexCount,l])}this._lineIndexCount+=l}_getDashArrayKey(t,e,n,s,i,r,o){const a=i?r.getValue(e,t):o,h=s.getValue(e,t);return n.getDashKey(h,a)}}const F=t=>(e,n,s,i,r,o,a,h,l,c,u)=>(t._lineVertexBuffer.add(e,n,a,h,s,i,r,o,l,c,u,t._ddValues),t._lineVertexBuffer.index-1),U=t=>(e,n,s)=>{t._lineIndexBuffer.add(e,n,s)};var O=n(32488),E=n(97768),G=n(799),W=n(36745),Z=n(78957),Y=n(92722);function q(t){let e=0;for(let n=0,s=t.length-1;n<t.length;s=n++)e+=(t[s].x-t[n].x)*(t[n].y+t[s].y);return.5*e}var j=n(4264);function K(t,e){return t.iconMosaicItem&&e.iconMosaicItem?t.iconMosaicItem.page===e.iconMosaicItem.page?0:t.iconMosaicItem.page-e.iconMosaicItem.page:t.iconMosaicItem&&!e.iconMosaicItem?1:!t.iconMosaicItem&&e.iconMosaicItem?-1:0}class J extends N{constructor(t,e,n,s,i,r,o,a,h){super(e,n,h.getSpriteItems()),this.type=3,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._sourceTileKey=t,this._iconVertexBuffer=s,this._iconIndexBuffer=i,this._textVertexBuffer=r,this._textIndexBuffer=o,this._placementEngine=a,this._workerTileHandler=h}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}static{this._bidiEngine=new O.A}getResources(t,e,n){const s=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);const r=s.getLayoutProperty("icon-image"),o=s.getLayoutProperty("text-field");let a=s.getLayoutProperty("text-transform"),h=s.getLayoutProperty("text-font");const l=[];let c,u,f,d;r&&!r.isDataDriven&&(c=r.getValue(i)),o&&!o.isDataDriven&&(u=o.getValue(i)),a&&a.isDataDriven||(f=s.getLayoutValue("text-transform",i),a=null),h&&h.isDataDriven||(d=s.getLayoutValue("text-font",i),h=null);for(const g of this._features){const y=g.getGeometry(t);if(!y||0===y.length)continue;let p,x;r&&(p=r.isDataDriven?r.getValue(i,g):this._replaceKeys(c,g.values),p&&e(p));let _=!1;if(o&&(x=o.isDataDriven?o.getValue(i,g):this._replaceKeys(u,g.values),x)){switch(x=x.replaceAll("\\n","\n"),a&&(f=a.getValue(i,g)),f){case 2:x=x.toLowerCase();break;case 1:x=x.toUpperCase()}if(J._bidiEngine.hasBidiChar(x)){let t;t="rtl"===J._bidiEngine.checkContextual(x)?"IDNNN":"ICNNN",x=J._bidiEngine.bidiTransform(x,t,"VLYSN"),_=!0}if(x.length>0){h&&(d=h.getValue(i,g));for(const t of d){let e=n[t];e||(e=n[t]=new Set);for(const t of x){const n=t.codePointAt(0);null!=n&&e.add(n)}}}}if(!p&&!x)continue;const m=s.getLayoutValue("symbol-sort-key",i,g),I={feature:g,sprite:p,label:x,rtl:_,geometry:y,hash:(x?(0,G.Wm)(x):0)^(p?(0,G.Wm)(p):0),priority:m,textFont:d};l.push(I)}this._symbolFeatures=l}processFeatures(t){t&&t.setExtent(this.layerExtent);const e=this.layer,n=this.zoom,s=e.getLayoutValue("symbol-placement",n),i=0!==s,r=8*e.getLayoutValue("symbol-spacing",n),a=e.getLayoutProperty("icon-image"),h=e.getLayoutProperty("text-field"),l=a?new j.aR(e,n,i):null,c=h?new j.uU(e,n,i):null,u=this._workerTileHandler;let d;a&&(d=u.getSpriteItems()),this._iconIndexStart=3*this._iconIndexBuffer.index,this._textIndexStart=3*this._textIndexBuffer.index,this._iconIndexCount=0,this._textIndexCount=0,this._markerMap.clear(),this._glyphMap.clear();const y=[];let p=1;c?.size&&(p=c.size/24);const x=c?c.maxAngle*o.os:0,_=c?8*c.size:0;for(const t of this._symbolFeatures){let o,a;l&&d&&t.sprite&&(o=d[t.sprite],o&&o.sdf&&(this._isIconSDF=!0)),o&&l.update(n,t.feature);let h=0;const m=t.label;if(m){(0,E.Lw)(c),c.update(n,t.feature);const e=i&&0===c.rotationAlignment?c.keepUpright:c.writingMode&&c.writingMode.includes(1);let s=.5;switch(c.anchor){case 5:case 1:case 7:s=0;break;case 6:case 2:case 8:s=1}let r=.5;switch(c.anchor){case 5:case 3:case 6:r=0;break;case 7:case 4:case 8:r=1}let o=.5;switch(c.justify){case 0:o=s;break;case 1:o=0;break;case 3:o=1}const l=24*c.letterSpacing,d=i?0:24*c.maxWidth,g=24*c.lineHeight,y=t.textFont.map(t=>u.getGlyphItems(t));if(a=new f(y,d,g,l,s,r,o).getShaping(m,t.rtl,e),a&&a.length>0){let t=1e30,e=-1e30;for(const n of a)t=Math.min(t,n.x),e=Math.max(e,n.x);h=(e-t+48)*p*8}}const I=J._getPlacementCandidates(e,s,t.feature,t.geometry);for(const e of I){let{vertices:n}=e;const u=[];if(1===s){if(a?.length&&c?.size){const t=8*c.size*(2+Math.min(2,4*Math.abs(c.offset[1])));n=J._smoothVertices(n,t)}J._pushAnchors(u,n,r,h)}else 2===s?J._pushCenterAnchor(u,n):3===t.feature.type?e.anchor?u.push(e.anchor):J._pushCentroid(u,n):u.push(new g(n[0].x,n[0].y));for(const e of u){if(e.x<0||e.x>4096||e.y<0||e.y>4096)continue;if(i&&h>0&&0===c?.rotationAlignment&&!J._honorsTextMaxAngle(n,e,h,x,_))continue;const s={shaping:a,line:n,iconMosaicItem:o,anchor:e,symbolFeature:t,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};y.push(s),this._processFeature(s,l,c)}}}y.sort(K),this._addPlacedGlyphs(),this._symbolInstances=y}serialize(){let t=14;t+=this.layerUIDs.length,t+=3*this.markerPageMap.size,t+=3*this.glyphsPageMap.size,t+=J._symbolsSerializationLength(this._symbolInstances),t+=this._iconVertexBuffer.array.length,t+=this._iconIndexBuffer.array.length,t+=this._textVertexBuffer.array.length,t+=this._textIndexBuffer.array.length;const e=new Uint32Array(t),n=new Int32Array(e.buffer),s=new Float32Array(e.buffer),[i,r,o]=this._sourceTileKey.split("/");let a=0;e[a++]=this.type,e[a++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[a++]=this.layerUIDs[t];e[a++]=this._isIconSDF?1:0,e[a++]=parseFloat(i),e[a++]=parseFloat(r),e[a++]=parseFloat(o),e[a++]=this.markerPageMap.size;for(const[t,[n,s]]of this.markerPageMap)e[a++]=t,e[a++]=n,e[a++]=s;e[a++]=this.glyphsPageMap.size;for(const[t,[n,s]]of this.glyphsPageMap)e[a++]=t,e[a++]=n,e[a++]=s;e[a++]=this._iconVertexBuffer.index/4,e[a++]=this._textVertexBuffer.index/4,a=J.serializeSymbols(e,n,s,a,this._symbolInstances),e[a++]=this._iconVertexBuffer.array.length;for(let t=0;t<this._iconVertexBuffer.array.length;t++)n[a++]=this._iconVertexBuffer.array[t];e[a++]=this._iconIndexBuffer.array.length;for(let t=0;t<this._iconIndexBuffer.array.length;t++)e[a++]=this._iconIndexBuffer.array[t];e[a++]=this._textVertexBuffer.array.length;for(let t=0;t<this._textVertexBuffer.array.length;t++)n[a++]=this._textVertexBuffer.array[t];e[a++]=this._textIndexBuffer.array.length;for(let t=0;t<this._textIndexBuffer.array.length;t++)e[a++]=this._textIndexBuffer.array[t];return e.buffer}static _symbolsSerializationLength(t){let e=0;e+=1;for(const n of t||[]){e+=5,e+=1;for(const t of n.textColliders)e+=10;for(const t of n.iconColliders)e+=10;e+=1,e+=2*n.textVertexRanges.length,e+=1,e+=2*n.iconVertexRanges.length}return e}static serializeSymbols(t,e,n,s,i){i=i||[],e[s++]=i.length;for(const t of i){e[s++]=t.anchor.x,e[s++]=t.anchor.y,e[s++]=t.symbolFeature.hash,e[s++]=t.symbolFeature.priority,e[s++]=t.symbolFeature.feature.featureIndex,e[s++]=t.textColliders.length+t.iconColliders.length;for(const i of t.textColliders)e[s++]=i.xTile,e[s++]=i.yTile,e[s++]=i.dxPixels,e[s++]=i.dyPixels,e[s++]=i.hard?1:0,e[s++]=i.partIndex,n[s++]=i.minLod,n[s++]=i.maxLod,e[s++]=i.width,e[s++]=i.height;for(const i of t.iconColliders)e[s++]=i.xTile,e[s++]=i.yTile,e[s++]=i.dxPixels,e[s++]=i.dyPixels,e[s++]=i.hard?1:0,e[s++]=i.partIndex,n[s++]=i.minLod,n[s++]=i.maxLod,e[s++]=i.width,e[s++]=i.height;e[s++]=t.textVertexRanges.length;for(const[n,i]of t.textVertexRanges)e[s++]=n,e[s++]=i;e[s++]=t.iconVertexRanges.length;for(const[n,i]of t.iconVertexRanges)e[s++]=n,e[s++]=i}return s}_replaceKeys(t,e){return t.replaceAll(/{([^{}]+)}/g,(t,n)=>n in e?e[n]:"")}_processFeature(t,e,n){const{line:s,iconMosaicItem:i,shaping:r,anchor:a}=t,h=this.zoom,l=this.layer,c=!!i;let u=!0;c&&(u=e?.optional||!i);const f=r&&r.length>0,d=!f||n?.optional;let g,y;if(c&&(g=this._placementEngine.getIconPlacement(a,i,e)),(g||u)&&(f&&(y=this._placementEngine.getTextPlacement(a,r,s,n)),y||d)){if(g&&y||(d||u?d||y?u||g||(y=null):g=null:(g=null,y=null)),y){const e=l.hasDataDrivenText?l.textMaterial.encodeAttributes(t.symbolFeature.feature,h,l):null;if(this._storePlacedGlyphs(t,y.shapes,h,n.rotationAlignment,e),y.textColliders){t.textColliders=y.textColliders;for(const t of y.textColliders){t.minLod=Math.max(h+(0,o.p6)(t.minLod),0),t.maxLod=Math.min(h+(0,o.p6)(t.maxLod),25);const e=t.angle;if(e){const n=Math.cos(e),s=Math.sin(e),i=t.dxPixels*n-t.dyPixels*s,r=t.dxPixels*s+t.dyPixels*n,o=(t.dxPixels+t.width)*n-t.dyPixels*s,a=(t.dxPixels+t.width)*s+t.dyPixels*n,h=t.dxPixels*n-(t.dyPixels+t.height)*s,l=t.dxPixels*s+(t.dyPixels+t.height)*n,c=(t.dxPixels+t.width)*n-(t.dyPixels+t.height)*s,u=(t.dxPixels+t.width)*s+(t.dyPixels+t.height)*n,f=Math.min(i,o,h,c),d=Math.max(i,o,h,c),g=Math.min(r,a,l,u),y=Math.max(r,a,l,u);t.dxPixels=f,t.dyPixels=g,t.width=d-f,t.height=y-g}}}}if(g){const n=l.hasDataDrivenIcon?l.iconMaterial.encodeAttributes(t.symbolFeature.feature,h,l):null;if(this._addPlacedIcons(t,g.shapes,h,i.page,1===e.rotationAlignment,n),g.iconColliders){t.iconColliders=g.iconColliders;for(const t of g.iconColliders){t.minLod=Math.max(h+(0,o.p6)(t.minLod),0),t.maxLod=Math.min(h+(0,o.p6)(t.maxLod),25);const e=t.angle;if(e){const n=Math.cos(e),s=Math.sin(e),i=t.dxPixels*n-t.dyPixels*s,r=t.dxPixels*s+t.dyPixels*n,o=(t.dxPixels+t.width)*n-t.dyPixels*s,a=(t.dxPixels+t.width)*s+t.dyPixels*n,h=t.dxPixels*n-(t.dyPixels+t.height)*s,l=t.dxPixels*s+(t.dyPixels+t.height)*n,c=(t.dxPixels+t.width)*n-(t.dyPixels+t.height)*s,u=(t.dxPixels+t.width)*s+(t.dyPixels+t.height)*n,f=Math.min(i,o,h,c),d=Math.max(i,o,h,c),g=Math.min(r,a,l,u),y=Math.max(r,a,l,u);t.dxPixels=f,t.dyPixels=g,t.width=d-f,t.height=y-g}}}}}}_addPlacedIcons(t,e,n,s,i,r){const a=Math.max(n-1,0),h=this._iconVertexBuffer,l=this._iconIndexBuffer,c=this._markerMap;for(const u of e){const e=i?0:Math.max(n+(0,o.p6)(u.minzoom),a),f=i?25:Math.min(n+(0,o.p6)(u.maxzoom),25);if(f<=e)continue;const d=u.tl,g=u.tr,y=u.bl,p=u.br,x=u.mosaicRect,_=u.labelAngle,m=u.minAngle,I=u.maxAngle,P=u.anchor,b=h.index,w=x.x,T=x.y,M=w+x.width,A=T+x.height,S=h.index;h.add(P.x,P.y,d.x,d.y,w,T,_,m,I,e,f,r),h.add(P.x,P.y,g.x,g.y,M,T,_,m,I,e,f,r),h.add(P.x,P.y,y.x,y.y,w,A,_,m,I,e,f,r),h.add(P.x,P.y,p.x,p.y,M,A,_,m,I,e,f,r),t.iconVertexRanges.length>0&&t.iconVertexRanges[0][0]+t.iconVertexRanges[0][1]===S?t.iconVertexRanges[0][1]+=4:t.iconVertexRanges.push([S,4]),l.add(b,b+1,b+2),l.add(b+1,b+2,b+3),c.has(s)?c.get(s)[1]+=6:c.set(s,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){const t=this._textVertexBuffer,e=this._textIndexBuffer,n=this._glyphMap;for(const[s,i]of this._glyphBufferDataStorage)for(const r of i){const i=t.index,o=r.symbolInstance,a=r.ddAttributes,h=t.index;t.add(r.glyphAnchor[0],r.glyphAnchor[1],r.tl[0],r.tl[1],r.xmin,r.ymin,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,a),t.add(r.glyphAnchor[0],r.glyphAnchor[1],r.tr[0],r.tr[1],r.xmax,r.ymin,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,a),t.add(r.glyphAnchor[0],r.glyphAnchor[1],r.bl[0],r.bl[1],r.xmin,r.ymax,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,a),t.add(r.glyphAnchor[0],r.glyphAnchor[1],r.br[0],r.br[1],r.xmax,r.ymax,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,a),o.textVertexRanges.length>0&&o.textVertexRanges[0][0]+o.textVertexRanges[0][1]===h?o.textVertexRanges[0][1]+=4:o.textVertexRanges.push([h,4]),e.add(i,i+1,i+2),e.add(i+1,i+2,i+3),n.has(s)?n.get(s)[1]+=6:n.set(s,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(t,e,n,s,i){const r=Math.max(n-1,0),a=1===s;let h,l,c,u,f,d,g,y,p,x,_;for(const s of e)h=a?0:Math.max(n+(0,o.p6)(s.minzoom),r),l=a?25:Math.min(n+(0,o.p6)(s.maxzoom),25),l<=h||(c=s.tl,u=s.tr,f=s.bl,d=s.br,g=s.labelAngle,y=s.minAngle,p=s.maxAngle,x=s.anchor,_=s.mosaicRect,this._glyphBufferDataStorage.has(s.page)||this._glyphBufferDataStorage.set(s.page,[]),this._glyphBufferDataStorage.get(s.page).push({glyphAnchor:[x.x,x.y],tl:[c.x,c.y],tr:[u.x,u.y],bl:[f.x,f.y],br:[d.x,d.y],xmin:_.x,ymin:_.y,xmax:_.x+_.width,ymax:_.y+_.height,labelAngle:g,minAngle:y,maxAngle:p,minLod:h,maxLod:l,placementLod:r,symbolInstance:t,ddAttributes:i}))}static _pushAnchors(t,e,n,s){n+=s;let i=0;const a=e.length-1;for(let t=0;t<a;t++)i+=r.bR.distance(e[t],e[t+1]);let h=s||n;if(h*=.5,i<=h)return;const l=h/i;let c=0,u=-(n=i/Math.max(Math.round(i/n),1))/2;const f=e.length-1;for(let s=0;s<f;s++){const i=e[s],r=e[s+1],a=r.x-i.x,h=r.y-i.y,f=Math.sqrt(a*a+h*h);let d;for(;u+n<c+f;){u+=n;const e=(u-c)/f,y=(0,o.GW)(i.x,r.x,e),p=(0,o.GW)(i.y,r.y,e);void 0===d&&(d=Math.atan2(h,a)),t.push(new g(y,p,d,s,l))}c+=f}}static _pushCenterAnchor(t,e){let n=0;const s=e.length-1;for(let t=0;t<s;t++)n+=r.bR.distance(e[t],e[t+1]);const i=n/2;let a=0;const h=e.length-1;for(let n=0;n<h;n++){const s=e[n],r=e[n+1],h=r.x-s.x,l=r.y-s.y,c=Math.sqrt(h*h+l*l);if(i<a+c){const e=(i-a)/c,u=(0,o.GW)(s.x,r.x,e),f=(0,o.GW)(s.y,r.y,e),d=Math.atan2(l,h);return void t.push(new g(u,f,d,n,0))}a+=c}}static _deviation(t,e,n){const s=(e.x-t.x)*(n.x-e.x)+(e.y-t.y)*(n.y-e.y),i=(e.x-t.x)*(n.y-e.y)-(e.y-t.y)*(n.x-e.x);return Math.atan2(i,s)}static _honorsTextMaxAngle(t,e,n,s,i){let o=0;const a=n/2;let h=new r.bR(e.x,e.y),l=e.segment+1;for(;o>-a;){if(--l,l<0)return!1;o-=r.bR.distance(t[l],h),h=t[l]}o+=r.bR.distance(t[l],t[l+1]);const c=[];let u=0;const f=t.length;for(;o<a;){const e=t[l];let n,a=l;do{if(++a,a===f)return!1;n=t[a]}while(n.isEqual(e));let h,d=a;do{if(++d,d===f)return!1;h=t[d]}while(h.isEqual(n));const g=this._deviation(e,n,h);for(c.push({deviation:g,distToAnchor:o}),u+=g;o-c[0].distToAnchor>i;)u-=c.shift().deviation;if(Math.abs(u)>s)return!1;o+=r.bR.distance(n,h),l=a}return!0}static _smoothVertices(t,e){if(e<=0)return t;let n=t.length;if(n<3)return t;const s=[];let i=0,o=0;s.push(0);for(let e=1;e<n;e++){const n=r.bR.distance(t[e],t[e-1]);n>0&&(i+=n,s.push(i),o++,o!==e&&(t[o]=t[e]))}if(n=o+1,n<3)return t;e=Math.min(e,.2*i);const a=t[0].x,h=t[0].y,l=t[n-1].x,c=t[n-1].y,u=r.bR.sub(t[0],t[1]);u.normalize(),t[0].x+=e*u.x,t[0].y+=e*u.y,u.assignSub(t[n-1],t[n-2]),u.normalize(),t[n-1].x+=e*u.x,t[n-1].y+=e*u.y,s[0]-=e,s[n-1]+=e;const f=[];f.push(new r.bR(a,h));const d=1e-6,g=.5*e;for(let i=1;i<n-1;i++){let o=0,a=0,h=0;for(let n=i-1;n>=0;n--){const r=g+s[n+1]-s[i];if(r<0)break;const l=s[n+1]-s[n],c=s[i]-s[n]<g?1:r/l;if(c<d)break;const u=c*c,f=c*r-.5*u*l,y=c*l/e,p=t[n+1],x=t[n].x-p.x,_=t[n].y-p.y;o+=y/f*(p.x*c*r+.5*u*(r*x-l*p.x)-u*c*l*x/3),a+=y/f*(p.y*c*r+.5*u*(r*_-l*p.y)-u*c*l*_/3),h+=y}for(let r=i+1;r<n;r++){const n=g-s[r-1]+s[i];if(n<0)break;const l=s[r]-s[r-1],c=s[r]-s[i]<g?1:n/l;if(c<d)break;const u=c*c,f=c*n-.5*u*l,y=c*l/e,p=t[r-1],x=t[r].x-p.x,_=t[r].y-p.y;o+=y/f*(p.x*c*n+.5*u*(n*x-l*p.x)-u*c*l*x/3),a+=y/f*(p.y*c*n+.5*u*(n*_-l*p.y)-u*c*l*_/3),h+=y}f.push(new r.bR(o/h,a/h))}return f.push(new r.bR(l,c)),t[0].x=a,t[0].y=h,t[n-1].x=l,t[n-1].y=c,f}static _getPlacementCandidates(t,e,n,s){if(0!==e||3!==n.type||"geojson"!==t.sourceType)return s.map(t=>({anchor:null,vertices:t}));const i=function(t){let e=null,n=0,s=[],i=0;for(const r of t){const t=q(r);t>0?(i>n&&(n=i,e=s),s=[r],i=t):t<0&&s.length>0&&(s.push(r),i+=t)}if(i>n&&(e=s),!e)return null;const r=e.map(t=>t.length),o=[];for(const t of e)for(const e of t)o.push(e.x,e.y);const a=W.z.fromOptimized(new Y.A(r,o),"esriGeometryPolygon"),h=(0,Z.R)(a);return h?{x:h[0],y:h[1],vertices:e[0]}:null}(s);return i?[{anchor:new g(i.x,i.y),vertices:i.vertices}]:[]}static _pushCentroid(t,e){const n=4096,s=4096,i=e.length-1;let r=0,o=0,a=0,h=e[0].x,l=e[0].y;h>n&&(h=n),h<0&&(h=0),l>s&&(l=s),l<0&&(l=0);for(let t=1;t<i;t++){let i=e[t].x,c=e[t].y,u=e[t+1].x,f=e[t+1].y;i>n&&(i=n),i<0&&(i=0),c>s&&(c=s),c<0&&(c=0),u>n&&(u=n),u<0&&(u=0),f>s&&(f=s),f<0&&(f=0);const d=(i-h)*(f-l)-(u-h)*(c-l);r+=d*(h+i+u),o+=d*(l+c+f),a+=d}r/=3*a,o/=3*a,isNaN(r)||isNaN(o)||t.push(new g(r,o))}}class H{constructor(t,e,n,s,i,a,h){if(this._pbfTiles={},this._tileClippers={},this._client=n,this._tile=e,this._sourceDataMaxLOD=s,this._baseUrl=h,a){this._styleLayerUIDs=new Set;for(const t of a)this._styleLayerUIDs.add(t)}this._styleRepository=i,this._layers=this._styleRepository?.layers??[];const[l,c,u]=e.tileKey.split("/").map(parseFloat);this._level=l;const f=(0,o.IU)(this._level);for(const e of Object.keys(t)){const n=t[e];if(this._pbfTiles[e]=new m.A(new Uint8Array(n.protobuff),new DataView(n.protobuff)),n.refKey){const[t]=n.refKey.split("/").map(parseFloat),s=l-t;if(s>0){const t=(1<<s)-1,n=c&t,i=u&t;this._tileClippers[e]=new r.O3(s,n,i,8,f)}}this._tileClippers[e]||(this._tileClippers[e]=new r.Ox)}}_canParseStyleLayer(t){return!this._styleLayerUIDs||this._styleLayerUIDs.has(t)}async parse(t){const e=(0,I.If)(),n=this._initialize(t),{returnedBuckets:s}=n;this._processLayers(n),this._linkReferences(n),this._filterFeatures(n);const i=[],r=new Set,o=(t,e)=>{r.has(t)||(i.push({name:t,repeat:e}),r.add(t))},a={};for(const t of s)t.getResources(t.tileClipper,o,a);if(4===this._tile.status)return[];const h=this._fetchResources(i,a,t);return Promise.all([...h,e]).then(()=>this._processFeatures(n.returnedBuckets))}_initialize(t){const e=t?.signal;return{signal:e,sourceNameToTileData:this._parseTileData(this._pbfTiles),layers:this._layers,zoom:this._level,sourceNameToTileClipper:this._tileClippers,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:new Map}}_processLayers(t){const{sourceNameToTileData:e,zoom:n,layers:s,sourceNameToTileClipper:i,sourceNameToUniqueSourceLayerBuckets:r,sourceNameToUniqueSourceLayers:o,returnedBuckets:a,layerIdToBucket:h,referencerUIDToReferencedId:l}=t,c=this._sourceDataMaxLOD;for(let t=s.length-1;t>=0;t--){const u=s[t];if(n<c){if(u.minzoom&&n<Math.floor(u.minzoom)||u.maxzoom&&n>=u.maxzoom)continue}else if(u.maxzoom&&n>=u.maxzoom)continue;if(0===u.type||!this._canParseStyleLayer(u.uid)||!e[u.source]||!i[u.source])continue;const f=e[u.source],d=i[u.source],g=u.sourceLayer,y=f[g];if(y){let t=o[u.source];if(t||(t=o[u.source]=new Set),t.add(u.sourceLayer),u.refLayerId)l.set(u.uid,u.refLayerId);else{const t=this._createBucket(u);if(t){t.layerUIDs=[u.uid],t.layerExtent=y.extent,t.tileClipper=d;let e=r[u.source];e||(e=r[u.source]={});let n=e[g];n||(n=e[g]=[]),n.push(t),a.push(t),h[u.id]=t}}}}}_linkReferences(t){const{layerIdToBucket:e,referencerUIDToReferencedId:n}=t;n.forEach((t,n)=>{e[t]&&e[t].layerUIDs.push(n)})}_filterFeatures(t){const{signal:e,sourceNameToTileData:n,sourceNameToUniqueSourceLayerBuckets:i,sourceNameToUniqueSourceLayers:r}=t,o=10*this._level,a=10*(this._level+1),h=[],l=[];for(const t of Object.keys(r))r[t].forEach(e=>{h.push(e),l.push(t)});for(let t=0;t<h.length;t++){const r=l[t],c=h[t];if(!n[r]||!i[r])continue;const u=n[r][c],f=i[r][c];if(!f||0===f.length)continue;if((0,s.G4)(e))return;let d=0;const g=u.getData();for(;g.nextTag(2);){const t=g.getMessage(),e=new P(t,u,d++);t.release();const n=e.values;if(n){const t=n._minzoom;if(t&&t>=a)continue;const e=n._maxzoom;if(e&&e<=o)continue}for(const t of f)t.pushFeature(e)}}}_fetchResources(t,e,n){const s=[],i=this._tile.getWorkerTileHandler();let r,o;t.length>0&&(r=i.fetchSprites(t,this._client,n),s.push(r));for(const t in e){const r=e[t];r.size>0&&(o=i.fetchGlyphs(this._baseUrl,t,r,n),s.push(o))}return s}_processFeatures(t){const e=t.filter(t=>t.hasFeatures()||this._canParseStyleLayer(t.layer.uid));for(const t of e)t.processFeatures(t.tileClipper);return e}_parseTileData(t){const e={};for(const n of Object.keys(t)){const s=t[n],i={};for(;s.next();)switch(s.tag()){case 3:{const t=s.getMessage(),e=new T(t);t.release(),i[e.name]=e;break}default:s.skip()}e[n]=i}return e}_createBucket(t){switch(t.type){case 0:return null;case 1:return this._createFillBucket(t);case 2:return this._createLineBucket(t);case 4:return this._createCircleBucket(t);case 3:return this._createSymbolBucket(t)}}_createFillBucket(t){return new D(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new S(t.fillMaterial.getStride()),new w,new L(t.outlineMaterial.getStride()),new w)}_createLineBucket(t){return new C(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new A(t.lineMaterial.getStride()),new w)}_createCircleBucket(t){return new B(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new k(t.circleMaterial.getStride()),new w)}_createSymbolBucket(t){const e=this._tile;return new J(e.tileKey,t,this._level,new v(t.iconMaterial.getStride()),new w,new v(t.textMaterial.getStride()),new w,e.placementEngine,e.getWorkerTileHandler())}}class Q{constructor(t,e,n,s){this.status=0,this.placementEngine=new _,this.tileKey=t,this.refKeys=e,this._workerTileHandler=n,this._styleRepository=s}release(){this.tileKey="",this.refKeys=null,this.status=0,this._workerTileHandler=null}async parse(t,e){const n=e?.signal;if(null!=n){const t=()=>{n.removeEventListener("abort",t),this.status=4};n.addEventListener("abort",t)}let i;const r={bucketsWithData:[],emptyBuckets:null};try{i=await this._parse(t,e)}catch(t){if((0,s.zf)(t))throw t;return{result:r,transferList:[]}}this.status=2;const o=r.bucketsWithData,a=[];for(const t of i)if(t.hasFeatures()){const e=t.serialize();o.push(e)}else a.push(t.layer.uid);const h=[...o];let l=null;return a.length>0&&(l=Uint32Array.from(a),h.push(l.buffer)),r.emptyBuckets=l,{result:r,transferList:h}}setObsolete(){this.status=4}getLayers(){return this._workerTileHandler.getLayers()}getWorkerTileHandler(){return this._workerTileHandler}async _parse(t,e){const n=t.sourceName2DataAndRefKey;return 0===Object.keys(n).length?[]:(this.status=3,new H(n,this,e.client,t.sourceDataMaxLOD,this._styleRepository,t.styleLayerUIDs,t.baseUrl).parse(e))}}var $=n(45013);class X{constructor(){this._spriteInfo={},this._glyphInfo={},this._sourceDataMaxLOD=25}reset(){return this._spriteInfo={},this._glyphInfo={},Promise.resolve()}getLayers(){return this._styleRepository?.layers??[]}async createTileAndParse(t,e){const{key:n}=t,i={};for(const e of Object.keys(t.sourceName2DataAndRefKey)){const n=t.sourceName2DataAndRefKey[e];i[e]=n.refKey}const r=new Q(n,i,this,this._styleRepository);this.initializeGlyphWorker(void 0,e);try{return await r.parse({...t,sourceDataMaxLOD:this._sourceDataMaxLOD},e)}catch(t){if(r.setObsolete(),r.release(),!(0,s.zf)(t))throw t;return null}}initializeGlyphWorker(t,e){return this._loaded??=(async()=>{const t=await e.client.invoke("openGlyphPorts"),n=await(0,i.N1)(t,{maxNumberOfConcurrentJobs:20});this._glyphWorker=n.createInvokeProxy()})()}updateStyle(t){if(!t||0===t.length||!this._styleRepository)return;const e=this._styleRepository;for(const n of t){const t=n.type,s=n.data;switch(t){case 0:e.setPaintProperties(s.layer,s.paint);break;case 1:e.setLayoutProperties(s.layer,s.layout);break;case 3:e.deleteStyleLayer(s.layer);break;case 2:e.setStyleLayer(s.layer,s.index);break;case 4:this._spriteInfo={}}}}setStyle(t){const{style:e,sourceDataMaxLOD:n}=t;this._styleRepository=new $.A(e),this._sourceDataMaxLOD=n,this._spriteInfo={},this._glyphInfo={}}fetchSprites(t,e,n){const s=[],i=this._spriteInfo;for(const e of t)void 0===i[e.name]&&s.push(e);return 0===s.length?Promise.resolve():e.invoke("getSprites",s,{signal:n?.signal}).then(t=>{for(const e in t){const n=t[e];i[e]=n}})}getSpriteItems(){return this._spriteInfo}async fetchGlyphs(t,e,n,s){const i=[];let r=this._glyphInfo[e];if(r?n.forEach(t=>{r[t]||i.push(t)}):(r=this._glyphInfo[e]=[],n.forEach(t=>i.push(t))),0===i.length)return;if(await this._loaded,!this._glyphWorker)return void console.error("Failed to fetch glyphs: no worker connection");const o=String.fromCodePoint(...i),a=await this._glyphWorker.getGlyphItems(o,!1,t,e,!0,s);if(a)for(const t of a.glyphs)r[t.code]=t}getGlyphItems(t){return this._glyphInfo[t]}}},18989(t,e,n){n.d(e,{A:()=>s});class s{constructor(t=0,e=0,n=0,s=0){this.x=t,this.y=e,this.width=n,this.height=s}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}}}]);
|