@arcgis/core 5.2.0-next.156 → 5.2.0-next.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analysis/LineOfSightAnalysis.d.ts +49 -32
- package/analysis/LineOfSightAnalysisObserver.d.ts +19 -3
- package/analysis/LineOfSightAnalysisTarget.d.ts +19 -3
- package/analysis/Viewshed.d.ts +23 -3
- package/analysis/ViewshedAnalysis.d.ts +33 -13
- package/arcade/geometry/operatorsWorkerConnection.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{925271bb763607a326ae.js → 2f04b8679c9f15390517.js} +1 -1
- package/assets/esri/core/workers/chunks/35e5762642d1a3a2e375.js +1 -0
- package/assets/esri/core/workers/chunks/{544070198d2ca556103a.js → 44918ff37818a7d36d76.js} +1 -1
- package/assets/esri/core/workers/chunks/{be5f92e98d09d6e6e38e.js → 4bb1bb3ffb1b71bc43c8.js} +1 -1
- package/assets/esri/core/workers/chunks/{1aa4f5394a596e544aeb.js → 4eae066673484986d4c1.js} +1 -1
- package/assets/esri/core/workers/chunks/{5f4feca26102088ea565.js → 60737732ce495bbdd0fc.js} +1 -1
- package/assets/esri/core/workers/chunks/{916b363c342b61ba5461.js → 787c1a8bda7d745633f2.js} +1 -1
- package/assets/esri/core/workers/chunks/{acfa03c65ba3ca6c5685.js → 8715661a838361d4211a.js} +1 -1
- package/assets/esri/core/workers/chunks/9215b59c5ccecf9add58.js +1 -0
- package/assets/esri/core/workers/chunks/{fafb92ca2c5e4b0b2c23.js → a09d2e1e2540921e4717.js} +1 -1
- package/assets/esri/core/workers/chunks/cb4be68cc5085d421615.js +1 -0
- package/assets/esri/core/workers/chunks/{de6081df29183bf80787.js → d65383f4058dc813f40d.js} +1 -1
- package/assets/esri/core/workers/chunks/d6cd0039d6e9c40961e3.js +1 -0
- package/assets/esri/views/interactive/tooltip/t9n/messages.ar.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.bg.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.bs.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.ca.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.cs.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.da.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.de.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.el.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.es.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.et.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.fi.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.fr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.he.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.hr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.hu.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.id.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.it.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.ja.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.ko.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.lt.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.lv.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.nl.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.no.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.pl.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.ro.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.ru.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.sk.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.sl.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.sr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.sv.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.th.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.tr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.uk.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.vi.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/Editor/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.zh-TW.json +1 -1
- package/config.js +1 -1
- package/core/workers/WorkerOwner.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/core/workers/workers.js +2 -2
- package/core/workers.d.ts +9 -0
- package/geometry/Mesh.js +1 -1
- package/geometry/support/curves/bezierCurveUtils.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/kernel.js +1 -1
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/LineOfSightLayer.d.ts +10 -8
- package/layers/ViewshedLayer.d.ts +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/raster/datasets/BaseRaster.js +1 -1
- package/layers/raster/datasets/ImageAuxRaster.js +2 -2
- package/layers/raster/datasets/InMemoryRaster.js +1 -1
- package/layers/support/kmlUtils.js +1 -1
- package/package.json +2 -2
- package/smartMapping/statistics/support/statsWorker.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/OGCFeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/support/utils.js +1 -1
- package/symbols/support/ElevationInfo.d.ts +4 -3
- package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/types.d.ts +14 -3
- package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +39 -13
- package/views/3d/analysis/Viewshed/types.d.ts +7 -0
- package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +43 -15
- package/views/interactive/options/TooltipOptions.d.ts +2 -0
- package/views/interactive/sketch/SketchTooltipOptions.d.ts +2 -0
- package/views/layers/LineOfSightLayerView.d.ts +35 -13
- package/views/layers/SketchLayerView.d.ts +1 -0
- package/views/layers/ViewshedLayerView.d.ts +36 -12
- package/assets/esri/core/workers/chunks/bac8c32665e982896ecc.js +0 -1
- package/assets/esri/core/workers/chunks/d9b1aed88b205689cec6.js +0 -1
- package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +0 -1
- package/assets/esri/core/workers/chunks/f4f9d08b2df856e3b694.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3500],{49859(e,t,i){i.d(t,{A:()=>L});var l=i(32198),r=i(56507),n=i(49186),o=i(25482),s=i(53966),a=i(17676),u=i(563),c=i(91429),h=i(78888),f=i(5443),m=i(86738),d=i(16930),p=i(7548),x=i(4366),g=i(37373);const y=new Map,I=new class{constructor(e=15e3,t=5e3,i=-1){this._timer=null,this._cachedBlocks=new Map,this._size=-1,this._duration=e,this._interval=Math.min(e,t),this._size=i}decreaseRefCount(e,t){let i=e+"/"+t,l=this._cachedBlocks;if(l.has(i)){let e=l.get(i);return e.refCount--,e.refCount<=0&&(l.delete(i),e.controller&&e.controller.abort()),e.refCount}return 0}getBlock(e,t){let i=e+"/"+t,l=this._cachedBlocks;if(l.has(i)){let e=l.get(i);return e.ts=Date.now(),e.refCount++,l.delete(i),l.set(i,e),e.block}return null}putBlock(e,t,i,l){let r=this._cachedBlocks,n=e+"/"+t;if(r.has(n)){let e=r.get(n);e.ts=Date.now(),e.refCount++}else r.set(n,{block:i,ts:Date.now(),refCount:1,controller:l});this._trim(),this._updateTimer()}deleteBlock(e,t){let i=this._cachedBlocks,l=e+"/"+t;i.has(l)&&i.delete(l)}updateMaxSize(e){this._size=e,this._trim()}empty(){this._cachedBlocks.clear(),this._clearTimer()}getCurrentSize(){return this._cachedBlocks.size}_updateTimer(){if(null!=this._timer)return;let e=this._cachedBlocks;this._timer=setInterval(()=>{let t=Array.from(e),i=Date.now();for(let l=0;l<t.length&&t[l][1].ts<=i-this._duration;l++)e.delete(t[l][0]);0===e.size&&this._clearTimer()},this._interval)}_trim(){let e=this._cachedBlocks;if(-1===this._size||this._size>=e.size)return;let t=Array.from(e).sort((e,t)=>e[1].refCount-t[1].refCount||e[1].ts-t[1].ts);for(let i=0;i<t.length-this._size;i++)e.delete(t[i][0])}_clearTimer(){null!=this._timer&&(clearInterval(this._timer),this._timer=null)}}(15e3,5e3,100);function w(e,t,i){let l=y.get(e);if(!l)return null==t?I.decreaseRefCount(e,i):0;if(null==t||null==l[t])return I.decreaseRefCount(e,i);let r=l[t]?.cache,n=r?.get(i);if(r&&n){if(n.refCount--,0===n.refCount){r.delete(i);for(let e=0;e<l.length;e++)l[e]?.cache.delete(i);n.controller&&n.controller.abort()}return n.refCount}return 0}function R(e,t,i){let l=y.get(e);if(!l)return null==t?I.getBlock(e,i):null;if(null==t||null==l[t]){for(let e=0;e<l.length;e++){let t=l[e]?.cache.get(i);if(t)return t.refCount++,t.block}return I.getBlock(e,i)}let r=l[t]?.cache.get(i);if(r)return r.refCount++,r.block;for(let e=0;e<l.length;e++){if(e===t||!l[e])continue;let r=l[e]?.cache,n=r?.get(i);if(r&&n)return n.refCount++,r.set(i,n),n.block}return null}function k(e,t,i,l,r=null){let n=y.get(e);if(!n)return void(t??I.putBlock(e,i,l,r));if(null==t||null==n[t])return void I.putBlock(e,i,l,r);let o={refCount:1,block:l,isResolved:!1,isRejected:!1,controller:r};l.then(()=>o.isResolved=!0).catch(()=>o.isRejected=!0),n[t]?.cache.set(i,o)}function _(e,t,i){let l=y.get(e);l?null!=t&&null!=l[t]?l[t]?.cache.delete(i):I.deleteBlock(e,i):t??I.deleteBlock(e,i)}var b=i(94778),v=i(96381),S=i(34930),C=i(47520),T=i(34251),B=i(60694),M=i(10873),P=i(45617),A=i(91806),z=i(20223),W=i(87045);let H=0,L=class extends o.o{constructor(){super(...arguments),this._tileFetchQueue=new u.QueueProcessor({concurrency:32,process:(e,t)=>this.fetchRawTile(e.pyramidLevel,e.row,e.col,{...e.options,signal:t})}),this.datasetName=null,this.datasetFormat=null,this.hasUniqueSourceStorageInfo=!0,this.rasterInfo=null,this.ioConfig={sampling:"closest"},this.rawBlockRegistryIds=[],this.refresh=(0,a.sg)(async e=>{await this._openPromise;let t=await this._refresh(e);return t.dataChanged&&function(e,t){let i=y.get(e);if(i){let e=t.map(e=>i[e]).filter(e=>null!=e);for(let t of e)t&&(Array.from(t.cache.values()).forEach(e=>{!e.isResolved&&!e.isRejected&&e.controller&&e.controller.abort()}),t.cache.clear())}}(this.rasterId,this.rawBlockRegistryIds),t})}normalizeCtorArgs(e){return e?.ioConfig&&(e={...e,ioConfig:{resolution:null,bandIds:null,sampling:"closest",tileInfo:W.A.create(),...e.ioConfig}}),e}get _isGlobalWrappableSource(){let{rasterInfo:e}=this,t=(0,g.FT)(e.spatialReference);return null!=t&&e.extent.width>=t/2}get _hasNoneOrGCSShiftTransform(){let{transform:e}=this.rasterInfo;return null==e||"gcs-shift"===e.type}set rasterJobHandler(e){this._set("rasterJobHandler",e),(0,p.qg)(this)&&this.primaryRasters?.rasters?.forEach(t=>t.rasterJobHandler=e)}get rasterId(){return this.url||"rasterId-"+H++}set url(e){this._set("url",(0,B.Jf)(e,s.A.getLogger(this)))}async open(e){return this._openPromise??=(0,g.Hh)().then(()=>this._open(e)),this._openPromise}async fetchTile(e,t,i,l={}){let r=l.tileInfo||this.rasterInfo.storageInfo.tileInfo,o=this.getTileExtentFromTileInfo(e,t,i,r);if(!o)throw new n.A("imagery-tile:out-of-bounds","Level for fetch tile out of range");return l={noClip:!0,...l},this.fetchPixels(o,r.size[0],r.size[1],l)}async identify(e,t={}){e=(0,h.PZ)(m.A,e).clone().normalize();let{multidimensionalDefinition:i,timeExtent:l}=t,{rasterInfo:r}=this,{hasMultidimensionalTranspose:n,multidimensionalInfo:o}=r,{transposedVariableName:s}=t,a=null!=o&&n&&(null!=l||(0,x.DY)(i));a&&!s&&(s=null!=i&&i.length>0?i[0].variableName??void 0:o.variables[0].name,t={...t,transposedVariableName:s}),t=this._getRequestOptionsWithSliceId(t);let{spatialReference:u,extent:c}=r,{datumTransformation:d}=t,y=(0,g._I)(e,u,d);if(!c.intersects(y))return{location:y,value:null};if(null!=r.transform){let e=r.transform.inverseTransform(y);if(!r.nativeExtent.intersects(e))return{location:e,value:null};y=e}let I=null!=s&&null!=o&&r.hasMultidimensionalTranspose;if((0,p.qg)(this)){let e=this.primaryRasters.rasters[0];if(I)return e.identify(y,t);let{pixelSize:l}=r,n=3*l.x/2,o=3*l.y/2,s=new f.A({xmin:y.x-n,xmax:y.x+n,ymin:y.y-o,ymax:y.y+o,spatialReference:u}),a={interpolation:"nearest",multidimensionalDefinition:i,sliceId:t.sliceId,bandIds:t.bandIds},{pixelBlock:c}=await e.fetchPixels(s,3,3,a),{pixelBlock:h}=await this.fetchPixels(s,3,3,a);if(null==c)return{location:y,value:null};let m,d=!c.mask||c.mask[4]?c.pixels.map(e=>e[4]):null;return null!=h&&(m=!h.mask||h.mask[4]?h.pixels.map(e=>e[4]):void 0),{location:y,value:d,processedValue:m,pyramidLevel:0}}let w=0;if(!I){let{srcResolution:i}=t;if(i)i.spatialReference&&(i=(0,S.T5)(new m.A(i),u)),w=(0,g.t$)(i,r,this.ioConfig.sampling).pyramidLevel;else if(w=await this.computeBestPyramidLevelForLocation(e,t),null==w)return{location:y,value:null}}let R=this.identifyPixelLocation(y,w,null,I);if(null===R)return{location:y,value:null};let{row:k,col:_,rowOffset:b,colOffset:v,blockWidth:C}=R,T=await this._fetchRawTile(w,k,_,t);if(!T?.pixels?.length)return{location:y,value:null};let B=b*C+v;return this._processIdentifyResult(T,{srcLocation:y,position:B,pyramidLevel:w,useTransposedTile:!!I,requestSomeSlices:a,identifyOptions:t})}async fetchPixels(e,t,i,l={}){e=(0,g.Ps)(e),l=this._getRequestOptionsWithSliceId(l);let{_hasNoneOrGCSShiftTransform:r}=this;if(l.requestRawData&&r)return this._fetchPixels(e,t,i,l);let n=(0,g.FT)(e.spatialReference),o=(0,g.OM)(e);if(null==n||0===o||1===o&&this._isGlobalWrappableSource&&r)return this._fetchPixels(e,t,i,l);if(o>=3)return{extent:e,pixelBlock:null};let s=[],{xmin:a,xmax:u}=e,c=Math.round(n/(u-a)*t),h=c-Math.round((n/2-a)/(u-a)*t),m=0,d=[];for(let r=0;r<=o;r++){let p=0===r?a:-n/2,x=r===o?u-n*r:n/2,g=new f.A({xmin:p,xmax:x,ymin:e.ymin,ymax:e.ymax,spatialReference:e.spatialReference}),y=0===r?c-h:r===o?t-m:c;m+=y,d.push(y);let I=l.disableWrapAround&&r>0?null:this._fetchPixels(g,y,i,l);s.push(I)}let p=(await Promise.all(s)).map(e=>e?.pixelBlock),x=null,y={width:t,height:i};return x=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:p,srcMosaicSize:y,destDimension:null,coefs:null,sampleSpacing:null,interpolation:"nearest",alignmentInfo:null,blockWidths:d},l)).pixelBlock:(0,C.z7)(p,y,{blockWidths:d}),{extent:e,srcExtent:(0,g._l)(e,this.rasterInfo.spatialReference,l.datumTransformation),pixelBlock:x}}async fetchRawPixels(e,t,i,l={}){t={x:Math.floor(t.x),y:Math.floor(t.y)};let r=await this._fetchRawTiles(e,t,i,l),{nativeExtent:n,nativePixelSize:o,storageInfo:s}=this.rasterInfo,a=2**e,u=o.x*a,c=o.y*a,h=new f.A({xmin:n.xmin+u*t.x,xmax:n.xmin+u*(t.x+i.width-1),ymin:n.ymax-c*(t.y+i.height-1),ymax:n.ymax-c*t.y,spatialReference:n.spatialReference});if(!r)return{extent:h,srcExtent:h,pixelBlock:null};let{pixelBlocks:m,mosaicSize:d}=r;if(1===m.length&&null!=m[0]&&m[0].width===i.width&&m[0].height===i.height)return{extent:h,srcExtent:h,pixelBlock:r.pixelBlocks[0]};let p,x=e>0?s.pyramidBlockWidth:s.blockWidth,g=e>0?s.pyramidBlockHeight:s.blockHeight,y={x:t.x%x,y:t.y%g};return p=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:m,srcMosaicSize:d,destDimension:i,clipOffset:y,clipSize:i,coefs:null,sampleSpacing:null,interpolation:l.interpolation,alignmentInfo:null,blockWidths:null},l)).pixelBlock:(0,C.z7)(m,d,{clipOffset:y,clipSize:i}),{extent:h,srcExtent:h,pixelBlock:p}}fetchRawTile(e,t,i,l){throw new n.A("BaseRaster:read-not-implemented","fetchRawTile() is not implemented")}computeExtent(e){return(0,g._l)(this.rasterInfo.extent,e)}decodePixelBlock(e,t,i){return this.rasterJobHandler?this.rasterJobHandler.decode({data:e,options:t},i):(0,v.D)(e,t,i)}async request(e,t,i=0){let{customFetchParameters:l}=this.ioConfig,{range:n,query:o,headers:s}=t;i=i??t.retryCount??this.ioConfig.retryCount;let a=n?{Range:`bytes=${n.from}-${n.to}`}:null;try{return await(0,r.A)(e,{...t,query:{...o,...l},headers:{...s,...a}})}catch(l){if(i>0)return i--,this.request(e,t,i);throw l}}getSliceIndex(e){let{multidimensionalInfo:t}=this.rasterInfo;return null==t||null==e||0===e.length?null:(0,x.NG)(e,t)}getTileExtentFromTileInfo(e,t,i,l){let r=l.lodAt(e);return r?this.getTileExtent({x:r.resolution,y:r.resolution},t,i,l.origin,l.spatialReference,l.size):null}updateTileInfo(){let{storageInfo:e,spatialReference:t,extent:i,pixelSize:l}=this.rasterInfo,{pyramidResolutions:r}=e;if(!e.tileInfo){let n=[],o=e.maximumPyramidLevel||0,s=(l.x+l.y)/2,a=1/.0254*96*s;for(let e=0;e<=o&&(n.unshift(new A.A({level:o-e,resolution:s,scale:a})),e!==o);e++)if(r){let t=(r[e].x+r[e].y)/2;a*=t/s,s=t}else s*=2,a*=2;let u=new m.A({x:i.xmin,y:i.ymax,spatialReference:t});e.tileInfo=new W.A({origin:u,size:[e.blockWidth,e.blockHeight],spatialReference:t,lods:n}),e.isVirtualTileInfo=!0}}createRemoteDatasetStorageInfo(e,t=512,i=512,l){let{width:r,height:n,nativeExtent:o,pixelSize:s,spatialReference:a}=e,u=new m.A({x:o.xmin,y:o.ymax,spatialReference:a});l??=Math.max(0,Math.round(Math.log(Math.max(r,n))/Math.LN2-8));let c=this.computeBlockBoundary(o,t,i,{x:o.xmin,y:o.ymax},[s],l);e.storageInfo=new z.A({blockWidth:t,blockHeight:i,pyramidBlockWidth:t,pyramidBlockHeight:i,origin:u,firstPyramidLevel:1,maximumPyramidLevel:l,blockBoundary:c})}async computeBestPyramidLevelForLocation(e,t={}){return 0}computeBlockBoundary(e,t,i,l,r,n=0,o=2){if(1===r.length&&n>0){r=[...r];let{x:e,y:t}=r[0];for(let i=0;i<n;i++)e*=o,t*=o,r.push({x:e,y:t})}let s=[],{x:a,y:u}=l;for(let l=0;l<r.length;l++){let{x:n,y:o}=r[l];s.push({minCol:Math.floor((e.xmin-a+.1*n)/t/n),maxCol:Math.floor((e.xmax-a-.1*n)/t/n),minRow:Math.floor((u-e.ymax+.1*o)/i/o),maxRow:Math.floor((u-e.ymin-.1*o)/i/o)})}return s}getPyramidPixelSize(e){let{nativePixelSize:t}=this.rasterInfo,{pyramidResolutions:i,pyramidScalingFactor:l}=this.rasterInfo.storageInfo;if(0===e)return t;if(null!=i&&i.length)return i[e-1];let r=l**e;return{x:t.x*r,y:t.y*r}}identifyPixelLocation(e,t,i,l){let{spatialReference:r,nativeExtent:n,storageInfo:o}=this.rasterInfo,{maximumPyramidLevel:s,origin:a,transposeInfo:u}=o,c=l&&null!=u?u.tileSize[0]:o.blockWidth,h=l&&null!=u?u.tileSize[1]:o.blockHeight,f=(0,g._I)(e,r,i);if(!n.intersects(f)||t<0||t>s)return null;let{x:m,y:d}=this.getPyramidPixelSize(t),p=(a.y-f.y)/d/h,x=(f.x-a.x)/m/c,y=Math.min(h-1,Math.floor((p-Math.floor(p))*h)),I=Math.min(c-1,Math.floor((x-Math.floor(x))*c));return{pyramidLevel:t,row:Math.floor(p),col:Math.floor(x),rowOffset:y,colOffset:I,blockWidth:c,srcLocation:f}}getTileExtent(e,t,i,l,r,n){let[o,s]=n,a=l.x+i*o*e.x,u=a+o*e.x,c=l.y-t*s*e.y,h=c-s*e.y;return new f.A({xmin:a,xmax:u,ymin:h,ymax:c,spatialReference:r})}getBlockWidthHeight(e){return{blockWidth:e>0?this.rasterInfo.storageInfo.pyramidBlockWidth:this.rasterInfo.storageInfo.blockWidth,blockHeight:e>0?this.rasterInfo.storageInfo.pyramidBlockHeight:this.rasterInfo.storageInfo.blockHeight}}isBlockOutside(e,t,i){let l=this.rasterInfo.storageInfo.blockBoundary[e];return!l||l.maxRow<t||l.maxCol<i||l.minRow>t||l.minCol>i}updateImageSpaceRasterInfo(e){let{pixelSize:t}=e,{width:i,height:l}=e,r=d.A.WebMercator;e.spatialReference=r,e.extent=e.nativeExtent=new f.A({xmin:-.5,ymax:.5,xmax:i-.5,ymin:.5-l,spatialReference:r}),e.isPseudoSpatialReference=!0,e.transform=null,e.pixelSize=new m.A({x:1,y:1,spatialReference:r});let{extent:n,storageInfo:o}=e;if(o){o.origin=new m.A({x:n.xmin,y:n.ymax,spatialReference:r});let{pyramidResolutions:i,tileInfo:l}=o;if(i&&i.forEach(e=>{e.x/=t.x,e.y/=t.y}),l){l.origin=o.origin;let t=(e.nativePixelSize.x+e.nativePixelSize.y)/2;l.lods.forEach((e,i)=>{e.resolution=t*2**i,e.scale=96*e.resolution/.0254})}}}async _refresh(e){return{dataChanged:!0}}async _fetchPixels(e,t,i,l={}){let r=(0,g.OM)(e);if(r>=2)return{extent:e,pixelBlock:null};let n=this._getSourceDataInfo(e,t,i,l),{pyramidLevel:o,srcResolution:s,srcWidth:a,srcHeight:u,ul:c}=n,{srcExtent:h}=n;if(0===a||0===u)return{extent:e,srcExtent:h,pixelBlock:null};let{rasterInfo:f}=this,d=f.transform,p="gcs-shift"===d?.type,x=null!=(0,g.FT)(e.spatialReference);(p||!x)&&(r=(0,g.OM)(h,p));let y=await this._fetchRawTiles(o,c,{width:a,height:u,wrapCount:r},l);if(!y)return{extent:e,srcExtent:h,pixelBlock:null};h=y.extent;let I=f.storageInfo,w=o>0?I.pyramidBlockWidth:I.blockWidth,R=o>0?I.pyramidBlockHeight:I.blockHeight,{x:k,y:_}=f.pixelSize;if(o>0){let{pyramidResolutions:e,pyramidScalingFactor:t}=I;if(null!=e&&e[o-1])({x:k,y:_}=e[o-1]);else{let e=t**o;k*=e,_*=e}}let b=f.spatialReference,v=new m.A({x:k,y:_,spatialReference:b}),S=w===a&&R===u&&c.x%w===0&&c.y%R===0,B=new m.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference}),M=!e.spatialReference.equals(b),P=b.isGeographic?1e-9:1e-4,{datumTransformation:A}=l;if(!M&&S&&1===y.pixelBlocks.length&&w===t&&R===i&&function(e,t,i){return Math.abs(e.x-t.x)<i&&Math.abs(e.y-t.y)<i}(s,B,P))return{extent:e,srcExtent:h,srcTilePixelSize:v,pixelBlock:y.pixelBlocks[0]};let z=x&&null!=(0,g.FT)(h.spatialReference)&&this._hasNoneOrGCSShiftTransform,W=l.requestProjectedLocalDirections&&this.rasterInfo.dataType.startsWith("vector");W&&!this.rasterJobHandler&&await(0,g.Hh)();let H,L=this.rasterJobHandler?await this.rasterJobHandler.getProjectionOffsetGrid({projectedExtent:e,srcBufferExtent:h,pixelSize:B.toJSON(),datumTransformation:A,rasterTransform:d,hasWrapAround:r>0||z,isAdaptive:!1!==this.ioConfig.optimizeProjectionAccuracy,includeGCSGrid:W},l):(0,g.l0)({projectedExtent:e,srcBufferExtent:h,pixelSize:B,datumTransformation:A,rasterTransform:d,hasWrapAround:r>0||z,isAdaptive:!1,includeGCSGrid:W}),O=!l.requestRawData,D={rows:L.spacing[0],cols:L.spacing[1]},E=this._hasNoneOrGCSShiftTransform?this._getRasterTileAlignmentInfo(o,h.xmin):void 0,{pixelBlocks:N,mosaicSize:F,isPartiallyFilled:q}=y,G=null;if(this.rasterJobHandler){let e=await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:N,srcMosaicSize:F,destDimension:O?{width:t,height:i}:null,coefs:O?L.coefficients:null,sampleSpacing:O?D:null,projectDirections:W,gcsGrid:W?L.gcsGrid:null,isUV:"vector-uv"===this.rasterInfo.dataType,interpolation:l.interpolation,alignmentInfo:E,blockWidths:null},l);({pixelBlock:H,localNorthDirections:G}=e)}else{let e=(0,C.z7)(N,F,{alignmentInfo:E});H=O?(0,C.$i)(e,{width:t,height:i},L.coefficients,D,l.interpolation):e,W&&L.gcsGrid&&(G=(0,C.QF)({width:t,height:i},L.gcsGrid),H=(0,T.Y2)(H,this.rasterInfo.dataType,G))}return l.requestRawData||W?{extent:e,srcExtent:h,srcTilePixelSize:v,pixelBlock:H,transformGrid:L,localNorthDirections:G,isPartiallyFilled:q}:{extent:e,srcExtent:e,srcTilePixelSize:v,pixelBlock:H}}async _fetchRawTiles(e,t,i,l){let{origin:r,blockBoundary:n}=this.rasterInfo.storageInfo,{blockWidth:o,blockHeight:s}=this.getBlockWidthHeight(e),{x:a,y:u}=t,{width:c,height:h,wrapCount:m}=i,d=this._getRasterTileAlignmentInfo(e,0);l.buffer&&(a-=l.buffer.cols,u-=l.buffer.rows,c+=2*l.buffer.cols,h+=2*l.buffer.rows);let p=0,x=0,g=0;m&&null!=d&&(({worldColumnCountFromOrigin:x,originColumnOffset:g,rightPadding:p}=d),x*d.blockWidth-p>=a+c&&(p=0));let y=Math.floor(a/o),I=Math.floor(u/s),w=Math.floor((a+c+p-1)/o),R=Math.floor((u+h+p-1)/s),k=n[e];if(!k)return null;let{minRow:_,minCol:b,maxCol:v,maxRow:S}=k;if(0===m&&(R<_||w<b||I>S||y>v))return null;let C=[],T=!1,B=null==this.ioConfig.allowPartialFill?l.allowPartialFill:this.ioConfig.allowPartialFill;for(let t=I;t<=R;t++)for(let i=y;i<=w;i++){let r=i;if(!l.disableWrapAround&&m&&null!=d&&x<=i&&(r=i-x-g),t>=_&&r>=b&&S>=t&&v>=r){let i=this._fetchRawTile(e,t,r,l);B?C.push(new Promise(e=>{i.then(t=>e(t)).catch(()=>{T=!0,e(null)})})):C.push(i)}else C.push(Promise.resolve(null))}if(0===C.length)return null;let M=await Promise.all(C),P={height:(R-I+1)*s,width:(w-y+1)*o},{spatialReference:A}=this.rasterInfo,{x:z,y:W}=this.getPyramidPixelSize(e);return{extent:new f.A({xmin:r.x+y*o*z,xmax:r.x+(w+1)*o*z,ymin:r.y-(R+1)*s*W,ymax:r.y-I*s*W,spatialReference:A}),pixelBlocks:M,mosaicSize:P,isPartiallyFilled:T}}_fetchRawTile(e,t,i,l){let{storageInfo:r}=this.rasterInfo,n=null!=r.transposeInfo&&!!l.transposedVariableName;if(!n){let l=r.blockBoundary[e];if(!l)return Promise.resolve(null);let{minRow:n,minCol:o,maxCol:s,maxRow:a}=l;if(t<n||i<o||t>a||i>s)return Promise.resolve(null)}let o=n?l.transposeVariableName:l.sliceId,s=r.isBsqTile?l.bandIds:null,u=function(e,t,i){let l=[];return null!=t&&l.push(`sliceId=${t}`),null!=i&&l.push(`bandIds=${i.join(",")}`),l.length?`${e}?${l.join("&")}`:e}(this.rasterId,o,s),c=`${e}/${t}/${i}`,h=R(u,l.registryId,c);if(null==h){let n=new AbortController,o=l.bandIds?.slice();if(o?.length&&r.isBsqTile){let r=new Set(o),s=[],a=Array.from(r);for(let r of a)s.push(this._tileFetchQueue.push({pyramidLevel:e,row:t,col:i,options:{...l,bandIds:[r]}},{signal:n.signal}));h=Promise.all(s).then(e=>{if(e.some(e=>null==e))return null;if(a.length!==o.length){let t=[];for(let i of o){let l=e[a.indexOf(i)];t.includes(l)&&(l=l.clone()),t.push(l)}e=t}return this.rasterJobHandler?this.rasterJobHandler.compositeBands({pixelBlocks:e},{signal:n.signal,transferPixelsToWorker:!0}):(0,C.Wy)(e)})}else h=this._tileFetchQueue.push({pyramidLevel:e,row:t,col:i,options:l},{signal:n.signal});k(u,l.registryId,c,h,n),h.catch(()=>_(u,l.registryId,c))}return l.signal&&(0,a.u7)(l,()=>{w(u,l.registryId,c)}),h}_computeMagDirValues(e){let{bandCount:t,dataType:i}=this.rasterInfo;if((2!==t||"vector-magdir"!==i)&&"vector-uv"!==i||2!==e?.length||!e[0]?.length)return null;let l=e[0].length;if("vector-magdir"===i){let t=e[1].map(e=>(e+360)%360);return[e[0],t]}let[r,n]=e,o=[],s=[];for(let e=0;e<l;e++){let[t,i]=(0,T.Lu)([r[e],n[e]]);o.push(t),s.push(i)}return[o,s]}_getRasterTileAlignmentInfo(e,t){return this._rasterTileAlignmentInfo??=(0,g.DO)(this.rasterInfo),null==this._rasterTileAlignmentInfo.pyramidsInfo?null:{startX:t,halfWorldWidth:this._rasterTileAlignmentInfo.halfWorldWidth,hasGCSSShiftTransform:this._rasterTileAlignmentInfo.hasGCSSShiftTransform,...this._rasterTileAlignmentInfo.pyramidsInfo[e]}}_getSourceDataInfo(e,t,i,l={}){let r={datumTransformation:l.datumTransformation,pyramidLevel:0,pyramidResolution:null,srcExtent:null,srcHeight:0,srcResolution:null,srcWidth:0,ul:{x:0,y:0}};l.srcResolution&&(r.srcResolution=l.srcResolution,this._updateSourceDataInfo(e,r));let n=this.rasterInfo.storageInfo.maximumPyramidLevel||0,{srcWidth:o,srcHeight:s,pyramidLevel:a}=r,u=o/t,c=s/i,h=a<n&&u*c>=16,f=a===n&&this._requireTooManySrcTiles(o,s,t,i);if(h||f||0===o||0===s){let o=new m.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference}),s=(0,g.Wo)(o,this.rasterInfo.spatialReference,e,r.datumTransformation),f=!s||l.srcResolution&&s.x+s.y<l.srcResolution.x+l.srcResolution.y;if(h&&l.srcResolution&&f){let e=Math.round(Math.log(Math.max(u,c))/Math.LN2)-1;if(n-a+3>=e){let t=2**e;s={x:l.srcResolution.x*t,y:l.srcResolution.y*t}}}s&&(r.srcResolution=s,this._updateSourceDataInfo(e,r))}return this._requireTooManySrcTiles(r.srcWidth,r.srcHeight,t,i)&&(r.srcWidth=0,r.srcHeight=0),r}_requireTooManySrcTiles(e,t,i,l){let{tileInfo:r}=this.rasterInfo.storageInfo,n=e/i,o=t/l;return Math.ceil(e/r.size[0])*Math.ceil(t/r.size[1])>=256*Math.max(1,(i+l)/1024)||n>8||o>8}_updateSourceDataInfo(e,t){t.srcWidth=0,t.srcHeight=0;let{rasterInfo:i}=this,l=i.spatialReference,{srcResolution:r,datumTransformation:n}=t,{pyramidLevel:o,pyramidResolution:s,excessiveReading:a}=(0,g.t$)(r,i,this.ioConfig.sampling);if(a)return;let u=t.srcExtent||(0,g._l)(e,l,n);if(null==u)return;let c=i.transform;c&&(u=c.inverseTransform(u)),t.srcExtent=u;let{origin:h}=i.storageInfo,{width:f,height:m,ul:d}=(0,p.$g)(u,h,s,o);t.pyramidLevel=o,t.pyramidResolution=s,t.srcWidth=f,t.srcHeight=m,t.ul=d}_getRequestOptionsWithSliceId(e){return null!=this.rasterInfo.multidimensionalInfo&&null==e.sliceId&&(e={...e,sliceId:this.getSliceIndex(e.multidimensionalDefinition)}),e}_processIdentifyResult(e,t){let{srcLocation:i,position:l,pyramidLevel:r,useTransposedTile:n}=t,o=e.pixels[0].length/e.width/e.height;if(e.mask&&!e.mask[l])return{location:i,value:null};let{multidimensionalInfo:s}=this.rasterInfo;if(null==s||!n){let t=e.pixels.map(e=>e[l]),n={location:i,value:t,pyramidLevel:r},o=this._computeMagDirValues(t.map(e=>[e]));return o?.length&&(n.magdirValue=o.map(e=>e[0])),n}let a=e.pixels.map(e=>e.slice(l*o,l*o+o)),u=this._computeMagDirValues(a),{requestSomeSlices:c,identifyOptions:h}=t,f=(0,x.QW)(s,h.transposedVariableName);if(c){let e=(0,x.xx)(f,h.multidimensionalDefinition,h.timeExtent);a=a.map(t=>e.map(e=>t[e])),u=u?.map(t=>e.map(e=>t[e])),f=e.map(e=>f[e])}let m,d=e.noDataValues||this.rasterInfo.noDataValue,p={pixels:a,pixelType:e.pixelType};return null!=d&&((0,b.Sp)(p,d),m=p.mask),{location:i,value:null,dataSeries:f.map((e,t)=>{let i={value:0===m?.[t]?null:a.map(e=>e[t]),multidimensionalDefinition:e.multidimensionalDefinition.map(e=>new P.A({...e,isSlice:!0}))};return u?.length&&(i.magdirValue=[u[0][t],u[1][t]]),i}),pyramidLevel:r}}};(0,l.Cg)([(0,c.MZ)()],L.prototype,"_rasterTileAlignmentInfo",void 0),(0,l.Cg)([(0,c.MZ)()],L.prototype,"_tileFetchQueue",void 0),(0,l.Cg)([(0,c.MZ)({readOnly:!0})],L.prototype,"_isGlobalWrappableSource",null),(0,l.Cg)([(0,c.MZ)({readOnly:!0})],L.prototype,"_hasNoneOrGCSShiftTransform",null),(0,l.Cg)([(0,c.MZ)()],L.prototype,"_openPromise",void 0),(0,l.Cg)([(0,c.MZ)()],L.prototype,"rasterJobHandler",null),(0,l.Cg)([(0,c.MZ)({readOnly:!0})],L.prototype,"rasterId",null),(0,l.Cg)([(0,c.MZ)(M.OZ)],L.prototype,"url",null),(0,l.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],L.prototype,"datasetName",void 0),(0,l.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],L.prototype,"datasetFormat",void 0),(0,l.Cg)([(0,c.MZ)()],L.prototype,"hasUniqueSourceStorageInfo",void 0),(0,l.Cg)([(0,c.MZ)()],L.prototype,"rasterInfo",void 0),(0,l.Cg)([(0,c.MZ)()],L.prototype,"ioConfig",void 0),(0,l.Cg)([(0,c.MZ)()],L.prototype,"sourceJSON",void 0),(0,l.Cg)([(0,c.MZ)()],L.prototype,"rawBlockRegistryIds",void 0),L=(0,l.Cg)([(0,c.$K)("esri.layers.raster.datasets.BaseRaster")],L)},330(e,t,i){function l(e,t){if(!e||!t)return[];let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";let r=[];if(t){let n=l(e,i);for(let e=0;e<n.length;e++)l(n[e],t).forEach(e=>r.push(e));return r}let n=e.getElementsByTagNameNS("*",i);if(!n||0===n.length)return[];for(let e=0;e<n.length;e++)r.push(n[e]||n.item(e));return r}function r(e,t){if(!e||!t)return null;let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";let n=l(e,i);return n.length>0?t?r(n[0],t):n[0]:null}function n(e,t=null){let i,l=t?r(e,t):e;return l?(i=l.textContent||l.nodeValue,i?i.trim():null):null}function o(e,t){let i,r=l(e,t),n=[];for(let e=0;e<r.length;e++)i=r[e].textContent||r[e].nodeValue,i&&(i=i.trim(),""!==i&&n.push(i));return n}function s(e,t=null){return n(e,t)?.split(" ").map(e=>Number(e))??[]}function a(e,t){return o(e,t).map(e=>Number(e))}function u(e,t){let i=n(e,t);return Number(i)}function c(e,t){let i=e?.nodeName?.toLowerCase(),l=t.toLowerCase();return i.slice(i.lastIndexOf(":")+1)===l}function h(e){return e.nodeName.slice(e.nodeName.lastIndexOf(":")+1)}i.d(t,{Dy:()=>o,IC:()=>l,Ui:()=>a,V6:()=>r,g7:()=>c,mX:()=>n,pN:()=>s,v7:()=>u,vv:()=>h})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4934],{67996(e,t,r){r.d(t,{cZ:()=>S,XW:()=>F,fe:()=>k});var i=r(56507),n=r(49186),s=r(91869),a=(r(90708),r(92722)),o=r(16930);class l{constructor(){this.version="",this.queryResult=new p}}class p{constructor(){this.featureResult=new u}}class u{constructor(){this.objectIdFieldName="",this.uniqueIdField=new d,this.globalIdFieldName="",this.geohashFieldName="",this.geometryProperties=new h,this.geometryType=null,this.spatialReference=new o.A,this.exceededTransferLimit=!1,this.hasZ=!1,this.hasM=!1,this.transform=new c,this.fields=[],this.fieldNameToAttributeIndexMap={},this.values=[],this.features=[],this.geometryFields=[]}}class d{constructor(){this.name="",this.isSystemMaintained=!1}}class h{constructor(){this.shapeAreaFieldName="",this.shapeLengthFieldName="",this.units=""}}class c{constructor(){this.quantizeOriginPosition="upperLeft",this.scale=new y,this.translate=new m}}class y{constructor(){this.xScale=0,this.yScale=0,this.mScale=0,this.zScale=0}}class m{constructor(){this.xTranslate=0,this.yTranslate=0,this.mTranslate=0,this.zTranslate=0}}class f{constructor(){this.name="",this.fieldType="esriFieldTypeString",this.alias="",this.sqlType="sqlTypeVarchar",this.domain="",this.defaultValue=""}}class g{constructor(){this.attributes=[],this.compressedGeometry=new b,this.centroid=new b,this.aggregateGeometries=[]}}class b{constructor(){this.geometryType=null,this.lengths=[],this.coords=[]}}const w=["ELEMENTUID","TYPENAME"];var M=r(45724),I=r(93637),C=r(49403);const _={upperLeft:0,lowerLeft:1},T={sqlTypeBigInt:0,sqlTypeBinary:1,sqlTypeBit:2,sqlTypeChar:3,sqlTypeDate:4,sqlTypeDecimal:5,sqlTypeDouble:6,sqlTypeFloat:7,sqlTypeGeometry:8,sqlTypeGUID:9,sqlTypeInteger:10,sqlTypeLongNVarchar:11,sqlTypeLongVarbinary:12,sqlTypeLongVarchar:13,sqlTypeNChar:14,sqlTypeNVarChar:15,sqlTypeOther:16,sqlTypeReal:17,sqlTypeSmallInt:18,sqlTypeSqlXml:19,sqlTypeTime:20,sqlTypeTimestamp:21,sqlTypeTimestamp2:22,sqlTypeTinyInt:23,sqlTypeVarbinary:24,sqlTypeVarchar:25};function v(e){let t=new l;t.version=e.version;let r=e.get_query_result();if(0!==r.results_type.value)throw Error("Got a non-feature collection type");let i=r.get_feature_result(),n=t.queryResult.featureResult;n.objectIdFieldName=i.objectid_field_name,n.exceededTransferLimit=i.exceeded_transfer_limit,n.hasM=i.has_m,n.hasZ=i.has_z,n.geometryType=(0,I.i7)(C.bV,i.geometry_type.value),n.globalIdFieldName=i.globalid_field_name,n.geohashFieldName=i.geohash_field_name;let s=n.uniqueIdField,a=i.unique_id_field;s.name=a.name,s.isSystemMaintained=a.isSystemMaintained;let o=n.geometryProperties,p=i.geometry_properties;o.shapeAreaFieldName=p.shapeAreaFieldName,o.shapeLengthFieldName=p.shapeLengthFieldName,o.units=p.units;let u=n.spatialReference,d=i.spatial_reference;u.wkid=d.wkid,u.latestWkid=d.latestWkid,u.vcsWkid=d.vcsWkid,u.latestVcsWkid=d.latestVcsWkid,u.wkt=d.wkt,n.transform=function(e){let t=new c;t.quantizeOriginPosition=(0,I.i7)(_,e.quantizeOriginPosition.value);let r=t.scale,i=e.scale;r.xScale=i.xScale,r.yScale=i.yScale,r.mScale=i.mScale,r.zScale=i.zScale;let n=t.translate,s=e.translate;return n.xTranslate=s.xTranslate,n.yTranslate=s.yTranslate,n.mTranslate=s.mTranslate,n.zTranslate=s.zTranslate,t}(i.transform);let h=n.fields,y=n.fieldNameToAttributeIndexMap,m=i.fields,f=m.size();for(let e=0;e<f;e++){let t=m.get(e),r=E(t);h.push(r),y[r.name]=e,t.delete()}m.delete();let b=n.values,M=i.values_count();for(let e=0;e<M;e++)b.push(i.get_value_at(e));let T=n.features,v=i.features,S=v.size();if(S>0)for(let e of w)if(void 0===y[e])throw Error(`Feature collection missing required attribute: ${e}`);for(let e=0;e<S;e++){let t=new g,r=v.get(e),i=t.attributes,n=r.attributes_count();for(let e=0;e<n;e++)i.push(r.get_attribute_at(e));let s=r.get_compressed_geometry();s&&(t.compressedGeometry=A(s),t.centroid=A(r.get_centroid()));let a=t.aggregateGeometries,o=r.aggregate_geometries,l=o.size();for(let e=0;e<l;e++){let t=o.get(e),r=A(t);a.push(r),t.delete()}o.delete(),T.push(t),r.delete()}v.delete();let k=n.geometryFields,L=i.geometry_fields,N=L.size();for(let e=0;e<N;e++){let t=L.get(e),r=x(t);k.push(r),t.delete()}return L.delete(),t}function A(e){let t=new b;t.geometryType=(0,I.i7)(C.bV,e.geometry_type.value);let r=[],i=[];for(let t=0;t<e.lengths.length;t++)r.push(e.lengths[t]);for(let t=0;t<e.coords.length;t++)i.push(e.coords[t]);return t.lengths=r,t.coords=i,t}function E(e){let t=new f;return t.name=e.name,t.alias=e.alias,t.fieldType=(0,I.i7)(C.r5,e.field_type.value),t.sqlType=(0,I.i7)(T,e.sql_type.value),t.domain=e.domain,t.defaultValue=e.default_value,t}function x(e){let t=E(e);return t.geometryType=(0,I.i7)(C.bV,e.geometry_type.value),t}async function S(e,t,r){t??=!1;let a={generateAllSublayers:t,namedTypeDefinitions:new Map};return await async function(e,t){let r=await(await(0,i.A)(e,{responseType:"array-buffer",signal:t?.signal})).data;return async function(e){let t=new((await(0,M.I)()).MapOfObjectIdentifierSetsDecoder),r=t.decode(new Uint8Array(e)),i=new Map;if(0!==r.error_code)throw new n.A("knowledge-graph:layer-support-utils",r.error_message);let s=t.get_map_of_identifier_sets(),a=s.keys,o=a.size();for(let e=0;e<o;e++){let t=a.get(e),r=s.query_identifier_set(t),o=[];if(1===r.id_array_type.value){let e=r.get_globalid_array(),t=e.count();for(let r=0;r<t;r++)o.push(e.get_globalid_at(r))}else if(3===r.id_array_type.value){let e=r.get_identifier_array(),t=e.count();for(let r=0;r<t;r++)o.push(e.get_identifier_at(r).toString())}else if(2===r.id_array_type.value){let e=r.get_string_array(),t=e.count();for(let r=0;r<t;r++)o.push(e.get_string_at(r))}else{if(0!==r.id_array_type.value)throw new n.A("knowledge-graph:layer-support-utils","Tried to encode an unexpected ID Array type.");{let e=r.get_oid_array(),t=e.count();for(let r=0;r<t;r++)o.push(e.get_objectid_at(r).toString())}}i.set(t,o)}return t.delete(),i}(new Uint8Array(r))}(e,r).then(e=>{!function(e,t){for(let[r,i]of e){let e=(0,s.tE)(t.namedTypeDefinitions,r,()=>({useAllData:!1,members:new Map}));for(let t of i)e.members.has(t)||e.members.set(t,{id:t})}}(e,a)}),a}async function k(e){let t=await(0,M.I)(),r=new t.MapOfObjectIdentifierSets;!function(e,t,r){for(let[i,n]of r.namedTypeDefinitions){if(!n.members||n.useAllData)continue;let r=n.members.keys(),s=!1,a=!0,o=new t.ObjectIdArray,l=new t.StringArray,p=new t.GlobalIdArray,u=new t.IdentifierArray,d=new t.ObjectIdentifierSet;for(let e of r)a&&=(s=!isNaN(Number(e)),!1),s?o.add_objectid(Number(e)):(l.add_string(e),p.add_globalid(e)),u.add_identifier(e);d.set_oid_array(o),d.set_string_array(l),d.set_globalid_array(p),d.set_identifier_array(u),o.delete(),l.delete(),p.delete(),u.delete(),e.put_identifier_set(i,d),d.delete()}}(r,t,e);let i=new t.MapOfObjectIdentifierSetsEncoder;try{i.set_map_of_identifier_sets(r),i.encode();let e=i.get_encoding_result();if(0!==e.error.error_code)throw new n.A("knowledge-graph:layer-support-utils",e.error.error_message);let t=structuredClone(e.get_byte_buffer());return i.delete(),t}finally{r.delete()}}async function L(e,t){return async function(e){let t=new((await(0,M.I)()).FeatureCollectionDecoder),r=t.decode(new Uint8Array(e));if(0!==r.error_code)throw new n.A("knowledge-graph:layer-support-utils",r.error_message);let i=v(t.get_feature_collection());return t.delete(),i}(await(await(0,i.A)(e,{responseType:"array-buffer",signal:t?.signal})).data)}function N(e,t){if(!e?.queryResult?.featureResult)return t;let{hasZ:r,hasM:i}=e.queryResult.featureResult,n=e.queryResult.featureResult.fieldNameToAttributeIndexMap;for(let o of e.queryResult.featureResult.features){let e=o.attributes[n.TYPENAME],l=(0,s.tE)(t.namedTypeDefinitions,e,()=>({useAllData:!1,members:new Map})),p=o.attributes[n.ELEMENTUID];if(o.compressedGeometry?.coords?.length>0){let e=o.compressedGeometry.lengths;"esriGeometryPoint"===o.compressedGeometry.geometryType&&(e=[]),l.members.set(p,{id:p,linkChartLocation:new a.A(e,o.compressedGeometry.coords,r,i)})}else l.members.set(p,{id:p})}return t}const F={fetchAndConvertSerializedLinkChart:(e,t)=>async function(e,t){let r=[],i={generateAllSublayers:!1,namedTypeDefinitions:new Map};return e.entitiesUrl&&r.push(L(e.entitiesUrl,t).then(e=>{N(e,i)})),e.relationshipsUrl&&r.push(L(e.relationshipsUrl,t).then(e=>{N(e,i)})),await Promise.all(r),i}(e,t)}},75503(e,t,r){r.d(t,{wq:()=>o});var i=r(4576),n=r(21818),s=(r(44208),r(15142)),a=r(11006);class o{constructor(e=9,t){this._compareMinX=h,this._compareMinY=c,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),I.prune(),C.prune(),_.prune(),T.prune()}all(e){l(this._data,e)}search(e,t){let r=this._data,i=this._toBBox;if(w(e,r))for(I.clear();r;){for(let n=0,s=r.children.length;n<s;n++){let s=r.children[n],a=r.leaf?i(s):s;w(e,a)&&(r.leaf?t(s):b(e,a)?l(s,t):I.push(s))}r=I.pop()}}collides(e){let t=this._data,r=this._toBBox;if(!w(e,t))return!1;for(I.clear();t;){for(let i=0,n=t.children.length;i<n;i++){let n=t.children[i],s=t.leaf?r(n):n;if(w(e,s)){if(t.leaf||b(e,s))return!0;I.push(n)}}t=I.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new E([]),this}remove(e){if(!e)return this;let t,r=this._data,s=null,a=0,o=!1,l=this._toBBox(e);for(_.clear(),T.clear();r||_.length>0;){if(r||(r=_.pop(),s=_.data[_.length-1],a=T.pop()??0,o=!0),r.leaf&&(t=(0,i.qh)(r.children,(0,n.z)(e),r.children.length,r.indexHint),-1!==t))return r.children.splice(t,1),_.push(r),this._condense(_),this;o||r.leaf||!b(r,l)?s?(a++,r=s.children[a],o=!1):r=null:(_.push(r),T.push(a),a=0,s=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,r,i){let n=r-t+1,s=this._maxEntries;if(n<=s){let i=new E(e.slice(t,r+1));return p(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(s)),s=Math.ceil(n/s**(i-1)));let a=new x([]);a.height=i;let o=Math.ceil(n/s),l=o*Math.ceil(Math.sqrt(s));M(e,t,r,l,this._compareMinX);for(let n=t;n<=r;n+=l){let t=Math.min(n+l-1,r);M(e,n,t,o,this._compareMinY);for(let r=n;r<=t;r+=o){let n=Math.min(r+o-1,t);a.children.push(this._build(e,r,n,i-1))}}return p(a,this._toBBox),a}_insert(e,t,r){let i=this._toBBox,n=r?e:i(e);_.clear();let s=function(e,t,r,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==r;){let r,i=1/0,n=1/0;for(let s=0,a=t.children.length;s<a;s++){let a=t.children[s],o=y(a),l=f(e,a)-o;l<n?(n=l,i=o<i?o:i,r=a):l===n&&o<i&&(i=o,r=a)}t=r||t.children[0]}return t}(n,this._data,t,_);for(s.children.push(e),d(s,n);t>=0&&_.data[t].children.length>this._maxEntries;)this._split(_,t),t--;!function(e,t,r){for(let i=r;i>=0;i--)d(t.data[i],e)}(n,_,t)}_split(e,t){let r=e.data[t],i=r.children.length,n=this._minEntries;this._chooseSplitAxis(r,n,i);let s=this._chooseSplitIndex(r,n,i);if(!s)return;let a=r.children.splice(s,r.children.length-s),o=r.leaf?new E(a):new x(a);o.height=r.height,p(r,this._toBBox),p(o,this._toBBox),t?e.data[t-1].children.push(o):this._splitRoot(r,o)}_splitRoot(e,t){this._data=new x([e,t]),this._data.height=e.height+1,p(this._data,this._toBBox)}_chooseSplitIndex(e,t,r){let i,n,s;i=n=1/0;for(let a=t;a<=r-t;a++){let t=u(e,0,a,this._toBBox),o=u(e,a,r,this._toBBox),l=g(t,o),p=y(t)+y(o);l<i?(i=l,s=a,n=p<n?p:n):l===i&&p<n&&(n=p,s=a)}return s}_chooseSplitAxis(e,t,r){let i=e.leaf?this._compareMinX:h,n=e.leaf?this._compareMinY:c;this._allDistMargin(e,t,r,i)<this._allDistMargin(e,t,r,n)&&e.children.sort(i)}_allDistMargin(e,t,r,i){e.children.sort(i);let n=this._toBBox,s=u(e,0,t,n),a=u(e,r-t,r,n),o=m(s)+m(a);for(let i=t;i<r-t;i++){let t=e.children[i];d(s,e.leaf?n(t):t),o+=m(s)}for(let i=r-t-1;i>=t;i--){let t=e.children[i];d(a,e.leaf?n(t):t),o+=m(a)}return o}_condense(e){for(let t=e.length-1;t>=0;t--){let r=e.data[t];if(0===r.children.length)if(t>0){let n=e.data[t-1],s=n.children;s.splice((0,i.qh)(s,r,s.length,n.indexHint),1)}else this.clear();else p(r,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let r=e;for(C.clear();r;){if(!0===r.leaf)for(let e of r.children)t((0,n.z)(e));else C.pushArray(r.children);r=C.pop()??null}}function p(e,t){u(e,0,e.children.length,t,e)}function u(e,t,r,i,n){n||=new E([]),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let s,a=t;a<r;a++)s=e.children[a],d(n,e.leaf?i(s):s);return n}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function h(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){let r=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,n-r)*Math.max(0,s-i)}function b(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function w(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function M(e,t,r,i,n){let s=[t,r];for(;s.length;){let t=s.pop(),r=s.pop();if(t-r<=i)continue;let o=r+Math.ceil((t-r)/i/2)*i;(0,a.q)(e,o,r,t,n),s.push(r,o,o,t)}}const I=new s.A,C=new s.A,_=new s.A,T=new s.A({deallocator:void 0});class v{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends v{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class E extends A{constructor(e){super(),this.children=e,this.leaf=!0}}class x extends A{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,r){r.d(t,{Qf:()=>o,Qh:()=>s,lM:()=>n});var i=r(34275);function n(e){if(!e)return 0;let t=p;for(let r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function s(e){if(!e)return 0;if("number"==typeof e[0])return o(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=u;for(let i=0;i<t;i++)r+=a(e[i]);return r}(e);let t=p;for(let r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?s(e):p;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+d:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return u+e.length*t}const p=32,u=16,d=145},15795(e,t,r){r.d(t,{A:()=>d});var i=r(32198),n=r(91429),s=r(58318),a=r(4146),o=r(63074),l=r(25036),p=r(98809),u=r(88625);let d=class extends((0,o.dM)((0,l.j)(a.A))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new p.Y,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}get loaded(){return super.loaded}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}graphicChanged(e){this.emit("graphic-update",e)}};(0,i.Cg)([(0,n.MZ)({type:u.A})],d.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,n.MZ)((0,s.C)(p.Y,"graphics"))],d.prototype,"graphics",void 0),(0,i.Cg)([(0,n.MZ)({type:["show","hide"]})],d.prototype,"listMode",void 0),(0,i.Cg)([(0,n.MZ)()],d.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,n.MZ)({readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({constructOnly:!0})],d.prototype,"internal",void 0),d=(0,i.Cg)([(0,n.$K)("esri.layers.GraphicsLayer")],d)},6518(e,t,r){r.d(t,{F:()=>o});var i=r(44208),n=r(75503),s=r(19419);const a={minX:0,minY:0,maxX:0,maxY:0};class o{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.wq(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((r,i)=>{e[t++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,s.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,r){(function(e){a.minX=e[0],a.minY=e[1],a.maxX=e[2],a.maxY=e[3]})(t),e.search(a,r)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,r){r.d(t,{A:()=>y});var i=r(4576),n=r(49186),s=r(65529),a=r(53966),o=r(70328),l=r(19419),p=r(90708),u=r(6518),d=r(51441),h=r(37730);const c=(0,o.vt)();class y{constructor(e){this.geometryInfo=e,this._boundsStore=new u.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=h.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;let[t,r,i,n]=this.fullBounds;return{xmin:t,ymin:r,xmax:i,ymax:n,spatialReference:(0,d.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(let t of e)this._add(t);this._emitChanged()}upsertMany(e){let t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){let t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(let t of e){let e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(let r of e){let e=this._boundsStore.get(r.objectId);e&&t((0,o.Jt)(c,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;let t=e.objectId;if(null==t)return void a.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e}));let r,i=this._featuresById.get(t);if(i?(e.displayId=i.displayId,r=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);r=(0,p.jQ)(r??(0,l.vt)(),e.geometry),null!=r&&this._boundsStore.set(t,r),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){let t=e?.objectId;if(null==t)return a.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;let r=this._featuresById.get(t);if(!r)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(r)??0;let{geometry:i,attributes:s}=e;for(let e in s)r.attributes[e]=s[e];return i&&(r.geometry=i,this._boundsStore.set(t,(0,p.jQ)((0,l.vt)(),i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(r)??0,r}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);let t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,r){var i=r(43334);const n={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,r)=>new i.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};r.d(t,["T",0,n])},64714(e,t,r){r.d(t,{F0:()=>o,Vx:()=>u,e2:()=>h,f:()=>m});var i=r(44208),n=r(4718),s=r(99352),a=r(93470);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?a.Cb:"esriGeometryPolyline"===e?a.yM:a.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function u(e,t){if((0,i.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${d(t)} = null;`);for(let t in e)r+=`this${d(t)} = ${JSON.stringify(e[t])};`;let i=Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new i}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function h(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(e)}}]}const c={...s.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},y={...s.P,supportedStatistics:{...s.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function m(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?c:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?y:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},24137(e,t,r){r.d(t,{P:()=>C});var i=r(32198),n=r(69622),s=r(49186),a=r(53966),o=r(91869),l=r(17676),p=r(39516),u=r(91429),d=r(5443),h=r(39829),c=r(99917),y=r(21325),m=r(15375);const f=(e,t)=>{if("column-reference"===e.type)return e.column===t.systemOidFieldName?"ID(n)":`n.${e.column}`;if("string"===e.type)return`'${e.value}'`;if("number"===e.type)return`${e.value}`;if("binary-expression"===e.type&&t.supportedSqlTypes.has(e.left.type)&&t.supportedSqlTypes.has(e.right.type)&&t.supportedSqlOperators.has(e.operator))return`${f(e.left,t)} ${e.operator} ${f(e.right,t)}`;if("binary-expression"===e.type&&"LIKE"===e.operator){let r="";if("function"===e.left.type&&"column-reference"===e.left.args.value[0].type)r+=`lower(n.${e.left.args.value[0].column})`;else{if("column-reference"!==e.left.type)return t.unsupportedOperationFound=!0,"";r+=`lower(n.${e.left.column})`}if(r+=" CONTAINS (","string"!==e.right.type)return t.unsupportedOperationFound=!0,"";{let t=e.right.value;t.startsWith("%")&&(t=t.slice(1)),t.endsWith("%")&&(t=t.slice(0,-1)),r+=`'${t.toLowerCase()}')`}return r}return t.unsupportedOperationFound=!0,""};var g=r(69860),b=r(99916),w=r(53902),M=r(42538),I=r(97552);let C=class extends n.A{constructor(e){super(e),this._processingCacheUpdatesLookup=new Map,this.knowledgeGraph=null,this.inclusionModeDefinition={generateAllSublayers:!0,namedTypeDefinitions:new Map},this.entityTypeNames=new Set,this.relationshipTypeNames=new Set,this.geographicLookup=new Map,this.sublayerCaches=new Map,this.nodeConnectionsLookup=new Map,this.relationshipConnectionsLookup=new Map,this.memberIdTypeLookup=new Map;let t=new Map;e.knowledgeGraph.dataModel.entityTypes?.forEach(r=>{r.name&&(t.set(r.name,"entity"),this._processingCacheUpdatesLookup.set(r.name,[]),(!e.inclusionModeDefinition||e.inclusionModeDefinition?.generateAllSublayers)&&this.entityTypeNames.add(r.name),r.properties?.forEach(e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(r.name,{name:e.name??"",geometryType:e.geometryType})}))}),e.knowledgeGraph.dataModel.relationshipTypes?.forEach(r=>{r.name&&(t.set(r.name,"relationship"),this._processingCacheUpdatesLookup.set(r.name,[]),(!e.inclusionModeDefinition||e.inclusionModeDefinition?.generateAllSublayers)&&this.relationshipTypeNames.add(r.name),r.properties?.forEach(e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(r.name,{name:e.name??"",geometryType:e.geometryType})}))}),e.inclusionModeDefinition?.namedTypeDefinitions.forEach((r,i)=>{if("entity"===t.get(i))this.entityTypeNames.add(i);else{if("relationship"!==t.get(i))return a.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(i);this.relationshipTypeNames.add(i)}let n=new Map;r.members?.forEach(e=>{(0,o.tE)(this.memberIdTypeLookup,e.id,()=>new Set).add(i)}),this.sublayerCaches.set(i,n)})}addToLayer(e){e.forEach(({typeName:e,id:t})=>{if(!this.inclusionModeDefinition)throw new s.A("knowledge-graph:layer-data-manager","You cannot add to a layer's exclusion list if it was not created with an exclusion list originally");if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){let r=this.inclusionModeDefinition.namedTypeDefinitions.get(e);r.members||=new Map,r.members.set(t,{id:t}),(0,o.tE)(this.memberIdTypeLookup,t,()=>new Set).add(e)}}else{let r=new Map;r.set(t,{id:t}),this.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:r}),(0,o.tE)(this.memberIdTypeLookup,t,()=>new Set).add(e)}})}getById(e){return g.A.getInstance().readFromStoreById(e)}async getData(e,t,r,i){if(t.objectType.name&&this.inclusionModeDefinition?.namedTypeDefinitions&&this.inclusionModeDefinition.namedTypeDefinitions.size>0&&!this.inclusionModeDefinition.namedTypeDefinitions.has(t.objectType.name))return{features:[],cypherTranslationApplied:!1};let n;if(n=e||new I.A({where:"1=1",outFields:["*"]}),"link-chart"===r.type){let e=r,i=this._processingCacheUpdatesLookup.get(t.objectType.name??""),s=n.outFields;s&&1===s.length&&s[0]===m.dr&&"1=1"===n.where||await Promise.all(i??[]);let a=this.sublayerCaches.has(t.objectType.name??"")?Array.from(this.sublayerCaches.get(t.objectType.name)?.values()):[],o=[];return a.forEach(r=>{if(this.relationshipTypeNames.has(t.objectType.name)){r.geometry=e.relationshipLinkChartDiagramLookup.get(r.attributes[t.objectIdField]);let i=this.memberIdTypeLookup.get(r.attributes[m.Cz]),n=this.memberIdTypeLookup.get(r.attributes[m.KQ]),s=this._isEndEntitySpatial(i,r,m.Cz),a=this._isEndEntitySpatial(n,r,m.KQ);r.attributes[m.BL]=Number(s&&a)}else{r.geometry=e.entityLinkChartDiagramLookup.get(r.attributes[t.objectIdField]);let i=this.geographicLookup.get(t.objectType.name);i&&r.attributes[i.name]?r.attributes[m.BL]=1:r.attributes[m.BL]=0}r.attributes[m.T1]=r.geometry,o.push(r)}),{features:o,cypherTranslationApplied:!1}}return this.retrieveDataFromService(n,t,r,i)}async getConnectedRecordIds(e,t,r){let i=[],n="",s=this._getNamedTypeIdMapFromNodeIds(e);if(t&&0!==t?.length){for(let e of t)n=n+e+"|";n=n.slice(0,-1)}let a={},o=[];for(let[e,r]of s){let i=`${e}_ids`;a[i]=r,t&&0!==t?.length?o.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r:${n}]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`):o.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`)}if(!o.length)return i;let l=o.join(" UNION "),p=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new M.A({openCypherQuery:l,bindParameters:a}),{signal:r?.signal})).resultRowsStream.getReader();for(;;){let{done:e,value:t}=await p.read();if(e)break;for(let e=0;e<t.length;e++){let r=t[e];i.push({id:r[0],typeName:r[1]}),i.push({id:r[2],typeName:r[3]})}}return i}async getRelationshipsBetweenNodes(e,t,r){let i=this._getNamedTypeIdMapFromNodeIds(e);if(0===i.size)return[];let n={relationshipExclusionIds:t,possibleConnectionEntityIds:e},s=[];for(let[e,t]of i.entries()){let r=`${e}_ids`;n[r]=t,s.push(`MATCH (n:${e}) WHERE id(n) IN $${r} WITH n MATCH (n)-[r]->(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}let a=s.join(" UNION "),o=[],l=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new M.A({openCypherQuery:a,bindParameters:n}),{signal:r?.signal})).resultRowsStream.getReader();for(;;){let{done:e,value:t}=await l.read();if(e)break;for(let e=0;e<t.length;e++){let r=t[e];o.push({id:r[0],typeName:r[1]})}}return o}async getRelationshipsFromNodes(e,t,r,i){let n=this._getNamedTypeIdMapFromNodeIds(e);if(0===n.size||0===t.length)return[];let s={relationshipExclusionIds:r,possibleConnectionEntityIds:t},a=[];for(let[e,t]of n.entries()){let r=`${e}_ids`;s[r]=t,a.push(`MATCH (n:${e}) WHERE id(n) IN $${r} WITH n MATCH (n)-[r]-(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}let o=a.join(" UNION "),l=new Map,p=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new M.A({openCypherQuery:o,bindParameters:s}),{signal:i?.signal})).resultRowsStream.getReader();for(;;){let{done:e,value:t}=await p.read();if(e)break;for(let e=0;e<t.length;e++){let r=t[e],i=l.get(r[1]);i||(i=new Set,l.set(r[1],i)),i.add(r[0])}}let u=[];for(let[e,t]of l)for(let r of t)u.push({id:r,typeName:e});return u}async refreshCacheContent(e,t,r,i=!0,n){let a=g.A.getInstance(),p=[],u=new Map,d=new Map;this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&d.set(e.name,e)}),this.knowledgeGraph.dataModel.relationshipTypes?.forEach(e=>{e.name&&d.set(e.name,e)}),e||this.inclusionModeDefinition?e?e.forEach(e=>{if(this.memberIdTypeLookup.has(e))for(let t of this.memberIdTypeLookup.get(e))u.has(t)?u.get(t)?.push(e):u.set(t,[e])}):this.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{e.useAllData?u.set(t,null):e.members&&e.members.forEach(e=>{u.has(t)&&null!==u.get(t)?u.get(t)?.push(e.id):u.set(t,[e.id])})}):(this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&u.set(e.name,null)}),this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&u.set(e.name,null)}));for(let[e,l]of u){let u=new Set(l),h=new Promise((p,h)=>{(async()=>{let p,h=new Set,c=[],y="",f=!1;if(t||d.get(e)?.properties?.forEach(e=>{e.name&&h.add(e.name)}),r&&this.geographicLookup.has(e)){let t=this.geographicLookup.get(e)?.name;t&&h.add(t)}if(this.entityTypeNames.has(e))y=`MATCH (n:${e}) ${l?"WHERE id(n) IN $ids ":""}return ID(n)`,h.forEach(e=>{y+=`, n.${e}`,c.push(e)});else{if(!this.relationshipTypeNames.has(e))throw new s.A("knowledge-graph:layer-data-manager",`The graph type of ${e} could not be determined. Was this type set in the KG data model and inclusion definition?`);f=!0,y=`MATCH ()-[n:${e}]->() ${l?"WHERE id(n) IN $ids ":""}return ID(n), id(startNode(n)), id(endNode(n))`,h.forEach(e=>{y+=`, n.${e}`,c.push(e)})}p=l?new M.A({openCypherQuery:y,bindParameters:{ids:l}}):new M.A({openCypherQuery:y});let g=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,p,{signal:n?.signal})).resultRowsStream.getReader();for(;;){let{done:t,value:r}=await g.read();if(t)break;let n=[];for(let e=0;e<r.length;e++){let t=r[e],i=0,s=0,a={properties:{}};for(a.id=t[i],i++,s++,f&&(a.originId=t[i],i++,s++,a.destinationId=t[i],i++,s++,(0,o.tE)(this.nodeConnectionsLookup,a.originId,()=>new Set).add(a.id),(0,o.tE)(this.nodeConnectionsLookup,a.destinationId,()=>new Set).add(a.id),(0,o.tE)(this.relationshipConnectionsLookup,a.id,()=>[a.originId,a.destinationId]));i<t.length;i++)a.properties[c[i-s]]=t[i];u.delete(a.id),n.push(a)}let s=a.writeToStore(n,m.dr,this.geographicLookup.get(e)?.name);this.sublayerCaches.has(e)||this.sublayerCaches.set(e,new Map),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.has(e)&&this.inclusionModeDefinition?.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members&&(this.inclusionModeDefinition.namedTypeDefinitions.get(e).members=new Map);let l=this.sublayerCaches.get(e);s.forEach(t=>{l?.set(t.attributes[m.dr],t),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.has(t.attributes[m.dr])&&(this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.set(t.attributes[m.dr],{id:t.attributes[m.dr]}),(0,o.tE)(this.memberIdTypeLookup,t.attributes[m.dr],()=>new Set).add(e))})}let b=this.inclusionModeDefinition?.namedTypeDefinitions.get(e);if(b)for(let e of u)b.members?.delete(e)})().then(()=>{p(null)}).catch(e=>{"AbortError"===e.name?p(null):h(e)})});p.push(h),this._processingCacheUpdatesLookup.get(e)?.push(h)}if(await Promise.all(p),n?.signal?.aborted)throw(0,l.NK)()}removeFromLayer(e){let t=new Set,r=new Set(e.map(e=>e.id));for(let r of e)t.add(r.typeName),1===this.memberIdTypeLookup.get(r.id)?.size?this.memberIdTypeLookup.delete(r.id):this.memberIdTypeLookup.get(r.id)?.delete(r.typeName),this.inclusionModeDefinition?.namedTypeDefinitions.forEach((e,t)=>{t===r.typeName&&e.members?.has(r.id)&&e.members.delete(r.id)});t.forEach(e=>{this.sublayerCaches.get(e)?.forEach((t,i)=>{r.has(i)&&this.sublayerCaches.get(e)?.delete(i)})})}async retrieveDataFromService(e,t,r,i){let n,o=g.A.getInstance(),l=new Set,u=[],I="",C=[],_=!1,T="relationship"===t.graphType,v=this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData,A=r.sublayerIdsCache.get(t.objectType.name),E=!v&&A?Array.from(A).sort():null,x={systemOidFieldName:m.dr,supportedSqlTypes:new Set(["column-reference","string","number","binary-expression"]),supportedSqlOperators:new Set(["=","<","<=","<>",">",">=","AND","OR","LIKE"]),unsupportedOperationFound:!1};if(this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData)this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData&&null!=e.objectIds&&(E=e.objectIds);else if(null!=e.objectIds&&E&&E.length>0){let t=e.objectIds;e.objectIds=E.filter(e=>t.includes(e))}else if(null!=e.objectIds)E=e.objectIds;else{if(this.inclusionModeDefinition?.namedTypeDefinitions.has(t.objectType.name)&&(!this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members||this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members?.size<1))return e.objectIds=[],{features:[],cypherTranslationApplied:_};e.objectIds=E}if(null!=e.outFields){let r=e.outFields;r.includes("*")?t.fields.forEach(e=>{l.add(e.name)}):r.forEach(e=>{e!==m.dr&&e!==t.geometryFieldName&&l.add(e)})}if(null!=e.geometry){let i,a=e.geometry,o=r.dataManager.knowledgeGraph.serviceDefinition,m=o?.spatialReference,f=o?.serviceCapabilities?.geometryCapabilities,g=f?.geometryMaxBoundingRectangleSizeX,w=f?.geometryMaxBoundingRectangleSizeY;if("point"===a.type){let e=a;e.spatialReference?.isWGS84||(await(0,c.initializeProjection)(e.spatialReference,y.KK),e=(0,c.project)(e,y.KK)),i=new d.A({spatialReference:y.KK,xmin:e.x-1e-4,ymin:e.y-1e-4,xmax:e.x+1e-4,ymax:e.y+1e-4})}else a?.extent?.spatialReference&&!a.spatialReference?.isWGS84?(await(0,c.initializeProjection)(a.extent.spatialReference,y.KK),i=(0,c.project)(a.extent,y.KK)):i=a.extent;if(g&&w&&m){if(4326!==m.wkid){let e=new d.A({spatialReference:m,xmax:g,ymax:w}),t=(0,c.project)(e,y.KK);g=t.xmax,w=t.ymax}if(i.xmax-i.xmin>g)throw new s.A("knowledge-graph:layer-data-manager",`Extent x bounds should be within ${g}° latitude, limit exceeded`);if(i.ymax-i.ymin>w)throw new s.A("knowledge-graph:layer-data-manager",`Extent y bounds should be within ${w}° longitude, limit exceeded`)}if(null!=e.where&&"1=1"!==e.where){let r=await(0,p.GP)(e.where.toUpperCase(),t.fieldsIndex);t.fields.forEach(e=>{r.fieldNames.includes(e.name)&&l.add(e.name)})}I=T?`Match ()-[n:${t.objectType.name}]->() WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n), id(startNode(r)), id(endNode(r))`:`Match (n:${t.objectType.name}) WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n)`,t.geometryFieldName&&l.add(t.geometryFieldName),l.forEach(e=>{I+=`, n.${e}`,u.push(e)}),n=new M.A({openCypherQuery:I,bindParameters:{param_filter_geom:new h.A({rings:(0,b.Wq)(i)})}})}else{let r="";if(null!=e.where&&"1=1"!==e.where){let i=await(0,p.GP)(e.where,t.fieldsIndex);t.fields.forEach(e=>{i.fieldNames.includes(e.name)&&l.add(e.name)}),r=f(i.parseTree,x),x.unsupportedOperationFound&&(r="")}let i="";i=T?`Match ()-[n:${t.objectType.name}]->()`:`Match (n:${t.objectType.name})`;let s=!1;E&&(s=!0,i+=" WHERE ID(n) IN $ids"),r&&(i+=s?" AND":" WHERE",i+=` ${r}`),i+=" return ID(n)",T&&(i+=", id(startNode(n)), id(endNode(n))"),e.returnGeometry&&t.geometryFieldName&&l.add(t.geometryFieldName),l.forEach(e=>{i+=`, n.${e}`,u.push(e)}),x.unsupportedOperationFound||(i=((e,t)=>{let r=e;return t.orderByFields?.length&&(r=function(e,t){let r=e.trimEnd();if(/\border\s+by\b/i.test(r))return a.A.getLogger("cypherUtils").warn("Query already contains an ORDER BY clause. Skipping addition of new ORDER BY."),e;let i=t.map(e=>e.trim()).filter(e=>!!e).map(e=>{let[t,r]=e.split(/\s+/);return t?`${t===m.dr?"ID(n)":`n.${t}`} ${"DESC"===r?.toUpperCase()?"DESC":"ASC"}`:null}).filter(e=>!!e);return i.length?`${r} ORDER BY ${i.join(", ")}`:e}(r,t.orderByFields)),null!=t.start&&(r=function(e,t){let r=e.trimEnd();return/\bskip\s+(\$\w+|\d+)\b/i.test(r)?(a.A.getLogger("cypherUtils").warn("Query already contains a SKIP clause. Skipping addition of new SKIP."),e):`${r} SKIP ${t}`}(r,t.start)),null!=t.num&&(r=function(e,t){let r=e.trimEnd();return/\blimit\s+(\$\w+|\d+)\b/i.test(r)?(a.A.getLogger("cypherUtils").warn("Query already contains a LIMIT clause. Skipping addition of new LIMIT."),e):`${r} LIMIT ${t}`}(r,t.num)),r})(i,e),_=!0),n=E?new M.A({openCypherQuery:i,bindParameters:{ids:E}}):new M.A({openCypherQuery:i})}let S=(await(0,w.executeQueryStreaming)(r.dataManager.knowledgeGraph,n,i)).resultRowsStream.getReader();for(;;){let{done:e,value:i}=await S.read();if(e)break;let n=[];for(let e=0;e<i.length;e++){let t=i[e],r=0,s=0,a={properties:{}};for(a.id=t[r],r++,s++,T&&(a.originId=t[r],r++,s++,a.destinationId=t[r],r++,s++);r<t.length;r++)a.properties[u[r-s]]=t[r];n.push(a)}C=C.concat(o.writeToStore(n,m.dr,r.dataManager.geographicLookup.get(t.objectType.name)?.name))}return{features:C,cypherTranslationApplied:_}}_isEndEntitySpatial(e,t,r){for(let i of e??[])if(this.entityTypeNames.has(i)){let e=this.geographicLookup.get(i),n=e&&this.sublayerCaches.get(i)?.get(t.attributes[r]);if(e&&n?.attributes[e.name])return!0}return!1}_getNamedTypeIdMapFromNodeIds(e){let t=new Map;return e.forEach(e=>{if(this.memberIdTypeLookup.has(e))for(let r of this.memberIdTypeLookup.get(e)){if(!this.entityTypeNames.has(r))return;t.has(r)?t.get(r)?.push(e):t.set(r,[e])}}),t}};(0,i.Cg)([(0,u.MZ)()],C.prototype,"knowledgeGraph",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"inclusionModeDefinition",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"entityTypeNames",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"relationshipTypeNames",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"geographicLookup",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"sublayerCaches",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"nodeConnectionsLookup",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"relationshipConnectionsLookup",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"memberIdTypeLookup",void 0),C=(0,i.Cg)([(0,u.$K)("esri.layers.knowledgeGraph.KnowledgeGraphLayerDataManager")],C)},62796(e,t,r){r.d(t,{A:()=>fe});var i=r(32198),n=r(37838),s=r(49186),a=r(4718),o=r(53966),l=r(25728),p=r(91429),u=(r(29953),r(78247)),d=r(5443),h=r(86738),c=r(39829),y=r(82799),m=r(99917),f=r(16930),g=r(21325),b=r(50498),w=r(41910),M=r(55156),I=r(60950),C=r(89808),_=r(99959);const T=Symbol("isKnowledgeGraphGraphicOriginSymbol");var v;class A extends _.A{get[(v=T,I.ym)](){return this.sublayer}get[M.e](){return this.sublayer}get[C.Q](){return this.sublayer}get[w.e7](){return this.sublayer}constructor(e,t){super(),this[v]=!0,this.type="knowledge-graph",this.layer=e,this.sublayer=t}get id(){return this.layer.id}}const E=Symbol("isLinkChartGraphicOriginSymbol");var x;class S extends _.A{get[(x=E,I.ym)](){return this.sublayer}get[M.e](){return this.sublayer}get[C.Q](){return this.sublayer}get[w.e7](){return this.sublayer}constructor(e,t){super(),this[x]=!0,this.type="link-chart",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var k=r(4146),L=r(83221),N=r(75752),F=r(64714),R=r(15375);const O=(0,r(17036).p)(),D=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.fields=[],this.fieldsIndex=null}};return(0,i.Cg)([(0,p.MZ)(O.fields)],r.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(O.fieldsIndex)],r.prototype,"fieldsIndex",void 0),r=(0,i.Cg)([(0,p.$K)("esri.layers.knowledgeGraph.KnowledgeGraphSublayerBase")],r),r};var P=r(40736),j=r(63074),B=r(6455),G=r(87718),$=r(56658),Z=r(32756),Q=r(54310),q=r(25036),U=r(82935),z=r(10873),Y=r(20569),H=r(29005),X=r(20437),W=r(30524),K=r(46499),V=r(39383),J=r(96184),ee=r(96576),te=r(65494),re=r(41214),ie=r(53902),ne=r(22671),se=r(97552),ae=r(30291),oe=r(88625),le=r(37531),pe=r(61322),ue=r(43937);function de(e){if(!e.json)return e;e.json.write=he(e.json.write);let t,r=e.json.origins;if(!r)return e;for(t in r){let e=r[t];e&&(e.write=he(e.write))}return e}function he(e){return"object"==typeof e&&e?(!1!==e.enabled&&(e.overridePolicy=function(e){let{target:t,writer:r,overridePolicy:i,...n}=e;return function(e,t){let r=ye.call(this,e,t);return r.enabled?{...n,...r}:r}}(e)),e):!0===e?ce():e}function ce(){return{overridePolicy:ye}}function ye(e,t){let r=!!this.geometryType,i={enabled:r};return r&&(i={...i,...me.call(this,e,t)}),i}function me(e,t){return{ignoreOrigin:this.originIdOf(t)>0}}let fe=class extends(D((0,B.FJ)((0,$.J)((0,G.F)((0,j.dM)((0,Z.fY)((0,U.e)((0,q.j)((0,Q.J)((0,l.M)(k.A))))))))))){constructor(e){super(e),this.blendMode="normal",this.charts=null,this.definitionExpression=null,this.displayFilterEnabled=!0,this.displayFilterInfo=null,this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=R.dr,this.objectType=null,this.opacity=1,this.orderBy=null,this.parent=null,this.parentCompositeLayer=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then(()=>{let e=new MessageChannel;return new pe.default(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{let r=se.A.fromJSON(e);return this.queryFeaturesJSON(r,t)}}}),[e.port2]})},this.type="knowledge-graph-sublayer",this.useViewTime=!0,this.visible=!0}get capabilities(){return this.parent?this.parent.sublayerCapabilities:(0,P.hZ)(null)}get isTable(){return"link-chart"!==this.parentCompositeLayer?.type&&null==this.geometryFieldName}get defaultPopupTemplate(){return this.createPopupTemplate()}get editingEnabled(){return this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveCapabilities(){let e=(0,a.o8)(this.capabilities),{operations:t,editing:r}=e;return this.userHasUpdateItemPrivileges&&(t.supportsAdd=t.supportsDelete=t.supportsEditing=t.supportsQuery=t.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0),this.userHasFullEditingPrivileges&&t.supportsEditing&&(t.supportsAdd=t.supportsDelete=t.supportsUpdate=r.supportsGeometryUpdate=!0),e}get effectiveEditingEnabled(){return this.userHasUpdateItemPrivileges||this.editingEnabled}set featureReduction(e){let t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}get fields(){let e=[],t=new Map;for(let e of this.parent?.knowledgeGraph.dataModel.domains??[])t.set(e.name,e);return this.objectType?.properties?.forEach(r=>{let i="esriFieldTypeOID"===r.fieldType?"esriFieldTypeInteger":r.fieldType,n=X.A.fromJSON({name:r.name,type:i,alias:r.alias,defaultValue:r.defaultValue,editable:r.editable,nullable:r.nullable,domain:r.domain&&t.has(r.domain)?t.get(r.domain).toJSON():void 0});e.push(n)}),e.push(X.A.fromJSON({name:this.objectIdField,type:"esriFieldTypeString",alias:this.objectIdField,editable:!1}),X.A.fromJSON({name:R.M1,type:"esriFieldTypeInteger",alias:R.M1,editable:!1}),X.A.fromJSON({name:R.BL,type:"esriFieldTypeInteger",alias:R.BL,editable:!1})),e}get formTemplate(){return this._isOverridden("formTemplate")?this._get("formTemplate"):(0,P.dD)(this)}set formTemplate(e){this._overrideIfSome("formTemplate",e)}get geometryType(){if("link-chart"===this.parentCompositeLayer?.type)return"relationship"===this.graphType?"polyline":"point";let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.geometryType;return e&&"esriGeometryNull"!==e?b.gy.fromJSON(e):null}get geometryFieldName(){return"link-chart"===this.parentCompositeLayer?.type?R.T1:this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name??null}get graphicOrigin(){if(!this.parent)return null;switch(this.parent.type){case"knowledge-graph":return new A(this.parent,this);case"link-chart":return new S(this.parent,this)}}get graphTypeName(){return this.objectType?.name}set graphTypeName(e){this._set("graphTypeName",e)}get hasM(){let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name;return(e?this.objectType?.properties?.[e]:null)?.hasM??!1}get hasZ(){let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name;return(e?this.objectType?.properties?.[e]:null)?.hasZ??!1}set labelingInfo(e){this._set("labelingInfo",e)}get labelingInfo(){if(this._isOverridden("labelingInfo"))return this._get("labelingInfo");if(!this.objectType||!this.parentCompositeLayer||!this.graphTypeName)return null;let e=this.objectType.properties?(0,P.MY)(this.objectType.properties):"ESRI__ID";return"link-chart"===this.parentCompositeLayer.type?(0,P.iW)(this.graphType,this.graphTypeName,e):(0,P.e$)(this.graphTypeName,this.geometryType,e)}set renderer(e){(0,W.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");let e=this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel,t=[...e?.entityTypes??[],...e?.relationshipTypes??[]].map(e=>e.name).indexOf(this.graphTypeName),r=(0,P.Td)(t);if("link-chart"===this.parentCompositeLayer?.type){if("relationship"===this.graphType)return new ee.A({type:"simple",symbol:(0,P.UT)(r)});let e=(0,te.r)((0,F.F0)(b.gy.toJSON("point")).renderer);return(0,le.dt)(e.symbol,r),e}let i=(0,te.r)((0,F.F0)(b.gy.toJSON(this.geometryType)).renderer);return(0,le.dt)(i.symbol,r),i}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??f.A.WGS84}get templates(){return this._isOverridden("templates")?this._get("templates"):(0,P.CP)(this)}set templates(e){this._overrideIfSome("templates",e)}set timeInfo(e){this._set("timeInfo",e)}get dateFieldsTimeZone(){return this.parentCompositeLayer?.dateFieldsTimeZone}get title(){return this._isOverridden("title")?this._get("title"):this.graphTypeName}set title(e){this._set("title",e)}writeTitle(e,t){t.title=e??"Layer"}get userHasEditingPrivileges(){return!this.parent||this.parent.userHasEditingPrivileges}get userHasFullEditingPrivileges(){return!!this.parent&&this.parent.userHasFullEditingPrivileges}get userHasUpdateItemPrivileges(){return!!this.parent&&this.parent.userHasUpdateItemPrivileges}createPopupTemplate(e){return(0,ae.tn)(this,e)}createQuery(){return new se.A({where:"1=1",outFields:["*"]})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){return this.fields.find(t=>t.name===e)?.domain||null}async queryFeatures(e,t){await this.load();let{resolvedQuery:r,queryEngine:i,cypherTranslationApplied:n}=await this._setupQueryObjects(e),s=this.graphicOrigin,a=ne.A.fromJSON(await i.executeQuery(this._createQueryEngineQueryJSON(r,n),t?.signal));return a.features.forEach(e=>{e.sourceLayer=this,e.origin=s}),a}async queryFeaturesJSON(e,t){await this.load();let{resolvedQuery:r,queryEngine:i,cypherTranslationApplied:n}=await this._setupQueryObjects(e);return await i.executeQuery(this._createQueryEngineQueryJSON(r,n),t?.signal)}async queryFeatureCount(e,t){await this.load();let{resolvedQuery:r,queryEngine:i,cypherTranslationApplied:n}=await this._setupQueryObjects(e);return i.executeQueryForCount(this._createQueryEngineQueryJSON(r,n),t?.signal)}async queryExtent(e={},t){await this.load();let r,i={...e,returnGeometry:!0},{resolvedQuery:n,queryEngine:s,cypherTranslationApplied:a}=await this._setupQueryObjects(i),o=await s.executeQueryForExtent(this._createQueryEngineQueryJSON(n,a),t?.signal);return r=null!=o.extent?.xmin&&null!=o.extent?.xmax&&null!=o.extent?.ymin&&null!=o.extent?.ymax?new d.A(o.extent):new d.A,{count:o.count,extent:r}}async queryObjectIds(e,t){await this.load();let r,i=se.A.from(e);if(this.parentCompositeLayer){if("link-chart"!==this.parentCompositeLayer.type||!this._cachedQueryEngine){let{features:e,cypherTranslationApplied:n}=await this.parentCompositeLayer.dataManager.getData(i,this,this.parentCompositeLayer,t);return r=this.loadQueryEngine(e),await r.executeQueryForIds(this._createQueryEngineQueryJSON(i,n),t?.signal)}r=this._cachedQueryEngine}else o.A.getLogger(this).warn("Attempting to query for object IDs with no features failed because the parent composite layer is missing or not yet loaded."),r=this.loadQueryEngine([]);return await r.executeQueryForIds(this._createQueryEngineQueryJSON(i,!1),t?.signal)}async applyEdits(e){if(!this.parentCompositeLayer?.dataManager.knowledgeGraph)throw new s.A("knowledge-graph-sublayer:no-knowledge-graph","ApplyEdits cannot be executed because the parent does not have a Knowledge Graph model. This is usually caused by the layer not yet being loaded");let t=await(0,P.O9)(e,this,this.parentCompositeLayer);t.options={cascadeDelete:!0,cascadeProvenanceDelete:!!this.parent?.knowledgeGraph.serviceDefinition.supportsProvenance||void 0};let r=await(0,ie.executeApplyEdits)(this.parentCompositeLayer.dataManager.knowledgeGraph,t),i=(0,P.Gz)(r,this.graphTypeName),n={addedFeatures:i.addFeatureResults,updatedFeatures:i.updateFeatureResults,deletedFeatures:i.deleteFeatureResults,addedAttachments:i.addAttachmentResults,deletedAttachments:i.deleteAttachmentResults,updatedAttachments:i.updateAttachmentResults,exceededTransferLimit:!1,historicMoment:new Date,edits:void 0};return this.emit("edits",n),this.emit("apply-edits",{result:Promise.resolve(n)}),"link-chart"===this.parentCompositeLayer.type&&await this.parentCompositeLayer.refreshLinkChartCache([...n.addedFeatures.map(e=>e.globalId),...n.updatedFeatures.map(e=>e.globalId),...n.deletedFeatures.map(e=>e.globalId)]),i}loadQueryEngine(e){let t=new L.A({geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),r=new N.do({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,featureIdInfo:{type:"object-id",fieldName:this.objectIdField},spatialReference:this.spatialReference.toJSON(),timeInfo:this.timeInfo?.toJSON(),featureStore:t});return r.featureStore.addMany(e),r}async refreshCachedQueryEngine(){if(!this.parentCompositeLayer)return o.A.getLogger(this).warn("Attempting to refresh the cached query engine with no features failed because the parent composite layer is missing or not yet loaded."),void(this._cachedQueryEngine=this.loadQueryEngine([]));let{features:e}=await this.parentCompositeLayer.dataManager.getData(new se.A({where:"1=1",outFields:[R.dr]}),this,this.parentCompositeLayer);this._cachedQueryEngine=this.loadQueryEngine(e)}load(e){return this.addResolvingPromise(this.parent.load(e).then(()=>(0,W.sv)(this.timeInfo,this.fieldsIndex))),Promise.resolve(this)}_createQueryEngineQueryJSON(e,t){let r=e.toJSON();return t&&delete r.resultOffset,r}async _setupQueryObjects(e,t){let r=se.A.from(e),i=r.geometry;if(i&&!i.spatialReference?.isWGS84&&(await(0,m.initializeProjection)(i.spatialReference,g.KK),r.geometry=i instanceof c.A||i instanceof y.A||i instanceof h.A?(0,m.project)(i,g.KK):(0,m.project)(i.extent,g.KK)),!this.parentCompositeLayer)return o.A.getLogger(this).warn("Attempting to execute a query with no features failed because the parent composite layer is missing or not yet loaded."),{resolvedQuery:r,queryEngine:this.loadQueryEngine([]),cypherTranslationApplied:!1};if("link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)return{resolvedQuery:r,queryEngine:this._cachedQueryEngine,cypherTranslationApplied:!1};let{features:n,cypherTranslationApplied:s}=await this.parentCompositeLayer.dataManager.getData(r,this,this.parentCompositeLayer,t);return{resolvedQuery:r,queryEngine:this.loadQueryEngine(n),cypherTranslationApplied:s}}};(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(j.sU)))],fe.prototype,"blendMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"capabilities",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"isTable",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:ce()}})],fe.prototype,"charts",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1}},name:"layerDefinition.definitionExpression",write:{ignoreOrigin:!0}}})],fe.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(B.Dp)))],fe.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(B.KV)))],fe.prototype,"displayFilterInfo",void 0),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"editingEnabled",null),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(j.LF)))],fe.prototype,"effect",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)({type:oe.A})],fe.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(G.Y)))],fe.prototype,"featureEffect",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(Y.d)))],fe.prototype,"featureReduction",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"fields",null),(0,i.Cg)([(0,p.MZ)({type:u.A})],fe.prototype,"formTemplate",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"geometryType",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"geometryFieldName",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"graphicOrigin",null),(0,i.Cg)([(0,p.MZ)({type:["entity","relationship"],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],fe.prototype,"graphType",void 0),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],fe.prototype,"graphTypeName",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"hasM",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"hasZ",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],fe.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",default:!1,write:{overridePolicy(){return{enabled:!!this.geometryType,alwaysWriteDefaults:!0,ignoreOrigin:!0}}}}})],fe.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,p.MZ)({type:[K.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:function(e,t,r){let i=[["ESRI__AGGREGATION_COUNT",R.M1],["ESRI__ORIGIN_ID",R.Cz],["ESRI__DESTINATION_ID",R.KQ],["ESRI__LAYOUT_GEOMETRY",R.T1]];try{for(let t of e)for(let[e,r]of i)t.labelExpression=t.labelExpression?.replaceAll(e,r),t.labelExpressionInfo?.expression&&(t.labelExpressionInfo.expression=t.labelExpressionInfo.expression.replaceAll(e,r))}catch(e){o.A.getLogger(this).warn("Error updating labelingInfo",e)}return V.w.call(this,e,t,r)},write:ce()}})],fe.prototype,"labelingInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:{writer(e,t){switch(this.parentCompositeLayer?.type){case"link-chart":t.layerType="LinkChartSubLayer";break;case"knowledge-graph":t.layerType=this.geometryType?"KnowledgeGraphSubLayer":"KnowledgeGraphSubTable"}},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],fe.prototype,"layerType",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(z.fV)))],fe.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(z.hG)))],fe.prototype,"maxScale",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(z.hn)))],fe.prototype,"minScale",void 0),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"objectIdField",void 0),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"objectType",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(z.ke)))],fe.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(Z.ne)))],fe.prototype,"orderBy",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],fe.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"parentCompositeLayer",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(z.M6)))],fe.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:n.A,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],fe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,p.MZ)({type:Number,json:{write:{overridePolicy:me}}})],fe.prototype,"refreshInterval",void 0),(0,i.Cg)([(0,p.MZ)({types:re.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:ce()}})],fe.prototype,"renderer",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"spatialReference",null),(0,i.Cg)([(0,p.MZ)({type:H.A})],fe.prototype,"templates",null),(0,i.Cg)([(0,p.MZ)({type:J.A,json:{name:"layerDefinition.timeInfo",write:{overridePolicy:me},origins:{"web-document":{name:"layerDefinition.timeInfo",read:!0,write:{overridePolicy:me}},"portal-item":{name:"layerDefinition.timeInfo",read:!0,write:{overridePolicy:me}}}}})],fe.prototype,"timeInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"dateFieldsTimeZone",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],fe.prototype,"title",null),(0,i.Cg)([(0,ue.K)("title")],fe.prototype,"writeTitle",null),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],fe.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(U.B)))],fe.prototype,"useViewTime",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"userHasEditingPrivileges",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"userHasFullEditingPrivileges",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"userHasUpdateItemPrivileges",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:ce()}})],fe.prototype,"visible",void 0),fe=(0,i.Cg)([(0,p.$K)("esri.layers.knowledgeGraph.KnowledgeGraphSublayer")],fe)},69860(e,t,r){r.d(t,{A:()=>o});var i=r(65864),n=r(90708),s=r(43334),a=r(15375);class o{constructor(){this._featureLookup=new Map}static getInstance(){return o.instance||=new o,o.instance}static resetInstance(){o.instance&&=null}deleteFromStore(e){e.forEach(e=>{this._featureLookup.delete(e)})}readFromStoreByList(e){let t=[];return e.forEach(e=>{let r=this.readFromStoreById(e);r&&t.push(r)}),t}readFromStoreById(e){return this._featureLookup.get(e)??null}writeToStore(e,t,r){let o=[];return e.forEach(e=>{if(!e?.id)return;e.properties||=[];let l=null;r&&e.properties[r]&&(l=(0,n.Ux)(e.properties[r])),"originId"in e&&"destinationId"in e&&(e.properties[a.Cz]=e.originId,e.properties[a.KQ]=e.destinationId),e.properties[t]=e.id;let p=e.properties;if(e.id){let t=this._featureLookup.get(e.id);if(t?.attributes){p={...t.attributes,...p};let e=r&&p[r];null!=e&&(p[r]=(0,i.rS)(e)),l??=t.geometry}}let u=new s.Om(l?.clone(),p,null,e.id);this._featureLookup.set(`${e.typeName?`${e.typeName}__${e.id}`:e.id}`,u),o.push(u)}),o}}},15375(e,t,r){r.d(t,["BL",0,"LC.ESRI__IsSpatial","Cz",0,"ESRI__OriginID","KQ",0,"ESRI__DestID","M1",0,"ESRI__AggregationCount","T1",0,"ESRI__LayoutGeometry","dr",0,"ESRI__ID"])},40736(e,t,r){r.d(t,{Gz:()=>Q,O9:()=>Z,hZ:()=>$,CP:()=>U,dD:()=>q,UT:()=>O,MY:()=>D,Td:()=>R,iW:()=>P,e$:()=>j,$L:()=>z,N1:()=>B,qN:()=>N});var i=r(68197),n=r(92602),s=r(70333),a=(r(49186),r(91869)),o=r(17676),l=r(78247),p=r(89909),u=r(99917),d=r(16930),h=r(52039),c=r(99352),y=r(15375),m=r(29005),f=r(46499),g=r(73913),b=r(77548),w=r(80812),M=r(10407),I=r(53902),C=r(25927),_=r(32198),T=r(69622),v=r(91429);let A=class extends T.A{constructor(e){super(e),this.entityAdds=void 0,this.entityUpdates=void 0,this.entityDeletes=void 0,this.relationshipAdds=void 0,this.relationshipUpdates=void 0,this.relationshipDeletes=void 0,this.options=void 0}};(0,_.Cg)([(0,v.MZ)()],A.prototype,"entityAdds",void 0),(0,_.Cg)([(0,v.MZ)()],A.prototype,"entityUpdates",void 0),(0,_.Cg)([(0,v.MZ)()],A.prototype,"entityDeletes",void 0),(0,_.Cg)([(0,v.MZ)()],A.prototype,"relationshipAdds",void 0),(0,_.Cg)([(0,v.MZ)()],A.prototype,"relationshipUpdates",void 0),(0,_.Cg)([(0,v.MZ)()],A.prototype,"relationshipDeletes",void 0),(0,_.Cg)([(0,v.MZ)()],A.prototype,"options",void 0),A=(0,_.Cg)([(0,v.$K)("esri.rest.knowledgeGraph.GraphApplyEdits")],A);var E=r(23150),x=r(94128),S=r(40863),k=r(68249);const L=(e,t)=>"knowledge-graph"===e.type?`${t}/Map`:`${t}/LinkChart/LinkChartSubLayer`;async function N(e,t,r){return(async(e,t,r)=>{if(t||=[...e.layers,...e.tables].map(e=>e.graphTypeName),0===t?.length)return;let i=new Map;for(let r of t)i.set(r,L(e,r));let n=await(0,I.fetchClientDataAtKeys)(e.dataManager.knowledgeGraph,Array.from(i.values()),{requestOptions:{signal:r?.signal}});for(let t of[...e.layers,...e.tables]){let r=t.objectType.name;if(null==r)continue;let i=n.get(L(e,r));if(i){let e=JSON.parse(i);"object"==typeof e&&e&&!e.hasOwnProperty("showLabels")&&(e.showLabels=!1),t.read(e,{origin:"service"})}}})(e,t,r)}const F="#4a0932.#b31515.#18382e.#a64f1b.#102432.#8c213f.#ed9310.#2c6954.#144d59.#ffc730.#75351e.#454f4b.#78b1c2.#191921.#8f8f82.#9be0c0.#dbb658.#87b051.#11495c.#c43541.#9c5596.#44498b.#ad9d63.#86afb3.#5c98ca.#b0bfa2.#73241f.#b86b53.#d9d78c.#3e756d.#f260a1.#a0d17d.#c27c30.#eb82eb.#ffdf3c.#ffb259.#ab52b3.#3cccb4.#0095ba.#d92b30".split(".");function R(e){return e<0||e>=F.length?new i.A("#8f8f82"):new i.A(F[e])}function O(e){let t=e.toArray();return new S.A({data:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,style:"solid",width:.75,color:t},{type:"CIMVectorMarker",enable:!0,size:6,markerPlacement:{type:"CIMMarkerPlacementOnLine",angleToLine:!0,relativeTo:"LineMiddle"},frame:{xmin:-10,ymin:-5,xmax:0,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[-12,-3.47],[-12,3.6],[1.96,-.03],[-12,-3.47]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:t}]}}]}]}}})}function D(e){let t="ESRI__ID",r=4;for(let i of e)if(i.name){if("name"===i.name.toLowerCase()){t=i.name;break}i.name.toLowerCase().includes("name")?(t=i.name,r=2):"esriFieldTypeString"===i.fieldType&&r>3&&(t=i.name,r=3)}return t}function P(e,t,r){let i={color:[80,80,80],haloColor:[255,255,255],haloSize:.7,font:{size:10,weight:"normal"}},n=new f.A({labelExpressionInfo:new g.A({expression:"ESRI__ID"===r?`${t}`:`$feature.${r}`}),labelPlacement:"above-center",symbol:new k.A(i)}),s=new f.A({labelExpressionInfo:new g.A({expression:`'${t}' + IIf($feature.ESRI__AggregationCount>1, ' (' + $feature.ESRI__AggregationCount + ')', '')`}),labelPlacement:"center-along",labelPosition:"parallel",repeatLabel:!1,symbol:new k.A({...i,yoffset:"12px"})});return"entity"===e?[n]:[s]}function j(e,t,r){let i={color:[255,255,255],haloColor:[0,0,0],haloSize:.7,font:{size:10,weight:"bold"}},n="ESRI__ID"===r?`${e}`:`$feature.${r}`;return"point"===t?[new f.A({labelExpressionInfo:new g.A({expression:n}),labelPlacement:"above-center",symbol:new k.A(i)})]:"polyline"===t?[new f.A({labelExpressionInfo:new g.A({expression:n}),labelPlacement:"center-along",repeatLabel:!0,symbol:new k.A(i)})]:"polygon"===t?[new f.A({labelExpressionInfo:new g.A({expression:n}),labelPlacement:"always-horizontal",symbol:new k.A(i)})]:null}async function B(e,t,r){return(async(e,t,r)=>{let i=!0,a=!1,o=!1;if(!n.A.userPrivilegesApplied)return{edit:i,fullEdit:a,updateItem:o};let l=await(0,b.wI)(t,r);if(!l||!s.id?.getCredential(`${l}/sharing`,{...r,prompt:!1}))return{edit:i,fullEdit:a,updateItem:o};let p=new w.default({id:e,portal:{url:l}});return await p.load(r),({features:{edit:i,fullEdit:a},content:{updateItem:o}}=(0,M.It)(p)),{edit:i,fullEdit:a,updateItem:o}})(e,t,r).catch(e=>((0,o.QP)(e),{edit:!0,fullEdit:!1,updateItem:!1}))}const G={capabilities:[],allowGeometryUpdates:!1,serviceCapabilities:{geometryCapabilities:{supportsZValues:!1,supportsMValues:!1}}};function $(e){let{capabilities:t,allowGeometryUpdates:r,serviceCapabilities:{geometryCapabilities:{supportsZValues:i,supportsMValues:n}}}=e?.serviceDefinition||G,s=e?.dataModel.arcgisManaged?t:t.filter(e=>"Query"===e),a=new Set(s);return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:n,supportsTrueCurve:!1,supportsZ:i},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:a.has("Create"),supportsDelete:a.has("Delete"),supportsEditing:a.has("Editing"),supportsChangeTracking:!1,supportsQuery:a.has("Query"),supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:a.has("Update"),supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:c.F,queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:c.P,editing:{supportsGeometryUpdate:!!e?.dataModel.arcgisManaged&&r,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:a.has("Delete"),supportsUpdateByAnonymous:!1,supportsUpdateByOthers:a.has("Update"),supportsAsyncApplyEdits:!1,zDefault:void 0}}}async function Z(e,t,r){let i=new A,n=t.graphTypeName,s=t.graphType,o="knowledge-graph"===r.type?t.geometryFieldName:null,l=!!t.fieldsIndex.get(o)?.editable,p=e=>{let r={...e};for(let e of t.fields)e.editable||delete r[e.name];for(let t of Object.keys(e))t.includes("ESRI__")&&delete r[t];return r},c=async e=>{await(0,u.initializeProjection)(e.spatialReference,d.A.WGS84);let t=(0,u.project)(e,d.A.WGS84);return"point"===t.type?t.normalize():(await(0,h.el)(t))[0]};for(let t of e.addFeatures??[]){let e=p(t.attributes);(0,b.UC)(t.sourceLayer)&&t.sourceLayer.graphTypeName===n&&("entity"===s?(i.entityAdds||=[],o&&t.geometry&&(e[o]=await c(t.geometry)),i.entityAdds.push(new C.A({properties:e,typeName:n}))):(i.relationshipAdds||=[],i.relationshipAdds.push(new E.A({properties:e,typeName:n}))))}for(let t of e.updateFeatures??[]){let e=t.attributes[y.dr],r=p(t.attributes);(0,b.UC)(t.sourceLayer)&&t.sourceLayer.graphTypeName===n&&("entity"===s?(i.entityUpdates||=[],o&&l&&t.geometry&&(r[o]=await c(t.geometry)),i.entityUpdates.push(new C.A({id:e,properties:r,typeName:n}))):(i.relationshipUpdates||=[],i.relationshipUpdates.push(new E.A({id:e,properties:r,typeName:n}))))}let m=new Map;for(let t of e.deleteFeatures??[])if((0,x.D)(t)){let e=t,r=(0,a.tE)(m,e.sourceLayer.graphTypeName,()=>({typeName:e.sourceLayer.graphTypeName,ids:[]}));e.sourceLayer.graphTypeName===n&&r.ids.push(e.attributes[y.dr])}else t.objectId&&"string"==typeof t.objectId&&(0,a.tE)(m,n,()=>({typeName:n,ids:[]})).ids.push(t.objectId);for(let e of m.values())e.ids.length>0&&("entity"===s?(i.entityDeletes||=[],i.entityDeletes.push({typeName:e.typeName,ids:e.ids})):(i.relationshipDeletes||=[],i.relationshipDeletes.push({typeName:e.typeName,ids:e.ids})));return i}function Q(e,t){let r={addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]};for(let i of e.editResults)if(i.typeName===t){for(let e of i.adds)r.addFeatureResults.push({objectId:e.id,globalId:e.id});for(let e of i.updates)r.updateFeatureResults.push({objectId:e.id,globalId:e.id});for(let e of i.deletes)r.deleteFeatureResults.push({objectId:e.id,globalId:e.id})}return r}function q(e){if(!e.objectType)return null;let t=[];for(let r of e.fields)!r.name.includes("ESRI__")&&r.editable&&"geometry"!==r.type&&t.push(new p.A({fieldName:r.name}));return new l.A({elements:t})}function U(e){if(!e.objectType)return null;let t=null;switch(e.geometryType){case"point":case"multipoint":t="point";break;case"polyline":t="line";break;case"polygon":t="polygon";break;default:t=null}return[new m.A({name:e.graphTypeName,drawingTool:t,prototype:{}})]}const z=e=>{let t="",r=e.split("/"),i=r.lastIndexOf("KnowledgeGraphServer");return i>0&&(t=r[i-1]),t}},99916(e,t,r){r.d(t,{Wq:()=>l,aq:()=>o}),r(52106);var i=r(49186),n=(r(86738),r(39829),r(82799),r(15795),r(69860),r(8460),r(69647)),s=r(53902),a=r(42538);async function o(e,t,r){let i=[],n=function(e,t){let r=new Map;if(t.dataModel?.relationshipTypes)for(let e of t.dataModel.relationshipTypes)e.name&&r.set(e.name,[]);for(let t of e)r.has(t.typeName)&&r.get(t.typeName)?.push(t.id);return r}(e,t),o={},l=[];for(let[e,t]of n){if(t.length<1)continue;let r=`${e}_ids`;o[r]=t,l.push(`MATCH (n)-[r:${e}]->(m) WHERE id(r) in $${r} RETURN id(n), labels(n)[0], id(m), labels(m)[0]`)}if(0===l.length)return[];let p=l.join(" UNION "),u=new a.A({openCypherQuery:p,bindParameters:o}),d=(await(0,s.executeQueryStreaming)(t,u,r?.requestOptions)).resultRowsStream.getReader();for(;;){let{done:e,value:t}=await d.read();if(e)break;for(let e of t)i.push({id:e[0],typeName:e[1]}),i.push({id:e[2],typeName:e[3]})}return i}function l(e){if(!e.spatialReference.isWGS84)throw new i.A("knowledge-graph:layer-support-utils","The utilsExtentToInBoundsRings function only supports WGS84 spatial references.");return e.clone().normalize().map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}r(40863),r(94985),r(68249),r.d(t,["k5",0,e=>n.P_.get(e)??"radial-root-centric"])},82935(e,t,r){var i=r(32198),n=r(91429),s=r(30524),a=r(96184),o=r(73133),l=r(79677),p=r(10184),u=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,d,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,n=o.j.fromJSON(r.timeOffsetUnits);return i&&n?new p.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:l.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,u.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},17036(e,t,r){r.d(t,{p:()=>l});var i=r(44208),n=r(53966),s=r(20437),a=r(95466),o=r(30524);function l(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){let t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){let e=t.map(e=>`'${e.name}'`).join(", ");n.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${2**53-1} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return a.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){let e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(let t of e)this.fieldsIndex?.has(t)||n.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,o.DB)(this.fieldsIndex,e)}}}}},8460(e,t,r){r.d(t,{$C:()=>m,Hh:()=>a,Tu:()=>c,Wg:()=>y,Xq:()=>g,i6:()=>b,pM:()=>d,vJ:()=>f});var i=r(2741);let n,s=null;function a(){return n||(n=r.e(3666).then(()=>r(3666)).then(({default:e})=>e({locateFile:e=>(0,i.s)(`esri/libs/linkchartlayout/${e}`)})).then(e=>{!function(e){s=e}(e)}),n)}const o={right:0,left:1,top:2,bottom:3},l={none:0,"start-only":1,"start-and-end":2};function p(e){let t={timeDirection:"right",timeBannerUTCOffsetInMinutes:0,eventsTicksVisualization:"start-and-end",showDurationLineForNonZeroDurationEntityEvents:!0,durationLineWidth:5,entityPositionAtDurationRatio:1,showNonZeroDurationIntervalBounds:!1,separateTimeOverlaps:!0,separateTimelineOverlaps:!0,moveFirstBends:!0,secondBendRatio:.3,lineSeparationMultiplier:1,spaceSeparatedLinesEvenly:!1,useBezierCurves:!1,separatedLineShapeRatio:0,...e?.toJSON(),eventsTicksVisualization:e?.eventsTicksVisualization??"start-and-end"};return{...t,timeDirection:{value:o[t.timeDirection]??o.right},eventsTicksVisualization:{value:l[t.eventsTicksVisualization]??l["start-and-end"]}}}function u(e,t,r,i,n,a){let o=r.length,l=n.length,p=Float64Array.BYTES_PER_ELEMENT,u=Uint32Array.BYTES_PER_ELEMENT,d=Uint8Array.BYTES_PER_ELEMENT,h=16+o*(d+2*p)+2*u*l,c=s._malloc(h);try{let d=c+16-c%16,h=d+o*p,y=h+o*p,m=y+l*u,f=m+l*u,g=()=>[s.HEAPF64.subarray(d>>3,(d>>3)+o),s.HEAPF64.subarray(h>>3,(h>>3)+o),s.HEAPU32.subarray(y>>2,(y>>2)+l),s.HEAPU32.subarray(m>>2,(m>>2)+l),s.HEAPU8.subarray(f,f+o)],[b,w,M,I,C]=g();b.set(r),w.set(i),M.set(n),I.set(a),C.set(t);let _=e(o,f,d,h,l,y,m),T=null,v=null;if(0===_.value){let e=s.getLayoutLinksTypes(),t=s.getLayoutLinksVerticesEndIndices(),r=s.getLayoutLinksVertices(),i=s.countLayoutLinksVertices();l&&(!e||!t)||i&&!r?_.value=1:(T={types:new Uint8Array(s.HEAPU8.subarray(e,e+l)),vertexEndIndex:new Uint32Array(s.HEAPU32.subarray(t>>2,(t>>2)+l)),vertices:new Float64Array(s.HEAPF64.subarray(r>>3,(r>>3)+2*i))},v=s.getAuxiliaryGraphicElements())}let[A,E,x,S,k]=g();return r.set(A),i.set(E),n.set(x),a.set(S),t.set(k),{status:_.value,links:T,graphics:v}}finally{s._free(c),s.cleanupLayout()}}var d,h,c,y,m,f,g,b;(h=d||={}).getMinIdealEdgeLength=function(){return s.getMinIdealEdgeLength()},h.apply=function(e,t,r,i,n,a,o=2,l=1,p=-1){return u((t,r,i,n,a,u,d)=>s.applyForceDirectedLayout(e,t,r,i,n,a,u,d,o,l,p),t,r,i,n,a)},function(e){e.apply=function(e,t,r,i,n,a,o=2,l=1,p=-1){return u((t,r,i,n,a,u,d)=>s.applyCommunityLayout(e,t,r,i,n,a,u,d,o,l,p),t,r,i,n,a)}}(c||={}),function(e){e.apply=function(e,t,r,i,n,a){return u((t,r,i,n,a,o,l)=>s.applySimpleLayout(e,t,r,i,n,a,o,l),t,r,i,n,a)}}(y||={}),function(e){e.apply=function(e,t,r,i,n,a){return u((t,r,i,n,a,o,l)=>s.applyHierarchicalLayout(e,t,r,i,n,a,o,l),t,r,i,n,a)}}(m||={}),function(e){e.apply=function(e,t,r,i,n,a){return u((t,r,i,n,a,o,l)=>s.applyRadialTreeLayout(e,t,r,i,n,a,o,l),t,r,i,n,a)}}(f||={}),function(e){e.apply=function(e,t,r,i,n,a){return u((t,r,i,n,a,o,l)=>s.applySmartTreeLayout(e,t,r,i,n,a,o,l),t,r,i,n,a)}}(g||={}),function(e){e.apply=function(e,t,r,i,n,a,o,l,d,h,c,y){return u((t,r,i,o,l,u,m)=>{if(n.length!==t||a.length!==t||d.length!==l||h.length!==l)return{value:1};let f=Float64Array.BYTES_PER_ELEMENT,g=s._malloc(16+t*f),b=s._malloc(16+t*f),w=s._malloc(16+l*f),M=s._malloc(16+l*f),I=g+16-g%16,C=b+16-b%16,_=w+16-w%16,T=M+16-M%16;try{return s.HEAPF64.subarray(I>>3,(I>>3)+t).set(n),s.HEAPF64.subarray(C>>3,(C>>3)+t).set(a),s.HEAPF64.subarray(_>>3,(_>>3)+l).set(d),s.HEAPF64.subarray(T>>3,(T>>3)+l).set(h),s.applyChronologicalLayout(e,t,r,i,o,I,C,l,u,m,_,T,c,p(y))}finally{s._free(g),s._free(b),s._free(w),s._free(M)}},t,r,i,o,l)}}(b||={})},69647(e,t,r){var i=r(66552);const n=(0,i.O)()({none:"none",startAndEnd:"start-and-end",startOnly:"start-only"}),s=(0,i.O)()({absoluteValue:"absolute-value",multiplier:"multiplier"}),a=new Map([["basic-grid","basic-grid"],["geographic-organic-standard","geographic-organic-standard"],["hierarchical-bottom-to-top","hierarchical-bottom-to-top"],["hierarchical-top-to-bottom","hierarchical-bottom-to-top"],["organic-community","organic-community"],["organic-fusiform","organic-standard"],["organic-leaf-circle","organic-standard"],["organic-standard","organic-standard"],["radial-node-centric","radial-root-centric"],["radial-root-centric","radial-root-centric"],["tree-bottom-to-top","tree-left-to-right"],["tree-left-to-right","tree-left-to-right"],["tree-right-to-left","tree-left-to-right"],["tree-top-to-bottom","tree-left-to-right"],["chronological-mono-timeline","chronological-mono-timeline"],["chronological-multi-timeline","chronological-multi-timeline"]]);r.d(t,["P_",0,a,"SJ",0,n,"lg",0,s])},54628(e,t,r){r.d(t,{lV:()=>s,zI:()=>n});var i=r(56507);async function n(e,t,r){if(!e||!t||!e.includes("/resources"))return!1;let n=t+"/resources",s=e.includes("/resources/")?e.split("/resources/")[1]:e;if(!s)return!1;let a=1;for(;-1!==a;){let e=(await(0,i.A)(n,{query:{f:"json",start:a,num:100}})).data,t=e?.resources??[];for(let e of t)if(e.resource===s)return"number"==typeof r&&e.created===r;if(null==e.nextStart||!t.length)break;a=e.nextStart}return!1}async function s(e,t){if(!e.length||!t)return new Map;let r=t+"/resources",n=1,s=new Map;for(;-1!==n;){let e=(await(0,i.A)(r,{query:{f:"json",start:n,num:100}})).data,t=e?.resources??[];for(let e of t)"number"==typeof e.created&&s.set(e.resource,e.created);if(null==e.nextStart||!t.length)break;n=e.nextStart}let a=new Map;for(let t of e){let e=t.includes("/resources/")?t.split("/resources/")[1]:t,r=s.get(e);null!=r&&a.set(t,r)}return a}r(49186),r(53966),r(17676),r(86738),r(8460)},25927(e,t,r){r.d(t,{A:()=>o});var i=r(32198),n=r(91429),s=r(86738),a=r(54238);let o=class extends a.A{constructor(e){super(e),this.layoutGeometry=null}};(0,i.Cg)([(0,n.MZ)({type:s.A,json:{write:!0}})],o.prototype,"layoutGeometry",void 0),o=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.Entity")],o)},54238(e,t,r){r.d(t,{A:()=>a});var i=r(32198),n=r(91429),s=r(77901);let a=class extends s.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.GraphNamedObject")],a)},77901(e,t,r){r.d(t,{A:()=>a});var i=r(32198),n=r(25482),s=r(91429);let a=class extends n.o{constructor(e){super(e),this.properties={}}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,i.Cg)([(0,s.$K)("esri.rest.knowledgeGraph.GraphObject")],a)},42538(e,t,r){r.d(t,{A:()=>l});var i=r(32198),n=r(91429),s=r(16930),a=r(69622);let o=class extends a.A{constructor(e){super(e),this.openCypherQuery=""}};(0,i.Cg)([(0,n.MZ)()],o.prototype,"openCypherQuery",void 0),o=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.GraphQuery")],o);let l=class extends o{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,i.Cg)([(0,n.MZ)()],l.prototype,"bindParameters",void 0),(0,i.Cg)([(0,n.MZ)()],l.prototype,"bindGeometryQuantizationParameters",void 0),(0,i.Cg)([(0,n.MZ)()],l.prototype,"outputQuantizationParameters",void 0),(0,i.Cg)([(0,n.MZ)({type:s.A})],l.prototype,"outputSpatialReference",void 0),(0,i.Cg)([(0,n.MZ)()],l.prototype,"provenanceBehavior",void 0),l=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.GraphQueryStreaming")],l)},40662(e,t,r){r.d(t,{A:()=>a});var i=r(32198),n=r(91429),s=r(77901);let a=class extends s.A{constructor(e){super(e)}};a=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.ObjectValue")],a)},42095(e,t,r){r.d(t,{A:()=>o});var i=r(32198),n=r(25482),s=r(91429),a=r(77901);let o=class extends n.o{constructor(e){super(e),this.path=[]}};(0,i.Cg)([(0,s.MZ)({type:[a.A],json:{write:!0}})],o.prototype,"path",void 0),o=(0,i.Cg)([(0,s.$K)("esri.rest.knowledgeGraph.Path")],o)},23150(e,t,r){r.d(t,{A:()=>o});var i=r(32198),n=r(91429),s=r(82799),a=r(54238);let o=class extends a.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],o.prototype,"originId",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],o.prototype,"destinationId",void 0),(0,i.Cg)([(0,n.MZ)({type:s.A,json:{write:!0}})],o.prototype,"layoutGeometry",void 0),o=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.Relationship")],o)},2272(e,t,r){r.d(t,{Dl:()=>p,gf:()=>d,jV:()=>l,lF:()=>u});var i=r(92602),n=r(70333),s=r(4718),a=r(84952),o=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function p(e){return"string"==typeof e?(0,a.An)(e):(0,s.o8)(e)}function u(e,t,r){let i={};for(let n in e){if("declaredClass"===n)continue;let s=e[n];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[n]=s.map(e=>u(e));else if("object"==typeof s)if(s.toJSON){let e=s.toJSON(r?.[n]);i[n]=t?e:JSON.stringify(e)}else i[n]=t?s:JSON.stringify(s);else i[n]=s}return i}async function d(e,t,s){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??n.id?.findCredential(e)?.token:null}(e,t)||(!n.id&&i.A.request.useIdentity&&await Promise.all([r.e(6361),r.e(7644),r.e(7715)]).then(()=>r(50148)),(await n.id.getCredential(e,s))?.token)}},62046(e,t,r){r.d(t,{Fe:()=>y,KU:()=>b,Nk:()=>p,X5:()=>s});var i=r(68197),n=r(93397);function s(e,t,r){if(!e)return;let i=(0,n.lW)(e),s=function(e){let t=(0,n.lW)(e);if("CIMTextSymbol"===t?.type)return t.height??0;let r=0;if(t?.symbolLayers)for(let e of t.symbolLayers)(0,n.MM)(e)&&null!=e.size&&e.size>r?r=e.size:(0,n.mA)(e)&&null!=e.width&&e.width>r?r=e.width:(0,n.jn)(e);return r}(e);0!==s?a(i,t/s,!1,r):function(e,t){if(e){if("CIMTextSymbol"===e.type)return void(e.height=t);if(e.symbolLayers)for(let r of e.symbolLayers)switch(r.type){case"CIMPictureMarker":case"CIMVectorMarker":r.size=t;break;case"CIMPictureStroke":case"CIMSolidStroke":case"CIMGradientStroke":r.width=t}}}(i,t)}function a(e,t,r,i){if(e){if("CIMTextSymbol"===e.type)return void(null!=e.height&&(e.height*=t));if(r&&e.effects)for(let r of e.effects)l(r,t);if(e.symbolLayers)for(let r of e.symbolLayers){switch(r.type){case"CIMPictureMarker":case"CIMVectorMarker":o(r,t,i);break;case"CIMPictureStroke":case"CIMSolidStroke":case"CIMGradientStroke":!i?.preserveOutlineWidth&&r.width&&(r.width*=t);break;case"CIMPictureFill":r.height&&(r.height*=t),r.offsetX&&(r.offsetX*=t),r.offsetY&&(r.offsetY*=t);break;case"CIMHatchFill":a(r.lineSymbol,t,!0,{...i,preserveOutlineWidth:!1}),r.offsetX&&(r.offsetX*=t),r.offsetY&&(r.offsetY*=t),r.separation&&(r.separation*=t)}if(r.effects)for(let e of r.effects)l(e,t)}}}function o(e,t,r){if(e&&(e.markerPlacement&&function(e,t){switch((0,n.zr)(e)&&e.offset&&(e.offset*=t),e.type){case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineSameSize":e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.placementTemplate&&e.placementTemplate.length&&(e.placementTemplate=e.placementTemplate.map(e=>e*t));break;case"CIMMarkerPlacementAlongLineVariableSize":e.maxRandomOffset&&(e.maxRandomOffset*=t),e.placementTemplate&&e.placementTemplate.length&&(e.placementTemplate=e.placementTemplate.map(e=>e*t));break;case"CIMMarkerPlacementOnLine":e.startPointOffset&&(e.startPointOffset*=t);break;case"CIMMarkerPlacementAtExtremities":e.offsetAlongLine&&(e.offsetAlongLine*=t);break;case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementOnVertices":break;case"CIMMarkerPlacementAtRatioPositions":e.beginPosition&&(e.beginPosition*=t),e.endPosition&&(e.endPosition*=t);break;case"CIMMarkerPlacementPolygonCenter":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case"CIMMarkerPlacementInsidePolygon":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.stepX&&(e.stepX*=t),e.stepY&&(e.stepY*=t)}}(e.markerPlacement,t),e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.anchorPoint&&"Absolute"===e.anchorPointUnits&&(e.anchorPoint={x:e.anchorPoint.x*t,y:e.anchorPoint.y*t}),e.size=null==e.size?0:e.size*t,"CIMVectorMarker"===e.type&&e.markerGraphics))for(let i of e.markerGraphics)e.scaleSymbolsProportionally||a(i.symbol,t,!0,r)}function l(e,t){if(!(0,n.Kq)(e))switch(e.type){case"CIMGeometricEffectArrow":case"CIMGeometricEffectDonut":e.width&&(e.width*=t);break;case"CIMGeometricEffectBuffer":e.size&&(e.size*=t);break;case"CIMGeometricEffectCut":e.beginCut&&(e.beginCut*=t),e.endCut&&(e.endCut*=t),e.middleCut&&(e.middleCut*=t);break;case"CIMGeometricEffectDashes":e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.dashTemplate&&e.dashTemplate.length&&(e.dashTemplate=e.dashTemplate.map(e=>e*t));break;case"CIMGeometricEffectExtension":case"CIMGeometricEffectJog":case"CIMGeometricEffectRadial":e.length&&(e.length*=t);break;case"CIMGeometricEffectMove":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":e.offset&&(e.offset*=t);break;case"CIMGeometricEffectRegularPolygon":e.radius&&(e.radius*=t);break;case"CIMGeometricEffectTaperedPolygon":e.fromWidth&&(e.fromWidth*=t),e.length&&(e.length*=t),e.toWidth&&(e.toWidth*=t);break;case"CIMGeometricEffectWave":e.amplitude&&(e.amplitude*=t),e.period&&(e.period*=t)}}function p(e){let t=[];return u((0,n.lW)(e),t),t.length?new i.A((0,n.e6)(t[0])):null}function u(e,t){if(!e)return;let r;r="CIMTextSymbol"===e.type?e.symbol:e;let i="CIMPolygonSymbol"===e.type;if(r?.symbolLayers)for(let e of r.symbolLayers)if(!(e.colorLocked||i&&((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&d(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{u(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":d(t,e.color);break;case"CIMGradientFill":h(t,e);break;case"CIMHatchFill":u(e.lineSymbol,t)}}function d(e,t){for(let r of e)if(r.join(".")===t.join("."))return;e.push(t)}function h(e,t){switch(t.colorRamp?.type){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&c(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":c(e,t.colorRamp)}}function c(e,t){t&&(t.fromColor&&d(e,t.fromColor),t.toColor&&d(e,t.toColor))}function y(e,t,r){t instanceof i.A||(t=new i.A(t));let s=(0,n.lW)(e);s&&m(s,t,r)}function m(e,t,r){if(!e)return;let i;i="CIMTextSymbol"===e.type?e.symbol:e;let s="CIMPolygonSymbol"===i?.type;if(i?.symbolLayers)for(let e of i.symbolLayers){if(e.colorLocked)continue;if(s)if(r){let{layersToColor:t}=r;if(((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))&&"fill"===t||(0,n.jn)(e)&&"outline"===t)continue}else if((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))continue;let i=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=i;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{m(e.symbol,t,r)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=i;break;case"CIMGradientFill":f(e,t);break;case"CIMHatchFill":m(e.lineSymbol,t,r)}}}function f(e,t){switch(e.colorRamp?.type){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&g(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":g(e.colorRamp,t)}}function g(e,t){if(e&&(e.fromColor&&=t.toArray(),e.toColor)){let r=t.clone();r.a=0,e.toColor=r.toArray()}}function b(e,t,r=!1){let i=(0,n.lW)(e);if(r&&(t=360-t),"CIMTextSymbol"!==i?.type){if("CIMPointSymbol"===i?.type&&i.symbolLayers){let e=t-(i.angle||0);for(let t of i.symbolLayers)if((0,n.MM)(t)){let r=t.rotation||0;t.rotateClockwise?r-=e:r+=e,t.rotation=r}i.angle=t}}else i.angle=t}},37531(e,t,r){r.d(t,{dt:()=>h,GG:()=>g,UQ:()=>f,Sx:()=>u});var i=r(68197),n=r(60999),s=(r(90629),r(51850)),a=(r(76369),r(62046)),o=(r(2741),r(56507),r(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new o.q(1e3),new i.A([128,128,128]);var l=r(28975),p=r(33910);function u(e,t){if(!e)return null;let r=null;return(0,p.wk)(e)?r=function(e){let t=e.symbolLayers;if(!t)return null;let r=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(r="water"===e.type?e.color:e.material?e.material.color:null)}),r?new i.A(r):null}(e):(0,p.$y)(e)&&(r="cim"===e.type?(0,a.Nk)(e):e.color?new i.A(e.color):null),r?d(r,t):null}function d(e,t){if(null==t||null==e)return e;let r=e.toRgba();return r[3]*=t,new i.A(r)}function h(e,t,r){e&&(t||null!=r)&&(t&&=new i.A(t),(0,p.wk)(e)?function(e,t,r){let n=e.symbolLayers;if(!n)return;let s=(e,n=!1)=>{let s=t??e??null;return null!=r?.override&&(!s&&n&&(s=new i.A([255,255,255])),s&&(s.a=r.override)),d(s,r?.add)};n.forEach(e=>{if("water"===e.type)return void(e.color=d(e.color,r?.add));let t=null==e.material?null:e.material.color,i=s(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new l.A({color:i}):e.material.color=i,"outline"in e&&e.outline?.color&&null!=r?.add&&(e.outline.color=d(e.outline.color,r.add)),"marker"in e&&null!=e.marker&&(e.marker.color=s(e.marker.color))})}(e,t,r):(0,p.$y)(e)&&function(e,t,r){t??=e.color,null!=r?.override&&t&&(t.a=r.override),t&&(e.color=d(t,r?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=d(e.outline.color,r?.add))}(e,t,r))}function c(e){for(let t of e)if("number"==typeof t)return t;return null}function y(e,t,r){for(let i=0;i<3;i++){let n=e[i];switch(n){case"symbol-value":{let e=r[i];return null==e?1:e/t[i]}case"proportional":break;default:if(null!=n&&t[i])return n/t[i]}}return null}function m(e,t,r,i){switch(e){case"proportional":return r*i;case"symbol-value":return t??r;default:return e}}async function f(e,t){if(e&&t){if((0,p.wk)(e))return async function(e,t){let i=e.symbolLayers;i&&await(0,n.jJ)(i,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){let r=t[2];"number"==typeof r&&(e.size=r)}(e,t);break;case"icon":case"line":case"text":!function(e,t){let r=c(t);null!=r&&(e.size=r)}(e,t);break;case"path":!function(e,t){let r=y(t,s.Un,[e.width,void 0,e.height]);null!=r&&(e.width=m(t[0],e.width,1,r),e.height=m(t[2],e.height,1,r))}(e,t);break;case"object":await async function(e,t){let{resourceSize:i,symbolSize:n}=await async function(e){let{computeObjectLayerResourceSize:t}=await r.e(5404).then(()=>r(95404)),i=await t(e,10),{width:n,height:s,depth:a}=e,o=[n,a,s],l=1;for(let e=0;e<3;e++){let t=o[e];if(null!=t){l=t/i[e];break}}for(let e=0;e<3;e++)o[e]??(o[e]=i[e]*l);return{resourceSize:i,symbolSize:o}}(e),s=y(t,i,n);null!=s&&(e.width=m(t[0],n[0],i[0],s),e.depth=m(t[1],n[1],i[1],s),e.height=m(t[2],n[2],i[2],s))}(e,t)}}(e,t))}(e,t);(0,p.$y)(e)&&function(e,t){let r=c(t);if(null!=r)switch(e.type){case"simple-marker":e.size=r;break;case"picture-marker":{let t=e.width/e.height;t>1?(e.width=r,e.height=r*t):(e.width=r*t,e.height=r);break}case"simple-line":e.width=r;break;case"text":e.font.size=r;break;case"simple-fill":case"picture-fill":break;case"cim":(0,a.X5)(e,r,{preserveOutlineWidth:!1})}}(e,t)}}function g(e,t,r){if(e&&null!=t)if((0,p.wk)(e)){let i=e.symbolLayers;i&&i.forEach(e=>{if("object"===e.type)switch(r){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if((0,p.$y)(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":(0,a.KU)(e,t,!0)}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4934],{67996(e,t,r){r.d(t,{cZ:()=>S,XW:()=>F,fe:()=>k});var i=r(56507),n=r(49186),s=r(91869),a=(r(90708),r(92722)),o=r(16930);class l{constructor(){this.version="",this.queryResult=new p}}class p{constructor(){this.featureResult=new u}}class u{constructor(){this.objectIdFieldName="",this.uniqueIdField=new d,this.globalIdFieldName="",this.geohashFieldName="",this.geometryProperties=new h,this.geometryType=null,this.spatialReference=new o.A,this.exceededTransferLimit=!1,this.hasZ=!1,this.hasM=!1,this.transform=new c,this.fields=[],this.fieldNameToAttributeIndexMap={},this.values=[],this.features=[],this.geometryFields=[]}}class d{constructor(){this.name="",this.isSystemMaintained=!1}}class h{constructor(){this.shapeAreaFieldName="",this.shapeLengthFieldName="",this.units=""}}class c{constructor(){this.quantizeOriginPosition="upperLeft",this.scale=new y,this.translate=new m}}class y{constructor(){this.xScale=0,this.yScale=0,this.mScale=0,this.zScale=0}}class m{constructor(){this.xTranslate=0,this.yTranslate=0,this.mTranslate=0,this.zTranslate=0}}class f{constructor(){this.name="",this.fieldType="esriFieldTypeString",this.alias="",this.sqlType="sqlTypeVarchar",this.domain="",this.defaultValue=""}}class g{constructor(){this.attributes=[],this.compressedGeometry=new b,this.centroid=new b,this.aggregateGeometries=[]}}class b{constructor(){this.geometryType=null,this.lengths=[],this.coords=[]}}const w=["ELEMENTUID","TYPENAME"];var M=r(45724),I=r(93637),C=r(49403);const _={upperLeft:0,lowerLeft:1},T={sqlTypeBigInt:0,sqlTypeBinary:1,sqlTypeBit:2,sqlTypeChar:3,sqlTypeDate:4,sqlTypeDecimal:5,sqlTypeDouble:6,sqlTypeFloat:7,sqlTypeGeometry:8,sqlTypeGUID:9,sqlTypeInteger:10,sqlTypeLongNVarchar:11,sqlTypeLongVarbinary:12,sqlTypeLongVarchar:13,sqlTypeNChar:14,sqlTypeNVarChar:15,sqlTypeOther:16,sqlTypeReal:17,sqlTypeSmallInt:18,sqlTypeSqlXml:19,sqlTypeTime:20,sqlTypeTimestamp:21,sqlTypeTimestamp2:22,sqlTypeTinyInt:23,sqlTypeVarbinary:24,sqlTypeVarchar:25};function v(e){let t=new l;t.version=e.version;let r=e.get_query_result();if(0!==r.results_type.value)throw Error("Got a non-feature collection type");let i=r.get_feature_result(),n=t.queryResult.featureResult;n.objectIdFieldName=i.objectid_field_name,n.exceededTransferLimit=i.exceeded_transfer_limit,n.hasM=i.has_m,n.hasZ=i.has_z,n.geometryType=(0,I.i7)(C.bV,i.geometry_type.value),n.globalIdFieldName=i.globalid_field_name,n.geohashFieldName=i.geohash_field_name;let s=n.uniqueIdField,a=i.unique_id_field;s.name=a.name,s.isSystemMaintained=a.isSystemMaintained;let o=n.geometryProperties,p=i.geometry_properties;o.shapeAreaFieldName=p.shapeAreaFieldName,o.shapeLengthFieldName=p.shapeLengthFieldName,o.units=p.units;let u=n.spatialReference,d=i.spatial_reference;u.wkid=d.wkid,u.latestWkid=d.latestWkid,u.vcsWkid=d.vcsWkid,u.latestVcsWkid=d.latestVcsWkid,u.wkt=d.wkt,n.transform=function(e){let t=new c;t.quantizeOriginPosition=(0,I.i7)(_,e.quantizeOriginPosition.value);let r=t.scale,i=e.scale;r.xScale=i.xScale,r.yScale=i.yScale,r.mScale=i.mScale,r.zScale=i.zScale;let n=t.translate,s=e.translate;return n.xTranslate=s.xTranslate,n.yTranslate=s.yTranslate,n.mTranslate=s.mTranslate,n.zTranslate=s.zTranslate,t}(i.transform);let h=n.fields,y=n.fieldNameToAttributeIndexMap,m=i.fields,f=m.size();for(let e=0;e<f;e++){let t=m.get(e),r=E(t);h.push(r),y[r.name]=e,t.delete()}m.delete();let b=n.values,M=i.values_count();for(let e=0;e<M;e++)b.push(i.get_value_at(e));let T=n.features,v=i.features,S=v.size();if(S>0)for(let e of w)if(void 0===y[e])throw Error(`Feature collection missing required attribute: ${e}`);for(let e=0;e<S;e++){let t=new g,r=v.get(e),i=t.attributes,n=r.attributes_count();for(let e=0;e<n;e++)i.push(r.get_attribute_at(e));let s=r.get_compressed_geometry();s&&(t.compressedGeometry=A(s),t.centroid=A(r.get_centroid()));let a=t.aggregateGeometries,o=r.aggregate_geometries,l=o.size();for(let e=0;e<l;e++){let t=o.get(e),r=A(t);a.push(r),t.delete()}o.delete(),T.push(t),r.delete()}v.delete();let k=n.geometryFields,L=i.geometry_fields,N=L.size();for(let e=0;e<N;e++){let t=L.get(e),r=x(t);k.push(r),t.delete()}return L.delete(),t}function A(e){let t=new b;t.geometryType=(0,I.i7)(C.bV,e.geometry_type.value);let r=[],i=[];for(let t=0;t<e.lengths.length;t++)r.push(e.lengths[t]);for(let t=0;t<e.coords.length;t++)i.push(e.coords[t]);return t.lengths=r,t.coords=i,t}function E(e){let t=new f;return t.name=e.name,t.alias=e.alias,t.fieldType=(0,I.i7)(C.r5,e.field_type.value),t.sqlType=(0,I.i7)(T,e.sql_type.value),t.domain=e.domain,t.defaultValue=e.default_value,t}function x(e){let t=E(e);return t.geometryType=(0,I.i7)(C.bV,e.geometry_type.value),t}async function S(e,t,r){t??=!1;let a={generateAllSublayers:t,namedTypeDefinitions:new Map};return await async function(e,t){let r=await(await(0,i.A)(e,{responseType:"array-buffer",signal:t?.signal})).data;return async function(e){let t=new((await(0,M.I)()).MapOfObjectIdentifierSetsDecoder),r=t.decode(new Uint8Array(e)),i=new Map;if(0!==r.error_code)throw new n.A("knowledge-graph:layer-support-utils",r.error_message);let s=t.get_map_of_identifier_sets(),a=s.keys,o=a.size();for(let e=0;e<o;e++){let t=a.get(e),r=s.query_identifier_set(t),o=[];if(1===r.id_array_type.value){let e=r.get_globalid_array(),t=e.count();for(let r=0;r<t;r++)o.push(e.get_globalid_at(r))}else if(3===r.id_array_type.value){let e=r.get_identifier_array(),t=e.count();for(let r=0;r<t;r++)o.push(e.get_identifier_at(r).toString())}else if(2===r.id_array_type.value){let e=r.get_string_array(),t=e.count();for(let r=0;r<t;r++)o.push(e.get_string_at(r))}else{if(0!==r.id_array_type.value)throw new n.A("knowledge-graph:layer-support-utils","Tried to encode an unexpected ID Array type.");{let e=r.get_oid_array(),t=e.count();for(let r=0;r<t;r++)o.push(e.get_objectid_at(r).toString())}}i.set(t,o)}return t.delete(),i}(new Uint8Array(r))}(e,r).then(e=>{!function(e,t){for(let[r,i]of e){let e=(0,s.tE)(t.namedTypeDefinitions,r,()=>({useAllData:!1,members:new Map}));for(let t of i)e.members.has(t)||e.members.set(t,{id:t})}}(e,a)}),a}async function k(e){let t=await(0,M.I)(),r=new t.MapOfObjectIdentifierSets;!function(e,t,r){for(let[i,n]of r.namedTypeDefinitions){if(!n.members||n.useAllData)continue;let r=n.members.keys(),s=!1,a=!0,o=new t.ObjectIdArray,l=new t.StringArray,p=new t.GlobalIdArray,u=new t.IdentifierArray,d=new t.ObjectIdentifierSet;for(let e of r)a&&=(s=!isNaN(Number(e)),!1),s?o.add_objectid(Number(e)):(l.add_string(e),p.add_globalid(e)),u.add_identifier(e);d.set_oid_array(o),d.set_string_array(l),d.set_globalid_array(p),d.set_identifier_array(u),o.delete(),l.delete(),p.delete(),u.delete(),e.put_identifier_set(i,d),d.delete()}}(r,t,e);let i=new t.MapOfObjectIdentifierSetsEncoder;try{i.set_map_of_identifier_sets(r),i.encode();let e=i.get_encoding_result();if(0!==e.error.error_code)throw new n.A("knowledge-graph:layer-support-utils",e.error.error_message);let t=structuredClone(e.get_byte_buffer());return i.delete(),t}finally{r.delete()}}async function L(e,t){return async function(e){let t=new((await(0,M.I)()).FeatureCollectionDecoder),r=t.decode(new Uint8Array(e));if(0!==r.error_code)throw new n.A("knowledge-graph:layer-support-utils",r.error_message);let i=v(t.get_feature_collection());return t.delete(),i}(await(await(0,i.A)(e,{responseType:"array-buffer",signal:t?.signal})).data)}function N(e,t){if(!e?.queryResult?.featureResult)return t;let{hasZ:r,hasM:i}=e.queryResult.featureResult,n=e.queryResult.featureResult.fieldNameToAttributeIndexMap;for(let o of e.queryResult.featureResult.features){let e=o.attributes[n.TYPENAME],l=(0,s.tE)(t.namedTypeDefinitions,e,()=>({useAllData:!1,members:new Map})),p=o.attributes[n.ELEMENTUID];if(o.compressedGeometry?.coords?.length>0){let e=o.compressedGeometry.lengths;"esriGeometryPoint"===o.compressedGeometry.geometryType&&(e=[]),l.members.set(p,{id:p,linkChartLocation:new a.A(e,o.compressedGeometry.coords,r,i)})}else l.members.set(p,{id:p})}return t}const F={fetchAndConvertSerializedLinkChart:(e,t)=>async function(e,t){let r=[],i={generateAllSublayers:!1,namedTypeDefinitions:new Map};return e.entitiesUrl&&r.push(L(e.entitiesUrl,t).then(e=>{N(e,i)})),e.relationshipsUrl&&r.push(L(e.relationshipsUrl,t).then(e=>{N(e,i)})),await Promise.all(r),i}(e,t)}},75503(e,t,r){r.d(t,{wq:()=>o});var i=r(4576),n=r(21818),s=(r(44208),r(15142)),a=r(11006);class o{constructor(e=9,t){this._compareMinX=h,this._compareMinY=c,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),I.prune(),C.prune(),_.prune(),T.prune()}all(e){l(this._data,e)}search(e,t){let r=this._data,i=this._toBBox;if(w(e,r))for(I.clear();r;){for(let n=0,s=r.children.length;n<s;n++){let s=r.children[n],a=r.leaf?i(s):s;w(e,a)&&(r.leaf?t(s):b(e,a)?l(s,t):I.push(s))}r=I.pop()}}collides(e){let t=this._data,r=this._toBBox;if(!w(e,t))return!1;for(I.clear();t;){for(let i=0,n=t.children.length;i<n;i++){let n=t.children[i],s=t.leaf?r(n):n;if(w(e,s)){if(t.leaf||b(e,s))return!0;I.push(n)}}t=I.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){let e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new E([]),this}remove(e){if(!e)return this;let t,r=this._data,s=null,a=0,o=!1,l=this._toBBox(e);for(_.clear(),T.clear();r||_.length>0;){if(r||(r=_.pop(),s=_.data[_.length-1],a=T.pop()??0,o=!0),r.leaf&&(t=(0,i.qh)(r.children,(0,n.z)(e),r.children.length,r.indexHint),-1!==t))return r.children.splice(t,1),_.push(r),this._condense(_),this;o||r.leaf||!b(r,l)?s?(a++,r=s.children[a],o=!1):r=null:(_.push(r),T.push(a),a=0,s=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,r,i){let n=r-t+1,s=this._maxEntries;if(n<=s){let i=new E(e.slice(t,r+1));return p(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(s)),s=Math.ceil(n/s**(i-1)));let a=new x([]);a.height=i;let o=Math.ceil(n/s),l=o*Math.ceil(Math.sqrt(s));M(e,t,r,l,this._compareMinX);for(let n=t;n<=r;n+=l){let t=Math.min(n+l-1,r);M(e,n,t,o,this._compareMinY);for(let r=n;r<=t;r+=o){let n=Math.min(r+o-1,t);a.children.push(this._build(e,r,n,i-1))}}return p(a,this._toBBox),a}_insert(e,t,r){let i=this._toBBox,n=r?e:i(e);_.clear();let s=function(e,t,r,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==r;){let r,i=1/0,n=1/0;for(let s=0,a=t.children.length;s<a;s++){let a=t.children[s],o=y(a),l=f(e,a)-o;l<n?(n=l,i=o<i?o:i,r=a):l===n&&o<i&&(i=o,r=a)}t=r||t.children[0]}return t}(n,this._data,t,_);for(s.children.push(e),d(s,n);t>=0&&_.data[t].children.length>this._maxEntries;)this._split(_,t),t--;!function(e,t,r){for(let i=r;i>=0;i--)d(t.data[i],e)}(n,_,t)}_split(e,t){let r=e.data[t],i=r.children.length,n=this._minEntries;this._chooseSplitAxis(r,n,i);let s=this._chooseSplitIndex(r,n,i);if(!s)return;let a=r.children.splice(s,r.children.length-s),o=r.leaf?new E(a):new x(a);o.height=r.height,p(r,this._toBBox),p(o,this._toBBox),t?e.data[t-1].children.push(o):this._splitRoot(r,o)}_splitRoot(e,t){this._data=new x([e,t]),this._data.height=e.height+1,p(this._data,this._toBBox)}_chooseSplitIndex(e,t,r){let i,n,s;i=n=1/0;for(let a=t;a<=r-t;a++){let t=u(e,0,a,this._toBBox),o=u(e,a,r,this._toBBox),l=g(t,o),p=y(t)+y(o);l<i?(i=l,s=a,n=p<n?p:n):l===i&&p<n&&(n=p,s=a)}return s}_chooseSplitAxis(e,t,r){let i=e.leaf?this._compareMinX:h,n=e.leaf?this._compareMinY:c;this._allDistMargin(e,t,r,i)<this._allDistMargin(e,t,r,n)&&e.children.sort(i)}_allDistMargin(e,t,r,i){e.children.sort(i);let n=this._toBBox,s=u(e,0,t,n),a=u(e,r-t,r,n),o=m(s)+m(a);for(let i=t;i<r-t;i++){let t=e.children[i];d(s,e.leaf?n(t):t),o+=m(s)}for(let i=r-t-1;i>=t;i--){let t=e.children[i];d(a,e.leaf?n(t):t),o+=m(a)}return o}_condense(e){for(let t=e.length-1;t>=0;t--){let r=e.data[t];if(0===r.children.length)if(t>0){let n=e.data[t-1],s=n.children;s.splice((0,i.qh)(s,r,s.length,n.indexHint),1)}else this.clear();else p(r,this._toBBox)}}_initFormat(e){let t=["return a"," - b",";"];this._compareMinX=Function("a","b",t.join(e[0])),this._compareMinY=Function("a","b",t.join(e[1])),this._toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let r=e;for(C.clear();r;){if(!0===r.leaf)for(let e of r.children)t((0,n.z)(e));else C.pushArray(r.children);r=C.pop()??null}}function p(e,t){u(e,0,e.children.length,t,e)}function u(e,t,r,i,n){n||=new E([]),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let s,a=t;a<r;a++)s=e.children[a],d(n,e.leaf?i(s):s);return n}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function h(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){let r=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,n-r)*Math.max(0,s-i)}function b(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function w(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function M(e,t,r,i,n){let s=[t,r];for(;s.length;){let t=s.pop(),r=s.pop();if(t-r<=i)continue;let o=r+Math.ceil((t-r)/i/2)*i;(0,a.q)(e,o,r,t,n),s.push(r,o,o,t)}}const I=new s.A,C=new s.A,_=new s.A,T=new s.A({deallocator:void 0});class v{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends v{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class E extends A{constructor(e){super(),this.children=e,this.leaf=!0}}class x extends A{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,r){r.d(t,{Qf:()=>o,Qh:()=>s,lM:()=>n});var i=r(34275);function n(e){if(!e)return 0;let t=p;for(let r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function s(e){if(!e)return 0;if("number"==typeof e[0])return o(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=u;for(let i=0;i<t;i++)r+=a(e[i]);return r}(e);let t=p;for(let r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?s(e):p;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+d:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return u+e.length*t}const p=32,u=16,d=145},15795(e,t,r){r.d(t,{A:()=>d});var i=r(32198),n=r(91429),s=r(58318),a=r(4146),o=r(63074),l=r(25036),p=r(98809),u=r(88625);let d=class extends((0,o.dM)((0,l.j)(a.A))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new p.Y,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}get loaded(){return super.loaded}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}graphicChanged(e){this.emit("graphic-update",e)}};(0,i.Cg)([(0,n.MZ)({type:u.A})],d.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,n.MZ)((0,s.C)(p.Y,"graphics"))],d.prototype,"graphics",void 0),(0,i.Cg)([(0,n.MZ)({type:["show","hide"]})],d.prototype,"listMode",void 0),(0,i.Cg)([(0,n.MZ)()],d.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,n.MZ)({readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({constructOnly:!0})],d.prototype,"internal",void 0),d=(0,i.Cg)([(0,n.$K)("esri.layers.GraphicsLayer")],d)},6518(e,t,r){r.d(t,{F:()=>o});var i=r(44208),n=r(75503),s=r(19419);const a={minX:0,minY:0,maxX:0,maxY:0};class o{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.wq(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let e=Array(this._idByBounds.size),t=0;this._idByBounds.forEach((r,i)=>{e[t++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let e=(0,s.Ie)();for(let t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){let t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,r){(function(e){a.minX=e[0],a.minY=e[1],a.maxX=e[2],a.maxY=e[3]})(t),e.search(a,r)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){let t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,r){r.d(t,{A:()=>y});var i=r(4576),n=r(49186),s=r(65529),a=r(53966),o=r(70328),l=r(19419),p=r(90708),u=r(6518),d=r(51441),h=r(37730);const c=(0,o.vt)();class y{constructor(e){this.geometryInfo=e,this._boundsStore=new u.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=h.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;let[t,r,i,n]=this.fullBounds;return{xmin:t,ymin:r,xmax:i,ymax:n,spatialReference:(0,d.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(let t of e)this._add(t);this._emitChanged()}upsertMany(e){let t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){let t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(let t of e){let e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(let r of e){let e=this._boundsStore.get(r.objectId);e&&t((0,o.Jt)(c,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;let t=e.objectId;if(null==t)return void a.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e}));let r,i=this._featuresById.get(t);if(i?(e.displayId=i.displayId,r=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);r=(0,p.jQ)(r??(0,l.vt)(),e.geometry),null!=r&&this._boundsStore.set(t,r),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){let t=e?.objectId;if(null==t)return a.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;let r=this._featuresById.get(t);if(!r)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(r)??0;let{geometry:i,attributes:s}=e;for(let e in s)r.attributes[e]=s[e];return i&&(r.geometry=i,this._boundsStore.set(t,(0,p.jQ)((0,l.vt)(),i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(r)??0,r}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);let t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,r){var i=r(43334);const n={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,r)=>new i.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};r.d(t,["T",0,n])},64714(e,t,r){r.d(t,{F0:()=>o,Vx:()=>u,e2:()=>h,f:()=>m});var i=r(44208),n=r(4718),s=r(99352),a=r(93470);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?a.Cb:"esriGeometryPolyline"===e?a.yM:a.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function u(e,t){if((0,i.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${d(t)} = null;`);for(let t in e)r+=`this${d(t)} = ${JSON.stringify(e[t])};`;let i=Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new i}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function h(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(e)}}]}const c={...s.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},y={...s.P,supportedStatistics:{...s.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function m(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?c:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?y:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},24137(e,t,r){r.d(t,{P:()=>C});var i=r(32198),n=r(69622),s=r(49186),a=r(53966),o=r(91869),l=r(17676),p=r(39516),u=r(91429),d=r(5443),h=r(39829),c=r(99917),y=r(21325),m=r(15375);const f=(e,t)=>{if("column-reference"===e.type)return e.column===t.systemOidFieldName?"ID(n)":`n.${e.column}`;if("string"===e.type)return`'${e.value}'`;if("number"===e.type)return`${e.value}`;if("binary-expression"===e.type&&t.supportedSqlTypes.has(e.left.type)&&t.supportedSqlTypes.has(e.right.type)&&t.supportedSqlOperators.has(e.operator))return`${f(e.left,t)} ${e.operator} ${f(e.right,t)}`;if("binary-expression"===e.type&&"LIKE"===e.operator){let r="";if("function"===e.left.type&&"column-reference"===e.left.args.value[0].type)r+=`lower(n.${e.left.args.value[0].column})`;else{if("column-reference"!==e.left.type)return t.unsupportedOperationFound=!0,"";r+=`lower(n.${e.left.column})`}if(r+=" CONTAINS (","string"!==e.right.type)return t.unsupportedOperationFound=!0,"";{let t=e.right.value;t.startsWith("%")&&(t=t.slice(1)),t.endsWith("%")&&(t=t.slice(0,-1)),r+=`'${t.toLowerCase()}')`}return r}return t.unsupportedOperationFound=!0,""};var g=r(69860),b=r(99916),w=r(53902),M=r(42538),I=r(97552);let C=class extends n.A{constructor(e){super(e),this._processingCacheUpdatesLookup=new Map,this.knowledgeGraph=null,this.inclusionModeDefinition={generateAllSublayers:!0,namedTypeDefinitions:new Map},this.entityTypeNames=new Set,this.relationshipTypeNames=new Set,this.geographicLookup=new Map,this.sublayerCaches=new Map,this.nodeConnectionsLookup=new Map,this.relationshipConnectionsLookup=new Map,this.memberIdTypeLookup=new Map;let t=new Map;e.knowledgeGraph.dataModel.entityTypes?.forEach(r=>{r.name&&(t.set(r.name,"entity"),this._processingCacheUpdatesLookup.set(r.name,[]),(!e.inclusionModeDefinition||e.inclusionModeDefinition?.generateAllSublayers)&&this.entityTypeNames.add(r.name),r.properties?.forEach(e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(r.name,{name:e.name??"",geometryType:e.geometryType})}))}),e.knowledgeGraph.dataModel.relationshipTypes?.forEach(r=>{r.name&&(t.set(r.name,"relationship"),this._processingCacheUpdatesLookup.set(r.name,[]),(!e.inclusionModeDefinition||e.inclusionModeDefinition?.generateAllSublayers)&&this.relationshipTypeNames.add(r.name),r.properties?.forEach(e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(r.name,{name:e.name??"",geometryType:e.geometryType})}))}),e.inclusionModeDefinition?.namedTypeDefinitions.forEach((r,i)=>{if("entity"===t.get(i))this.entityTypeNames.add(i);else{if("relationship"!==t.get(i))return a.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(i);this.relationshipTypeNames.add(i)}let n=new Map;r.members?.forEach(e=>{(0,o.tE)(this.memberIdTypeLookup,e.id,()=>new Set).add(i)}),this.sublayerCaches.set(i,n)})}addToLayer(e){e.forEach(({typeName:e,id:t})=>{if(!this.inclusionModeDefinition)throw new s.A("knowledge-graph:layer-data-manager","You cannot add to a layer's exclusion list if it was not created with an exclusion list originally");if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){let r=this.inclusionModeDefinition.namedTypeDefinitions.get(e);r.members||=new Map,r.members.set(t,{id:t}),(0,o.tE)(this.memberIdTypeLookup,t,()=>new Set).add(e)}}else{let r=new Map;r.set(t,{id:t}),this.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:r}),(0,o.tE)(this.memberIdTypeLookup,t,()=>new Set).add(e)}})}getById(e){return g.A.getInstance().readFromStoreById(e)}async getData(e,t,r,i){if(t.objectType.name&&this.inclusionModeDefinition?.namedTypeDefinitions&&this.inclusionModeDefinition.namedTypeDefinitions.size>0&&!this.inclusionModeDefinition.namedTypeDefinitions.has(t.objectType.name))return{features:[],cypherTranslationApplied:!1};let n;if(n=e||new I.A({where:"1=1",outFields:["*"]}),"link-chart"===r.type){let e=r,i=this._processingCacheUpdatesLookup.get(t.objectType.name??""),s=n.outFields;s&&1===s.length&&s[0]===m.dr&&"1=1"===n.where||await Promise.all(i??[]);let a=this.sublayerCaches.has(t.objectType.name??"")?Array.from(this.sublayerCaches.get(t.objectType.name)?.values()):[],o=[];return a.forEach(r=>{if(this.relationshipTypeNames.has(t.objectType.name)){r.geometry=e.relationshipLinkChartDiagramLookup.get(r.attributes[t.objectIdField]);let i=this.memberIdTypeLookup.get(r.attributes[m.Cz]),n=this.memberIdTypeLookup.get(r.attributes[m.KQ]),s=this._isEndEntitySpatial(i,r,m.Cz),a=this._isEndEntitySpatial(n,r,m.KQ);r.attributes[m.BL]=Number(s&&a)}else{r.geometry=e.entityLinkChartDiagramLookup.get(r.attributes[t.objectIdField]);let i=this.geographicLookup.get(t.objectType.name);i&&r.attributes[i.name]?r.attributes[m.BL]=1:r.attributes[m.BL]=0}r.attributes[m.T1]=r.geometry,o.push(r)}),{features:o,cypherTranslationApplied:!1}}return this.retrieveDataFromService(n,t,r,i)}async getConnectedRecordIds(e,t,r){let i=[],n="",s=this._getNamedTypeIdMapFromNodeIds(e);if(t&&0!==t?.length){for(let e of t)n=n+e+"|";n=n.slice(0,-1)}let a={},o=[];for(let[e,r]of s){let i=`${e}_ids`;a[i]=r,t&&0!==t?.length?o.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r:${n}]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`):o.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`)}if(!o.length)return i;let l=o.join(" UNION "),p=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new M.A({openCypherQuery:l,bindParameters:a}),{signal:r?.signal})).resultRowsStream.getReader();for(;;){let{done:e,value:t}=await p.read();if(e)break;for(let e=0;e<t.length;e++){let r=t[e];i.push({id:r[0],typeName:r[1]}),i.push({id:r[2],typeName:r[3]})}}return i}async getRelationshipsBetweenNodes(e,t,r){let i=this._getNamedTypeIdMapFromNodeIds(e);if(0===i.size)return[];let n={relationshipExclusionIds:t,possibleConnectionEntityIds:e},s=[];for(let[e,t]of i.entries()){let r=`${e}_ids`;n[r]=t,s.push(`MATCH (n:${e}) WHERE id(n) IN $${r} WITH n MATCH (n)-[r]->(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}let a=s.join(" UNION "),o=[],l=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new M.A({openCypherQuery:a,bindParameters:n}),{signal:r?.signal})).resultRowsStream.getReader();for(;;){let{done:e,value:t}=await l.read();if(e)break;for(let e=0;e<t.length;e++){let r=t[e];o.push({id:r[0],typeName:r[1]})}}return o}async getRelationshipsFromNodes(e,t,r,i){let n=this._getNamedTypeIdMapFromNodeIds(e);if(0===n.size||0===t.length)return[];let s={relationshipExclusionIds:r,possibleConnectionEntityIds:t},a=[];for(let[e,t]of n.entries()){let r=`${e}_ids`;s[r]=t,a.push(`MATCH (n:${e}) WHERE id(n) IN $${r} WITH n MATCH (n)-[r]-(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}let o=a.join(" UNION "),l=new Map,p=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new M.A({openCypherQuery:o,bindParameters:s}),{signal:i?.signal})).resultRowsStream.getReader();for(;;){let{done:e,value:t}=await p.read();if(e)break;for(let e=0;e<t.length;e++){let r=t[e],i=l.get(r[1]);i||(i=new Set,l.set(r[1],i)),i.add(r[0])}}let u=[];for(let[e,t]of l)for(let r of t)u.push({id:r,typeName:e});return u}async refreshCacheContent(e,t,r,i=!0,n){let a=g.A.getInstance(),p=[],u=new Map,d=new Map;this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&d.set(e.name,e)}),this.knowledgeGraph.dataModel.relationshipTypes?.forEach(e=>{e.name&&d.set(e.name,e)}),e||this.inclusionModeDefinition?e?e.forEach(e=>{if(this.memberIdTypeLookup.has(e))for(let t of this.memberIdTypeLookup.get(e))u.has(t)?u.get(t)?.push(e):u.set(t,[e])}):this.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{e.useAllData?u.set(t,null):e.members&&e.members.forEach(e=>{u.has(t)&&null!==u.get(t)?u.get(t)?.push(e.id):u.set(t,[e.id])})}):(this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&u.set(e.name,null)}),this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&u.set(e.name,null)}));for(let[e,l]of u){let u=new Set(l),h=new Promise((p,h)=>{(async()=>{let p,h=new Set,c=[],y="",f=!1;if(t||d.get(e)?.properties?.forEach(e=>{e.name&&h.add(e.name)}),r&&this.geographicLookup.has(e)){let t=this.geographicLookup.get(e)?.name;t&&h.add(t)}if(this.entityTypeNames.has(e))y=`MATCH (n:${e}) ${l?"WHERE id(n) IN $ids ":""}return ID(n)`,h.forEach(e=>{y+=`, n.${e}`,c.push(e)});else{if(!this.relationshipTypeNames.has(e))throw new s.A("knowledge-graph:layer-data-manager",`The graph type of ${e} could not be determined. Was this type set in the KG data model and inclusion definition?`);f=!0,y=`MATCH ()-[n:${e}]->() ${l?"WHERE id(n) IN $ids ":""}return ID(n), id(startNode(n)), id(endNode(n))`,h.forEach(e=>{y+=`, n.${e}`,c.push(e)})}p=l?new M.A({openCypherQuery:y,bindParameters:{ids:l}}):new M.A({openCypherQuery:y});let g=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,p,{signal:n?.signal})).resultRowsStream.getReader();for(;;){let{done:t,value:r}=await g.read();if(t)break;let n=[];for(let e=0;e<r.length;e++){let t=r[e],i=0,s=0,a={properties:{}};for(a.id=t[i],i++,s++,f&&(a.originId=t[i],i++,s++,a.destinationId=t[i],i++,s++,(0,o.tE)(this.nodeConnectionsLookup,a.originId,()=>new Set).add(a.id),(0,o.tE)(this.nodeConnectionsLookup,a.destinationId,()=>new Set).add(a.id),(0,o.tE)(this.relationshipConnectionsLookup,a.id,()=>[a.originId,a.destinationId]));i<t.length;i++)a.properties[c[i-s]]=t[i];u.delete(a.id),n.push(a)}let s=a.writeToStore(n,m.dr,this.geographicLookup.get(e)?.name);this.sublayerCaches.has(e)||this.sublayerCaches.set(e,new Map),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.has(e)&&this.inclusionModeDefinition?.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members&&(this.inclusionModeDefinition.namedTypeDefinitions.get(e).members=new Map);let l=this.sublayerCaches.get(e);s.forEach(t=>{l?.set(t.attributes[m.dr],t),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.has(t.attributes[m.dr])&&(this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.set(t.attributes[m.dr],{id:t.attributes[m.dr]}),(0,o.tE)(this.memberIdTypeLookup,t.attributes[m.dr],()=>new Set).add(e))})}let b=this.inclusionModeDefinition?.namedTypeDefinitions.get(e);if(b)for(let e of u)b.members?.delete(e)})().then(()=>{p(null)}).catch(e=>{"AbortError"===e.name?p(null):h(e)})});p.push(h),this._processingCacheUpdatesLookup.get(e)?.push(h)}if(await Promise.all(p),n?.signal?.aborted)throw(0,l.NK)()}removeFromLayer(e){let t=new Set,r=new Set(e.map(e=>e.id));for(let r of e)t.add(r.typeName),1===this.memberIdTypeLookup.get(r.id)?.size?this.memberIdTypeLookup.delete(r.id):this.memberIdTypeLookup.get(r.id)?.delete(r.typeName),this.inclusionModeDefinition?.namedTypeDefinitions.forEach((e,t)=>{t===r.typeName&&e.members?.has(r.id)&&e.members.delete(r.id)});t.forEach(e=>{this.sublayerCaches.get(e)?.forEach((t,i)=>{r.has(i)&&this.sublayerCaches.get(e)?.delete(i)})})}async retrieveDataFromService(e,t,r,i){let n,o=g.A.getInstance(),l=new Set,u=[],I="",C=[],_=!1,T="relationship"===t.graphType,v=this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData,A=r.sublayerIdsCache.get(t.objectType.name),E=!v&&A?Array.from(A).sort():null,x={systemOidFieldName:m.dr,supportedSqlTypes:new Set(["column-reference","string","number","binary-expression"]),supportedSqlOperators:new Set(["=","<","<=","<>",">",">=","AND","OR","LIKE"]),unsupportedOperationFound:!1};if(this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData)this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData&&null!=e.objectIds&&(E=e.objectIds);else if(null!=e.objectIds&&E&&E.length>0){let t=e.objectIds;e.objectIds=E.filter(e=>t.includes(e))}else if(null!=e.objectIds)E=e.objectIds;else{if(this.inclusionModeDefinition?.namedTypeDefinitions.has(t.objectType.name)&&(!this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members||this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members?.size<1))return e.objectIds=[],{features:[],cypherTranslationApplied:_};e.objectIds=E}if(null!=e.outFields){let r=e.outFields;r.includes("*")?t.fields.forEach(e=>{l.add(e.name)}):r.forEach(e=>{e!==m.dr&&e!==t.geometryFieldName&&l.add(e)})}if(null!=e.geometry){let i,a=e.geometry,o=r.dataManager.knowledgeGraph.serviceDefinition,m=o?.spatialReference,f=o?.serviceCapabilities?.geometryCapabilities,g=f?.geometryMaxBoundingRectangleSizeX,w=f?.geometryMaxBoundingRectangleSizeY;if("point"===a.type){let e=a;e.spatialReference?.isWGS84||(await(0,c.initializeProjection)(e.spatialReference,y.KK),e=(0,c.project)(e,y.KK)),i=new d.A({spatialReference:y.KK,xmin:e.x-1e-4,ymin:e.y-1e-4,xmax:e.x+1e-4,ymax:e.y+1e-4})}else a?.extent?.spatialReference&&!a.spatialReference?.isWGS84?(await(0,c.initializeProjection)(a.extent.spatialReference,y.KK),i=(0,c.project)(a.extent,y.KK)):i=a.extent;if(g&&w&&m){if(4326!==m.wkid){let e=new d.A({spatialReference:m,xmax:g,ymax:w}),t=(0,c.project)(e,y.KK);g=t.xmax,w=t.ymax}if(i.xmax-i.xmin>g)throw new s.A("knowledge-graph:layer-data-manager",`Extent x bounds should be within ${g}° latitude, limit exceeded`);if(i.ymax-i.ymin>w)throw new s.A("knowledge-graph:layer-data-manager",`Extent y bounds should be within ${w}° longitude, limit exceeded`)}if(null!=e.where&&"1=1"!==e.where){let r=await(0,p.GP)(e.where.toUpperCase(),t.fieldsIndex);t.fields.forEach(e=>{r.fieldNames.includes(e.name)&&l.add(e.name)})}I=T?`Match ()-[n:${t.objectType.name}]->() WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n), id(startNode(r)), id(endNode(r))`:`Match (n:${t.objectType.name}) WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n)`,t.geometryFieldName&&l.add(t.geometryFieldName),l.forEach(e=>{I+=`, n.${e}`,u.push(e)}),n=new M.A({openCypherQuery:I,bindParameters:{param_filter_geom:new h.A({rings:(0,b.Wq)(i)})}})}else{let r="";if(null!=e.where&&"1=1"!==e.where){let i=await(0,p.GP)(e.where,t.fieldsIndex);t.fields.forEach(e=>{i.fieldNames.includes(e.name)&&l.add(e.name)}),r=f(i.parseTree,x),x.unsupportedOperationFound&&(r="")}let i="";i=T?`Match ()-[n:${t.objectType.name}]->()`:`Match (n:${t.objectType.name})`;let s=!1;E&&(s=!0,i+=" WHERE ID(n) IN $ids"),r&&(i+=s?" AND":" WHERE",i+=` ${r}`),i+=" return ID(n)",T&&(i+=", id(startNode(n)), id(endNode(n))"),e.returnGeometry&&t.geometryFieldName&&l.add(t.geometryFieldName),l.forEach(e=>{i+=`, n.${e}`,u.push(e)}),x.unsupportedOperationFound||(i=((e,t)=>{let r=e;return t.orderByFields?.length&&(r=function(e,t){let r=e.trimEnd();if(/\border\s+by\b/i.test(r))return a.A.getLogger("cypherUtils").warn("Query already contains an ORDER BY clause. Skipping addition of new ORDER BY."),e;let i=t.map(e=>e.trim()).filter(e=>!!e).map(e=>{let[t,r]=e.split(/\s+/);return t?`${t===m.dr?"ID(n)":`n.${t}`} ${"DESC"===r?.toUpperCase()?"DESC":"ASC"}`:null}).filter(e=>!!e);return i.length?`${r} ORDER BY ${i.join(", ")}`:e}(r,t.orderByFields)),null!=t.start&&(r=function(e,t){let r=e.trimEnd();return/\bskip\s+(\$\w+|\d+)\b/i.test(r)?(a.A.getLogger("cypherUtils").warn("Query already contains a SKIP clause. Skipping addition of new SKIP."),e):`${r} SKIP ${t}`}(r,t.start)),null!=t.num&&(r=function(e,t){let r=e.trimEnd();return/\blimit\s+(\$\w+|\d+)\b/i.test(r)?(a.A.getLogger("cypherUtils").warn("Query already contains a LIMIT clause. Skipping addition of new LIMIT."),e):`${r} LIMIT ${t}`}(r,t.num)),r})(i,e),_=!0),n=E?new M.A({openCypherQuery:i,bindParameters:{ids:E}}):new M.A({openCypherQuery:i})}let S=(await(0,w.executeQueryStreaming)(r.dataManager.knowledgeGraph,n,i)).resultRowsStream.getReader();for(;;){let{done:e,value:i}=await S.read();if(e)break;let n=[];for(let e=0;e<i.length;e++){let t=i[e],r=0,s=0,a={properties:{}};for(a.id=t[r],r++,s++,T&&(a.originId=t[r],r++,s++,a.destinationId=t[r],r++,s++);r<t.length;r++)a.properties[u[r-s]]=t[r];n.push(a)}C=C.concat(o.writeToStore(n,m.dr,r.dataManager.geographicLookup.get(t.objectType.name)?.name))}return{features:C,cypherTranslationApplied:_}}_isEndEntitySpatial(e,t,r){for(let i of e??[])if(this.entityTypeNames.has(i)){let e=this.geographicLookup.get(i),n=e&&this.sublayerCaches.get(i)?.get(t.attributes[r]);if(e&&n?.attributes[e.name])return!0}return!1}_getNamedTypeIdMapFromNodeIds(e){let t=new Map;return e.forEach(e=>{if(this.memberIdTypeLookup.has(e))for(let r of this.memberIdTypeLookup.get(e)){if(!this.entityTypeNames.has(r))return;t.has(r)?t.get(r)?.push(e):t.set(r,[e])}}),t}};(0,i.Cg)([(0,u.MZ)()],C.prototype,"knowledgeGraph",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"inclusionModeDefinition",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"entityTypeNames",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"relationshipTypeNames",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"geographicLookup",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"sublayerCaches",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"nodeConnectionsLookup",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"relationshipConnectionsLookup",void 0),(0,i.Cg)([(0,u.MZ)()],C.prototype,"memberIdTypeLookup",void 0),C=(0,i.Cg)([(0,u.$K)("esri.layers.knowledgeGraph.KnowledgeGraphLayerDataManager")],C)},62796(e,t,r){r.d(t,{A:()=>fe});var i=r(32198),n=r(37838),s=r(49186),a=r(4718),o=r(53966),l=r(25728),p=r(91429),u=(r(29953),r(78247)),d=r(5443),h=r(86738),c=r(39829),y=r(82799),m=r(99917),f=r(16930),g=r(21325),b=r(50498),w=r(41910),M=r(55156),I=r(60950),C=r(89808),_=r(99959);const T=Symbol("isKnowledgeGraphGraphicOriginSymbol");var v;class A extends _.A{get[(v=T,I.ym)](){return this.sublayer}get[M.e](){return this.sublayer}get[C.Q](){return this.sublayer}get[w.e7](){return this.sublayer}constructor(e,t){super(),this[v]=!0,this.type="knowledge-graph",this.layer=e,this.sublayer=t}get id(){return this.layer.id}}const E=Symbol("isLinkChartGraphicOriginSymbol");var x;class S extends _.A{get[(x=E,I.ym)](){return this.sublayer}get[M.e](){return this.sublayer}get[C.Q](){return this.sublayer}get[w.e7](){return this.sublayer}constructor(e,t){super(),this[x]=!0,this.type="link-chart",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var k=r(4146),L=r(83221),N=r(75752),F=r(64714),R=r(15375);const O=(0,r(17036).p)(),D=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.fields=[],this.fieldsIndex=null}};return(0,i.Cg)([(0,p.MZ)(O.fields)],r.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(O.fieldsIndex)],r.prototype,"fieldsIndex",void 0),r=(0,i.Cg)([(0,p.$K)("esri.layers.knowledgeGraph.KnowledgeGraphSublayerBase")],r),r};var P=r(40736),j=r(63074),B=r(6455),G=r(87718),$=r(56658),Z=r(32756),Q=r(54310),q=r(25036),U=r(82935),z=r(10873),Y=r(20569),H=r(29005),X=r(20437),W=r(30524),K=r(46499),V=r(39383),J=r(96184),ee=r(96576),te=r(65494),re=r(41214),ie=r(53902),ne=r(22671),se=r(97552),ae=r(30291),oe=r(88625),le=r(37531),pe=r(50343),ue=r(43937);function de(e){if(!e.json)return e;e.json.write=he(e.json.write);let t,r=e.json.origins;if(!r)return e;for(t in r){let e=r[t];e&&(e.write=he(e.write))}return e}function he(e){return"object"==typeof e&&e?(!1!==e.enabled&&(e.overridePolicy=function(e){let{target:t,writer:r,overridePolicy:i,...n}=e;return function(e,t){let r=ye.call(this,e,t);return r.enabled?{...n,...r}:r}}(e)),e):!0===e?ce():e}function ce(){return{overridePolicy:ye}}function ye(e,t){let r=!!this.geometryType,i={enabled:r};return r&&(i={...i,...me.call(this,e,t)}),i}function me(e,t){return{ignoreOrigin:this.originIdOf(t)>0}}let fe=class extends(D((0,B.FJ)((0,$.J)((0,G.F)((0,j.dM)((0,Z.fY)((0,U.e)((0,q.j)((0,Q.J)((0,l.M)(k.A))))))))))){constructor(e){super(e),this.blendMode="normal",this.charts=null,this.definitionExpression=null,this.displayFilterEnabled=!0,this.displayFilterInfo=null,this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=R.dr,this.objectType=null,this.opacity=1,this.orderBy=null,this.parent=null,this.parentCompositeLayer=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then(()=>{let e=new MessageChannel;return new pe.default(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{let r=se.A.fromJSON(e);return this.queryFeaturesJSON(r,t)}}}),[e.port2]})},this.type="knowledge-graph-sublayer",this.useViewTime=!0,this.visible=!0}get capabilities(){return this.parent?this.parent.sublayerCapabilities:(0,P.hZ)(null)}get isTable(){return"link-chart"!==this.parentCompositeLayer?.type&&null==this.geometryFieldName}get defaultPopupTemplate(){return this.createPopupTemplate()}get editingEnabled(){return this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveCapabilities(){let e=(0,a.o8)(this.capabilities),{operations:t,editing:r}=e;return this.userHasUpdateItemPrivileges&&(t.supportsAdd=t.supportsDelete=t.supportsEditing=t.supportsQuery=t.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0),this.userHasFullEditingPrivileges&&t.supportsEditing&&(t.supportsAdd=t.supportsDelete=t.supportsUpdate=r.supportsGeometryUpdate=!0),e}get effectiveEditingEnabled(){return this.userHasUpdateItemPrivileges||this.editingEnabled}set featureReduction(e){let t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}get fields(){let e=[],t=new Map;for(let e of this.parent?.knowledgeGraph.dataModel.domains??[])t.set(e.name,e);return this.objectType?.properties?.forEach(r=>{let i="esriFieldTypeOID"===r.fieldType?"esriFieldTypeInteger":r.fieldType,n=X.A.fromJSON({name:r.name,type:i,alias:r.alias,defaultValue:r.defaultValue,editable:r.editable,nullable:r.nullable,domain:r.domain&&t.has(r.domain)?t.get(r.domain).toJSON():void 0});e.push(n)}),e.push(X.A.fromJSON({name:this.objectIdField,type:"esriFieldTypeString",alias:this.objectIdField,editable:!1}),X.A.fromJSON({name:R.M1,type:"esriFieldTypeInteger",alias:R.M1,editable:!1}),X.A.fromJSON({name:R.BL,type:"esriFieldTypeInteger",alias:R.BL,editable:!1})),e}get formTemplate(){return this._isOverridden("formTemplate")?this._get("formTemplate"):(0,P.dD)(this)}set formTemplate(e){this._overrideIfSome("formTemplate",e)}get geometryType(){if("link-chart"===this.parentCompositeLayer?.type)return"relationship"===this.graphType?"polyline":"point";let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.geometryType;return e&&"esriGeometryNull"!==e?b.gy.fromJSON(e):null}get geometryFieldName(){return"link-chart"===this.parentCompositeLayer?.type?R.T1:this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name??null}get graphicOrigin(){if(!this.parent)return null;switch(this.parent.type){case"knowledge-graph":return new A(this.parent,this);case"link-chart":return new S(this.parent,this)}}get graphTypeName(){return this.objectType?.name}set graphTypeName(e){this._set("graphTypeName",e)}get hasM(){let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name;return(e?this.objectType?.properties?.[e]:null)?.hasM??!1}get hasZ(){let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name;return(e?this.objectType?.properties?.[e]:null)?.hasZ??!1}set labelingInfo(e){this._set("labelingInfo",e)}get labelingInfo(){if(this._isOverridden("labelingInfo"))return this._get("labelingInfo");if(!this.objectType||!this.parentCompositeLayer||!this.graphTypeName)return null;let e=this.objectType.properties?(0,P.MY)(this.objectType.properties):"ESRI__ID";return"link-chart"===this.parentCompositeLayer.type?(0,P.iW)(this.graphType,this.graphTypeName,e):(0,P.e$)(this.graphTypeName,this.geometryType,e)}set renderer(e){(0,W.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");let e=this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel,t=[...e?.entityTypes??[],...e?.relationshipTypes??[]].map(e=>e.name).indexOf(this.graphTypeName),r=(0,P.Td)(t);if("link-chart"===this.parentCompositeLayer?.type){if("relationship"===this.graphType)return new ee.A({type:"simple",symbol:(0,P.UT)(r)});let e=(0,te.r)((0,F.F0)(b.gy.toJSON("point")).renderer);return(0,le.dt)(e.symbol,r),e}let i=(0,te.r)((0,F.F0)(b.gy.toJSON(this.geometryType)).renderer);return(0,le.dt)(i.symbol,r),i}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??f.A.WGS84}get templates(){return this._isOverridden("templates")?this._get("templates"):(0,P.CP)(this)}set templates(e){this._overrideIfSome("templates",e)}set timeInfo(e){this._set("timeInfo",e)}get dateFieldsTimeZone(){return this.parentCompositeLayer?.dateFieldsTimeZone}get title(){return this._isOverridden("title")?this._get("title"):this.graphTypeName}set title(e){this._set("title",e)}writeTitle(e,t){t.title=e??"Layer"}get userHasEditingPrivileges(){return!this.parent||this.parent.userHasEditingPrivileges}get userHasFullEditingPrivileges(){return!!this.parent&&this.parent.userHasFullEditingPrivileges}get userHasUpdateItemPrivileges(){return!!this.parent&&this.parent.userHasUpdateItemPrivileges}createPopupTemplate(e){return(0,ae.tn)(this,e)}createQuery(){return new se.A({where:"1=1",outFields:["*"]})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){return this.fields.find(t=>t.name===e)?.domain||null}async queryFeatures(e,t){await this.load();let{resolvedQuery:r,queryEngine:i,cypherTranslationApplied:n}=await this._setupQueryObjects(e),s=this.graphicOrigin,a=ne.A.fromJSON(await i.executeQuery(this._createQueryEngineQueryJSON(r,n),t?.signal));return a.features.forEach(e=>{e.sourceLayer=this,e.origin=s}),a}async queryFeaturesJSON(e,t){await this.load();let{resolvedQuery:r,queryEngine:i,cypherTranslationApplied:n}=await this._setupQueryObjects(e);return await i.executeQuery(this._createQueryEngineQueryJSON(r,n),t?.signal)}async queryFeatureCount(e,t){await this.load();let{resolvedQuery:r,queryEngine:i,cypherTranslationApplied:n}=await this._setupQueryObjects(e);return i.executeQueryForCount(this._createQueryEngineQueryJSON(r,n),t?.signal)}async queryExtent(e={},t){await this.load();let r,i={...e,returnGeometry:!0},{resolvedQuery:n,queryEngine:s,cypherTranslationApplied:a}=await this._setupQueryObjects(i),o=await s.executeQueryForExtent(this._createQueryEngineQueryJSON(n,a),t?.signal);return r=null!=o.extent?.xmin&&null!=o.extent?.xmax&&null!=o.extent?.ymin&&null!=o.extent?.ymax?new d.A(o.extent):new d.A,{count:o.count,extent:r}}async queryObjectIds(e,t){await this.load();let r,i=se.A.from(e);if(this.parentCompositeLayer){if("link-chart"!==this.parentCompositeLayer.type||!this._cachedQueryEngine){let{features:e,cypherTranslationApplied:n}=await this.parentCompositeLayer.dataManager.getData(i,this,this.parentCompositeLayer,t);return r=this.loadQueryEngine(e),await r.executeQueryForIds(this._createQueryEngineQueryJSON(i,n),t?.signal)}r=this._cachedQueryEngine}else o.A.getLogger(this).warn("Attempting to query for object IDs with no features failed because the parent composite layer is missing or not yet loaded."),r=this.loadQueryEngine([]);return await r.executeQueryForIds(this._createQueryEngineQueryJSON(i,!1),t?.signal)}async applyEdits(e){if(!this.parentCompositeLayer?.dataManager.knowledgeGraph)throw new s.A("knowledge-graph-sublayer:no-knowledge-graph","ApplyEdits cannot be executed because the parent does not have a Knowledge Graph model. This is usually caused by the layer not yet being loaded");let t=await(0,P.O9)(e,this,this.parentCompositeLayer);t.options={cascadeDelete:!0,cascadeProvenanceDelete:!!this.parent?.knowledgeGraph.serviceDefinition.supportsProvenance||void 0};let r=await(0,ie.executeApplyEdits)(this.parentCompositeLayer.dataManager.knowledgeGraph,t),i=(0,P.Gz)(r,this.graphTypeName),n={addedFeatures:i.addFeatureResults,updatedFeatures:i.updateFeatureResults,deletedFeatures:i.deleteFeatureResults,addedAttachments:i.addAttachmentResults,deletedAttachments:i.deleteAttachmentResults,updatedAttachments:i.updateAttachmentResults,exceededTransferLimit:!1,historicMoment:new Date,edits:void 0};return this.emit("edits",n),this.emit("apply-edits",{result:Promise.resolve(n)}),"link-chart"===this.parentCompositeLayer.type&&await this.parentCompositeLayer.refreshLinkChartCache([...n.addedFeatures.map(e=>e.globalId),...n.updatedFeatures.map(e=>e.globalId),...n.deletedFeatures.map(e=>e.globalId)]),i}loadQueryEngine(e){let t=new L.A({geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),r=new N.do({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,featureIdInfo:{type:"object-id",fieldName:this.objectIdField},spatialReference:this.spatialReference.toJSON(),timeInfo:this.timeInfo?.toJSON(),featureStore:t});return r.featureStore.addMany(e),r}async refreshCachedQueryEngine(){if(!this.parentCompositeLayer)return o.A.getLogger(this).warn("Attempting to refresh the cached query engine with no features failed because the parent composite layer is missing or not yet loaded."),void(this._cachedQueryEngine=this.loadQueryEngine([]));let{features:e}=await this.parentCompositeLayer.dataManager.getData(new se.A({where:"1=1",outFields:[R.dr]}),this,this.parentCompositeLayer);this._cachedQueryEngine=this.loadQueryEngine(e)}load(e){return this.addResolvingPromise(this.parent.load(e).then(()=>(0,W.sv)(this.timeInfo,this.fieldsIndex))),Promise.resolve(this)}_createQueryEngineQueryJSON(e,t){let r=e.toJSON();return t&&delete r.resultOffset,r}async _setupQueryObjects(e,t){let r=se.A.from(e),i=r.geometry;if(i&&!i.spatialReference?.isWGS84&&(await(0,m.initializeProjection)(i.spatialReference,g.KK),r.geometry=i instanceof c.A||i instanceof y.A||i instanceof h.A?(0,m.project)(i,g.KK):(0,m.project)(i.extent,g.KK)),!this.parentCompositeLayer)return o.A.getLogger(this).warn("Attempting to execute a query with no features failed because the parent composite layer is missing or not yet loaded."),{resolvedQuery:r,queryEngine:this.loadQueryEngine([]),cypherTranslationApplied:!1};if("link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)return{resolvedQuery:r,queryEngine:this._cachedQueryEngine,cypherTranslationApplied:!1};let{features:n,cypherTranslationApplied:s}=await this.parentCompositeLayer.dataManager.getData(r,this,this.parentCompositeLayer,t);return{resolvedQuery:r,queryEngine:this.loadQueryEngine(n),cypherTranslationApplied:s}}};(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(j.sU)))],fe.prototype,"blendMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"capabilities",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"isTable",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:ce()}})],fe.prototype,"charts",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1}},name:"layerDefinition.definitionExpression",write:{ignoreOrigin:!0}}})],fe.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(B.Dp)))],fe.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(B.KV)))],fe.prototype,"displayFilterInfo",void 0),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"editingEnabled",null),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(j.LF)))],fe.prototype,"effect",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)({type:oe.A})],fe.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(G.Y)))],fe.prototype,"featureEffect",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(Y.d)))],fe.prototype,"featureReduction",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"fields",null),(0,i.Cg)([(0,p.MZ)({type:u.A})],fe.prototype,"formTemplate",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"geometryType",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"geometryFieldName",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"graphicOrigin",null),(0,i.Cg)([(0,p.MZ)({type:["entity","relationship"],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],fe.prototype,"graphType",void 0),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],fe.prototype,"graphTypeName",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"hasM",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"hasZ",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],fe.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",default:!1,write:{overridePolicy(){return{enabled:!!this.geometryType,alwaysWriteDefaults:!0,ignoreOrigin:!0}}}}})],fe.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,p.MZ)({type:[K.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:function(e,t,r){let i=[["ESRI__AGGREGATION_COUNT",R.M1],["ESRI__ORIGIN_ID",R.Cz],["ESRI__DESTINATION_ID",R.KQ],["ESRI__LAYOUT_GEOMETRY",R.T1]];try{for(let t of e)for(let[e,r]of i)t.labelExpression=t.labelExpression?.replaceAll(e,r),t.labelExpressionInfo?.expression&&(t.labelExpressionInfo.expression=t.labelExpressionInfo.expression.replaceAll(e,r))}catch(e){o.A.getLogger(this).warn("Error updating labelingInfo",e)}return V.w.call(this,e,t,r)},write:ce()}})],fe.prototype,"labelingInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:{writer(e,t){switch(this.parentCompositeLayer?.type){case"link-chart":t.layerType="LinkChartSubLayer";break;case"knowledge-graph":t.layerType=this.geometryType?"KnowledgeGraphSubLayer":"KnowledgeGraphSubTable"}},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],fe.prototype,"layerType",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(z.fV)))],fe.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(z.hG)))],fe.prototype,"maxScale",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(z.hn)))],fe.prototype,"minScale",void 0),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"objectIdField",void 0),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"objectType",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(z.ke)))],fe.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(Z.ne)))],fe.prototype,"orderBy",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],fe.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"parentCompositeLayer",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(z.M6)))],fe.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:n.A,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],fe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,p.MZ)({type:Number,json:{write:{overridePolicy:me}}})],fe.prototype,"refreshInterval",void 0),(0,i.Cg)([(0,p.MZ)({types:re.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:ce()}})],fe.prototype,"renderer",null),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)()],fe.prototype,"spatialReference",null),(0,i.Cg)([(0,p.MZ)({type:H.A})],fe.prototype,"templates",null),(0,i.Cg)([(0,p.MZ)({type:J.A,json:{name:"layerDefinition.timeInfo",write:{overridePolicy:me},origins:{"web-document":{name:"layerDefinition.timeInfo",read:!0,write:{overridePolicy:me}},"portal-item":{name:"layerDefinition.timeInfo",read:!0,write:{overridePolicy:me}}}}})],fe.prototype,"timeInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"dateFieldsTimeZone",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],fe.prototype,"title",null),(0,i.Cg)([(0,ue.K)("title")],fe.prototype,"writeTitle",null),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],fe.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)(de((0,a.o8)(U.B)))],fe.prototype,"useViewTime",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"userHasEditingPrivileges",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"userHasFullEditingPrivileges",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],fe.prototype,"userHasUpdateItemPrivileges",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:ce()}})],fe.prototype,"visible",void 0),fe=(0,i.Cg)([(0,p.$K)("esri.layers.knowledgeGraph.KnowledgeGraphSublayer")],fe)},69860(e,t,r){r.d(t,{A:()=>o});var i=r(65864),n=r(90708),s=r(43334),a=r(15375);class o{constructor(){this._featureLookup=new Map}static getInstance(){return o.instance||=new o,o.instance}static resetInstance(){o.instance&&=null}deleteFromStore(e){e.forEach(e=>{this._featureLookup.delete(e)})}readFromStoreByList(e){let t=[];return e.forEach(e=>{let r=this.readFromStoreById(e);r&&t.push(r)}),t}readFromStoreById(e){return this._featureLookup.get(e)??null}writeToStore(e,t,r){let o=[];return e.forEach(e=>{if(!e?.id)return;e.properties||=[];let l=null;r&&e.properties[r]&&(l=(0,n.Ux)(e.properties[r])),"originId"in e&&"destinationId"in e&&(e.properties[a.Cz]=e.originId,e.properties[a.KQ]=e.destinationId),e.properties[t]=e.id;let p=e.properties;if(e.id){let t=this._featureLookup.get(e.id);if(t?.attributes){p={...t.attributes,...p};let e=r&&p[r];null!=e&&(p[r]=(0,i.rS)(e)),l??=t.geometry}}let u=new s.Om(l?.clone(),p,null,e.id);this._featureLookup.set(`${e.typeName?`${e.typeName}__${e.id}`:e.id}`,u),o.push(u)}),o}}},15375(e,t,r){r.d(t,["BL",0,"LC.ESRI__IsSpatial","Cz",0,"ESRI__OriginID","KQ",0,"ESRI__DestID","M1",0,"ESRI__AggregationCount","T1",0,"ESRI__LayoutGeometry","dr",0,"ESRI__ID"])},40736(e,t,r){r.d(t,{Gz:()=>Q,O9:()=>Z,hZ:()=>$,CP:()=>U,dD:()=>q,UT:()=>O,MY:()=>D,Td:()=>R,iW:()=>P,e$:()=>j,$L:()=>z,N1:()=>B,qN:()=>N});var i=r(68197),n=r(92602),s=r(70333),a=(r(49186),r(91869)),o=r(17676),l=r(78247),p=r(89909),u=r(99917),d=r(16930),h=r(52039),c=r(99352),y=r(15375),m=r(29005),f=r(46499),g=r(73913),b=r(77548),w=r(80812),M=r(10407),I=r(53902),C=r(25927),_=r(32198),T=r(69622),v=r(91429);let A=class extends T.A{constructor(e){super(e),this.entityAdds=void 0,this.entityUpdates=void 0,this.entityDeletes=void 0,this.relationshipAdds=void 0,this.relationshipUpdates=void 0,this.relationshipDeletes=void 0,this.options=void 0}};(0,_.Cg)([(0,v.MZ)()],A.prototype,"entityAdds",void 0),(0,_.Cg)([(0,v.MZ)()],A.prototype,"entityUpdates",void 0),(0,_.Cg)([(0,v.MZ)()],A.prototype,"entityDeletes",void 0),(0,_.Cg)([(0,v.MZ)()],A.prototype,"relationshipAdds",void 0),(0,_.Cg)([(0,v.MZ)()],A.prototype,"relationshipUpdates",void 0),(0,_.Cg)([(0,v.MZ)()],A.prototype,"relationshipDeletes",void 0),(0,_.Cg)([(0,v.MZ)()],A.prototype,"options",void 0),A=(0,_.Cg)([(0,v.$K)("esri.rest.knowledgeGraph.GraphApplyEdits")],A);var E=r(23150),x=r(94128),S=r(40863),k=r(68249);const L=(e,t)=>"knowledge-graph"===e.type?`${t}/Map`:`${t}/LinkChart/LinkChartSubLayer`;async function N(e,t,r){return(async(e,t,r)=>{if(t||=[...e.layers,...e.tables].map(e=>e.graphTypeName),0===t?.length)return;let i=new Map;for(let r of t)i.set(r,L(e,r));let n=await(0,I.fetchClientDataAtKeys)(e.dataManager.knowledgeGraph,Array.from(i.values()),{requestOptions:{signal:r?.signal}});for(let t of[...e.layers,...e.tables]){let r=t.objectType.name;if(null==r)continue;let i=n.get(L(e,r));if(i){let e=JSON.parse(i);"object"==typeof e&&e&&!e.hasOwnProperty("showLabels")&&(e.showLabels=!1),t.read(e,{origin:"service"})}}})(e,t,r)}const F="#4a0932.#b31515.#18382e.#a64f1b.#102432.#8c213f.#ed9310.#2c6954.#144d59.#ffc730.#75351e.#454f4b.#78b1c2.#191921.#8f8f82.#9be0c0.#dbb658.#87b051.#11495c.#c43541.#9c5596.#44498b.#ad9d63.#86afb3.#5c98ca.#b0bfa2.#73241f.#b86b53.#d9d78c.#3e756d.#f260a1.#a0d17d.#c27c30.#eb82eb.#ffdf3c.#ffb259.#ab52b3.#3cccb4.#0095ba.#d92b30".split(".");function R(e){return e<0||e>=F.length?new i.A("#8f8f82"):new i.A(F[e])}function O(e){let t=e.toArray();return new S.A({data:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,style:"solid",width:.75,color:t},{type:"CIMVectorMarker",enable:!0,size:6,markerPlacement:{type:"CIMMarkerPlacementOnLine",angleToLine:!0,relativeTo:"LineMiddle"},frame:{xmin:-10,ymin:-5,xmax:0,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[-12,-3.47],[-12,3.6],[1.96,-.03],[-12,-3.47]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:t}]}}]}]}}})}function D(e){let t="ESRI__ID",r=4;for(let i of e)if(i.name){if("name"===i.name.toLowerCase()){t=i.name;break}i.name.toLowerCase().includes("name")?(t=i.name,r=2):"esriFieldTypeString"===i.fieldType&&r>3&&(t=i.name,r=3)}return t}function P(e,t,r){let i={color:[80,80,80],haloColor:[255,255,255],haloSize:.7,font:{size:10,weight:"normal"}},n=new f.A({labelExpressionInfo:new g.A({expression:"ESRI__ID"===r?`${t}`:`$feature.${r}`}),labelPlacement:"above-center",symbol:new k.A(i)}),s=new f.A({labelExpressionInfo:new g.A({expression:`'${t}' + IIf($feature.ESRI__AggregationCount>1, ' (' + $feature.ESRI__AggregationCount + ')', '')`}),labelPlacement:"center-along",labelPosition:"parallel",repeatLabel:!1,symbol:new k.A({...i,yoffset:"12px"})});return"entity"===e?[n]:[s]}function j(e,t,r){let i={color:[255,255,255],haloColor:[0,0,0],haloSize:.7,font:{size:10,weight:"bold"}},n="ESRI__ID"===r?`${e}`:`$feature.${r}`;return"point"===t?[new f.A({labelExpressionInfo:new g.A({expression:n}),labelPlacement:"above-center",symbol:new k.A(i)})]:"polyline"===t?[new f.A({labelExpressionInfo:new g.A({expression:n}),labelPlacement:"center-along",repeatLabel:!0,symbol:new k.A(i)})]:"polygon"===t?[new f.A({labelExpressionInfo:new g.A({expression:n}),labelPlacement:"always-horizontal",symbol:new k.A(i)})]:null}async function B(e,t,r){return(async(e,t,r)=>{let i=!0,a=!1,o=!1;if(!n.A.userPrivilegesApplied)return{edit:i,fullEdit:a,updateItem:o};let l=await(0,b.wI)(t,r);if(!l||!s.id?.getCredential(`${l}/sharing`,{...r,prompt:!1}))return{edit:i,fullEdit:a,updateItem:o};let p=new w.default({id:e,portal:{url:l}});return await p.load(r),({features:{edit:i,fullEdit:a},content:{updateItem:o}}=(0,M.It)(p)),{edit:i,fullEdit:a,updateItem:o}})(e,t,r).catch(e=>((0,o.QP)(e),{edit:!0,fullEdit:!1,updateItem:!1}))}const G={capabilities:[],allowGeometryUpdates:!1,serviceCapabilities:{geometryCapabilities:{supportsZValues:!1,supportsMValues:!1}}};function $(e){let{capabilities:t,allowGeometryUpdates:r,serviceCapabilities:{geometryCapabilities:{supportsZValues:i,supportsMValues:n}}}=e?.serviceDefinition||G,s=e?.dataModel.arcgisManaged?t:t.filter(e=>"Query"===e),a=new Set(s);return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:n,supportsTrueCurve:!1,supportsZ:i},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:a.has("Create"),supportsDelete:a.has("Delete"),supportsEditing:a.has("Editing"),supportsChangeTracking:!1,supportsQuery:a.has("Query"),supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:a.has("Update"),supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:c.F,queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:c.P,editing:{supportsGeometryUpdate:!!e?.dataModel.arcgisManaged&&r,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:a.has("Delete"),supportsUpdateByAnonymous:!1,supportsUpdateByOthers:a.has("Update"),supportsAsyncApplyEdits:!1,zDefault:void 0}}}async function Z(e,t,r){let i=new A,n=t.graphTypeName,s=t.graphType,o="knowledge-graph"===r.type?t.geometryFieldName:null,l=!!t.fieldsIndex.get(o)?.editable,p=e=>{let r={...e};for(let e of t.fields)e.editable||delete r[e.name];for(let t of Object.keys(e))t.includes("ESRI__")&&delete r[t];return r},c=async e=>{await(0,u.initializeProjection)(e.spatialReference,d.A.WGS84);let t=(0,u.project)(e,d.A.WGS84);return"point"===t.type?t.normalize():(await(0,h.el)(t))[0]};for(let t of e.addFeatures??[]){let e=p(t.attributes);(0,b.UC)(t.sourceLayer)&&t.sourceLayer.graphTypeName===n&&("entity"===s?(i.entityAdds||=[],o&&t.geometry&&(e[o]=await c(t.geometry)),i.entityAdds.push(new C.A({properties:e,typeName:n}))):(i.relationshipAdds||=[],i.relationshipAdds.push(new E.A({properties:e,typeName:n}))))}for(let t of e.updateFeatures??[]){let e=t.attributes[y.dr],r=p(t.attributes);(0,b.UC)(t.sourceLayer)&&t.sourceLayer.graphTypeName===n&&("entity"===s?(i.entityUpdates||=[],o&&l&&t.geometry&&(r[o]=await c(t.geometry)),i.entityUpdates.push(new C.A({id:e,properties:r,typeName:n}))):(i.relationshipUpdates||=[],i.relationshipUpdates.push(new E.A({id:e,properties:r,typeName:n}))))}let m=new Map;for(let t of e.deleteFeatures??[])if((0,x.D)(t)){let e=t,r=(0,a.tE)(m,e.sourceLayer.graphTypeName,()=>({typeName:e.sourceLayer.graphTypeName,ids:[]}));e.sourceLayer.graphTypeName===n&&r.ids.push(e.attributes[y.dr])}else t.objectId&&"string"==typeof t.objectId&&(0,a.tE)(m,n,()=>({typeName:n,ids:[]})).ids.push(t.objectId);for(let e of m.values())e.ids.length>0&&("entity"===s?(i.entityDeletes||=[],i.entityDeletes.push({typeName:e.typeName,ids:e.ids})):(i.relationshipDeletes||=[],i.relationshipDeletes.push({typeName:e.typeName,ids:e.ids})));return i}function Q(e,t){let r={addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]};for(let i of e.editResults)if(i.typeName===t){for(let e of i.adds)r.addFeatureResults.push({objectId:e.id,globalId:e.id});for(let e of i.updates)r.updateFeatureResults.push({objectId:e.id,globalId:e.id});for(let e of i.deletes)r.deleteFeatureResults.push({objectId:e.id,globalId:e.id})}return r}function q(e){if(!e.objectType)return null;let t=[];for(let r of e.fields)!r.name.includes("ESRI__")&&r.editable&&"geometry"!==r.type&&t.push(new p.A({fieldName:r.name}));return new l.A({elements:t})}function U(e){if(!e.objectType)return null;let t=null;switch(e.geometryType){case"point":case"multipoint":t="point";break;case"polyline":t="line";break;case"polygon":t="polygon";break;default:t=null}return[new m.A({name:e.graphTypeName,drawingTool:t,prototype:{}})]}const z=e=>{let t="",r=e.split("/"),i=r.lastIndexOf("KnowledgeGraphServer");return i>0&&(t=r[i-1]),t}},99916(e,t,r){r.d(t,{Wq:()=>l,aq:()=>o}),r(52106);var i=r(49186),n=(r(86738),r(39829),r(82799),r(15795),r(69860),r(8460),r(69647)),s=r(53902),a=r(42538);async function o(e,t,r){let i=[],n=function(e,t){let r=new Map;if(t.dataModel?.relationshipTypes)for(let e of t.dataModel.relationshipTypes)e.name&&r.set(e.name,[]);for(let t of e)r.has(t.typeName)&&r.get(t.typeName)?.push(t.id);return r}(e,t),o={},l=[];for(let[e,t]of n){if(t.length<1)continue;let r=`${e}_ids`;o[r]=t,l.push(`MATCH (n)-[r:${e}]->(m) WHERE id(r) in $${r} RETURN id(n), labels(n)[0], id(m), labels(m)[0]`)}if(0===l.length)return[];let p=l.join(" UNION "),u=new a.A({openCypherQuery:p,bindParameters:o}),d=(await(0,s.executeQueryStreaming)(t,u,r?.requestOptions)).resultRowsStream.getReader();for(;;){let{done:e,value:t}=await d.read();if(e)break;for(let e of t)i.push({id:e[0],typeName:e[1]}),i.push({id:e[2],typeName:e[3]})}return i}function l(e){if(!e.spatialReference.isWGS84)throw new i.A("knowledge-graph:layer-support-utils","The utilsExtentToInBoundsRings function only supports WGS84 spatial references.");return e.clone().normalize().map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}r(40863),r(94985),r(68249),r.d(t,["k5",0,e=>n.P_.get(e)??"radial-root-centric"])},82935(e,t,r){var i=r(32198),n=r(91429),s=r(30524),a=r(96184),o=r(73133),l=r(79677),p=r(10184),u=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,d,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,n=o.j.fromJSON(r.timeOffsetUnits);return i&&n?new p.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:l.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,u.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},17036(e,t,r){r.d(t,{p:()=>l});var i=r(44208),n=r(53966),s=r(20437),a=r(95466),o=r(30524);function l(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){let t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){let e=t.map(e=>`'${e.name}'`).join(", ");n.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${2**53-1} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return a.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){let e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(let t of e)this.fieldsIndex?.has(t)||n.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,o.DB)(this.fieldsIndex,e)}}}}},8460(e,t,r){r.d(t,{$C:()=>m,Hh:()=>a,Tu:()=>c,Wg:()=>y,Xq:()=>g,i6:()=>b,pM:()=>d,vJ:()=>f});var i=r(2741);let n,s=null;function a(){return n||(n=r.e(3666).then(()=>r(3666)).then(({default:e})=>e({locateFile:e=>(0,i.s)(`esri/libs/linkchartlayout/${e}`)})).then(e=>{!function(e){s=e}(e)}),n)}const o={right:0,left:1,top:2,bottom:3},l={none:0,"start-only":1,"start-and-end":2};function p(e){let t={timeDirection:"right",timeBannerUTCOffsetInMinutes:0,eventsTicksVisualization:"start-and-end",showDurationLineForNonZeroDurationEntityEvents:!0,durationLineWidth:5,entityPositionAtDurationRatio:1,showNonZeroDurationIntervalBounds:!1,separateTimeOverlaps:!0,separateTimelineOverlaps:!0,moveFirstBends:!0,secondBendRatio:.3,lineSeparationMultiplier:1,spaceSeparatedLinesEvenly:!1,useBezierCurves:!1,separatedLineShapeRatio:0,...e?.toJSON(),eventsTicksVisualization:e?.eventsTicksVisualization??"start-and-end"};return{...t,timeDirection:{value:o[t.timeDirection]??o.right},eventsTicksVisualization:{value:l[t.eventsTicksVisualization]??l["start-and-end"]}}}function u(e,t,r,i,n,a){let o=r.length,l=n.length,p=Float64Array.BYTES_PER_ELEMENT,u=Uint32Array.BYTES_PER_ELEMENT,d=Uint8Array.BYTES_PER_ELEMENT,h=16+o*(d+2*p)+2*u*l,c=s._malloc(h);try{let d=c+16-c%16,h=d+o*p,y=h+o*p,m=y+l*u,f=m+l*u,g=()=>[s.HEAPF64.subarray(d>>3,(d>>3)+o),s.HEAPF64.subarray(h>>3,(h>>3)+o),s.HEAPU32.subarray(y>>2,(y>>2)+l),s.HEAPU32.subarray(m>>2,(m>>2)+l),s.HEAPU8.subarray(f,f+o)],[b,w,M,I,C]=g();b.set(r),w.set(i),M.set(n),I.set(a),C.set(t);let _=e(o,f,d,h,l,y,m),T=null,v=null;if(0===_.value){let e=s.getLayoutLinksTypes(),t=s.getLayoutLinksVerticesEndIndices(),r=s.getLayoutLinksVertices(),i=s.countLayoutLinksVertices();l&&(!e||!t)||i&&!r?_.value=1:(T={types:new Uint8Array(s.HEAPU8.subarray(e,e+l)),vertexEndIndex:new Uint32Array(s.HEAPU32.subarray(t>>2,(t>>2)+l)),vertices:new Float64Array(s.HEAPF64.subarray(r>>3,(r>>3)+2*i))},v=s.getAuxiliaryGraphicElements())}let[A,E,x,S,k]=g();return r.set(A),i.set(E),n.set(x),a.set(S),t.set(k),{status:_.value,links:T,graphics:v}}finally{s._free(c),s.cleanupLayout()}}var d,h,c,y,m,f,g,b;(h=d||={}).getMinIdealEdgeLength=function(){return s.getMinIdealEdgeLength()},h.apply=function(e,t,r,i,n,a,o=2,l=1,p=-1){return u((t,r,i,n,a,u,d)=>s.applyForceDirectedLayout(e,t,r,i,n,a,u,d,o,l,p),t,r,i,n,a)},function(e){e.apply=function(e,t,r,i,n,a,o=2,l=1,p=-1){return u((t,r,i,n,a,u,d)=>s.applyCommunityLayout(e,t,r,i,n,a,u,d,o,l,p),t,r,i,n,a)}}(c||={}),function(e){e.apply=function(e,t,r,i,n,a){return u((t,r,i,n,a,o,l)=>s.applySimpleLayout(e,t,r,i,n,a,o,l),t,r,i,n,a)}}(y||={}),function(e){e.apply=function(e,t,r,i,n,a){return u((t,r,i,n,a,o,l)=>s.applyHierarchicalLayout(e,t,r,i,n,a,o,l),t,r,i,n,a)}}(m||={}),function(e){e.apply=function(e,t,r,i,n,a){return u((t,r,i,n,a,o,l)=>s.applyRadialTreeLayout(e,t,r,i,n,a,o,l),t,r,i,n,a)}}(f||={}),function(e){e.apply=function(e,t,r,i,n,a){return u((t,r,i,n,a,o,l)=>s.applySmartTreeLayout(e,t,r,i,n,a,o,l),t,r,i,n,a)}}(g||={}),function(e){e.apply=function(e,t,r,i,n,a,o,l,d,h,c,y){return u((t,r,i,o,l,u,m)=>{if(n.length!==t||a.length!==t||d.length!==l||h.length!==l)return{value:1};let f=Float64Array.BYTES_PER_ELEMENT,g=s._malloc(16+t*f),b=s._malloc(16+t*f),w=s._malloc(16+l*f),M=s._malloc(16+l*f),I=g+16-g%16,C=b+16-b%16,_=w+16-w%16,T=M+16-M%16;try{return s.HEAPF64.subarray(I>>3,(I>>3)+t).set(n),s.HEAPF64.subarray(C>>3,(C>>3)+t).set(a),s.HEAPF64.subarray(_>>3,(_>>3)+l).set(d),s.HEAPF64.subarray(T>>3,(T>>3)+l).set(h),s.applyChronologicalLayout(e,t,r,i,o,I,C,l,u,m,_,T,c,p(y))}finally{s._free(g),s._free(b),s._free(w),s._free(M)}},t,r,i,o,l)}}(b||={})},69647(e,t,r){var i=r(66552);const n=(0,i.O)()({none:"none",startAndEnd:"start-and-end",startOnly:"start-only"}),s=(0,i.O)()({absoluteValue:"absolute-value",multiplier:"multiplier"}),a=new Map([["basic-grid","basic-grid"],["geographic-organic-standard","geographic-organic-standard"],["hierarchical-bottom-to-top","hierarchical-bottom-to-top"],["hierarchical-top-to-bottom","hierarchical-bottom-to-top"],["organic-community","organic-community"],["organic-fusiform","organic-standard"],["organic-leaf-circle","organic-standard"],["organic-standard","organic-standard"],["radial-node-centric","radial-root-centric"],["radial-root-centric","radial-root-centric"],["tree-bottom-to-top","tree-left-to-right"],["tree-left-to-right","tree-left-to-right"],["tree-right-to-left","tree-left-to-right"],["tree-top-to-bottom","tree-left-to-right"],["chronological-mono-timeline","chronological-mono-timeline"],["chronological-multi-timeline","chronological-multi-timeline"]]);r.d(t,["P_",0,a,"SJ",0,n,"lg",0,s])},54628(e,t,r){r.d(t,{lV:()=>s,zI:()=>n});var i=r(56507);async function n(e,t,r){if(!e||!t||!e.includes("/resources"))return!1;let n=t+"/resources",s=e.includes("/resources/")?e.split("/resources/")[1]:e;if(!s)return!1;let a=1;for(;-1!==a;){let e=(await(0,i.A)(n,{query:{f:"json",start:a,num:100}})).data,t=e?.resources??[];for(let e of t)if(e.resource===s)return"number"==typeof r&&e.created===r;if(null==e.nextStart||!t.length)break;a=e.nextStart}return!1}async function s(e,t){if(!e.length||!t)return new Map;let r=t+"/resources",n=1,s=new Map;for(;-1!==n;){let e=(await(0,i.A)(r,{query:{f:"json",start:n,num:100}})).data,t=e?.resources??[];for(let e of t)"number"==typeof e.created&&s.set(e.resource,e.created);if(null==e.nextStart||!t.length)break;n=e.nextStart}let a=new Map;for(let t of e){let e=t.includes("/resources/")?t.split("/resources/")[1]:t,r=s.get(e);null!=r&&a.set(t,r)}return a}r(49186),r(53966),r(17676),r(86738),r(8460)},25927(e,t,r){r.d(t,{A:()=>o});var i=r(32198),n=r(91429),s=r(86738),a=r(54238);let o=class extends a.A{constructor(e){super(e),this.layoutGeometry=null}};(0,i.Cg)([(0,n.MZ)({type:s.A,json:{write:!0}})],o.prototype,"layoutGeometry",void 0),o=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.Entity")],o)},54238(e,t,r){r.d(t,{A:()=>a});var i=r(32198),n=r(91429),s=r(77901);let a=class extends s.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.GraphNamedObject")],a)},77901(e,t,r){r.d(t,{A:()=>a});var i=r(32198),n=r(25482),s=r(91429);let a=class extends n.o{constructor(e){super(e),this.properties={}}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,i.Cg)([(0,s.$K)("esri.rest.knowledgeGraph.GraphObject")],a)},42538(e,t,r){r.d(t,{A:()=>l});var i=r(32198),n=r(91429),s=r(16930),a=r(69622);let o=class extends a.A{constructor(e){super(e),this.openCypherQuery=""}};(0,i.Cg)([(0,n.MZ)()],o.prototype,"openCypherQuery",void 0),o=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.GraphQuery")],o);let l=class extends o{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,i.Cg)([(0,n.MZ)()],l.prototype,"bindParameters",void 0),(0,i.Cg)([(0,n.MZ)()],l.prototype,"bindGeometryQuantizationParameters",void 0),(0,i.Cg)([(0,n.MZ)()],l.prototype,"outputQuantizationParameters",void 0),(0,i.Cg)([(0,n.MZ)({type:s.A})],l.prototype,"outputSpatialReference",void 0),(0,i.Cg)([(0,n.MZ)()],l.prototype,"provenanceBehavior",void 0),l=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.GraphQueryStreaming")],l)},40662(e,t,r){r.d(t,{A:()=>a});var i=r(32198),n=r(91429),s=r(77901);let a=class extends s.A{constructor(e){super(e)}};a=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.ObjectValue")],a)},42095(e,t,r){r.d(t,{A:()=>o});var i=r(32198),n=r(25482),s=r(91429),a=r(77901);let o=class extends n.o{constructor(e){super(e),this.path=[]}};(0,i.Cg)([(0,s.MZ)({type:[a.A],json:{write:!0}})],o.prototype,"path",void 0),o=(0,i.Cg)([(0,s.$K)("esri.rest.knowledgeGraph.Path")],o)},23150(e,t,r){r.d(t,{A:()=>o});var i=r(32198),n=r(91429),s=r(82799),a=r(54238);let o=class extends a.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],o.prototype,"originId",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],o.prototype,"destinationId",void 0),(0,i.Cg)([(0,n.MZ)({type:s.A,json:{write:!0}})],o.prototype,"layoutGeometry",void 0),o=(0,i.Cg)([(0,n.$K)("esri.rest.knowledgeGraph.Relationship")],o)},2272(e,t,r){r.d(t,{Dl:()=>p,gf:()=>d,jV:()=>l,lF:()=>u});var i=r(92602),n=r(70333),s=r(4718),a=r(84952),o=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function p(e){return"string"==typeof e?(0,a.An)(e):(0,s.o8)(e)}function u(e,t,r){let i={};for(let n in e){if("declaredClass"===n)continue;let s=e[n];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[n]=s.map(e=>u(e));else if("object"==typeof s)if(s.toJSON){let e=s.toJSON(r?.[n]);i[n]=t?e:JSON.stringify(e)}else i[n]=t?s:JSON.stringify(s);else i[n]=s}return i}async function d(e,t,s){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??n.id?.findCredential(e)?.token:null}(e,t)||(!n.id&&i.A.request.useIdentity&&await Promise.all([r.e(6361),r.e(7644),r.e(7715)]).then(()=>r(50148)),(await n.id.getCredential(e,s))?.token)}},62046(e,t,r){r.d(t,{Fe:()=>y,KU:()=>b,Nk:()=>p,X5:()=>s});var i=r(68197),n=r(93397);function s(e,t,r){if(!e)return;let i=(0,n.lW)(e),s=function(e){let t=(0,n.lW)(e);if("CIMTextSymbol"===t?.type)return t.height??0;let r=0;if(t?.symbolLayers)for(let e of t.symbolLayers)(0,n.MM)(e)&&null!=e.size&&e.size>r?r=e.size:(0,n.mA)(e)&&null!=e.width&&e.width>r?r=e.width:(0,n.jn)(e);return r}(e);0!==s?a(i,t/s,!1,r):function(e,t){if(e){if("CIMTextSymbol"===e.type)return void(e.height=t);if(e.symbolLayers)for(let r of e.symbolLayers)switch(r.type){case"CIMPictureMarker":case"CIMVectorMarker":r.size=t;break;case"CIMPictureStroke":case"CIMSolidStroke":case"CIMGradientStroke":r.width=t}}}(i,t)}function a(e,t,r,i){if(e){if("CIMTextSymbol"===e.type)return void(null!=e.height&&(e.height*=t));if(r&&e.effects)for(let r of e.effects)l(r,t);if(e.symbolLayers)for(let r of e.symbolLayers){switch(r.type){case"CIMPictureMarker":case"CIMVectorMarker":o(r,t,i);break;case"CIMPictureStroke":case"CIMSolidStroke":case"CIMGradientStroke":!i?.preserveOutlineWidth&&r.width&&(r.width*=t);break;case"CIMPictureFill":r.height&&(r.height*=t),r.offsetX&&(r.offsetX*=t),r.offsetY&&(r.offsetY*=t);break;case"CIMHatchFill":a(r.lineSymbol,t,!0,{...i,preserveOutlineWidth:!1}),r.offsetX&&(r.offsetX*=t),r.offsetY&&(r.offsetY*=t),r.separation&&(r.separation*=t)}if(r.effects)for(let e of r.effects)l(e,t)}}}function o(e,t,r){if(e&&(e.markerPlacement&&function(e,t){switch((0,n.zr)(e)&&e.offset&&(e.offset*=t),e.type){case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineSameSize":e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.placementTemplate&&e.placementTemplate.length&&(e.placementTemplate=e.placementTemplate.map(e=>e*t));break;case"CIMMarkerPlacementAlongLineVariableSize":e.maxRandomOffset&&(e.maxRandomOffset*=t),e.placementTemplate&&e.placementTemplate.length&&(e.placementTemplate=e.placementTemplate.map(e=>e*t));break;case"CIMMarkerPlacementOnLine":e.startPointOffset&&(e.startPointOffset*=t);break;case"CIMMarkerPlacementAtExtremities":e.offsetAlongLine&&(e.offsetAlongLine*=t);break;case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementOnVertices":break;case"CIMMarkerPlacementAtRatioPositions":e.beginPosition&&(e.beginPosition*=t),e.endPosition&&(e.endPosition*=t);break;case"CIMMarkerPlacementPolygonCenter":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case"CIMMarkerPlacementInsidePolygon":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.stepX&&(e.stepX*=t),e.stepY&&(e.stepY*=t)}}(e.markerPlacement,t),e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.anchorPoint&&"Absolute"===e.anchorPointUnits&&(e.anchorPoint={x:e.anchorPoint.x*t,y:e.anchorPoint.y*t}),e.size=null==e.size?0:e.size*t,"CIMVectorMarker"===e.type&&e.markerGraphics))for(let i of e.markerGraphics)e.scaleSymbolsProportionally||a(i.symbol,t,!0,r)}function l(e,t){if(!(0,n.Kq)(e))switch(e.type){case"CIMGeometricEffectArrow":case"CIMGeometricEffectDonut":e.width&&(e.width*=t);break;case"CIMGeometricEffectBuffer":e.size&&(e.size*=t);break;case"CIMGeometricEffectCut":e.beginCut&&(e.beginCut*=t),e.endCut&&(e.endCut*=t),e.middleCut&&(e.middleCut*=t);break;case"CIMGeometricEffectDashes":e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.dashTemplate&&e.dashTemplate.length&&(e.dashTemplate=e.dashTemplate.map(e=>e*t));break;case"CIMGeometricEffectExtension":case"CIMGeometricEffectJog":case"CIMGeometricEffectRadial":e.length&&(e.length*=t);break;case"CIMGeometricEffectMove":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":e.offset&&(e.offset*=t);break;case"CIMGeometricEffectRegularPolygon":e.radius&&(e.radius*=t);break;case"CIMGeometricEffectTaperedPolygon":e.fromWidth&&(e.fromWidth*=t),e.length&&(e.length*=t),e.toWidth&&(e.toWidth*=t);break;case"CIMGeometricEffectWave":e.amplitude&&(e.amplitude*=t),e.period&&(e.period*=t)}}function p(e){let t=[];return u((0,n.lW)(e),t),t.length?new i.A((0,n.e6)(t[0])):null}function u(e,t){if(!e)return;let r;r="CIMTextSymbol"===e.type?e.symbol:e;let i="CIMPolygonSymbol"===e.type;if(r?.symbolLayers)for(let e of r.symbolLayers)if(!(e.colorLocked||i&&((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&d(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{u(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":d(t,e.color);break;case"CIMGradientFill":h(t,e);break;case"CIMHatchFill":u(e.lineSymbol,t)}}function d(e,t){for(let r of e)if(r.join(".")===t.join("."))return;e.push(t)}function h(e,t){switch(t.colorRamp?.type){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&c(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":c(e,t.colorRamp)}}function c(e,t){t&&(t.fromColor&&d(e,t.fromColor),t.toColor&&d(e,t.toColor))}function y(e,t,r){t instanceof i.A||(t=new i.A(t));let s=(0,n.lW)(e);s&&m(s,t,r)}function m(e,t,r){if(!e)return;let i;i="CIMTextSymbol"===e.type?e.symbol:e;let s="CIMPolygonSymbol"===i?.type;if(i?.symbolLayers)for(let e of i.symbolLayers){if(e.colorLocked)continue;if(s)if(r){let{layersToColor:t}=r;if(((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))&&"fill"===t||(0,n.jn)(e)&&"outline"===t)continue}else if((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))continue;let i=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=i;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{m(e.symbol,t,r)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=i;break;case"CIMGradientFill":f(e,t);break;case"CIMHatchFill":m(e.lineSymbol,t,r)}}}function f(e,t){switch(e.colorRamp?.type){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&g(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":g(e.colorRamp,t)}}function g(e,t){if(e&&(e.fromColor&&=t.toArray(),e.toColor)){let r=t.clone();r.a=0,e.toColor=r.toArray()}}function b(e,t,r=!1){let i=(0,n.lW)(e);if(r&&(t=360-t),"CIMTextSymbol"!==i?.type){if("CIMPointSymbol"===i?.type&&i.symbolLayers){let e=t-(i.angle||0);for(let t of i.symbolLayers)if((0,n.MM)(t)){let r=t.rotation||0;t.rotateClockwise?r-=e:r+=e,t.rotation=r}i.angle=t}}else i.angle=t}},37531(e,t,r){r.d(t,{dt:()=>h,GG:()=>g,UQ:()=>f,Sx:()=>u});var i=r(68197),n=r(60999),s=(r(90629),r(51850)),a=(r(76369),r(62046)),o=(r(2741),r(56507),r(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new o.q(1e3),new i.A([128,128,128]);var l=r(28975),p=r(33910);function u(e,t){if(!e)return null;let r=null;return(0,p.wk)(e)?r=function(e){let t=e.symbolLayers;if(!t)return null;let r=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(r="water"===e.type?e.color:e.material?e.material.color:null)}),r?new i.A(r):null}(e):(0,p.$y)(e)&&(r="cim"===e.type?(0,a.Nk)(e):e.color?new i.A(e.color):null),r?d(r,t):null}function d(e,t){if(null==t||null==e)return e;let r=e.toRgba();return r[3]*=t,new i.A(r)}function h(e,t,r){e&&(t||null!=r)&&(t&&=new i.A(t),(0,p.wk)(e)?function(e,t,r){let n=e.symbolLayers;if(!n)return;let s=(e,n=!1)=>{let s=t??e??null;return null!=r?.override&&(!s&&n&&(s=new i.A([255,255,255])),s&&(s.a=r.override)),d(s,r?.add)};n.forEach(e=>{if("water"===e.type)return void(e.color=d(e.color,r?.add));let t=null==e.material?null:e.material.color,i=s(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new l.A({color:i}):e.material.color=i,"outline"in e&&e.outline?.color&&null!=r?.add&&(e.outline.color=d(e.outline.color,r.add)),"marker"in e&&null!=e.marker&&(e.marker.color=s(e.marker.color))})}(e,t,r):(0,p.$y)(e)&&function(e,t,r){t??=e.color,null!=r?.override&&t&&(t.a=r.override),t&&(e.color=d(t,r?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=d(e.outline.color,r?.add))}(e,t,r))}function c(e){for(let t of e)if("number"==typeof t)return t;return null}function y(e,t,r){for(let i=0;i<3;i++){let n=e[i];switch(n){case"symbol-value":{let e=r[i];return null==e?1:e/t[i]}case"proportional":break;default:if(null!=n&&t[i])return n/t[i]}}return null}function m(e,t,r,i){switch(e){case"proportional":return r*i;case"symbol-value":return t??r;default:return e}}async function f(e,t){if(e&&t){if((0,p.wk)(e))return async function(e,t){let i=e.symbolLayers;i&&await(0,n.jJ)(i,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){let r=t[2];"number"==typeof r&&(e.size=r)}(e,t);break;case"icon":case"line":case"text":!function(e,t){let r=c(t);null!=r&&(e.size=r)}(e,t);break;case"path":!function(e,t){let r=y(t,s.Un,[e.width,void 0,e.height]);null!=r&&(e.width=m(t[0],e.width,1,r),e.height=m(t[2],e.height,1,r))}(e,t);break;case"object":await async function(e,t){let{resourceSize:i,symbolSize:n}=await async function(e){let{computeObjectLayerResourceSize:t}=await r.e(5404).then(()=>r(95404)),i=await t(e,10),{width:n,height:s,depth:a}=e,o=[n,a,s],l=1;for(let e=0;e<3;e++){let t=o[e];if(null!=t){l=t/i[e];break}}for(let e=0;e<3;e++)o[e]??(o[e]=i[e]*l);return{resourceSize:i,symbolSize:o}}(e),s=y(t,i,n);null!=s&&(e.width=m(t[0],n[0],i[0],s),e.depth=m(t[1],n[1],i[1],s),e.height=m(t[2],n[2],i[2],s))}(e,t)}}(e,t))}(e,t);(0,p.$y)(e)&&function(e,t){let r=c(t);if(null!=r)switch(e.type){case"simple-marker":e.size=r;break;case"picture-marker":{let t=e.width/e.height;t>1?(e.width=r,e.height=r*t):(e.width=r*t,e.height=r);break}case"simple-line":e.width=r;break;case"text":e.font.size=r;break;case"simple-fill":case"picture-fill":break;case"cim":(0,a.X5)(e,r,{preserveOutlineWidth:!1})}}(e,t)}}function g(e,t,r){if(e&&null!=t)if((0,p.wk)(e)){let i=e.symbolLayers;i&&i.forEach(e=>{if("object"===e.type)switch(r){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if((0,p.$y)(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":(0,a.KU)(e,t,!0)}}}}]);
|