@arcgis/core 4.28.0-next.20230524 → 4.28.0-next.20230621
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/Map.js +1 -1
- package/README.md +17 -17
- package/WebMap.js +1 -1
- package/WebScene.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/actions/GroupBy.js +1 -1
- package/arcade/featureset/actions/OrderBy.js +1 -1
- package/arcade/featureset/support/FeatureSetIterator.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/arcade/treeAnalysis.js +1 -1
- package/assets/components/assets/card/t9n/messages_ar.json +1 -1
- package/assets/components/assets/card/t9n/messages_bg.json +1 -1
- package/assets/components/assets/card/t9n/messages_bs.json +1 -1
- package/assets/components/assets/card/t9n/messages_ca.json +1 -1
- package/assets/components/assets/card/t9n/messages_cs.json +1 -1
- package/assets/components/assets/card/t9n/messages_da.json +1 -1
- package/assets/components/assets/card/t9n/messages_de.json +1 -1
- package/assets/components/assets/card/t9n/messages_el.json +1 -1
- package/assets/components/assets/card/t9n/messages_es.json +1 -1
- package/assets/components/assets/card/t9n/messages_et.json +1 -1
- package/assets/components/assets/card/t9n/messages_fi.json +1 -1
- package/assets/components/assets/card/t9n/messages_fr.json +1 -1
- package/assets/components/assets/card/t9n/messages_he.json +1 -1
- package/assets/components/assets/card/t9n/messages_hr.json +1 -1
- package/assets/components/assets/card/t9n/messages_hu.json +1 -1
- package/assets/components/assets/card/t9n/messages_id.json +1 -1
- package/assets/components/assets/card/t9n/messages_it.json +1 -1
- package/assets/components/assets/card/t9n/messages_ja.json +1 -1
- package/assets/components/assets/card/t9n/messages_ko.json +1 -1
- package/assets/components/assets/card/t9n/messages_lt.json +1 -1
- package/assets/components/assets/card/t9n/messages_lv.json +1 -1
- package/assets/components/assets/card/t9n/messages_nl.json +1 -1
- package/assets/components/assets/card/t9n/messages_no.json +1 -1
- package/assets/components/assets/card/t9n/messages_pl.json +1 -1
- package/assets/components/assets/card/t9n/messages_pt-BR.json +1 -1
- package/assets/components/assets/card/t9n/messages_pt-PT.json +1 -1
- package/assets/components/assets/card/t9n/messages_ro.json +1 -1
- package/assets/components/assets/card/t9n/messages_ru.json +1 -1
- package/assets/components/assets/card/t9n/messages_sk.json +1 -1
- package/assets/components/assets/card/t9n/messages_sl.json +1 -1
- package/assets/components/assets/card/t9n/messages_sr.json +1 -1
- package/assets/components/assets/card/t9n/messages_sv.json +1 -1
- package/assets/components/assets/card/t9n/messages_th.json +1 -1
- package/assets/components/assets/card/t9n/messages_tr.json +1 -1
- package/assets/components/assets/card/t9n/messages_uk.json +1 -1
- package/assets/components/assets/card/t9n/messages_vi.json +1 -1
- package/assets/components/assets/card/t9n/messages_zh-CN.json +1 -1
- package/assets/components/assets/card/t9n/messages_zh-HK.json +1 -1
- package/assets/components/assets/card/t9n/messages_zh-TW.json +1 -1
- package/assets/components/assets/combobox/t9n/messages.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_ar.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_bg.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_bs.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_ca.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_cs.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_da.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_de.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_el.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_en.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_es.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_et.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_fi.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_fr.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_he.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_hr.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_hu.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_id.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_it.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_ja.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_ko.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_lt.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_lv.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_nl.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_no.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_pl.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_pt-BR.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_pt-PT.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_ro.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_ru.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_sk.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_sl.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_sr.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_sv.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_th.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_tr.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_uk.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_vi.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_zh-CN.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_zh-HK.json +1 -0
- package/assets/components/assets/combobox/t9n/messages_zh-TW.json +1 -0
- package/assets/components/assets/handle/t9n/messages_cs.json +1 -1
- package/assets/components/assets/handle/t9n/messages_ja.json +1 -1
- package/assets/components/assets/handle/t9n/messages_ru.json +1 -1
- package/assets/components/assets/handle/t9n/messages_sk.json +1 -1
- package/assets/components/assets/icon/accessibility16.json +1 -0
- package/assets/components/assets/icon/accessibility24.json +1 -0
- package/assets/components/assets/icon/accessibility32.json +1 -0
- package/assets/components/assets/icon/addAndUpdateFeatures16.json +1 -0
- package/assets/components/assets/icon/addAndUpdateFeatures24.json +1 -0
- package/assets/components/assets/icon/addAndUpdateFeatures32.json +1 -0
- package/assets/components/assets/icon/addFeatures16.json +1 -0
- package/assets/components/assets/icon/addFeatures24.json +1 -0
- package/assets/components/assets/icon/addFeatures32.json +1 -0
- package/assets/components/assets/icon/arrowCircleDown16.json +1 -0
- package/assets/components/assets/icon/arrowCircleDown16F.json +1 -0
- package/assets/components/assets/icon/arrowCircleDown24.json +1 -0
- package/assets/components/assets/icon/arrowCircleDown24F.json +1 -0
- package/assets/components/assets/icon/arrowCircleDown32.json +1 -0
- package/assets/components/assets/icon/arrowCircleDown32F.json +1 -0
- package/assets/components/assets/icon/arrowCircleDownF16.json +1 -0
- package/assets/components/assets/icon/arrowCircleDownF24.json +1 -0
- package/assets/components/assets/icon/arrowCircleDownF32.json +1 -0
- package/assets/components/assets/icon/joinedViewLayer16.json +1 -0
- package/assets/components/assets/icon/joinedViewLayer24.json +1 -0
- package/assets/components/assets/icon/joinedViewLayer32.json +1 -0
- package/assets/components/assets/icon/locationSharing16.json +1 -0
- package/assets/components/assets/icon/locationSharing16F.json +1 -0
- package/assets/components/assets/icon/locationSharing24.json +1 -0
- package/assets/components/assets/icon/locationSharing24F.json +1 -0
- package/assets/components/assets/icon/locationSharing32.json +1 -0
- package/assets/components/assets/icon/locationSharing32F.json +1 -0
- package/assets/components/assets/icon/locationSharingDisabled16.json +1 -0
- package/assets/components/assets/icon/locationSharingDisabled24.json +1 -0
- package/assets/components/assets/icon/locationSharingDisabled32.json +1 -0
- package/assets/components/assets/icon/locationSharingEnabled16.json +1 -0
- package/assets/components/assets/icon/locationSharingEnabled24.json +1 -0
- package/assets/components/assets/icon/locationSharingEnabled32.json +1 -0
- package/assets/components/assets/icon/locationSharingFilled16.json +1 -0
- package/assets/components/assets/icon/locationSharingFilled24.json +1 -0
- package/assets/components/assets/icon/locationSharingFilled32.json +1 -0
- package/assets/components/assets/icon/locationSharingOff16.json +1 -0
- package/assets/components/assets/icon/locationSharingOff24.json +1 -0
- package/assets/components/assets/icon/locationSharingOff32.json +1 -0
- package/assets/components/assets/icon/maskInside16.json +1 -0
- package/assets/components/assets/icon/maskInside24.json +1 -0
- package/assets/components/assets/icon/maskInside32.json +1 -0
- package/assets/components/assets/icon/maskOutside16.json +1 -0
- package/assets/components/assets/icon/maskOutside24.json +1 -0
- package/assets/components/assets/icon/maskOutside32.json +1 -0
- package/assets/components/assets/icon/numberCircle116F.json +1 -0
- package/assets/components/assets/icon/numberCircle124F.json +1 -0
- package/assets/components/assets/icon/numberCircle132F.json +1 -0
- package/assets/components/assets/icon/numberCircle1F16.json +1 -0
- package/assets/components/assets/icon/numberCircle1F24.json +1 -0
- package/assets/components/assets/icon/numberCircle1F32.json +1 -0
- package/assets/components/assets/icon/numberCircle216F.json +1 -0
- package/assets/components/assets/icon/numberCircle224F.json +1 -0
- package/assets/components/assets/icon/numberCircle232F.json +1 -0
- package/assets/components/assets/icon/numberCircle2F16.json +1 -0
- package/assets/components/assets/icon/numberCircle2F24.json +1 -0
- package/assets/components/assets/icon/numberCircle2F32.json +1 -0
- package/assets/components/assets/icon/numberCircle316F.json +1 -0
- package/assets/components/assets/icon/numberCircle324F.json +1 -0
- package/assets/components/assets/icon/numberCircle332F.json +1 -0
- package/assets/components/assets/icon/numberCircle3F16.json +1 -0
- package/assets/components/assets/icon/numberCircle3F24.json +1 -0
- package/assets/components/assets/icon/numberCircle3F32.json +1 -0
- package/assets/components/assets/icon/numberCircle416F.json +1 -0
- package/assets/components/assets/icon/numberCircle424F.json +1 -0
- package/assets/components/assets/icon/numberCircle432F.json +1 -0
- package/assets/components/assets/icon/numberCircle4F16.json +1 -0
- package/assets/components/assets/icon/numberCircle4F24.json +1 -0
- package/assets/components/assets/icon/numberCircle4F32.json +1 -0
- package/assets/components/assets/icon/numberCircle516F.json +1 -0
- package/assets/components/assets/icon/numberCircle524F.json +1 -0
- package/assets/components/assets/icon/numberCircle532F.json +1 -0
- package/assets/components/assets/icon/numberCircle5F16.json +1 -0
- package/assets/components/assets/icon/numberCircle5F24.json +1 -0
- package/assets/components/assets/icon/numberCircle5F32.json +1 -0
- package/assets/components/assets/icon/numberCircle616F.json +1 -0
- package/assets/components/assets/icon/numberCircle624F.json +1 -0
- package/assets/components/assets/icon/numberCircle632F.json +1 -0
- package/assets/components/assets/icon/numberCircle6F16.json +1 -0
- package/assets/components/assets/icon/numberCircle6F24.json +1 -0
- package/assets/components/assets/icon/numberCircle6F32.json +1 -0
- package/assets/components/assets/icon/numberCircle716F.json +1 -0
- package/assets/components/assets/icon/numberCircle724F.json +1 -0
- package/assets/components/assets/icon/numberCircle732F.json +1 -0
- package/assets/components/assets/icon/numberCircle7F16.json +1 -0
- package/assets/components/assets/icon/numberCircle7F24.json +1 -0
- package/assets/components/assets/icon/numberCircle7F32.json +1 -0
- package/assets/components/assets/icon/numberCircle816F.json +1 -0
- package/assets/components/assets/icon/numberCircle824F.json +1 -0
- package/assets/components/assets/icon/numberCircle832F.json +1 -0
- package/assets/components/assets/icon/numberCircle8F16.json +1 -0
- package/assets/components/assets/icon/numberCircle8F24.json +1 -0
- package/assets/components/assets/icon/numberCircle8F32.json +1 -0
- package/assets/components/assets/icon/numberCircle916F.json +1 -0
- package/assets/components/assets/icon/numberCircle924F.json +1 -0
- package/assets/components/assets/icon/numberCircle932F.json +1 -0
- package/assets/components/assets/icon/numberCircle9F16.json +1 -0
- package/assets/components/assets/icon/numberCircle9F24.json +1 -0
- package/assets/components/assets/icon/numberCircle9F32.json +1 -0
- package/assets/components/assets/icon/orientedImageryLayer16.json +1 -0
- package/assets/components/assets/icon/orientedImageryLayer24.json +1 -0
- package/assets/components/assets/icon/orientedImageryLayer32.json +1 -0
- package/assets/components/assets/icon/overwriteFeatures16.json +1 -0
- package/assets/components/assets/icon/overwriteFeatures24.json +1 -0
- package/assets/components/assets/icon/overwriteFeatures32.json +1 -0
- package/assets/components/assets/icon/parcelLayer16.json +1 -0
- package/assets/components/assets/icon/parcelLayer24.json +1 -0
- package/assets/components/assets/icon/parcelLayer32.json +1 -0
- package/assets/components/assets/icon/refreshF16.json +1 -0
- package/assets/components/assets/icon/refreshF24.json +1 -0
- package/assets/components/assets/icon/refreshF32.json +1 -0
- package/assets/components/assets/icon/strikethrough16.json +1 -0
- package/assets/components/assets/icon/strikethrough24.json +1 -0
- package/assets/components/assets/icon/strikethrough32.json +1 -0
- package/assets/components/assets/icon/updateFeatures16.json +1 -0
- package/assets/components/assets/icon/updateFeatures24.json +1 -0
- package/assets/components/assets/icon/updateFeatures32.json +1 -0
- package/assets/components/assets/icon/viewAssociations16.json +1 -0
- package/assets/components/assets/icon/viewAssociations24.json +1 -0
- package/assets/components/assets/icon/viewAssociations32.json +1 -0
- package/assets/components/assets/input-date-picker/t9n/messages_ar.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_bg.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_bs.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_ca.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_cs.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_da.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_de.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_el.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_es.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_et.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_fi.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_fr.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_he.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_hr.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_hu.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_id.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_it.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_ja.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_ko.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_lt.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_lv.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_nl.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_no.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_pl.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_pt-BR.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_pt-PT.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_ro.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_ru.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_sk.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_sl.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_sr.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_sv.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_th.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_tr.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_uk.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_vi.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_zh-CN.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_zh-HK.json +1 -1
- package/assets/components/assets/input-date-picker/t9n/messages_zh-TW.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_ar.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_bg.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_bs.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_ca.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_cs.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_da.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_de.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_el.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_es.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_et.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_fi.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_fr.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_he.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_hr.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_hu.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_id.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_it.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_ja.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_ko.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_lt.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_lv.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_nl.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_no.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_pl.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_pt-BR.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_pt-PT.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_ro.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_ru.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_sk.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_sl.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_sr.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_sv.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_th.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_tr.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_uk.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_vi.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_zh-CN.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_zh-HK.json +1 -1
- package/assets/components/assets/input-time-picker/t9n/messages_zh-TW.json +1 -1
- package/assets/components/assets/list-item/t9n/messages_vi.json +1 -1
- package/assets/components/assets/menu/t9n/messages.json +3 -0
- package/assets/components/assets/menu/t9n/messages_ar.json +3 -0
- package/assets/components/assets/menu/t9n/messages_bg.json +3 -0
- package/assets/components/assets/menu/t9n/messages_bs.json +3 -0
- package/assets/components/assets/menu/t9n/messages_ca.json +3 -0
- package/assets/components/assets/menu/t9n/messages_cs.json +3 -0
- package/assets/components/assets/menu/t9n/messages_da.json +3 -0
- package/assets/components/assets/menu/t9n/messages_de.json +3 -0
- package/assets/components/assets/menu/t9n/messages_el.json +3 -0
- package/assets/components/assets/menu/t9n/messages_en.json +3 -0
- package/assets/components/assets/menu/t9n/messages_es.json +3 -0
- package/assets/components/assets/menu/t9n/messages_et.json +3 -0
- package/assets/components/assets/menu/t9n/messages_fi.json +3 -0
- package/assets/components/assets/menu/t9n/messages_fr.json +3 -0
- package/assets/components/assets/menu/t9n/messages_he.json +3 -0
- package/assets/components/assets/menu/t9n/messages_hr.json +3 -0
- package/assets/components/assets/menu/t9n/messages_hu.json +3 -0
- package/assets/components/assets/menu/t9n/messages_id.json +3 -0
- package/assets/components/assets/menu/t9n/messages_it.json +3 -0
- package/assets/components/assets/menu/t9n/messages_ja.json +3 -0
- package/assets/components/assets/menu/t9n/messages_ko.json +3 -0
- package/assets/components/assets/menu/t9n/messages_lt.json +3 -0
- package/assets/components/assets/menu/t9n/messages_lv.json +3 -0
- package/assets/components/assets/menu/t9n/messages_nl.json +3 -0
- package/assets/components/assets/menu/t9n/messages_no.json +3 -0
- package/assets/components/assets/menu/t9n/messages_pl.json +3 -0
- package/assets/components/assets/menu/t9n/messages_pt-BR.json +3 -0
- package/assets/components/assets/menu/t9n/messages_pt-PT.json +3 -0
- package/assets/components/assets/menu/t9n/messages_ro.json +3 -0
- package/assets/components/assets/menu/t9n/messages_ru.json +3 -0
- package/assets/components/assets/menu/t9n/messages_sk.json +3 -0
- package/assets/components/assets/menu/t9n/messages_sl.json +3 -0
- package/assets/components/assets/menu/t9n/messages_sr.json +3 -0
- package/assets/components/assets/menu/t9n/messages_sv.json +3 -0
- package/assets/components/assets/menu/t9n/messages_th.json +3 -0
- package/assets/components/assets/menu/t9n/messages_tr.json +3 -0
- package/assets/components/assets/menu/t9n/messages_uk.json +3 -0
- package/assets/components/assets/menu/t9n/messages_vi.json +3 -0
- package/assets/components/assets/menu/t9n/messages_zh-CN.json +3 -0
- package/assets/components/assets/menu/t9n/messages_zh-HK.json +3 -0
- package/assets/components/assets/menu/t9n/messages_zh-TW.json +3 -0
- package/assets/components/assets/menu-item/t9n/messages.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_ar.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_bg.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_bs.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_ca.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_cs.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_da.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_de.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_el.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_en.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_es.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_et.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_fi.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_fr.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_he.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_hr.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_hu.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_id.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_it.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_ja.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_ko.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_lt.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_lv.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_nl.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_no.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_pl.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_pt-BR.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_pt-PT.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_ro.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_ru.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_sk.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_sl.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_sr.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_sv.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_th.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_tr.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_uk.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_vi.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_zh-CN.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_zh-HK.json +4 -0
- package/assets/components/assets/menu-item/t9n/messages_zh-TW.json +4 -0
- package/assets/components/assets/tab-title/t9n/messages.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_ar.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_bg.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_bs.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_ca.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_cs.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_da.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_de.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_el.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_en.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_es.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_et.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_fi.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_fr.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_he.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_hr.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_hu.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_id.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_it.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_ja.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_ko.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_lt.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_lv.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_nl.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_no.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_pl.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_pt-BR.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_pt-PT.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_ro.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_ru.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_sk.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_sl.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_sr.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_sv.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_th.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_tr.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_uk.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_vi.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_zh-CN.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_zh-HK.json +3 -0
- package/assets/components/assets/tab-title/t9n/messages_zh-TW.json +3 -0
- package/assets/components/assets/text-area/t9n/messages.json +2 -1
- package/assets/components/assets/text-area/t9n/messages_en.json +2 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/002fe1ec63ea33e6972d.js +1 -0
- package/assets/esri/core/workers/chunks/013efa75c96be04cf57a.js +1 -0
- package/assets/esri/core/workers/chunks/0254165377538522c830.js +1 -0
- package/assets/esri/core/workers/chunks/036301f545aba2b8e485.js +1 -0
- package/assets/esri/core/workers/chunks/07f16ea775b39a1a4a7b.js +1 -0
- package/assets/esri/core/workers/chunks/0d47e4b1b41b1f87e81b.js +1 -0
- package/assets/esri/core/workers/chunks/0d805fd9cd9ff3a636ca.js +1 -0
- package/assets/esri/core/workers/chunks/0fb1d3dce61bdd71bfff.js +1 -0
- package/assets/esri/core/workers/chunks/105cf61dbd999d0cee16.js +1 -0
- package/assets/esri/core/workers/chunks/114ef73112dd50edf5a4.js +1 -0
- package/assets/esri/core/workers/chunks/{1766371def0b2f953ac3.js → 13ed0105d52d57897730.js} +1 -1
- package/assets/esri/core/workers/chunks/1497709057d28ce7c1be.js +1 -0
- package/assets/esri/core/workers/chunks/170c72126d10b1fdb2b0.js +1 -0
- package/assets/esri/core/workers/chunks/1bbc868d2430103951eb.js +1 -0
- package/assets/esri/core/workers/chunks/1d2ef88a8d028adef102.js +1 -0
- package/assets/esri/core/workers/chunks/1e9e68312cd865358260.js +1 -0
- package/assets/esri/core/workers/chunks/2420ec029236ab31d908.js +1 -0
- package/assets/esri/core/workers/chunks/28474af01bf427c36eeb.js +1 -0
- package/assets/esri/core/workers/chunks/28c67c98039503b62e6e.js +1 -0
- package/assets/esri/core/workers/chunks/2ef70c9b2484a11b7435.js +1 -0
- package/assets/esri/core/workers/chunks/{efb96aefe979a0f5c632.js → 3048157f4f13d22c1753.js} +1 -1
- package/assets/esri/core/workers/chunks/308eeeaec591b4eea1de.js +1 -0
- package/assets/esri/core/workers/chunks/308f3811dfa71f619279.js +1 -0
- package/assets/esri/core/workers/chunks/314a8b5593306be246ab.js +1 -0
- package/assets/esri/core/workers/chunks/35a97dd2872ac3f00977.js +1 -0
- package/assets/esri/core/workers/chunks/3620e9fa4b5dbc21ad87.js +1 -0
- package/assets/esri/core/workers/chunks/39079bcfd35ed73c4e34.js +1 -0
- package/assets/esri/core/workers/chunks/39ae4b9b766f674bc6f2.js +1 -0
- package/assets/esri/core/workers/chunks/{2bdc63395c7466ce1641.js → 3b3d676b609c47a77164.js} +1 -1
- package/assets/esri/core/workers/chunks/3bbaa78c68a4bf159722.js +1 -0
- package/assets/esri/core/workers/chunks/{0d02856e55d20b99fc8b.js → 3bc77c0c08f72d74f08b.js} +1 -1
- package/assets/esri/core/workers/chunks/3c3f65913006b84b2289.js +1 -0
- package/assets/esri/core/workers/chunks/3d42fa4ab5f8632d690a.js +1 -0
- package/assets/esri/core/workers/chunks/3d9a8cb638cf9b8ca4b3.js +1 -0
- package/assets/esri/core/workers/chunks/3db8ae98799c752afe60.js +1 -0
- package/assets/esri/core/workers/chunks/4018d8a06471423cb672.js +1 -0
- package/assets/esri/core/workers/chunks/42b6315e21c4c1345ba5.js +1 -0
- package/assets/esri/core/workers/chunks/42be658be0019944d8d5.js +1 -0
- package/assets/esri/core/workers/chunks/42f3421740a5479559dc.js +1 -0
- package/assets/esri/core/workers/chunks/45629ff775e77234b227.js +1 -0
- package/assets/esri/core/workers/chunks/4b235d1b6a72773cd4f4.js +1107 -0
- package/assets/esri/core/workers/chunks/50b17799f1abce982a19.js +1 -0
- package/assets/esri/core/workers/chunks/52315f93a6f0ad59bd90.js +1 -0
- package/assets/esri/core/workers/chunks/54b319ca2d557b4b4358.js +1 -0
- package/assets/esri/core/workers/chunks/57077e608f20d3a931e8.js +1 -0
- package/assets/esri/core/workers/chunks/{97cdbec7532cfcdf9ad2.js → 595a2baa04d92de59558.js} +1 -1
- package/assets/esri/core/workers/chunks/5bb96e602d7cecbecf54.js +1 -0
- package/assets/esri/core/workers/chunks/5c69acab678f61d3f1a2.js +1 -0
- package/assets/esri/core/workers/chunks/{45a4041881e6235d73a2.js → 5f6e899aceffcf9bffb0.js} +1 -1
- package/assets/esri/core/workers/chunks/63322229183f1d4eaa70.js +1 -0
- package/assets/esri/core/workers/chunks/642510b0371311ff8e16.js +1 -0
- package/assets/esri/core/workers/chunks/68b0e0aa33880bc1ba77.js +1 -0
- package/assets/esri/core/workers/chunks/6995ace1d25d67c98d0e.js +1 -0
- package/assets/esri/core/workers/chunks/6a3d611e8842afbb50ab.js.LICENSE.txt +1 -6
- package/assets/esri/core/workers/chunks/6a82be278c7f3db83354.js +1 -0
- package/assets/esri/core/workers/chunks/6aa99bcb868b0a7cc58c.js +1 -0
- package/assets/esri/core/workers/chunks/6e562fa57c0347091154.js +1 -0
- package/assets/esri/core/workers/chunks/6fb92cd88e4fb65fa7be.js +1 -0
- package/assets/esri/core/workers/chunks/740dc67038f554431f1b.js +1 -0
- package/assets/esri/core/workers/chunks/77fcc4fc0fb3739365f6.js +1 -0
- package/assets/esri/core/workers/chunks/784587a8ae46e3856507.js +1 -0
- package/assets/esri/core/workers/chunks/{4c35c663528f710e8c78.js → 79cb672c85ea29e8484a.js} +1 -1
- package/assets/esri/core/workers/chunks/7ce036a6592cd745e720.js +1 -0
- package/assets/esri/core/workers/chunks/7dc6774c77c822b68c99.js +1 -0
- package/assets/esri/core/workers/chunks/7e4013f8c31c9a9438c6.js +1 -0
- package/assets/esri/core/workers/chunks/82939ead43848a13f765.js +1 -0
- package/assets/esri/core/workers/chunks/82a103a8b5382300889d.js +1 -0
- package/assets/esri/core/workers/chunks/88fdd288ef799a7ac48a.js +1 -0
- package/assets/esri/core/workers/chunks/8b05fb365336cc42fecc.js +1 -0
- package/assets/esri/core/workers/chunks/8b6b963230df56850580.js +1 -0
- package/assets/esri/core/workers/chunks/8e08968505483dc58e00.js +1 -0
- package/assets/esri/core/workers/chunks/915734255a79bff3ef0f.js +1 -0
- package/assets/esri/core/workers/chunks/928a311786199825fd29.js +1 -0
- package/assets/esri/core/workers/chunks/95ff92d7caa34664d58f.js +1 -0
- package/assets/esri/core/workers/chunks/99512f2aa78e8ff6b6c6.js +1 -0
- package/assets/esri/core/workers/chunks/9a0e7c41f796609b3db9.js +1 -0
- package/assets/esri/core/workers/chunks/9c8ab6bd8c170cbc5fa5.js +1 -0
- package/assets/esri/core/workers/chunks/9e570cd4a48c30c83ae6.js +1 -0
- package/assets/esri/core/workers/chunks/a6ece91e6b3343f133a0.js +1 -0
- package/assets/esri/core/workers/chunks/{96c027ffad89524b0820.js → af8f75478979e11fc00a.js} +1 -1
- package/assets/esri/core/workers/chunks/b052463ffb7cb32306dc.js +1 -0
- package/assets/esri/core/workers/chunks/b2a423d9ce8bb784267c.js +1 -0
- package/assets/esri/core/workers/chunks/b31974524932e638df8c.js +1 -0
- package/assets/esri/core/workers/chunks/b75b4b132dbd9cb9d372.js +1 -0
- package/assets/esri/core/workers/chunks/bb3c94acc6d60436e40a.js +1 -0
- package/assets/esri/core/workers/chunks/bc89f5f9653bb1242a61.js +1 -0
- package/assets/esri/core/workers/chunks/bcd2af32e2380fc3c6b3.js +1 -0
- package/assets/esri/core/workers/chunks/{4a12ca8d6756cedfb74c.js → bf3a6346ec25692e130c.js} +1 -1
- package/assets/esri/core/workers/chunks/{3c5a64a545272f148e93.js → c16ec2f614844b3191c0.js} +1 -1
- package/assets/esri/core/workers/chunks/c1dfbda75abc748a6ca4.js +1 -0
- package/assets/esri/core/workers/chunks/c8702e53a8ad6cf6ab85.js +1 -0
- package/assets/esri/core/workers/chunks/c90416e7bf29eb1d4536.js +1 -0
- package/assets/esri/core/workers/chunks/cb004c492e22c50f9bfa.js +1 -0
- package/assets/esri/core/workers/chunks/cb763c42379341b94d1e.js +1 -0
- package/assets/esri/core/workers/chunks/cfc3dcca2b69d20d5375.js +1 -0
- package/assets/esri/core/workers/chunks/cfc48f30ecc9b27ac409.js +1 -0
- package/assets/esri/core/workers/chunks/cfe379a78a983373b3ac.js +1 -0
- package/assets/esri/core/workers/chunks/d0e2b42dca51711f2c6f.js +1 -0
- package/assets/esri/core/workers/chunks/d0ff496834686dbfe29f.js +1 -0
- package/assets/esri/core/workers/chunks/{c7fb48ea5d907883bcce.js → d199290f843ffb78a001.js} +1 -1
- package/assets/esri/core/workers/chunks/d1c00e7d7884c3010e1c.js +1 -0
- package/assets/esri/core/workers/chunks/d2a127f7bb0e2ba14a13.js +1 -0
- package/assets/esri/core/workers/chunks/d8607326a199dd994844.js +1 -0
- package/assets/esri/core/workers/chunks/da0ab3f64802204323ed.js +1 -0
- package/assets/esri/core/workers/chunks/dabd889e064c4e7807fa.js +1 -0
- package/assets/esri/core/workers/chunks/{3bc6b5f0643364749ef8.js → de3d57c9b5d7a1d33bf1.js} +1 -1
- package/assets/esri/core/workers/chunks/df661a3b3629bd122a73.js +1 -0
- package/assets/esri/core/workers/chunks/df96824a6f76bad1370c.js +1 -0
- package/assets/esri/core/workers/chunks/e097f41bbfac00250477.js +1 -0
- package/assets/esri/core/workers/chunks/e3243d120a23a9b48392.js +1 -0
- package/assets/esri/core/workers/chunks/e325151aaa4a1c2a2d0c.js +1 -0
- package/assets/esri/core/workers/chunks/e55f80b774e090a0aa04.js +1 -0
- package/assets/esri/core/workers/chunks/e668c7e2e61aae6ca6e0.js +1 -0
- package/assets/esri/core/workers/chunks/e69e12c25658592e9874.js +1 -0
- package/assets/esri/core/workers/chunks/eb7053ba7e491bf25829.js +1 -0
- package/assets/esri/core/workers/chunks/ebe25310eabce61f7e72.js +1 -0
- package/assets/esri/core/workers/chunks/ef900614353505afb210.js +1 -0
- package/assets/esri/core/workers/chunks/f0299d93a95f40ea7cf7.js +1 -0
- package/assets/esri/core/workers/chunks/f1da7b29eecad0e9efae.js +1 -0
- package/assets/esri/core/workers/chunks/f23b95d7e51a144ad065.js +1 -0
- package/assets/esri/core/workers/chunks/f263e73a25fae4beffae.js +1 -0
- package/assets/esri/core/workers/chunks/{dcec000d7e883fab69ee.js → f50c6491bff822d89716.js} +1 -1
- package/assets/esri/core/workers/chunks/f528239fdba6d910d022.js +1 -0
- package/assets/esri/core/workers/chunks/f556490dae3c69419052.js +1 -0
- package/assets/esri/core/workers/chunks/f709ce36e29371d4f9d0.js +1 -0
- package/assets/esri/core/workers/chunks/{2f9fadbe7e94f79afeda.js → f88a6a9c837b5f76bdd2.js} +1 -1
- package/assets/esri/core/workers/chunks/fb44d872b9dbadcf8ccf.js +1 -0
- package/assets/esri/core/workers/chunks/fcc8aa0624f212b94a70.js +1 -0
- package/assets/esri/images/portal/livestreamvideolayer16.png +0 -0
- package/assets/esri/images/portal/{mediaservice16.png → videolayer16.png} +0 -0
- package/assets/esri/t9n/common_sv.json +1 -1
- package/assets/esri/themes/base/_View.scss +2 -5
- package/assets/esri/themes/base/widgets/_BasemapGallery.scss +9 -12
- package/assets/esri/themes/base/widgets/_Bookmarks.scss +5 -0
- package/assets/esri/themes/base/widgets/_Daylight.scss +4 -6
- package/assets/esri/themes/base/widgets/_Feature.scss +20 -8
- package/assets/esri/themes/base/widgets/_FeatureContent.scss +9 -3
- package/assets/esri/themes/base/widgets/_FeatureForm.scss +19 -2
- package/assets/esri/themes/base/widgets/_Features.scss +5 -7
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +69 -36
- package/assets/esri/themes/base/widgets/_Popup.scss +3 -3
- package/assets/esri/themes/base/widgets/_ScaleRangeSlider.scss +1 -0
- package/assets/esri/themes/base/widgets/_Swipe.scss +11 -0
- package/assets/esri/themes/base/widgets/_ValuePicker.scss +5 -2
- package/assets/esri/themes/base/widgets/_Widget.scss +7 -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/Tooltip_ar.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_bg.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_bs.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ca.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_cs.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_da.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_de.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_el.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_es.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_et.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_fi.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_fr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_he.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_hr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_hu.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_id.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_it.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ja.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ko.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_lt.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_lv.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_nb.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_nl.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pl.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pt-BR.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pt-PT.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ro.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ru.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sk.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sl.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sv.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_th.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_tr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_uk.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_vi.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-CN.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-HK.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-TW.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ar.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bg.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bs.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ca.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_cs.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_da.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_de.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_el.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_es.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_et.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fi.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fr.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_he.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hr.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hu.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_id.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_it.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ja.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ko.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lt.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lv.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_nb.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_nl.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pl.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-BR.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-PT.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ro.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ru.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sk.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sl.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sr.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sv.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_th.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_tr.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_uk.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_vi.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-CN.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-HK.json +1 -1
- package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-TW.json +1 -1
- package/assets/esri/widgets/CoordinateConversion/t9n/CoordinateConversion_ja.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nb.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_ar.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_bg.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_bs.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_ca.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_cs.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_da.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_de.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_el.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_es.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_et.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_fi.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_fr.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_he.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_hr.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_hu.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_id.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_it.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_ja.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_ko.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_lt.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_lv.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_nb.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_nl.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_pl.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_pt-BR.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_pt-PT.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_ro.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_ru.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_sk.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_sl.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_sr.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_sv.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_th.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_tr.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_uk.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_vi.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_zh-CN.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_zh-HK.json +1 -1
- package/assets/esri/widgets/Feature/t9n/Feature_zh-TW.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ar.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bg.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ca.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_cs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_da.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_de.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_el.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_es.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_et.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_he.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hu.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_id.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_it.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ja.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ko.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lt.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nb.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ro.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ru.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_th.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_tr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_uk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_vi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-TW.json +1 -1
- package/assets/esri/widgets/FeatureTemplates/t9n/FeatureTemplates_ja.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_ar.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_bg.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_bs.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_ca.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_cs.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_da.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_de.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_el.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_es.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_et.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_fi.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_fr.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_he.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_hr.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_hu.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_id.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_it.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_ja.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_ko.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_lt.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_lv.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_nb.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_nl.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_pl.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_pt-BR.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_pt-PT.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_ro.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_ru.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_sk.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_sl.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_sr.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_sv.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_th.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_tr.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_uk.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_vi.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_zh-CN.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_zh-HK.json +1 -1
- package/assets/esri/widgets/Features/t9n/Features_zh-TW.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_ar.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_bg.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_bs.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_ca.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_cs.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_da.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_de.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_el.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_es.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_et.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_fi.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_fr.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_he.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_hr.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_hu.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_id.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_it.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_ja.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_ko.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_lt.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_lv.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_nb.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_nl.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_pl.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_pt-BR.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_pt-PT.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_ro.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_ru.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_sk.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_sl.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_sr.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_sv.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_th.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_tr.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_uk.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_vi.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_zh-CN.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_zh-HK.json +1 -1
- package/assets/esri/widgets/Legend/t9n/Legend_zh-TW.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nb.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_ar.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_bg.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_bs.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_ca.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_cs.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_da.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_de.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_el.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_es.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_et.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_fi.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_fr.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_he.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_hr.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_hu.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_id.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_it.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_ja.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_ko.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_lt.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_lv.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_nb.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_nl.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_pl.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_pt-BR.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_pt-PT.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_ro.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_ru.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_sk.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_sl.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_sr.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_sv.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_th.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_tr.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_uk.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_vi.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_zh-CN.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_zh-HK.json +1 -1
- package/assets/esri/widgets/Popup/t9n/Popup_zh-TW.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ar.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_bg.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_bs.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ca.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_cs.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_da.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_de.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_el.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_es.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_et.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_fi.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_fr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_he.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_hr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_hu.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_id.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_it.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ja.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ko.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_lt.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_lv.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_nb.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_nl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pt-BR.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pt-PT.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ro.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ru.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sk.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sv.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_th.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_tr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_uk.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_vi.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-CN.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-HK.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-TW.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ar.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_bg.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_bs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ca.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_cs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_da.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_de.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_el.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_es.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_et.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_fi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_fr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_he.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_hr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_hu.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_id.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_it.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ja.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ko.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_lt.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_lv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_nb.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_nl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_pl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_pt-BR.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_pt-PT.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ro.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ru.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_th.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_tr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_uk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_vi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_zh-CN.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_zh-HK.json +1 -1
- package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_zh-TW.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ar.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_bg.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_bs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ca.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_cs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_da.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_de.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_el.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_es.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_et.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_fi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_fr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_he.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_hr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_hu.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_id.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_it.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ja.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ko.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_lt.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_lv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_nb.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_nl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pt-BR.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pt-PT.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ro.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ru.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_th.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_tr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_uk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_vi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-CN.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-HK.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-TW.json +1 -1
- package/chunks/AtmosphereCompositing.glsl.js +5 -5
- package/chunks/BlendWeights.glsl.js +9 -9
- package/chunks/Blur.glsl.js +1 -1
- package/chunks/ChapmanAtmosphere.glsl.js +8 -7
- package/chunks/CheckerBoard.glsl.js +5 -5
- package/chunks/CloudsComposition.glsl.js +3 -3
- package/chunks/ColorMaterial.glsl.js +12 -12
- package/chunks/ComponentShader.glsl.js +8 -8
- package/chunks/DefaultMaterial.glsl.js +43 -43
- package/chunks/EdgeDetect.glsl.js +2 -2
- package/chunks/EdgeShader.glsl.js +1 -1
- package/chunks/Fog.glsl.js +2 -2
- package/chunks/HUDMaterial.glsl.js +1 -1
- package/chunks/HighlightApply.glsl.js +4 -4
- package/chunks/ImageMaterial.glsl.js +7 -7
- package/chunks/LineCallout.glsl.js +5 -5
- package/chunks/LineMarker.glsl.js +1 -1
- package/chunks/Path.glsl.js +16 -16
- package/chunks/Pattern.glsl.js +33 -32
- package/chunks/Precipitation.glsl.js +3 -3
- package/chunks/RealisticTree.glsl.js +7 -7
- package/chunks/RibbonLine.glsl.js +41 -41
- package/chunks/SSAO.glsl.js +1 -1
- package/chunks/ShadedColorMaterial.glsl.js +1 -1
- package/chunks/ShadowCastAccumulate.glsl.js +4 -3
- package/chunks/ShadowCastVisualize.glsl.js +1 -1
- package/chunks/ShadowHighlight.glsl.js +14 -11
- package/chunks/Terrain.glsl.js +15 -13
- package/chunks/Theme.js +1 -1
- package/chunks/Tooltip.js +1 -1
- package/chunks/WaterSurface.glsl.js +18 -18
- package/chunks/boundedPlane.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/chunks/mat3.js +1 -1
- package/chunks/quat.js +1 -1
- package/chunks/quat2.js +1 -1
- package/chunks/quatf32.js +1 -1
- package/chunks/vec2.js +1 -1
- package/chunks/vec3.js +1 -1
- package/chunks/vec3f32.js +1 -1
- package/copyright.txt +1 -1
- package/core/Clonable.js +1 -1
- package/core/Collection.js +1 -1
- package/core/Evented.js +1 -1
- package/core/Handles.js +1 -1
- package/core/JSONSupport.js +1 -1
- package/core/MemCache.js +1 -1
- package/core/MemCachePool.js +5 -0
- package/core/Promise.js +1 -1
- package/core/Queue.js +1 -1
- package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
- package/core/ReentrantObjectPool.js +1 -1
- package/core/accessorSupport/MultiOriginStore.js +1 -1
- package/core/accessorSupport/PropertyOrigin.js +1 -1
- package/core/accessorSupport/extensions/serializableProperty/reader.js +1 -1
- package/core/accessorSupport/trackingUtils.js +1 -1
- package/core/accessorSupport/utils.js +1 -1
- package/core/accessorSupport/watch.js +1 -1
- package/core/clock.js +1 -1
- package/core/events.js +1 -1
- package/core/fontUtils.js +1 -1
- package/core/handleUtils.js +1 -1
- package/core/libs/gl-matrix-2/factories/quatf32.js +1 -1
- package/core/libs/gl-matrix-2/factories/vec3f32.js +1 -1
- package/core/libs/gl-matrix-2/math/mat3.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/libs/gl-matrix-2/math/vec2.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/core/libs/gl-matrix-2/vec3.js +1 -1
- package/core/libs/rbush/PooledRBush.js +1 -1
- package/core/maybe.js +1 -1
- package/core/perspectiveUtils.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/scheduling.js +1 -1
- package/core/support/OwningCollection.js +1 -1
- package/core/support/WatchUpdatingTracking.js +1 -1
- package/core/time.js +1 -1
- package/core/timeUtils.js +1 -1
- package/core/unitFormatUtils.js +1 -1
- package/core/unitUtils.js +1 -1
- package/core/urlUtils.js +1 -1
- package/core/watchUtils.js +1 -1
- package/core/workers/RemoteClient.js +1 -1
- package/core/workers/request.js +1 -1
- package/core/workers/workers.js +1 -1
- package/form/elements/RelationshipElement.d.ts +4 -0
- package/geometry/Mesh.js +1 -1
- package/geometry/Polygon.js +1 -1
- package/geometry/support/DoubleArray.js +1 -1
- package/geometry/support/MeshComponent.js +1 -1
- package/geometry/support/MeshMaterial.js +1 -1
- package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
- package/geometry/support/MeshTexture.js +1 -1
- package/geometry/support/MeshVertexAttributes.js +1 -1
- package/geometry/support/axisAngleDegrees.js +1 -1
- package/geometry/support/coordsUtils.js +1 -1
- package/geometry/support/meshUtils/External.js +1 -1
- package/geometry/support/meshUtils/bounds.js +5 -0
- package/geometry/support/meshUtils/centerAt.js +1 -1
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/meshUtils/projection.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/geometry/support/meshVertexSpaceUtils.js +5 -0
- package/geometry/support/plane.js +1 -1
- package/geometry/support/rotate.js +1 -1
- package/geometry/support/triangulationUtils.js +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +2665 -476
- package/intl/date.js +1 -1
- package/intl/locale.js +1 -1
- package/intl/messages.js +1 -1
- package/intl/number.js +1 -1
- package/layers/FeatureLayer.js +1 -1
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/KnowledgeGraphLayer.js +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/MapImageLayer.js +1 -1
- package/layers/OrientedImageryLayer.js +1 -1
- package/layers/RouteLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/StreamLayer.js +1 -1
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/TileLayer.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/controllers/StreamController.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/attributeSupport.js +1 -1
- package/layers/graphics/editingSupport.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/graphics/sources/MemorySource.js +1 -1
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/graphics/sources/WFSSource.js +1 -1
- package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
- package/layers/graphics/sources/support/uploadAssets.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +4 -0
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +5 -0
- package/layers/knowledgeGraph/{KnowledgeGraphSubLayerBase.js → KnowledgeGraphSublayerBase.js} +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/EditBusLayer.js +1 -1
- package/layers/mixins/FeatureLayerBase.js +1 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/core/bestImageUtils.js +1 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/transformations/groundToImageUtils.js +1 -1
- package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
- package/layers/support/ElevationQuery.js +1 -1
- package/layers/support/ElevationSampler.js +1 -1
- package/layers/support/ExportImageParameters.js +1 -1
- package/layers/support/ExportWMSImageParameters.js +1 -1
- package/layers/support/FeatureReductionBinning.js +1 -1
- package/layers/support/FeatureReductionCluster.js +1 -1
- package/layers/support/FetchAssociatedFeatureLayer.js +1 -1
- package/layers/support/RasterFunction.js +1 -1
- package/layers/support/RasterFunctionInfo.js +5 -0
- package/layers/support/RasterFunctionProperties.js +5 -0
- package/layers/support/RasterFunctionTemplate.js +5 -0
- package/layers/support/RasterFunctionVariable.js +5 -0
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/TelemetryData.js +1 -1
- package/layers/support/TelemetryDisplay.js +1 -1
- package/layers/support/VideoTimeExtent.js +1 -1
- package/layers/support/capabilities.js +1 -1
- package/layers/support/editableLayers.js +1 -1
- package/layers/support/featureLayerUtils.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/imageryRendererUtils.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/rasterDatasets/BaseRaster.js +1 -1
- package/layers/support/rasterEnums.js +1 -1
- package/layers/support/rasterFunctions/BaseRasterFunction.js +1 -1
- package/layers/support/rasterFunctions/colormaps.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/layers/video/VideoCameraSensorModel.js +5 -0
- package/layers/video/VideoController.js +5 -0
- package/layers/video/videoUtils.js +5 -0
- package/layers/voxel/VoxelVolume.js +1 -1
- package/layers/voxel/voxelPlaneUtils.js +1 -1
- package/networks/Network.js +1 -1
- package/networks/support/TopologyValidationJobInfo.js +1 -1
- package/networks/support/TraceJobInfo.d.ts +4 -0
- package/package.json +3 -3
- package/popup/support/FieldInfoFormat.js +1 -1
- package/portal/PortalGroup.js +1 -1
- package/portal/PortalItem.js +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/portal/support/portalItemUtils.js +1 -1
- package/renderers/SimpleRenderer.js +1 -1
- package/renderers/support/ClassBreakInfo.js +1 -1
- package/renderers/support/UniqueValueInfo.js +1 -1
- package/renderers/support/colorRampUtils.js +1 -1
- package/renderers/support/commonProperties.js +1 -1
- package/renderers/support/types.js +1 -1
- package/renderers/support/utils.js +1 -1
- package/request.js +1 -1
- package/rest/knowledgeGraph/GraphApplyEditsResult.js +1 -1
- package/rest/places.js +1 -1
- package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
- package/rest/support/PlacesQueryResult.js +1 -1
- package/rest/support/meshFeatureSet.js +1 -1
- package/smartMapping/labels/bins.d.ts +4 -0
- package/smartMapping/labels/bins.js +5 -0
- package/smartMapping/labels/clusters.js +1 -1
- package/smartMapping/labels/support/utils.js +5 -0
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/dotDensity.js +1 -1
- package/smartMapping/renderers/heatmap.js +1 -1
- package/smartMapping/renderers/location.js +1 -1
- package/smartMapping/renderers/pieChart.js +1 -1
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/support/binningUtils.js +1 -1
- package/smartMapping/symbology/color.js +1 -1
- package/smartMapping/symbology/flow.js +1 -1
- package/smartMapping/symbology/support/colors.js +1 -1
- package/statistics/utils.js +1 -1
- package/support/AnalysesCollection.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/basemapUtils.js +1 -1
- package/support/featureFlags.js +1 -1
- package/support/requestUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/effects/EffectBuffer.js +1 -1
- package/symbols/cim/effects/EffectDonut.js +1 -1
- package/symbols/cim/effects/EffectOffset.js +1 -1
- package/symbols/support/previewCIMSymbol.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/symbols/support/utils.js +1 -1
- package/symbols/support/webStyleSymbolUtils.js +1 -1
- package/versionManagement/VersionManagementService.js +1 -1
- package/versionManagement/support/versionManagementUtils.js +1 -1
- package/views/2d/LabelManager.js +1 -1
- package/views/2d/MapViewConstraints.js +1 -1
- package/views/2d/PaddedViewState.js +1 -1
- package/views/2d/ViewState.js +1 -1
- package/views/2d/ViewStateManager.js +5 -0
- package/views/2d/engine/flow/FlowDisplayObject.js +1 -1
- package/views/2d/engine/imagery/RasterVFTile.js +1 -1
- package/views/2d/engine/vectorTiles/RenderBucket.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
- package/views/2d/engine/webgl/BufferPool.js +1 -1
- package/views/2d/engine/webgl/OverlayContainer.js +1 -1
- package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
- package/views/2d/engine/webgl/WGLTile.js +1 -1
- package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
- package/views/2d/engine/webgl/animatedFormats/AnimatableTextureResource.js +1 -1
- package/views/2d/engine/webgl/animatedFormats/utils.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLBrushHeatmap.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/Buffer.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/Geometry.js +1 -1
- package/views/2d/engine/webgl/effects/highlight/HighlightSurfaces.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
- package/views/2d/input/MapViewInputManager.js +1 -1
- package/views/2d/interactive/SnappingVisualizer2D.js +1 -1
- package/views/2d/interactive/editingTools/TransformTool.js +1 -1
- package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/GraphicsLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/KMLLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/MapNotesLayerView2D.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/RouteLayerView2D.js +1 -1
- package/views/2d/layers/StreamLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/Pipeline.js +1 -1
- package/views/2d/layers/features/Store2D.js +1 -1
- package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
- package/views/2d/layers/features/processors/BaseProcessor.js +1 -1
- package/views/2d/layers/features/processors/HeatmapProcessor.js +1 -1
- package/views/2d/layers/features/processors/SymbolProcessor.js +1 -1
- package/views/2d/layers/features/schemaUtils.js +1 -1
- package/views/2d/layers/features/sources/SnapshotFeatureSource.js +1 -1
- package/views/2d/layers/features/sources/StreamConnectionState.js +1 -1
- package/views/2d/layers/features/sources/StreamSource.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/tileRenderers/BaseTileRenderer.js +1 -1
- package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/layers/imagery/VectorFieldView2D.js +1 -1
- package/views/2d/layers/support/DebugOverlay.js +1 -1
- package/views/2d/navigation/MapViewNavigation.js +1 -1
- package/views/2d/navigation/ZoomBox.js +1 -1
- package/views/2d/navigation/actions/Pinch.js +1 -1
- package/views/2d/navigation/actions/Rotate.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/analysis/AnalysisViewManager3D.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementPathHelper.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
- package/views/3d/analysis/Dimension/DimensionController.js +1 -1
- package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionVisualization.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
- package/views/3d/analysis/DimensionAnalysisView3D.js +1 -1
- package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
- package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightVisualization.js +1 -1
- package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/analysis/Slice/SliceVisualization.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/analysis/support/viewUtils.js +1 -1
- package/views/3d/camera/constraintUtils/distance.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
- package/views/3d/environment/CloudsComposition.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/NoiseTextureAtlas.js +1 -1
- package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
- package/views/3d/environment/weatherUtils.js +1 -1
- package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
- package/views/3d/externalRenderers/RenderContext.js +1 -1
- package/views/3d/glTF/internal/resourceUtils.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/lineGraphicVisualElementUtils.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
- package/views/3d/interactive/editingTools/manipulatorUtils.js +1 -1
- package/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +1 -1
- package/views/3d/interactive/editingTools/originGraphicVisualElementUtils.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/GraphicReshapeTool.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/edgeOffsetUtils.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateObjectSymbol3DAdapter.js +1 -1
- package/views/3d/interactive/manipulatorUtils.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
- package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
- package/views/3d/interactive/visualElements/EngineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LabelVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LaserlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MarkerVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/Object3DVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/SlicePlaneVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/VisualElement.js +1 -1
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/BuildingSublayerView3D.js +1 -1
- package/views/3d/layers/DimensionLayerView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/I3SMeshViewLabeler.js +1 -1
- package/views/3d/layers/I3SMeshWorkerHandle.js +1 -1
- package/views/3d/layers/II3SMeshView3D.js +1 -1
- package/views/3d/layers/ImageryLayerView3D.js +1 -1
- package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/LayerView3D.js +1 -1
- package/views/3d/layers/LineOfSightLayerView3D.js +1 -1
- package/views/3d/layers/MapImageLayerView3D.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudWorker.js +1 -1
- package/views/3d/layers/RouteLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/StreamLayerView3D.js +1 -1
- package/views/3d/layers/TileLayerView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/WMSLayerView3D.js +1 -1
- package/views/3d/layers/WMTSLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/ElevationQuery.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
- package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/graphics/polygonUtils.js +1 -1
- package/views/3d/layers/graphics/webStyleUtils.js +1 -1
- package/views/3d/layers/i3s/Highlights.js +1 -1
- package/views/3d/layers/i3s/I3SClientMaterialUtil.js +5 -0
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SFrameTask.js +1 -1
- package/views/3d/layers/i3s/I3SGeometryUtil.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
- package/views/3d/layers/i3s/I3SUtil.js +1 -1
- package/views/3d/layers/i3s/featureEditing.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/FeatureTileTree3D.js +1 -1
- package/views/3d/layers/support/FeatureVisibilityFilter.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/layers/support/SceneLayerViewRequiredFields.js +1 -1
- package/views/3d/layers/support/uvUtils.js +1 -1
- package/views/3d/state/Frustum.js +1 -1
- package/views/3d/state/GoToOperation.js +1 -1
- package/views/3d/state/ViewState.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
- package/views/3d/state/controllers/global/ZoomController.js +1 -1
- package/views/3d/state/controllers/local/ZoomController.js +1 -1
- package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
- package/views/3d/support/CombinedElevationProvider.js +1 -1
- package/views/3d/support/DisplayQualityProfile.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/LaserLineRenderer.js +1 -1
- package/views/3d/support/MemoryController.js +1 -1
- package/views/3d/support/RenderCoordsHelper.js +1 -1
- package/views/3d/support/SceneViewPerformanceInfo.js +1 -1
- package/views/3d/support/SharedSymbolResources.js +1 -1
- package/views/3d/support/StreamTextureCollection.js +1 -1
- package/views/3d/support/geometryUtils/ray.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
- package/views/3d/support/renderInfoUtils/line.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/terrain/Overlay.js +1 -1
- package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderTarget.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/terrain/TilingSchemeLogic.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +5 -0
- package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js +3 -9
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +13 -15
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +30 -35
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/hud/{HUDUniforms.js → HUDRenderStyle.js} +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js +5 -6
- package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/output/ReadLinearDepth.glsl.js +5 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js +10 -10
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +18 -16
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +8 -8
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +9 -9
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloat16Encoding.glsl.js +25 -0
- package/views/3d/webgl-engine/core/shaderModules/Matrix4sDrawUniform.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/Uniform.js +1 -1
- package/views/3d/webgl-engine/core/util/TwoVectorPosition.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
- package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/Highlight.js +1 -1
- package/views/3d/webgl-engine/lib/MagnifierHelper.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
- package/views/3d/webgl-engine/lib/PathCapBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
- package/views/3d/webgl-engine/lib/Program.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
- package/views/3d/webgl-engine/lib/SSAOHelper.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/VertexAttribute.js +1 -1
- package/views/3d/webgl-engine/lib/basicInterfaces.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/VisualVariablePassParameters.js +1 -1
- package/views/3d/webgl-engine/materials/WaterGLMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/materials/pbrUtils.js +5 -0
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/VaoCache.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/SMAAPassParameters.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowHighlight.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowHighlightTechnique.js +1 -1
- package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/LayerViewManager.js +1 -1
- package/views/MapView.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/ToolViewManager.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/DrawTool.js +1 -1
- package/views/draw/support/GraphicMover.js +1 -1
- package/views/draw/support/HighlightHelper.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/createUtils.js +1 -1
- package/views/draw/support/surfaceCoordinateSystems.js +1 -1
- package/views/input/ViewEvents.js +1 -1
- package/views/interactive/SegmentLabels.js +1 -1
- package/views/interactive/coordinateHelper.js +1 -1
- package/views/interactive/editGeometry/EditGeometry.js +1 -1
- package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/interactive/editGeometry/operations/ScaleVertex.js +1 -1
- package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/RightAngleSnapper.js +1 -1
- package/views/interactive/snapping/SnappingConstraint.js +1 -1
- package/views/interactive/snapping/SnappingDragPipelineStep.js +1 -1
- package/views/interactive/snapping/SnappingManager.js +1 -1
- package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/I3SSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorkerHandle.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
- package/views/interactive/support/viewUtils.js +1 -1
- package/views/layers/FeatureLayerView.js +1 -1
- package/views/layers/GroupLayerView.js +1 -1
- package/views/layers/LayerView.js +1 -1
- package/views/layers/RefreshableLayerView.js +1 -1
- package/views/layers/StreamLayerView.js +1 -1
- package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
- package/views/overlay/LineOverlayItem.js +1 -1
- package/views/overlay/TextOverlayItem.js +1 -1
- package/views/overlay/ViewOverlay.js +1 -1
- package/views/support/QueueProcessor.js +1 -1
- package/views/support/euclideanAreaMeasurementUtils.js +1 -1
- package/views/support/geometry2dUtils.js +1 -1
- package/views/support/geometry3dUtils.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/ui/DefaultUI.js +1 -1
- package/views/ui/UI.js +1 -1
- package/views/webgl/AppleAmdDriverHelper.js +5 -0
- package/views/webgl/BufferObject.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/Measurement.js +1 -1
- package/views/webgl/Renderbuffer.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/TextureDescriptor.js +1 -1
- package/views/webgl/VertexArrayObject.js +1 -1
- package/views/webgl/heatmapTextureUtils.js +1 -1
- package/views/webgl/testAppleAmdDrawArrays.js +1 -1
- package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
- package/{layers/orientedImagery/core/imageryUtils.js → webdoc/interfaces.js} +1 -1
- package/webdoc/support/writeUtils.js +1 -1
- package/webmap/initialViewPropertiesUtils.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/Attachments.js +1 -1
- package/widgets/Attribution/AttributionViewModel.js +1 -1
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
- package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/BasemapLayerList/BasemapLayerListViewModel.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/Bookmarks/css.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/BuildingExplorer/BuildingDisciplinesViewModel.js +1 -1
- package/widgets/BuildingExplorer/BuildingExplorerViewModel.js +1 -1
- package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.js +1 -1
- package/widgets/Compass/CompassViewModel.js +1 -1
- package/widgets/Daylight/DaylightViewModel.js +1 -1
- package/widgets/Directions/DirectionsViewModel.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/CreateWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/Edits.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflowData.js +1 -1
- package/widgets/Editor/Upload.js +1 -1
- package/widgets/Editor/Workflow.js +1 -1
- package/widgets/Editor/modelUploadUtils.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileController.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileInteraction.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
- package/widgets/ElevationProfile/support/ElevationProfileView.js +1 -1
- package/widgets/ElevationProfile/support/InputRepresentation3D.js +1 -1
- package/widgets/ElevationProfile/support/ProfileLines3D.js +1 -1
- package/widgets/Feature/FeatureAttachments.js +1 -1
- package/widgets/Feature/FeatureContent/FeatureContentViewModel.js +1 -1
- package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
- package/widgets/Feature/FeatureMedia/pieChart.js +1 -1
- package/widgets/Feature/FeatureMedia/xyChart.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
- package/widgets/Feature/FeatureRelationship.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/Feature/support/relatedFeatureUtils.js +1 -1
- package/widgets/FeatureForm/EditableInput.d.ts +4 -0
- package/widgets/FeatureForm/EditableInput.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/FieldInput.d.ts +4 -0
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
- package/widgets/FeatureForm/GroupInput.d.ts +4 -0
- package/widgets/FeatureForm/GroupInput.js +1 -1
- package/widgets/FeatureForm/InputBase.d.ts +4 -0
- package/widgets/FeatureForm/InputBase.js +1 -1
- package/widgets/FeatureForm/InputField.d.ts +4 -0
- package/widgets/FeatureForm/InputFieldGroup.d.ts +4 -0
- package/widgets/FeatureForm/RelationshipInput.d.ts +4 -0
- package/widgets/FeatureForm/RelationshipInput.js +1 -1
- package/widgets/FeatureForm/css.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +11 -11
- package/widgets/FeatureTable/Grid/support/ButtonMenu.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/FeatureTemplates/ItemList.js +1 -1
- package/widgets/FeatureTemplates.js +1 -1
- package/widgets/Features/FeaturesViewModel.d.ts +4 -0
- package/widgets/Features.d.ts +4 -0
- package/widgets/Features.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/Home.js +1 -1
- package/widgets/LayerList/ListItem.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/styles/Card.js +1 -1
- package/widgets/Legend/styles/Classic.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/styleUtils.js +1 -1
- package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
- package/widgets/Locate/LocateViewModel.js +1 -1
- package/widgets/Locate.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Popup.js +1 -1
- package/widgets/Print/FileLink.js +1 -1
- package/widgets/ScaleRangeSlider.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/ShadowCast/ShadowTooltipViewModel.js +1 -1
- package/widgets/ShadowCast.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/TableList/ListItem.js +1 -1
- package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
- package/widgets/Track/TrackViewModel.js +1 -1
- package/widgets/Track.js +1 -1
- package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
- package/widgets/UtilityNetworkAssociations.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
- package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +4 -0
- package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +1 -1
- package/widgets/UtilityNetworkValidateTopology.d.ts +4 -0
- package/widgets/UtilityNetworkValidateTopology.js +1 -1
- package/widgets/ValuePicker/ValuePickerBaseComponent.js +1 -1
- package/widgets/ValuePicker/ValuePickerCollection.d.ts +4 -0
- package/widgets/ValuePicker/ValuePickerCombobox.d.ts +4 -0
- package/widgets/ValuePicker/ValuePickerCombobox.js +1 -1
- package/widgets/ValuePicker/ValuePickerLabel.d.ts +4 -0
- package/widgets/ValuePicker/ValuePickerSlider.d.ts +4 -0
- package/widgets/ValuePicker/ValuePickerSlider.js +1 -1
- package/widgets/ValuePicker.d.ts +4 -0
- package/widgets/ValuePicker.js +1 -1
- package/widgets/Weather/WeatherViewModel.js +1 -1
- package/widgets/Widget.js +1 -1
- package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.js +1 -1
- package/widgets/support/ColorPicker.js +1 -1
- package/widgets/support/GeolocationPositioning.js +1 -1
- package/widgets/support/Popover.js +1 -1
- package/widgets/support/Selector2D/SelectionOperation2D.js +1 -1
- package/widgets/support/Selector2D.js +1 -1
- package/widgets/support/SnappingControls/SnappingControlsViewModel.js +1 -1
- package/widgets/support/chartUtils.js +1 -1
- package/widgets/support/chartUtilsAm5.js +1 -1
- package/widgets/support/componentsUtils.js +1 -1
- package/widgets/support/geolocationUtils.js +1 -1
- package/widgets/support/jsxWidgetSupport.js +1 -1
- package/assets/esri/core/workers/chunks/030b43764f945cb1f8b0.js +0 -1
- package/assets/esri/core/workers/chunks/03bc91648286b9b75e30.js +0 -1
- package/assets/esri/core/workers/chunks/03dba2a2bbc363369a0f.js +0 -1
- package/assets/esri/core/workers/chunks/0618fb0058f39ecd363f.js +0 -1
- package/assets/esri/core/workers/chunks/099cacba30fd93af8ebc.js +0 -1
- package/assets/esri/core/workers/chunks/0adcc644ab424469a62d.js +0 -1
- package/assets/esri/core/workers/chunks/0fcb8d408696075338e2.js +0 -1
- package/assets/esri/core/workers/chunks/1257825488d2494e901d.js +0 -1
- package/assets/esri/core/workers/chunks/14d97dc471ff449bb12d.js +0 -1
- package/assets/esri/core/workers/chunks/16e459b16bdd6e1a821b.js +0 -1
- package/assets/esri/core/workers/chunks/187c3b971ed0fc4363ef.js +0 -1
- package/assets/esri/core/workers/chunks/18db07d739a713cc0465.js +0 -1
- package/assets/esri/core/workers/chunks/1fd7e2d91d0d76ba1802.js +0 -1
- package/assets/esri/core/workers/chunks/20ea76301f58a4145223.js +0 -1
- package/assets/esri/core/workers/chunks/270471cd31609e303496.js +0 -1
- package/assets/esri/core/workers/chunks/293315442f5afe8069dc.js +0 -1
- package/assets/esri/core/workers/chunks/2e627c94e57c924e5917.js +0 -1095
- package/assets/esri/core/workers/chunks/39288fa69561d21f04f8.js +0 -1
- package/assets/esri/core/workers/chunks/39714837f9d3708e3806.js +0 -1
- package/assets/esri/core/workers/chunks/3a63ab2bff22950ffadf.js +0 -1
- package/assets/esri/core/workers/chunks/3ce1fe5e7a841f6dc355.js +0 -1
- package/assets/esri/core/workers/chunks/3d511e09f36002e1032e.js +0 -1
- package/assets/esri/core/workers/chunks/431d54867bc3bb848fbb.js +0 -1
- package/assets/esri/core/workers/chunks/4474512927623c7bb16c.js +0 -1
- package/assets/esri/core/workers/chunks/45e5ad704d18dd0857ce.js +0 -1
- package/assets/esri/core/workers/chunks/4f2e49bbbf667b68d8a7.js +0 -1
- package/assets/esri/core/workers/chunks/50e6bf76dcb372183824.js +0 -1
- package/assets/esri/core/workers/chunks/50f929d9453fb058cf47.js +0 -1
- package/assets/esri/core/workers/chunks/5270fedc8c7951807eb4.js +0 -1
- package/assets/esri/core/workers/chunks/528107548340cfc6a8f0.js +0 -1
- package/assets/esri/core/workers/chunks/55486c644e8b01326a0d.js +0 -1
- package/assets/esri/core/workers/chunks/5576858f56314afcb4d5.js +0 -1
- package/assets/esri/core/workers/chunks/571dac507622948ac03e.js +0 -1
- package/assets/esri/core/workers/chunks/5a4c04bf4f57e74457c5.js +0 -1
- package/assets/esri/core/workers/chunks/5bbe1495fa421394d12e.js +0 -1
- package/assets/esri/core/workers/chunks/621c91af7c051d44d378.js +0 -1
- package/assets/esri/core/workers/chunks/673d6e284d5e85a107ca.js +0 -1
- package/assets/esri/core/workers/chunks/6ab0c2e27ba6b1b4afc7.js +0 -1
- package/assets/esri/core/workers/chunks/6b0e5728b2dbd23b0834.js +0 -1
- package/assets/esri/core/workers/chunks/6d80f81bf6ad97a7e69e.js +0 -1
- package/assets/esri/core/workers/chunks/6e7178de0b2c3d2f7e6b.js +0 -1
- package/assets/esri/core/workers/chunks/70d6e5edf05ef7079fa8.js +0 -1
- package/assets/esri/core/workers/chunks/71bdf8f10aee0077f681.js +0 -1
- package/assets/esri/core/workers/chunks/72b2c3c8e76da699690c.js +0 -1
- package/assets/esri/core/workers/chunks/749fafd2481d37b5e2a0.js +0 -1
- package/assets/esri/core/workers/chunks/785a6c925f29bc962992.js +0 -1
- package/assets/esri/core/workers/chunks/78ce0b1af62435d8ebf4.js +0 -1
- package/assets/esri/core/workers/chunks/791f529e90135398b3d5.js +0 -1
- package/assets/esri/core/workers/chunks/7bbdba52157da13a01fc.js +0 -1
- package/assets/esri/core/workers/chunks/83298b1bdbcbe39d8ba1.js +0 -1
- package/assets/esri/core/workers/chunks/84f897e5910752e7aebc.js +0 -1
- package/assets/esri/core/workers/chunks/858961981aa2a57d37db.js +0 -1
- package/assets/esri/core/workers/chunks/8cc8d88e5dd1e586eb04.js +0 -1
- package/assets/esri/core/workers/chunks/8d3abfe6fdc5ac8d6cb7.js +0 -1
- package/assets/esri/core/workers/chunks/924e4a18d8403d1caea3.js +0 -1
- package/assets/esri/core/workers/chunks/94c1a2d31b3253cf6062.js +0 -1
- package/assets/esri/core/workers/chunks/96d339abcd917f1f0ae1.js +0 -1
- package/assets/esri/core/workers/chunks/97dbfe04136aa5e4cd4d.js +0 -1
- package/assets/esri/core/workers/chunks/9ab400a89dd701778d2c.js +0 -1
- package/assets/esri/core/workers/chunks/9de820b7df38b948c92b.js +0 -1
- package/assets/esri/core/workers/chunks/9e209c6a2aded37f90fb.js +0 -1
- package/assets/esri/core/workers/chunks/9fe349f43d5ff5a4ac2d.js +0 -1
- package/assets/esri/core/workers/chunks/a12d1d3addeae0771c00.js +0 -1
- package/assets/esri/core/workers/chunks/a1c31bb8c12831539328.js +0 -1
- package/assets/esri/core/workers/chunks/a2484a3993ec81a095b4.js +0 -1
- package/assets/esri/core/workers/chunks/a5bd457d0284419b4f34.js +0 -1
- package/assets/esri/core/workers/chunks/a6c2fbf8aefb2e793ce3.js +0 -1
- package/assets/esri/core/workers/chunks/a719cb801d647234546c.js +0 -1
- package/assets/esri/core/workers/chunks/a95bee31d06e69a0d56d.js +0 -1
- package/assets/esri/core/workers/chunks/ab2b56442fee12be5c68.js +0 -1
- package/assets/esri/core/workers/chunks/ad215f7279e6b0a0d6f3.js +0 -1
- package/assets/esri/core/workers/chunks/af5c9cbbcb6f56893560.js +0 -1
- package/assets/esri/core/workers/chunks/b1d88f8e528bf7092f35.js +0 -1
- package/assets/esri/core/workers/chunks/b4e2dc6b3d06b426e596.js +0 -1
- package/assets/esri/core/workers/chunks/b6b2cac44a5189afdc7a.js +0 -1
- package/assets/esri/core/workers/chunks/ba43e85d345393f47778.js +0 -1
- package/assets/esri/core/workers/chunks/ba6024465308c248170b.js +0 -1
- package/assets/esri/core/workers/chunks/bc2c4b00168f9251f693.js +0 -1
- package/assets/esri/core/workers/chunks/bead656f8da33e023b2b.js +0 -1
- package/assets/esri/core/workers/chunks/c2cb9fa18c77f0c5104e.js +0 -1
- package/assets/esri/core/workers/chunks/c2fb0f3179b9ff294b68.js +0 -1
- package/assets/esri/core/workers/chunks/cb8270d50f152fff2804.js +0 -1
- package/assets/esri/core/workers/chunks/d0ff968e42116f592065.js +0 -1
- package/assets/esri/core/workers/chunks/d265da47f6c752a40ac1.js +0 -1
- package/assets/esri/core/workers/chunks/d26eaac455346f4df51a.js +0 -1
- package/assets/esri/core/workers/chunks/d30be8788a3ea70f1edf.js +0 -1
- package/assets/esri/core/workers/chunks/d3768c90b419386b65f9.js +0 -1
- package/assets/esri/core/workers/chunks/d64c271c173797d98286.js +0 -1
- package/assets/esri/core/workers/chunks/d6b6bb8aecc85d2a3f6b.js +0 -1
- package/assets/esri/core/workers/chunks/d725dbbdeb05322e6d88.js +0 -1
- package/assets/esri/core/workers/chunks/d95ca50ca7af4c222036.js +0 -1
- package/assets/esri/core/workers/chunks/da6db22616bd95ee5380.js +0 -1
- package/assets/esri/core/workers/chunks/df3e497d12ed77bae168.js +0 -1
- package/assets/esri/core/workers/chunks/df6f54607ad4c6e28d1d.js +0 -1
- package/assets/esri/core/workers/chunks/e1b2076d0040fcb7d864.js +0 -1
- package/assets/esri/core/workers/chunks/e2f4e1c4fe166d249b2e.js +0 -1
- package/assets/esri/core/workers/chunks/e46cd2a6da8d5cba1db6.js +0 -1
- package/assets/esri/core/workers/chunks/e5bbd4cc5edbf7ab3624.js +0 -1
- package/assets/esri/core/workers/chunks/e72150a38b202b68be2b.js +0 -1
- package/assets/esri/core/workers/chunks/e8db7303b2f63c0ec0c9.js +0 -1
- package/assets/esri/core/workers/chunks/ea9e25eaaada36253da3.js +0 -1
- package/assets/esri/core/workers/chunks/eca24f316629ad0c0609.js +0 -1
- package/assets/esri/core/workers/chunks/f21aa0bfc6c8f809ea86.js +0 -1
- package/assets/esri/core/workers/chunks/f3462020ee3b9c6f3822.js +0 -1
- package/assets/esri/core/workers/chunks/f720967ba8c5486a26a2.js +0 -1
- package/assets/esri/core/workers/chunks/fb080339bfaf32731ca6.js +0 -1
- package/assets/esri/core/workers/chunks/fdf58386a67e54c09bfb.js +0 -1
- package/layers/knowledgeGraph/KnowledgeGraphSubLayer.d.ts +0 -4
- package/layers/knowledgeGraph/KnowledgeGraphSubLayer.js +0 -5
- package/layers/orientedImagery/core/Affixes.js +0 -5
- package/layers/orientedImagery/core/CameraProperties.js +0 -5
- package/layers/orientedImagery/core/ImageProperties.js +0 -5
- package/layers/orientedImagery/core/ImageryTypes.js +0 -5
- package/layers/video/VideoEngine.js +0 -5
- package/views/3d/webgl-engine/lib/AppleAmdDriverHelper.js +0 -5
- package/views/3d/webgl-engine/lib/RenderTargetHelper.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[338,4499],{4307:(t,e,i)=>{i.d(e,{d:()=>h,l:()=>f,r:()=>m,s:()=>r,t:()=>_});var s=i(46851);function r(t,e,i){return t[0]=e,t[1]=i,t}function n(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function o(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function a(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function h(t,e){const i=e[0]-t[0],s=e[1]-t[1];return Math.sqrt(i*i+s*s)}function l(t,e){const i=e[0]-t[0],s=e[1]-t[1];return i*i+s*s}function c(t){const e=t[0],i=t[1];return Math.sqrt(e*e+i*i)}function u(t){const e=t[0],i=t[1];return e*e+i*i}function f(t,e,i,s){const r=e[0],n=e[1];return t[0]=r+s*(i[0]-r),t[1]=n+s*(i[1]-n),t}function _(t,e,i){const s=e[0],r=e[1];return t[0]=i[0]*s+i[2]*r+i[4],t[1]=i[1]*s+i[3]*r+i[5],t}function m(t,e,i,s){const r=e[0]-i[0],n=e[1]-i[1],o=Math.sin(s),a=Math.cos(s);return t[0]=r*a-n*o+i[0],t[1]=r*o+n*a+i[1],t}const d=c,p=n,y=o,g=a,x=h,M=l,b=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},angle:function(t,e){const i=t[0],s=t[1],r=e[0],n=e[1];let o=i*i+s*s;o>0&&(o=1/Math.sqrt(o));let a=r*r+n*n;a>0&&(a=1/Math.sqrt(a));const h=(i*r+s*n)*o*a;return h>1?0:h<-1?Math.PI:Math.acos(h)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,i){const s=e[0]*i[1]-e[1]*i[0];return t[0]=t[1]=0,t[2]=s,t},dist:x,distance:h,div:g,divide:a,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const i=t[0],r=t[1],n=e[0],o=e[1],a=(0,s.g)();return Math.abs(i-n)<=a*Math.max(1,Math.abs(i),Math.abs(n))&&Math.abs(r-o)<=a*Math.max(1,Math.abs(r),Math.abs(o))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:d,length:c,lerp:f,max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},mul:y,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const i=e[0],s=e[1];let r=i*i+s*s;return r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t},projectAndScale:function(t,e,i,s,r){let n=e[0]-i[0],o=e[1]-i[1];const a=(s[0]*n+s[1]*o)*(r-1);return n=s[0]*a,o=s[1]*a,t[0]=e[0]+n,t[1]=e[1]+o,t},random:function(t,e){e=e||1;const i=2*(0,s.R)()*Math.PI;return t[0]=Math.cos(i)*e,t[1]=Math.sin(i)*e,t},rotate:m,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},scaleAndAdd:function(t,e,i,s){return t[0]=e[0]+i[0]*s,t[1]=e[1]+i[1]*s,t},set:r,sqrDist:M,sqrLen:b,squaredDistance:l,squaredLength:u,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:p,subtract:n,transformMat2:function(t,e,i){const s=e[0],r=e[1];return t[0]=i[0]*s+i[2]*r,t[1]=i[1]*s+i[3]*r,t},transformMat2d:_,transformMat3:function(t,e,i){const s=e[0],r=e[1];return t[0]=i[0]*s+i[3]*r+i[6],t[1]=i[1]*s+i[4]*r+i[7],t},transformMat4:function(t,e,i){const s=e[0],r=e[1];return t[0]=i[0]*s+i[4]*r+i[12],t[1]=i[1]*s+i[5]*r+i[13],t}},Symbol.toStringTag,{value:"Module"}))},1265:(t,e,i)=>{function s(){return new Float32Array(2)}function r(t,e){const i=new Float32Array(2);return i[0]=t,i[1]=e,i}function n(){return s()}function o(){return r(1,1)}function a(){return r(1,0)}function h(){return r(0,1)}i.d(e,{O:()=>c,Z:()=>l,c:()=>s,f:()=>r});const l=n(),c=o(),u=a(),f=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:f,ZEROS:l,clone:function(t){const e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e},create:s,createView:function(t,e){return new Float32Array(t,e,2)},fromValues:r,ones:o,unitX:a,unitY:h,zeros:n},Symbol.toStringTag,{value:"Module"}))},32243:(t,e,i)=>{function s(t){return t=t||globalThis.location.hostname,l.some((e=>null!=t?.match(e)))}function r(t,e){return t&&(e=e||globalThis.location.hostname)?null!=e.match(n)||null!=e.match(a)?t.replace("static.arcgis.com","staticdev.arcgis.com"):null!=e.match(o)||null!=e.match(h)?t.replace("static.arcgis.com","staticqa.arcgis.com"):t:t}i.d(e,{XO:()=>s,pJ:()=>r});const n=/^devext.arcgis.com$/,o=/^qaext.arcgis.com$/,a=/^[\w-]*\.mapsdevext.arcgis.com$/,h=/^[\w-]*\.mapsqa.arcgis.com$/,l=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local.esri.com$/,n,o,/^jsapps.esri.com$/,a,h]},59255:(t,e,i)=>{var s,r,n;i.d(e,{E9:()=>o,I6:()=>l,Vl:()=>s,bN:()=>h}),(n=s||(s={}))[n.Unknown=0]="Unknown",n[n.Point=1]="Point",n[n.LineString=2]="LineString",n[n.Polygon=3]="Polygon";class o{constructor(t,e){this.x=t,this.y=e}clone(){return new o(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){this.x=t,this.y=e}normalize(){const t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);this.x/=i,this.y/=i}rightPerpendicular(){const t=this.x;this.x=this.y,this.y=-t}move(t,e){this.x+=t,this.y+=e}assign(t){this.x=t.x,this.y=t.y}assignAdd(t,e){this.x=t.x+e.x,this.y=t.y+e.y}assignSub(t,e){this.x=t.x-e.x,this.y=t.y-e.y}rotate(t,e){const i=this.x,s=this.y;this.x=i*t-s*e,this.y=i*e+s*t}scale(t){this.x*=t,this.y*=t}length(){const t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}static distance(t,e){const i=e.x-t.x,s=e.y-t.y;return Math.sqrt(i*i+s*s)}static add(t,e){return new o(t.x+e.x,t.y+e.y)}static sub(t,e){return new o(t.x-e.x,t.y-e.y)}}class a{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class h{constructor(t,e,i,s=8,r=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=s,this._pixelMargin=r,this._tileSize=512*s,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;const i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new o(t,e),this._firstPt=new o(t,e),this._dist=0}lineTo(t,e){const i=this._isIn(t,e),s=new o(t,e),r=o.distance(this._prevPt,s);let n,h,l,c,u,f,_,m;if(i)this._prevIsIn?this._lineTo(t,e,!0):(n=this._prevPt,h=s,l=this._intersect(h,n),this._start=this._dist+r*(1-this._r),this._lineTo(l.x,l.y,!0),this._lineTo(h.x,h.y,!0));else if(this._prevIsIn)h=this._prevPt,n=s,l=this._intersect(h,n),this._lineTo(l.x,l.y,!0),this._lineTo(n.x,n.y,!1);else{const t=this._prevPt,e=s;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{const i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(c=(this._xmin-t.x)/(e.x-t.x),m=t.y+c*(e.y-t.y),m<=this._ymin?f=!1:m>=this._ymax?f=!0:i.push(new a(c,this._xmin,m))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(c=(this._xmax-t.x)/(e.x-t.x),m=t.y+c*(e.y-t.y),m<=this._ymin?f=!1:m>=this._ymax?f=!0:i.push(new a(c,this._xmax,m))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(c=(this._ymin-t.y)/(e.y-t.y),_=t.x+c*(e.x-t.x),_<=this._xmin?u=!1:_>=this._xmax?u=!0:i.push(new a(c,_,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(c=(this._ymax-t.y)/(e.y-t.y),_=t.x+c*(e.x-t.x),_<=this._xmin?u=!1:_>=this._xmax?u=!0:i.push(new a(c,_,this._ymax))),0===i.length)u?f?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):f?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+r*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+r*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=r,this._prevIsIn=i,this._prevPt=s}close(){if(this._line.length>2){const t=this._firstPt,e=this._prevPt;t.x===e.x&&t.y===e.y||this.lineTo(t.x,t.y);const i=this._line;let s=i.length;for(;s>=4&&(i[0].x===i[1].x&&i[0].x===i[s-2].x||i[0].y===i[1].y&&i[0].y===i[s-2].y);)i.pop(),i[0].x=i[s-2].x,i[0].y=i[s-2].y,--s}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(this._type===s.Polygon&&t&&c.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(this._type!==s.LineString)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,e=t.length;if(0===e)return null;const i=[];for(let s=0;s<e;s++)i.push({line:t[s],start:this._starts[s]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,s,r;if(e.x>=this._xmin&&e.x<=this._xmax)s=e.y<=this._ymin?this._ymin:this._ymax,r=(s-t.y)/(e.y-t.y),i=t.x+r*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,r=(i-t.x)/(e.x-t.x),s=t.y+r*(e.y-t.y);else{s=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;const n=(i-t.x)/(e.x-t.x),o=(s-t.y)/(e.y-t.y);n<o?(r=n,s=t.y+n*(e.y-t.y)):(r=o,i=t.x+o*(e.x-t.x))}return this._r=r,new o(i,s)}_pushLine(){this._line&&(this._type===s.Point?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):this._type===s.LineString?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):this._type===s.Polygon&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){this._type!==s.Polygon?i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new o(t,e))):(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new o(t,e)),this._isH=!1,this._isV=!1)}_lineTo(t,e,i){let r,n;if(this._type!==s.Polygon)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(r=this._line[this._line.length-1],r.equals(t,e)))return;this._line.push(new o(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){r=this._line[this._line.length-1];const i=r.x===t,s=r.y===e;if(i&&s)return;this._isH&&i||this._isV&&s?(r.x=t,r.y=e,n=this._line[this._line.length-2],n.x===t&&n.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(n=this._line[this._line.length-2],this._isH=n.x===t,this._isV=n.y===e)):(this._isH=n.x===t,this._isV=n.y===e)):(this._line.push(new o(t,e)),this._isH=i,this._isV=s)}else this._line.push(new o(t,e))}}class l{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];const i=this._ratio;this._line.push(new o(t*i,e*i))}lineTo(t,e){const i=this._ratio;this._line.push(new o(t*i,e*i))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}!function(t){t[t.sideLeft=0]="sideLeft",t[t.sideRight=1]="sideRight",t[t.sideTop=2]="sideTop",t[t.sideBottom=3]="sideBottom"}(r||(r={}));class c{static simplify(t,e,i){if(!i)return;const s=-e,n=t+e,o=-e,a=t+e,h=[],l=[],u=i.length;for(let t=0;t<u;++t){const e=i[t];if(!e||e.length<2)continue;let c,u=e[0];const f=e.length;for(let i=1;i<f;++i)c=e[i],u.x===c.x&&(u.x<=s&&(u.y>c.y?(h.push(t),h.push(i),h.push(r.sideLeft),h.push(-1)):(l.push(t),l.push(i),l.push(r.sideLeft),l.push(-1))),u.x>=n&&(u.y<c.y?(h.push(t),h.push(i),h.push(r.sideRight),h.push(-1)):(l.push(t),l.push(i),l.push(r.sideRight),l.push(-1)))),u.y===c.y&&(u.y<=o&&(u.x<c.x?(h.push(t),h.push(i),h.push(r.sideTop),h.push(-1)):(l.push(t),l.push(i),l.push(r.sideTop),l.push(-1))),u.y>=a&&(u.x>c.x?(h.push(t),h.push(i),h.push(r.sideBottom),h.push(-1)):(l.push(t),l.push(i),l.push(r.sideBottom),l.push(-1)))),u=c}if(0===h.length||0===l.length)return;c.fillParent(i,l,h),c.fillParent(i,h,l);const f=[];c.calcDeltas(f,l,h),c.calcDeltas(f,h,l),c.addDeltas(f,i)}static fillParent(t,e,i){const s=i.length,n=e.length;for(let o=0;o<n;o+=4){const n=e[o],a=e[o+1],h=e[o+2],l=t[n][a-1],c=t[n][a];let f=8092,_=-1;for(let e=0;e<s;e+=4){if(i[e+2]!==h)continue;const s=i[e],n=i[e+1],o=t[s][n-1],a=t[s][n];switch(h){case r.sideLeft:case r.sideRight:if(u(l.y,o.y,a.y)&&u(c.y,o.y,a.y)){const t=Math.abs(a.y-o.y);t<f&&(f=t,_=e)}break;case r.sideTop:case r.sideBottom:if(u(l.x,o.x,a.x)&&u(c.x,o.x,a.x)){const t=Math.abs(a.x-o.x);t<f&&(f=t,_=e)}}}e[o+3]=_}}static calcDeltas(t,e,i){const s=e.length;for(let r=0;r<s;r+=4){const s=[],n=c.calcDelta(r,e,i,s);t.push(e[r]),t.push(e[r+1]),t.push(e[r+2]),t.push(n)}}static calcDelta(t,e,i,s){const r=e[t+3];if(-1===r)return 0;const n=s.length;return n>1&&s[n-2]===r?0:(s.push(r),c.calcDelta(r,i,e,s)+1)}static addDeltas(t,e){const i=t.length;let s=0;for(let e=0;e<i;e+=4){const i=t[e+3];i>s&&(s=i)}for(let n=0;n<i;n+=4){const i=e[t[n]],o=t[n+1],a=s-t[n+3];switch(t[n+2]){case r.sideLeft:i[o-1].x-=a,i[o].x-=a,1===o&&(i[i.length-1].x-=a),o===i.length-1&&(i[0].x-=a);break;case r.sideRight:i[o-1].x+=a,i[o].x+=a,1===o&&(i[i.length-1].x+=a),o===i.length-1&&(i[0].x+=a);break;case r.sideTop:i[o-1].y-=a,i[o].y-=a,1===o&&(i[i.length-1].y-=a),o===i.length-1&&(i[0].y-=a);break;case r.sideBottom:i[o-1].y+=a,i[o].y+=a,1===o&&(i[i.length-1].y+=a),o===i.length-1&&(i[0].y+=a)}}}}const u=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},74499:(t,e,i)=>{i.d(e,{m:()=>d,resolveWebStyleSymbol:()=>m});var s=i(9790),r=i(32243),n=i(20102),o=i(70586),a=i(81271),h=i(48522),l=i(25929),c=i(21878),u=i(71144),f=i(27883),_=i(23203);function m(t,e,i,m){const p=t.name;return null==p?Promise.reject(new n.Z("symbolstyleutils:style-symbol-reference-name-missing","Missing name in style symbol reference")):t.styleName&&"Esri2DPointSymbolsStyle"===t.styleName?function(t,e,i){const s=f.wm.replaceAll(/\{SymbolName\}/gi,t),r=null!=e.portal?e.portal:h.Z.getDefault();return(0,f.EJ)(s,i).then((t=>{const e=(0,f.KV)(t.data);return(0,c.im)(e,{portal:r,url:(0,a.mN)((0,a.Yd)(s)),origin:"portal-item"})}))}(p,e,m):(0,f.n2)(t,e,m).then((t=>function(t,e,i,o,m,p){const y=i&&null!=i.portal?i.portal:h.Z.getDefault(),g={portal:y,url:(0,a.mN)(t.baseUrl),origin:"portal-item"},x=d(e,t.data);if(!x){const t=`The symbol name '${e}' could not be found`;return Promise.reject(new n.Z("symbolstyleutils:symbol-name-not-found",t,{symbolName:e}))}let M=(0,l.f)(m(x,o),g),b=x.thumbnail?.href??null;const P=x.thumbnail&&x.thumbnail.imageData;(0,r.XO)()&&(M=(0,r.pJ)(M)??"",b=(0,r.pJ)(b));const v={portal:y,url:(0,a.mN)((0,a.Yd)(M)),origin:"portal-item"};return(0,f.EJ)(M,p).then((r=>{const n="cimRef"===o?(0,f.KV)(r.data):r.data,a=(0,c.im)(n,v);if(a&&(0,s.dU)(a)){if(b){const t=(0,l.f)(b,g);a.thumbnail=new _.p({url:t})}else P&&(a.thumbnail=new _.p({url:`data:image/png;base64,${P}`}));t.styleUrl?a.styleOrigin=new u.Z({portal:i.portal,styleUrl:t.styleUrl,name:e}):t.styleName&&(a.styleOrigin=new u.Z({portal:i.portal,styleName:t.styleName,name:e}))}return a}))}((0,o.s3)(t),p,e,i,f.v9,m)))}function d(t,e){return e.items.find((e=>e.name===t))}},31363:(t,e,i)=>{i.d(e,{B1:()=>s,DQ:()=>l,DT:()=>a,JJ:()=>r,Or:()=>c,_U:()=>n,k3:()=>u,sX:()=>f});const s=Number.POSITIVE_INFINITY,r=Math.PI,n=2*r,o=128/r,a=r/180,h=1/Math.LN2;function l(t,e){return(t%=e)>=0?t:t+e}function c(t){return l(t*o,256)}function u(t){return Math.log(t)*h}function f(t,e,i){return t*(1-i)+e*i}},30729:(t,e,i)=>{var s,r;function n(t){switch(t){case"left":return s.Left;case"right":return s.Right;case"center":return s.Center}}function o(t){switch(t){case"top":return r.Top;case"middle":return r.Center;case"baseline":return r.Baseline;case"bottom":return r.Bottom}}function a(t){switch(t){case"above-left":case"esriServerPointLabelPlacementAboveLeft":return[s.Right,r.Bottom];case"above-center":case"above-along":case"esriServerPointLabelPlacementAboveCenter":case"esriServerLinePlacementAboveAlong":return[s.Center,r.Bottom];case"above-right":case"esriServerPointLabelPlacementAboveRight":return[s.Left,r.Bottom];case"center-left":case"esriServerPointLabelPlacementCenterLeft":return[s.Right,r.Center];case"center-center":case"center-along":case"esriServerPointLabelPlacementCenterCenter":case"esriServerLinePlacementCenterAlong":case"always-horizontal":case"esriServerPolygonPlacementAlwaysHorizontal":return[s.Center,r.Center];case"center-right":case"esriServerPointLabelPlacementCenterRight":return[s.Left,r.Center];case"below-left":case"esriServerPointLabelPlacementBelowLeft":return[s.Right,r.Top];case"below-center":case"below-along":case"esriServerPointLabelPlacementBelowCenter":case"esriServerLinePlacementBelowAlong":return[s.Center,r.Top];case"below-right":case"esriServerPointLabelPlacementBelowRight":return[s.Left,r.Top];default:return console.debug(`Found invalid placement type ${t}`),[s.Center,r.Center]}}function h(t){switch(t){case s.Right:return-1;case s.Center:return 0;case s.Left:return 1;default:return console.debug(`Found invalid horizontal alignment ${t}`),0}}function l(t){switch(t){case r.Top:return 1;case r.Center:return 0;case r.Bottom:case r.Baseline:return-1;default:return console.debug(`Found invalid vertical alignment ${t}`),0}}function c(t){switch(t){case"left":return s.Left;case"right":return s.Right;case"center":return s.Center}}function u(t){switch(t){case"above-along":case"below-along":case"center-along":case"esriServerLinePlacementAboveAlong":case"esriServerLinePlacementBelowAlong":case"esriServerLinePlacementCenterAlong":return!0;default:return!1}}i.d(e,{Hd:()=>c,NS:()=>u,TR:()=>r,b7:()=>o,g:()=>h,kH:()=>n,qv:()=>a,tf:()=>l}),function(t){t[t.Left=-1]="Left",t[t.Center=0]="Center",t[t.Right=1]="Right"}(s||(s={})),function(t){t[t.Top=1]="Top",t[t.Center=0]="Center",t[t.Bottom=-1]="Bottom",t[t.Baseline=2]="Baseline"}(r||(r={}))},63523:(t,e,i)=>{i.d(e,{CA:()=>l,Gq:()=>b,Xp:()=>h,a:()=>x,dk:()=>y,hF:()=>u,jj:()=>c,jy:()=>a,m2:()=>f,mE:()=>g,qr:()=>M});var s=i(20102),r=i(30729),n=i(66039);const o=Object.keys(n.mD).filter((t=>"number"==typeof n.mD[t])).reduce(((t,e)=>({...t,[e]:n.mD[e]})),{});function a(t){return t===n.mD.OUTLINE_FILL||t===n.mD.OUTLINE_FILL_SIMPLE}function h(t){return function(t){return t===n.mD.SIMPLE||t===n.mD.OUTLINE_FILL_SIMPLE}(t.symbologyType)}function l(t){return a(t.symbologyType)}function c(t,e){switch(t){case n.LW.FILL:return y.from(e);case n.LW.LINE:return x.from(e);case n.LW.MARKER:return g.from(e);case n.LW.TEXT:return M.from(e);case n.LW.LABEL:return b.from(e);default:throw new Error(`Unable to createMaterialKey for unknown geometryType ${t}`)}}function u(t){switch(f.load(t).geometryType){case n.LW.MARKER:return new g(t);case n.LW.FILL:return new y(t);case n.LW.LINE:return new x(t);case n.LW.TEXT:return new M(t);case n.LW.LABEL:return new b(t)}}class f{static load(t){const e=this.shared;return e.data=t,e}constructor(t){this._data=0,this._data=t}set data(t){this._data=t??0}get data(){return this._data}get geometryType(){return this.bits(8,11)}set geometryType(t){this.setBits(t,8,11)}get mapAligned(){return!!this.bit(20)}set mapAligned(t){this.setBit(20,t)}get sdf(){return!!this.bit(11)}set sdf(t){this.setBit(11,t??!1)}get pattern(){return!!this.bit(12)}set pattern(t){this.setBit(12,t)}get textureBinding(){return this.bits(0,8)}set textureBinding(t){this.setBits(t,0,8)}get symbologyType(){return this.bits(21,26)}set symbologyType(t){this.setBits(t,21,26)}get geometryTypeString(){switch(this.geometryType){case n.LW.FILL:return"fill";case n.LW.MARKER:return"marker";case n.LW.LINE:return"line";case n.LW.TEXT:return"text";case n.LW.LABEL:return"label";default:throw new s.Z(`Unable to handle unknown geometryType: ${this.geometryType}`)}}setBit(t,e){const i=1<<t;e?this._data|=i:this._data&=~i}bit(t){return(this._data&1<<t)>>t}setBits(t,e,i){for(let s=e,r=0;s<i;s++,r++)this.setBit(s,0!=(t&1<<r))}bits(t,e){let i=0;for(let s=t,r=0;s<e;s++,r++)i|=this.bit(s)<<r;return i}hasVV(){return!1}setVV(t,e){}getVariation(){return{mapAligned:this.mapAligned,pattern:this.pattern,sdf:this.sdf,symbologyType:{value:n.mD[this.symbologyType],options:o,namespace:"SYMBOLOGY_TYPE"}}}getVariationHash(){return this._data&~(7&this.textureBinding)}}f.shared=new f(0);const _=t=>class extends t{get vvSizeMinMaxValue(){return 0!==this.bit(16)}set vvSizeMinMaxValue(t){this.setBit(16,t)}get vvSizeScaleStops(){return 0!==this.bit(17)}set vvSizeScaleStops(t){this.setBit(17,t)}get vvSizeFieldStops(){return 0!==this.bit(18)}set vvSizeFieldStops(t){this.setBit(18,t)}get vvSizeUnitValue(){return 0!==this.bit(19)}set vvSizeUnitValue(t){this.setBit(19,t)}hasSizeVV(){return this.vvSizeMinMaxValue||this.vvSizeScaleStops||this.vvSizeFieldStops||this.vvSizeUnitValue}hasVV(){return super.hasVV()||this.hasSizeVV()}setVV(t,e){super.setVV(t,e);const i=function(t,e,i){const s=n.X.SIZE_FIELD_STOPS|n.X.SIZE_MINMAX_VALUE|n.X.SIZE_SCALE_STOPS|n.X.SIZE_UNIT_VALUE,r=(e&(n.mf.FIELD_TARGETS_OUTLINE|n.mf.MINMAX_TARGETS_OUTLINE|n.mf.SCALE_TARGETS_OUTLINE|n.mf.UNIT_TARGETS_OUTLINE))>>>4;return t===n.LW.LINE&&i.isOutline||t===n.LW.FILL&&a(i.symbologyType)?s&r:s&~r}(this.geometryType,t,e)&t;this.vvSizeMinMaxValue=!!(i&n.X.SIZE_MINMAX_VALUE),this.vvSizeFieldStops=!!(i&n.X.SIZE_FIELD_STOPS),this.vvSizeUnitValue=!!(i&n.X.SIZE_UNIT_VALUE),this.vvSizeScaleStops=!!(i&n.X.SIZE_SCALE_STOPS)}},m=t=>class extends t{get vvRotation(){return 0!==this.bit(15)}set vvRotation(t){this.setBit(15,t)}hasVV(){return super.hasVV()||this.vvRotation}setVV(t,e){super.setVV(t,e),this.vvRotation=!e.isOutline&&!!(t&n.X.ROTATION)}},d=t=>class extends t{get vvColor(){return 0!==this.bit(13)}set vvColor(t){this.setBit(13,t)}hasVV(){return super.hasVV()||this.vvColor}setVV(t,e){super.setVV(t,e),this.vvColor=!e.isOutline&&!!(t&n.X.COLOR)}},p=t=>class extends t{get vvOpacity(){return 0!==this.bit(14)}set vvOpacity(t){this.setBit(14,t)}hasVV(){return super.hasVV()||this.vvOpacity}setVV(t,e){super.setVV(t,e),this.vvOpacity=!e.isOutline&&!!(t&n.X.OPACITY)}};class y extends(d(p(_(f)))){static load(t){const e=this.shared;return e.data=t,e}static from(t){const{symbologyType:e,vvFlags:i}=t,s=this.load(0);return s.geometryType=n.LW.FILL,s.symbologyType=e,e!==n.mD.DOT_DENSITY&&s.setVV(i,t),s.data}getVariation(){return{...super.getVariation(),vvColor:this.vvColor,vvOpacity:this.vvOpacity,vvSizeFieldStops:this.vvSizeFieldStops,vvSizeMinMaxValue:this.vvSizeMinMaxValue,vvSizeScaleStops:this.vvSizeScaleStops,vvSizeUnitValue:this.vvSizeUnitValue}}}y.shared=new y(0);class g extends(d(p(m(_(f))))){static load(t){const e=this.shared;return e.data=t,e}static from(t){const{symbologyType:e,vvFlags:i}=t,s=this.load(0);return s.geometryType=n.LW.MARKER,s.symbologyType=e,e!==n.mD.HEATMAP&&s.setVV(i,t),s.data}getVariation(){return{...super.getVariation(),vvColor:this.vvColor,vvRotation:this.vvRotation,vvOpacity:this.vvOpacity,vvSizeFieldStops:this.vvSizeFieldStops,vvSizeMinMaxValue:this.vvSizeMinMaxValue,vvSizeScaleStops:this.vvSizeScaleStops,vvSizeUnitValue:this.vvSizeUnitValue}}}g.shared=new g(0);class x extends(d(p(_(f)))){static load(t){const e=this.shared;return e.data=t,e}static from(t){const e=this.load(0);return e.geometryType=n.LW.LINE,e.symbologyType=t.symbologyType,e.setVV(t.vvFlags,t),e.data}getVariation(){return{...super.getVariation(),vvColor:this.vvColor,vvOpacity:this.vvOpacity,vvSizeFieldStops:this.vvSizeFieldStops,vvSizeMinMaxValue:this.vvSizeMinMaxValue,vvSizeScaleStops:this.vvSizeScaleStops,vvSizeUnitValue:this.vvSizeUnitValue}}}x.shared=new x(0);class M extends(d(p(m(_(f))))){static load(t){const e=this.shared;return e.data=t,e}static from(t){const e=this.load(0);return e.geometryType=n.LW.TEXT,e.symbologyType=t.symbologyType,e.setVV(t.vvFlags,t),e.data}getVariation(){return{...super.getVariation(),vvColor:this.vvColor,vvOpacity:this.vvOpacity,vvRotation:this.vvRotation,vvSizeFieldStops:this.vvSizeFieldStops,vvSizeMinMaxValue:this.vvSizeMinMaxValue,vvSizeScaleStops:this.vvSizeScaleStops,vvSizeUnitValue:this.vvSizeUnitValue}}}M.shared=new M(0);class b extends(_(f)){static load(t){const e=this.shared;return e.data=t,e}static from(t){const e=this.load(0);return e.geometryType=n.LW.LABEL,e.symbologyType=t.symbologyType,e.setVV(t.vvFlags,t),e.mapAligned=(0,r.NS)(t.placement),e.data}getVariation(){return{...super.getVariation(),vvSizeFieldStops:this.vvSizeFieldStops,vvSizeMinMaxValue:this.vvSizeMinMaxValue,vvSizeScaleStops:this.vvSizeScaleStops,vvSizeUnitValue:this.vvSizeUnitValue}}}b.shared=new b(0)},47988:(t,e,i)=>{i.d(e,{Z:()=>h});var s=i(43697),r=i(3920),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011));let a=class extends r.r{initialize(){}destroy(){}get supportsTileUpdates(){return!1}get spatialReference(){const t=this.get("tileStore.tileScheme.spatialReference");return t&&t.toJSON()||null}};(0,s._)([(0,n.Cb)({readOnly:!0})],a.prototype,"supportsTileUpdates",null),(0,s._)([(0,n.Cb)({constructOnly:!0})],a.prototype,"remoteClient",void 0),(0,s._)([(0,n.Cb)({constructOnly:!0})],a.prototype,"service",void 0),(0,s._)([(0,n.Cb)()],a.prototype,"spatialReference",null),(0,s._)([(0,n.Cb)({constructOnly:!0})],a.prototype,"tileInfo",void 0),(0,s._)([(0,n.Cb)({constructOnly:!0})],a.prototype,"tileStore",void 0),a=(0,s._)([(0,o.j)("esri.views.2d.layers.features.processors.BaseProcessor")],a);const h=a},80338:(t,e,i)=>{i.r(e),i.d(e,{default:()=>oo});var s=i(43697);const r=new(i(79087).Z);function n(t){if(null==t)return["",!1];if(!r.hasBidiChar(t))return[t,!1];let e;return e="rtl"===r.checkContextual(t)?"IDNNN":"ICNNN",[r.bidiTransform(t,e,"VLYSN"),!0]}var o=i(20102),a=i(80442),h=i(92604),l=i(70586),c=i(95330),u=(i(75215),i(67676)),f=i(52011),_=i(22862),m=i(82971),d=i(61027),p=i(66039),y=i(92036),g=i(5600),x=i(4307),M=i(49733);const b=new Set,P=[],v=new Map,S=[0,0];let w=class extends y.Z{constructor(t){super(t),this._keyToItem=new Map,this.concurrency=6,this.strategy="scale-first",this.tileInfoView=null}initialize(){const{concurrency:t,process:e}=this;this._queue=new M.e({concurrency:t,process:(t,i)=>{const s=this._keyToItem.get(t);return e(s,{signal:i})},peeker:t=>t.values().next().value})}destroy(){this.clear(),this._queue=(0,l.SC)(this._queue)}get length(){return this._queue?this._queue.length:0}get onGoingCount(){return this._keyToItem.size}get updating(){return this.length>0||this.onGoingCount>0}abort(t){const e="string"==typeof t?t:t.id;this._queue.abort(e)}clear(){this._queue.clear(),this._keyToItem.clear(),this.notifyChange("updating")}has(t){return"string"==typeof t?this._keyToItem.has(t):this._keyToItem.has(t.id)}isOngoing(t){const e="string"==typeof t?t:t.id;return this.has(e)&&this._queue.isOngoing(e)}pause(){this._queue.pause()}push(t,e){const i=t.key.id+"-"+e;if(this.has(i))return this.get(i);const s=this._queue.push(i),r=()=>{this._keyToItem.delete(i),this.notifyChange("updating")};return this._keyToItem.set(i,t),s.then(r,r),this.notifyChange("updating"),s}reset(){this._queue.reset(),this.notifyChange("updating")}resume(){this._queue.resume()}_peekByScaleFirst(t){if(!this.state)return t.values().next().value;const e=this.tileInfoView;let i=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY;t.forEach((t=>{const e=this._keyToItem.get(t),r=this.tileInfoView.getTileScale(e.key);v.has(r)||(v.set(r,[]),i=Math.max(r,i),s=Math.min(r,s)),v.get(r).push(e.key),b.add(r)}));let r=this.state.scale;v.has(r)||(function(t,e){t.length=0,e.forEach((e=>t.push(e)))}(P,b),P.sort(((t,e)=>t-e)),r=P.reduce(((t,e)=>Math.abs(e-r)<Math.abs(t-r)?e:t),P[0])),r=Math.min(r,i),r=Math.max(r,s);const n=v.get(r),o=e.getClosestInfoForScale(r),a=o.getColumnForX(this.state.center[0]),h=o.getRowForY(this.state.center[1]);return n.sort(((t,e)=>{const i=o.denormalizeCol(t.col,t.world),s=o.denormalizeCol(e.col,e.world);return Math.sqrt((a-i)*(a-i)+(h-t.row)*(h-t.row))-Math.sqrt((a-s)*(a-s)+(h-e.row)*(h-e.row))})),b.clear(),v.clear(),n[0].id}_peekByCenterFirst(t){if(!this.state)return t.values().next().value;const e=this.tileInfoView,i=this.state.center;let s,r=Number.POSITIVE_INFINITY;return t.forEach((t=>{const n=this._keyToItem.get(t);e.getTileCoords(S,n.key);const o=(0,x.d)(S,i);o<r&&(r=o,s=n.key)})),s.id}};(0,s._)([(0,g.Cb)({constructOnly:!0})],w.prototype,"concurrency",void 0),(0,s._)([(0,g.Cb)({constructOnly:!0})],w.prototype,"process",void 0),(0,s._)([(0,g.Cb)()],w.prototype,"state",void 0),(0,s._)([(0,g.Cb)({constructOnly:!0})],w.prototype,"strategy",void 0),(0,s._)([(0,g.Cb)({constructOnly:!0})],w.prototype,"tileInfoView",void 0),(0,s._)([(0,g.Cb)({readOnly:!0})],w.prototype,"updating",null),w=(0,s._)([(0,f.j)("esri.views.2d.tiling.PagedTileQueue")],w),i(83068);var C=i(55415);const I=new Set,L=[],k=new Map,z=[0,0];let T=class extends y.Z{constructor(t){super(t),this._keyToItem=new Map,this.concurrency=6,this.strategy="scale-first",this.tileInfoView=null}initialize(){const{concurrency:t,process:e,strategy:i}=this;this._queue=new M.e({concurrency:t,process:(t,i)=>{const s=this._keyToItem.get(t);return e(s,{signal:i})},peeker:"scale-first"===i?t=>this._peekByScaleFirst(t):t=>this._peekByCenterFirst(t)})}destroy(){this.clear(),this._queue=(0,l.SC)(this._queue)}get length(){return this._queue?this._queue.length:0}get onGoingCount(){return this._keyToItem.size}get updating(){return this.length>0||this.onGoingCount>0}abort(t){const e="string"==typeof t?t:t.id;this._queue.abort(e)}clear(){this._queue.clear(),this._keyToItem.clear(),this.notifyChange("updating")}has(t){return"string"==typeof t?this._keyToItem.has(t):this._keyToItem.has(t.id)}isOngoing(t){const e="string"==typeof t?t:t.id;return this.has(e)&&this._queue.isOngoing(e)}pause(){this._queue.pause()}push(t){const e=t.key.id;if(this._queue.has(e))return this._queue.get(e);const i=this._queue.push(e),s=()=>{this._keyToItem.delete(e),this.notifyChange("updating")};return this._keyToItem.set(e,t),i.then(s,s),this.notifyChange("updating"),i}reset(){this._queue.reset()}resume(){this._queue.resume()}_peekByScaleFirst(t){if(!this.state)return t.values().next().value;const e=this.tileInfoView;let i=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY;t.forEach((t=>{const e=this._keyToItem.get(t),r=this.tileInfoView.getTileScale(e.key);k.has(r)||(k.set(r,[]),i=Math.max(r,i),s=Math.min(r,s)),k.get(r).push(e.key),I.add(r)}));let r=this.state.scale;k.has(r)||(function(t,e){t.length=0,e.forEach((e=>t.push(e)))}(L,I),L.sort(((t,e)=>t-e)),r=L.reduce(((t,e)=>Math.abs(e-r)<Math.abs(t-r)?e:t),L[0])),r=Math.min(r,i),r=Math.max(r,s);const n=k.get(r),o=e.getClosestInfoForScale(r),a=o.getColumnForX(this.state.center[0]),h=o.getRowForY(this.state.center[1]);return n.sort(((t,e)=>{const i=o.denormalizeCol(t.col,t.world),s=o.denormalizeCol(e.col,e.world);return Math.sqrt((a-i)*(a-i)+(h-t.row)*(h-t.row))-Math.sqrt((a-s)*(a-s)+(h-e.row)*(h-e.row))})),I.clear(),k.clear(),n[0].id}_peekByCenterFirst(t){if(!this.state)return t.values().next().value;const e=this.tileInfoView,i=this.state.center;let s,r=Number.POSITIVE_INFINITY;return t.forEach((t=>{const n=this._keyToItem.get(t);e.getTileCoords(z,n.key);const o=(0,x.d)(z,i);o<r&&(r=o,s=n.key)})),s.id}};(0,s._)([(0,g.Cb)({constructOnly:!0})],T.prototype,"concurrency",void 0),(0,s._)([(0,g.Cb)({constructOnly:!0})],T.prototype,"process",void 0),(0,s._)([(0,g.Cb)()],T.prototype,"state",void 0),(0,s._)([(0,g.Cb)({constructOnly:!0})],T.prototype,"strategy",void 0),(0,s._)([(0,g.Cb)({constructOnly:!0})],T.prototype,"tileInfoView",void 0),(0,s._)([(0,g.Cb)({readOnly:!0})],T.prototype,"updating",null),T=(0,s._)([(0,f.j)("esri.views.2d.tiling.TileQueue")],T);var O=i(24470);i(67524),new C.Z(0,0,0,0),new Map;var E=i(16534),F=i(26899);const A=new Map;A.set(p.LW.MARKER,{multiplier:1,indicesPerRecord:6,verticesPerRecord:4}),A.set(p.LW.LINE,{multiplier:1,indicesPerRecord:24,verticesPerRecord:8}),A.set(p.LW.FILL,{multiplier:1,indicesPerRecord:10,verticesPerRecord:10}),A.set(p.LW.TEXT,{multiplier:8,indicesPerRecord:6,verticesPerRecord:4}),A.set(p.LW.LABEL,{multiplier:8,indicesPerRecord:6,verticesPerRecord:4});class N{get length(){return this._pos}constructor(t,e){this._pos=0;const i=e?this._roundToNearest(e,t.BYTES_PER_ELEMENT):40;this._array=new ArrayBuffer(i),this._buffer=new t(this._array),this._ctor=t,this._i16View=new Int16Array(this._array)}_roundToNearest(t,e){const i=Math.round(t);return 1===e?i:i+(e-i%e)}_ensureSize(t){if(this._pos+t>=this._buffer.length){const e=this._roundToNearest(1.25*(this._array.byteLength+t*this._buffer.BYTES_PER_ELEMENT),this._buffer.BYTES_PER_ELEMENT),i=new ArrayBuffer(e),s=new this._ctor(i);s.set(this._buffer,0),this._array=i,this._buffer=s,this._i16View=new Int16Array(this._array)}}ensureSize(t){this._ensureSize(t)}writeF32(t){this._ensureSize(1);const e=this._pos;return new Float32Array(this._array,4*this._pos,1)[0]=t,this._pos++,e}push(t){this._ensureSize(1);const e=this._pos;return this._buffer[this._pos++]=t,e}writeFixed(t){this._buffer[this._pos++]=t}setValue(t,e){this._buffer[t]=e}i1616Add(t,e,i){this._i16View[2*t]+=e,this._i16View[2*t+1]+=i}getValue(t){return this._buffer[t]}incr(t){if(this._buffer.length<t)throw new Error("Increment index overflows the target buffer");this._buffer[t]++}decr(t){this._buffer[t]--}writeRegion(t){this._ensureSize(t.length);const e=this._pos;return this._buffer.set(t,this._pos),this._pos+=t.length,e}writeManyFrom(t,e,i){this._ensureSize(i-e);for(let s=e;s!==i;s++)this.writeFixed(t._buffer[s])}buffer(){const t=this._array.slice(0,4*this._pos);return this.destroy(),t}toArray(){return[...this._buffer]}seek(t){this._pos=t}destroy(){this._array=null,this._buffer=null}}class R{constructor(t,e,i){this._start={index:0,vertex:0};const s=function(t,e,i){const{indicesPerRecord:s,multiplier:r,verticesPerRecord:n}=A.get(t);return{recordBytes:i*E.XJ*Uint32Array.BYTES_PER_ELEMENT,indexBytes:r*s*i*Uint32Array.BYTES_PER_ELEMENT,vertexBytes:r*n*i*e}}(t,e,i),r=e/4;this.geometryType=t,this._records=new N(Int32Array,s.recordBytes),this._indices=new N(Uint32Array,s.indexBytes),this._vertices=new N(Uint32Array,s.vertexBytes),this._metrics=new N(Float32Array,0),this._strideInt=r}serialize(t){const e=this._records.buffer(),i=this._indices.buffer(),s=this._vertices.buffer(),r=this._metrics.length?this._metrics.buffer():null,n=4*this._strideInt;return t.push(e,i,s),{stride:n,records:e,indices:i,vertices:s,metrics:r}}get strideInt(){return this._strideInt}get recordCount(){return this._records.length/E.XJ}get vertexCount(){return this._vertices.length/this._strideInt}get indexCount(){return this._indices.length}get indexWriter(){return this._indices}get vertexWriter(){return this._vertices}get metricWriter(){return this._metrics}vertexEnsureSize(t){this._vertices.ensureSize(t)}indexEnsureSize(t){this._indices.ensureSize(t)}recordStart(){this._start.index=this._indices.length,this._start.vertex=this._vertices.length}recordEnd(t,e,i,s,r,n,o,a){this._records.push(t),this._records.push(e??0),this._records.push(i),this._records.push(s),this._records.push(r),this._records.push(n),this._records.push(o),this._records.writeF32(a)}writeIndex(t){this._indices.push(t)}writeVertex(t){this._vertices.push(t)}writeVertexF32(t){this._vertices.writeF32(t)}copyLastFrom(t,e,i){const s=t._records.length-E.XJ,r=t._records.getValue(s),n=t._records.getValue(s+1),o=t._records.getValue(s+2),a=t._records.getValue(s+4),h=t._records.getValue(s+6),l=t._records.getValue(s+7),c=this._vertices.length,u=(t._start.vertex-this._vertices.length)/this._strideInt,f=this._indices.length,_=this.vertexCount;for(let e=t._start.index;e!==t._indices.length;e++){const i=t._indices.getValue(e);this._indices.push(i-u)}for(let e=t._start.vertex;e!==t._vertices.length;e++){const i=t._vertices.getValue(e);this._vertices.push(i)}for(let t=c;t<=this._vertices.length;t+=this._strideInt)this._vertices.i1616Add(t,e,i);this._records.push(r),this._records.push(n),this._records.push(o),this._records.push(f),this._records.push(a),this._records.push(_),this._records.push(h),this._records.push(l)}}var V=i(14867);function W(t){switch(t){case 1:case 8:case 32:return-1;case 2:case 64:return 0;case 4:case 16:case 128:return 1}}function G(t){switch(t){case 1:case 2:case 4:return-1;case 8:case 16:return 0;case 32:case 64:case 128:return 1}}class D{constructor(t,e,i,s,r,n=0){this._hasAggregate=!1,this.hasRecords=!1,this._data={self:new Map,neighbors:new Array},this._version=0,this._current={geometryType:0,writer:null,overlaps:0,start:0,insertAfter:0,sortKey:0,id:0,materialKey:0,indexStart:0,vertStart:0,isDotDensity:!1,bufferingEnabled:!1,metricBoxLenPointer:0},this.hint=e,this.tileKey=t,this._hasAggregate=s,this._pixelBufferEnabled=r,this._version=n,this._symbologyType=i}get hasAggregates(){return this._hasAggregate}get hasPixelBufferEnabled(){return this._pixelBufferEnabled}serialize(t){const e=[];return e.push(this._serializeTileVertexData(this.tileKey,this.tileKey,this._data.self)),this._data.neighbors.forEach(((i,s)=>{const r=1<<s,n=W(r),o=G(r),a=(0,V.M)(new C.Z(this.tileKey),n,o,t),h=this._serializeTileVertexData(this.tileKey,a.id,i.vertexData);h.message.bufferIds=i.displayIds,e.push(h)})),e}_serializeTileVertexData(t,e,i){const s=new Array;return{message:{tileKeyOrigin:t,tileKey:e,data:{[p.LW.MARKER]:i.get(p.LW.MARKER)?.serialize(s),[p.LW.FILL]:i.get(p.LW.FILL)?.serialize(s),[p.LW.LINE]:i.get(p.LW.LINE)?.serialize(s),[p.LW.TEXT]:i.get(p.LW.TEXT)?.serialize(s),[p.LW.LABEL]:i.get(p.LW.LABEL)?.serialize(s)},version:this._version},transferList:s}}featureStart(t,e){this._current.insertAfter=t,this._current.sortKey=e}featureEnd(){}recordStart(t,e,i,s){this._current.writer=this._getVertexWriter(i),this._current.overlaps=0,this._current.indexStart=this._current.writer.indexCount,this._current.vertStart=this._current.writer.vertexCount,this._current.bufferingEnabled=s,this._current.id=t,this._current.materialKey=e,this._current.geometryType=i,this._current.isDotDensity=!1,this._current.writer.recordStart()}recordCount(){return this._current.writer.recordCount}vertexCount(){return this._current.writer.vertexCount}indexCount(){return this._current.writer.indexCount}vertexEnsureSize(t){this._current.writer.vertexEnsureSize(t)}indexEnsureSize(t){this._current.writer.indexEnsureSize(t)}vertexBounds(t,e,i,s){this._current.bufferingEnabled&&this._addOverlap(t,e,i,s)}vertexWrite(t){this._current.writer.writeVertex(t)}vertexWriteF32(t){this._current.writer.writeVertexF32(t)}vertexEnd(){}vertexWriter(){return this._current.writer.vertexWriter}indexWrite(t){this._current.writer.writeIndex(t)}indexWriter(){return this._current.writer.indexWriter}metricWriter(){return this._current.writer.metricWriter}metricStart(t,e,i,s,r,n,o,a){this._current.writer=this._getVertexWriter(p.LW.LABEL);const h=this._current.writer.metricWriter;h.push((0,d.jL)(t)),h.push(e),h.push(i),h.push(s),h.push(r),h.push(n),h.push(o),h.push(a),h.push(255),this._current.metricBoxLenPointer=h.push(0)}metricEnd(){const t=this._current.writer.metricWriter;0===t.getValue(this._current.metricBoxLenPointer)&&t.seek(t.length-10)}metricBoxWrite(t,e,i,s){const r=this._current.writer.metricWriter;r.incr(this._current.metricBoxLenPointer),r.push(0),r.push(0),r.push(t),r.push(e),r.push(i),r.push(s)}recordEnd(){const t=this._current.vertStart,e=this._current.writer.vertexCount-t;if(!e)return!1;this.hasRecords=!0;const i=this._current.indexStart,s=this._current.writer.indexCount-i;if(this._current.writer.recordEnd(this._current.id,this._current.materialKey,this._current.insertAfter,i,s,t,e,this._current.sortKey),!this._pixelBufferEnabled||this._hasAggregate||0===this._current.overlaps||this._current.geometryType===p.LW.LABEL)return!0;const r=this._current.writer;for(let t=0;t<8;t++){const e=1<<t;if(this._current.overlaps&e){this._data.neighbors[t]||(this._data.neighbors[t]={vertexData:new Map,displayIds:new Set});const i=this._data.neighbors[t],s=this._current.geometryType;if(!i.vertexData.has(s)){const t=(0,F.$_)(s,this._symbologyType).geometry,e=new R(s,t,E.Ip);i.vertexData.set(s,e)}const n=i.vertexData.get(this._current.geometryType),o=8,a=512*-W(e)*o,h=512*-G(e)*o;n?.copyLastFrom(r,a,h),i.displayIds.add(this._current.id)}}return!0}_addOverlap(t,e,i,s){const r=255^((t<0+i?148:t>=E.I_-i?41:189)|(e<0+s?224:e>=E.I_-s?7:231));this._current.overlaps|=r}_getVertexWriter(t){if(!this._data.self.has(t)){const e=this._data.self,i=(0,F.$_)(t,this._symbologyType).geometry;e.set(t,new R(t,i,this.hint.records))}return this._data.self.get(t)}}var B=i(65390),X=i(22021),U=i(62357),H=i(46851);function Y(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function J(t,e,i){const s=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],l=i[0],c=i[1],u=i[2],f=i[3],_=i[4],m=i[5];return t[0]=s*l+n*c,t[1]=r*l+o*c,t[2]=s*u+n*f,t[3]=r*u+o*f,t[4]=s*_+n*m+a,t[5]=r*_+o*m+h,t}function Z(t,e,i){const s=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],l=Math.sin(i),c=Math.cos(i);return t[0]=s*c+n*l,t[1]=r*c+o*l,t[2]=s*-l+n*c,t[3]=r*-l+o*c,t[4]=a,t[5]=h,t}function q(t,e,i){const s=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],l=i[0],c=i[1];return t[0]=s,t[1]=r,t[2]=n,t[3]=o,t[4]=s*l+n*c+a,t[5]=r*l+o*c+h,t}function K(t,e){const i=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=i,t[2]=-i,t[3]=s,t[4]=0,t[5]=0,t}function j(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t[3]=e[3]-i[3],t[4]=e[4]-i[4],t[5]=e[5]-i[5],t}const $=J,Q=j;function tt(){const t=new Float32Array(6);return t[0]=1,t[3]=1,t}function et(t,e,i,s){const r=e[s],n=e[s+1];t[s]=i[0]*r+i[2]*n+i[4],t[s+1]=i[1]*r+i[3]*n+i[5]}function it(t,e,i,s=0,r=0,n=2){const o=r||e.length/n;for(let r=s;r<o;r++)et(t,e,i,r*n)}Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t[3]=e[3]+i[3],t[4]=e[4]+i[4],t[5]=e[5]+i[5],t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},equals:function(t,e){const i=t[0],s=t[1],r=t[2],n=t[3],o=t[4],a=t[5],h=e[0],l=e[1],c=e[2],u=e[3],f=e[4],_=e[5],m=(0,H.g)();return Math.abs(i-h)<=m*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(s-l)<=m*Math.max(1,Math.abs(s),Math.abs(l))&&Math.abs(r-c)<=m*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(n-u)<=m*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(o-f)<=m*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(a-_)<=m*Math.max(1,Math.abs(a),Math.abs(_))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+1)},fromRotation:K,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},identity:Y,invert:function(t,e){const i=e[0],s=e[1],r=e[2],n=e[3],o=e[4],a=e[5];let h=i*n-s*r;return h?(h=1/h,t[0]=n*h,t[1]=-s*h,t[2]=-r*h,t[3]=i*h,t[4]=(r*a-n*o)*h,t[5]=(s*o-i*a)*h,t):null},mul:$,multiply:J,multiplyScalar:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*i,t[5]=e[5]*i,t},multiplyScalarAndAdd:function(t,e,i,s){return t[0]=e[0]+i[0]*s,t[1]=e[1]+i[1]*s,t[2]=e[2]+i[2]*s,t[3]=e[3]+i[3]*s,t[4]=e[4]+i[4]*s,t[5]=e[5]+i[5]*s,t},rotate:Z,scale:function(t,e,i){const s=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],l=i[0],c=i[1];return t[0]=s*l,t[1]=r*l,t[2]=n*c,t[3]=o*c,t[4]=a,t[5]=h,t},set:function(t,e,i,s,r,n,o){return t[0]=e,t[1]=i,t[2]=s,t[3]=r,t[4]=n,t[5]=o,t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},sub:Q,subtract:j,translate:q},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){const e=new Float32Array(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},create:tt,createView:function(t,e){return new Float32Array(t,e,6)},fromValues:function(t,e,i,s,r,n){const o=new Float32Array(6);return o[0]=t,o[1]=e,o[2]=i,o[3]=s,o[4]=r,o[5]=n,o},transform:et,transformMany:it},Symbol.toStringTag,{value:"Module"}));var st=i(95648),rt=i(30729),nt=i(37720),ot=i(12142),at=i(63523);const ht=100;function lt(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function ct(t,e){return Math.sqrt(t*t+e*e)}function ut(t){const e=ct(t[0],t[1]);t[0]/=e,t[1]/=e}function ft(t,e){return ct(t[0]-e[0],t[1]-e[1])}function _t(t=2){return 1/Math.max(t,1)}function mt(t,e){return[!!t?.minScale&&e.scaleToZoom(t.minScale)||0,!!t?.maxScale&&e.scaleToZoom(t.maxScale)||ht]}function dt(t){return t.length-1}function pt(t,e,i=1){const[s,r]=function(t,e){return t[e+1]}(t,e);return Math.sqrt(s*s+r*r)*i}class yt{constructor(t,e,i,s,r){this._segments=t,this._index=e,this._distance=i,this._xStart=s,this._yStart=r,this._done=!1}static create(t){return new yt(t,0,0,t[0][0],t[0][1])}clone(){return new yt(this._segments,this._index,this._distance,this.xStart,this.yStart)}equals(t){return this._index===t._index||t._index===this._index-1&&(0===this._distance||1===t._distance)||t._index===this._index+1&&(1===this._distance||0===t._distance)}leq(t){return this._index<t._index||this._index===t._index&&this._distance<=t._distance}geq(t){return this._index>t._index||this._index===t._index&&this._distance>=t._distance}get _segment(){return this._segments[this._index+1]}get angle(){const t=this.dy,e=(0*t+-1*-this.dx)/(1*this.length);let i=Math.acos(e);return t>0&&(i=2*Math.PI-i),i}get xStart(){return this._xStart}get yStart(){return this._yStart}get x(){return this.xStart+this.distance*this.dx}get y(){return this.yStart+this.distance*this.dy}get dx(){return this._segment[0]}get dy(){return this._segment[1]}get xMidpoint(){return this.xStart+.5*this.dx}get yMidpoint(){return this.yStart+.5*this.dy}get xEnd(){return this.xStart+this.dx}get yEnd(){return this.yStart+this.dy}get length(){const{dx:t,dy:e}=this;return Math.sqrt(t*t+e*e)}get remainingLength(){return this.length*(1-this._distance)}get backwardLength(){return this.length*this._distance}get distance(){return this._distance}get done(){return this._done}hasPrev(){return this._index-1>=0}hasNext(){return this._index+1<dt(this._segments)}next(){return this.hasNext()?(this._xStart+=this.dx,this._yStart+=this.dy,this._distance=0,this._index+=1,this):null}prev(){return this.hasPrev()?(this._index-=1,this._xStart-=this.dx,this._yStart-=this.dy,this._distance=1,this):(this._done=!0,null)}_seekBackwards(t,e){const i=this.backwardLength;if(t<=i)return this._distance=(i-t)/this.length,this;let s=this.backwardLength;for(;this.prev();){if(s+this.length>t)return this._seekBackwards(t-s);s+=this.length}return this._distance=0,e?this:null}seek(t,e=!1){if(t<0)return this._seekBackwards(Math.abs(t),e);if(t<=this.remainingLength)return this._distance=(this.backwardLength+t)/this.length,this;let i=this.remainingLength;for(;this.next();){if(i+this.length>t)return this.seek(t-i,e);i+=this.length}return this._distance=1,e?this:null}}function gt(t,e,i,s=!0){const r=function(t){let e=0;for(let i=0;i<dt(t);i++)e+=pt(t,i);return e}(t),n=yt.create(t),o=r/2;if(!s)return n.seek(o),void i(n.clone(),0,o+0*e,r);const a=Math.max((r-e)/2,0),h=Math.floor(a/e),l=o-h*e;n.seek(l);for(let t=-h;t<=h;t++)n.x<512&&n.x>=0&&n.y<512&&n.y>=0&&i(n.clone(),t,o+t*e,r),n.seek(e)}function xt(t,e){const i=1e-6;if(e<=0)return;const s=t.length;if(s<3)return;const r=[];let n=0;r.push(0);for(let e=1;e<s;e++)n+=ft(t[e],t[e-1]),r.push(n);e=Math.min(e,.2*n);const o=[];o.push(t[0][0]),o.push(t[0][1]);const a=t[s-1][0],h=t[s-1][1],l=lt([0,0],t[0],t[1]);ut(l),t[0][0]+=e*l[0],t[0][1]+=e*l[1],lt(l,t[s-1],t[s-2]),ut(l),t[s-1][0]+=e*l[0],t[s-1][1]+=e*l[1];for(let t=1;t<s;t++)r[t]+=e;r[s-1]+=e;const c=.5*e;for(let n=1;n<s-1;n++){let a=0,h=0,l=0;for(let s=n-1;s>=0&&!(r[s+1]<r[n]-c);s--){const o=c+r[s+1]-r[n],u=r[s+1]-r[s],f=r[n]-r[s]<c?1:o/u;if(Math.abs(f)<i)break;const _=f*f,m=f*o-.5*_*u,d=f*u/e,p=t[s+1],y=t[s][0]-p[0],g=t[s][1]-p[1];a+=d/m*(p[0]*f*o+.5*_*(o*y-u*p[0])-_*f*u*y/3),h+=d/m*(p[1]*f*o+.5*_*(o*g-u*p[1])-_*f*u*g/3),l+=d}for(let o=n+1;o<s&&!(r[o-1]>r[n]+c);o++){const s=c-r[o-1]+r[n],u=r[o]-r[o-1],f=r[o]-r[n]<c?1:s/u;if(Math.abs(f)<i)break;const _=f*f,m=f*s-.5*_*u,d=f*u/e,p=t[o-1],y=t[o][0]-p[0],g=t[o][1]-p[1];a+=d/m*(p[0]*f*s+.5*_*(s*y-u*p[0])-_*f*u*y/3),h+=d/m*(p[1]*f*s+.5*_*(s*g-u*p[1])-_*f*u*g/3),l+=d}o.push(a/l),o.push(h/l)}o.push(a),o.push(h);for(let e=0,i=0;e<s;e++)t[e][0]=o[i++],t[e][1]=o[i++]}var Mt=i(22974),bt=i(95961),Pt=i(33955),vt=i(5428);class St{static fromOptimized(t,e,i=!1,s=!1){return(new wt).initialize(t,e,i,s,1)}static fromJSON(t,e=!1,i=!1){const[s,r]=It(t);return(new Lt).initialize(s,r,e,i,1)}static fromOptimizedCIM(t,e,i=!1,s=!1){return(new kt).initialize(t,e,i,s,1)}static fromJSONCIM(t,e=!1,i=!1){const[s,r]=It(t);return(new zt).initialize(s,r,e,i,1)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimized(e,i):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimizedCIM(e,i):null}static createEmptyOptimized(t,e=!1,i=!1){return(new wt).initialize(new vt.Z,t,e,i,1)}static createEmptyJSON(t,e=!1,i=!1){return(new Lt).initialize([],t,e,i,1)}static createEmptyOptimizedCIM(t,e=!1,i=!1){return(new kt).initialize(new vt.Z,t,e,i,1)}static createEmptyJSONCIM(t,e=!1,i=!1){return(new zt).initialize([],t,e,i,1)}asJSON(){const t=(0,bt.M)(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()}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1]}:"esriGeometryPolygon"===this.geometryType?{rings:t}:{paths:t}}invertY(){this.yFactor*=-1}}class wt extends St{constructor(){super(...arguments),this._end=-1}initialize(t,e,i,s,r){return this.hasZ=i,this.hasM=s,this.geometryType=e,this._stride=2+Number(i)+Number(s),this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=r,this}reset(){this.initialize(this._geometry,this.geometryType,this.hasZ,this.hasM,this.yFactor)}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(){if(this._pathIndex>=0){const t=this._geometry.isPoint?1:this._geometry.lengths[this._pathIndex];this._pathOffset+=this._stride*t}this._pointOffset=this._pathOffset-this._stride;const t=this._geometry.isPoint?1:this._geometry.lengths[this._pathIndex+1];return this._end=this._pointOffset+this._stride+this._stride*t,++this._pathIndex<this.numPaths}pathLength(){const t=this._end,e=this._stride,i=this._geometry.coords;let s=0;for(let r=this._pathOffset+e;r<t;r+=e){const t=i[r-e],n=i[r-e+1],o=i[r]-t,a=i[r+1]-n;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.numPaths-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.numPaths-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.numPaths-1]+=t.length}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,i=this._end-this._stride;for(let s=0;s<this._stride;s++)if(t[e+s]!==t[i+s])return!1;return!0}clone(){return(new wt).initialize(this._geometry.clone(),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get numPoints(){const{lengths:t}=this._geometry;return this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get numPaths(){return 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 pointIndex(){return this._pointOffset/this._stride}}function Ct(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function It(t){return(0,Pt.oU)(t)?[t.rings,"esriGeometryPolygon"]:(0,Pt.l9)(t)?[t.paths,"esriGeometryPolyline"]:(0,Pt.aW)(t)?[[t.points],"esriGeometryMultipoint"]:(0,Pt.YX)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,Pt.wp)(t)?[[[Ct(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class Lt extends St{initialize(t,e,i,s,r){return this._paths=t,this.geometryType=e,this.hasZ=i,this.hasM=s,this._pathIndex=this._pointIndex=-1,this.yFactor=r,this._mIdx=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}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.numPaths}pathLength(){const t=this._currentPath.length,e=this._currentPath;let i=0;for(let s=1;s<t;s++){const t=e[s-1],r=e[s],n=t[0],o=t[1],a=r[0]-n,h=r[1]-o;i+=Math.sqrt(a*a+h*h)}return i}startPath(){this._paths.push([])}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.pathIndex].push(t)}pushXY(t,e){this._paths[this.pathIndex].push([t,e])}pushPoints(t){this._paths[this.pathIndex].push(...t)}asOptimized(){const t=new vt.Z;if("esriGeometryPoint"===this.geometryType)t.coords.push(...this._paths[0][0]),t.lengths.length=0;else for(const e of this._paths){for(const i of e)t.coords.push(i[0]),t.coords.push(i[1]*this.yFactor),this.hasZ&&t.coords.push(i[2]),this.hasM&&t.coords.push(i[this._mIdx]);t.lengths.push(e.length)}return t}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}clone(){return(new Lt).initialize((0,Mt.d9)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get numPoints(){return this._pathIndex<0||this._pathIndex>this.numPaths-1?-1:this._paths[this._pathIndex].length}get numPaths(){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._mIdx]}set m(t){this._currentPoint[this._mIdx]=t}get pathIndex(){return this._pathIndex}get pointIndex(){return this._pointIndex}}class kt extends wt{initialize(t,e,i,s,r){return super.initialize(t,e,i,s,r),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.numPaths).fill(void 0).map((t=>new Set))),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new kt).initialize(this._geometry.clone(),this.geometryType,this.hasZ,this.hasM,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this.pointIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this.pointIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class zt extends Lt{initialize(t,e,i,s,r){return super.initialize(t,e,i,s,r)}clone(){return(new zt).initialize((0,Mt.d9)(this._paths),this.geometryType,this.hasZ,this.hasM,1)}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]}}class Tt{static local(){return null===Tt.instance&&(Tt.instance=new Tt),Tt.instance}execute(t,e,i,s,r){return new Ot(t,e,i)}}Tt.instance=null;class Ot{constructor(t,e,i){this._inputGeometries=t,this._angleTolerance=void 0!==e.angleTolerance?e.angleTolerance:120,this._maxCosAngle=Math.cos((1-Math.abs(this._angleTolerance)/180)*Math.PI)}next(){let t=this._inputGeometries.next();for(;t;){if("esriGeometryPolygon"===t.geometryType)this._isClosed=!0;else if("esriGeometryPolyline"===t.geometryType)this._isClosed=!1;else{if("esriGeometryEnvelope"!==t.geometryType){t=this._inputGeometries.next();continue}if(this._maxCosAngle)return t;this._isClosed=!0}for(;t.nextPath();)this._processPath(t);return t.reset(),t}return null}_processPath(t){if(t.nextPoint()){const e=t.x,i=t.y;let s=e,r=i,n=t.numPoints,o=0,a=0,h=0,l=0,c=0,u=0;this._isClosed&&++n;for(let f=1;t.nextPoint()||f<n;++f){let _,m;this._isClosed&&f===n-1?(_=e,m=i):(_=t.x,m=t.y);const d=_-s,p=m-r,y=Math.sqrt(d*d+p*p);f>1&&y>0&&h>0&&(o*d+a*p)/y/h<=this._maxCosAngle&&t.setControlPointAt(f-1),1===f&&(l=d,c=p,u=y),y>0&&(s=_,r=m,o=d,a=p,h=y)}this._isClosed&&h>0&&u>0&&(o*l+a*c)/u/h<=this._maxCosAngle&&t.setControlPointAt(0)}}}class Et{constructor(){this.setIdentity()}getAngle(){return(null==this.rz||0===this.rz&&1!==this.rzCos&&0!==this.rzSin)&&(this.rz=Math.atan2(this.rzSin,this.rzCos)),this.rz}setIdentity(){this.tx=0,this.ty=0,this.tz=0,this.s=1,this.rx=0,this.ry=0,this.rz=0,this.rzCos=1,this.rzSin=0}setTranslate(t,e){this.tx=t,this.ty=e}setTranslateZ(t){this.tz=t}setRotateCS(t,e){this.rz=void 0,this.rzCos=t,this.rzSin=e}setRotate(t){this.rz=t,this.rzCos=void 0,this.rzSin=void 0}setRotateY(t){this.ry=t}setScale(t){this.s=t}setMeasure(t){this.m=t}}function Ft(t,e){t[4]=e}class At{constructor(t,e=!0,i=!0,s=0){this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!e&&"esriGeometryPolygon"===t.geometryType||!i&&"esriGeometryPolyline"===t.geometryType?null:t,this.geomUnitsPerPoint=s,this.iteratePath=!1,this.internalPlacement=new Et}next(){if(!this.geometryCursor)return null;for(;this.iteratePath||this.geometryCursor.nextPath();){this.geometryCursor.seekPathStart();const t=this.processPath(this.geometryCursor);if(t)return t}return this.geometryCursor=null,null}}class Nt{constructor(t,e,i,s=0){this.isClosed=!1,this.inputGeometries=t,this.acceptPolygon=e,this.acceptPolyline=i,this.geomUnitsPerPoint=s,this.iteratePath=!1,this.multiPathCursor=null}next(){for(;;){if(!this.multiPathCursor){let t=this.inputGeometries.next();for(;t&&(this.isClosed=this.acceptPolygon&&"esriGeometryPolygon"===t.geometryType||"esriGeometryEnvelope"===t.geometryType,this.multiPathCursor=t,!this.multiPathCursor);)t=this.inputGeometries.next();if(!this.multiPathCursor)return null}for(;this.iteratePath||this.multiPathCursor.nextPath();){this.multiPathCursor.seekPathStart();const t=this.processPath(this.multiPathCursor);if(t)return t}this.multiPathCursor=null}}}const Rt=.03;class Vt{constructor(t=0,e=!1){}isEmpty(t){if(!t.nextPoint())return!0;let e,i,s,r;for(e=t.x,i=t.y;t.nextPoint();e=i,i=r)if(s=t.x,r=t.y,s!==e||r!==i)return t.seekPathStart(),!1;return t.seekPathStart(),!0}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);0!==e&&(t[0]/=e,t[1]/=e)}getLength(t,e,i,s){const r=i-t,n=s-e;return Math.sqrt(r*r+n*n)}getSegLength(t){const[[e,i],[s,r]]=t;return this.getLength(e,i,s,r)}getCoord2D(t,e,i,s,r){return[t+(i-t)*r,e+(s-e)*r]}getSegCoord2D(t,e){const[[i,s],[r,n]]=t;return this.getCoord2D(i,s,r,n,e)}getAngle(t,e,i,s,r){const n=i-t,o=s-e;return Math.atan2(o,n)}getAngleCS(t,e,i,s,r){const n=i-t,o=s-e,a=Math.sqrt(n*n+o*o);return a>0?[n/a,o/a]:[1,0]}getSegAngleCS(t,e){const[[i,s],[r,n]]=t;return this.getAngleCS(i,s,r,n,e)}cut(t,e,i,s,r,n){return[r<=0?[t,e]:this.getCoord2D(t,e,i,s,r),n>=1?[i,s]:this.getCoord2D(t,e,i,s,n)]}getSubCurve(t,e,i){const s=St.createEmptyOptimizedCIM("esriGeometryPolyline");return this.appendSubCurve(s,t,e,i)?s:null}appendSubCurve(t,e,i,s){t.startPath(),e.seekPathStart();let r=0,n=!0;if(!e.nextPoint())return!1;let o=e.x,a=e.y;for(;e.nextPoint();){const h=this.getLength(o,a,e.x,e.y);if(0!==h){if(n){if(r+h>i){const l=(i-r)/h;let c=1,u=!1;r+h>=s&&(c=(s-r)/h,u=!0);const f=this.cut(o,a,e.x,e.y,l,c);if(f&&t.pushPoints(f),u)break;n=!1}}else{if(r+h>s){const i=this.cut(o,a,e.x,e.y,0,(s-r)/h);i&&t.pushPoint(i[1]);break}t.pushXY(e.x,e.y)}r+=h,o=e.x,a=e.y}else o=e.x,a=e.y}return!0}getCIMPointAlong(t,e){if(!t.nextPoint())return null;let i,s,r,n,o=0;for(i=t.x,s=t.y;t.nextPoint();i=r,s=n){r=t.x,n=t.y;const a=this.getLength(i,s,r,n);if(0!==a){if(o+a>e){const t=(e-o)/a;return this.getCoord2D(i,s,r,n,t)}o+=a}}return null}offset(t,e,i,s,r){if(!t||t.length<2)return null;let n=0,o=t[n++],a=n;for(;n<t.length;){const e=t[n];e[0]===o[0]&&e[1]===o[1]||(n!==a&&(t[a]=t[n]),o=t[a++]),n++}const h=t[0][0]===t[a-1][0]&&t[0][1]===t[a-1][1];if(h&&--a,a<(h?3:2))return null;const l=[];o=h?t[a-1]:null;let c=t[0];for(let r=0;r<a;r++){const n=r===a-1?h?t[0]:null:t[r+1];if(o)if(n){const t=[n[0]-c[0],n[1]-c[1]];this.normalize(t);const r=[c[0]-o[0],c[1]-o[1]];this.normalize(r);const a=r[0]*t[1]-r[1]*t[0],h=r[0]*t[0]+r[1]*t[1];if(0===a&&1===h){c=n;continue}if(a>=0==e<=0){if(h<1){const i=[t[0]-r[0],t[1]-r[1]];this.normalize(i);const n=Math.sqrt((1+h)/2);if(n>1/s){const t=-Math.abs(e)/n;l.push([c[0]-i[0]*t,c[1]-i[1]*t])}}}else switch(i){case st.id.Mitered:{const i=Math.sqrt((1+h)/2);if(i>0&&1/i<s){const s=[t[0]-r[0],t[1]-r[1]];this.normalize(s);const n=Math.abs(e)/i;l.push([c[0]-s[0]*n,c[1]-s[1]*n]);break}}case st.id.Bevelled:l.push([c[0]+r[1]*e,c[1]-r[0]*e]),l.push([c[0]+t[1]*e,c[1]-t[0]*e]);break;case st.id.Rounded:if(h<1){l.push([c[0]+r[1]*e,c[1]-r[0]*e]);const i=Math.floor(2.5*(1-h));if(i>0){const s=1/i;let n=s;for(let o=1;o<i;o++,n+=s){const i=[r[1]*(1-n)+t[1]*n,-r[0]*(1-n)-t[0]*n];this.normalize(i),l.push([c[0]+i[0]*e,c[1]+i[1]*e])}}l.push([c[0]+t[1]*e,c[1]-t[0]*e])}break;case st.id.Square:default:if(a<0)l.push([c[0]+(r[1]+r[0])*e,c[1]+(r[1]-r[0])*e]),l.push([c[0]+(t[1]-t[0])*e,c[1]-(t[0]+t[1])*e]);else{const i=Math.sqrt((1+Math.abs(h))/2),s=[t[0]-r[0],t[1]-r[1]];this.normalize(s);const n=e/i;l.push([c[0]-s[0]*n,c[1]-s[1]*n])}}}else{const t=[c[0]-o[0],c[1]-o[1]];this.normalize(t),l.push([c[0]+t[1]*e,c[1]-t[0]*e])}else{const t=[n[0]-c[0],n[1]-c[1]];this.normalize(t),l.push([c[0]+t[1]*e,c[1]-t[0]*e])}o=c,c=n}return l.length<(h?3:2)?null:(h&&l.push([l[0][0],l[0][1]]),l)}}const Wt=st.TF.OpenEnded;class Gt{static local(){return null===Gt.instance&&(Gt.instance=new Gt),Gt.instance}execute(t,e,i,s,r){return new Dt(t,e,i)}}Gt.instance=null;class Dt extends Nt{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new Vt,this._width=(void 0!==e.width?e.width:5)*i,this._arrowType=void 0!==e.geometricEffectArrowType?e.geometricEffectArrowType:void 0!==e.arrowType?e.arrowType:Wt,this._offsetFlattenError=Rt*i}processPath(t){const e=St.createEmptyOptimizedCIM(t.geometryType);switch(this._arrowType){case st.TF.OpenEnded:default:this._constructSimpleArrow(e,t,!0);break;case st.TF.Block:this._constructSimpleArrow(e,t,!1);break;case st.TF.Crossed:this._constructCrossedArrow(e,t)}return e}_constructSimpleArrow(t,e,i){const s=e.pathLength();let r=this._width;s<2*r&&(r=s/2);const n=this._curveHelper.getSubCurve(e,0,s-r);if(!n||!n.nextPath())return;n.seekPathStart();const o=r/2;if(this._curveHelper.isEmpty(n))return;const a=(0,bt.l)(n),h=this._constructOffset(a,-o);if(!h)return;const l=this._constructOffset(a,o);if(!l)return;const c=this._constructArrowBasePoint(h,-o/2);if(!c)return;const u=this._constructArrowBasePoint(l,o/2);if(!u)return;e.seekInPath(e.numPoints-1);const f=[e.x,e.y];t.pushPath(l),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(u),t.nextPoint(),t.setControlPoint(),t.pushPoint(f),t.nextPoint(),t.setControlPoint(),t.pushPoint(c),t.nextPoint(),t.setControlPoint(),t.pushPoints(h.reverse()),t.setControlPoint(),i||(t.setControlPointAt(0),t.setControlPointAt(t.numPoints-1),t.pushPoint(l[0])),t.reset()}_constructCrossedArrow(t,e){const i=e.pathLength();let s=this._width;i<3.732050807568877*s&&(s=i/3.732050807568877),e.seekPathStart();const r=this._curveHelper.getSubCurve(e,0,i-2.732050807568877*s);if(!r)return;r.nextPath();const n=s/2;if(this._curveHelper.isEmpty(r))return;const o=(0,bt.l)(r),a=this._constructOffset(o,n);if(!a)return;const h=this._constructOffset(o,-n);if(!h)return;const l=this._curveHelper.getSubCurve(e,0,i-s);if(!l)return;if(l.nextPath(),this._curveHelper.isEmpty(l))return;const c=(0,bt.l)(l),u=this._constructOffset(c,n);if(!u)return;const f=this._constructOffset(c,-n);if(!f)return;const _=u[u.length-1],m=this._constructArrowBasePoint(u,n/2);if(!m)return;const d=f[f.length-1],p=this._constructArrowBasePoint(f,-n/2);if(!p)return;e.seekInPath(e.numPoints-1);const y=[e.x,e.y];t.pushPath(a),t.nextPath(),t.nextPoint(),t.setControlPoint(),t.pushPoint(d),t.nextPoint(),t.setControlPoint(),t.pushPoint(p),t.nextPoint(),t.setControlPoint(),t.pushPoint(y),t.nextPoint(),t.setControlPoint(),t.pushPoint(m),t.nextPoint(),t.setControlPoint(),t.pushPoint(_),t.nextPoint(),t.setControlPoint(),t.pushPoints(h.reverse()),t.nextPoint(),t.setControlPoint(),t.reset()}_constructOffset(t,e){return this._curveHelper.offset(t,e,st.id.Rounded,4,this._offsetFlattenError)}_constructArrowBasePoint(t,e){if(!t||t.length<2)return null;const i=t[t.length-2],s=t[t.length-1],r=[s[0]-i[0],s[1]-i[1]];return this._curveHelper.normalize(r),[s[0]+r[1]*e,s[1]-r[0]*e]}}i(66577);var Bt=i(59255);let Xt;class Ut{constructor(t){this._geometry=t}next(){const t=this._geometry;return this._geometry=null,t}}function Ht(t,e){Xt||(Xt=new Bt.bN(0,0,0,1));const i="esriGeometryPolygon"===t.geometryType,s=i?Bt.Vl.Polygon:Bt.Vl.LineString,r=i?3:2;let n,o;for(Xt.reset(s),Xt.setPixelMargin(e+1),Xt.setExtent(512);t.nextPath();)if(!(t.numPoints<r)){for(t.nextPoint(),n=t.x,o=-t.y,Xt.moveTo(n,o);t.nextPoint();)n=t.x,o=-t.y,Xt.lineTo(n,o);i&&Xt.close()}const a=Xt.result(!1);if(a){const e=St.createEmptyOptimizedCIM(t.geometryType);for(const t of a){e.startPath();for(const i of t)e.pushXY(i.x,-i.y)}return e.reset(),e}return null}class Yt{static local(){return null===Yt.instance&&(Yt.instance=new Yt),Yt.instance}execute(t,e,i,s,r,n){return new Jt(t,e,i,s,r,n)}}Yt.instance=null;class Jt{constructor(t,e,i,s,r,n){this._inputGeometries=t,this._tileKey=s,this._geometryEngine=r,this._curveHelper=new Vt,this._size=(void 0!==e.size?e.size:1)*i,this._maxInflateSize=n??0,this._offsetFlattenError=Rt*i}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._size)return t;if("esriGeometryEnvelope"===t.geometryType)if(this._size>0){const e=St.createEmptyOptimizedCIM(t.geometryType),i=(0,bt.M)(t)[0],s=this._curveHelper.offset(i,this._size,st.id.Rounded,4,this._offsetFlattenError);if(s)return e.pushPath(s),e}else if(this._size<0){const e=t.asJSON();if(Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._size>0)return St.fromJSONCIM({xmin:e.xmin-this._size,xmax:e.xmax+this._size,ymin:e.ymin-this._size,ymax:e.ymax+this._size})}const e=this._geometryEngine;if(null==e)return null;const i=this._tileKey?Ht(t,Math.abs(this._maxInflateSize)+1):t;if(!i)continue;const s=e.buffer(m.Z.WebMercator,i.asJSON(),this._size,1);return s?St.fromJSONCIM(s):null}return null}}class Zt{static local(){return null===Zt.instance&&(Zt.instance=new Zt),Zt.instance}execute(t,e,i,s,r){return new qt(t,e,i)}}Zt.instance=null;class qt{constructor(t,e,i){this._defaultPointSize=20,this._inputGeometries=t,this._geomUnitsPerPoint=i,this._rule=e.rule??st.Em.FullGeometry,this._defaultSize=this._defaultPointSize*i}next(){let t;for(;t=this._inputGeometries.next();){const e=this._processGeom((0,bt.M)(t));if(e&&e.length)return St.fromJSONCIM({paths:e})}return null}_clone(t){return[t[0],t[1]]}_mid(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}_mix(t,e,i,s){return[t[0]*e+i[0]*s,t[1]*e+i[1]*s]}_add(t,e){return[t[0]+e[0],t[1]+e[1]]}_add2(t,e,i){return[t[0]+e,t[1]+i]}_sub(t,e){return[t[0]-e[0],t[1]-e[1]]}_dist(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}_norm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}_normalize(t,e=1){const i=e/this._norm(t);t[0]*=i,t[1]*=i}_leftPerpendicular(t){const e=-t[1],i=t[0];t[0]=e,t[1]=i}_leftPerp(t){return[-t[1],t[0]]}_rightPerpendicular(t){const e=t[1],i=-t[0];t[0]=e,t[1]=i}_rightPerp(t){return[t[1],-t[0]]}_dotProduct(t,e){return t[0]*e[0]+t[1]*e[1]}_crossProduct(t,e){return t[0]*e[1]-t[1]*e[0]}_rotateDirect(t,e,i){const s=t[0]*e-t[1]*i,r=t[0]*i+t[1]*e;t[0]=s,t[1]=r}_makeCtrlPt(t){const e=[t[0],t[1]];return Ft(e,1),e}_addAngledTicks(t,e,i,s){const r=this._sub(i,e);this._normalize(r);const n=this._crossProduct(r,this._sub(s,e));let o;o=n>0?this._rightPerp(r):this._leftPerp(r);const a=Math.abs(n)/2,h=[];h.push([e[0]+(o[0]-r[0])*a,e[1]+(o[1]-r[1])*a]),h.push(e),h.push(i),h.push([i[0]+(o[0]+r[0])*a,i[1]+(o[1]+r[1])*a]),t.push(h)}_addBezier2(t,e,i,s,r){if(0==r--)return void t.push(s);const n=this._mid(e,i),o=this._mid(i,s),a=this._mid(n,o);this._addBezier2(t,e,n,a,r),this._addBezier2(t,a,o,s,r)}_addBezier3(t,e,i,s,r,n){if(0==n--)return void t.push(r);const o=this._mid(e,i),a=this._mid(i,s),h=this._mid(s,r),l=this._mid(o,a),c=this._mid(a,h),u=this._mid(l,c);this._addBezier3(t,e,o,l,u,n),this._addBezier3(t,u,c,h,r,n)}_add90DegArc(t,e,i,s,r){const n=r??this._crossProduct(this._sub(i,e),this._sub(s,e))>0,o=this._mid(e,i),a=this._sub(o,e);n?this._leftPerpendicular(a):this._rightPerpendicular(a),o[0]+=a[0],o[1]+=a[1],this._addBezier3(t,e,this._mix(e,.33333,o,.66667),this._mix(i,.33333,o,.66667),i,4)}_addArrow(t,e,i){const s=e[0],r=e[1],n=e[e.length-1],o=this._sub(s,r);this._normalize(o);const a=this._crossProduct(o,this._sub(n,r)),h=.5*a,l=this._leftPerp(o),c=[n[0]-l[0]*a,n[1]-l[1]*a],u=e.length-1,f=[];f.push(i?[-l[0],-l[1]]:l);let _=[-o[0],-o[1]];for(let t=1;t<u-1;t++){const i=this._sub(e[t+1],e[t]);this._normalize(i);const s=this._dotProduct(i,_),r=this._crossProduct(i,_),n=Math.sqrt((1+s)/2),o=this._sub(i,_);this._normalize(o),o[0]/=n,o[1]/=n,f.push(r<0?[-o[0],-o[1]]:o),_=i}f.push(this._rightPerp(_));for(let i=f.length-1;i>0;i--)t.push([e[i][0]+f[i][0]*h,e[i][1]+f[i][1]*h]);t.push([c[0]+f[0][0]*h,c[1]+f[0][1]*h]),t.push([c[0]+f[0][0]*a,c[1]+f[0][1]*a]),t.push(s),t.push([c[0]-f[0][0]*a,c[1]-f[0][1]*a]),t.push([c[0]-f[0][0]*h,c[1]-f[0][1]*h]);for(let i=1;i<f.length;i++)t.push([e[i][0]-f[i][0]*h,e[i][1]-f[i][1]*h])}_cp2(t,e,i){return t.length>=2?t[1]:this._add2(t[0],e*this._defaultSize,i*this._defaultSize)}_cp3(t,e,i,s){if(t.length>=3)return t[2];const r=this._mix(t[0],1-i,e,i),n=this._sub(e,t[0]);return this._normalize(n),this._rightPerpendicular(n),[r[0]+n[0]*s*this._defaultSize,r[1]+n[1]*s*this._defaultSize]}_arrowPath(t){if(t.length>2)return t;const e=t[0],i=this._cp2(t,-4,0),s=this._sub(e,i);this._normalize(s);const r=this._rightPerp(s);return[e,i,[e[0]+(r[0]-s[0])*this._defaultSize,e[1]+(r[1]-s[1])*this._defaultSize]]}_arrowLastSeg(t){const e=t[0],i=this._cp2(t,-4,0);let s;if(t.length>=3)s=t[t.length-1];else{const t=this._sub(e,i);this._normalize(t);const r=this._rightPerp(t);s=[e[0]+(r[0]-t[0])*this._defaultSize,e[1]+(r[1]-t[1])*this._defaultSize]}return[i,s]}_processGeom(t){if(!t)return null;const e=[];for(const i of t){if(!i||0===i.length)continue;const t=i.length;let s=i[0];switch(this._rule){case st.Em.PerpendicularFromFirstSegment:{const t=this._cp2(i,0,-1),r=this._cp3(i,t,.5,4),n=[];n.push(r),n.push(this._mid(s,t)),e.push(n);break}case st.Em.ReversedFirstSegment:{const t=this._cp2(i,0,-1);e.push([t,s]);break}case st.Em.PerpendicularToSecondSegment:{const t=this._cp2(i,-4,1),r=this._cp3(i,t,.882353,-1.94),n=[];n.push(this._mid(t,r)),n.push(s),e.push(n);break}case st.Em.SecondSegmentWithTicks:{const t=this._cp2(i,-4,1),r=this._cp3(i,t,.882353,-1.94),n=this._sub(r,t);let o;o=this._crossProduct(n,this._sub(s,t))>0?this._rightPerp(o):this._leftPerp(n);const a=[];a.push([t[0]+(o[0]-n[0])/3,t[1]+(o[1]-n[1])/3]),a.push(t),a.push(r),a.push([r[0]+(o[0]+n[0])/3,r[1]+(o[1]+n[1])/3]),e.push(a);break}case st.Em.DoublePerpendicular:{const t=this._cp2(i,0,-1),r=this._cp3(i,t,.5,3),n=this._mid(s,t),o=this._sub(n,r);this._normalize(o);const a=this._crossProduct(o,this._sub(s,r));this._leftPerpendicular(o);const h=[];h.push(s),h.push([r[0]+o[0]*a,r[1]+o[1]*a]),e.push(h);const l=[];l.push([r[0]-o[0]*a,r[1]-o[1]*a]),l.push(t),e.push(l);break}case st.Em.OppositeToFirstSegment:{const t=this._cp2(i,0,-1),r=this._cp3(i,t,.5,3),n=this._mid(s,t),o=this._sub(n,r);this._normalize(o);const a=this._crossProduct(o,this._sub(s,r));this._leftPerpendicular(o);const h=[];h.push([r[0]+o[0]*a,r[1]+o[1]*a]),h.push([r[0]-o[0]*a,r[1]-o[1]*a]),e.push(h);break}case st.Em.TriplePerpendicular:{const t=this._cp2(i,0,-1),r=this._cp3(i,t,.5,4),n=this._mid(s,t),o=this._sub(n,r);this._normalize(o);const a=this._crossProduct(o,this._sub(s,r));this._leftPerpendicular(o);const h=[];h.push([r[0]+o[0]*a*.8,r[1]+o[1]*a*.8]),h.push([n[0]+.8*(s[0]-n[0]),n[1]+.8*(s[1]-n[1])]),e.push(h),e.push([r,n]);const l=[];l.push([r[0]-o[0]*a*.8,r[1]-o[1]*a*.8]),l.push([n[0]+.8*(t[0]-n[0]),n[1]+.8*(t[1]-n[1])]),e.push(l);break}case st.Em.HalfCircleFirstSegment:{const t=this._cp2(i,0,-1),r=this._cp3(i,t,.5,4),n=this._mid(s,t);let o=this._sub(t,s);const a=Math.cos(Math.PI/18),h=Math.sin(Math.PI/18),l=Math.sqrt((1+a)/2),c=Math.sqrt((1-a)/2),u=[];let f;this._crossProduct(o,this._sub(r,s))>0?(u.push(s),o=this._sub(s,n),f=t):(u.push(t),o=this._sub(t,n),f=s),this._rotateDirect(o,l,c),o[0]/=l,o[1]/=l;for(let t=1;t<=18;t++)u.push(this._add(n,o)),this._rotateDirect(o,a,h);u.push(f),e.push(u);break}case st.Em.HalfCircleSecondSegment:{const t=this._cp2(i,0,-1),r=this._cp3(i,t,1,-1);let n=this._sub(s,t);this._normalize(n);const o=this._crossProduct(n,this._sub(r,t))/2;this._leftPerpendicular(n);const a=[t[0]+n[0]*o,t[1]+n[1]*o];n=this._sub(t,a);const h=Math.cos(Math.PI/18);let l=Math.sin(Math.PI/18);o>0&&(l=-l);const c=[t];for(let t=1;t<=18;t++)this._rotateDirect(n,h,l),c.push(this._add(a,n));e.push(c);break}case st.Em.HalfCircleExtended:{const r=this._cp2(i,0,-2),n=this._cp3(i,r,1,-1);let o;if(t>=4)o=i[3];else{const t=this._sub(s,r);o=this._add(n,t)}const a=this._dist(r,n)/2/.75,h=this._sub(r,s);this._normalize(h,a);const l=this._sub(n,o);this._normalize(l,a);const c=[o,n];e.push(c);const u=[this._clone(n)];this._addBezier3(u,n,this._add(n,l),this._add(r,h),r,4),u.push(s),e.push(u);break}case st.Em.OpenCircle:{const t=this._cp2(i,-2,0),r=this._sub(t,s),n=Math.cos(Math.PI/18),o=-Math.sin(Math.PI/18),a=[t];for(let t=1;t<=33;t++)this._rotateDirect(r,n,o),a.push(this._add(s,r));e.push(a);break}case st.Em.CoverageEdgesWithTicks:{const r=this._cp2(i,0,-1);let n,o;if(t>=3)n=i[2];else{const t=this._sub(r,s),e=this._leftPerp(t);n=[s[0]+e[0]-.25*t[0],s[1]+e[1]-.25*t[1]]}if(t>=4)o=i[3];else{const t=this._mid(s,r),e=this._sub(s,r);this._normalize(e),this._leftPerpendicular(e);const i=this._crossProduct(e,this._sub(n,t));this._rightPerpendicular(e),o=[n[0]+e[0]*i*2,n[1]+e[1]*i*2]}const a=this._sub(r,s);let h,l;h=this._crossProduct(a,this._sub(n,s))>0?this._rightPerp(a):this._leftPerp(a),l=[],l.push(n),l.push(s),l.push([s[0]+(h[0]-a[0])/3,s[1]+(h[1]-a[1])/3]),e.push(l),h=this._crossProduct(a,this._sub(o,r))>0?this._rightPerp(h):this._leftPerp(a),l=[],l.push([r[0]+(h[0]+a[0])/3,r[1]+(h[1]+a[1])/3]),l.push(r),l.push(o),e.push(l);break}case st.Em.GapExtentWithDoubleTicks:{const r=this._cp2(i,0,2),n=this._cp3(i,r,0,1);let o;if(t>=4)o=i[3];else{const t=this._sub(r,s);o=this._add(n,t)}this._addAngledTicks(e,s,r,this._mid(n,o)),this._addAngledTicks(e,n,o,this._mid(s,r));break}case st.Em.GapExtentMidline:{const r=this._cp2(i,2,0),n=this._cp3(i,r,0,1);let o;if(t>=4)o=i[3];else{const t=this._sub(r,s);o=this._add(n,t)}const a=[];a.push(this._mid(s,n)),a.push(this._mid(r,o)),e.push(a);break}case st.Em.Chevron:{const r=this._cp2(i,-1,-1);let n;if(t>=3)n=i[2];else{const t=this._sub(r,s);this._leftPerpendicular(t),n=this._add(s,t)}e.push([r,this._makeCtrlPt(s),n]);break}case st.Em.PerpendicularWithArc:{const t=this._cp2(i,0,-2),r=this._cp3(i,t,.5,-1);let n=this._sub(t,s);const o=this._norm(n);n[0]/=o,n[1]/=o;const a=this._crossProduct(n,this._sub(r,s));let h=this._dotProduct(n,this._sub(r,s));h<.05*o?h=.05*o:h>.95*o&&(h=.95*o);const l=[s[0]+n[0]*h,s[1]+n[1]*h];this._leftPerpendicular(n);let c=[];c.push([l[0]-n[0]*a,l[1]-n[1]*a]),c.push([l[0]+n[0]*a,l[1]+n[1]*a]),e.push(c);const u=[t[0]+n[0]*a,t[1]+n[1]*a];n=this._sub(t,u);const f=Math.cos(Math.PI/18);let _=Math.sin(Math.PI/18);a<0&&(_=-_),c=[s,t];for(let t=1;t<=9;t++)this._rotateDirect(n,f,_),c.push(this._add(u,n));e.push(c);break}case st.Em.ClosedHalfCircle:{const t=this._cp2(i,2,0),r=this._mid(s,t),n=this._sub(t,r),o=Math.cos(Math.PI/18),a=Math.sin(Math.PI/18),h=[s,t];for(let t=1;t<=18;t++)this._rotateDirect(n,o,a),h.push(this._add(r,n));e.push(h);break}case st.Em.TripleParallelExtended:{const t=this._cp2(i,0,-2),r=this._cp3(i,t,1,-2),n=this._mid(s,t),o=this._sub(r,t);this._normalize(o);const a=Math.abs(this._crossProduct(o,this._sub(n,t)))/2,h=this._dist(t,r),l=[t,s];l.push([s[0]+o[0]*h*.5,s[1]+o[1]*h*.5]),e.push(l);const c=[];c.push([n[0]-o[0]*a,n[1]-o[1]*a]),c.push([n[0]+o[0]*h*.375,n[1]+o[1]*h*.375]),Ft(c[c.length-1],1),c.push([n[0]+o[0]*h*.75,n[1]+o[1]*h*.75]),e.push(c);const u=[t,r];e.push(u);break}case st.Em.ParallelWithTicks:{const t=this._cp2(i,3,0),r=this._cp3(i,t,.5,-1),n=this._sub(r,t);this._normalize(n);const o=this._crossProduct(n,this._sub(r,s));this._leftPerpendicular(n),this._addAngledTicks(e,s,t,r),this._addAngledTicks(e,this._mix(s,1,n,o),this._mix(t,1,n,o),this._mid(s,t));break}case st.Em.Parallel:{const t=this._cp2(i,3,0),r=this._cp3(i,t,.5,-1),n=this._sub(t,s);this._normalize(n);const o=this._leftPerp(n),a=this._crossProduct(n,this._sub(r,s));let h=[s,t];e.push(h),h=[],h.push([s[0]+o[0]*a,s[1]+o[1]*a]),h.push([t[0]+o[0]*a,t[1]+o[1]*a]),e.push(h);break}case st.Em.PerpendicularToFirstSegment:{const t=this._cp2(i,3,0),r=this._cp3(i,t,.5,-1),n=this._mid(s,t),o=this._sub(t,s);this._normalize(o);const a=this._crossProduct(o,this._sub(r,s));this._leftPerpendicular(o);const h=[];h.push([n[0]-o[0]*a*.25,n[1]-o[1]*a*.25]),h.push([n[0]+o[0]*a*1.25,n[1]+o[1]*a*1.25]),e.push(h);break}case st.Em.ParallelOffset:{const t=this._cp2(i,3,0),r=this._cp3(i,t,.5,-1),n=this._sub(t,s);this._normalize(n);const o=this._crossProduct(n,this._sub(r,s));this._leftPerpendicular(n);const a=[];a.push([s[0]-n[0]*o,s[1]-n[1]*o]),a.push([t[0]-n[0]*o,t[1]-n[1]*o]),e.push(a);const h=[];h.push([s[0]+n[0]*o,s[1]+n[1]*o]),h.push([t[0]+n[0]*o,t[1]+n[1]*o]),e.push(h);break}case st.Em.OffsetOpposite:{const t=this._cp2(i,3,0),r=this._cp3(i,t,.5,-1),n=this._sub(t,s);this._normalize(n);const o=this._crossProduct(n,this._sub(r,s));this._leftPerpendicular(n);const a=[];a.push([s[0]-n[0]*o,s[1]-n[1]*o]),a.push([t[0]-n[0]*o,t[1]-n[1]*o]),e.push(a);break}case st.Em.OffsetSame:{const t=this._cp2(i,3,0),r=this._cp3(i,t,.5,-1),n=this._sub(t,s);this._normalize(n);const o=this._crossProduct(n,this._sub(r,s));this._leftPerpendicular(n);const a=[];a.push([s[0]+n[0]*o,s[1]+n[1]*o]),a.push([t[0]+n[0]*o,t[1]+n[1]*o]),e.push(a);break}case st.Em.CircleWithArc:{let r=this._cp2(i,3,0);const n=this._cp3(i,r,.5,-1);let o,a;if(t>=4)o=i[3],a=this._crossProduct(this._sub(o,r),this._sub(n,r))>0;else{o=r,a=this._crossProduct(this._sub(o,s),this._sub(n,s))>0;const t=24*this._geomUnitsPerPoint,e=this._sub(o,s);this._normalize(e,t);const i=Math.sqrt(2)/2;this._rotateDirect(e,i,a?i:-i),r=this._add(s,e)}const h=this._sub(r,s),l=Math.cos(Math.PI/18),c=Math.sin(Math.PI/18),u=[r];for(let t=1;t<=36;t++)this._rotateDirect(h,l,c),u.push(this._add(s,h));this._add90DegArc(u,r,o,n,a),Ft(u[u.length-8],1),e.push(u);break}case st.Em.DoubleJog:{let r,n,o=this._cp2(i,-3,1);if(r=t>=3?i[2]:this._add(s,this._sub(s,o)),t>=4)n=i[3];else{const t=s;s=o,n=r;const e=this._dist(s,t),i=this._dist(n,t);let a=30*this._geomUnitsPerPoint;.5*e<a&&(a=.5*e),.5*i<a&&(a=.5*i),o=this._mix(s,a/e,t,(e-a)/e),r=this._mix(n,a/i,t,(i-a)/i)}const a=this._mid(s,o),h=this._mid(n,r),l=this._dist(s,o),c=this._dist(r,n);let u=Math.min(l,c)/8;u=Math.min(u,24*this._geomUnitsPerPoint);const f=Math.cos(Math.PI/4);let _=this._sub(s,o);this._normalize(_,u),this._crossProduct(_,this._sub(n,o))>0?this._rotateDirect(_,f,-f):this._rotateDirect(_,f,f);let m=[];m.push(o),m.push(this._add(a,_)),m.push(this._sub(a,_)),m.push(s),e.push(m),_=this._sub(n,r),this._normalize(_,u),this._crossProduct(_,this._sub(s,r))<0?this._rotateDirect(_,f,f):this._rotateDirect(_,f,-f),m=[],m.push(r),m.push(this._add(h,_)),m.push(this._sub(h,_)),m.push(n),e.push(m);break}case st.Em.PerpendicularOffset:{const t=this._cp2(i,-4,1),r=this._cp3(i,t,.882353,-1.94),n=this._sub(r,t);this._crossProduct(n,this._sub(s,t))>0?this._rightPerpendicular(n):this._leftPerpendicular(n);const o=[n[0]/8,n[1]/8],a=this._sub(this._mid(t,r),o);e.push([a,s]);break}case st.Em.LineExcludingLastSegment:{const t=this._arrowPath(i),s=[];let r=t.length-2;for(;r--;)s.push(t[r]);e.push(s);break}case st.Em.MultivertexArrow:{const t=this._arrowPath(i),s=[];this._addArrow(s,t,!1),e.push(s);break}case st.Em.CrossedArrow:{const t=this._arrowPath(i),s=[];this._addArrow(s,t,!0),e.push(s);break}case st.Em.ChevronArrow:{const[t,r]=this._arrowLastSeg(i),n=10*this._geomUnitsPerPoint,o=this._sub(s,t);this._normalize(o);const a=this._crossProduct(o,this._sub(r,t)),h=this._leftPerp(o),l=[r[0]-h[0]*a*2,r[1]-h[1]*a*2],c=[];c.push([r[0]+o[0]*n,r[1]+o[1]*n]),c.push(s),c.push([l[0]+o[0]*n,l[1]+o[1]*n]),e.push(c);break}case st.Em.ChevronArrowOffset:{const[t,r]=this._arrowLastSeg(i),n=this._sub(s,t);this._normalize(n);const o=this._crossProduct(n,this._sub(r,t));this._leftPerpendicular(n);const a=[r[0]-n[0]*o,r[1]-n[1]*o],h=[];h.push([a[0]+n[0]*o*.5,a[1]+n[1]*o*.5]),h.push(this._mid(a,s)),h.push([a[0]-n[0]*o*.5,a[1]-n[1]*o*.5]),e.push(h);break}case st.Em.PartialFirstSegment:{const[t,r]=this._arrowLastSeg(i),n=this._sub(s,t);this._normalize(n);const o=this._crossProduct(n,this._sub(r,t));this._leftPerpendicular(n);const a=[r[0]-n[0]*o,r[1]-n[1]*o];e.push([t,a]);break}case st.Em.Arch:{const t=this._cp2(i,0,-1),r=this._cp3(i,t,.5,1),n=this._sub(s,t),o=this._mix(r,1,n,.55),a=this._mix(r,1,n,-.55),h=[s];this._addBezier2(h,s,o,r,4),this._addBezier2(h,r,a,t,4),e.push(h);break}case st.Em.CurvedParallelTicks:{const t=this._cp2(i,-4,1),r=this._cp3(i,t,.882353,-1.94),n=this._sub(r,t);this._crossProduct(n,this._sub(s,t))>0?this._rightPerpendicular(n):this._leftPerpendicular(n);const o=[n[0]/8,n[1]/8],a=this._sub(this._mid(t,r),o),h=this._sub(this._mix(t,.75,r,.25),o),l=this._sub(this._mix(t,.25,r,.75),o),c=[t];this._addBezier2(c,t,h,a,3),this._addBezier2(c,a,l,r,3),e.push(c);for(let t=0;t<8;t++){const i=c[2*t+1],s=[this._clone(i)];s.push(this._add(i,[n[0]/4,n[1]/4])),e.push(s)}break}case st.Em.Arc90Degrees:{const t=this._cp2(i,0,-1),r=this._cp3(i,t,.5,1),n=[t];this._add90DegArc(n,t,s,r),e.push(n);break}case st.Em.FullGeometry:default:e.push(i)}}return e}}class Kt{static local(){return null===Kt.instance&&(Kt.instance=new Kt),Kt.instance}execute(t,e,i,s,r){return new jt(t,e,i)}}Kt.instance=null;class jt extends Nt{constructor(t,e,i){super(t,!0,!0),this._curveHelper=new Vt,this._beginCut=(void 0!==e.beginCut?e.beginCut:1)*i,this._endCut=(void 0!==e.endCut?e.endCut:1)*i,this._middleCut=(void 0!==e.middleCut?e.middleCut:0)*i,this._invert=void 0!==e.invert&&e.invert,this._beginCut<0&&(this._beginCut=0),this._endCut<0&&(this._endCut=0),this._middleCut<0&&(this._middleCut=0)}processPath(t){const{_beginCut:e,_endCut:i,_middleCut:s}=this,r=t.pathLength(),n=St.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._invert){if(0!==e||0!==i||0!==s)if(e+i+s>=r)for(n.startPath();t.nextPoint();)n.pushXY(t.x,t.y);else this._curveHelper.appendSubCurve(n,t,0,e),this._curveHelper.appendSubCurve(n,t,.5*(r-s),.5*(r+s)),this._curveHelper.appendSubCurve(n,t,r-i,i)}else if(0===e&&0===i&&0===s)for(n.startPath();t.nextPoint();)n.pushXY(t.x,t.y);else e+i+s<r&&(0===s?this._curveHelper.appendSubCurve(n,t,e,r-i):(this._curveHelper.appendSubCurve(n,t,e,.5*(r-s)),this._curveHelper.appendSubCurve(n,t,.5*(r+s),r-i)));return 0===n.numPaths?null:n}}class $t{constructor(){this._values=[],this.extPtGap=0,this.ctrlPtGap=0,this._length=0,this._currentValue=0}isEmpty(){return 0===this._values.length}size(){return this._values.length}init(t,e,i=!0){if(this._setEmpty(),!t||0===t.length)return!1;for(let e=0;e<t.length;e++){let s=Math.abs(t[e]);i&&s<1e-7&&(s=1e-7),this._values.push(s),this._length+=s}return e&&1&t.length&&(this._length*=2),0!==this._length&&(this.ctrlPtGap=this.extPtGap=0,this._currentValue=-1,!0)}scale(t){const e=this._values?this._values.length:0;for(let i=0;i<e;++i)this._values[i]*=t;this._length*=t,this.extPtGap*=t,this.ctrlPtGap*=t}addValue(t){this._length+=t,this._values.push(t)}firstValue(){return this._values[0]}lastValue(){return this._values[this._values.length-1]}nextValue(){return this._currentValue++,this._currentValue===this._values.length&&(this._currentValue=0),this._values[this._currentValue]}reset(){this._currentValue=-1}length(){return this._length}_setEmpty(){this.extPtGap=this.ctrlPtGap=this._length=0,this._currentValue=-1,this._values.length=0}}class Qt{constructor(){this.pt=null,this.ca=0,this.sa=0}}var te,ee;(ee=te||(te={}))[ee.FAIL=0]="FAIL",ee[ee.END=1]="END",ee[ee.CONTINUE=2]="CONTINUE";class ie{constructor(){this.reset()}reset(){this.segment=null,this.segmentLength=0,this.abscissa=0,this.isPathEnd=!1,this.isPartEnd=!1}isValid(){return null!==this.segment}copyTo(t){t.segment=this.segment,t.segmentLength=this.segmentLength,t.abscissa=this.abscissa,t.isPathEnd=this.isPathEnd,t.isPartEnd=this.isPartEnd}}class se extends Vt{constructor(t=0,e=!1){super(t,e),this._tolerance=Rt,this._currentPosition=new ie}updateTolerance(t){this._tolerance=Rt*t}init(t,e,i=!0){return i?(this._patternLength=e.length(),this._partExtPtGap=e.extPtGap,this._partCtrlPtGap=e.ctrlPtGap):(this._patternLength=0,this._partExtPtGap=0,this._partCtrlPtGap=0),this._currentPosition.reset(),this._partSegCount=0,this._pathCursor=t,this._seg=-1,this._setPosAtNextPart()}curPositionIsValid(){return this._currentPosition.isValid()}nextPosition(t,e=te.FAIL){const i=new ie;return!!this._nextPosition(t,i,null,e)&&(i.copyTo(this._currentPosition),!0)}curPointAndAngle(t){t.pt=this._getPoint(this._currentPosition);const[e,i]=this._getAngleCS(this._currentPosition);t.ca=e,t.sa=i}nextPointAndAngle(t,e,i=te.FAIL){const s=new ie;if(!this._nextPosition(t,s,null,i))return!1;s.copyTo(this._currentPosition),e.pt=this._getPoint(s);const[r,n]=this._getAngleCS(s);return e.ca=r,e.sa=n,!0}nextCurve(t){if(0===t)return null;const e=St.createEmptyOptimizedCIM("esriGeometryPolyline");e.startPath(),e.nextPath();const i=new ie;return this._nextPosition(t,i,e,te.END)?(i.copyTo(this._currentPosition),e):null}isPathEnd(){return this._currentPosition.isPathEnd}getPathEnd(){return this._currentPosition.segment[1]}getPt(t){return this._pathCursor.seekInPath(t),[this._pathCursor.x,this._pathCursor.y]}getSeg(t){return[this.getPt(t),this.getPt(t+1)]}_nextPosition(t,e,i,s){if(this._currentPosition.isPathEnd)return!1;let r=this._currentPosition.abscissa;for(this._currentPosition.segmentLength>0&&(r/=this._currentPosition.segmentLength),this._currentPosition.copyTo(e);e.abscissa+t*this._partLengthRatio>e.segmentLength+this._tolerance;){if(i){if(0===i.numPoints)if(0===r){const t=e.segment[0];i.pushXY(t[0],t[1])}else i.pushPoint(this.getSegCoord2D(e.segment,r));const t=e.segment[1];i.pushXY(t[0],t[1])}if(r=0,t-=(e.segmentLength-e.abscissa)/this._partLengthRatio,this._partSegCount)e.segment=this._nextSegment(),e.segmentLength=this.getSegLength(e.segment),e.abscissa=0,this._partSegCount--;else{if(!this._setPosAtNextPart())return s!==te.FAIL&&(e.segmentLength=this.getSegLength(e.segment),e.isPartEnd=!0,s===te.END?(e.abscissa=e.segmentLength,e.isPathEnd=!0):e.abscissa=e.segmentLength+t,!0);this._currentPosition.copyTo(e)}}if(e.abscissa+=t*this._partLengthRatio,i){0===i.numPoints&&(0===r?i.pushPoint(e.segment[0]):i.pushPoint(this.getSegCoord2D(e.segment,r)));const t=e.abscissa/e.segmentLength;1===t?i.pushPoint(e.segment[1]):i.pushPoint(this.getSegCoord2D(e.segment,t))}return this._partSegCount||Math.abs(e.abscissa-e.segmentLength)<this._tolerance&&(e.isPathEnd=this._partIsLast,e.isPartEnd=!0),!0}_getPoint(t){const e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegCoord2D(this._currentPosition.segment,e)}_getAngleCS(t){const e=t.segmentLength<=0?0:t.abscissa/t.segmentLength;return this.getSegAngleCS(this._currentPosition.segment,e)}_setPosAtNextPart(){for(;this._partSegCount;)this._hasNextSegment()&&this._nextSegment(),this._partSegCount--;if(!this._hasNextSegment())return!1;for(this._partLength=0,this._partIsLast=!0,this._partSegCount=0;this._hasNextSegment();)if(this._partLength+=this.getSegLength(this._nextSegment()),this._partSegCount++,this._pathCursor.getControlPointAt(this._getEndPointIndex())){this._partIsLast=!this._hasNextSegment();break}let t=this._partSegCount;for(;t;)this._previousSegment(),--t;this._currentPosition.segment=this._nextSegment(),this._currentPosition.segmentLength=this.getSegLength(this._currentPosition.segment),this._currentPosition.abscissa=0,this._currentPosition.isPathEnd=this._currentPosition.isPartEnd=!1,--this._partSegCount;const e=this._getStartPointIndex();this._ctrlPtBegin=this._pathCursor.getControlPointAt(e);let i=e+this._partSegCount+1;if(i>=this._pathCursor.numPoints&&(i=0),this._ctrlPtEnd=this._pathCursor.getControlPointAt(i),this._patternLength>0){const t=this._ctrlPtBegin?this._partCtrlPtGap:this._partExtPtGap,e=this._ctrlPtEnd?this._partCtrlPtGap:this._partExtPtGap;let i=Math.round((this._partLength-(t+e))/this._patternLength);i<=0&&(i=t+e>0?0:1),this._partLengthRatio=this._partLength/(t+e+i*this._patternLength),this._partLengthRatio<.01&&(this._partLengthRatio=1)}else this._partLengthRatio=1;return!0}_hasNextSegment(){return this._seg<this._pathCursor.numPoints-2}_previousSegment(){return this.getSeg(--this._seg)}_nextSegment(){return this.getSeg(++this._seg)}_getStartPointIndex(){return this._seg}_getEndPointIndex(){return this._seg+1}}class re{static local(){return null===re.instance&&(re.instance=new re),re.instance}execute(t,e,i,s,r){return new ne(t,e,i)}}re.instance=null;class ne extends Nt{constructor(t,e,i){super(t,!0,!0),this._firstCurve=null,this._walker=new se,this._walker.updateTolerance(i),this._endings=e.lineDashEnding,this._customDashPos=-(e.offsetAlongLine??0)*i,this._offsetAtEnd=(e.customEndingOffset??0)*i,this._pattern=new $t,this._pattern.init(e.dashTemplate,!0),this._pattern.scale(i)}processPath(t){if(0===this._pattern.length()){this.iteratePath=!1;const e=(0,bt.l)(t);return St.fromJSONCIM({paths:[e]})}if(!this.iteratePath){let e=!0;switch(this._endings){case st.sj.HalfPattern:case st.sj.HalfGap:default:this._pattern.extPtGap=0;break;case st.sj.FullPattern:this.isClosed||(this._pattern.extPtGap=.5*this._pattern.firstValue());break;case st.sj.FullGap:this.isClosed||(this._pattern.extPtGap=.5*this._pattern.lastValue());break;case st.sj.NoConstraint:this.isClosed||(e=!1);break;case st.sj.Custom:this.isClosed||(this._pattern.extPtGap=.5*this._offsetAtEnd)}const i=t.pathLength();if(this._pattern.isEmpty()||i<.1*this._pattern.length()){const e=(0,bt.l)(t);return St.fromJSONCIM({paths:[e]})}if(!this._walker.init(t,this._pattern,e)){const e=(0,bt.l)(t);return St.fromJSONCIM({paths:[e]})}}let e;if(this.iteratePath)e=this._pattern.nextValue();else{let t;switch(this._endings){case st.sj.HalfPattern:default:t=.5*this._pattern.firstValue();break;case st.sj.HalfGap:t=.5*-this._pattern.lastValue();break;case st.sj.FullGap:t=-this._pattern.lastValue();break;case st.sj.FullPattern:t=0;break;case st.sj.NoConstraint:case st.sj.Custom:t=-this._customDashPos}let i=t/this._pattern.length();i-=Math.floor(i),t=i*this._pattern.length(),this._pattern.reset(),e=this._pattern.nextValue();let s=!1;for(;t>=e;)t-=e,e=this._pattern.nextValue(),s=!s;e-=t,s?(this._walker.nextPosition(e),e=this._pattern.nextValue()):this.isClosed&&(this._firstCurve=this._walker.nextCurve(e),e=this._pattern.nextValue(),this._walker.nextPosition(e),e=this._pattern.nextValue())}let i=this._walker.nextCurve(e);if(i)if(this._walker.isPathEnd()){if(this.iteratePath=!1,this._firstCurve){for(this._firstCurve.nextPath();this._firstCurve.nextPoint();)i.pushXY(this._firstCurve.x,this._firstCurve.y);this._firstCurve=null}}else e=this._pattern.nextValue(),!this._walker.nextPosition(e)||this._walker.isPathEnd()?(this.iteratePath=!1,this._firstCurve&&(i=this._firstCurve,this._firstCurve=null)):this.iteratePath=!0;else this.iteratePath=!1,i=this._firstCurve,this._firstCurve=null;return i?.reset(),i}}class oe{static local(){return null===oe.instance&&(oe.instance=new oe),oe.instance}execute(t,e,i,s,r,n){return new ae(t,e,i,s,r,n)}}oe.instance=null;class ae{constructor(t,e,i,s,r,n){switch(this._inputGeometries=t,this._tileKey=s,this._geometryEngine=r,this._maxInflateSize=n,this._width=(void 0!==e.width?e.width:2)*i,e.method){case st.$y.Mitered:case st.$y.Bevelled:case st.$y.Rounded:case st.$y.TrueBuffer:case st.$y.Square:}this._option=e.option}next(){let t;for(;t=this._inputGeometries.next();){if("esriGeometryEnvelope"===t.geometryType&&this._width>0){const e=t.asJSON();return Math.min(e.xmax-e.xmin,e.ymax-e.ymin)-2*this._width<0?t:St.fromJSONCIM({paths:[[[e.xmin+this._width,e.ymin+this._width],[e.xmax-this._width,e.ymin+this._width],[e.xmax-this._width,e.ymax-this._width],[e.xmin+this._width,e.ymax-this._width],[e.xmin+this._width,e.ymin+this._width]],[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}if("esriGeometryPolygon"===t.geometryType){if(0===this._width)return t.clone();const e=this._geometryEngine;if(null==e)return null;const i=this._tileKey?Ht(t,this._width+Math.abs(this._maxInflateSize)+1):t.clone();if(!i)continue;const s=e.buffer(m.Z.WebMercator,i.asJSON(),-this._width,1);if(s)for(const t of s.rings)t&&i.pushPath(t.reverse());return i}}return null}}class he{static local(){return null===he.instance&&(he.instance=new he),he.instance}execute(t,e,i,s,r){return new le(t,e,i)}}he.instance=null;class le extends Nt{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new Vt,this._length=(void 0!==e.length?e.length:20)*i,this._angle=void 0!==e.angle?e.angle:225,this._position=void 0!==e.position?e.position:50,this._length<0&&(this._length=-this._length),this._position<20&&(this._position=20),this._position>80&&(this._position=80),this._mirror=!1}processPath(t){const e=St.createEmptyOptimizedCIM("esriGeometryPolyline");if(this._curveHelper.isEmpty(t))return null;t.seekInPath(0);const i=t.x,s=t.y;t.seekInPath(t.numPoints-1);const r=t.x,n=t.y,o=[r-i,n-s];this._curveHelper.normalize(o);const a=i+(r-i)*this._position/100,h=s+(n-s)*this._position/100,l=Math.cos((90-this._angle)/180*Math.PI);let c=Math.sin((90-this._angle)/180*Math.PI);this._mirror&&(c=-c),this._mirror=!this._mirror;const u=[a-this._length/2*l,h-this._length/2*c],f=[a+this._length/2*l,h+this._length/2*c];return e.pushPath([[i,s],u,f,[r,n]]),e}}class ce{static local(){return null===ce.instance&&(ce.instance=new ce),ce.instance}execute(t,e,i,s,r){return new ue(t,e,i)}}ce.instance=null;class ue{constructor(t,e,i){this._inputGeometries=t,this._offsetX=void 0!==e.offsetX?e.offsetX*i:0,this._offsetY=void 0!==e.offsetY?e.offsetY*i:0}next(){let t=this._inputGeometries.next();for(;t;){if(t.numPaths>0)return this._move(t.clone(),this._offsetX,this._offsetY);t=this._inputGeometries.next()}return null}_move(t,e,i){for(;t.nextPath();)for(;t.nextPoint();)t.x=t.x+e,t.y=t.y+i;return t.reset(),t}}class fe{static local(){return null===fe.instance&&(fe.instance=new fe),fe.instance}execute(t,e,i,s,r,n){return new _e(t,e,i,s,r,n)}}fe.instance=null;class _e{constructor(t,e,i,s,r,n){this._inputGeometries=t,this._tileKey=s,this._geometryEngine=r,this._curveHelper=new Vt,this._maxInflateSize=n,this._offset=(e.offset??1)*i,this._method=e.method,this._maxInflateSize=n,this._option=e.option,this._offsetFlattenError=Rt*i}next(){let t;for(;t=this._inputGeometries.next();){if(0===this._offset)return t.clone();if("esriGeometryEnvelope"===t.geometryType){if(this._method===st.id.Rounded&&this._offset>0){const e=(0,bt.l)(t),i=this._curveHelper.offset(e,-this._offset,this._method,4,this._offsetFlattenError);if(i){const e=St.createEmptyOptimizedCIM(t.geometryType);return e.pushPath(i),e}return null}const e=t.asJSON();if((0,Pt.YX)(e)&&Math.min(e.xmax-e.xmin,e.ymax-e.ymin)+2*this._offset>0)return St.fromJSONCIM({xmin:e.xmin-this._offset,xmax:e.xmax+this._offset,ymin:e.ymin-this._offset,ymax:e.ymax+this._offset})}const e=this._geometryEngine;if(null==e)continue;const i=this._tileKey?Ht(t,Math.abs(this._maxInflateSize)+1):t.clone();if(!i)continue;const s=e.offset(m.Z.WebMercator,i.asJSON(),-this._offset,1,this._method,4,this._offsetFlattenError);return s?St.fromJSONCIM(s):null}return null}}class me{static local(){return null===me.instance&&(me.instance=new me),me.instance}execute(t,e,i,s,r){return new de(t,e,i)}}me.instance=null;class de{constructor(t,e,i){this._inputGeometries=t,this._reverse=void 0===e.reverse||e.reverse}next(){let t=this._inputGeometries.next();for(;t;){if(!this._reverse)return t;if("esriGeometryPolyline"===t.geometryType)return pe(t.clone());t=this._inputGeometries.next()}return null}}function pe(t){for(;t.nextPath();)for(let e=0;e<t.numPoints/2;e++){t.seekInPath(e);const i=t.x,s=t.y;t.seekInPath(t.numPoints-e-1);const r=t.x,n=t.y;t.x=i,t.y=s,t.seekInPath(e),t.x=r,t.y=n}return t.reset(),t}var ye=i(20322);class ge{static local(){return null===ge.instance&&(ge.instance=new ge),ge.instance}execute(t,e,i,s,r){return new xe(t,e,i)}}ge.instance=null;class xe{constructor(t,e,i){this._inputGeometries=t,this._rotateAngle=void 0!==e.angle?e.angle*Math.PI/180:0}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._rotateAngle||"esriGeometryPoint"===t.geometryType)return t;if(t.numPaths>0){const e=(0,ye.Cs)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._rotate(t.clone(),i,s)}t=this._inputGeometries.next()}return null}_rotate(t,e,i){const s=Math.cos(this._rotateAngle),r=Math.sin(this._rotateAngle);for(;t.nextPath();)for(;t.nextPoint();){const n=t.x-e,o=t.y-i;t.x=e+n*s-o*r,t.y=i+n*r+o*s}return t.reset(),t}}class Me{static local(){return null===Me.instance&&(Me.instance=new Me),Me.instance}execute(t,e,i,s,r){return new be(t,e,i)}}Me.instance=null;class be{constructor(t,e,i){this._inputGeometries=t,this._xFactor=void 0!==e.XScaleFactor?e.XScaleFactor:1.15,this._yFactor=void 0!==e.YScaleFactor?e.YScaleFactor:1.15}next(){const t=this._inputGeometries.next();if(t){if(1===this._xFactor&&1===this._yFactor)return t;if("esriGeometryPoint"===t.geometryType)return t;if(t.numPaths>0){const e=(0,ye.Cs)(t),i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;return t.reset(),this._scaleCursor(t.clone(),i,s)}}return null}_scaleCursor(t,e,i){for(;t.nextPath();)for(;t.nextPoint();)t.x=e+(t.x-e)*this._xFactor,t.y=i+(t.y-i)*this._yFactor;return t.reset(),t}}class Pe{static local(){return null===Pe.instance&&(Pe.instance=new Pe),Pe.instance}execute(t,e,i,s,r){return new ve(t,e,i)}}Pe.instance=null;class ve{constructor(t,e,i){this._inputGeometries=t,this._height=(void 0!==e.amplitude?e.amplitude:2)*i,this._period=(void 0!==e.period?e.period:3)*i,this._style=e.waveform,this._height<=0&&(this._height=Math.abs(this._height)),this._period<=0&&(this._period=Math.abs(this._period)),this._pattern=new $t,this._pattern.addValue(this._period),this._pattern.addValue(this._period),this._walker=new se,this._walker.updateTolerance(i)}next(){let t=this._inputGeometries.next();for(;t;){if(0===this._height||0===this._period)return t;const e=this._processGeom(t);if(e)return e;t=this._inputGeometries.next()}return null}_processGeom(t){const e=St.createEmptyOptimizedCIM(t.geometryType);for(;t.nextPath();){e.startPath();const i=t.pathLength();if(this._walker.init(t,this._pattern))switch(this._style){case st.zQ.Sinus:default:this._constructCurve(e,i,!1);break;case st.zQ.Square:this._constructSquare(e,i);break;case st.zQ.Triangle:this._constructTriangle(e,i);break;case st.zQ.Random:this._constructCurve(e,i,!0)}else for(;t.nextPoint();)e.pushXY(t.x,t.y)}return e}_constructCurve(t,e,i){let s=Math.round(e/this._period);0===s&&(s=1);const r=16*s+1,n=e/s,o=this._period/16,a=1/r,h=2*Math.PI*e/n,l=2*Math.PI*Math.random(),c=2*Math.PI*Math.random(),u=2*Math.PI*Math.random(),f=.75-Math.random()/2,_=.75-Math.random()/2,m=new Qt;this._walker.curPointAndAngle(m),t.pushPoint(m.pt);let d=0;for(;;){if(!this._walker.nextPointAndAngle(o,m)){t.pushPoint(this._walker.getPathEnd());break}{const e=d;let s;if(d+=a,i){const t=this._height/2*(1+.3*Math.sin(f*h*e+l));s=t*Math.sin(h*e+c),s+=t*Math.sin(_*h*e+u),s/=2}else s=.5*this._height*Math.sin(.5*h*e);t.pushXY(m.pt[0]-s*m.sa,m.pt[1]+s*m.ca)}}}_constructSquare(t,e){Math.round(e/this._period);let i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){const s=new Qt;this._walker.curPointAndAngle(s);const r=new Qt;if(this._walker.nextPointAndAngle(this._period,r)){const n=new Qt;this._walker.nextPointAndAngle(this._period,n)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.pt),t.pushXY(s.pt[0]-this._height/2*s.sa,s.pt[1]+this._height/2*s.ca),t.pushXY(r.pt[0]-this._height/2*r.sa,r.pt[1]+this._height/2*r.ca),t.pushXY(r.pt[0]+this._height/2*r.sa,r.pt[1]-this._height/2*r.ca),t.pushXY(n.pt[0]+this._height/2*n.sa,n.pt[1]-this._height/2*n.ca),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}_constructTriangle(t,e){Math.round(e/this._period);let i=!0;for(;;){let e=!1;if(this._walker.curPositionIsValid()){const s=new Qt;this._walker.curPointAndAngle(s);const r=new Qt;if(this._walker.nextPointAndAngle(this._period/2,r)){const n=new Qt;this._walker.nextPointAndAngle(this._period,n)&&(this._walker.nextPosition(this._period/2)&&(i?(t.pushPoint(s.pt),i=!1):t.pushPoint(s.pt),t.pushXY(r.pt[0]-this._height/2*r.sa,r.pt[1]+this._height/2*r.ca),t.pushXY(n.pt[0]+this._height/2*n.sa,n.pt[1]-this._height/2*n.ca)),e=!0)}}if(!e){t.pushPoint(this._walker.getPathEnd());break}}}}class Se{static local(){return null===Se.instance&&(Se.instance=new Se),Se.instance}execute(t,e,i,s,r){return new we(t,e,i)}}Se.instance=null;class we extends At{constructor(t,e,i){super(t),this._geometryWalker=new se,this._geometryWalker.updateTolerance(i),this._angleToLine=e.angleToLine??!0,this._offset=(e.offset?e.offset:0)*i,this._originalEndings=e.endings,this._offsetAtEnd=(e.customEndingOffset?e.customEndingOffset:0)*i,this._position=-(e.offsetAlongLine?e.offsetAlongLine:0)*i,this._pattern=new $t,this._pattern.init(e.placementTemplate,!1),this._pattern.scale(i),this._endings=this._originalEndings}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath)e=this._pattern.nextValue();else{this._originalEndings===st.JS.WithFullGap&&this.isClosed?this._endings=st.JS.WithMarkers:this._endings=this._originalEndings,this._pattern.extPtGap=0;let i,s=!0;switch(this._endings){case st.JS.NoConstraint:i=-this._position,i=this._adjustPosition(i),s=!1;break;case st.JS.WithHalfGap:default:i=-this._pattern.lastValue()/2;break;case st.JS.WithFullGap:i=-this._pattern.lastValue(),this._pattern.extPtGap=this._pattern.lastValue();break;case st.JS.WithMarkers:i=0;break;case st.JS.Custom:i=-this._position,i=this._adjustPosition(i),this._pattern.extPtGap=.5*this._offsetAtEnd}if(!this._geometryWalker.init(t,this._pattern,s))return null;this._pattern.reset();let r=0;for(;i>r;)i-=r,r=this._pattern.nextValue();r-=i,e=r,this.iteratePath=!0}const i=new Qt;return this._geometryWalker.nextPointAndAngle(e,i)?this._endings===st.JS.WithFullGap&&this._geometryWalker.isPathEnd()?(this.iteratePath=!1,null):this._endings===st.JS.WithMarkers&&this._geometryWalker.isPathEnd()&&(this.iteratePath=!1,this.isClosed)?null:(this.internalPlacement.setTranslate(i.pt[0]-this._offset*i.sa,i.pt[1]+this._offset*i.ca),this._angleToLine&&this.internalPlacement.setRotateCS(i.ca,i.sa),this.internalPlacement):(this.iteratePath=!1,null)}_adjustPosition(t){let e=t/this._pattern.length();return e-=Math.floor(e),e*this._pattern.length()}}class Ce{static local(){return null===Ce.instance&&(Ce.instance=new Ce),Ce.instance}execute(t,e,i,s,r){return new Ie(t,e,i)}}Ce.instance=null;class Ie extends At{constructor(t,e,i){super(t,!1,!0),this._curveHelper=new Vt,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._offset=void 0!==e.offset?e.offset*i:0,this._type=e.extremityPlacement,this._position=void 0!==e.offsetAlongLine?e.offsetAlongLine*i:0,this._beginProcessed=!1}processPath(t){let e;switch(this._type){case st.Tx.Both:default:this._beginProcessed?(e=this._atExtremities(t,this._position,!1),this._beginProcessed=!1,this.iteratePath=!1):(e=this._atExtremities(t,this._position,!0),this._beginProcessed=!0,this.iteratePath=!0);break;case st.Tx.JustBegin:e=this._atExtremities(t,this._position,!0);break;case st.Tx.JustEnd:e=this._atExtremities(t,this._position,!1);case st.Tx.None:}return e}_atExtremities(t,e,i){if(i||t.seekPathEnd(),i?t.nextPoint():t.prevPoint()){let s=0,[r,n]=[0,0],[o,a]=[t.x,t.y];for(;i?t.nextPoint():t.prevPoint();){r=o,n=a,o=t.x,a=t.y;const i=this._curveHelper.getLength(r,n,o,a);if(s+i>e){const t=(e-s)/i,[h,l]=this._curveHelper.getAngleCS(r,n,o,a,t),c=this._curveHelper.getCoord2D(r,n,o,a,t);return this.internalPlacement.setTranslate(c[0]-this._offset*l,c[1]+this._offset*h),this._angleToLine&&this.internalPlacement.setRotateCS(-h,-l),this.internalPlacement}s+=i}}return null}}class Le{static local(){return null===Le.instance&&(Le.instance=new Le),Le.instance}execute(t,e,i,s,r){return new ke(t,e,i)}}Le.instance=null;class ke extends At{constructor(t,e,i){super(t),this._walker=new se,this._walker.updateTolerance(i),this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._offset=void 0!==e.offset?e.offset*i:0,this._beginGap=void 0!==e.beginPosition?e.beginPosition*i:0,this._endGap=void 0!==e.endPosition?e.endPosition*i:0,this._flipFirst=void 0===e.flipFirst||e.flipFirst,this._pattern=new $t,this._pattern.init(e.positionArray,!1,!1),this._subPathLen=0,this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0}processPath(t){if(this._pattern.isEmpty())return null;let e;if(this.iteratePath){const t=this._pattern.nextValue()*this._subPathLen,i=this._beginGap+t;e=i-this._prevPos,this._prevPos=i}else{if(this._posCount=this._pattern.size(),this._isFirst=!0,this._prevPos=0,this._subPathLen=t.pathLength()-this._beginGap-this._endGap,this._subPathLen<0)return this.iteratePath=!1,null;if(!this._walker.init(t,this._pattern,!1))return null;this._pattern.reset();const i=this._pattern.nextValue()*this._subPathLen,s=this._beginGap+i;e=s-this._prevPos,this._prevPos=s,this.iteratePath=!0}const i=new Qt;if(!this._walker.nextPointAndAngle(e,i,te.END))return this.iteratePath=!1,null;this.internalPlacement.setTranslate(i.pt[0]-this._offset*i.sa,i.pt[1]+this._offset*i.ca);const s=this._isFirst&&this._flipFirst;let r,n;return this._angleToLine?(r=i.ca,n=i.sa):(r=1,n=0),s&&(r=-r,n=-n),this.internalPlacement.setRotateCS(r,n),this._isFirst=!1,this._posCount--,0===this._posCount&&(this.iteratePath=!1),this.internalPlacement}}var ze=i(77734);const Te=512,Oe=24,Ee=1e-6;class Fe{static local(){return null===Fe.instance&&(Fe.instance=new Fe),Fe.instance}execute(t,e,i,s,r){return new Ae(t,e,i,s,r)}}Fe.instance=null;class Ae{constructor(t,e,i,s,r){if(this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,this._currentX=0,this._currentY=0,this._accelerationMap=null,this._testInsidePolygon=!1,this._verticalSubdivision=!0,this._stepX=Math.abs(e.stepX??16)*i,this._stepY=Math.abs(e.stepY??16)*i,this._stepX=Math.round(128*this._stepX)/128,this._stepY=Math.round(128*this._stepY)/128,0!==this._stepX&&0!==this._stepY){if(this._gridType=e.gridType??st.bj.Fixed,this._gridType===st.bj.Random){const t=e.seed??13,i=1;this._randomLCG=new ze.Z(t*i),this._randomness=(e.randomness??100)/100,this._gridAngle=0,this._shiftOddRows=!1,this._cosAngle=1,this._sinAngle=0,this._offsetX=0,this._offsetY=0,this._buildRandomValues()}else{if(this._randomness=0,this._gridAngle=e.gridAngle??0,this._shiftOddRows=e.shiftOddRows??!1,this._offsetX=(e.offsetX??0)*i,this._offsetY=(e.offsetY??0)*i,this._cosAngle=Math.cos(this._gridAngle/180*Math.PI),this._sinAngle=-Math.sin(this._gridAngle/180*Math.PI),this._stepX)if(this._offsetX<0)for(;this._offsetX<-.5*this._stepX;)this._offsetX+=this._stepX;else for(;this._offsetX>=.5*this._stepX;)this._offsetX-=this._stepX;if(this._stepY)if(this._offsetY<0)for(;this._offsetY<-.5*this._stepY;)this._offsetY+=this._stepY;else for(;this._offsetY>=.5*this._stepY;)this._offsetY-=this._stepY}if(this._graphicOriginX=0,this._graphicOriginY=0,null!=s){const[t,e,i,r]=s.split("/"),n=parseFloat(t),o=parseFloat(e),a=parseFloat(i),h=parseFloat(r);this._graphicOriginX=-(h*2**n+a)*Te,this._graphicOriginY=o*Te,this._testInsidePolygon=!0}this._internalPlacement=new Et,this._calculateMinMax(t),this._geometryCursor=t}}next(){return this._geometryCursor?this._nextInside():null}_buildRandomValues(){if(!Ae._randValues){Ae._randValues=[];for(let t=0;t<Oe;t++)for(let t=0;t<Oe;t++)Ae._randValues.push(this._randomLCG.getFloat()),Ae._randValues.push(this._randomLCG.getFloat())}}_calculateMinMax(t){let e,i,s,r,n,o,a,h,l,c,u,f,_,m;this._xMin=0,this._xMax=0,this._yMin=0,this._yMax=0,a=h=_=u=Number.MAX_VALUE,l=c=m=f=-Number.MAX_VALUE;const d=1!==this._cosAngle;for(t.reset();t.nextPath();)for(;t.nextPoint();)o=t.x,n=t.y,e=o-this._graphicOriginX-this._offsetX,i=n-this._graphicOriginY-this._offsetY,d?(s=this._cosAngle*e-this._sinAngle*i,r=this._sinAngle*e+this._cosAngle*i):(s=e,r=i),a=Math.min(a,s),l=Math.max(l,s),h=Math.min(h,r),c=Math.max(c,r),u=Math.min(u,n),f=Math.max(f,n),_=Math.min(_,o),m=Math.max(m,o);u=u!==Number.MAX_VALUE?u:-512-this._stepY,f=f!==-Number.MAX_VALUE?f:this._stepY,_=_!==Number.MAX_VALUE?_:-this._stepX,m=m!==-Number.MAX_VALUE?m:Te+this._stepX;const p=f-u,y=m-_;if(this._verticalSubdivision=p>=y,this._polygonMin=this._verticalSubdivision?u:_,this._testInsidePolygon){let t=0-this._graphicOriginX-this._offsetX-this._stepX,e=Te-this._graphicOriginX-this._offsetX+this._stepX,i=-512-this._graphicOriginY-this._offsetY-this._stepY,s=0-this._graphicOriginY-this._offsetY+this._stepY;if(d){const r=[[t,i],[t,s],[e,i],[e,s]];t=i=Number.MAX_VALUE,e=s=-Number.MAX_VALUE;for(const n of r){const r=this._cosAngle*n[0]-this._sinAngle*n[1],o=this._sinAngle*n[0]+this._cosAngle*n[1];t=Math.min(t,r),e=Math.max(e,r),i=Math.min(i,o),s=Math.max(s,o)}}a=a!==Number.MAX_VALUE?Math.max(a,t):t,h=h!==Number.MAX_VALUE?Math.max(h,i):i,l=l!==-Number.MAX_VALUE?Math.min(l,e):e,c=c!==-Number.MAX_VALUE?Math.min(c,s):s}this._xMin=Math.round(a/this._stepX),this._xMax=Math.round(l/this._stepX),this._yMin=Math.round(h/this._stepY),this._yMax=Math.round(c/this._stepY),this._currentX=this._xMax+1,this._currentY=this._yMin-1,this._buildAccelerationMap(t,_,m,u,f)}_buildAccelerationMap(t,e,i,s,r){t.reset();const n=new Map,o=this._verticalSubdivision,a=o?r-s:i-e;let h=Math.ceil(a/10);if(h<=1)return;const l=Math.floor(a/h);let c,u,f,_,m,d,p,y,g,x,M;for(h++,this._delta=l,o?(g=-512-this._stepY,x=this._stepY,M=s):(g=-this._stepX,x=Te+this._stepX,M=e);t.nextPath();)if(!(t.numPoints<2)&&t.nextPoint())for(c=t.x,u=t.y;t.nextPoint();c=f,u=_){if(f=t.x,_=t.y,o){if(u===_||u<g&&_<g||u>x&&_>x)continue;m=Math.min(u,_),d=Math.max(u,_)}else{if(c===f||c<g&&f<g||c>x&&f>x)continue;m=Math.min(c,f),d=Math.max(c,f)}for(;m<d;)p=Math.floor((m-M)/l),Ne(p,c,u,f,_,n),m+=l;y=Math.floor((d-M)/l),y>p&&Ne(y,c,u,f,_,n)}this._accelerationMap=n}_nextInside(){for(;;){if(this._currentX>this._xMax){if(this._currentY++,this._currentY>this._yMax)return null;this._currentX=this._xMin,this._shiftOddRows&&this._currentY%2&&this._currentX--}let t=this._currentX*this._stepX+this._offsetX;this._shiftOddRows&&this._currentY%2&&(t+=.5*this._stepX);const e=this._currentY*this._stepY+this._offsetY;let i,s;if(this._currentX++,this._gridType===st.bj.Random){const r=(this._currentX%Oe+Oe)%Oe,n=(this._currentY%Oe+Oe)%Oe;i=this._graphicOriginX+t+this._stepX*this._randomness*(.5-Ae._randValues[n*Oe+r])*2/3,s=this._graphicOriginY+e+this._stepY*this._randomness*(.5-Ae._randValues[n*Oe+r+1])*2/3}else i=this._graphicOriginX+this._cosAngle*t+this._sinAngle*e,s=this._graphicOriginY-this._sinAngle*t+this._cosAngle*e;if(!this._testInsidePolygon||this._isInsidePolygon(i,s,this._geometryCursor))return this._internalPlacement.setTranslate(i,s),this._internalPlacement}}_isInsidePolygon(t,e,i){if(null==this._accelerationMap)return function(t,e,i){let s,r,n,o,a=0;for(t+=Ee,e+=Ee,i.reset();i.nextPath();)if(i.nextPoint())for(s=i.x,r=i.y;i.nextPoint();s=n,r=o)n=i.x,o=i.y,r>e!=o>e&&((n-s)*(e-r)-(o-r)*(t-s)>0?a++:a--);return 0!==a}(t,e,i);t+=Ee,e+=Ee;const s=this._verticalSubdivision,r=s?e:t,n=Math.floor((r-this._polygonMin)/this._delta),o=this._accelerationMap.get(n);if(!o)return!1;let a,h,l,c=0;for(const i of o){if(a=i[0],h=i[1],s){if(a[1]>e==h[1]>e)continue;l=(h[0]-a[0])*(e-a[1])-(h[1]-a[1])*(t-a[0])}else{if(a[0]>t==h[0]>t)continue;l=(h[1]-a[1])*(t-a[0])-(h[0]-a[0])*(e-a[1])}l>0?c++:c--}return 0!==c}}function Ne(t,e,i,s,r,n){let o=n.get(t);o||(o=[],n.set(t,o)),o.push([[e,i],[s,r]])}class Re{static local(){return null===Re.instance&&(Re.instance=new Re),Re.instance}execute(t,e,i,s,r){return new Ve(t,e,i)}}Re.instance=null;class Ve extends At{constructor(t,e,i){super(t),this._curveHelper=new Vt,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._offset=void 0!==e.offset?e.offset*i:0,this._relativeTo=e.relativeTo,this._position=void 0!==e.startPointOffset?e.startPointOffset*i:0,this._epsilon=.001*i}processPath(t){const e=this._position;if(this._relativeTo===st.CS.SegmentMidpoint){if(this.iteratePath||(this.iteratePath=!0),t.nextPoint()){let[e,i]=[t.x,t.y],[s,r]=[0,0];for(;t.nextPoint();){s=t.x,r=t.y;const n=this._curveHelper.getLength(e,i,s,r);if(n<this._epsilon){e=s,i=r;continue}const o=.5+this._position/n,[a,h]=this._curveHelper.getAngleCS(e,i,s,r,o),l=this._curveHelper.getCoord2D(e,i,s,r,o);return this.internalPlacement.setTranslate(l[0]-this._offset*h,l[1]+this._offset*a),this._angleToLine&&this.internalPlacement.setRotateCS(a,h),this.internalPlacement}}return this.iteratePath=!1,null}const i=this._relativeTo===st.CS.LineEnd;return this.onLine(t,e,i)}onLine(t,e,i){let s,r=!1;switch(this._relativeTo){case st.CS.LineMiddle:default:t.seekPathStart(),s=t.pathLength()/2+e;break;case st.CS.LineBeginning:s=e;break;case st.CS.LineEnd:s=e,r=!0}i?t.seekPathEnd():t.seekPathStart();let n=0;if(i?t.prevPoint():t.nextPoint()){let[e,o]=[t.x,t.y],[a,h]=[0,0];for(;i?t.prevPoint():t.nextPoint();){a=t.x,h=t.y;const i=this._curveHelper.getLength(e,o,a,h);if(n+i>s){const t=(s-n)/i,[l,c]=this._curveHelper.getAngleCS(e,o,a,h,t),u=this._curveHelper.getCoord2D(e,o,a,h,t),f=r?-this._offset:this._offset;return this.internalPlacement.setTranslate(u[0]-f*c,u[1]+f*l),this._angleToLine&&(r?this.internalPlacement.setRotateCS(-l,-c):this.internalPlacement.setRotateCS(l,c)),this.internalPlacement}e=a,o=h,n+=i}}return null}}class We{static local(){return null===We.instance&&(We.instance=new We),We.instance}execute(t,e,i,s,r){return new Ge(t,e,i)}}We.instance=null;class Ge extends At{constructor(t,e,i){super(t),this._curveHelper=new Vt,this._angleToLine=void 0===e.angleToLine||e.angleToLine,this._offset=void 0!==e.offset?e.offset*i:0,this._endPoints=void 0===e.placeOnEndPoints||e.placeOnEndPoints,this._controlPoints=void 0===e.placeOnControlPoints||e.placeOnControlPoints,this._regularVertices=void 0===e.placeOnRegularVertices||e.placeOnRegularVertices,this._tags=[],this._tagIterator=0}processPath(t){if(this.iteratePath||(this._preparePath(t),this.iteratePath=!0),this._tagIterator>=this._tags.length)return this._tags.length=0,this._tagIterator=0,this.iteratePath=!1,null;const e=this._tags[this._tagIterator];this._angleToLine&&this.internalPlacement.setRotate(e[2]);let i=e[0],s=e[1];if(0!==this._offset){const t=Math.cos(e[2]),r=Math.sin(e[2]);i-=this._offset*r,s+=this._offset*t}return this.internalPlacement.setTranslate(i,s),this._tagIterator++,this.internalPlacement}_preparePath(t){this._tags.length=0,this._tagIterator=0,t.seekPathStart();const e=t.isClosed();let i=0,s=!1,r=0,n=0;if(t.seekPathStart(),t.nextPoint()){let o=t.x,a=t.y,h=t.getControlPoint(),l=!0,c=t.nextPoint();for(;c;){const u=t.x,f=t.y,_=t.getControlPoint();(this._angleToLine||0!==this._offset)&&(r=this._curveHelper.getAngle(o,a,u,f,0)),l?(l=!1,e?(i=r,s=h):(this._endPoints||this._controlPoints&&h)&&this._tags.push([o,a,r])):h?this._controlPoints&&this._tags.push([o,a,De(n,r)]):this._regularVertices&&this._tags.push([o,a,De(n,r)]),(this._angleToLine||0!==this._offset)&&(n=this._curveHelper.getAngle(o,a,u,f,1)),c=t.nextPoint(),c||(e?_||s?this._controlPoints&&this._tags.push([u,f,De(n,i)]):this._regularVertices&&this._tags.push([u,f,De(n,i)]):(this._endPoints||this._controlPoints&&_)&&this._tags.push([u,f,n])),o=u,a=f,h=_}}this._tagIterator=0}}function De(t,e){const i=Math.PI;for(;Math.abs(e-t)>i+2e-15;)e-t>i?e-=2*i:e+=2*i;return(t+e)/2}var Be=i(35308);class Xe{constructor(t=Ue){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;const{_data:e,_compare:i}=this;e.push(t);let s=e.length-1>>>0;const r=e[s];for(;s>0;){const t=s-1>>1,n=e[t];if(!(i(n,r)<=0))break;e[t]=r,e[s]=n,s=t}}dequeue(){const{_data:t,_compare:e}=this,i=t[0],s=t.pop();if(0===t.length)return i;t[0]=s;let r=0;const n=t.length,o=t[0];let a,h,l=null;for(;;){const i=2*r+1,s=2*r+2;if(l=null,i<n&&(a=t[i],e(a,o)>0&&(l=i)),s<n&&(h=t[s],(null===l&&e(h,o)<=0||null!==l&&e(h,a)<=0)&&(l=s)),null===l)break;t[r]=t[l],t[l]=o,r=l}return i}}const Ue=(t,e)=>t<e?-1:t>e?1:0;var He=i(86662),Ye=i(87416);function Je(t,e){const{rings:i}=e;let s=0;for(const e of i){const i=e.length;for(let r=1;r<i;++r){const i=e[r-1],n=e[r];i[1]>t[1]!=n[1]>t[1]&&((n[0]-i[0])*(t[1]-i[1])-(n[1]-i[1])*(t[0]-i[0])>0?s++:s--)}}return 0!==s}function Ze(t,e,i){if(i&&Je(t,e))return{coord:t,distance:0};let s=1/0,r=0,n=0;const o=[0,0],{rings:a}=e;for(const e of a)if(!(e.length<2))for(let i=0;i<e.length-1;i++){(0,He.Tx)(o,t,e,i);const a=ri(t,o);a<s&&(s=a,r=o[0],n=o[1])}return{coord:[r,n],distance:Math.sqrt(s)}}function qe(t,e,i,s){const r=[e,0];let n=1/0,o=1/0,a=!1,h=!1;const l=[[e,s[1]-1],[e,s[3]+1]],c=[0,0],u=[0,0],f=[0,0],_=[[0,0],[0,0]],m=(0,O.Ue)(),{rings:d}=t;for(const t of d)if(!(t.length<2))for(let e=1;e<t.length;e++){if(_[0][0]=t[e-1][0],_[0][1]=t[e-1][1],_[1][0]=t[e][0],_[1][1]=t[e][1],null===Ke(m,_))continue;if(u[0]=l[0][0],u[1]=l[0][1],f[0]=l[1][0],f[1]=l[1][1],0===ei(m,u,f))continue;if(!(0,Ye.UT)(l[0],l[1],_[0],_[1],c))continue;const i=c[1];n>o?i<n&&(n=i,a=!0):i<o&&(o=i,h=!0)}return a&&h?r[1]=(n+o)/2:r[0]=r[1]=NaN,r}function Ke(t,e){if(e.length<2)return null;t||(t=(0,O.Ue)());const[i,s]=e[0],[r,n]=e[1];return t[0]=Math.min(i,r),t[1]=Math.min(s,n),t[2]=Math.max(i,r),t[3]=Math.max(s,n),t}const je=1,$e=4,Qe=3,ti=12;function ei(t,e,i){let s=ii(e,t),r=ii(i,t);const n=t[0],o=t[1],a=t[2],h=t[3];if(s&r)return 0;if(!(s|r))return 4;const l=(s?1:0)|(r?2:0);do{const l=i[0]-e[0],c=i[1]-e[1];if(l>c)s&Qe?(s&je?(e[1]+=c*(n-e[0])/l,e[0]=n):(e[1]+=c*(a-e[0])/l,e[0]=a),s=ii(e,t)):r&Qe?(r&je?(i[1]+=c*(n-i[0])/l,i[0]=n):(i[1]+=c*(a-i[0])/l,i[0]=a),r=ii(i,t)):s?(s&$e?(e[0]+=l*(o-e[1])/c,e[1]=o):(e[0]+=l*(h-e[1])/c,e[1]=h),s=ii(e,t)):(r&$e?(i[0]+=l*(o-i[1])/c,i[1]=o):(i[0]+=l*(h-i[1])/c,i[1]=h),r=ii(i,t));else if(s&ti?(s&$e?(e[0]+=l*(o-e[1])/c,e[1]=o):(e[0]+=l*(h-e[1])/c,e[1]=h),s=ii(e,t)):r&ti?(r&$e?(i[0]+=l*(o-i[1])/c,i[1]=o):(i[0]+=l*(h-i[1])/c,i[1]=h),r=ii(i,t)):s?(s&je?(e[1]+=c*(n-e[0])/l,e[0]=n):(e[1]+=c*(a-e[0])/l,e[0]=a),s=ii(e,t)):(r&je?(i[1]+=c*(n-i[0])/l,i[0]=n):(i[1]+=c*(a-i[0])/l,i[0]=a),r=ii(i,t)),s&r)return 0}while(s|r);return l}function ii(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 si(t,e,i){return t+(e-t)*i}function ri(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function ni(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const i=isNaN(t),s=isNaN(e);return i<s?-1:i>s?1:0}class oi{constructor(t,e,i,s){this.x=t,this.y=e,this.cellSize=i,this.distancefromCellCenter=(0,He.ko)(t,e,s),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}class ai{static local(){return null===ai.instance&&(ai.instance=new ai),ai.instance}execute(t,e,i,s,r){return new hi(t,e,i)}}ai.instance=null;class hi{constructor(t,e,i){this._geometryCursor=t,this._offsetX=void 0!==e.offsetX?e.offsetX*i:0,this._offsetY=void 0!==e.offsetY?e.offsetY*i:0,this._method=void 0!==e.method?e.method:st.Lh.OnPolygon,this._internalPlacement=new Et}next(){const t=this._geometryCursor;return this._geometryCursor=null,t?this._polygonCenter(t):null}_polygonCenter(t){let e=!1;switch(this._method){case st.Lh.CenterOfMass:{const i=(0,Be.NA)(t);i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}break;case st.Lh.BoundingBoxCenter:{const i=(0,ye.Cs)(t);i&&(this._internalPlacement.setTranslate((i[2]+i[0])/2+this._offsetX,(i[3]+i[1])/2+this._offsetY),e=!0)}break;case st.Lh.OnPolygon:default:{let i;i=(0,a.Z)("polylabel-placement-enabled")?function(t){if(!t.nextPath()||!t.numPoints)return null;const e=(0,ye.l1)(t),i=e[2]-e[0],s=e[3]-e[1];if(0===i||0===s)return[e[0]+i/2,e[1]+s/2];const r=Math.max(Math.min(i,s)/100,1),n=new Xe(((t,e)=>e.maxDistanceToPolygon-t.maxDistanceToPolygon)),o=Math.min(i,s);let a=o/2,h=0,l=0;for(h=e[0];h<e[2];h+=o)for(l=e[1];l<e[3];l+=o)n.enqueue(new oi(h+a,l+a,a,t));const c=(0,Be.Vm)(t);if(null===c)return null;let u,f=new oi(c[0],c[1],0,t);for(;n.size>0;)u=n.dequeue(),u.distancefromCellCenter>f.distancefromCellCenter&&(f=u),u.maxDistanceToPolygon-f.distancefromCellCenter<=r||(a=u.cellSize/2,n.enqueue(new oi(u.x-a,u.y-a,a,t)),n.enqueue(new oi(u.x+a,u.y-a,a,t)),n.enqueue(new oi(u.x-a,u.y+a,a,t)),n.enqueue(new oi(u.x+a,u.y+a,a,t)));return[f.x,f.y]}(t):function(t){return function(t){const{rings:e}=t;if(!e||0===e.length)return null;const i=(0,ye.$P)((0,O.Ue)(),t);if(!i)return null;const s=4*(Math.abs(i[0])+Math.abs(i[2])+Math.abs(i[1])+Math.abs(i[3])+1)*222045e-19;let r=0,n=0;for(let t=0;t<e.length;t++){const i=(0,He.Sm)(e[t]);i>n&&(n=i,r=t)}if(Math.abs(n)<=2*s*s){const t=(0,ye.lC)((0,O.Ue)(),e[r]);return[(t[0]+t[2])/2,(t[1]+t[3])/2]}const o=(0,Be.DS)(e[r],!1,(0,O.Ue)());if(null===o)return null;if(1===e.length&&e[0].length<4)return o;const a=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],h=[NaN,NaN,NaN,NaN],l=[NaN,NaN,NaN,NaN];let c=!1,u=Ze(o,t,!0);0===u.distance&&(c=!0,a[0][0]=o[0],a[0][1]=o[1],u=Ze(o,t,!1)),h[0]=u.distance,l[0]=0;const f=[NaN,NaN];let _=!1,m=.25,d=-1;const p=(0,ye.lC)((0,O.Ue)(),e[r]);let y=NaN;do{if(y=NaN,a[1]=qe(t,si(p[0],p[2],m),0,i),isNaN(a[1][0])||isNaN(a[1][1])||(u=Ze(a[1],t,!1),y=u.distance),!isNaN(y)&&y>s&&Je(a[1],t))_=!0,h[1]=y,l[1]=ri(a[1],o);else if(!isNaN(y)&&y>d&&(d=y,f[0]=a[1][0],f[1]=a[1][1]),m-=.01,m<.1){if(!(d>=0))break;_=!0,h[1]=d,a[1][0]=f[0],a[1][1]=f[1],l[1]=ri(a[1],o)}}while(!_);_=!1,m=.5,d=-1;let g=.01,x=1;do{if(y=NaN,a[2]=qe(t,si(p[0],p[2],m),0,i),isNaN(a[2][0])||isNaN(a[2][1])||(u=Ze(a[2],t,!1),y=u.distance),!isNaN(y)&&y>s&&Je(a[2],t))_=!0,h[2]=y,l[2]=ri(a[2],o);else if(!isNaN(y)&&y>d)d=y,f[0]=a[2][0],f[1]=a[2][1];else if(y>d&&(d=y,f[0]=a[2][0],f[1]=a[2][1]),m=.5+g*x,g+=.01,x*=-1,m<.3||m>.7){if(!(d>=0))break;_=!0,h[2]=d,a[2][0]=f[0],a[2][1]=f[1],l[2]=ri(a[2],o)}}while(!_);_=!1,m=.75,d=-1;do{if(y=NaN,a[3]=qe(t,si(p[0],p[2],m),0,i),isNaN(a[3][0])||isNaN(a[3][1])||(u=Ze(a[3],t,!1),y=u.distance),!isNaN(y)&&y>s&&Je(a[3],t))_=!0,h[3]=y,l[3]=ri(a[3],o);else if(y>d&&(d=y,f[0]=a[3][0],f[1]=a[3][1]),m+=.01,m>.9){if(!(d>=0))break;_=!0,h[3]=d,a[3][0]=f[0],a[3][1]=f[1],l[3]=ri(a[3],o)}}while(!_);const M=[0,1,2,3],b=c?0:1;let P;for(let t=b;t<4;t++)for(let t=b;t<3;t++){const e=l[t],i=l[t+1];ni(e,i)>0&&(P=M[t],M[t]=M[t+1],M[t+1]=P,l[t]=i,l[t+1]=e)}let v=b,S=0,w=0;for(let t=b;t<4;t++){switch(t){case 0:w=2*h[M[t]];break;case 1:w=1.66666666*h[M[t]];break;case 2:w=1.33333333*h[M[t]];break;case 3:w=h[M[t]]}w>S&&(S=w,v=M[t])}return a[v]}({rings:(0,bt.M)(t)})}(t),null!==i&&(this._internalPlacement.setTranslate(i[0]+this._offsetX,i[1]+this._offsetY),e=!0)}}return e?this._internalPlacement:null}}function li(t){if(!t)return null;switch(t.type){case"CIMGeometricEffectAddControlPoints":return Tt.local();case"CIMGeometricEffectArrow":return Gt.local();case"CIMGeometricEffectBuffer":return Yt.local();case"CIMGeometricEffectControlMeasureLine":return Zt.local();case"CIMGeometricEffectCut":return Kt.local();case"CIMGeometricEffectDashes":return re.local();case"CIMGeometricEffectDonut":return oe.local();case"CIMGeometricEffectJog":return he.local();case"CIMGeometricEffectMove":return ce.local();case"CIMGeometricEffectOffset":return fe.local();case"CIMGeometricEffectReverse":return me.local();case"CIMGeometricEffectRotate":return ge.local();case"CIMGeometricEffectScale":return Me.local();case"CIMGeometricEffectWave":return Pe.local()}return null}function ci(t){if(!t)return null;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":return Se.local();case"CIMMarkerPlacementAtExtremities":return Ce.local();case"CIMMarkerPlacementAtRatioPositions":return Le.local();case"CIMMarkerPlacementInsidePolygon":return Fe.local();case"CIMMarkerPlacementOnLine":return Re.local();case"CIMMarkerPlacementOnVertices":return We.local();case"CIMMarkerPlacementPolygonCenter":return ai.local()}return null}class ui{static getPlacement(t,e,i,s,r,n){const o=ci(i);return o?(-1===e&&t.invertY(),o.execute(t,i,s,r,n)):null}}var fi=i(1265),_i=i(87893);class mi{constructor(t,e,i,s){this.center=(0,fi.f)(t,e),this.centerT=(0,fi.c)(),this.halfWidth=i/2,this.halfHeight=s/2,this.width=i,this.height=s}get x(){return this.center[0]}get y(){return this.center[1]}get blX(){return this.center[0]+this.halfWidth}get blY(){return this.center[1]+this.halfHeight}get trX(){return this.center[0]-this.halfWidth}get trY(){return this.center[1]-this.halfHeight}get xmin(){return this.x-this.halfWidth}get xmax(){return this.x+this.halfWidth}get ymin(){return this.y-this.halfHeight}get ymax(){return this.y+this.halfHeight}set x(t){this.center[0]=t}set y(t){this.center[1]=t}clone(){return new mi(this.x,this.y,this.width,this.height)}serialize(t){return t.writeF32(this.center[0]),t.writeF32(this.center[1]),t.push(this.width),t.push(this.height),t}findCollisionDelta(t,e=4){const i=Math.abs(t.centerT[0]-this.centerT[0]),s=Math.abs(t.centerT[1]-this.centerT[1]),r=(t.halfWidth+this.halfWidth+e)/i,n=(t.halfHeight+this.halfHeight+e)/s,o=Math.min(r,n);return Math.log2(o)}extend(t){const e=Math.min(this.xmin,t.xmin),i=Math.min(this.ymin,t.ymin),s=Math.max(this.xmax,t.xmax)-e,r=Math.max(this.ymax,t.ymax)-i,n=e+s/2,o=i+r/2;this.width=s,this.height=r,this.halfWidth=s/2,this.halfHeight=r/2,this.x=n,this.y=o}static deserialize(t){const e=t.readF32(),i=t.readF32(),s=t.readInt32(),r=t.readInt32();return new mi(e,i,s,r)}}const di=Math.PI/180;class pi{constructor(t,e,i,s){this._rotationT=tt(),this._xBounds=0,this._yBounds=0,this.minZoom=0,this.maxZoom=255,this._bounds=null;const r=i.rect,n=new Float32Array(8);t*=s,e*=s;const o=i.code?r.width*s:i.metrics.width,a=i.code?r.height*s:i.metrics.height;this.width=o,this.height=a,n[0]=t,n[1]=e,n[2]=t+o,n[3]=e,n[4]=t,n[5]=e+a,n[6]=t+o,n[7]=e+a,this._data=n,this._setTextureCoords(r),this._scale=s,this._mosaic=i,this.x=t,this.y=e,this.maxOffset=Math.max(t+o,e+a)}get mosaic(){return this._mosaic}set angle(t){this._angle=t,K(this._rotationT,-t),this._setOffsets(this._data)}get angle(){return this._angle}get xTopLeft(){return this._data[0]}get yTopLeft(){return this._data[1]}get xBottomRight(){return this._data[6]}get yBottomRight(){return this._data[7]}get texcoords(){return this._texcoords}get textureBinding(){return this._mosaic.textureBinding}get offsets(){return this._offsets||this._setOffsets(this._data),this._offsets}get char(){return String.fromCharCode(this._mosaic.code)}get code(){return this._mosaic.code}get bounds(){if(!this._bounds){const{height:t,width:e}=this._mosaic.metrics,i=e*this._scale,s=Math.abs(t)*this._scale,r=new Float32Array(8);r[0]=this.x,r[1]=this.y,r[2]=this.x+i,r[3]=this.y,r[4]=this.x,r[5]=this.y+s,r[6]=this.x+i,r[7]=this.y+s,it(r,r,J(tt(),this._rotationT,this._transform));let n=1/0,o=1/0,a=0,h=0;for(let t=0;t<4;t++){const e=r[2*t],i=r[2*t+1];n=Math.min(n,e),o=Math.min(o,i),a=Math.max(a,e),h=Math.max(h,i)}const l=a-n,c=h-o,u=n+l/2,f=o+c/2;this._bounds=new mi(u,f,l,c)}return this._bounds}setTransform(t){this._transform=t,this._offsets=null}_setOffsets(t){this._offsets||(this._offsets={upperLeft:0,upperRight:0,lowerLeft:0,lowerRight:0});const e=this._offsets,i=new Float32Array(8);it(i,t,J(tt(),this._rotationT,this._transform)),e.upperLeft=(0,ot.UJ)(8*i[0],8*i[1]),e.upperRight=(0,ot.UJ)(8*i[2],8*i[3]),e.lowerLeft=(0,ot.UJ)(8*i[4],8*i[5]),e.lowerRight=(0,ot.UJ)(8*i[6],8*i[7])}_setTextureCoords({x:t,y:e,width:i,height:s}){this._texcoords={upperLeft:(0,ot.UJ)(t,e),upperRight:(0,ot.UJ)(t+i,e),lowerLeft:(0,ot.UJ)(t,e+s),lowerRight:(0,ot.UJ)(t+i,e+s)}}}const yi=(t,e)=>({code:0,page:0,sdf:!0,rect:new _i.Z(0,0,11,8),textureBinding:e,metrics:{advance:0,height:4,width:t,left:0,top:0}});function gi(t,e){return t.forEach((t=>(0,x.t)(t,t,e))),{upperLeft:(0,ot.UJ)(8*t[0][0],8*t[0][1]),upperRight:(0,ot.UJ)(8*t[1][0],8*t[1][1]),lowerLeft:(0,ot.UJ)(8*t[2][0],8*t[2][1]),lowerRight:(0,ot.UJ)(8*t[3][0],8*t[3][1])}}class xi{constructor(t,e,i){this._rotation=0,this._decorate(t,e,i),this.glyphs=t,this.bounds=this._createBounds(t),this.isMultiline=e.length>1,this._hasRotation=0!==i.angle,this._transform=this._createGlyphTransform(this.bounds,i),this._borderLineSize=i.borderLineSize,(i.borderLineSize||i.hasBackground)&&([this.bounds,this.background]=this.shapeBackground(this._transform));for(const e of t)e.setTransform(this._transform)}setRotation(t){if(0===t&&0===this._rotation)return;this._rotation=t;const e=this._transform;J(e,K(tt(),t),e);for(const t of this.glyphs)t.setTransform(this._transform)}_decorate(t,e,i){if(!i.decoration||"none"===i.decoration||!t.length)return;const s=i.scale,r="underline"===i.decoration?30:20,n=t[0].textureBinding;for(const i of e){const e=i.startX*s,o=i.startY*s,a=(i.width+i.glyphWidthEnd)*s;t.push(new pi(e,o+r*s,yi(a,n),1))}}shapeBackground(t){const e=(1.5+(0,U.F2)(this._borderLineSize||0))/2,i=this._borderLineSize?e:0,{xmin:s,ymin:r,xmax:n,ymax:o,x:a,y:h,width:l,height:c}=this.bounds,u=[s-8,r-8],f=[n+8,r-8],_=[s-8,o+8],m=[n+8,o+8],d=gi([[u[0]-e,u[1]-e],[f[0]+e,f[1]-e],[u[0]+i,u[1]+i],[f[0]-i,f[1]+i]],t),p=gi([[_[0]+i,_[1]-i],[m[0]-i,m[1]-i],[_[0]-e,_[1]+e],[m[0]+e,m[1]+e]],t),y=gi([[u[0]-e,u[1]-e],[u[0]+i,u[1]+i],[_[0]-e,_[1]+e],[_[0]+i,_[1]-i]],t),g=gi([[f[0]-i,f[1]+i],[f[0]+e,f[1]-e],[m[0]-i,m[1]-i],[m[0]+e,m[1]+e]],t),x={main:gi([u,f,_,m],t),top:d,bot:p,left:y,right:g};return[new mi(a,h,l+2*e,c+2*e),x]}get boundsT(){const t=this.bounds,e=(0,x.s)((0,fi.c)(),t.x,t.y);if((0,x.t)(e,e,this._transform),this._hasRotation){const i=Math.max(t.width,t.height);return new mi(e[0],e[1],i,i)}return new mi(e[0],e[1],t.width,t.height)}_createBounds(t){let e=1/0,i=1/0,s=0,r=0;for(const n of t)e=Math.min(e,n.xTopLeft),i=Math.min(i,n.yTopLeft),s=Math.max(s,n.xBottomRight),r=Math.max(r,n.yBottomRight);const n=s-e,o=r-i;return new mi(e+n/2,i+o/2,n,o)}_createGlyphTransform(t,e){const i=di*e.angle,s=tt(),r=(0,fi.c)();return q(s,s,(0,x.s)(r,e.xOffset,-e.yOffset)),e.isCIM?Z(s,s,i):(q(s,s,(0,x.s)(r,t.x,t.y)),Z(s,s,i),q(s,s,(0,x.s)(r,-t.x,-t.y))),s}}class Mi{constructor(t,e,i,s,r,n){this.glyphWidthEnd=0,this.startX=0,this.startY=0,this.start=Math.max(0,Math.min(e,i)),this.end=Math.max(0,Math.max(e,i)),this.end<t.length&&(this.glyphWidthEnd=t[this.end].metrics.width),this.width=s,this.yMin=r,this.yMax=n}}const bi=t=>10===t,Pi=t=>32===t;const vi=(0,ot.UJ)(4,4),Si=(0,ot.UJ)(16,4),wi=(0,ot.UJ)(4,2),Ci=(0,ot.UJ)(4,6),Ii=[wi,wi,Ci,Ci],Li=[wi,Ci,wi,Ci],ki=[Ci,Ci,vi,vi],zi=[vi,vi,Ci,Ci],Ti=[Ci,vi,Ci,vi],Oi=[vi,Ci,vi,Ci],Ei=t=>class extends t{constructor(...t){super(...t),this._isCIM=!1,this._vertexBoundsScale=1,this.geometryType=p.LW.TEXT,this._aux=(0,ot.Jz)(0,0,this._referenceSize,this._bitset)}bindTextInfo(t,e){t&&t.length?this._shapingInfo=function(t,e,i){const s=i.scale,r=new Array,n=function(t,e,i){const s=new Array,r=1/i.scale,n=i.maxLineWidth*r,o=e?t.length-1:0,a=e?-1:t.length,h=e?-1:1;let l=o,c=0,u=0,f=l,_=f,m=0,d=1/0,p=0;for(;l!==a;){const{code:e,metrics:i}=t[l],r=Math.abs(i.top);if(bi(e)||Pi(e)||(d=Math.min(d,r),p=Math.max(p,r+i.height)),bi(e))l!==o&&(s.push(new Mi(t,f,l-h,c,d,p)),d=1/0,p=0),c=0,f=l+h,_=l+h,u=0;else if(Pi(e))_=l+h,u=0,m=i.advance,c+=i.advance;else if(c>n){if(_!==f){const e=_-2*h;c-=m,s.push(new Mi(t,f,e,c-u,d,p)),d=1/0,p=0,f=_,c=u}else s.push(new Mi(t,f,l-h,c,d,p)),d=1/0,p=0,f=l,_=l,c=0;c+=i.advance,u+=i.advance}else c+=i.advance,u+=i.advance;l+=h}const y=new Mi(t,f,l-h,c,d,p);return y.start>=0&&y.end<t.length&&s.push(y),s}(t,e,i),o=function(t,e){let i=0;for(let e=0;e<t.length;e++){const{width:s}=t[e];i=Math.max(s,i)}const s="underline"===e.decoration?4:0,r=t[0].yMin;return{x:0,y:r,height:t[t.length-1].yMax+e.lineHeight*(t.length-1)+s-r,width:i}}(n,i),{vAlign:a,hAlign:h}=i,l=a===rt.TR.Baseline?1:0,c=l?0:a-1,u=(1-l)*-o.y+c*(o.height/2)+-26*(l?1:0);for(let e=0;e<n.length;e++){const{start:o,end:a,width:l}=n[e];let c=-1*(h+1)*(l/2)-3;const f=e*i.lineHeight+u-3;n[e].startX=c,n[e].startY=f;for(let e=o;e<=a;e++){const i=t[e];if(bi(i.code))continue;const n=new pi(c+i.metrics.left,f-i.metrics.top,i,s);c+=i.metrics.advance,r.push(n)}}return new xi(r,n,i)}(t,e,{scale:this._scale,angle:this._angle,xOffset:this._xOffset,yOffset:this._yOffset,hAlign:this._xAlignD,vAlign:this._yAlignD,maxLineWidth:Math.max(32,Math.min(this._lineWidth,512)),lineHeight:E.xm*Math.max(.25,Math.min(this._lineHeight,4)),decoration:this._decoration,isCIM:this._isCIM,hasBackground:!!this._backgroundColor,borderLineSize:this._borderLineSize}):this._shapingInfo=null}_write(t,e,i,s){const r=e.getDisplayId();this._writeGeometry(t,e,r,i,s)}_writeGeometry(t,e,i,s,r){const n=this._shapingInfo;if(null==n)return;if(this._textPlacement)return this._writePlacedText(t,i,n,s,e,r);const o=r?r.asOptimized():"esriGeometryPolygon"===e.geometryType?e.readCentroid():e.readGeometryForDisplay();if(null!=o){if(o.isPoint){const[e,s]=o.coords;if(!t.hasAggregates&&t.hasPixelBufferEnabled&&(e<0||e>=512||s<0||s>=512))return;return this._writeGlyphs(t,i,{x:e,y:s},n)}o.forEachVertex(((e,s)=>this._writeGlyphs(t,i,{x:e,y:s},n)))}}_writePlacedText(t,e,i,s,r,n){const o=this._textPlacement,a=n||St.fromFeatureSetReaderCIM(r);if(!a)return;const h=ui.getPlacement(a,-1,o,(0,U.F2)(1),t.tileKey,s.geometryEngine);if(!h)return;const l=i.bounds,c=Math.sqrt(l.height*l.height+l.width*l.width);let u,f,_;for(;u=h.next();)if(f=u.tx,_=-u.ty,f+c>=0&&f-c<512&&_+c>=0&&_-c<512){const s=-u.getAngle();i.setRotation(s),this._writeGlyphs(t,e,{x:f,y:_},i),i.setRotation(-s)}}_writeGlyphs(t,e,i,s){const r=at.m2.load(this._materialKey),n=(0,ot.UJ)(Math.round(8*i.x),Math.round(8*i.y)),o=this._vertexBoundsScale,{bounds:a,background:h,glyphs:l}=s;l.length>0&&(this._borderLineColor||this._backgroundColor)&&(r.textureBinding=l[0].textureBinding,t.recordStart(e,r.data,this.geometryType,!0),this._writeBackgroundGeometry(t,e,i,a,h),t.recordEnd());const c=2*Math.max(a.width,a.height);for(const h of s.glyphs)r.textureBinding=h.textureBinding,t.recordStart(e,r.data,this.geometryType,!0),t.vertexBounds(i.x+a.x+this._xOffset,i.y+a.y-this._yOffset,c*o,c*o),this._writeVertices(t,e,n,h),t.recordEnd()}_writeGlyph(t,e,i,s,r){const n=at.m2.load(this._materialKey),o=(0,ot.UJ)(Math.round(8*i),Math.round(8*s));n.textureBinding=r.textureBinding,t.recordStart(e,n.data,this.geometryType,!0);const a=r.bounds,h=this._vertexBoundsScale;t.vertexBounds(i+a.x*h,s+a.y*h,a.width*h,a.height*h),this._writeVertices(t,e,o,r),t.recordEnd()}_writeVertices(t,e,i,s){const r=t.vertexCount();this._writeVertexCommon(t,e,i,s),t.vertexWrite(s.offsets.upperLeft),t.vertexWrite(s.texcoords.upperLeft),t.vertexEnd(),this._writeVertexCommon(t,e,i,s),t.vertexWrite(s.offsets.upperRight),t.vertexWrite(s.texcoords.upperRight),t.vertexEnd(),this._writeVertexCommon(t,e,i,s),t.vertexWrite(s.offsets.lowerLeft),t.vertexWrite(s.texcoords.lowerLeft),t.vertexEnd(),this._writeVertexCommon(t,e,i,s),t.vertexWrite(s.offsets.lowerRight),t.vertexWrite(s.texcoords.lowerRight),t.vertexEnd(),t.indexWrite(r+0),t.indexWrite(r+1),t.indexWrite(r+2),t.indexWrite(r+1),t.indexWrite(r+3),t.indexWrite(r+2)}_writeVertexCommon(t,e,i,s){const r=this._color,n=this._haloColor,o=(0,ot.Jz)(0,0,this._referenceSize,this._bitset),a=(0,ot.Jz)(0,0,this._size,this._haloSize);t.vertexWrite(i),t.vertexWrite(e),t.vertexWrite(r),t.vertexWrite(n),t.vertexWrite(a),t.vertexWrite(o),t.vertexWrite(this._minMaxZoom)}_writeBackgroundVertex(t,e,i,s,r,n){const o=(0,ot.Jz)(0,1,this._referenceSize,this._bitset),a=(0,ot.Jz)(0,0,this._size,this._haloSize),h=(0,ot.Jz)(0,0,0,0);t.vertexWrite(i),t.vertexWrite(e),t.vertexWrite(s),t.vertexWrite(h),t.vertexWrite(a),t.vertexWrite(o),t.vertexWrite(this._minMaxZoom),t.vertexWrite(r),t.vertexWrite(n),t.vertexEnd()}_writeBackgroundQuad(t,e,i,s,r,n){const o=t.vertexCount();this._writeBackgroundVertex(t,e,i,s,r.upperLeft,n[0]),this._writeBackgroundVertex(t,e,i,s,r.upperRight,n[1]),this._writeBackgroundVertex(t,e,i,s,r.lowerLeft,n[2]),this._writeBackgroundVertex(t,e,i,s,r.lowerRight,n[3]),t.indexWrite(o+0),t.indexWrite(o+1),t.indexWrite(o+2),t.indexWrite(o+1),t.indexWrite(o+3),t.indexWrite(o+2)}_writeBackgroundGeometry(t,e,i,s,r){const n=(0,ot.UJ)(Math.round(8*i.x),Math.round(8*i.y)),{x:o,y:a,width:h,height:l}=s,c=2*Math.max(h,l);if(t.vertexBounds(i.x+o+this._xOffset,i.y+a-this._yOffset,c*this._vertexBoundsScale,c*this._vertexBoundsScale),this._backgroundColor){const i=[Si,Si,Si,Si];this._writeBackgroundQuad(t,e,n,this._backgroundColor,r.main,i)}if(this._borderLineColor||this._backgroundColor){const i=!!this._borderLineColor&&!!this._borderLineSize&&this._borderLineSize>0,[s,o,a,h,l]=i?[Ii,Ii,Li,Li,this._borderLineColor]:[ki,zi,Ti,Oi,this._backgroundColor];this._writeBackgroundQuad(t,e,n,l,r.top,s),this._writeBackgroundQuad(t,e,n,l,r.bot,o),this._writeBackgroundQuad(t,e,n,l,r.left,a),this._writeBackgroundQuad(t,e,n,l,r.right,h)}}};var Fi=i(22303);function Ai(t){if(!t)return"arial-unicode-ms";const e=t.toLowerCase().split(" ").join("-");switch(e){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return e}}i(9790),i(68773),new Map,new Set;var Ni=i(59266),Ri=i(71143);class Vi{applyColorSubstituition(t,e){if(!e)return t;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:i,height:s}=t,r=this._rasterizationCanvas,n=r.getContext("2d");t!==r&&(r.width=i,r.height=s,n.drawImage(t,0,0,i,s));const o=n.getImageData(0,0,i,s).data;if(e)for(const t of e)if(t&&t.oldColor&&4===t.oldColor.length&&t.newColor&&4===t.newColor.length){const[e,i,s,r]=t.oldColor,[n,a,h,l]=t.newColor;if(e===n&&i===a&&s===h&&r===l)continue;for(let t=0;t<o.length;t+=4)e===o[t]&&i===o[t+1]&&s===o[t+2]&&r===o[t+3]&&(o[t]=n,o[t+1]=a,o[t+2]=h,o[t+3]=l)}const a=new ImageData(o,i,s);return n.putImageData(a,0,0),r}tintImageData(t,e){if(!e||e.length<4)return t;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:i,height:s}=t,r=this._rasterizationCanvas,n=r.getContext("2d");t!==r&&(r.width=i,r.height=s,n.drawImage(t,0,0,i,s));const o=n.getImageData(0,0,i,s),a=new Uint8Array(o.data),h=[e[0]/255,e[1]/255,e[2]/255,e[3]/255];for(let t=0;t<a.length;t+=4)a[t]*=h[0],a[t+1]*=h[1],a[t+2]*=h[2],a[t+3]*=h[3];const l=new ImageData(new Uint8ClampedArray(a.buffer),i,s);return n.putImageData(l,0,0),r}}function Wi(t){const e=t.getFrame(0);if(e instanceof HTMLImageElement||e instanceof HTMLCanvasElement)return e;const i=document.createElement("canvas");i.width=t.width,i.height=t.height;const s=i.getContext("2d");return e instanceof ImageData?s.putImageData(e,0,0):s.drawImage(e,0,0),i}class Gi{constructor(t=0,e=0,i=0,s=0){this.x=t,this.y=e,this.width=i,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)}}var Di=i(61565);function Bi(t){return`rgba(${t.slice(0,3).toString()},${t[3]})`}class Xi{constructor(t){t&&(this._textRasterizationCanvas=t)}rasterizeText(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const i=this._textRasterizationCanvas,s=i.getContext("2d");this._setFontProperties(s,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const{decoration:r,weight:n}=e.font;this._lineThroughWidthOffset=r&&"line-through"===r?.1*this._lineHeight:0;const o=null!=e.backgroundColor||null!=e.borderLine,a=o?Di.M8:0,h=this._computeTextWidth(s,e)+2*a,l=this._lineHeight*this._textLines.length+2*a;if(i.width=h+2*this._lineThroughWidthOffset,i.height=l,0===i.width||0===i.height)return i.width=i.height=1,{size:[0,0],image:new Uint32Array(0),sdf:!1,simplePattern:!1,anchorX:0,anchorY:0,canvas:i};this._renderedLineHeight=Math.round(this._lineHeight*e.pixelRatio),this._renderedHaloSize=(0,U.F2)(e.halo.size)*e.pixelRatio,this._renderedWidth=h*e.pixelRatio,this._renderedHeight=l*e.pixelRatio,this._lineThroughWidthOffset*=e.pixelRatio;const c=e.color??[0,0,0,0],u=e.halo&&e.halo.color?e.halo.color:[0,0,0,0];this._fillStyle=Bi(c),this._haloStyle=function(t){return`rgb(${t.slice(0,3).toString()})`}(u);const f=this._renderedLineHeight,_=this._renderedHaloSize;s.save(),s.clearRect(0,0,i.width,i.height),this._setFontProperties(s,e);const m=a*e.pixelRatio,d=function(t,e){return"center"===t?.5*e:"right"===t?e:0}(s.textAlign,this._renderedWidth-2*m)+_+m,p=_+m,y=_>0;let g=this._lineThroughWidthOffset,x=0;if(o){s.save();const t=e.backgroundColor??[0,0,0,0],r=e.borderLine?.color??[0,0,0,0],n=2*(0,U.F2)(e.borderLine?.size??0);s.fillStyle=Bi(t),s.strokeStyle=Bi(r),s.lineWidth=n,s.fillRect(0,0,i.width,i.height),s.strokeRect(0,0,i.width,i.height),s.restore()}y&&this._renderHalo(s,d,p,g,x,e),x+=p,g+=d;for(const t of this._textLines)y?(s.globalCompositeOperation="destination-out",s.fillStyle="rgb(0, 0, 0)",s.fillText(t,g,x),s.globalCompositeOperation="source-over",s.fillStyle=this._fillStyle,s.fillText(t,g,x)):(s.fillStyle=this._fillStyle,s.fillText(t,g,x)),r&&"none"!==r&&this._renderDecoration(s,g,x,r,n),x+=f;s.restore();const M=this._renderedWidth+2*this._lineThroughWidthOffset,b=this._renderedHeight,P=s.getImageData(0,0,M,b),v=new Uint8Array(P.data);if(e.premultiplyColors){let t;for(let e=0;e<v.length;e+=4)t=v[e+3]/255,v[e]=v[e]*t,v[e+1]=v[e+1]*t,v[e+2]=v[e+2]*t}let S,w;switch(e.horizontalAlignment){case"left":S=-.5;break;case"right":S=.5;break;default:S=0}switch(e.verticalAlignment){case"bottom":w=-.5;break;case"top":w=.5;break;default:w=0}return{size:[M,b],image:new Uint32Array(v.buffer),sdf:!1,simplePattern:!1,anchorX:S,anchorY:w,canvas:i}}_renderHalo(t,e,i,s,r,n){const o=this._renderedWidth,a=this._renderedHeight;this._haloRasterizationCanvas||(this._haloRasterizationCanvas=document.createElement("canvas")),this._haloRasterizationCanvas.width=o,this._haloRasterizationCanvas.height=a;const h=this._haloRasterizationCanvas,l=h.getContext("2d");l.clearRect(0,0,o,a),this._setFontProperties(l,n);const{decoration:c,weight:u}=n.font;l.fillStyle=this._haloStyle,l.strokeStyle=this._haloStyle,l.lineJoin="round",this._renderHaloNative(l,e,i,c,u),t.globalAlpha=this._parameters.halo.color[3],t.drawImage(h,0,0,o,a,s,r,o,a),t.globalAlpha=1}_renderHaloNative(t,e,i,s,r){const n=this._renderedLineHeight,o=this._renderedHaloSize;for(const a of this._textLines){const h=2*o,l=5,c=.1;for(let n=0;n<l;n++){const o=(1-(l-1)*c+n*c)*h;t.lineWidth=o,t.strokeText(a,e,i),s&&"none"!==s&&this._renderDecoration(t,e,i,s,r,o)}i+=n}}_setFontProperties(t,e){const i=Math.max(e.size,.5),s=e.font,r=`${s.style} ${s.weight} ${(0,U.F2)(i*e.pixelRatio).toFixed(1)}px ${s.family}, sans-serif`;let n;switch(t.font=r,t.textBaseline="top",e.horizontalAlignment){case"left":default:n="left";break;case"right":n="right";break;case"center":n="center"}t.textAlign=n}computeTextSize(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const i=this._textRasterizationCanvas,s=i.getContext("2d");this._setFontProperties(s,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const r=this._computeTextWidth(s,e),n=this._lineHeight*this._textLines.length;return i.width=r,i.height=n,[r*e.pixelRatio,n*e.pixelRatio]}_computeTextWidth(t,e){let i=0;for(const e of this._textLines)i=Math.max(i,t.measureText(e).width);const s=e.font;return("italic"===s.style||"oblique"===s.style||"string"==typeof s.weight&&("bold"===s.weight||"bolder"===s.weight)||"number"==typeof s.weight&&s.weight>600)&&(i+=.3*t.measureText("w").width),i+=2*(0,U.F2)(this._parameters.halo.size),Math.round(i)}_computeLineHeight(){let t=1.275*this._parameters.size;const e=this._parameters.font.decoration;return e&&"underline"===e&&(t*=1.3),Math.round(t+2*(0,U.F2)(this._parameters.halo.size))}_renderDecoration(t,e,i,s,r,n){const o=.9*this._lineHeight,a="bold"===r?.06:"bolder"===r?.09:.04;switch(t.textAlign){case"center":e-=this._renderedWidth/2;break;case"right":e-=this._renderedWidth}const h=t.textBaseline;if("underline"===s)switch(h){case"top":i+=o;break;case"middle":i+=o/2}else if("line-through"===s)switch(h){case"top":i+=o/1.5;break;case"middle":i+=o/3}const l=n?1.5*n:Math.ceil(o*a);t.save(),t.beginPath(),t.strokeStyle=t.fillStyle,t.lineWidth=l,t.moveTo(e-this._lineThroughWidthOffset,i),t.lineTo(e+this._renderedWidth+2*this._lineThroughWidthOffset,i),t.stroke(),t.restore()}}function Ui(t){return"function"==typeof t}function Hi(t,e,i,s){return Ui(t)?t(e,i,s):t}const Yi=" /-,\n";function Ji(t){let e=t.length;for(;e--;)if(!Yi.includes(t.charAt(e)))return!1;return!0}function Zi(t,e){const i=[];let s=0,r=-1;do{if(r=t.indexOf("[",s),r>=s){if(r>s){const e=t.substr(s,r-s);i.push([e,null,Ji(e)])}if(s=r+1,r=t.indexOf("]",s),r>=s){if(r>s){const n=e[t.substr(s,r-s)];n&&i.push([null,n,!1])}s=r+1}}}while(-1!==r);if(s<t.length-1){const e=t.substr(s);i.push([e,null,Ji(e)])}return i}function qi(t,e,i){let s="",r=null;for(const i of e){const[e,n,o]=i;if(e)o?r=e:(r&&(s+=r,r=null),s+=e);else{const e=t.attributes[n];e&&(r&&(s+=r,r=null),s+=e)}}return Ki(s,i)}function Ki(t,e){switch("string"!=typeof t&&(t=String(t)),e){case"LowerCase":return t.toLowerCase();case"Allcaps":return t.toUpperCase();default:return t}}function ji(t){return t?{r:t[0],g:t[1],b:t[2],a:t[3]/255}:{r:0,g:0,b:0,a:0}}function $i(t){return null!=t&&("CIMMarkerPlacementAlongLineRandomSize"===t.type||"CIMMarkerPlacementAlongLineSameSize"===t.type||"CIMMarkerPlacementAlongLineVariableSize"===t.type||"CIMMarkerPlacementAtExtremities"===t.type||"CIMMarkerPlacementAtMeasuredUnits"===t.type||"CIMMarkerPlacementAtRatioPositions"===t.type||"CIMMarkerPlacementOnLine"===t.type||"CIMMarkerPlacementOnVertices"===t.type)}const Qi=(t,e=0)=>null==t||isNaN(t)?e:t,ts=t=>t.tintColor?ji(t.tintColor):{r:255,g:255,b:255,a:1};function es(t){if(!t)return"normal";switch(t.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function is(t){if(!t)return"normal";switch(t.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function ss(t){let e="normal",i="normal";if(t){const s=t.toLowerCase();s.includes("italic")?e="italic":s.includes("oblique")&&(e="oblique"),s.includes("bold")?i="bold":s.includes("light")&&(i="lighter")}return{style:e,weight:i}}function rs(t){return t.underline?"underline":t.strikethrough?"line-through":"none"}function ns(t){if(!t)return null;switch(t.type){case"CIMPolygonSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=ns(e);if(null!=t)return t}break;case"CIMTextSymbol":return ns(t.symbol);case"CIMSolidFill":return t.color}}function os(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const e=t.symbolLayers;if(e)for(const t of e){const e=os(t);if(null!=e)return e}break}case"CIMTextSymbol":return os(t.symbol);case"CIMSolidStroke":return t.color}}function as(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=as(e);if(void 0!==t)return t}break;case"CIMTextSymbol":return as(t.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return t.width}}function hs(t){switch(t){case"Left":default:return"left";case"Right":return"right";case"Center":case"Justify":return"center"}}function ls(t){switch(t){case"Top":default:return"top";case"Center":return"middle";case"Baseline":return"baseline";case"Bottom":return"bottom"}}const cs=t=>t.includes("data:image/svg+xml"),us=Math.PI/180,fs=h.Z.getLogger("esri.symbols.cim.CIMSymbolDrawHelper");class _s{constructor(t){this._t=t}static createIdentity(){return new _s([1,0,0,0,1,0])}clone(){const t=this._t;return new _s(t.slice())}transform(t){const e=this._t;return[e[0]*t[0]+e[1]*t[1]+e[2],e[3]*t[0]+e[4]*t[1]+e[5]]}static createScale(t,e){return new _s([t,0,0,0,e,0])}scale(t,e){const i=this._t;return i[0]*=t,i[1]*=t,i[2]*=t,i[3]*=e,i[4]*=e,i[5]*=e,this}scaleRatio(){return Math.sqrt(this._t[0]*this._t[0]+this._t[1]*this._t[1])}static createTranslate(t,e){return new _s([0,0,t,0,0,e])}translate(t,e){const i=this._t;return i[2]+=t,i[5]+=e,this}static createRotate(t){const e=Math.cos(t),i=Math.sin(t);return new _s([e,-i,0,i,e,0])}rotate(t){return _s.multiply(this,_s.createRotate(t),this)}angle(){const t=this._t[0],e=this._t[3],i=Math.sqrt(t*t+e*e);return[t/i,e/i]}static multiply(t,e,i){const s=t._t,r=e._t,n=s[0]*r[0]+s[3]*r[1],o=s[1]*r[0]+s[4]*r[1],a=s[2]*r[0]+s[5]*r[1]+r[2],h=s[0]*r[3]+s[3]*r[4],l=s[1]*r[3]+s[4]*r[4],c=s[2]*r[3]+s[5]*r[4]+r[5],u=i._t;return u[0]=n,u[1]=o,u[2]=a,u[3]=h,u[4]=l,u[5]=c,i}invert(){const t=this._t;let e=t[0]*t[4]-t[1]*t[3];if(0===e)return new _s([0,0,0,0,0,0]);e=1/e;const i=(t[1]*t[5]-t[2]*t[4])*e,s=(t[2]*t[3]-t[0]*t[5])*e,r=t[4]*e,n=-t[1]*e,o=-t[3]*e,a=t[0]*e;return new _s([r,n,i,o,a,s])}}class ms{constructor(t,e){this._resourceManager=t,this._transfos=[],this._sizeTransfos=[],this._geomUnitsPerPoint=1,this._placementPool=new Ri.Z(Et,void 0,void 0,100),this._earlyReturn=!1,this._mapRotation=0,this._transfos.push(e||_s.createIdentity()),this._sizeTransfos.push(e?e.scaleRatio():1)}setTransform(t,e){this._transfos=[t||_s.createIdentity()],this._sizeTransfos=[e||(t?t.scaleRatio():1)]}setGeomUnitsPerPoint(t){this._geomUnitsPerPoint=t}transformPt(t){return this._transfos[this._transfos.length-1].transform(t)}transformSize(t){return t*this._sizeTransfos[this._sizeTransfos.length-1]}reverseTransformPt(t){return this._transfos[this._transfos.length-1].invert().transform(t)}reverseTransformSize(t){return t/this._sizeTransfos[this._sizeTransfos.length-1]}getTransformAngle(){return this._transfos[this._transfos.length-1].angle()}geomUnitsPerPoint(){return this.isEmbedded()?1:this._geomUnitsPerPoint}isEmbedded(){return this._transfos.length>1}back(){return this._transfos[this._transfos.length-1]}push(t,e){const i=e?t.scaleRatio():1;_s.multiply(t,this.back(),t),this._transfos.push(t),this._sizeTransfos.push(this._sizeTransfos[this._sizeTransfos.length-1]*i)}pop(){this._transfos.splice(-1,1),this._sizeTransfos.splice(-1,1)}drawSymbol(t,e,i){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":this.drawMultiLayerSymbol(t,e);break;case"CIMTextSymbol":this.drawTextSymbol(t,e,i)}}drawMultiLayerSymbol(t,e){if(!t||!e)return;const i=t.symbolLayers;if(!i)return;const s=t.effects;if(s&&s.length>0){const t=this.executeEffects(s,e);if(t){let e=t.next();for(;e;)this.drawSymbolLayers(i,e.asJSON()),e=t.next()}}else this.drawSymbolLayers(i,e)}executeEffects(t,e){const i=this._resourceManager.geometryEngine;let s=new Ut(St.fromJSONCIM(e));for(const e of t){const t=li(e);t&&(s=t.execute(s,e,this.geomUnitsPerPoint(),null,i))}return s}drawSymbolLayers(t,e){let i=t.length;for(;i--;){const s=t[i];if(!s||!1===s.enable)continue;const r=s.effects;if(r&&r.length>0){const t=this.executeEffects(r,e);if(t){let e=null;for(;(e=t.next())&&(this.drawSymbolLayer(s,e.asJSON()),!this._earlyReturn););}}else this.drawSymbolLayer(s,e);if(this._earlyReturn)return}}drawSymbolLayer(t,e){switch(t.type){case"CIMSolidFill":this.drawSolidFill(e,t.color);break;case"CIMHatchFill":this.drawHatchFill(e,t);break;case"CIMPictureFill":this.drawPictureFill(e,t);break;case"CIMGradientFill":this.drawGradientFill(e,t);break;case"CIMSolidStroke":this.drawSolidStroke(e,t.color,t.width,t.capStyle,t.joinStyle,t.miterLimit);break;case"CIMPictureStroke":this.drawPictureStroke(e,t);break;case"CIMGradientStroke":this.drawGradientStroke(e,t);break;case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":this.drawMarkerLayer(t,e)}}drawHatchFill(t,e){const i=this._buildHatchPolyline(e,t,this.geomUnitsPerPoint());i&&(this.pushClipPath(t),this.drawMultiLayerSymbol(e.lineSymbol,i),this.popClipPath())}drawPictureFill(t,e){}drawGradientFill(t,e){}drawPictureStroke(t,e){}drawGradientStroke(t,e){}drawMarkerLayer(t,e){const i=t.markerPlacement;if(i){const s=ci(i);if(s){const r="CIMMarkerPlacementInsidePolygon"===i.type||"CIMMarkerPlacementPolygonCenter"===i.type&&i.clipAtBoundary;r&&this.pushClipPath(e);const n=s.execute(St.fromJSONCIM(e),i,this.geomUnitsPerPoint(),null,this._resourceManager.geometryEngine);if(n){let e=null;for(;(e=n.next())&&(this.drawMarker(t,e),!this._earlyReturn););}r&&this.popClipPath()}}else{const i=this._placementPool.acquire();if((0,Pt.wp)(e))i.tx=e.x,i.ty=e.y,this.drawMarker(t,i);else if((0,Pt.oU)(e)){const s=(0,Be.tO)(e);s&&([i.tx,i.ty]=s,this.drawMarker(t,i))}else for(const s of e.points)if(i.tx=s[0],i.ty=s[1],this.drawMarker(t,i),this._earlyReturn)break;this._placementPool.release(i)}}drawMarker(t,e){switch(t.type){case"CIMCharacterMarker":case"CIMPictureMarker":this.drawPictureMarker(t,e);break;case"CIMVectorMarker":this.drawVectorMarker(t,e)}}drawPictureMarker(t,e){if(!t)return;const i=this._resourceManager.getResource(t.url),s=Qi(t.size,10);if(null==i||s<=0)return;const r=i.width,n=i.height;if(!r||!n)return;const o=r/n,a=Qi(t.scaleX,1),h=_s.createIdentity(),l=t.anchorPoint;if(l){let e=l.x,i=l.y;"Absolute"!==t.anchorPointUnits&&(e*=s*o*a,i*=s),h.translate(-e,-i)}let c=Qi(t.rotation);t.rotateClockwise&&(c=-c),this._mapRotation&&(c+=this._mapRotation),c&&h.rotate(c*us);let u=Qi(t.offsetX),f=Qi(t.offsetY);if(u||f){if(this._mapRotation){const t=us*this._mapRotation,e=Math.cos(t),i=Math.sin(t),s=u*i+f*e;u=u*e-f*i,f=s}h.translate(u,f)}const _=this.geomUnitsPerPoint();1!==_&&h.scale(_,_);const m=e.getAngle();m&&h.rotate(m),h.translate(e.tx,e.ty),this.push(h,!1),this.drawImage(t,s),this.pop()}drawVectorMarker(t,e){if(!t)return;const i=t.markerGraphics;if(!i)return;const s=Qi(t.size,10),r=t.frame,n=r?r.ymax-r.ymin:0,o=s&&n?s/n:1,a=_s.createIdentity();r&&a.translate(.5*-(r.xmax+r.xmin),.5*-(r.ymax+r.ymin));const h=t.anchorPoint;if(h){let e=h.x,i=h.y;"Absolute"!==t.anchorPointUnits?r&&(e*=r.xmax-r.xmin,i*=r.ymax-r.ymin):(e/=o,i/=o),a.translate(-e,-i)}1!==o&&a.scale(o,o);let l=Qi(t.rotation);t.rotateClockwise&&(l=-l),this._mapRotation&&(l+=this._mapRotation),l&&a.rotate(l*us);let c=Qi(t.offsetX),u=Qi(t.offsetY);if(c||u){if(this._mapRotation){const t=us*this._mapRotation,e=Math.cos(t),i=Math.sin(t),s=c*i+u*e;c=c*e-u*i,u=s}a.translate(c,u)}const f=this.geomUnitsPerPoint();1!==f&&a.scale(f,f);const _=e.getAngle();_&&a.rotate(_),a.translate(e.tx,e.ty),this.push(a,t.scaleSymbolsProportionally);for(const t of i)if(t&&t.symbol&&t.geometry||fs.error("Invalid marker graphic",t),this.drawSymbol(t.symbol,t.geometry,t.textString),this._earlyReturn)break;this.pop()}drawTextSymbol(t,e,i){if(!t)return;if(!(0,Pt.wp)(e))return;if(Qi(t.height,10)<=0)return;const s=_s.createIdentity();let r=Qi(t.angle);r=-r,r&&s.rotate(r*us);const n=Qi(t.offsetX),o=Qi(t.offsetY);(n||o)&&s.translate(n,o);const a=this.geomUnitsPerPoint();1!==a&&s.scale(a,a),s.translate(e.x,e.y),this.push(s,!1),this.drawText(t,i),this.pop()}_buildHatchPolyline(t,e,i){let s=Qi(t.separation,4)*i,r=Qi(t.rotation);if(0===s)return null;s<0&&(s=-s);let n=0;const o=.5*s;for(;n>o;)n-=s;for(;n<-o;)n+=s;const a=(0,O.Ue)();(0,ye.$P)(a,e),a[0]-=o,a[1]-=o,a[2]+=o,a[3]+=o;const h=[[a[0],a[1]],[a[0],a[3]],[a[2],a[3]],[a[2],a[1]]];for(;r>180;)r-=180;for(;r<0;)r+=180;const l=Math.cos(r*us),c=Math.sin(r*us),u=-s*c,f=s*l;let _,m,d,p;n=Qi(t.offsetX)*i*c-Qi(t.offsetY)*i*l,_=d=Number.MAX_VALUE,m=p=-Number.MAX_VALUE;for(const t of h){const e=t[0],i=t[1],s=l*e+c*i,r=-c*e+l*i;_=Math.min(_,s),d=Math.min(d,r),m=Math.max(m,s),p=Math.max(p,r)}d=Math.floor(d/s)*s;let y=l*_-c*d-u*n/s,g=c*_+l*d-f*n/s,x=l*m-c*d-u*n/s,M=c*m+l*d-f*n/s;const b=1+Math.round((p-d)/s),P=[];for(let t=0;t<b;t++)y+=u,g+=f,x+=u,M+=f,P.push([[y,g],[x,M]]);return{paths:P}}}class ds extends ms{constructor(t,e){super(t,e),this.reset()}reset(){this._xmin=this._ymin=1/0,this._xmax=this._ymax=-1/0,this._clipCount=0}envelope(){return new Gi(this._xmin,this._ymin,this._xmax-this._xmin,this._ymax-this._ymin)}bounds(){return(0,O.al)(this._xmin,this._ymin,this._xmax,this._ymax)}drawSolidFill(t){if(t&&!(this._clipCount>0))if((0,Pt.oU)(t))this._processPath(t.rings,0);else if((0,Pt.l9)(t))this._processPath(t.paths,0);else if((0,Pt.YX)(t)){const e=gs(t);e&&this._processPath(e.rings,0)}else console.error("drawSolidFill Unexpected geometry type!")}drawSolidStroke(t,e,i){if(!t||this._clipCount>0)return;const s=.5*this.transformSize(Qi(i,4));if((0,Pt.oU)(t))this._processPath(t.rings,s);else if((0,Pt.l9)(t))this._processPath(t.paths,s);else if((0,Pt.YX)(t)){const e=gs(t);e&&this._processPath(e.rings,s)}else console.error("drawSolidStroke unexpected geometry type!")}drawMarkerLayer(t,e){(0,Pt.oU)(e)&&t.markerPlacement&&("CIMMarkerPlacementInsidePolygon"===t.markerPlacement.type||"CIMMarkerPlacementPolygonCenter"===t.markerPlacement.type&&t.markerPlacement.clipAtBoundary)?this._processPath(e.rings,0):super.drawMarkerLayer(t,e)}drawHatchFill(t,e){this.drawSolidFill(t)}drawPictureFill(t,e){this.drawSolidFill(t)}drawGradientFill(t,e){this.drawSolidFill(t)}drawPictureStroke(t,e){this.drawSolidStroke(t,null,e.width)}drawGradientStroke(t,e){this.drawSolidStroke(t,null,e.width)}pushClipPath(t){this.drawSolidFill(t),this._clipCount++}popClipPath(){this._clipCount--}drawImage(t,e){const{url:i}=t,s=Qi(t.scaleX,1);let r=s*e,n=e;const o=this._resourceManager.getResource(i);e||null==o||(r=s*o.width,n=o.height),this._merge(this.transformPt([-r/2,-n/2]),0),this._merge(this.transformPt([-r/2,n/2]),0),this._merge(this.transformPt([r/2,-n/2]),0),this._merge(this.transformPt([r/2,n/2]),0)}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||(this._textRasterizer=new Xi);const i=xs(t),[s,r]=this._textRasterizer.computeTextSize(e,i);let n=0;switch(t.horizontalAlignment){case"Left":n=s/2;break;case"Right":n=-s/2}let o=0;switch(t.verticalAlignment){case"Bottom":o=r/2;break;case"Top":o=-r/2;break;case"Baseline":o=r/6}this._merge(this.transformPt([-s/2+n,-r/2+o]),0),this._merge(this.transformPt([-s/2+n,r/2+o]),0),this._merge(this.transformPt([s/2+n,-r/2+o]),0),this._merge(this.transformPt([s/2+n,r/2+o]),0)}_processPath(t,e){if(t)for(const i of t){const t=i?i.length:0;if(t>1){this._merge(this.transformPt(i[0]),e);for(let s=1;s<t;s++)this._merge(this.transformPt(i[s]),e)}}}_merge(t,e){t[0]-e<this._xmin&&(this._xmin=t[0]-e),t[0]+e>this._xmax&&(this._xmax=t[0]+e),t[1]-e<this._ymin&&(this._ymin=t[1]-e),t[1]+e>this._ymax&&(this._ymax=t[1]+e)}}class ps extends ms{constructor(t,e,i,s){super(e,i),this._applyAdditionalRenderProps=s,this._colorSubstitutionHelper=new Vi,this._ctx=t}drawSolidFill(t,e){if(!t)return;if((0,Pt.oU)(t))this._buildPath(t.rings,!0);else if((0,Pt.l9)(t))this._buildPath(t.paths,!0);else if((0,Pt.YX)(t))this._buildPath(gs(t).rings,!0);else{if(!(0,Pt.aW)(t))return;console.log("CanvasDrawHelper.drawSolidFill - No implementation!")}const i=this._ctx;i.fillStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",i.fill("evenodd")}drawSolidStroke(t,e,i,s,r,n){if(!t||!e||0===i)return;if((0,Pt.oU)(t))this._buildPath(t.rings,!0);else if((0,Pt.l9)(t))this._buildPath(t.paths,!1);else{if(!(0,Pt.YX)(t))return void console.log("CanvasDrawHelper.drawSolidStroke isn't implemented!");this._buildPath(gs(t).rings,!0)}const o=this._ctx;o.strokeStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",o.lineWidth=Math.max(this.transformSize(i),.5),this._setCapStyle(s),this._setJoinStyle(r),o.miterLimit=n,o.stroke()}pushClipPath(t){if(this._ctx.save(),(0,Pt.oU)(t))this._buildPath(t.rings,!0);else if((0,Pt.l9)(t))this._buildPath(t.paths,!0);else{if(!(0,Pt.YX)(t))return;this._buildPath(gs(t).rings,!0)}this._ctx.clip("evenodd")}popClipPath(){this._ctx.restore()}drawImage(t,e){const{colorSubstitutions:i,url:s,tintColor:r}=t,n=Qi(t.scaleX,1),o=this._resourceManager.getResource(s);if(null==o)return;let a=e*(o.width/o.height),h=e;e||(a=o.width,h=o.height);const l=cs(s)||"src"in o&&cs(o.src);let c="getFrame"in o?Wi(o):o;i&&(c=this._colorSubstitutionHelper.applyColorSubstituition(c,i)),this._applyAdditionalRenderProps&&!l&&r&&(c=this._colorSubstitutionHelper.tintImageData(c,r));const u=this.transformPt([0,0]),[f,_]=this.getTransformAngle(),m=this.transformSize(1),d=this._ctx;d.save(),d.setTransform({m11:n*m*f,m12:n*m*_,m21:-m*_,m22:m*f,m41:u[0],m42:u[1]}),d.drawImage(c,-a/2,-h/2,a,h),d.restore()}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||(this._textRasterizer=new Xi);const i=xs(t);i.size*=this.transformSize((0,U.Wz)(1));const s=this._textRasterizer.rasterizeText(e,i);if(!s)return;const{size:r,anchorX:n,anchorY:o,canvas:a}=s,h=r[0]*(n+.5),l=r[1]*(o-.5),c=this._ctx,u=this.transformPt([0,0]),[f,_]=this.getTransformAngle();c.save(),c.setTransform({m11:1*f,m12:1*_,m21:-1*_,m22:1*f,m41:u[0]-1*h,m42:u[1]+1*l}),c.drawImage(a,0,0),c.restore()}drawPictureFill(t,e){if(!t)return;let{colorSubstitutions:i,height:s,offsetX:r,offsetY:n,rotation:o,scaleX:a,tintColor:h,url:l}=e;const c=this._resourceManager.getResource(l);if(null==c)return;if((0,Pt.oU)(t))this._buildPath(t.rings,!0);else if((0,Pt.l9)(t))this._buildPath(t.paths,!0);else if((0,Pt.YX)(t))this._buildPath(gs(t).rings,!0);else{if(!(0,Pt.aW)(t))return;console.log("CanvasDrawHelper.drawPictureFill - No implementation!")}const u=this._ctx,f=cs(l)||"src"in c&&cs(c.src);let _,m="getFrame"in c?Wi(c):c;if(i&&(m=this._colorSubstitutionHelper.applyColorSubstituition(m,i)),this._applyAdditionalRenderProps){f||h&&(m=this._colorSubstitutionHelper.tintImageData(m,h)),_=u.createPattern(m,"repeat");const t=this.transformSize(1);o||(o=0),r?r*=t:r=0,n?n*=t:n=0,s&&(s*=t);const e=s?s/c.height:1,i=a&&s?a*s/c.width:1;if(0!==o||1!==e||1!==i||0!==r||0!==n){const t=new DOMMatrix;t.rotateSelf(0,0,-o).translateSelf(r,n).scaleSelf(i,e,1),_.setTransform(t)}}else _=u.createPattern(m,"repeat");u.save(),u.fillStyle=_,u.fill("evenodd"),u.restore()}drawPictureStroke(t,e){if(!t)return;let{colorSubstitutions:i,capStyle:s,joinStyle:r,miterLimit:n,tintColor:o,url:a,width:h}=e;const l=this._resourceManager.getResource(a);if(null==l)return;let c;if((0,Pt.oU)(t))c=t.rings;else if((0,Pt.l9)(t))c=t.paths;else{if(!(0,Pt.YX)(t))return(0,Pt.aW)(t)?void console.log("CanvasDrawHelper.drawPictureStroke - No implementation!"):void 0;c=gs(t).rings}h||(h=l.width);const u=cs(a)||"src"in l&&cs(l.src);let f="getFrame"in l?Wi(l):l;i&&(f=this._colorSubstitutionHelper.applyColorSubstituition(f,i)),this._applyAdditionalRenderProps&&(u||o&&(f=this._colorSubstitutionHelper.tintImageData(f,o)));const _=Math.max(this.transformSize((0,U.F2)(h)),.5),m=_/f.width,d=this._ctx,p=d.createPattern(f,"repeat-y");let y,g;d.save(),this._setCapStyle(s),this._setJoinStyle(r),void 0!==n&&(d.miterLimit=n),d.lineWidth=_;for(let t of c)if(t=(0,Mt.d9)(t),bs(t),t&&!(t.length<=1)){y=this.transformPt(t[0]);for(let e=1;e<t.length;e++){g=this.transformPt(t[e]);const i=ys(y,g),s=new DOMMatrix;s.translateSelf(0,y[1]-_/2).scaleSelf(m,m,1).rotateSelf(0,0,90-i),p.setTransform(s),d.strokeStyle=p,d.beginPath(),d.moveTo(y[0],y[1]),d.lineTo(g[0],g[1]),d.stroke(),y=g}}d.restore()}_buildPath(t,e){const i=this._ctx;if(i.beginPath(),t)for(const s of t){const t=s?s.length:0;if(t>1){let r=this.transformPt(s[0]);i.moveTo(r[0],r[1]);for(let e=1;e<t;e++)r=this.transformPt(s[e]),i.lineTo(r[0],r[1]);e&&i.closePath()}}}_setCapStyle(t){switch(t){case st.kP.Butt:this._ctx.lineCap="butt";break;case st.kP.Round:this._ctx.lineCap="round";break;case st.kP.Square:this._ctx.lineCap="square"}}_setJoinStyle(t){switch(t){case st.r4.Bevel:this._ctx.lineJoin="bevel";break;case st.r4.Round:this._ctx.lineJoin="round";break;case st.r4.Miter:this._ctx.lineJoin="miter"}}}function ys(t,e){const i=e[0]-t[0],s=e[1]-t[1];return 180/Math.PI*Math.atan2(s,i)}const gs=t=>t?{spatialReference:t.spatialReference,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:null;function xs(t,e=1){const i=rs(t),s=ss(t.fontStyleName),r=Ai(t.fontFamilyName),{weight:n,style:o}=s,a=e*(t.height||5),h=hs(t.horizontalAlignment),l=ls(t.verticalAlignment),c=ns(t),u=ns(t.haloSymbol),f=u?e*(0|t.haloSize):0,_="CIMBackgroundCallout"===t.callout?.type?t.callout.backgroundSymbol:null,m=ns(_),d=as(_),p=os(_);return{color:c,size:a,horizontalAlignment:h,verticalAlignment:l,font:{family:r,style:es(o),weight:is(n),decoration:i},halo:{size:f||0,color:u,style:o},backgroundColor:m,borderLine:null!=d&&null!=p?{size:d,color:p}:null,pixelRatio:1,premultiplyColors:!0}}const Ms=1e-4;function bs(t){let e,i,s,r,n,o=t[0],a=1;for(;a<t.length;)e=t[a][0]-o[0],i=t[a][1]-o[1],r=0!==e?i/e:Math.PI/2,void 0!==s&&r-s<=Ms?(t.splice(a-1,1),o=n):(n=o,o=t[a],a++),s=r}var Ps=i(82397);function vs(t,e,i,s,r){if(null==t)return null;const n=t.referencesGeometry()&&r?function(t,e,i){const{transform:s,hasZ:r,hasM:n}=i;Ss.has(e)||Ss.set(e,function(t){const e={};switch(t){case"esriGeometryPoint":return(t,i,s,r)=>(0,Ps.U1)(i,e,t,s,r);case"esriGeometryPolygon":return(t,i,s,r)=>(0,Ps.Ie)(i,e,t,s,r);case"esriGeometryPolyline":return(t,i,s,r)=>(0,Ps.G6)(i,e,t,s,r);case"esriGeometryMultipoint":return(t,i,s,r)=>(0,Ps.J9)(i,e,t,s,r);default:return h.Z.getLogger("esri.views.2d.support.arcadeOnDemand").error(new o.Z("mapview-arcade",`Unable to handle geometryType: ${t}`)),t=>t}}(e));const a=Ss.get(e)(t.geometry,s,r,n);return{...t,geometry:a}}(e,s,r):e,a=t.repurposeFeature(n);try{return t.evaluate({...i,$feature:a},t.services)}catch(t){return h.Z.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",t),null}}const Ss=new Map;i(31363);var ws=i(31134);const Cs=Math.PI,Is=Cs/2,Ls=(Math.PI,96/72),ks=h.Z.getLogger("esri.symbols.cim.CIMSymbolHelper");function zs(t,e,i){switch(e.type){case"CIMSymbolReference":return zs(t,e.symbol,i);case"CIMPointSymbol":null==i&&(i={x:0,y:0}),t.drawSymbol(e,i);break;case"CIMLineSymbol":null==i&&(i={paths:[[[0,0],[10,0]]]}),t.drawSymbol(e,i);break;case"CIMPolygonSymbol":null==i&&(i={rings:[[[0,0],[0,10],[10,10],[10,0],[0,0]]]}),t.drawSymbol(e,i);break;case"CIMTextSymbol":{const i={x:0,y:0};t.drawSymbol(e,i);break}case"CIMVectorMarker":{const i=new Et;t.drawMarker(e,i);break}}return t.envelope()}function Ts(t){if(!t)return 0;switch(t.type){case"CIMGeometricEffectArrow":return Math.abs(.5*t.width);case"CIMGeometricEffectBuffer":return Math.abs(t.size);case"CIMGeometricEffectExtension":case"CIMGeometricEffectRadial":return Math.abs(t.length);case"CIMGeometricEffectJog":return Math.abs(.5*t.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(Qi(t.offsetX)),Math.abs(Qi(t.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(t.offset);case"CIMGeometricEffectRegularPolygon":return Math.abs(t.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(t.fromWidth),Math.abs(t.toWidth));case"CIMGeometricEffectWave":return Math.abs(t.amplitude);case"CIMGeometricEffectDonut":return t.width}}function Os(t){if(!t)return 0;let e=0;for(const i of t)e+=Ts(i);return e}class Es{static getEnvelope(t,e,i){if(!t)return null;const s=new ds(i);if(Array.isArray(t)){let i;for(const r of t)i?i.union(zs(s,r,e)):i=zs(s,r,e);return i}return zs(s,t,e)}static getTextureAnchor(t,e){const i=this.getEnvelope(t,null,e);if(!i)return[0,0,0];const s=(i.x+.5*i.width)*Ls,r=(i.y+.5*i.height)*Ls,n=i.width*Ls+2,o=i.height*Ls+2;return[-s/n,-r/o,o]}static rasterize(t,e,i,s,r=!0){const n=i||this.getEnvelope(e,null,s);if(!n)return[null,0,0,0,0];const o=(n.x+.5*n.width)*Ls,a=(n.y+.5*n.height)*Ls;t.width=n.width*Ls,t.height=n.height*Ls,i||(t.width+=2,t.height+=2);const h=t.getContext("2d"),l=_s.createScale(Ls,-Ls);l.translate(.5*t.width-o,.5*t.height+a);const c=new ps(h,s,l);switch(e.type){case"CIMPointSymbol":{const t={type:"point",x:0,y:0};c.drawSymbol(e,t);break}case"CIMVectorMarker":{const t=new Et;c.drawMarker(e,t);break}}const u=h.getImageData(0,0,t.width,t.height),f=new Uint8Array(u.data);if(r){let t;for(let e=0;e<f.length;e+=4)t=f[e+3]/255,f[e]=f[e]*t,f[e+1]=f[e+1]*t,f[e+2]=f[e+2]*t}return[f,t.width,t.height,-o/t.width,-a/t.height]}static fromTextSymbol(t){const{angle:e,color:i,font:s,haloColor:r,haloSize:o,horizontalAlignment:a,kerning:h,text:l,verticalAlignment:c,xoffset:u,yoffset:f,backgroundColor:_,borderLineColor:m,borderLineSize:d}=t;let p,y,g,x,M,b;s&&(p=s.family,y=s.style,g=s.weight,x=s.size,M=s.decoration);let P=!1;return l&&(P=n(l)[1]),(_||d)&&(b={type:"CIMBackgroundCallout",margin:null,backgroundSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",color:Ws(_)},{type:"CIMSolidStroke",color:Ws(m),width:d}]},accentBarSymbol:null,gap:null,leaderLineSymbol:null,lineStyle:null}),{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:10,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",angle:e,blockProgression:st.zV.BTT,depth3D:1,extrapolateBaselines:!0,fontEffects:st.eZ.Normal,fontEncoding:st.DD.Unicode,fontFamilyName:p||"Arial",fontStyleName:Gs(y,g),fontType:st.Ky.Unspecified,haloSize:o,height:x,hinting:st.Dd.Default,horizontalAlignment:Rs(a??"center"),kerning:h,letterWidth:100,ligatures:!0,lineGapType:"Multiple",offsetX:Qi(u),offsetY:Qi(f),strikethrough:"line-through"===M,underline:"underline"===M,symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:Ws(i)}]},haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:Ws(r)}]},shadowColor:[0,0,0,255],shadowOffsetX:1,shadowOffsetY:1,textCase:"Normal",textDirection:P?st.UX.RTL:st.UX.LTR,verticalAlignment:Vs(c??"baseline"),verticalGlyphOrientation:st.RS.Right,wordSpacing:100,billboardMode3D:st.UR.FaceNearPlane,callout:b},textString:l}],scaleSymbolsProportionally:!0,respectFrame:!0}],scaleX:1,angleAlignment:"Display"}}static fromPictureFillSymbol(t){const{height:e,outline:i,width:s,xoffset:r,xscale:n,yoffset:o,yscale:a}=t,h=[],l={type:"CIMPolygonSymbol",symbolLayers:h};if(i){const{cap:t,join:e,miterLimit:s,width:r}=i;h.push({type:"CIMSolidStroke",color:Ws(i.color),capStyle:As(t),joinStyle:Ns(e),miterLimit:s,width:r})}let c=t.url;"esriPFS"===t.type&&t.imageData&&(c=t.imageData);const u="angle"in t?t.angle??0:0,f=(s??0)*(n||1),_=(e??0)*(a||1);return h.push({type:"CIMPictureFill",invertBackfaceTexture:!1,scaleX:1,textureFilter:st.Qb.Picture,tintColor:null,url:c,height:_,width:f,offsetX:Qi(r),offsetY:Qi(o),rotation:Qi(-u),colorSubstitutions:null}),l}static fromSimpleFillSymbol(t){const{color:e,style:i,outline:s}=t,r=[],n={type:"CIMPolygonSymbol",symbolLayers:r};let o=null;if(s){const{cap:t,join:e,style:i}=s;"solid"!==i&&"none"!==i&&"esriSLSSolid"!==i&&"esriSLSNull"!==i&&(o=[{type:"CIMGeometricEffectDashes",dashTemplate:Xs(i,t),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]),r.push({type:"CIMSolidStroke",color:"esriSLSNull"!==i&&"none"!==i?Ws(s.color):[0,0,0,0],capStyle:As(t),joinStyle:Ns(e),miterLimit:s.miterLimit,width:s.width,effects:o})}if(i&&"solid"!==i&&"none"!==i&&"esriSFSSolid"!==i&&"esriSFSNull"!==i){const t={type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",color:Ws(e),capStyle:st.kP.Butt,joinStyle:st.r4.Miter,width:.75}]};let s=0;const n=(0,U.Wz)(Hs(i)?8:10);switch(i){case"vertical":case"esriSFSVertical":s=90;break;case"forward-diagonal":case"esriSFSForwardDiagonal":case"diagonal-cross":case"esriSFSDiagonalCross":s=-45;break;case"backward-diagonal":case"esriSFSBackwardDiagonal":s=45;break;case"cross":case"esriSFSCross":s=0}r.push({type:"CIMHatchFill",lineSymbol:t,offsetX:0,offsetY:0,rotation:s,separation:n}),"cross"===i||"esriSFSCross"===i?r.push({type:"CIMHatchFill",lineSymbol:(0,Mt.d9)(t),offsetX:0,offsetY:0,rotation:90,separation:n}):"diagonal-cross"!==i&&"esriSFSDiagonalCross"!==i||r.push({type:"CIMHatchFill",lineSymbol:(0,Mt.d9)(t),offsetX:0,offsetY:0,rotation:45,separation:n})}else!i||"solid"!==i&&"esriSFSSolid"!==i||r.push({type:"CIMSolidFill",enable:!0,color:Ws(e)});return n}static fromSimpleLineSymbol(t){const{cap:e,color:i,join:s,marker:r,miterLimit:n,style:o,width:a}=t;let h=null;"solid"!==o&&"none"!==o&&"esriSLSSolid"!==o&&"esriSLSNull"!==o&&(h=[{type:"CIMGeometricEffectDashes",dashTemplate:Xs(o,e),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]);const l=[];if(r){let t;switch(r.placement){case"begin-end":t=st.Tx.Both;break;case"begin":t=st.Tx.JustBegin;break;case"end":t=st.Tx.JustEnd;break;default:t=st.Tx.None}const e=Es.fromSimpleMarker(r,a,i).symbolLayers[0];e.markerPlacement={type:"CIMMarkerPlacementAtExtremities",angleToLine:!0,offset:0,extremityPlacement:t,offsetAlongLine:0},l.push(e)}return l.push({type:"CIMSolidStroke",color:"none"!==o&&"esriSLSNull"!==o?Ws(i):[0,0,0,0],capStyle:As(e),joinStyle:Ns(s),miterLimit:n,width:a,effects:h}),{type:"CIMLineSymbol",symbolLayers:l}}static fromPictureMarker(t){const{angle:e,height:i,width:s,xoffset:r,yoffset:n}=t;let o=t.url;return"esriPMS"===t.type&&t.imageData&&(o=t.imageData),{type:"CIMPointSymbol",symbolLayers:[{type:"CIMPictureMarker",invertBackfaceTexture:!1,scaleX:1,textureFilter:st.Qb.Picture,tintColor:null,url:o,size:i,width:s,offsetX:Qi(r),offsetY:Qi(n),rotation:Qi(-e)}]}}static fromSimpleMarker(t,e,i){const{style:s}=t,r=t.color??i;if("path"===s){const e=[];if("outline"in t&&t.outline){const i=t.outline;e.push({type:"CIMSolidStroke",enable:!0,width:(0,U.F2)(Math.round((0,U.Wz)(i.width))),color:Ws(i.color)})}e.push({type:"CIMSolidFill",enable:!0,color:Ws(r),path:t.path});const[i,s]=Us("square");return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:Qi(-t.angle),size:Qi(t.size||6),offsetX:Qi(t.xoffset),offsetY:Qi(t.yoffset),frame:i,markerGraphics:[{type:"CIMMarkerGraphic",geometry:s,symbol:{type:"CIMPolygonSymbol",symbolLayers:e}}]}]}}const[n,o]=Us(s);let a;if(o&&n){const i=[];if("outline"in t&&t.outline){const e=t.outline;i.push({type:"CIMSolidStroke",enable:!0,width:null!=e.width&&e.width>.667?(0,U.F2)(Math.round((0,U.Wz)(e.width))):e.width,color:Ws(e.color)})}else!e||"line-marker"!==t.type||"cross"!==t.style&&"x"!==t.style||i.push({type:"CIMSolidStroke",enable:!0,width:e,color:Ws(r)});i.push({type:"CIMSolidFill",enable:!0,color:Ws(r)});const s={type:"CIMPolygonSymbol",symbolLayers:i};a={type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:Qi(-t.angle),size:Qi(t.size||6*e),offsetX:Qi(t.xoffset),offsetY:Qi(t.yoffset),frame:n,markerGraphics:[{type:"CIMMarkerGraphic",geometry:o,symbol:s}]}]}}return a}static fromCIMHatchFill(t,e){const i=e*(t.separation??4),s=i/2,r=(0,Mt.d9)(t.lineSymbol);r.symbolLayers?.forEach((t=>{switch(t.type){case"CIMSolidStroke":null!=t.width&&(t.width*=e),t.effects?.forEach((t=>{"CIMGeometricEffectDashes"===t.type&&(t.dashTemplate=t.dashTemplate.map((t=>t*e)))}));break;case"CIMVectorMarker":{null!=t.size&&(t.size*=e);const i=t.markerPlacement;null!=i&&"placementTemplate"in i&&(i.placementTemplate=i.placementTemplate.map((t=>t*e)));break}}}));let n=this._getLineSymbolPeriod(r)||4;for(;n<4;)n*=2;const o=n/2;return{type:"CIMVectorMarker",frame:{xmin:-o,xmax:o,ymin:-s,ymax:s},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{paths:[[[-o,0],[o,0]]]},symbol:r}],size:i}}static fetchResources(t,e,i){if(t&&e)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const s=t.symbolLayers;if(!s)return;for(const t of s)switch(Js(t,e,i),t.type){case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":case"CIMPictureStroke":case"CIMGradientStroke":case"CIMCharacterMarker":case"CIMPictureMarker":"url"in t&&t.url&&i.push(e.fetchResource(t.url,null));break;case"CIMVectorMarker":{const s=t.markerGraphics;if(!s)continue;for(const t of s)if(t){const s=t.symbol;s&&Es.fetchResources(s,e,i)}}}break}case"CIMTextSymbol":{const s=t,r=Ai(s.fontFamilyName),{style:n,weight:o}=ss(s.fontStyleName),a=rs(s);i.push(e.loadFont(new ws.Z({family:r,style:n,weight:o,decoration:a})).catch((()=>{ks.error("unsupported font in preview")})));break}}}static _getLineSymbolPeriod(t){if(t){const e=this._getEffectsRepeat(t.effects);if(e)return e;if(t.symbolLayers)for(const e of t.symbolLayers)if(e){const t=this._getEffectsRepeat(e.effects);if(t)return t;switch(e.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=this._getPlacementRepeat(e.markerPlacement);if(t)return t}}}}return 0}static _getEffectsRepeat(t){if(t)for(const e of t)if(e)switch(e.type){case"CIMGeometricEffectDashes":{const t=e.dashTemplate;if(t&&t.length){let e=0;for(const i of t)e+=i;return 1&t.length&&(e*=2),e}break}case"CIMGeometricEffectWave":return e.period;default:ks.error(`unsupported geometric effect type ${e.type}`)}return 0}static _getPlacementRepeat(t){if(t)switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineVariableSize":{const e=t.placementTemplate;if(e&&e.length){let t=0;for(const i of e)t+=+i;return 1&e.length&&(t*=2),t}break}}return 0}static fromCIMInsidePolygon(t){const e=t.markerPlacement,i={...t};i.markerPlacement=null,i.anchorPoint=null;const s=Math.abs(e.stepX),r=Math.abs(e.stepY),n=(e.randomness??100)/100;let o,a,h,l;if("Random"===e.gridType){const t=(0,U.Wz)(E.C1),i=Math.max(Math.floor(t/s),1),c=Math.max(Math.floor(t/r),1);o=i*s/2,a=c*r/2,h=2*a;const u=new ze.Z(e.seed),f=n*s/1.5,_=n*r/1.5;l=[];for(let t=0;t<i;t++)for(let e=0;e<c;e++){const i=t*s-o+f*(.5-u.getFloat()),n=e*r-a+_*(.5-u.getFloat());l.push({x:i,y:n}),0===t&&l.push({x:i+2*o,y:n}),0===e&&l.push({x:i,y:n+2*a})}}else!0===e.shiftOddRows?(o=s/2,a=r,h=2*r,l=[{x:-o,y:0},{x:o,y:0},{x:0,y:a},{x:0,y:-a}]):(o=s/2,a=r/2,h=r,l=[{x:-s,y:0},{x:0,y:-r},{x:-s,y:-r},{x:0,y:0},{x:s,y:0},{x:0,y:r},{x:s,y:r},{x:-s,y:r},{x:s,y:-r}]);return{type:"CIMVectorMarker",frame:{xmin:-o,xmax:o,ymin:-a,ymax:a},markerGraphics:l.map((t=>({type:"CIMMarkerGraphic",geometry:t,symbol:{type:"CIMPointSymbol",symbolLayers:[i]}}))),size:h}}static getSize(t){if(t)switch(t.type){case"CIMTextSymbol":return t.height;case"CIMPointSymbol":{let e=0;if(t.symbolLayers)for(const i of t.symbolLayers)if(i)switch(i.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=i.size;null!=t&&t>e&&(e=t);break}}return e}case"CIMLineSymbol":case"CIMPolygonSymbol":{let e=0;if(t.symbolLayers)for(const i of t.symbolLayers)if(i)switch(i.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const t=i.width;null!=t&&t>e&&(e=t);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(i.markerPlacement&&$i(i.markerPlacement)){const t=i.size;null!=t&&t>e&&(e=t)}}return e}}}static getMarkerScaleRatio(t){if(t&&"CIMVectorMarker"===t.type&&!1!==t.scaleSymbolsProportionally&&t.frame&&null!=t.size){const e=t.frame.ymax-t.frame.ymin;return t.size/e}return 1}}class Fs{static findApplicableOverrides(t,e,i){if(t&&e){if(t.primitiveName){let s=!1;for(const e of i)if(e.primitiveName===t.primitiveName){s=!0;break}if(!s)for(const s of e)s.primitiveName===t.primitiveName&&i.push(s)}switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.effects)for(const s of t.effects)Fs.findApplicableOverrides(s,e,i);if(t.symbolLayers)for(const s of t.symbolLayers)Fs.findApplicableOverrides(s,e,i);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":case"CIMVectorMarker":case"CIMCharacterMarker":case"CIMPictureMarker":if(t.effects)for(const s of t.effects)Fs.findApplicableOverrides(s,e,i);if(t.markerPlacement&&Fs.findApplicableOverrides(t.markerPlacement,e,i),"CIMVectorMarker"===t.type){if(t.markerGraphics)for(const s of t.markerGraphics)Fs.findApplicableOverrides(s,e,i),Fs.findApplicableOverrides(s.symbol,e,i)}else"CIMCharacterMarker"===t.type?Fs.findApplicableOverrides(t.symbol,e,i):"CIMHatchFill"===t.type?Fs.findApplicableOverrides(t.lineSymbol,e,i):"CIMPictureMarker"===t.type&&Fs.findApplicableOverrides(t.animatedSymbolProperties,e,i)}}}static findEffectOverrides(t,e,i){if(!e||!t)return;const s=t.length;for(let r=0;r<s;r++){const s=t[r],n=s?.primitiveName;if(n){let t=!1;for(const e of i)if(e.primitiveName===n){t=!0;break}if(!t)for(const t of e)t.primitiveName===n&&i.push(t)}}}static async resolveSymbolOverrides(t,e,i,s,r,n,o){if(!t||!t.symbol)return null;let{symbol:a,primitiveOverrides:h}=t;const l=!!h;if(!l&&!s)return a;a=(0,Mt.d9)(a);let c=!0;if(e||(e={attributes:{}},c=!1),l){if(c||(h=h.filter((t=>!t.valueExpressionInfo?.expression.includes("$feature")))),o||(h=h.filter((t=>!t.valueExpressionInfo?.expression.includes("$view")))),h.length>0){const t=function(t){return(t?Object.keys(t):[]).map((e=>({name:e,alias:e,type:"string"==typeof t[e]?"esriFieldTypeString":"esriFieldTypeDouble"})))}(e.attributes);await Fs.evaluateOverrides(h,e,{spatialReference:i,fields:t,geometryType:r},n,o)}Fs.applyOverrides(a,h)}return s&&Fs.applyDictionaryTextOverrides(a,e,s),a}static async evaluateOverrides(t,e,i,s,r){if(!e)return;let n;for(const o of t){const t=o.valueExpressionInfo;if(t&&i&&i.geometryType){n||(n=[]),o.value=void 0;const a=(0,Ni.Yi)(t.expression,i.spatialReference,i.fields).then((t=>{o.value=vs(t,e,{$view:r},i.geometryType,s)}));n.push(a)}}void 0!==n&&n.length>0&&await Promise.all(n)}static applyDictionaryTextOverrides(t,e,i,s="Normal"){if(t&&t.type)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":case"CIMTextSymbol":{const r=t.symbolLayers;if(!r)return;for(const n of r)n&&"CIMVectorMarker"===n.type&&Fs.applyDictionaryTextOverrides(n,e,i,"CIMTextSymbol"===t.type?t.textCase:s)}break;case"CIMVectorMarker":{const s=t.markerGraphics;if(!s)return;for(const t of s)t&&Fs.applyDictionaryTextOverrides(t,e,i)}break;case"CIMMarkerGraphic":{const r=t.textString;if(r&&r.includes("[")){const n=Zi(r,i);t.textString=qi(e,n,s)}}}}static applyOverrides(t,e,i,s){if(t.primitiveName)for(const r of e)if(r.primitiveName===t.primitiveName){const e=Ys(r.propertyName);if(s&&s.push({cim:t,nocapPropertyName:e,value:t[e]}),r.expression&&(r.value=Fs.toValue(r.propertyName,r.expression)),i){let e=!1;for(const s of i)s.primitiveName===t.primitiveName&&(e=!0);e||i.push(r)}null!=r.value&&(t[e]=r.value)}switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(t.effects)for(const r of t.effects)Fs.applyOverrides(r,e,i,s);if(t.symbolLayers)for(const r of t.symbolLayers)Fs.applyOverrides(r,e,i,s);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMSolidFill":case"CIMVectorMarker":if(t.effects)for(const r of t.effects)Fs.applyOverrides(r,e,i,s);if("CIMVectorMarker"===t.type&&t.markerGraphics)for(const r of t.markerGraphics)Fs.applyOverrides(r,e,i,s),Fs.applyOverrides(r.symbol,e,i,s)}}static restoreOverrides(t){for(const e of t)e.cim[e.nocapPropertyName]=e.value}static buildOverrideKey(t){let e="";for(const i of t)void 0!==i.value&&(e+=`${i.primitiveName}${i.propertyName}${JSON.stringify(i.value)}`);return e}static toValue(t,e){if("DashTemplate"===t)return e.split(" ").map((t=>Number(t)));if("Color"===t){const t=new Fi.Z(e).toRgba();return t[3]*=255,t}return e}}const As=t=>{if(!t)return st.kP.Butt;switch(t){case"butt":return st.kP.Butt;case"square":return st.kP.Square;case"round":return st.kP.Round}},Ns=t=>{if(!t)return st.r4.Miter;switch(t){case"miter":return st.r4.Miter;case"round":return st.r4.Round;case"bevel":return st.r4.Bevel}},Rs=t=>{if(null==t)return"Center";switch(t){case"left":return"Left";case"right":return"Right";case"center":return"Center"}},Vs=t=>{if(null==t)return"Center";switch(t){case"baseline":return"Baseline";case"top":return"Top";case"middle":return"Center";case"bottom":return"Bottom"}},Ws=t=>{if(!t)return[0,0,0,0];const{r:e,g:i,b:s,a:r}=t;return[e,i,s,255*r]},Gs=(t,e)=>{const i=Ds(e),s=Bs(t);return i&&s?`${i}-${s}`:`${i}${s}`},Ds=t=>{if(!t)return"";switch(t.toLowerCase()){case"bold":case"bolder":return"bold"}return""},Bs=t=>{if(!t)return"";switch(t.toLowerCase()){case"italic":case"oblique":return"italic"}return""},Xs=(t,e)=>{const i="butt"===e;switch(t){case"dash":case"esriSLSDash":return i?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return i?[4,3,1,3]:[3,4,0,4];case"dot":case"esriSLSDot":return i?[1,3]:[0,4];case"long-dash":case"esriSLSLongDash":return i?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return i?[8,3,1,3]:[7,4,0,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return i?[8,3,1,3,1,3]:[7,4,0,4,0,4];case"short-dash":case"esriSLSShortDash":return i?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return i?[4,1,1,1]:[3,2,0,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return i?[4,1,1,1,1,1]:[3,2,0,2,0,2];case"short-dot":case"esriSLSShortDot":return i?[1,1]:[0,2];case"solid":case"esriSLSSolid":case"none":return ks.error("Unexpected: style does not require rasterization"),[0,0];default:return ks.error(`Tried to rasterize SLS, but found an unexpected style: ${t}!`),[0,0]}},Us=t=>{const e=50;let i,s;const r=t;if("circle"===r||"esriSMSCircle"===r){const t=.25;let r=Math.acos(1-t/e),n=Math.ceil(Cs/r/4);0===n&&(n=1),r=Is/n,n*=4;const o=[];o.push([e,0]);for(let t=1;t<n;t++)o.push([e*Math.cos(t*r),-e*Math.sin(t*r)]);o.push([e,0]),i={rings:[o]},s={xmin:-e,ymin:-e,xmax:e,ymax:e}}else if("cross"===r||"esriSMSCross"===r){const t=0;i={rings:[[[t,e],[t,t],[e,t],[e,-t],[t,-t],[t,-e],[-t,-e],[-t,-t],[-e,-t],[-e,t],[-t,t],[-t,e],[t,e]]]},s={xmin:-e,ymin:-e,xmax:e,ymax:e}}else if("diamond"===r||"esriSMSDiamond"===r)i={rings:[[[-e,0],[0,e],[e,0],[0,-e],[-e,0]]]},s={xmin:-e,ymin:-e,xmax:e,ymax:e};else if("square"===r||"esriSMSSquare"===r)i={rings:[[[-e,-e],[-e,e],[e,e],[e,-e],[-e,-e]]]},s={xmin:-e,ymin:-e,xmax:e,ymax:e};else if("x"===r||"esriSMSX"===r){const t=0;i={rings:[[[0,t],[e-t,e],[e,e-t],[t,0],[e,t-e],[e-t,-e],[0,-t],[t-e,-e],[-e,t-e],[-t,0],[-e,e-t],[t-e,e],[0,t]]]},s={xmin:-e,ymin:-e,xmax:e,ymax:e}}else if("triangle"===r||"esriSMSTriangle"===r){const t=57.735026918962575,e=-t,r=2/3*100,n=r-100;i={rings:[[[e,n],[0,r],[t,n],[e,n]]]},s={xmin:e,ymin:n,xmax:t,ymax:r}}else"arrow"===r&&(i={rings:[[[-50,50],[50,0],[-50,-50],[-33,-20],[-33,20],[-50,50]]]},s={xmin:-e,ymin:-e,xmax:e,ymax:e});return[s,i]},Hs=t=>"vertical"===t||"horizontal"===t||"cross"===t||"esriSFSCross"===t||"esriSFSVertical"===t||"esriSFSHorizontal"===t,Ys=t=>t?t.charAt(0).toLowerCase()+t.substr(1):t;function Js(t,e,s){t.effects&&null==e.geometryEngine&&(e.geometryEnginePromise?s.push(e.geometryEnginePromise):(t=>{if(!t)return!1;for(const e of t)switch(e.type){case"CIMGeometricEffectBuffer":case"CIMGeometricEffectOffset":case"CIMGeometricEffectDonut":return!0}return!1})(t.effects)&&(e.geometryEnginePromise=Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247)),s.push(e.geometryEnginePromise),e.geometryEnginePromise.then((t=>e.geometryEngine=t))))}class Zs{static executeEffects(t,e,i,s){const r=Os(t);let n=new Ut(e);for(const e of t){const t=li(e);t&&(n=t.execute(n,e,1.3333333333333333,i,s,r))}return n}static applyEffects(t,e,i){if(!t)return e;const s=Os(t);let r,n=new Ut(St.fromJSONCIM(e));for(const e of t){const t=li(e);t&&(n=t.execute(n,e,1,null,i,s))}const o=[];let a=null;for(;r=n.next();)o.push(...(0,bt.M)(r)),a=r.geometryType;return 0===o.length||null===a?null:"esriGeometryPolygon"===a?{rings:o}:{paths:o}}}class qs{constructor(){this._materialKey=null}bindFeature(t,e,i){}write(t,e,i,s){if(this._effects&&this._effects.length>0){let i=St.fromFeatureSetReaderCIM(e);if(i){i.invertY();const r=Zs.executeEffects(this._effects,i,t.tileKey,s.geometryEngine);for(;i=r.next();)i.invertY(),this._write(t,e,s,i)}}else this._write(t,e,s)}_write(t,e,i,s){}}class Ks extends(Ei(qs)){constructor(t,e,i,s,r,n,o,a,h,l,c,u,f,_,m,d,p,y,g,x,M,b,P,v){super(),this._xOffset=(0,U.F2)(f),this._yOffset=(0,U.F2)(_),this._decoration=l||"none",this._backgroundColor=b,this._borderLineColor=P,this._borderLineSize=v,this._color=r,this._haloColor=n,this._haloSize=Math.min(Math.floor(5*(0,U.F2)((0,U.t_)(i))),127),this._size=Math.min(Math.round((0,U.F2)(e)),127);const S=Math.min(Math.round((0,U.F2)(s||e)),127);this._referenceSize=Math.round(Math.sqrt(256*S)),this._scale=this._size/E.Ex,this._angle=u,this._justify=(0,rt.Hd)(o||"center"),this._xAlignD=(0,rt.kH)(o||"center"),this._yAlignD=(0,rt.b7)(a||"baseline"),this._baseline="baseline"===(a||"baseline"),this._bitset=(h===st.v2.MAP?1:0)|(c?1:0)<<1;const w=at.m2.load(t);w.sdf=!0,this._materialKey=w.data,this._lineWidth=(0,U.F2)(m)||512,this._lineHeight=d||1,this._textPlacement=p,this._effects=y,this._isCIM=g??!1,this._minMaxZoom=(0,ot.UJ)(Math.round(x*E.MI),Math.round(M*E.MI))}static fromText(t,e){const i=t.font?.size,s=new Ks(t.materialKey,i,t.haloSize||0,i,t.color&&(0,nt.aH)(t.color)||0,t.haloColor&&(0,nt.aH)(t.haloColor)||0,t.horizontalAlignment,t.verticalAlignment,st.v2.SCREEN,t.font?.decoration,!1,t.angle||0,t.xoffset||0,t.yoffset||0,t.lineWidth||0,t.lineHeight||0,null,null,!1,0,ht,t.backgroundColor&&(0,nt.aH)(t.backgroundColor),t.borderLineColor&&(0,nt.aH)(t.borderLineColor),t.borderLineSize),[,r]=n(t.text);return s.bindTextInfo(e??[],r),s._vertexBoundsScale=t.maxVVSize&&i?t.maxVVSize/i:1,s}static fromCIMText(t,e,i){const s=t.scaleFactor||1,r=t.size*t.sizeRatio*s,[o,a]=mt(t.scaleInfo,i),h=new Ks(t.materialKey,r,t.outlineSize*t.sizeRatio,t.referenceSize,(0,nt.t2)(t.color),(0,nt.t2)(t.outlineColor),t.horizontalAlignment,t.verticalAlignment,t.alignment,t.decoration,t.colorLocked??!1,t.angle,t.offsetX*t.sizeRatio*s,t.offsetY*t.sizeRatio*s,512,1,t.markerPlacement,t.effects,!0,o,a,t.backgroundColor?(0,nt.t2)(t.backgroundColor):void 0,t.borderLineColor?(0,nt.t2)(t.borderLineColor):void 0,t.borderLineWidth),[,l]=n(t.text);return h.bindTextInfo(e,l),h._vertexBoundsScale=t.maxVVSize?t.maxVVSize/r:1,h}}const js=h.Z.getLogger("esri.views.2d.engine.webgl.WGLLabelTemplate"),$s=function(t){const e=new Map;return t=>(e.has(t)||e.set(t,(t=>{let e=0;if(0===t)return 1/0;for(;!(t%2);)e++,t/=2;return e})(t)),e.get(t))}(),Qs=t=>Math.floor(127*t+127),tr=t=>Math.floor(10*t),er=t=>Math.round(t*(254/360));class ir extends Ks{constructor(t,e,i,s){super(t,i.font?.size,i.haloSize||0,i.font?.size,i.color&&(0,nt.aH)(i.color)||0,i.haloColor&&(0,nt.aH)(i.haloColor)||0,i.horizontalAlignment,i.verticalAlignment,(0,rt.NS)(e.labelPlacement)?st.v2.MAP:st.v2.SCREEN,i.font?.decoration,!1,i.angle||0,i.xoffset,i.yoffset,i.lineWidth,i.lineHeight,null,null,!1,null,null,i.backgroundColor&&(0,nt.aH)(i.backgroundColor),i.borderLineColor&&(0,nt.aH)(i.borderLineColor),i.borderLineSize),this._outLineLabelAngle=0,this._refPlacementPadding=0,this._refPlacementDirX=0,this._refPlacementDirY=0,this._refOffsetX=0,this._refOffsetY=0,this._zoomLevel=0,this.geometryType=p.LW.LABEL,this._allowOverrun=e.allowOverrun??!1,this._repeatLabel=e.repeatLabel??!0,this._labelPosition=e.labelPosition??"curved";const r=function(t,e){const i=!!t.minScale&&e.scaleToZoom(t.minScale)||0;return(0,X.uZ)(i,0,25.5)}(e,s),n=function(t,e){const i=!!t.maxScale&&e.scaleToZoom(t.maxScale)||255;return(0,X.uZ)(i,0,25.5)}(e,s),o=e.labelPlacement,[a,h]=(0,rt.qv)(o);this._xAlignD=a,this._yAlignD=h,this._minZoom=r,this._maxZoom=n,this._minBackgroundZoom=r,this._maxBackgroundZoom=n,this._refPlacementPadding=(0,U.F2)(i.haloSize)+E.Iw,this._repeatLabelDistance=e.repeatLabelDistance?(0,U.F2)(e.repeatLabelDistance):128;const l=at.Gq.load(t);l.sdf=!0,this._materialKey=l.data}static fromLabelClass(t,e){if("esriServerLinePlacementCenterAlong"===t.labelPlacement){const e=t.symbol;e.xoffset=0,e.yoffset=0,e.angle=0,e.font.decoration="none"}return new ir(t.materialKey,t,t.symbol,e)}get _shapedBox(){return this._shapingInfo.bounds}setZoomLevel(t){this._zoomLevel=t}bindReferenceTemplate(t){let e=(0,rt.g)(this._xAlignD),i=(0,rt.tf)(this._yAlignD);if(this._refOffsetX=0,this._refOffsetY=0,null==t)return void(this._refSymbolAndPlacementOffset=(0,ot.Jz)(0,0,Qs(e),Qs(i)));if("circle"===t.boundsType&&(e||i)){const t=Math.sqrt(e*e+i*i);e/=t,i/=t}const s=Math.max(t.height,t.width),r=4*this._refPlacementPadding;this._refSymbolAndPlacementOffset=(0,ot.Jz)(r,s,Qs(e),Qs(i)),this._referenceSize=s,this._refPlacementDirX=e,this._refPlacementDirY=i,this._refOffsetX=t.xOffset,this._refOffsetY=t.yOffset}_write(t,e){if(null==this._shapingInfo)return;const i=this._shapingInfo,s=e.getDisplayId(),r="esriGeometryPolygon"===e.geometryType?e.readLegacyCentroid():e.readLegacyGeometry();if(r)switch(this._current={out:t,inId:s,inShaping:i,zoomLevel:this._zoomLevel},"esriGeometryPolyline"===e.geometryType&&"curved"===this._labelPosition&&(this._borderLineColor||this._backgroundColor)&&js.warnOnce("TextSymbol properties 'borderLineColor', 'borderLineSize', and 'backgroundColor' are not supported in curved labels"),e.geometryType){case"esriGeometryPolyline":this._placeLineLabels(r);break;case"esriGeometryPoint":case"esriGeometryPolygon":this._placePointLabels(r);break;default:((t,e="mapview-labeling")=>{js.error(new o.Z(e,t))})(`Geometry of type ${e.geometryType} is not supported`)}}_isVisible(t,e){const i=tr(this._current.zoomLevel);return tr(t)<=i&&i<=tr(e)}_placePointLabels(t){const{out:e,inId:i,inShaping:s}=this._current;this._writeGlyphs(e,i,t,s)}_placeLineLabels(t){const e=function(t,e){const i=e;for(let e=0;e<t.length;e++){let s=t[e];xt(s,i);const r=[];r.push(s[0]);for(let t=1;t<s.length;t++){const[e,i]=s[t-1],[n,o]=s[t],a=Math.round(n-e),h=Math.round(o-i);r.push([a,h])}t[e]=r,s=r}return t}(t.paths,this._current.inShaping.bounds.width),i=this._placeSubdivGlyphs.bind(this),s=(this._shapedBox.width+this._repeatLabelDistance)/2;for(const t of e)gt(t,s,i,this._repeatLabel)}_placeSubdivGlyphs(t,e,i,s){const r=$s(e),n=this._shapedBox.width/2,o=Math.sqrt(this._repeatLabelDistance)/2,a=Math.min(i,s-i),h=this._current.inShaping.isMultiline?25:Math.log2(a/(o+n/2)),l=0===e?h:Math.min(r,h),c=Math.max(this._minZoom,this._current.zoomLevel+1-l),u=this._current.zoomLevel-c,f=this._shapedBox.width/2*2**u;this._current.inShaping.isMultiline?0===e&&this._placeStraight(t,c):this._allowOverrun&&u<0?this._placeStraightAlong(t,this._minZoom):"parallel"===this._labelPosition?this._placeStraightAlong(t,c):"curved"===this._labelPosition&&this._placeCurved(t,c,f)}_placeStraight(t,e){const{out:i,inId:s,inShaping:r}=this._current,n=Math.ceil(t.angle*(180/Math.PI)%360),o=Math.ceil((t.angle*(180/Math.PI)+180)%360);this._outLineLabelAngle=er(n),this._writeGlyphs(i,s,t,r,e),this._outLineLabelAngle=er(o),this._writeGlyphs(i,s,t,r,e)}_placeCurved(t,e,i){const{out:s,inId:r}=this._current;s.metricStart(r,e,t.x,t.y,0,0,0,0);const n=t.clone(),o=t.angle*(180/Math.PI)%360,a=(t.angle*(180/Math.PI)+180)%360;this._outLineLabelAngle=er(o),this._placeFirst(n,e,1),this._placeBack(t,n,e,i,1),this._placeForward(t,n,e,i,1),this._outLineLabelAngle=er(a),this._placeFirst(n,e,0),this._placeBack(t,n,e,i,0),this._placeForward(t,n,e,i,0),s.metricEnd()}_placeStraightAlong(t,e){const{out:i,inId:s,inShaping:r}=this._current;i.metricStart(s,e,t.x,t.y,0,0,0,0);const n=t.clone(),o=t.angle*(180/Math.PI)%360,a=(t.angle*(180/Math.PI)+180)%360,h=r.glyphs.length>0&&(this._borderLineColor||this._backgroundColor);if(this._maxBackgroundZoom=25,this._minBackgroundZoom=Math.max(e,0),h){const e=at.Gq.load(this._materialKey);e.textureBinding=r.glyphs[0].textureBinding;const n=K(tt(),-t.angle),[h,l]=r.shapeBackground(n);this._outLineLabelAngle=er(o),i.recordStart(s,e.data,this.geometryType,!0),this._writeBackgroundGeometry(i,s,t,h,l),i.recordEnd(),this._outLineLabelAngle=er(a),i.recordStart(s,e.data,this.geometryType,!0),this._writeBackgroundGeometry(i,s,t,h,l),i.recordEnd()}this._outLineLabelAngle=er(o),this._placeFirst(n,e,1,!0),this._outLineLabelAngle=er(a),this._placeFirst(n,e,0,!0),i.metricEnd()}_placeBack(t,e,i,s,r){const n=t.clone();let o=t.backwardLength+0;for(;n.prev()&&!(o>=s);)this._placeOnSegment(n,e,o,i,-1,r),o+=n.length+0}_placeForward(t,e,i,s,r){const n=t.clone();let o=t.remainingLength+0;for(;n.next()&&!(o>=s);)this._placeOnSegment(n,e,o,i,1,r),o+=n.length+0}_placeFirst(t,e,i,s=!1){const r=t,n=this._current.inShaping,o=n.glyphs,a=this._current.zoomLevel,{out:h,inId:l}=this._current;for(const c of o){const o=c.x>n.bounds.x?i:1-i,u=o*t.remainingLength+(1-o)*t.backwardLength,f=Math.abs(c.x+c.width/2-n.bounds.x),_=Math.max(0,a+Math.log2(f/(u+0))),m=Math.max(e,s?0:_);if(c.maxZoom=25,c.angle=t.angle+(1-i)*Math.PI,c.minZoom=m,this._writeGlyph(h,l,r.x,r.y,c),i&&this._isVisible(c.minZoom,c.maxZoom)){const t=c.bounds;h.metricBoxWrite(t.center[0],t.center[1],t.width,t.height)}}}_placeOnSegment(t,e,i,s,r,n){const o=this._current.inShaping.glyphs,{out:a,inId:h}=this._current,l=this._current.inShaping,c=this._current.zoomLevel,u=t.dx/t.length,f=t.dy/t.length,_={x:t.x+i*-r*u,y:t.y+i*-r*f};for(const u of o){const o=u.x>l.bounds.x?n:1-n;if(!(o&&1===r||!o&&-1===r))continue;const f=Math.abs(u.x+u.width/2-l.bounds.x),m=Math.max(0,c+Math.log2(f/i)-.1),d=Math.max(s,c+Math.log2(f/(i+t.length+0)));if(0!==m&&(u.angle=t.angle+(1-n)*Math.PI,u.minZoom=d,u.maxZoom=m,this._writeGlyph(a,h,_.x,_.y,u),n&&this._isVisible(u.minZoom,u.maxZoom))){const i=u.bounds,s=t.x-e.x,r=t.y-e.y;a.metricBoxWrite(i.center[0]+s,i.center[1]+r,i.width,i.height)}}}_writeGlyphs(t,e,i,s,r=this._minZoom){if(i.x<0||i.x>=512||i.y<0||i.y>=512)return;if(s.glyphs.length>0&&(this._borderLineColor||this._backgroundColor)){const r=at.Gq.load(this._materialKey);r.textureBinding=s.glyphs[0].textureBinding,t.recordStart(e,r.data,this.geometryType,!0),this._writeBackgroundGeometry(t,e,i,s.bounds,s.background),t.recordEnd()}const n=i.x+this._refOffsetX,o=i.y-this._refOffsetY;for(const i of s.glyphs)i.minZoom=r,i.maxZoom=this._maxZoom,this._writeGlyph(t,e,n,o,i);const a=this._refPlacementDirX,h=this._refPlacementDirY,l=s.boundsT;t.metricStart(e,r,n,o,a,h,this._referenceSize,this._materialKey),t.metricBoxWrite(l.center[0],l.center[1],l.width,l.height),t.metricEnd()}_writeVertexCommon(t,e,i,s){const r=this._color,n=this._haloColor,o=(0,ot.Jz)(0,0,this._size,this._haloSize),a=Math.max(s.minZoom,this._minZoom),h=Math.min(s.maxZoom,this._maxZoom),l=(0,ot.Jz)(tr(a),tr(h),this._outLineLabelAngle,0);t.vertexWrite(i),t.vertexWrite(e),t.vertexWrite(r),t.vertexWrite(n),t.vertexWrite(o),t.vertexWrite(this._refSymbolAndPlacementOffset),t.vertexWrite(l)}_writeBackgroundVertex(t,e,i,s,r,n){const o=(0,ot.Jz)(0,0,this._size,this._haloSize),a=(0,ot.Jz)(0,0,0,0),h=(0,ot.Jz)(tr(this._minBackgroundZoom),tr(this._maxBackgroundZoom),this._outLineLabelAngle,1);t.vertexWrite(i),t.vertexWrite(e),t.vertexWrite(s),t.vertexWrite(a),t.vertexWrite(o),t.vertexWrite(this._refSymbolAndPlacementOffset),t.vertexWrite(h),t.vertexWrite(r),t.vertexWrite(n),t.vertexEnd()}}const sr=3.14159265359/180,rr=t=>class extends t{constructor(...t){super(...t),this.angle=0,this.xOffset=0,this.yOffset=0,this.width=0,this.height=0,this.boundsType="square",this._anchorX=0,this._anchorY=0,this._computedWidth=0,this._computedHeight=0,this._allowBorrowing=!0,this._vertexBoundsScaleX=1,this._vertexBoundsScaleY=1,this.geometryType=p.LW.MARKER}_write(t,e,i,s){const r=e.getDisplayId();t.recordStart(r,this._materialKey,this.geometryType,!0),this._writeGeometry(t,e,r,i,s),t.recordEnd()}_writeGeometry(t,e,i,s,r){if(null!=this._markerPlacement)return this._writePlacedMarkers(t,e,s,r);if(this._allowBorrowing=!0,!r&&"esriGeometryPoint"===e.geometryType){const s=e.getX(),r=e.getY();if(!t.hasAggregates&&t.hasPixelBufferEnabled&&(s<0||s>=513||r<0||r>=513))return;return this._writeVertices(t,i,this._getPos(s,r),s,r)}const n=r?r.asOptimized():"esriGeometryPolygon"===e.geometryType?e.readCentroid():e.readGeometryForDisplay();if(null!=n){if(n.isPoint){const[e,s]=n.coords;if(!t.hasAggregates&&t.hasPixelBufferEnabled&&(e<0||e>=512||s<0||s>=512))return;return this._writeVertices(t,i,this._getPos(e,s),e,s)}n.forEachVertex(((e,s)=>{const r=2*E.I_;e<-r||e>=r||s<-r||s>=r||this._writeVertices(t,i,this._getPos(e,s),e,s)}))}}_writePlacedMarkers(t,e,i,s){const r=s||St.fromFeatureSetReaderCIM(e);if(!r)return;const n=ui.getPlacement(r,-1,this._markerPlacement,(0,U.F2)(1),t.tileKey,i.geometryEngine);if(!n)return;this._allowBorrowing="esriGeometryPolygon"!==e.geometryType;const o=e.getDisplayId(),a=(0,fi.c)(),h=tt();let l=n.next();for(;null!=l;){const e=l.tx,i=-l.ty;e>=-128&&e<=640&&i>=-128&&i<=640&&(this._applyTransformation(h,a,-l.getAngle()/sr),this._writeVertices(t,o,this._getPos(e,i),e,i)),l=n.next()}}_writeVertices(t,e,i,s,r){const n=at.mE.load(this._materialKey);return n.symbologyType===p.mD.HEATMAP?this._writeHeatmapVertices(t,e,i):this._writeMarkerVertices(t,e,n,i,s,r)}_writeMarkerVertices(t,e,i,s,r,n){const o=i.vvRotation,a=t.vertexCount();let h=this._computedWidth*this._vertexBoundsScaleX,l=this._computedHeight*this._vertexBoundsScaleY;if(this.angle){const t=Math.max(h,l);h=t,l=t}if(o){const t=Math.max(this.xOffset,this.yOffset);h+=t,l+=t}this._allowBorrowing&&t.vertexBounds(r+this.xOffset,n-this.yOffset,h,l),t.vertexWrite(s),t.vertexWrite(this._offsetUpperLeft),t.vertexWrite(this._texUpperLeft),t.vertexWrite(this._bitestAndDistRatio),t.vertexWrite(e),t.vertexWrite(this._fillColor),t.vertexWrite(this._outlineColor),t.vertexWrite(this._sizeOutlineWidth),t.vertexWrite(this._minMaxZoom),t.vertexEnd(),t.vertexWrite(s),t.vertexWrite(this._offsetUpperRight),t.vertexWrite(this._texUpperRight),t.vertexWrite(this._bitestAndDistRatio),t.vertexWrite(e),t.vertexWrite(this._fillColor),t.vertexWrite(this._outlineColor),t.vertexWrite(this._sizeOutlineWidth),t.vertexWrite(this._minMaxZoom),t.vertexEnd(),t.vertexWrite(s),t.vertexWrite(this._offsetBottomLeft),t.vertexWrite(this._texBottomLeft),t.vertexWrite(this._bitestAndDistRatio),t.vertexWrite(e),t.vertexWrite(this._fillColor),t.vertexWrite(this._outlineColor),t.vertexWrite(this._sizeOutlineWidth),t.vertexWrite(this._minMaxZoom),t.vertexEnd(),t.vertexWrite(s),t.vertexWrite(this._offsetBottomRight),t.vertexWrite(this._texBottomRight),t.vertexWrite(this._bitestAndDistRatio),t.vertexWrite(e),t.vertexWrite(this._fillColor),t.vertexWrite(this._outlineColor),t.vertexWrite(this._sizeOutlineWidth),t.vertexWrite(this._minMaxZoom),t.vertexEnd(),this._writeIndices(t,a)}_writeHeatmapVertices(t,e,i){const s=t.vertexCount();t.vertexWrite(i),t.vertexWrite(this._offsetUpperLeft),t.vertexWrite(e),t.vertexEnd(),t.vertexWrite(i),t.vertexWrite(this._offsetUpperRight),t.vertexWrite(e),t.vertexEnd(),t.vertexWrite(i),t.vertexWrite(this._offsetBottomLeft),t.vertexWrite(e),t.vertexEnd(),t.vertexWrite(i),t.vertexWrite(this._offsetBottomRight),t.vertexWrite(e),t.vertexEnd(),this._writeIndices(t,s)}_writeIndices(t,e){t.indexWrite(e+0),t.indexWrite(e+1),t.indexWrite(e+2),t.indexWrite(e+1),t.indexWrite(e+3),t.indexWrite(e+2)}_applyTransformation(t,e,i=0){i?K(t,sr*i):Y(t),q(t,t,(0,fi.f)(this.xOffset,-this.yOffset)),this.angle&&Z(t,t,sr*this.angle);const s=this._computedWidth,r=this._computedHeight,n=-(.5+this._anchorX)*s,o=-(.5-this._anchorY)*r;(0,x.s)(e,n,o),(0,x.t)(e,e,t),this._offsetUpperLeft=(0,ot.UJ)(16*e[0],16*e[1]),(0,x.s)(e,n+s,o),(0,x.t)(e,e,t),this._offsetUpperRight=(0,ot.UJ)(16*e[0],16*e[1]),(0,x.s)(e,n,o+r),(0,x.t)(e,e,t),this._offsetBottomLeft=(0,ot.UJ)(16*e[0],16*e[1]),(0,x.s)(e,n+s,o+r),(0,x.t)(e,e,t),this._offsetBottomRight=(0,ot.UJ)(16*e[0],16*e[1])}_computeSize(t,e,i,s,r,n,o,a){const h=t*i,l=e*i;if(n.sdf&&!o){const i=a&&t>e?h:t,r=e,n=s+2;t=Math.min(i+n,h),e=Math.min(r+n,l)}else t=h,e=l;const c=E.X0/Math.max(h,l),u=.5*(h-t)*c,f=.5*(l-e)*c,_=n.rect.x+E.fL+u,m=n.rect.y+E.fL+f,d=_+n.width-2*u,p=m+n.height-2*f,y=Math.floor(_),g=Math.floor(m),x=Math.ceil(d),M=Math.ceil(p);t*=(x-y)/(d-_),e*=(M-g)/(p-m),this._texUpperLeft=(0,ot.UJ)(y,g),this._texUpperRight=(0,ot.UJ)(x,g),this._texBottomLeft=(0,ot.UJ)(y,M),this._texBottomRight=(0,ot.UJ)(x,M),this._anchorX*=h/t,this._anchorY*=l/e,t*=r,e*=r,this._computedWidth=t,this._computedHeight=e}_getPos(t,e){return(0,ot.UJ)(Math.round(8*t),Math.round(8*e))}};class nr extends(rr(qs)){constructor(t,e,i,s,r,n,o,a,h,l,c,u,f,_,m,d,y,g,x,M,b,P,v,S){super(),this.angle=s,this.height=o,this.width=n,this.xOffset=e*x,this.yOffset=i*x,this._markerPlacement=M||void 0,this._effects=b||void 0,this._anchorX=d,this._anchorY=y,this._minMaxZoom=(0,ot.UJ)(Math.round(P*E.MI),Math.round(v*E.MI));const w=(_===st.v2.MAP?E.Tz:E.CQ)|(c?E.Uh:0)|(f?E.oK:0)|(u?E.e0:0),C=m&&m.sdf,I=at.mE.load(t);I.sdf=C,I.pattern=!0,I.textureBinding=m.textureBinding,this._materialKey=I.data,this._fillColor=r,this._outlineColor=h,this._sizeOutlineWidth=(0,ot.Jz)(Math.round(Math.min(Math.sqrt(128*n),255)),Math.round(Math.min(Math.sqrt(128*o),255)),Math.round(Math.min(Math.sqrt(128*l),255)),Math.round(Math.min(Math.sqrt(128*a),255))),I.symbologyType===p.mD.PIE_CHART?(n*=g*x,o*=g*x,this._computedWidth=n,this._computedHeight=o,this._texUpperLeft=(0,ot.UJ)(0,1),this._texUpperRight=(0,ot.UJ)(1,1),this._texBottomLeft=(0,ot.UJ)(0,0),this._texBottomRight=(0,ot.UJ)(1,0)):this._computeSize(n,o,g,l,x,m,I.hasSizeVV(),S);const L=Math.round(64*g);this._bitestAndDistRatio=(0,ot.UJ)(w,L);const k=(0,fi.c)(),z=tt();this._applyTransformation(z,k)}static fromCIMMarker(t,e,i){const s=e&&e.width||1,r=e&&e.height||1,n=t.size,o=s/r*t.scaleX,a=t.scaleSymbolsProportionally&&t.frameHeight?n/t.frameHeight:1,h=(0,nt.t2)(t.color),l=(0,nt.t2)(t.outlineColor),c=(0,U.F2)(n),u=c*o,f=(0,U.F2)(t.offsetX||0),_=(0,U.F2)(t.offsetY||0),m=(0,U.F2)(t.outlineWidth||0)*a,d=t.alignment||st.v2.SCREEN,p=(0,U.F2)(t.referenceSize),[y,g]=mt(t.scaleInfo,i);let x=t.rotation||0;t.rotateClockwise||(x=-x);let M=0,b=0;const P=t.anchorPoint;P&&(t.isAbsoluteAnchorPoint?n&&(M=P.x/(n*o),b=P.y/n):(M=P.x,b=P.y));const v=new nr(t.materialKey,f,_,x,h,u,c,p,l,m,t.colorLocked,t.scaleSymbolsProportionally,!1,d,e,M,b,t.sizeRatio,t.scaleFactor??1,t.markerPlacement,t.effects,y,g,!0);return v._vertexBoundsScaleX=t.maxVVSize?t.maxVVSize/u:1,v._vertexBoundsScaleY=t.maxVVSize?t.maxVVSize/c:1,v}static fromPictureMarker(t,e){const i=Math.round((0,U.F2)(t.width)),s=Math.round((0,U.F2)(t.height)),r=E.ru,n=Math.round((0,U.F2)(t.xoffset||0)),o=Math.round((0,U.F2)(t.yoffset||0)),a=new nr(t.materialKey,n,o,t.angle,r,i,s,s,0,0,!1,!1,!1,st.v2.SCREEN,e,0,0,1,1,null,null,0,ht,!1);return a._vertexBoundsScaleX=t.maxVVSize?t.maxVVSize/t.width:1,a._vertexBoundsScaleY=t.maxVVSize?t.maxVVSize/t.height:1,a}static fromSimpleMarker(t,e){const i=t.style,s=(0,nt.aH)(t.color),r=Math.round((0,U.F2)(t.size));let n=r;"esriSMSTriangle"===i&&(n*=e.height/e.width);const o=Math.round((0,U.F2)(t.xoffset||0)),a=Math.round((0,U.F2)(t.yoffset||0)),h=t.outline,l=0|(h?.color&&(0,nt.aH)(h.color)),c=0|(h?.width&&Math.round((0,U.F2)(h.width))),u=new nr(t.materialKey,o,a,t.angle??0,s,r,n,n,l,c,!1,!1,"esriSMSCross"===i||"esriSMSX"===i,st.v2.SCREEN,e,0,0,2,1,null,null,0,ht,!1);return u.boundsType="esriSMSCircle"===i?"circle":"square",u._vertexBoundsScaleX=t.maxVVSize?t.maxVVSize/t.size:1,u._vertexBoundsScaleY=t.maxVVSize?t.maxVVSize/t.size:1,u}static fromLineSymbolMarker(t,e){const i=(0,nt.aH)(t.color),s=Math.round((0,U.F2)(6*t.lineWidth)),r=s,n="cross"===t.style||"x"===t.style;let o;switch(t.placement){case"begin-end":o=st.Tx.Both;break;case"begin":o=st.Tx.JustBegin;break;case"end":o=st.Tx.JustEnd;break;default:o=st.Tx.None}const a={type:"CIMMarkerPlacementAtExtremities",angleToLine:!0,offset:0,extremityPlacement:o,offsetAlongLine:0},h=new nr(t.materialKey,0,0,0,i,s,r,r/6,i,n?Math.round((0,U.F2)(t.lineWidth)):0,!1,!1,n,st.v2.MAP,e,0,0,2,1,a,null,0,ht,!1);return h.boundsType="circle"===t.style?"circle":"square",h}}var or=i(58333);function ar(t){return function(t,e){return(t%=e)>=0?t:t+e}(.7111111111111111*t,256)}function hr(t,e,i,s,r,n,o){Or=0;const a=(s-i)*n,h=r&&r.length,l=h?(r[0]-i)*n:a;let c,u,f,_,m,d=lr(e,i,0,0,l,n,!0);if(d&&d.next!==d.prev){if(h&&(d=function(t,e,i,s,r,n){const o=new Array;for(let r=0,a=s.length;r<a;r++){const h=lr(t,e,0,s[r]*n,r<a-1?s[r+1]*n:i*n,n,!1);h===h.next&&(h.steiner=!0),o.push(pr(h))}o.sort(wr);for(const t of o)r=yr(t,r);return r}(e,i,s,r,d,n)),a>80*n){c=f=e[0+i*n],u=_=e[1+i*n];for(let t=n;t<l;t+=n){const s=e[t+i*n],r=e[t+1+i*n];c=Math.min(c,s),u=Math.min(u,r),f=Math.max(f,s),_=Math.max(_,r)}m=Math.max(f-c,_-u),m=0!==m?1/m:0}ur(d,t,n,c,u,m,o,0)}}function lr(t,e,i,s,r,n,o){let a;if(o===function(t,e,i,s,r,n){let o=0;for(let i=s,a=r-n;i<r;i+=n)o+=(t[a+e*n]-t[i+e*n])*(t[i+1+e*n]+t[a+1+e*n]),a=i;return o}(t,e,0,s,r,n)>0)for(let i=s;i<r;i+=n)a=mr(i+e*n,t[i+e*n],t[i+1+e*n],a);else for(let i=r-n;i>=s;i-=n)a=mr(i+e*n,t[i+e*n],t[i+1+e*n],a);return a&&Sr(a,a.next)&&(dr(a),a=a.next),a}function cr(t,e=t){if(!t)return t;let i,s=t;do{if(i=!1,s.steiner||!Sr(s,s.next)&&0!==xr(s.prev,s,s.next))s=s.next;else{if(dr(s),s=e=s.prev,s===s.next)break;i=!0}}while(i||s!==e);return e}function ur(t,e,i,s,r,n,o,a){if(!t)return;!a&&n&&(t=gr(t,s,r,n));let h=t;for(;t.prev!==t.next;){const l=t.prev,c=t.next;if(n?_r(t,s,r,n):fr(t))e.push(l.index/i+o),e.push(t.index/i+o),e.push(c.index/i+o),dr(t),t=c.next,h=c.next;else if((t=c)===h){a?1===a?ur(t=Cr(t,e,i,o),e,i,s,r,n,o,2):2===a&&Ir(t,e,i,s,r,n,o):ur(cr(t),e,i,s,r,n,o,1);break}}}function fr(t){const e=t.prev,i=t,s=t.next;if(xr(e,i,s)>=0)return!1;let r=t.next.next;const n=r;let o=0;for(;r!==t.prev&&(0===o||r!==n);){if(o++,br(e.x,e.y,i.x,i.y,s.x,s.y,r.x,r.y)&&xr(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function _r(t,e,i,s){const r=t.prev,n=t,o=t.next;if(xr(r,n,o)>=0)return!1;const a=r.x<n.x?r.x<o.x?r.x:o.x:n.x<o.x?n.x:o.x,h=r.y<n.y?r.y<o.y?r.y:o.y:n.y<o.y?n.y:o.y,l=r.x>n.x?r.x>o.x?r.x:o.x:n.x>o.x?n.x:o.x,c=r.y>n.y?r.y>o.y?r.y:o.y:n.y>o.y?n.y:o.y,u=vr(a,h,e,i,s),f=vr(l,c,e,i,s);let _=t.prevZ,m=t.nextZ;for(;_&&_.z>=u&&m&&m.z<=f;){if(_!==t.prev&&_!==t.next&&br(r.x,r.y,n.x,n.y,o.x,o.y,_.x,_.y)&&xr(_.prev,_,_.next)>=0)return!1;if(_=_.prevZ,m!==t.prev&&m!==t.next&&br(r.x,r.y,n.x,n.y,o.x,o.y,m.x,m.y)&&xr(m.prev,m,m.next)>=0)return!1;m=m.nextZ}for(;_&&_.z>=u;){if(_!==t.prev&&_!==t.next&&br(r.x,r.y,n.x,n.y,o.x,o.y,_.x,_.y)&&xr(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;m&&m.z<=f;){if(m!==t.prev&&m!==t.next&&br(r.x,r.y,n.x,n.y,o.x,o.y,m.x,m.y)&&xr(m.prev,m,m.next)>=0)return!1;m=m.nextZ}return!0}function mr(t,e,i,s){const r=zr.create(t,e,i);return s?(r.next=s.next,r.prev=s,s.next.prev=r,s.next=r):(r.prev=r,r.next=r),r}function dr(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function pr(t){let e=t,i=t;do{(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e),e=e.next}while(e!==t);return i}function yr(t,e){const i=function(t,e){let i=e;const s=t.x,r=t.y;let n,o=-1/0;do{if(r<=i.y&&r>=i.next.y&&i.next.y!==i.y){const t=i.x+(r-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(t<=s&&t>o){if(o=t,t===s){if(r===i.y)return i;if(r===i.next.y)return i.next}n=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!n)return null;if(s===o)return n.prev;const a=n,h=n.x,l=n.y;let c,u=1/0;for(i=n.next;i!==a;)s>=i.x&&i.x>=h&&s!==i.x&&br(r<l?s:o,r,h,l,r<l?o:s,r,i.x,i.y)&&(c=Math.abs(r-i.y)/(s-i.x),(c<u||c===u&&i.x>n.x)&&Pr(i,t)&&(n=i,u=c)),i=i.next;return n}(t,e);if(!i)return e;const s=kr(i,t);return cr(s,s.next),cr(i,i.next)}function gr(t,e,i,s){let r;for(;r!==t;r=r.next){if(r=r||t,null===r.z&&(r.z=vr(r.x,r.y,e,i,s)),r.prev.next!==r||r.next.prev!==r)return r.prev.next=r,r.next.prev=r,gr(t,e,i,s);r.prevZ=r.prev,r.nextZ=r.next}return t.prevZ.nextZ=null,t.prevZ=null,function(t){let e,i=1;for(;;){let s,r=t;t=null,e=null;let n=0;for(;r;){n++,s=r;let o=0;for(;o<i&&s;o++)s=s.nextZ;let a=i;for(;o>0||a>0&&s;){let i;0===o?(i=s,s=s.nextZ,a--):0!==a&&s?r.z<=s.z?(i=r,r=r.nextZ,o--):(i=s,s=s.nextZ,a--):(i=r,r=r.nextZ,o--),e?e.nextZ=i:t=i,i.prevZ=e,e=i}r=s}if(e.nextZ=null,i*=2,n<2)return t}}(t)}function xr(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function Mr(t,e,i,s){return!!(Sr(t,e)&&Sr(i,s)||Sr(t,s)&&Sr(i,e))||xr(t,e,i)>0!=xr(t,e,s)>0&&xr(i,s,t)>0!=xr(i,s,e)>0}function br(t,e,i,s,r,n,o,a){return(r-o)*(e-a)-(t-o)*(n-a)>=0&&(t-o)*(s-a)-(i-o)*(e-a)>=0&&(i-o)*(n-a)-(r-o)*(s-a)>=0}function Pr(t,e){return xr(t.prev,t,t.next)<0?xr(t,e,t.next)>=0&&xr(t,t.prev,e)>=0:xr(t,e,t.prev)<0||xr(t,t.next,e)<0}function vr(t,e,i,s,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-s)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Sr(t,e){return t.x===e.x&&t.y===e.y}function wr(t,e){return t.x-e.x}function Cr(t,e,i,s){let r=t;do{const n=r.prev,o=r.next.next;!Sr(n,o)&&Mr(n,r,r.next,o)&&Pr(n,o)&&Pr(o,n)&&(e.push(n.index/i+s),e.push(r.index/i+s),e.push(o.index/i+s),dr(r),dr(r.next),r=t=o),r=r.next}while(r!==t);return r}function Ir(t,e,i,s,r,n,o){let a=t;do{let t=a.next.next;for(;t!==a.prev;){if(a.index!==t.index&&Lr(a,t)){let h=kr(a,t);return a=cr(a,a.next),h=cr(h,h.next),ur(a,e,i,s,r,n,o,0),void ur(h,e,i,s,r,n,o,0)}t=t.next}a=a.next}while(a!==t)}function Lr(t,e){return t.next.index!==e.index&&t.prev.index!==e.index&&!function(t,e){let i=t;do{if(i.index!==t.index&&i.next.index!==t.index&&i.index!==e.index&&i.next.index!==e.index&&Mr(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&Pr(t,e)&&Pr(e,t)&&function(t,e){let i=t,s=!1;const r=(t.x+e.x)/2,n=(t.y+e.y)/2;do{i.y>n!=i.next.y>n&&i.next.y!==i.y&&r<(i.next.x-i.x)*(n-i.y)/(i.next.y-i.y)+i.x&&(s=!s),i=i.next}while(i!==t);return s}(t,e)}function kr(t,e){const i=zr.create(t.index,t.x,t.y),s=zr.create(e.index,e.x,e.y),r=t.next,n=e.prev;return t.next=e,e.prev=t,i.next=r,r.prev=i,s.next=i,i.prev=s,n.next=s,s.prev=n,s}Math.PI,Math.LN2,i(95401);class zr{constructor(){this.index=0,this.x=0,this.y=0,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}static create(t,e,i){const s=Or<Tr.length?Tr[Or++]:new zr;return s.index=t,s.x=e,s.y=i,s.prev=null,s.next=null,s.z=null,s.prevZ=null,s.nextZ=null,s.steiner=!1,s}}const Tr=new Array;let Or=0;for(let t=0;t<8096;t++)Tr.push(new zr);const Er=new Bt.bN(0,0,0,1,0),Fr=new Bt.bN(0,0,0,1,0);function Ar(t,e,i){let s=0;for(let r=1;r<i;r++){const i=t[2*(e+r-1)],n=t[2*(e+r-1)+1];s+=(t[2*(e+r)]-i)*(t[2*(e+r)+1]+n)}return s}function Nr(t,e,i,s,r){let n=0;for(let o=i;o<s;o+=3){const i=2*(t[o]-r),s=2*(t[o+1]-r),a=2*(t[o+2]-r);n+=Math.abs((e[i]-e[a])*(e[s+1]-e[i+1])-(e[i]-e[s])*(e[a+1]-e[i+1]))}return n}Er.setExtent(E.I_),Fr.setExtent(E.I_);var Rr=i(67327);const Vr=16,Wr=t=>class extends t{constructor(...t){super(...t),this.tessellationProperties={},this._tessellationOptions={halfWidth:0,pixelCoordRatio:1,offset:0},this.geometryType=p.LW.LINE}writeGeometry(t,e,i,s){this._writeGeometry(t,e,i,s)}_initializeTessellator(t){const e=at.a.load(this._materialKey),i=at.dk.load(this._materialKey),s=this._tessellationOptions,r=e.vvSizeFieldStops||e.vvSizeMinMaxValue||e.vvSizeScaleStops||e.vvSizeUnitValue,n=this.tessellationProperties._halfWidth<E.tQ&&!t&&!r;this.tessellationProperties.minMaxZoom=this._minMaxZoom,s.wrapDistance=65535,s.textured=this._isDashed||this._hasPattern,s.offset=this.tessellationProperties.offset,s.halfWidth=this.tessellationProperties._halfWidth;const o=n?0:1,a=(0,at.CA)(i)?Dr:Gr;this._lineTessellator=new Rr.z(a(this.tessellationProperties,o,o),Br(this.tessellationProperties),n)}_write(t,e,i,s){const r="esriGeometryPoint"===e.geometryType;t.recordStart(e.getDisplayId(),this._materialKey,this.geometryType,r),this._writeGeometry(t,e,s,r),t.recordEnd()}_writeGeometry(t,e,i,s){const r=i||St.fromFeatureSetReaderCIM(e);if(!r)return;const n=this._getLines(r,s);null!=n&&this._writeVertices(t,e,n)}_getLines(t,e){return function(t,e){Fr.setPixelMargin(e);const i=Fr,s=-e,r=E.I_+e;let n=[],o=!1;if(!t.nextPath())return null;let a=!0;for(;a;){t.seekPathStart();const e=[];if(!t.numPoints)return null;i.reset(Bt.Vl.LineString),t.nextPoint();let h=t.x,l=t.y;if(o)i.moveTo(h,l);else{if(h<s||h>r||l<s||l>r){o=!0;continue}e.push({x:h,y:l})}let c=!1;for(;t.nextPoint();)if(h=t.x,l=t.y,o)i.lineTo(h,l);else{if(h<s||h>r||l<s||l>r){c=!0;break}e.push({x:h,y:l})}if(c)o=!0;else{if(o){const t=i.resultWithStarts();if(t)for(const e of t)n.push(e)}else n.push({line:e,start:0});a=t.nextPath(),o=!1}}return n=n.filter((t=>t.line.length>1)),0===n.length?null:n}(t,e?256:16)}_writeVertices(t,e,i){const s=e.getDisplayId(),r=t.vertexCount(),n=this.tessellationProperties,o=this._tessellationOptions;n.out=t,n.id=s,n.indexCount=0,n.vertexCount=0,n.offset=r,o.capType=this._capType,o.joinType=this._joinType;const a=at.dk.load(this._materialKey);this.tessellationProperties.key=(0,at.CA)(a)?a:at.a.load(this._materialKey);for(const{line:t,start:e}of i)o.initialDistance=e%65535,this._lineTessellator.tessellate(t,o)}},Gr=(t,e,i)=>(s,r,n,o,a,h,l,c,u,f,_)=>{const m=(0,ot.UJ)(_,Math.ceil(Vr*t._halfWidth)),d=(0,ot.Jz)(Math.round(Vr*l),Math.round(Vr*c),Math.round(Vr*u),Math.round(Vr*f)),p=(0,ot.Jz)(Vr*a,Vr*h,0,t._bitset),y=t.out;return y.vertexBounds(s,r,e,i),y.vertexWrite((0,ot.UJ)(8*s,8*r)),y.vertexWrite(t.id),y.vertexWrite(t._fillColor),y.vertexWrite(d),y.vertexWrite(m),y.vertexWrite(t._tl),y.vertexWrite(t._br),y.vertexWrite(p),y.vertexWrite((0,ot.UJ)(Math.ceil(Vr*t._halfReferenceWidth),0)),y.vertexWrite(t.minMaxZoom),y.vertexEnd(),t.offset+t.vertexCount++},Dr=(t,e,i)=>(s,r,n,o,a,h,l,c,u,f,_)=>{const m=(0,ot.UJ)(Vr*t._halfWidth,Vr*t._halfReferenceWidth),d=(0,ot.Jz)(Vr*l+128,Vr*c+128,Vr*u+128,Vr*f+128),p=t.out,y=t._bitset<<24|t.id;p.vertexBounds(s,r,e,i),p.vertexWrite((0,ot.UJ)(8*s,8*r)),p.vertexWrite(y),p.vertexWrite(t._fillColor);const g=(0,at.Xp)(t.key);return g||(p.vertexWrite(0),p.vertexWrite(0)),p.vertexWrite(0),p.vertexWrite(m),p.vertexWrite(d),g||p.vertexWrite(t.minMaxZoom),p.vertexEnd(),t.offset+t.vertexCount++},Br=t=>(e,i,s)=>{const r=t.out;r.indexWrite(e),r.indexWrite(i),r.indexWrite(s),t.indexCount+=3};class Xr extends(Wr(qs)){constructor(t,e,i,s,r,n,o,a,h,l,c,u,f,_,m,d,p,y,g,x){super();const M=at.a.load(t);e&&(M.sdf=e.sdf,M.pattern=!0,M.textureBinding=e.textureBinding),this._capType=s,this._joinType=r,this._miterLimitCosine=_t(n),this.tessellationProperties._fillColor=o,this.tessellationProperties._tl=a,this.tessellationProperties._br=h,this._hasPattern=l,this._isDashed=c,this._zOrder=p,this._effects=y||null,this._minMaxZoom=(0,ot.UJ)(Math.round(g*E.MI),Math.round(x*E.MI)),this._materialKey=M.data;const b=(f?E.Uh:0)|(_?E.SD:0)|(u?E._6:0)|(m?E.Iv:0);this.tessellationProperties._bitset=b,this.tessellationProperties._halfWidth=.5*i,this.tessellationProperties._halfReferenceWidth=.5*d,this.tessellationProperties.offset=0,this._initializeTessellator(!1)}static fromCIMLine(t,e,i){const s=t.color,r=t.scaleFactor||1,n=!!t.dashTemplate;let o=t.cap;n&&o===st.RL.ROUND&&(o=st.RL.SQUARE);const a=t.join,h=(0,U.F2)(t.width)*r,l=(0,U.F2)(t.referenceWidth),c=(0,U.F2)(t.miterLimit),u=s&&(0,nt.t2)(s)||0,[f,_]=mt(t.scaleInfo,i);if(!e)return new Xr(t.materialKey,e,h,o,a,c,u,0,0,!1,n,t.scaleDash??!1,t.colorLocked??!1,!1,t.sampleAlphaOnly,l,t.zOrder,t.effects,f,_);const{rect:m,width:d,height:p}=e,y=m.x+E.fL,g=m.y+E.fL,x=y+d,M=g+p,b=(0,ot.UJ)(y,g),P=(0,ot.UJ)(x,M);return new Xr(t.materialKey,e,h,o,a,c,u,b,P,!0,n,t.scaleDash??!1,t.colorLocked??!1,!1,t.sampleAlphaOnly,l,t.zOrder,t.effects,f,_)}static fromFillOutline(t){const e=at.dk.load(t.materialKey);return(0,at.CA)(e)&&t.outline&&"esriSLSSolid"===t.outline?.style?Xr.fromSimpleLine({hash:"",materialKey:t.materialKey,...t.outline},null,!0):null}static fromSimpleLine(t,e,i=!1){const{color:s}=t,r="esriSLSSolid"!==t.style&&"esriSLSNull"!==t.style,n=(0,F.ws)(t.cap||"round"),o=(0,F.xV)(t.join||"round");let a=s&&"esriSLSNull"!==t.style&&(0,nt.aH)(s)||0;"esriSLSNull"===t.style&&(a=0);const h=(0,U.F2)(t.width),l=t.miterLimit;if(!e)return new Xr(t.materialKey,e,h,n,o,l,a,0,0,!1,r,!0,!1,i,!1,h,0,null,0,ht);const{rect:c,width:u,height:f}=e,_=c.x+E.fL,m=c.y+E.fL,d=_+u,p=m+f,y=(0,ot.UJ)(_,m),g=(0,ot.UJ)(d,p);return new Xr(t.materialKey,e,h,n,o,l,a,y,g,!0,r,!0,!1,i,!1,h,0,null,0,ht)}static fromPictureLineSymbol(t,e,i,s){return h.Z.getLogger("esri.views.2d.engine.webgl.WGLLineTemplate").error("PictureLineSymbol support does not exist!"),null}}const Ur=t=>class extends t{constructor(...t){super(...t),this.forceLibtess=!1,this._bitset=0,this._lineTemplate=null,this.geometryType=p.LW.FILL}_maybeAddLineTemplate(t){this._lineTemplate=Xr.fromFillOutline(t)}_write(t,e,i,s){const r="esriGeometryPoint"===e.geometryType,n=at.dk.load(this._materialKey);t.recordStart(e.getDisplayId(),this._materialKey,this.geometryType,r),this._writeGeometry(t,e,n,s,r),(0,at.CA)(n)&&null!=this._lineTemplate&&this._lineTemplate.writeGeometry(t,e,s,r),t.recordEnd()}_writeGeometry(t,e,i,s,r){const n=this._getGeometry(e,s,r);if(null==n)return;const o=[];if(!(n.maxLength>100)&&!this.forceLibtess&&function(t,e){const{coords:i,lengths:s,hasIndeterminateRingOrder:r}=e,n=t;if(r)return!1;let o=0;for(let t=0;t<s.length;){let e=t,r=s[t],a=Ar(i,o,r);const h=[];for(;++e<s.length;){const t=s[e],n=Ar(i,o+r,t);if(!(n>0))break;a+=n,h.push(o+r),r+=t}const l=n.length;hr(n,i,o,o+r,h,2,0);const c=Nr(n,i,l,n.length,0),u=Math.abs(a);if(Math.abs((c-u)/Math.max(1e-7,u))>1e-5)return n.length=0,!1;t=e,o+=r}return!0}(o,n))return void(o.length&&this._writeVertices(t,e,n.coords,n.lengths,i,o));const a=function(t){const{coords:e,lengths:i}=t,{buffer:s}=(0,B.b)(e,i);return s}(n);this._writeVertices(t,e,a,[a.length/2],i)}_writeVertex(t,e,i,s,r,n){const o=(0,ot.UJ)(1*s,1*r);if(t.vertexBounds(s,r,0,0),t.vertexWrite(o),t.vertexWrite(e),i.symbologyType===p.mD.DOT_DENSITY)t.vertexWriteF32(1/Math.abs(n.readGeometryArea()));else{t.vertexWrite(this.fillColor);const e=(0,at.Xp)(i);e||(t.vertexWrite(this.tl),t.vertexWrite(this.br)),t.vertexWrite(this.aux21),t.vertexWrite(this.aux22),t.vertexWrite(this.aux3),e||t.vertexWrite(this._minMaxZoom)}}_writeVertices(t,e,i,s,r,n){const o=e.getDisplayId(),a=this._bitset<<24|o,h=s.reduce(((t,e)=>t+e)),l=(0,F.$_)(r.geometryType,r.symbologyType).geometry/4,c=t.vertexCount();t.vertexEnsureSize(l*h);let u=0;if(n)for(const s of n){const n=i[2*s],o=i[2*s+1];this._writeVertex(t,a,r,n,o,e),u++}else for(let s=0;s<i.length;s+=2){const n=Math.round(i[s]),o=Math.round(i[s+1]);this._writeVertex(t,a,r,n,o,e),u++}t.indexEnsureSize(u);for(let e=0;e<u;e++)t.indexWrite(e+c)}_getGeometry(t,e,i){const s=e?.asOptimized()||t.readGeometryForDisplay();return s?function(t,e){if(null==t)return null;if(!function(t,e,i){let s=0;for(let e=0;e<t.lengths.length;e++){const r=t.lengths[e];for(let e=0;e<r;e++){const r=t.coords[2*(e+s)],n=t.coords[2*(e+s)+1];if(r<-128||r>i||n<-128||n>i)return!0}s+=r}return!1}(t,0,E.I_+128))return t;Er.setPixelMargin(e),Er.reset(Bt.Vl.Polygon);let i=0;for(let e=0;e<t.lengths.length;e++){const s=t.lengths[e];let r=t.coords[2*(0+i)],n=t.coords[2*(0+i)+1];Er.moveTo(r,n);for(let e=1;e<s;e++)r=t.coords[2*(e+i)],n=t.coords[2*(e+i)+1],Er.lineTo(r,n);Er.close(),i+=s}const s=Er.result(!1);if(!s)return null;const r=[],n=[];for(const t of s){let e=0;for(const i of t)n.push(i.x),n.push(i.y),e++;r.push(e)}return new vt.Z(r,n)}(s,i?256:8):null}};var Hr=i(19153);const Yr=new Set(["StartTimeOffset","Duration","RepeatDelay"]);function Jr(t,e){return Yr.has(e)?(i=t,.05*Math.max(Math.round(i/.05),1)):t;var i}const Zr=[1/256,1/65536,1/16777216,1/4294967296];function qr(t){let e=1/0,i=-1/0,s=1/0,r=-1/0;for(const n of t)for(const t of n)t[0]<e&&(e=t[0]),t[0]>i&&(i=t[0]),t[1]<s&&(s=t[1]),t[1]>r&&(r=t[1]);return[e,s,i,r]}function Kr(t){return t?t.rings?qr(t.rings):t.paths?qr(t.paths):(0,Pt.YX)(t)?[t.xmin,t.ymin,t.xmax,t.ymax]:null:null}function jr(t,e,i,s,r){const[n,o,a,h]=t;if(a<n||h<o)return[0,0,0];const l=a-n,c=h-o,u=E.fL,f=Math.floor(.5*(64-u)),_=(128-2*(f+u))/Math.max(l,c),m=Math.round(l*_)+2*f,d=Math.round(c*_)+2*f;let p=1;e&&(p=d/_/(e.ymax-e.ymin));let y=0,g=0,x=1;s&&(r?e&&i&&e.ymax-e.ymin>0&&(x=(e.xmax-e.xmin)/(e.ymax-e.ymin),y=s.x/(i*x),g=s.y/i):(y=s.x,g=s.y)),e&&(y=.5*(e.xmax+e.xmin)+y*(e.xmax-e.xmin),g=.5*(e.ymax+e.ymin)+g*(e.ymax-e.ymin)),y-=n,g-=o,y*=_,g*=_,y+=f,g+=f;let M=y/m-.5,b=g/d-.5;return r&&i&&(M*=i*x,b*=i),[p,M,b]}!function(t,e=0){let i=0;for(let s=0;s<4;s++)i+=t[e+s]*Zr[s]}(new Uint8ClampedArray([255,255,255,255]));const $r=53290320,Qr=10,tn=h.Z.getLogger("esri.symbols.cim.cimAnalyzer");function en(t){switch(t){case"Butt":return st.RL.BUTT;case"Square":return st.RL.SQUARE;default:return st.RL.ROUND}}function sn(t){switch(t){case"Bevel":return st.AH.BEVEL;case"Miter":return st.AH.MITER;default:return st.AH.ROUND}}function rn(t){const e=t.markerPlacement;return e&&e.angleToLine?st.v2.MAP:st.v2.SCREEN}class nn{constructor(t,e){this._cimLayers=[],this._poMap={},this._primitiveOverrides=[],this._resourceManager=t,this._info=e}async analyzeSymbolReference(t,e,i){if(this._cimLayers=i??[],!t)return this._cimLayers;if(t.primitiveOverrides){this._primitiveOverrides=t.primitiveOverrides,this._poMap={};const e=[],i=this._info;for(const t of this._primitiveOverrides){const s=t.valueExpressionInfo;if(s&&i){const r=s.expression,n=(0,Ni.Yi)(r,i.spatialReference,i.fields).then((e=>{null!=e&&this._setPoMap(t.primitiveName,t.propertyName,e)}));e.push(n)}else null!=t.value&&this._setPoMap(t.primitiveName,t.propertyName,t.value);e.length>0&&await Promise.all(e)}}const s=t.symbol,r=[];return Es.fetchResources(s,this._resourceManager,r),r.length>0&&await Promise.all(r),this._analyzeSymbol(s,e),this._cimLayers}_analyzeSymbol(t,e){switch(t?.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":this._analyzeMultiLayerSymbol(t,e,1,0,0,0)}}_analyzeMultiLayerSymbol(t,e,i,s,r,n){const o=t?.symbolLayers;if(!o)return;const a=t.effects;let h=st.v2.SCREEN;const l=Es.getSize(t)??0;"CIMPointSymbol"===t.type&&"Map"===t.angleAlignment&&(h=st.v2.MAP);const c="CIMPolygonSymbol"===t.type;let u=o.length;for(;u--;){const f=o[u];if(!f||!1===f.enable)continue;let _;a&&a.length&&(_=[...a]);const m=f.effects;m&&m.length&&(a?_.push(...m):_=[...m]);const d=[];let p;Fs.findEffectOverrides(_,this._primitiveOverrides,d),p=d.length>0?this._createEffectsOverrideFunction(_,d):_;const y=[];switch(Fs.findApplicableOverrides(f,this._primitiveOverrides,y),f.type){case"CIMSolidFill":this._analyzeSolidFill(f,p);break;case"CIMPictureFill":this._analyzePictureFill(f,p);break;case"CIMHatchFill":this._analyzeHatchFill(f,p);break;case"CIMGradientFill":this._analyzeGradientFill(f,p);break;case"CIMSolidStroke":this._analyzeSolidStroke(f,p,c,l);break;case"CIMPictureStroke":this._analyzePictureStroke(f,p,c,l);break;case"CIMGradientStroke":this._analyzeGradientStroke(f,p,c,l);break;case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":{"CIMLineSymbol"===t.type&&(h=rn(f));const o=[],a=f.primitiveName;a&&o.push(a),this._analyzeMarker(f,p,null,o,h,l,1,e,i,s,r,n);break}default:tn.error("Cannot analyze CIM layer",f.type)}}}_analyzeSolidFill(t,e){const i=t.primitiveName,s=ji(t.color),[r,n]=this._analyzePrimitiveOverrides(i,e,null,null),o=(0,Hr.hP)(JSON.stringify(t)+n).toString();this._cimLayers.push({type:"fill",templateHash:o,materialHash:r?()=>o:o,cim:t,materialOverrides:null,colorLocked:!!t.colorLocked,color:this._createOverrideFunction(i,"Color",s,an),height:0,angle:0,offsetX:0,offsetY:0,scaleX:1,effects:e,applyRandomOffset:!1,sampleAlphaOnly:!0})}_analyzePictureFill(t,e){const i=t.primitiveName,s=ts(t),[r,n]=this._analyzePrimitiveOverrides(i,e,null,null),o=(0,Hr.hP)(JSON.stringify(t)+n).toString(),a=(0,Hr.hP)(`${t.url}${JSON.stringify(t.colorSubstitutions)}`).toString(),h=Qi(t.height,10);let l=Qi(t.scaleX,1);if("width"in t&&"number"==typeof t.width){const e=t.width;let i=1;const s=this._resourceManager.getResource(t.url);null!=s&&(i=s.width/s.height),l/=i*(h/e)}this._cimLayers.push({type:"fill",templateHash:o,materialHash:r?()=>a:a,cim:t,materialOverrides:null,colorLocked:!!t.colorLocked,effects:e,color:this._createOverrideFunction(i,"TintColor",s,an),height:this._createOverrideFunction(i,"Height",h),scaleX:this._createOverrideFunction(i,"ScaleX",l),angle:this._createOverrideFunction(i,"Rotation",Qi(t.rotation)),offsetX:this._createOverrideFunction(i,"OffsetX",Qi(t.offsetX)),offsetY:this._createOverrideFunction(i,"OffsetY",Qi(t.offsetY)),url:t.url,applyRandomOffset:!1,sampleAlphaOnly:!1})}_analyzeHatchFill(t,e){const i=t.primitiveName,s=this._analyzeMaterialOverrides(i,["Rotation","OffsetX","OffsetY"]);let[r,n]=this._analyzePrimitiveOverrides(i,e,null,null);const o=(0,Hr.hP)(JSON.stringify(t)+n).toString(),a=(0,Hr.hP)(`${t.separation}${JSON.stringify(t.lineSymbol)}`).toString();let h={r:255,g:255,b:255,a:1},l=!1;const c=t.lineSymbol?.symbolLayers?.find((t=>"CIMSolidStroke"===t.type&&null!=this._poMap[t.primitiveName]?.Color));if(c){h=ji(c.color),h=this._createOverrideFunction(c.primitiveName,"Color",h,an);const t="function"==typeof h;r=r||t,l=null!=c.color||t}this._cimLayers.push({type:"fill",templateHash:o,materialHash:r&&s?this._createMaterialHashFunction(a,s):a,cim:t,materialOverrides:s,colorLocked:!!t.colorLocked,effects:e,color:h,height:this._createOverrideFunction(i,"Separation",Qi(t.separation,4)),scaleX:1,angle:this._createOverrideFunction(i,"Rotation",Qi(t.rotation)),offsetX:this._createOverrideFunction(i,"OffsetX",Qi(t.offsetX)),offsetY:this._createOverrideFunction(i,"OffsetY",Qi(t.offsetY)),applyRandomOffset:!1,sampleAlphaOnly:!0,hasUnresolvedReplacementColor:!l})}_analyzeGradientFill(t,e){const i=t.primitiveName,[s,r]=this._analyzePrimitiveOverrides(i,e,null,null),n=(0,Hr.hP)(JSON.stringify(t)+r).toString();this._cimLayers.push({type:"fill",templateHash:n,materialHash:s?()=>n:n,cim:t,materialOverrides:null,colorLocked:!!t.colorLocked,effects:e,color:{r:128,g:128,b:128,a:1},height:0,angle:0,offsetX:0,offsetY:0,scaleX:1,applyRandomOffset:!1,sampleAlphaOnly:!1})}_analyzeSolidStroke(t,e,i,s){const r=t.primitiveName,n=ji(t.color),o=Qi(t.width,4),a=en(t.capStyle),h=sn(t.joinStyle),l=t.miterLimit,[c,u]=this._analyzePrimitiveOverrides(r,e,null,null),f=(0,Hr.hP)(JSON.stringify(t)+u).toString();let _,m;if(e&&e instanceof Array&&e.length>0){const t=e[e.length-1];if("CIMGeometricEffectDashes"===t.type&&"NoConstraint"===t.lineDashEnding&&null===t.offsetAlongLine){const t=(e=[...e]).pop();_=t.dashTemplate,m=t.scaleDash}}this._cimLayers.push({type:"line",templateHash:f,materialHash:c?()=>f:f,cim:t,materialOverrides:null,isOutline:i,colorLocked:!!t.colorLocked,effects:e,color:this._createOverrideFunction(r,"Color",n,an),width:this._createOverrideFunction(r,"Width",o),cap:this._createOverrideFunction(r,"CapStyle",a),join:this._createOverrideFunction(r,"JoinStyle",h),miterLimit:l&&this._createOverrideFunction(r,"MiterLimit",l),referenceWidth:s,zOrder:on(t.name),dashTemplate:_,scaleDash:m,sampleAlphaOnly:!0})}_analyzePictureStroke(t,e,i,s){const r=(0,Hr.hP)(`${t.url}${JSON.stringify(t.colorSubstitutions)}`).toString(),n=t.primitiveName,o=ts(t),a=Qi(t.width,4),h=en(t.capStyle),l=sn(t.joinStyle),c=t.miterLimit,[u,f]=this._analyzePrimitiveOverrides(n,e,null,null),_=(0,Hr.hP)(JSON.stringify(t)+f).toString();this._cimLayers.push({type:"line",templateHash:_,materialHash:u?()=>r:r,cim:t,materialOverrides:null,isOutline:i,colorLocked:!!t.colorLocked,effects:e,color:this._createOverrideFunction(n,"TintColor",o,an),width:this._createOverrideFunction(n,"Width",a),cap:this._createOverrideFunction(n,"CapStyle",h),join:this._createOverrideFunction(n,"JoinStyle",l),miterLimit:c&&this._createOverrideFunction(n,"MiterLimit",c),referenceWidth:s,zOrder:on(t.name),dashTemplate:null,scaleDash:!1,url:t.url,sampleAlphaOnly:!1})}_analyzeGradientStroke(t,e,i,s){const r=t.primitiveName,n=Qi(t.width,4),o=en(t.capStyle),a=sn(t.joinStyle),h=t.miterLimit,[l,c]=this._analyzePrimitiveOverrides(r,e,null,null),u=(0,Hr.hP)(JSON.stringify(t)+c).toString();this._cimLayers.push({type:"line",templateHash:u,materialHash:l?()=>u:u,cim:t,materialOverrides:null,isOutline:i,colorLocked:!!t.colorLocked,effects:e,color:{r:128,g:128,b:128,a:1},width:this._createOverrideFunction(r,"Width",n),cap:this._createOverrideFunction(r,"CapStyle",o),join:this._createOverrideFunction(r,"JoinStyle",a),miterLimit:h&&this._createOverrideFunction(r,"MiterLimit",h),referenceWidth:s,zOrder:on(t.name),dashTemplate:null,scaleDash:!1,sampleAlphaOnly:!1})}_analyzeMarker(t,e,i,s,r,n,o,a,h,l,c,u){if(this._analyzeMarkerInsidePolygon(t,e))return;const f=Qi(t.size,10),_=Qi(t.rotation),m=Qi(t.offsetX),d=Qi(t.offsetY);let p=this._createOverrideFunction(t.primitiveName,"Size",f),y=this._createOverrideFunction(t.primitiveName,"Rotation",_),g=this._createOverrideFunction(t.primitiveName,"OffsetX",m),x=this._createOverrideFunction(t.primitiveName,"OffsetY",d);p=this._transformSize(p,o),y=this._transformRotation(y,!!t.rotateClockwise,l);const M=this._transformOffsetX(g,x,l,o,c),b=this._transformOffsetY(g,x,l,o,u);switch(g=M,x=b,t.type){case"CIMPictureMarker":this._analyzePictureMarker(t,e,i,s,r,n,p,y,g,x);break;case"CIMVectorMarker":this._analyzeVectorMarker(t,e,i,s,r,n,o,a,p,y,g,x)}}_analyzeMarkerInsidePolygon(t,e){const{markerPlacement:i,type:s}=t;if(!i||"CIMMarkerPlacementInsidePolygon"!==i.type)return!1;if("CIMVectorMarker"===s||"CIMPictureMarker"===s){const r=t.primitiveName;if(r){const[t,i]=this._analyzePrimitiveOverrides([r],e,null,null);if(t)return!1}const n=i.primitiveName;if(n){const[t,i]=this._analyzePrimitiveOverrides([n],e,null,null);if(t)return!1}if("CIMVectorMarker"===s){const{markerGraphics:e}=t;if(e)for(const t of e){const{symbol:e}=t;if("CIMPolygonSymbol"===e?.type&&e.symbolLayers){const{symbolLayers:t}=e;for(const e of t)if("CIMSolidStroke"===e.type)return!1}}}else{const{animatedSymbolProperties:e}=t;if(e)return!1}}const r=i,n=Math.abs(r.stepX),o=Math.abs(r.stepY);if(0===n||0===o)return!0;const a=["Rotation","OffsetX","OffsetY"],h=this._primitiveOverrides.filter((e=>e.primitiveName!==t.primitiveName||!a.includes(e.propertyName))),l="url"in t&&"string"==typeof t.url?t.url:void 0,c=(0,Hr.hP)(JSON.stringify(t)).toString();let u,f,_=null;if("Random"===i.gridType){const t=(0,U.Wz)(E.C1),e=Math.max(Math.floor(t/n),1),i=Math.max(Math.floor(t/o),1);u=o*i,_=t=>t?t*i:0,f=e*n/u}else i.shiftOddRows?(u=2*o,_=t=>t?2*t:0,f=n/o*.5):(u=o,_=null,f=n/o);const m=ts(t);return this._cimLayers.push({type:"fill",templateHash:c,materialHash:c,cim:t,materialOverrides:h,colorLocked:!!t.colorLocked,effects:e,color:m,height:this._createOverrideFunction(r.primitiveName,"StepY",u,_),scaleX:f,angle:r.gridAngle,offsetX:Qi(r.offsetX),offsetY:Qi(r.offsetY),url:l,applyRandomOffset:"Random"===i.gridType,sampleAlphaOnly:!l,hasUnresolvedReplacementColor:!0}),!0}_analyzePictureMarker(t,e,i,s,r,n,o,a,h,l){let c=Qi(t.scaleX,1);const u=ts(t),f=(0,Hr.hP)(`${t.url}${JSON.stringify(t.colorSubstitutions)}${JSON.stringify(t.animatedSymbolProperties)}`).toString();i||(i=this._createMarkerPlacementOverrideFunction(t.markerPlacement));const _=this._createAnimatedSymbolPropertiesOverrideFunction(t.animatedSymbolProperties),[m,d]=this._analyzePrimitiveOverrides(s,e,i,_),p=(0,Hr.hP)(JSON.stringify(t)+d).toString(),y=t.anchorPoint??{x:0,y:0};if("width"in t&&"number"==typeof t.width){const e=t.width;let i=1;const s=this._resourceManager.getResource(t.url);null!=s&&(i=s.width/s.height),c/=i*(Qi(t.size)/e)}function g(t,e){return null!=_?Hi(_,t,e):null}const x=t.animatedSymbolProperties&&!0===t.animatedSymbolProperties.randomizeStartTime?(t,e,i,s)=>{const r=function(t){return Math.floor(function(t,e){let i;if("string"==typeof t)i=(0,Hr.hP)(t+`-seed(${e})`);else{let s=12;i=t^e;do{i=107*(i>>8^i)+s|0}while(0!=--s)}return(1+i/(1<<31))/2}(t,$r)*Qr)}(s??0),n=g(t,e);return f+`-MATERIALGROUP(${r})`+`-ASP(${JSON.stringify(n)})`}:m?(t,e)=>{const i=g(t,e);return f+`-ASP(${JSON.stringify(i)})`}:f;this._cimLayers.push({type:"marker",templateHash:p,materialHash:x,cim:t,materialOverrides:null,colorLocked:!!t.colorLocked,effects:e,scaleSymbolsProportionally:!1,alignment:r,size:o,scaleX:this._createOverrideFunction(t.primitiveName,"ScaleX",c),rotation:a,offsetX:h,offsetY:l,color:this._createOverrideFunction(t.primitiveName,"TintColor",u,an),anchorPoint:{x:y.x,y:y.y},isAbsoluteAnchorPoint:"Relative"!==t.anchorPointUnits,outlineColor:{r:0,g:0,b:0,a:0},outlineWidth:0,frameHeight:0,rotateClockwise:!1,referenceSize:n,sizeRatio:1,markerPlacement:i,url:t.url,animatedSymbolProperties:_})}_analyzeVectorMarker(t,e,i,s,r,n,o,a,h,l,c,u){const f=t.markerGraphics;if(!f)return;let _,m=0,d=1;t.scaleSymbolsProportionally&&(_=t.frame,_&&(m=_.ymax-_.ymin,d=this._transformSize(h,1/m))),d=this._transformSize(d,o),i||(i=this._createMarkerPlacementOverrideFunction(t.markerPlacement));for(const o of f)if(o){const f=o.symbol;if(!f)continue;const p=o.primitiveName;p&&s.push(p);let y=c,g=u;if(("CIMPointSymbol"===f.type||"CIMTextSymbol"===f.type)&&_){let e=0,i=0;const s=o.geometry;"x"in s&&"y"in s&&(e+=s.x-.5*(_.xmin+_.xmax),i+=s.y-.5*(_.ymin+_.ymax));const r=t.anchorPoint;r&&("Absolute"===t.anchorPointUnits?(e-=r.x,i-=r.y):_&&(e-=(_.xmax-_.xmin)*r.x,i-=(_.ymax-_.ymin)*r.y)),y=this._transformOffsetX(e,i,l,d,c),g=this._transformOffsetY(e,i,l,d,u)}switch(f.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":a?this._analyzeMultiLayerGraphicNonSDF(t,e,i,null,o,s,r,n,m):this._analyzeMultiLayerGraphic(t,e,i,null,o,s,r,n,m,d,h,l,y,g);break;case"CIMTextSymbol":this._analyzeTextGraphic(t,e,i,o,s,r,n,m,d,h,l,y,g)}p&&s.pop()}}_analyzeMultiLayerGraphic(t,e,i,s,r,n,o,a,h,l,c,u,f,_){const m=r.symbol,d=m.symbolLayers;if(!d)return;let p=d.length;if(ln(d))return void this._analyzeCompositeMarkerGraphic(t,e,i,s,r,d,n,o,a,h,c,u,f,_);const y=this._resourceManager.geometryEngine,g=Zs.applyEffects(m.effects,r.geometry,y);if(g)for(;p--;){const m=d[p];if(!m||!1===m.enable)continue;const x=m.primitiveName;switch(x&&n.push(x),m.type){case"CIMSolidFill":case"CIMSolidStroke":{const l=Zs.applyEffects(m.effects,g,y),d=Kr(l);if(!d)continue;const p="Relative"!==t.anchorPointUnits,[M,b,P]=jr(d,t.frame,t.size,t.anchorPoint,p),v="CIMSolidFill"===m.type,S={type:"sdf",geom:l,asFill:v},w=m.path,C=ji(v?ns(m):os(m)),I=v?{r:0,g:0,b:0,a:0}:ji(os(m)),L=as(m)??0;if(!v&&!L)break;const k=r.primitiveName;let z=null;v&&!m.colorLocked&&(z=this._createOverrideFunction(k,"FillColor",C,an));let T=null;m.colorLocked||(T=this._createOverrideFunction(k,"StrokeColor",I,an));const O=this._createOverrideFunction(k,"StrokeWidth",L);let E=!1,F="";for(const t of this._primitiveOverrides)n.includes(t.primitiveName)&&(null!=t.value?F+=`-${t.primitiveName}-${t.propertyName}-${JSON.stringify(t.value)}`:t.valueExpressionInfo&&(E=!0));(null!=e&&"function"==typeof e||null!=i&&"function"==typeof i)&&(E=!0),(Ui(c)||Ui(u)||Ui(f)||Ui(_))&&(E=!0);const A=JSON.stringify({...t,markerGraphics:null}),N=(0,Hr.hP)(JSON.stringify(S)+w).toString(),R=(0,Hr.hP)(JSON.stringify(r)+JSON.stringify(m)+A+F).toString();this._cimLayers.push({type:"marker",templateHash:R,materialHash:E?()=>N:N,cim:S,materialOverrides:null,colorLocked:!!t.colorLocked,effects:e,scaleSymbolsProportionally:!!t.scaleSymbolsProportionally,alignment:o,anchorPoint:{x:b,y:P},isAbsoluteAnchorPoint:p,size:c,rotation:u,offsetX:f,offsetY:_,scaleX:1,frameHeight:h,rotateClockwise:!1,referenceSize:a,sizeRatio:M,color:Ui(z)?z:this._createOverrideFunction(x,"Color",C,an),outlineColor:Ui(T)?T:this._createOverrideFunction(x,"Color",I,an),outlineWidth:Ui(O)?O:this._createOverrideFunction(x,"Width",L),markerPlacement:i,animatedSymbolProperties:s,path:w});break}case"CIMVectorMarker":m.markerPlacement?this._analyzeMultiLayerGraphicNonSDF(t,e,i,s,r,n,o,a,h):this._analyzeMarker(m,e,i,n,o,a,l,!1,c,u,f,_);break;default:this._analyzeMultiLayerGraphicNonSDF(t,e,i,s,r,n,o,a,h)}x&&n.pop()}}_analyzeTextGraphic(t,e,i,s,r,n,o,a,h,l,c,u,f){Fs.findApplicableOverrides(s,this._primitiveOverrides,[]);const _=s.geometry;if(!("x"in _)||!("y"in _))return;const m=s.symbol,d=rs(m),p=ss(m.fontStyleName),y=Ai(m.fontFamilyName);m.font={family:y,decoration:d,...p};let g=Qi(m.height,10),x=Qi(m.angle),M=Qi(m.offsetX),b=Qi(m.offsetY);g=this._transformSize(g,h),x=this._transformRotation(x,!1,c);const P=this._transformOffsetX(M,b,c,h,u),v=this._transformOffsetY(M,b,c,h,f);M=P,b=v;const S=ji(ns(m));let w=ji(os(m)),C=as(m)??0;C||(w=ji(ns(m.haloSymbol)),C=Qi(m.haloSize)),C=this._transformSize(C,h);let I=null,L=null,k=0;if(m.callout&&"CIMBackgroundCallout"===m.callout.type){const t=m.callout;if(t.backgroundSymbol){const e=t.backgroundSymbol.symbolLayers;if(e)for(const t of e)"CIMSolidFill"===t.type?I=ji(t.color):"CIMSolidStroke"===t.type&&(L=ji(t.color),k=Qi(t.width,4))}}const[z,T]=this._analyzePrimitiveOverrides(r,e,i,null),O=JSON.stringify(t.effects)+Number(t.colorLocked).toString()+JSON.stringify(t.anchorPoint)+t.anchorPointUnits+JSON.stringify(t.markerPlacement)+t.size.toString(),E=(0,Hr.hP)(JSON.stringify(s)+O+T).toString();let F=this._createOverrideFunction(s.primitiveName,"TextString",s.textString??"",Ki,m.textCase);if(null==F)return;const{fontStyleName:A}=m,N=y+(A?"-"+A.toLowerCase():"-regular"),R=N;"string"==typeof F&&F.includes("[")&&m.fieldMap&&(F=function(t,e,i){const s=Zi(e,t);return t=>qi(t,s,i)}(m.fieldMap,F,m.textCase)),this._cimLayers.push({type:"text",templateHash:E,materialHash:z||"function"==typeof F||/\[(.*?)\]/.test(F)?(t,e,i)=>R+"-"+Hi(F,t,e,i):R+"-"+(0,Hr.hP)(F),cim:m,materialOverrides:null,colorLocked:!!t.colorLocked,effects:e,alignment:n,anchorPoint:{x:0,y:0},isAbsoluteAnchorPoint:"Relative"!==t.anchorPointUnits,fontName:N,decoration:d,weight:p.weight,style:p.style,size:g,angle:x,offsetX:M,offsetY:b,horizontalAlignment:hs(m.horizontalAlignment),verticalAlignment:ls(m.verticalAlignment),text:F,color:S,outlineColor:w,outlineSize:C,backgroundColor:I,borderLineColor:L,borderLineWidth:k,referenceSize:o,sizeRatio:1,markerPlacement:i})}_analyzeMultiLayerGraphicNonSDF(t,e,i,s,r,n,o,a,h){const l=this._buildSimpleMarker(t,r),c=t.primitiveName,u=this._analyzeMaterialOverrides(c,["Rotation","OffsetX","OffsetY"]),[f,_]=this._analyzePrimitiveOverrides(n,null,null,null),[m,d,p]=Es.getTextureAnchor(l,this._resourceManager),y=Qi(t.rotation),g=Qi(t.offsetX),x=Qi(t.offsetY),M=(0,Hr.hP)(JSON.stringify(l)+_).toString(),b=u&&u.length>0||null!=e&&"function"==typeof e;this._cimLayers.push({type:"marker",templateHash:M,materialHash:b&&u?this._createMaterialHashFunction(M,u):M,cim:l,materialOverrides:u,colorLocked:!!t.colorLocked,effects:e,scaleSymbolsProportionally:!!t.scaleSymbolsProportionally,alignment:o,anchorPoint:{x:m,y:d},isAbsoluteAnchorPoint:!1,size:Qi(t.size,10),rotation:this._createOverrideFunction(c,"Rotation",y),offsetX:this._createOverrideFunction(c,"OffsetX",g),offsetY:this._createOverrideFunction(c,"OffsetY",x),color:{r:255,g:255,b:255,a:1},outlineColor:{r:0,g:0,b:0,a:0},outlineWidth:0,scaleX:1,frameHeight:h,rotateClockwise:!!t.rotateClockwise,referenceSize:a,sizeRatio:p/(0,U.F2)(t.size),markerPlacement:i,animatedSymbolProperties:s,avoidSDFRasterization:!0})}_buildSimpleMarker(t,e){return{type:t.type,enable:!0,name:t.name,colorLocked:t.colorLocked,primitiveName:t.primitiveName,anchorPoint:t.anchorPoint,anchorPointUnits:t.anchorPointUnits,offsetX:0,offsetY:0,rotateClockwise:t.rotateClockwise,rotation:0,size:t.size,billboardMode3D:t.billboardMode3D,depth3D:t.depth3D,frame:t.frame,markerGraphics:[e],scaleSymbolsProportionally:t.scaleSymbolsProportionally,respectFrame:t.respectFrame,clippingPath:t.clippingPath}}_analyzeCompositeMarkerGraphic(t,e,i,s,r,n,o,a,h,l,c,u,f,_){const m=r.geometry,d=n[0],p=n[1],y=Kr(m);if(!y)return;const g="Relative"!==t.anchorPointUnits,[x,M,b]=jr(y,t.frame,t.size,t.anchorPoint,g),P={type:"sdf",geom:m,asFill:!0},v=p.path,S=p.primitiveName,w=d.primitiveName,C=ji(p.color),I=ji(d.color),L=Qi(d.width,4),k=r.primitiveName;let z=null;p.colorLocked||(z=this._createOverrideFunction(k,"FillColor",C,an));let T=null;d.colorLocked||(T=this._createOverrideFunction(k,"StrokeColor",I,an));const O=this._createOverrideFunction(k,"StrokeWidth",L);let E=!1,F="";for(const t of this._primitiveOverrides)(t.primitiveName===S||t.primitiveName===w||o.includes(t.primitiveName))&&(null!=t.value?F+=`-${t.primitiveName}-${t.propertyName}-${JSON.stringify(t.value)}`:t.valueExpressionInfo&&(E=!0));null!=i&&"function"==typeof i&&(E=!0),(Ui(c)||Ui(u)||Ui(f)||Ui(_))&&(E=!0);const A=JSON.stringify({...t,markerGraphics:null}),N=(0,Hr.hP)(JSON.stringify(P)+v).toString(),R=(0,Hr.hP)(JSON.stringify(r)+JSON.stringify(p)+JSON.stringify(d)+A+F).toString();this._cimLayers.push({type:"marker",templateHash:R,materialHash:E?()=>N:N,cim:P,materialOverrides:null,colorLocked:!!t.colorLocked,effects:e,scaleSymbolsProportionally:!!t.scaleSymbolsProportionally,alignment:a,anchorPoint:{x:M,y:b},isAbsoluteAnchorPoint:g,size:c,rotation:u,offsetX:f,offsetY:_,scaleX:1,frameHeight:l,rotateClockwise:!1,referenceSize:h,sizeRatio:x,color:Ui(z)?z:this._createOverrideFunction(S,"Color",C,an),outlineColor:Ui(T)?T:this._createOverrideFunction(w,"Color",I,an),outlineWidth:Ui(O)?O:this._createOverrideFunction(w,"Width",L),markerPlacement:i,path:v,animatedSymbolProperties:s})}_createMaterialHashFunction(t,e){const i=this._info?.geometryType;if(i){const t=this._poMap;for(const s of e)if(s.valueExpressionInfo){const e=t[s.primitiveName]&&t[s.primitiveName][s.propertyName];e instanceof Ni.mz&&(s.fn=(t,s,r)=>vs(e,t,{$view:r},i,s))}}return(i,s,r)=>{for(const t of e)t.fn&&(t.value=t.fn(i,s,r));return(0,Hr.hP)(t+Fs.buildOverrideKey(e)).toString()}}_setPoMap(t,e,i){let s;this._poMap[t]?s=this._poMap[t]:(s={},this._poMap[t]=s),s[e]=i}_createOverrideFunction(t,e,i,s,r){if(null==t)return i;const n=this._poMap[t];if(null==n)return i;const o=n[e];if("string"==typeof o||"number"==typeof o||o instanceof Array)return s?s.call(null,o,r):o;const a=this._info?.geometryType;return null!=o&&o instanceof Ni.mz&&null!=a?(t,e,n)=>{let h=vs(o,t,{$view:n},a,e);return null!==h&&s&&(h=s.call(null,h,r)),null!==h?h:i}:i}_createEffectsOverrideFunction(t,e){const i=this._poMap,s=this._info?.geometryType;for(const t of e)if(t.valueExpressionInfo&&s){const e=i[t.primitiveName]&&i[t.primitiveName][t.propertyName];e instanceof Ni.mz&&(t.fn=(t,i,r)=>vs(e,t,{$view:r},s,i))}return(i,s,r)=>{for(const t of e)t.fn&&(t.value=t.fn(i,s,r));const n=[];for(let i of t){const t=i?.primitiveName;if(t){let s=!1;for(const r of e)if(r.primitiveName===t){const t=hn(r.propertyName);null!=r.value&&r.value!==i[t]&&(s||(i=(0,Mt.d9)(i),s=!0),i[t]=r.value)}}n.push(i)}return n}}_createMarkerPlacementOverrideFunction(t){const e=[];if(Fs.findApplicableOverrides(t,this._primitiveOverrides,e),null==t||0===e.length)return t;const i=this._poMap,s=this._info?.geometryType;for(const t of e)if(t.valueExpressionInfo&&s){const e=i[t.primitiveName]&&i[t.primitiveName][t.propertyName];e instanceof Ni.mz&&(t.fn=(t,i,r)=>vs(e,t,{$view:r},s,i))}return(i,s,r)=>{for(const t of e)t.fn&&(t.value=t.fn(i,s,r));const n=(0,Mt.d9)(t),o=t.primitiveName;for(const t of e)if(t.primitiveName===o){const e=hn(t.propertyName);null!=t.value&&t.value!==n[e]&&(n[e]=t.value)}return n}}_createAnimatedSymbolPropertiesOverrideFunction(t){const e=[];if(Fs.findApplicableOverrides(t,this._primitiveOverrides,e),null==t||0===e.length)return t;const i=this._info?.geometryType;if(i){const t=this._poMap;for(const s of e)if(s.valueExpressionInfo){const e=t[s.primitiveName]&&t[s.primitiveName][s.propertyName];e instanceof Ni.mz&&(s.fn=(t,s,r)=>vs(e,t,{$view:r},i,s))}}return(i,s,r)=>{for(const t of e)t.fn&&(t.value=t.fn(i,s,r));const n=(0,Mt.d9)(t),o=t.primitiveName;for(const t of e)if(t.primitiveName===o){const e=hn(t.propertyName);if(null!=t.value){const i=Jr(t.value,t.propertyName);i!==n[e]&&(n[e]=i)}}return n}}_analyzePrimitiveOverrides(t,e,i,s){let r=!1,n="";"string"==typeof t&&(t=[t]);for(const e of this._primitiveOverrides)t?.includes(e.primitiveName)&&(null!=e.value?n+=`-${e.primitiveName}-${e.propertyName}-${JSON.stringify(e.value)}`:e.valueExpressionInfo&&(r=!0));return null!=e&&"function"==typeof e&&(r=!0),null!=i&&"function"==typeof i&&(r=!0),null!=s&&"function"==typeof s&&(r=!0),[r,n]}_analyzeMaterialOverrides(t,e){return this._primitiveOverrides.filter((i=>i.primitiveName!==t||!e.includes(i.propertyName)))}_transformSize(t,e){return Ui(t)||Ui(e)?(i,s,r)=>(Ui(t)?t(i,s,r):t)*(Ui(e)?e(i,s,r):e):t*e}_transformRotation(t,e,i){return Ui(t)||Ui(i)?(s,r,n)=>{const o=Ui(t)?t(s,r,n):t,a=Ui(i)?i(s,r,n):i;return e?a-o:a+o}:e?i-t:i+t}_transformOffsetX(t,e,i,s,r){if(!(Ui(t)||Ui(e)||Ui(i)||Ui(s)||Ui(r))){const n=i*Math.PI/180;if(n){const i=Math.cos(n),o=Math.sin(n);return(i*t-o*e)*s+r}return t*s+r}return(n,o,a)=>{let h=Ui(i)?i(n,o,a):i;const l=Ui(s)?s(n,o,a):s,c=Ui(t)?t(n,o,a):t,u=Ui(r)?r(n,o,a):r;return h?(h*=Math.PI/180,(Math.cos(h)*c-Math.sin(h)*(Ui(e)?e(n,o,a):e))*l+u):c*l+u}}_transformOffsetY(t,e,i,s,r){if(!(Ui(t)||Ui(e)||Ui(i)||Ui(s)||Ui(r))){const n=i*Math.PI/180;if(n){const i=Math.cos(n);return(Math.sin(n)*t+i*e)*s+r}return e*s+r}return(n,o,a)=>{let h=Ui(i)?i(n,o,a):i;const l=Ui(s)?s(n,o,a):s,c=Ui(e)?e(n,o,a):e,u=Ui(r)?r(n,o,a):r;if(h){h*=Math.PI/180;const e=Math.cos(h);return(Math.sin(h)*(Ui(t)?t(n,o,a):t)+e*c)*l+u}return c*l+u}}}function on(t){if(t&&0===t.indexOf("Level_")){const e=parseInt(t.substr(6),10);if(!isNaN(e))return e}return 0}function an(t){if(!t||0===t.length)return null;const e=new Fi.Z(t).toRgba();return{r:e[0],g:e[1],b:e[2],a:e[3]}}function hn(t){return t?t.charAt(0).toLowerCase()+t.substr(1):t}const ln=t=>t&&2===t.length&&t[0].enable&&t[1].enable&&"CIMSolidStroke"===t[0].type&&"CIMSolidFill"===t[1].type&&!t[0].effects&&!t[1].effects,cn=h.Z.getLogger("esri.views.2d.engine.webgl.WGLDynamicMeshTemplate");class un extends qs{constructor(t){super(),this._ongoingMaterialRequestMap=new Map,this._materialCache=new Map,this._dynamicPropertyMap=new Map,this._cimLayer=t}async analyze(t,e,i,s,r){if(r&&0===r.length)return null;const n=r&&r.length>0,o=e.readLegacyFeature(),a=e.getObjectId(),h=this._materialCache,l=this._cimLayer.materialHash;if(!l)return cn.error("A Dynamic mesh template must have a material hash value or function!"),null;const c="function"==typeof l?l(o,i,s,a):l,u=h.get(c);if(null!=u)return u;const f=this._ongoingMaterialRequestMap.get(c);if(f)return f;const _=this._cimLayer,m=function(t,e){if(!e||0===e.length)return t;const i=(0,Mt.d9)(t);return Fs.applyOverrides(i,e),i}(_.cim,this._cimLayer.materialOverrides);m.mosaicHash=c;const{type:d,url:p}=_,y={cim:m,type:d,mosaicHash:c,url:p,size:null,dashTemplate:null,text:null,fontName:null,objectId:a,animatedSymbolProperties:null};switch(d){case"marker":y.size=Hi(_.size,o,i,s),y.animatedSymbolProperties=Hi(_.animatedSymbolProperties,o,i,s);break;case"line":y.dashTemplate=_.dashTemplate;break;case"text":y.text=Hi(_.text,o,i,s),y.fontName=Hi(_.fontName,o,i,s)}const g=t.getMosaicItem(y,r).then((t=>(n||(this._ongoingMaterialRequestMap.delete(c),h.set(c,t)),t))).catch((t=>(this._ongoingMaterialRequestMap.delete(c),cn.error(".analyze()",t.message),null)));return n||this._ongoingMaterialRequestMap.set(c,g),g}}function fn(t,e){if(t&&"name"in t){const i=t;return e&&e.error(new o.Z(i.name,i.message,i.details)),!1}return!0}class _n extends(Ur(un)){constructor(t,e,i){if(super(t),this._minMaxZoom=(0,ot.UJ)(Math.round(e*E.MI),Math.round(i*E.MI)),Ui(t.color)){const e=(e,i,s)=>{const r=t.color(e,i,s);return r&&(0,nt.t2)(r)||0};this._dynamicPropertyMap.set("fillColor",e)}else{const e=t.color;this.fillColor=e&&(0,nt.t2)(e)||0}const s="CIMMarkerPlacementInsidePolygon"===t.cim.placement?.type&&t.cim.placement.shiftOddRows?2:1,r=t.height;if(Ui(r)){const t=(t,e,i)=>r(t,e,i)*s;this._dynamicPropertyMap.set("_height",t)}else this._height=(r||0)*s;const n=t.offsetX;if(Ui(n)){const t=(t,e,i)=>(0,U.F2)(n(t,e,i));this._dynamicPropertyMap.set("_offsetX",t)}else this._offsetX=(0,U.F2)(n||0);const o=t.offsetY;if(Ui(o)){const t=(t,e,i)=>(0,U.F2)(-o(t,e,i));this._dynamicPropertyMap.set("_offsetY",t)}else this._offsetY=(0,U.F2)(-o||0);const a=t.scaleX;Ui(a)?this._dynamicPropertyMap.set("_scaleX",a):this._scaleX=a||1;const h=t.angle;if(Ui(h)){const t=(t,e,i)=>ar(h(t,e,i));this._dynamicPropertyMap.set("_angle",t)}else this._angle=ar(h)||0;if(null!=t.effects){const e=t.effects;Ui(e)?this._dynamicPropertyMap.set("_effects",e):this._effects=e}this._cimFillLayer=t,this._bitset=(t.colorLocked?E.Uh:0)|(t.applyRandomOffset?E.jk:0)|(t.sampleAlphaOnly?E.Iv:0)|(t.hasUnresolvedReplacementColor?E.vw:0),this._fillMaterialKey=t.materialKey}static fromCIMFill(t,e){const[i,s]=mt(t.scaleInfo,e);return new _n(t,i,s)}bindFeature(t,e,i){const s=t.readLegacyFeature();this._dynamicPropertyMap.forEach(((t,r)=>{this[r]=t(s,e,i)}));const r=at.dk.load(this._fillMaterialKey),n=this._materialCache,o=(0,this._cimFillLayer.materialHash)(s,e,i),a=n.get(o);let h=null;if(a&&fn(a.spriteMosaicItem)&&(h=a.spriteMosaicItem),h){const{rect:t,width:e,height:i}=h,s=t.x+E.fL,n=t.y+E.fL,o=s+e,a=n+i;let l=(0,U.F2)(this._height);l<=0&&(l=a-n),l<E.uQ&&(l*=E.Ls,this._bitset|=E.U),l=Math.round(l);let c=(0,U.F2)(this._height/i*e);c<=0&&(c=o-s),c<E.uQ&&(c*=E.Ls,this._bitset|=E.tz),c=Math.round(c);const u=this._scaleX,f=1;this.tl=(0,ot.UJ)(s,n),this.br=(0,ot.UJ)(o,a),this.aux21=(0,ot.UJ)(c,l),this.aux22=(0,ot.UJ)(this._offsetX,this._offsetY),this.aux3=(0,ot.Jz)(u*E.Ls,f*E.Ls,this._angle,0),r.sdf=h.sdf,r.pattern=!0,r.textureBinding=h.textureBinding}else this.tl=0,this.br=0,this.aux21=0,this.aux22=0,this.aux3=0,r.sdf=!1,r.pattern=!1,r.textureBinding=0;this._materialKey=r.data}}class mn extends(Wr(un)){constructor(t,e,i){super(t),this._minMaxZoom=(0,ot.UJ)(Math.round(e*E.MI),Math.round(i*E.MI)),this._cimLineLayer=t;let s=0;Ui(t.width)||(s=.5*(0,U.F2)(t.width)),this._dynamicPropertyMap.set("_halfWidth",((e,i,r)=>Ui(t.width)?.5*(0,U.F2)(t.width(e,i,r)):s)),Ui(t.cap)?this._dynamicPropertyMap.set("_capType",t.cap):this._capType=t.cap,Ui(t.join)?this._dynamicPropertyMap.set("_joinType",t.join):this._joinType=t.join;const r=t.color;if(Ui(r)){const t=(t,e,i)=>(0,nt.t2)(r(t,e,i));this._dynamicPropertyMap.set("_fillColor",t)}else this._fillColor=r&&(0,nt.t2)(r)||0;const n=t.miterLimit;if(Ui(n)){const t=(t,e,i)=>_t(n(t,e,i));this._dynamicPropertyMap.set("_miterLimitCosine",t)}else this._miterLimitCosine=_t(n);if(null!=t.effects){const e=t.effects;Ui(e)?this._dynamicPropertyMap.set("_effects",e):this._effects=e}this._scaleFactor=t.scaleFactor||1,this._isDashed=null!=t.dashTemplate;const o=t.colorLocked?E.Uh:0,a=t.scaleDash?E._6:0,h=t.sampleAlphaOnly?E.Iv:0;this.tessellationProperties._bitset=o|a|h,this._materialKey=t.materialKey,this._initializeTessellator(!0)}static fromCIMLine(t,e){const[i,s]=mt(t.scaleInfo,e);return new mn(t,i,s)}bindFeature(t,e,i){const s=t.readLegacyFeature();this._dynamicPropertyMap.forEach(((t,r)=>{this[r]=t(s,e,i)})),this._halfWidth*=this._scaleFactor;const r=this._materialCache,n=(0,this._cimLineLayer.materialHash)(s,e,i),o=r.get(n);let a=null;if(o&&fn(o.spriteMosaicItem)&&(a=o.spriteMosaicItem),a){this._hasPattern=!0;const{rect:t,width:e,height:i}=a,s=t.x+E.fL,r=t.y+E.fL,n=s+e,o=r+i;this.tessellationProperties._tl=(0,ot.UJ)(s,r),this.tessellationProperties._br=(0,ot.UJ)(n,o)}else this._hasPattern=!1,this.tessellationProperties._tl=0,this.tessellationProperties._br=0;this.tessellationProperties._fillColor=this._fillColor,this.tessellationProperties._halfWidth=this._halfWidth,this.tessellationProperties.offset=0,this.tessellationProperties._halfReferenceWidth=this.tessellationProperties._halfWidth;const h=at.a.load(this._materialKey);a&&(h.sdf=a.sdf,h.pattern=!0,h.textureBinding=a.textureBinding),this._materialKey=h.data}}const dn=(0,fi.c)(),pn=tt();class yn extends(rr(un)){constructor(t,e,i){super(t),this._cimMarkerLayer=t,this._minMaxZoom=(0,ot.UJ)(Math.round(e*E.MI),Math.round(i*E.MI));const s=t.color;if(Ui(s)){const t=(t,e,i)=>(0,nt.t2)(s(t,e,i));this._dynamicPropertyMap.set("_fillColor",t)}else this._fillColor=(0,nt.t2)(s);const r=t.outlineColor;if(Ui(r)){const t=(t,e,i)=>(0,nt.t2)(r(t,e,i));this._dynamicPropertyMap.set("_outlineColor",t)}else this._outlineColor=(0,nt.t2)(r);const n=t.size;if(Ui(n)){const t=(t,e,i)=>(0,U.F2)(n(t,e,i));this._dynamicPropertyMap.set("_size",t)}else this._size=(0,U.F2)(n)||0;const o=t.scaleX;Ui(o)?this._dynamicPropertyMap.set("_scaleX",o):this._scaleX=o;const a=t.offsetX;if(Ui(a)){const t=(t,e,i)=>(0,U.F2)(a(t,e,i));this._dynamicPropertyMap.set("xOffset",t)}else this.xOffset=(0,U.F2)(a)||0;const h=t.offsetY;if(Ui(h)){const t=(t,e,i)=>(0,U.F2)(h(t,e,i));this._dynamicPropertyMap.set("yOffset",t)}else this.yOffset=(0,U.F2)(h)||0;const l=t.outlineWidth;if(Ui(l)){const t=(t,e,i)=>(0,U.F2)(l(t,e,i));this._dynamicPropertyMap.set("_outlineWidth",t)}else this._outlineWidth=(0,U.F2)(l)||0;const c=t.rotation;if(Ui(c)?this._dynamicPropertyMap.set("_angle",c):this._angle=c||0,null!=t.effects){const e=t.effects;Ui(e)?this._dynamicPropertyMap.set("_effects",e):this._effects=e}if(null!=t.markerPlacement){const e=t.markerPlacement;Ui(e)?this._dynamicPropertyMap.set("_markerPlacement",e):this._markerPlacement=e}this._scaleFactor=t.scaleFactor??1,this._bitSet=(t.alignment===st.v2.MAP?E.Tz:E.CQ)|(t.colorLocked?E.Uh:0)|(t.scaleSymbolsProportionally?E.e0:0),this._materialKey=t.materialKey}static fromCIMMarker(t,e){const[i,s]=mt(t.scaleInfo,e);return new yn(t,i,s)}bindFeature(t,e,i){const s=t.readLegacyFeature(),r=t.getObjectId();this._dynamicPropertyMap.forEach(((t,r)=>{this[r]=t(s,e,i)}));const n=this._cimMarkerLayer.materialHash,a="function"==typeof n?n(s,e,i,r):n,l=this._materialCache.get(a);if(!l||!fn(l.spriteMosaicItem)||!l.spriteMosaicItem)return void h.Z.getLogger("esri.views.2d.engine.webgl.WGLDynamicMarkerTemplate").error(new o.Z("mapview-cim","Encountered an error when binding feature"));const c=l.spriteMosaicItem,u=this._cimMarkerLayer.sizeRatio,f=c.width/c.height*this._scaleX,_=at.mE.load(this._materialKey);_.sdf=c.sdf,_.pattern=!0,_.textureBinding=c.textureBinding,this._materialKey=_.data;const m=this._cimMarkerLayer.rotateClockwise?this._angle:-this._angle,d=this._size,p=d*f,y=this.xOffset,g=this.yOffset;this.xOffset*=this._scaleFactor,this.yOffset*=this._scaleFactor;const x=this._cimMarkerLayer.scaleSymbolsProportionally&&this._cimMarkerLayer.frameHeight?this._size/(0,U.F2)(this._cimMarkerLayer.frameHeight):1,M=this._outlineWidth*x,b=(0,U.F2)(this._cimMarkerLayer.referenceSize);let P=0,v=0;const S=this._cimMarkerLayer.anchorPoint;S&&(this._cimMarkerLayer.isAbsoluteAnchorPoint?this._size&&(P=(0,U.F2)(S.x)/(this._size*f),v=(0,U.F2)(S.y)/this._size):(P=S.x,v=S.y)),this._anchorX=P,this._anchorY=v,this._sizeOutlineWidth=(0,ot.Jz)(Math.round(Math.min(Math.sqrt(128*p),255)),Math.round(Math.min(Math.sqrt(128*d),255)),Math.round(Math.min(Math.sqrt(128*M),255)),Math.round(Math.min(Math.sqrt(128*b),255))),this.angle=m;const w=Math.round(64*u);this._bitestAndDistRatio=(0,ot.UJ)(this._bitSet,w),this._computeSize(p,d,u,M,this._scaleFactor,c,_.hasSizeVV(),!0),this._applyTransformation(pn,dn),this.xOffset=y,this.yOffset=g}}function gn(t){if(null==t)return[];const e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=t.charCodeAt(i);return e}class xn extends(Ei(un)){constructor(t,e,i){super(t),this._horizontalAlignment="center",this._verticalAlignment="middle",this._textToGlyphs=new Map,this._minMaxZoom=(0,ot.UJ)(Math.round(e*E.MI),Math.round(i*E.MI));const s=t.scaleFactor||1;this._cimTextLayer=t;const r=t.color;if(Ui(r)){const t=(t,e,i)=>(0,nt.t2)(r(t,e,i));this._dynamicPropertyMap.set("_color",t)}else this._color=(0,nt.t2)(r);const n=t.outlineColor;if(Ui(n)){const t=(t,e,i)=>(0,nt.t2)(n(t,e,i));this._dynamicPropertyMap.set("_haloColor",t)}else this._haloColor=(0,nt.t2)(n);let o,a,h;if(Ui(t.size)||(o=Math.min(Math.round((0,U.F2)(t.size*t.sizeRatio)),127)),this._dynamicPropertyMap.set("_size",((e,i,s)=>Ui(t.size)?Math.min(Math.round((0,U.F2)(t.size(e,i,s)*t.sizeRatio)),127):o)),Ui(t.outlineSize)){const e=(e,i,s)=>Math.min(Math.floor(5*(0,U.F2)(t.outlineSize(e,i,s)*t.sizeRatio)),127);this._dynamicPropertyMap.set("_haloSize",e)}else this._haloSize=Math.min(Math.floor(5*(0,U.F2)(t.outlineSize*t.sizeRatio)),127);if(Ui(t.offsetX)||(a=Math.round((0,U.F2)(t.offsetX*t.sizeRatio))),this._dynamicPropertyMap.set("_xOffset",((e,i,s)=>Ui(t.offsetX)?Math.round((0,U.F2)(t.offsetX(e,i,s)*t.sizeRatio)):a)),Ui(t.offsetY)||(h=Math.round((0,U.F2)(t.offsetY*t.sizeRatio))),this._dynamicPropertyMap.set("_yOffset",((e,i,s)=>Ui(t.offsetY)?Math.round((0,U.F2)(t.offsetY(e,i,s)*t.sizeRatio)):h)),Ui(t.angle)?this._dynamicPropertyMap.set("_angle",t.angle):this._angle=t.angle,Ui(t.horizontalAlignment)?this._dynamicPropertyMap.set("_horizontalAlignment",t.horizontalAlignment):this._horizontalAlignment=t.horizontalAlignment,Ui(t.verticalAlignment)?this._dynamicPropertyMap.set("_verticalAlignment",t.verticalAlignment):this._verticalAlignment=t.verticalAlignment,null!=t.effects){const e=t.effects;Ui(e)?this._dynamicPropertyMap.set("_effects",e):this._effects=e}if(null!=t.markerPlacement){const e=t.markerPlacement;Ui(e)?this._dynamicPropertyMap.set("_markerPlacement",e):this._textPlacement=e}Ui(t.text)?this._dynamicPropertyMap.set("_text",t.text):this._text=t.text,this._backgroundColor=t.backgroundColor&&(0,nt.t2)(t.backgroundColor),this._borderLineColor=t.borderLineColor&&(0,nt.t2)(t.borderLineColor),this._borderLineSize=t.borderLineWidth,this._scaleFactor=s;const l=Math.min(Math.round((0,U.F2)(t.referenceSize*t.sizeRatio)),127);this._referenceSize=Math.round(Math.sqrt(256*l)),this._materialKey=t.materialKey;const c=at.qr.load(this._materialKey);c.sdf=!0,this._bitset=(t.alignment===st.v2.MAP?1:0)|(t.colorLocked?1:0)<<1,this._materialKey=c.data,this._decoration="none",this._lineHeight=1,this._lineWidth=512,this._isCIM=!0}static fromCIMText(t,e){const[i,s]=mt(t.scaleInfo,e);return new xn(t,i,s)}async analyze(t,e,i,s){const r=e.readLegacyFeature(),n=function(t,e,i,s){return"string"==typeof t.text?t.text:"function"==typeof t.text?t.text(e,i,s)??"":""}(this._cimTextLayer,r,i,s),o=await super.analyze(t,e,i,s,gn(n));return o&&o.glyphMosaicItems&&this._textToGlyphs.set(n,o.glyphMosaicItems),o}bindFeature(t,e,i){const s=t.readLegacyFeature();if(this._dynamicPropertyMap.forEach(((t,r)=>{this[r]=t(s,e,i)})),!this._text||0===this._text.length)return void(this._shapingInfo=null);this._size*=this._scaleFactor,this._scale=this._size/E.Ex,this._xOffset*=this._scaleFactor,this._yOffset*=this._scaleFactor,this._xAlignD=(0,rt.kH)(this._horizontalAlignment??"center"),this._yAlignD=(0,rt.b7)(this._verticalAlignment??"baseline");const r=this._textToGlyphs.get(this._text)??[];this.bindTextInfo(r,!1)}}class Mn extends(Ur(qs)){constructor(t,e,i,s,r,n,o,a,h,l,c,u,f,_,m,d){super(),this._effects=_||void 0;const p=at.dk.load(t);e&&(p.sdf=e.sdf,p.pattern=!0,p.textureBinding=e.textureBinding),this.fillColor=i,this.tl=s,this.br=r,this.aux21=(0,ot.UJ)(n,o),this.aux22=(0,ot.UJ)(a,h),this.aux3=(0,ot.Jz)(l,c,u,0),this._bitset=f,this._minMaxZoom=(0,ot.UJ)(Math.round(m*E.MI),Math.round(d*E.MI)),this._materialKey=p.data}static fromCIMFill(t,e,i){const s=t.color,r=s&&(0,nt.t2)(s)||0,n=t.materialKey,[o,a]=mt(t.scaleInfo,i);let h=(t.colorLocked?E.Uh:0)|(t.applyRandomOffset?E.jk:0)|(t.sampleAlphaOnly?E.Iv:0)|(t.hasUnresolvedReplacementColor?E.vw:0);if(!e)return new Mn(n,null,r,0,0,0,0,0,0,0,0,0,h,t.effects,o,a);const{rect:l,width:c,height:u}=e,f=t.scaleX||1,_=l.x+E.fL,m=l.y+E.fL,d=_+c,p=m+u,y=(0,U.F2)(t.height);let g=f*y;"CIMHatchFill"===t.cim.type&&(g*=c/u);let x=y;x<=0&&(x=p-m),x<E.uQ&&(x*=E.Ls,h|=E.U),x=Math.round(x);let M=g;M<=0&&(M=d-_),M<E.uQ&&(M*=E.Ls,h|=E.tz),M=Math.round(M);const b=(0,U.F2)(t.offsetX||0),P=(0,U.F2)(-t.offsetY||0),v=(0,ot.UJ)(_,m),S=(0,ot.UJ)(d,p);return new Mn(n,e,r,v,S,M,x,b,P,E.Ls,E.Ls,ar(t.angle),h,t.effects,o,a)}static fromSimpleFill(t,e,i=!1){const{color:s}=t,r=s&&"esriSFSNull"!==t.style&&(0,nt.aH)(s)||0;let n=i?E.Uh:0;const o=t.materialKey;let a;if(e){const{rect:t,width:i,height:s,pixelRatio:h}=e,l=t.x+E.fL,c=t.y+E.fL,u=l+i,f=c+s,_=(0,ot.UJ)(l,c),m=(0,ot.UJ)(u,f);let d=i/h;d<E.uQ&&(d*=E.Ls,n|=E.tz),d=Math.round(d);let p=s/h;p<E.uQ&&(p*=E.Ls,n|=E.U),p=Math.round(p),a=new Mn(o,e,r,_,m,d,p,0,0,E.Ls,E.Ls,0,n,null,0,ht)}else a=new Mn(o,null,r,0,0,0,0,0,0,0,0,0,n,null,0,ht);return a._maybeAddLineTemplate(t),a}static fromPictureFill(t,e,i=!1){const s=E.ru,{rect:r,width:n,height:o}=e,a=r.x+E.fL,h=r.y+E.fL,l=a+n,c=h+o,u=(0,ot.UJ)(a,h),f=(0,ot.UJ)(l,c);let _=i?E.Uh:0,m=(0,U.F2)(t.width);m<E.uQ&&(m*=E.Ls,_|=E.tz),m=Math.round(m);let d=(0,U.F2)(t.height);d<E.uQ&&(d*=E.Ls,_|=E.U),d=Math.round(d);const p=(0,U.F2)(t.xoffset),y=(0,U.F2)(-t.yoffset),g=t.materialKey,x=new Mn(g,e,s,u,f,m,d,p,y,E.Ls*t.xscale,E.Ls*t.yscale,0,_,null,0,ht);return x._maybeAddLineTemplate(t),x}}class bn{constructor(){this._resolver=null}isHeld(){return!!this._resolver}async acquire(){this._resolver?(await this._resolver.promise,await this.acquire()):this._resolver=(0,c.hh)()}release(){const t=this._resolver;this._resolver=null,t?.resolve()}}const Pn={marker:p.LW.MARKER,fill:p.LW.FILL,line:p.LW.LINE,text:p.LW.TEXT};class vn{constructor(t,e,i,s){const r={minScale:e?.minScale,maxScale:e?.maxScale},n=function(t){return t.minScale||t.maxScale?t.minScale+"-"+t.maxScale:""}(r);this.layers=t,this.data=e,this.hash=this._createHash()+n,this.rendererKey=i;const o={isOutline:!1,placement:null,symbologyType:p.mD.DEFAULT,vvFlags:i};for(const e of t){const t=Pn[e.type];o.isOutline="line"===e.type&&e.isOutline,e.materialKey=(0,at.jj)(t,o),e.maxVVSize=s,e.scaleInfo=r,e.templateHash+=n}}get type(){return"expanded-cim"}_createHash(){let t="";for(const e of this.layers)t+=e.templateHash;return t}}var Sn=i(32243),wn=i(81271),Cn=i(48522),In=i(25929),Ln=i(27883),kn=i(74499);async function zn(t,e,i){if(!t.name)throw new o.Z("style-symbol-reference-name-missing","Missing name in style symbol reference");if(t.styleName&&"Esri2DPointSymbolsStyle"===t.styleName)return async function(t,e){const i=Ln.wm.replaceAll(/\{SymbolName\}/gi,t.name);try{const t=await(0,Ln.EJ)(i,e);return(0,Ln.KV)(t.data)}catch(t){return(0,c.r9)(t),null}}(t,i);try{return async function(t,e,i,s){const r={portal:i&&null!=i.portal?i.portal:Cn.Z.getDefault(),url:(0,wn.mN)(t.baseUrl),origin:"portal-item"},n=(0,kn.m)(e,t.data);if(!n)throw new o.Z("symbolstyleutils:symbol-name-not-found",`The symbol name '${e}' could not be found`,{symbolName:e});let a=(0,In.f)((0,Ln.v9)(n,"cimRef"),r);(0,Sn.XO)()&&(a=(0,Sn.pJ)(a));try{const t=await(0,Ln.EJ)(a,s);return(0,Ln.KV)(t.data)}catch(t){return(0,c.r9)(t),null}}(await(0,Ln.n2)(t,e,i),t.name,e,i)}catch(t){return(0,c.r9)(t),null}}const Tn=async(t,e,i)=>{const s=new nn(i,e);return new vn(await s.analyzeSymbolReference(t.data,!1),t.data,t.rendererKey,t.maxVVSize)};async function On(t,e,i,s){if(!t)return null;if("cim"===t.type)return Tn(t,e,i);if("web-style"===t.type){const r={type:"cim",data:await zn(t,null,s)??void 0,rendererKey:t.rendererKey,maxVVSize:t.maxVVSize};return Tn(r,e,i)}return t}function En(t){if(!t)return null;const{avoidSDFRasterization:e,type:i,cim:s,url:r,materialHash:n,maxVVSize:o}=t,a={cim:s,type:i,mosaicHash:n,url:r,size:null,dashTemplate:null,path:null,text:null,fontName:null,animatedSymbolProperties:null,avoidSDFRasterization:e};switch(i){case"marker":o&&"size"in s&&(s.size=Math.max(o,s.size)),a.size=t.size,a.path=t.path,a.animatedSymbolProperties=t.animatedSymbolProperties;break;case"line":a.dashTemplate=t.dashTemplate;break;case"text":a.text=t.text,a.fontName=t.fontName}return a}const Fn=h.Z.getLogger("esri.views.2d.engine.webgl.mesh.templates.WGLTemplateStore"),An={sortKey:null,templates:new Array},Nn={isOutline:!1,placement:null,symbologyType:p.mD.DEFAULT,vvFlags:0},Rn={...or.eG,hash:JSON.stringify(or.eG),materialKey:(0,at.jj)(p.LW.MARKER,Nn)},Vn={...or.wW,hash:JSON.stringify(or.wW),materialKey:(0,at.jj)(p.LW.LINE,Nn)},Wn={...or.lj,hash:JSON.stringify(or.lj),materialKey:(0,at.jj)(p.LW.FILL,Nn)};function Gn(t,e){const i=t.length;return t.push(null),e.then((e=>t[i]=e)),t}function Dn(t){return null!=t&&!!(1&t)}class Bn{constructor(t,e){this._idCounter=1,this._templateIdCounter=1,this._idToTemplateGroup=new Map,this._symbolToTemplate=new Map,this._fetchQueue=[],this._idToResolver=new Map,this._cimTemplateCache=new Map,this._cimAnalyses=[],this._lock=new bn,this._fetchResource=t,this._tileInfo=e}get _markerError(){return this._errorTemplates.marker[0]}get _fillError(){return this._errorTemplates.fill[0]}get _lineError(){return this._errorTemplates.line[0]}get _textError(){return this._errorTemplates.line[0]}createTemplateGroup(t,e,i=null){this._initErrorTemplates();const s=t.hash,r=this._symbolToTemplate.get(s);if(null!=r)return r;const n=new Array,o={sortKey:i,templates:n};e&&this._createMeshTemplates(n,e,!0),this._createMeshTemplates(n,t,!1);const a=this._createGroupId("expanded-cim"===t.type&&Xn(t));return this._idToTemplateGroup.set(a,o),this._symbolToTemplate.set(s,a),a}getTemplateGroup(t){return this._idToTemplateGroup.get(t)??An}getDynamicTemplateGroup(t){return this._idToTemplateGroup.has(t)?(Dn(t)||Fn.error("mapview-template-store",`Id ${t} does not refer to a dynamic template`),this._idToTemplateGroup.get(t)):An}getMosaicItem(t,e){const i=this._createTemplateId(),s=new Promise((t=>this._idToResolver.set(i,t)));return this._fetchQueue.push({symbol:t,id:i,glyphIds:e}),s}finalize(t){return this._fetchQueue.length||this._lock.isHeld()?async function(t,e,i){try{await t.acquire(),await e(i),t.release()}catch(e){throw t.release(),e}}(this._lock,this._fetchAllQueuedResources.bind(this),t):Promise.resolve()}_initErrorTemplates(){this._errorTemplates||(this._errorTemplates={fill:this._createMeshTemplates([],Wn,!1),marker:this._createMeshTemplates([],Rn,!1),line:this._createMeshTemplates([],Vn,!1)})}_fetchAllQueuedResources(t){if(!this._fetchQueue.length)return Promise.resolve();const e=this._fetchQueue,i=this._cimAnalyses;return this._fetchQueue=[],this._cimAnalyses=[],Promise.all(i).then((()=>this._fetchResource(e,t).then((t=>{for(const{id:e,mosaicItem:i}of t)this._idToResolver.get(e)(i),this._idToResolver.delete(e)})))).catch((t=>{(0,c.D_)(t)?this._fetchQueue=this._fetchQueue.concat(e):"worker:port-closed"===t.name||Fn.error(new o.Z("mapview-template-store","Unable to fetch requested texture resources",t))}))}_createGroupId(t){return this._idCounter++<<1|(t?1:0)}_createTemplateId(){return this._templateIdCounter++}async _createSMS(t){const{spriteMosaicItem:e}=await this.getMosaicItem(t);return fn(e,Fn)?nr.fromSimpleMarker(t,e):this._markerError}async _createPMS(t){const{spriteMosaicItem:e}=await this.getMosaicItem(t);return fn(e,Fn)?nr.fromPictureMarker(t,e):this._markerError}async _createSFS(t,e){const{spriteMosaicItem:i}=await this.getMosaicItem(t);return fn(i,Fn)?Mn.fromSimpleFill(t,i,e):this._fillError}async _createPFS(t,e){const{spriteMosaicItem:i}=await this.getMosaicItem(t);return fn(i,Fn)?Mn.fromPictureFill(t,i,e):this._fillError}async _createSLS(t,e){const{spriteMosaicItem:i}=await this.getMosaicItem(t);return fn(i,Fn)?Xr.fromSimpleLine(t,i):this._lineError}async _createLMS(t){const{spriteMosaicItem:e}=await this.getMosaicItem(t);return fn(e,Fn)?nr.fromLineSymbolMarker(t,e):this._markerError}async _createTS(t){const{glyphMosaicItems:e}=await this.getMosaicItem(t);return Ks.fromText(t,e??[])}async _createCIMText(t){const{glyphMosaicItems:e}=await this.getMosaicItem(En(t),gn(t.text));return fn(e,Fn)?Ks.fromCIMText(t,e,this._tileInfo):this._textError}async _createCIMFill(t){const{spriteMosaicItem:e}=await this.getMosaicItem(En(t));return fn(e,Fn)?Mn.fromCIMFill(t,e,this._tileInfo):this._fillError}async _createCIMLine(t){const{spriteMosaicItem:e}=await this.getMosaicItem(En(t));return fn(e,Fn)?Xr.fromCIMLine(t,e,this._tileInfo):this._lineError}async _createCIMMarker(t){const{spriteMosaicItem:e}=await this.getMosaicItem(En(t));return fn(e,Fn)?nr.fromCIMMarker(t,e,this._tileInfo):this._markerError}async _createCIM(t){const e=t.templateHash;let i=this._cimTemplateCache.get(e);if(null!=i)return i;switch(t.type){case"marker":i=await this._createCIMMarker(t);break;case"line":i=await this._createCIMLine(t);break;case"fill":i=await this._createCIMFill(t);break;case"text":i=await this._createCIMText(t)}return this._cimTemplateCache.set(e,i),i}async _createDynamicCIM(t){const e=t.templateHash;let i=this._cimTemplateCache.get(e);if(null!=i)return i;switch(t.type){case"marker":i=yn.fromCIMMarker(t,this._tileInfo);break;case"line":i=mn.fromCIMLine(t,this._tileInfo);break;case"fill":i=_n.fromCIMFill(t,this._tileInfo);break;case"text":i=xn.fromCIMText(t,this._tileInfo)}return this._cimTemplateCache.set(e,i),i}_createPrimitiveMeshTemplates(t,e,i){switch(e.type){case"esriSMS":return Gn(t,this._createSMS(e));case"esriPMS":return Gn(t,this._createPMS(e));case"esriSFS":return Gn(t,this._createSFS(e,i));case"line-marker":return Gn(t,this._createLMS(e));case"esriPFS":return Gn(t,this._createPFS(e,i));case"esriSLS":return Gn(t,this._createSLS(e,!1));case"esriTS":return Gn(t,this._createTS(e));default:return Fn.error("Unable to create mesh template for unknown symbol type {: $ }{symbol.type}"),t}}_createMeshTemplates(t,e,i){if(e.type.includes("3d"))return Fn.error("3D symbols are not supported with MapView"),t;if("expanded-cim"===e.type){for(const i of e.layers)"function"==typeof i.materialHash?Gn(t,this._createDynamicCIM(i)):Gn(t,this._createCIM(i));return t}if("composite-symbol"===e.type){for(const s of e.layers)this._createPrimitiveMeshTemplates(t,s,i);return t}return"cim"===e.type||"label"===e.type||"web-style"===e.type?t:this._createPrimitiveMeshTemplates(t,e,i)}}const Xn=t=>{if(!t.layers)return!1;for(const e of t.layers)if("function"==typeof e.materialHash)return!0;return!1};class Un{constructor(t,e,i){this._loadPromise=(0,B.j)(),this._geometryType=t,this._idField=e,this._templateStore=i}update(t,e){null!=t.mesh.labels&&(this._labelTemplates=this._createLabelTemplates(t.mesh.labels,e)),this._schema=t}_createLabelTemplates(t,e){const i=new Map;if("simple"===t.type){for(const s of t.classes){const t=ir.fromLabelClass(s,e);i.set(s.index,t)}return i}for(const s in t.classes){const r=t.classes[s];for(const t of r){const s=ir.fromLabelClass(t,e);i.set(t.index,s)}}return i}get templates(){return this._templateStore}async analyze(t,e,i,s,r,n,o){if((0,c.Hc)(o))return;let a;"dictionary"===i?.type&&(a=await i.analyze(this._idField,t.copy(),e,r,n,o));let h=0;for(;t.next();){let e=null;if(e=a?a[h++]:null!=s&&(0,d.nE)(t.getDisplayId())&&1!==t.readAttribute("cluster_count")?s.match(this._idField,t,this._geometryType,r,n):i.match(this._idField,t,this._geometryType,r,n),t.setGroupId(e),Dn(e)){const i=this._templateStore.getDynamicTemplateGroup(e).templates;for(const e of i)e&&e.analyze&&e.analyze(this._templateStore,t,r,n)}}return await this._loadPromise,this._templateStore.finalize(o)}async analyzeGraphics(t,e,i,s,r,n){if((0,c.Hc)(n))return;const o=t.getCursor();for(i&&await i.analyze(this._idField,o.copy(),e,s,r,n);o.next();){let t=o.getGroupId();if(null!=t&&-1!==t||(t=i?.match(this._idField,o,o.geometryType,s,r),o.setGroupId(t)),Dn(t)){const e=this._templateStore.getDynamicTemplateGroup(t).templates;for(const t of e)t&&t.analyze&&t.analyze(this._templateStore,o,s,r)}o.setGroupId(t)}return await this._loadPromise,this._templateStore.finalize(n)}writeGraphic(t,e,i,s){const r=e.getGroupId(),n=e.getDisplayId(),o=this._templateStore.getTemplateGroup(r);if(t.featureStart(e.insertAfter,0),null!=n){if(Dn(r))for(const t of o.templates)t&&t.bindFeature(e,null,null);if(o){for(const r of o.templates)r&&r.write(t,e,i,s);t.featureEnd()}}}writeCursor(t,e,i,s,r,n,o){const a=e.getGroupId(),h=e.getDisplayId(),l=this._templateStore.getTemplateGroup(a),c=l.templates,u=this._getSortKeyValue(e,l);if(t.featureStart(0,u),null!=h&&c){if(Dn(a))for(const t of c)t.bindFeature(e,i,s);for(const i of c)i.write(t,e,r,o);if(null!=n&&t.hasRecords){const i=n&&this._findLabelRef(c);this._writeLabels(t,e,n,i,r,o)}t.featureEnd()}}_getSortKeyValue(t,e){const i=this._schema.mesh.sortKey;if(null==i)return 0;let s=0;return s=!0===i.byRenderer&&null!=e.sortKey?e.sortKey:null!=i.fieldIndex?t.getComputedNumericAtIndex(i.fieldIndex):null!=i.field?t.readAttribute(i.field):t.readAttribute(this._idField),s*="asc"===i.order?1:-1,null==s||isNaN(s)?0:s}_findLabelRef(t){for(const e of t)if(e instanceof nr)return e;return null}_writeLabels(t,e,i,s,r,n){for(const o of i)if(null!=o&&o){const{glyphs:i,rtl:a,index:h}=o,l=this._labelTemplates.get(h);if(!l)continue;l.setZoomLevel(r),l.bindReferenceTemplate(s),l.bindTextInfo(i,a),l.write(t,e,null,n)}}}var Hn=i(13867);const Yn=h.Z.getLogger("esri/views/2d/engine/webgl/util/Matcher");async function Jn(t,e,i,s){switch(t.type){case"simple":case"heatmap":return Zn.fromBasicRenderer(t,e,i,s);case"map":return jn.fromUVRenderer(t,e,i,s);case"interval":return Kn.fromCBRenderer(t,e,i,s);case"dictionary":return to.fromDictionaryRenderer(t,e,i,s);case"pie-chart":return qn.fromPieChartRenderer(t,e,i,s);case"subtype":return qn.fromSubtypes(t,e,i,s)}}class Zn{constructor(){this.type="feature",this._defaultResult=null}static async fromBasicRenderer(t,e,i,s){const r=new Zn;if(t.symbol){const n=await On(t.symbol,i,s),o=e.createTemplateGroup(n,null);r.setDefault(o)}return r}static async fromPieChartRenderer(t,e,i,s){const r=new Zn;if(t.markerSymbol){const n=await On(t.markerSymbol,i,s);let o;t.fillSymbol&&(o=await On(t.fillSymbol,i,s));const a=e.createTemplateGroup(n,o);r.setDefault(a)}return r}size(){return 1}getDefault(){return this._defaultResult}setDefault(t){this._defaultResult=t}match(t,e,i,s,r){return this.getDefault()}async analyze(t,e,i,s,r,n){return null}}class qn extends Zn{constructor(t,e){super(),this._subMatchers=t,this._subtypeField=e}static async fromSubtypes(t,e,i,s){const r=new Map,n=[];for(const o in t.renderers){const a=parseInt(o,10),h=Jn(t.renderers[o],e,i,s).then((t=>r.set(a,t)));n.push(h)}return await Promise.all(n),new qn(r,t.subtypeField)}match(t,e,i,s,r){const n=e.readAttribute(this._subtypeField),o=this._subMatchers.get(n);return o?o.match(t,e,i,s,r):null}}class Kn extends Zn{constructor(t,e,i,s){super(),this.type="interval",this._intervals=[],this._isMaxInclusive=e,this._fieldIndex=s,this._field=t,this._normalizationInfo=i}static async fromCBRenderer(t,e,i,s){const{isMaxInclusive:r,normalizationField:n,normalizationTotal:o,normalizationType:a}=t,h=t.field,l=new Kn(h,r,{normalizationField:n,normalizationTotal:o,normalizationType:a},t.fieldIndex),c=await On(t.backgroundFillSymbol,i,s);await Promise.all(t.intervals.map((async t=>{const r=await On(t.symbol,i,s),n=await e.createTemplateGroup(r,c),o={min:t.min,max:t.max};l.add(o,n)})));const u=await On(t.defaultSymbol,i,s);if(u){const t=await e.createTemplateGroup(u,c);l.setDefault(t)}return l}add(t,e){this._intervals.push({interval:t,result:e}),this._intervals.sort(((t,e)=>t.interval.min-e.interval.min))}size(){return super.size()+this._intervals.length}match(t,e,i,s,r){if(null==this._fieldIndex&&!this._field)return this.getDefault();const n=null!=this._fieldIndex?e.getComputedNumericAtIndex(this._fieldIndex):this._getValueFromField(e);if(null==n||isNaN(n)||n===1/0||n===-1/0)return this.getDefault();for(let t=0;t<this._intervals.length;t++){const{interval:e,result:i}=this._intervals[t],s=n>=e.min,r=this._isMaxInclusive?n<=e.max:n<e.max;if(s&&r)return i}return this.getDefault()}_needsNormalization(){const t=this._normalizationInfo;return t&&(t.normalizationField||t.normalizationTotal||t.normalizationType)}_getValueFromField(t){const e=t.readAttribute(this._field);if(!this._needsNormalization()||null==e)return e;const{normalizationField:i,normalizationTotal:s,normalizationType:r}=this._normalizationInfo,n=t.readAttribute(i)??1;if(r)switch(r){case"esriNormalizeByField":return n?e/n:void 0;case"esriNormalizeByLog":return Math.log(e)*Math.LOG10E;case"esriNormalizeByPercentOfTotal":return e/s*100;default:return void Yn.error(`Found unknown normalization type: ${r}`)}else Yn.error("Normalization is required, but no type was set!")}}class jn extends Zn{constructor(t,e,i){super(),this.type="map",this._nullResult=null,this._resultsMap=new Map,this._fields=[],this._fieldsIndex=i,this._fields=t,this._seperator=e||""}static async fromUVRenderer(t,e,i,s){const r=t.fieldDelimiter,n=[t.field];t.field2&&n.push(t.field2),t.field3&&n.push(t.field3);const o=await On(t.backgroundFillSymbol,i,s),a=new jn(n,r,t.fieldIndex);await Promise.all(t.map.map((async(t,r)=>{const n=await On(t.symbol,i,s),h=r+1,l=await e.createTemplateGroup(n,o,h);"<Null>"===t.value?a.setNullResult(l):a.add(t.value,l)})));const h=await On(t.defaultSymbol,i,s);if(h){const t=Number.MAX_SAFE_INTEGER,i=await e.createTemplateGroup(h,o,t);a.setDefault(i)}return a}setNullResult(t){this._nullResult=t}add(t,e){this._resultsMap.set(t.toString(),e)}size(){return super.size()+this._resultsMap.size}match(t,e,i,s,r){if(null==this._fieldsIndex&&!this._fields)return this.getDefault();const n=null!=this._fieldsIndex?e.getComputedStringAtIndex(this._fieldsIndex):this._getValueFromFields(e);if(null!==this._nullResult&&(null==n||""===n||"<Null>"===n))return this._nullResult;if(null==n)return this.getDefault();const o=n.toString();return this._resultsMap.has(o)?this._resultsMap.get(o):this.getDefault()}_getValueFromFields(t){const e=[];for(const i of this._fields){const s=t.readAttribute(i);null==s||""===s?e.push("<Null>"):e.push(s)}return e.join(this._seperator)}}let $n;async function Qn(){return $n||($n=i.e(5329).then(i.bind(i,25329))),$n}class to extends Zn{constructor(t,e,i,s,r,n){super(),this.type="dictionary",this._groupIdCache=new Hn.z(100),this._loader=t,this._fieldMap=t.fieldMap,this._symbolFields=t.getSymbolFields(),this._templates=e,this._info=i,this._scaleFn=s,this._schemaUtilsModule=r,this._symbolOptions=n}static async fromDictionaryRenderer(t,e,s,r){const[{DictionaryLoader:n},o]=await Promise.all([i.e(4475).then(i.bind(i,84475)),Qn()]),a=new n(t.url,t.config,t.fieldMap);await a.fetchResources({spatialReference:s.spatialReference,fields:s.fields});const h=await async function(t,e){const i=t||1;if("number"==typeof i)return(t,e,s)=>i;const s=await(0,Ni.Yi)(i,e.spatialReference,e.fields);return(t,i,r)=>vs(s,t,{$view:r},e.geometryType,i)||1}(t.scaleExpression,s);return new to(a,e,s,h,o,t.symbolOptions)}async _analyzeFeature(t,e,i,s,r){const n=t.readLegacyFeature(),a=this._scaleFn(n,i,s),h=this._attributeHash(n)+"-"+a,l=this._groupIdCache.get(h);if(l)return l;const c={...s,spatialReference:this._info.spatialReference,abortOptions:r,fields:this._info.fields},u=await this._loader.getSymbolAsync(n,c),f=On(this._schemaUtilsModule.createSymbolSchema(u,this._symbolOptions),this._info,e,r).then((t=>{if("expanded-cim"!==t?.type)return Yn.error(new o.Z("mapview-bad-type",`Found unexpected type ${t?.type} in dictionary response`)),null;t.hash+="-"+a;for(const e of t.layers)e.scaleFactor=a,e.templateHash+="-"+a;return this._templates.createTemplateGroup(t,null)}));return this._groupIdCache.put(h,f,1),f}async analyze(t,e,i,s,r,n){const o=e.getCursor(),a=[];for(;o.next();)a.push(this._analyzeFeature(o,i,s,r,n));return Promise.all(a).then((t=>t.filter(u.pC)))}match(t,e,i,s,r){return null}_attributeHash(t){let e="";for(const i of this._symbolFields){const s=this._fieldMap?.[i];s&&(e+=t.attributes[s]+"-")}return e}}var eo=i(47988);class io{constructor(t){this._remoteClient=t,this._resourceMap=new Map,this._inFlightResourceMap=new Map,this.geometryEngine=null,this.geometryEnginePromise=null}destroy(){}async fetchResource(t,e){const i=this._resourceMap,s=i.get(t);if(s)return s;let r=this._inFlightResourceMap.get(t);if(r)return r;try{r=this._remoteClient.invoke("tileRenderer.fetchResource",{url:t},{...e}),this._inFlightResourceMap.set(t,r),r.then((e=>(this._inFlightResourceMap.delete(t),i.set(t,e),e)))}catch(t){return(0,c.D_)(t)?null:{width:0,height:0}}return r}getResource(t){return this._resourceMap.get(t)??null}loadFont(t){return Promise.resolve(null)}}function so(t,e){return(!t.minScale||t.minScale>=e)&&(!t.maxScale||t.maxScale<=e)}function ro(t){const e=t.message,i={message:{data:{},tileKey:e.tileKey,tileKeyOrigin:e.tileKeyOrigin,version:e.version},transferList:new Array};for(const t in e.data){const s=t,r=e.data[s];if(i.message.data[s]=null,null!=r){const t=r.stride,e=r.indices.slice(0),n=r.vertices.slice(0),o=r.records.slice(0),a=r.metrics?.slice(0),h={stride:t,indices:e,vertices:n,records:o,metrics:a};i.transferList.push(e,n,o),i.message.data[s]=h}}return i}let no=class extends eo.Z{constructor(){super(...arguments),this.type="symbol",this._matchers={feature:null,aggregate:null},this._bufferData=new Map,this._bufferIds=new Map}initialize(){this.handles.add([this.tileStore.on("update",this.onTileUpdate.bind(this))]),this._resourceManagerProxy=new io(this.remoteClient)}destroy(){this._resourceManagerProxy.destroy()}get supportsTileUpdates(){return!0}forEachBufferId(t){this._bufferIds.forEach((e=>{e.forEach(t)}))}async update(t,e){const i=e.schema.processors[0];if("symbol"!==i.type)return;const s=(0,_.Hg)(this._schema,i);((0,_.uD)(s,"mesh")||(0,_.uD)(s,"target"))&&(t.mesh=!0,t.why?.mesh.push("Symbology changed"),this._schema=i,this._factory=this._createFactory(i),this._factory.update(i,this.tileStore.tileScheme.tileInfo))}onTileMessage(t,e,i,s){return(0,c.k_)(s),this._onTileData(t,e,i,s)}onTileClear(t,e){const i={clear:!0,end:e};return this._bufferData.delete(t.key.id),this._bufferIds.delete(t.key.id),this.remoteClient.invoke("tileRenderer.onTileData",{tileKey:t.id,data:i})}onTileError(t,e,i){const s=i.signal,r={tileKey:t.id,error:e};return this.remoteClient.invoke("tileRenderer.onTileError",r,{signal:s})}onTileUpdate(t){for(const e of t.removed)this._bufferData.has(e.key.id)&&this._bufferData.delete(e.key.id),this._bufferIds.has(e.key.id)&&this._bufferIds.delete(e.key.id);for(const e of t.added)this._bufferData.forEach((t=>{for(const i of t)i.message.tileKey===e.id&&this._updateTileMesh("append",e,ro(i),[],!1,!1,null)}))}_addBufferData(t,e){this._bufferData.has(t)||this._bufferData.set(t,[]),this._bufferData.get(t)?.push(ro(e))}_createFactory(t){const{geometryType:e,objectIdField:i,fields:s}=this.service,r={geometryType:e,fields:s,spatialReference:m.Z.fromJSON(this.spatialReference)},n=new Bn(((t,e)=>this.remoteClient.invoke("tileRenderer.getMaterialItems",t,e)),this.tileStore.tileScheme.tileInfo),{matcher:o,aggregateMatcher:a}=t.mesh;return this._store=n,this._matchers.feature=Jn(o,n,r,this._resourceManagerProxy),this._matchers.aggregate=a?Jn(a,n,r,this._resourceManagerProxy):null,new Un(e,i,n)}async _onTileData(t,e,i,s){(0,c.k_)(s);const{type:r,addOrUpdate:n,remove:o,clear:a,end:h}=e,l=!!this._schema.mesh.sortKey;if(!n){const e={type:r,addOrUpdate:null,remove:o,clear:a,end:h,sort:l};return this.remoteClient.invoke("tileRenderer.onTileData",{tileKey:t.id,data:e},s)}const u=this._processFeatures(t,n,i,s,e.status?.version);try{const i=await u;if(null==i){const e={type:r,addOrUpdate:null,remove:o,clear:a,end:h,sort:l};return this.remoteClient.invoke("tileRenderer.onTileData",{tileKey:t.id,data:e},s)}const n=[];for(const e of i){let i=!1;const s=e.message.bufferIds,r=t.key.id,o=e.message.tileKey;if(r!==o&&null!=s){if(!this.tileStore.get(o)){this._addBufferData(r,e),n.push(e);continue}let t=this._bufferIds.get(o);t||(t=new Set,this._bufferIds.set(o,t));const a=Array.from(s);for(const e of a){if(t.has(e)){i=!0;break}t.add(e)}}i||(this._addBufferData(r,e),n.push(e))}await Promise.all(n.map((i=>{const n=t.key.id===i.message.tileKey,o=n?e.remove:[],a=n&&e.end;return this._updateTileMesh(r,t,i,o,a,!!e.clear,s.signal)})))}catch(e){this._handleError(t,e,s)}}async _updateTileMesh(t,e,i,s,r,n,o){const a=t,h=i.message.tileKey,l=!!this._schema.mesh.sortKey;h!==e.key.id&&(r=!1);const u=i?.message,f={type:a,addOrUpdate:u,remove:s,clear:n,end:r,sort:l},_={transferList:i?.transferList??[],signal:o};return(0,c.k_)(_),this.remoteClient.invoke("tileRenderer.onTileData",{tileKey:h,data:f},_)}async _processFeatures(t,e,i,s,r){if(null==e||!e.hasFeatures)return null;const n={transform:t.transform,hasZ:!1,hasM:!1},o=this._factory,a={viewingMode:"",scale:t.scale},h=await this._matchers.feature,l=await this._matchers.aggregate;(0,c.k_)(s);const u=this._getLabelInfos(t,e);return await o.analyze(e.getCursor(),this._resourceManagerProxy,h,l,n,a),(0,c.k_)(s),this._writeFeatureSet(t,e,n,u,o,i,r)}_writeFeatureSet(t,e,i,s,r,n,o){const a=e.getSize(),h=this._schema.mesh.matcher.symbologyType,l=new D(t.key.id,{features:a,records:a,metrics:0},h,n,h!==p.mD.HEATMAP,o),c={viewingMode:"",scale:t.scale},u=e.getCursor();for(;u.next();)try{const e=u.getDisplayId(),n=null!=s?s.get(e):null;r.writeCursor(l,u,i,c,t.level,n,this._resourceManagerProxy)}catch(t){}const f=t.tileInfoView.tileInfo.isWrappable;return l.serialize(f)}_handleError(t,e,i){if(!(0,c.D_)(e)){const s={tileKey:t.id,error:e.message};return this.remoteClient.invoke("tileRenderer.onTileError",s,{signal:i.signal})}return Promise.resolve()}_getLabelingSchemaForScale(t){const e=this._schema.mesh.labels;if(null==e)return null;if("subtype"===e.type){const i={type:"subtype",classes:{}};let s=!1;for(const r in e.classes){const n=e.classes[r].filter((e=>so(e,t.scale)));s=s||!!n.length,i.classes[r]=n}return s?i:null}const i=e.classes.filter((e=>so(e,t.scale)));return i.length?{type:"simple",classes:i}:null}_getLabels(t,e){if("subtype"===e.type){const i=this.service.subtypeField;(0,l.O3)(i,"Expected to find subtype Field");const s=t.readAttribute(i);return null==s?[]:e.classes[s]??[]}return e.classes}_getLabelInfos(t,e){const i=this._getLabelingSchemaForScale(t);if(null==i)return null;const s=new Map,r=e.getCursor();for(;r.next();){const t=r.getDisplayId(),e=[],o=(0,d.nE)(t),a=o&&1!==r.readAttribute("cluster_count")?"aggregate":"feature",h=this._getLabels(r,i);for(const i of h){if(i.target!==a)continue;const s=r.getStorage(),h=o&&"feature"===a?s.getComputedStringAtIndex(r.readAttribute("referenceId"),i.fieldIndex):s.getComputedStringAtIndex(t,i.fieldIndex);if(!h)continue;const l=n(h.toString()),c=l[0],u=l[1];this._store.getMosaicItem(i.symbol,gn(c)).then((t=>{e[i.index]={glyphs:t.glyphMosaicItems??[],rtl:u,index:i.index}}))}s.set(t,e)}return s}};no=(0,s._)([(0,f.j)("esri.views.2d.layers.features.processors.SymbolProcessor")],no);const oo=no},14867:(t,e,i)=>{function s(t,e,i,s){const r=t.clone(),n=1<<r.level,o=r.col+e,a=r.row+i;return s&&o<0?(r.col=o+n,r.world-=1):o>=n?(r.col=o-n,r.world+=1):r.col=o,r.row=a,r}i.d(e,{M:()=>s})}}]);
|