@arcgis/core 4.25.0-next.20220818 → 4.25.0-next.20220821
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/LengthDimension.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0b1d39dc063c4c3385e2.js +1 -0
- package/assets/esri/core/workers/chunks/{59a04f1640cd2b710028.js → 0c625803648e554f1fcf.js} +1 -1
- package/assets/esri/core/workers/chunks/{50985ec72b9e4557d371.js → 0f1fae79b5311d55c0da.js} +1 -1
- package/assets/esri/core/workers/chunks/1a360d839c4eb83aaa02.js +1 -0
- package/assets/esri/core/workers/chunks/3381b5454cd530cf940a.js +1 -0
- package/assets/esri/core/workers/chunks/3900c702242358c5d00e.js +1 -0
- package/assets/esri/core/workers/chunks/43f84cb852c9ab5e742f.js +1 -0
- package/assets/esri/core/workers/chunks/4637bfd3deff50b03f2e.js +1 -0
- package/assets/esri/core/workers/chunks/4d5bdf18feeb9c8cb6ff.js +1 -0
- package/assets/esri/core/workers/chunks/5c2574365af4a484cd4b.js +1 -0
- package/assets/esri/core/workers/chunks/70179a003b5e52a99e10.js +1 -0
- package/assets/esri/core/workers/chunks/77a38124ef155a1b0f3e.js +1 -0
- package/assets/esri/core/workers/chunks/{ab0ce16ced3532f0e429.js → 81418b47acb4ef68daf7.js} +1 -1
- package/assets/esri/core/workers/chunks/88b5ce63c4706d0954dc.js +1 -0
- package/assets/esri/core/workers/chunks/{064a4baa576964efa238.js → 9809878b87595ac77dc4.js} +1 -1
- package/assets/esri/core/workers/chunks/9dbe94a70624a5592690.js +1 -0
- package/assets/esri/core/workers/chunks/{d013daa46de022f0db4d.js → a0750175b499a89fd07d.js} +1 -1
- package/assets/esri/core/workers/chunks/be4a8a4b2804188817b3.js +1 -0
- package/assets/esri/core/workers/chunks/da13db62d54cbca350c3.js +1 -0
- package/assets/esri/core/workers/chunks/e472e4f4a2f046846258.js +1 -0
- package/assets/esri/core/workers/chunks/f351cccf879ba295acbc.js +1 -0
- package/chunks/boundedPlane.js +1 -1
- package/chunks/pe.js +1 -1
- package/core/Identifiable.js +1 -1
- package/geometry/Circle.js +1 -1
- package/geometry/Extent.js +1 -1
- package/geometry/Mesh.js +1 -1
- package/geometry/Multipoint.js +1 -1
- package/geometry/Point.js +1 -1
- package/geometry/geometryEngine.js +1 -1
- package/geometry/geometryEngineAsync.js +1 -1
- package/geometry/projection.js +1 -1
- package/geometry/support/aaBoundingBox.js +1 -1
- package/geometry/support/boundsUtils.js +1 -1
- package/geometry/support/centroid.js +1 -1
- package/geometry/support/cut.js +1 -1
- package/geometry/support/extentUtils.js +1 -1
- package/geometry/support/geodesicUtils.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/geometry/support/meshUtils/primitives.js +1 -1
- package/geometry/support/quantizationUtils.js +1 -1
- package/interfaces.d.ts +60 -84
- package/layers/DimensionLayer.js +1 -1
- package/layers/support/ExportImageServiceParameters.js +1 -1
- package/layers/support/imageryRendererUtils.js +1 -1
- package/package.json +1 -1
- package/renderers/support/rasterRendererHelper.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMResourceManager.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/quantizeTime.js +5 -0
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/engine/webgl/animatedFormats/AnimatableTextureResource.js +5 -0
- package/views/2d/engine/webgl/animatedFormats/apng.js +1 -1
- package/views/2d/engine/webgl/animatedFormats/gif.js +1 -1
- package/views/2d/engine/webgl/animatedFormats/utils.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionComputation.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionVisualization.js +1 -1
- package/views/3d/analysis/Dimensioning/lengthDimensionUtils.js +1 -1
- package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
- package/views/3d/analysis/support/measurementUtils.js +1 -1
- package/views/3d/terrain/PlanarPatch.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/interfaces.js +1 -1
- package/views/support/geodesicLengthMeasurementUtils.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/229bfbf3faa789f40b7e.js +0 -1
- package/assets/esri/core/workers/chunks/2e715520e5badbe570ac.js +0 -1
- package/assets/esri/core/workers/chunks/40098b3be512ad8461f8.js +0 -1
- package/assets/esri/core/workers/chunks/420ae87ba8dc74fd05f5.js +0 -1
- package/assets/esri/core/workers/chunks/46c836fc575251f1ff34.js +0 -1
- package/assets/esri/core/workers/chunks/481532ce4871b0d94587.js +0 -1
- package/assets/esri/core/workers/chunks/5fa78a6745ef14c7c4d1.js +0 -1
- package/assets/esri/core/workers/chunks/606f45a93c707054c521.js +0 -1
- package/assets/esri/core/workers/chunks/78e59b29e59b10f64aa9.js +0 -1
- package/assets/esri/core/workers/chunks/7be7c53727cb1bc73a64.js +0 -1
- package/assets/esri/core/workers/chunks/8d3fba983c360e1fdabf.js +0 -1
- package/assets/esri/core/workers/chunks/a69d194526bdc489b30b.js +0 -1
- package/assets/esri/core/workers/chunks/b59855826d235cba0889.js +0 -1
- package/assets/esri/core/workers/chunks/bff5812e3797c8e42ac0.js +0 -1
- package/assets/esri/core/workers/chunks/d6e177749bde46ab57fc.js +0 -1
- package/assets/esri/core/workers/chunks/d9c8a8bed6b34ed57faf.js +0 -1
- package/views/2d/engine/webgl/animatedFormats/BaseAnimatableTextureResource.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6199],{10699:(e,t,r)=>{r.d(t,{IG:()=>o});var s=r(43697),i=r(52011);let l=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),this.uid=null,Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+l++})}};return t=(0,s._)([(0,i.j)("esri.core.Identifiable")],t),t};let n=class extends(o(class{})){};n=(0,s._)([(0,i.j)("esri.core.Identifiable")],n)},16453:(e,t,r)=>{r.d(t,{R:()=>b,w:()=>w});var s=r(43697),i=r(15923),l=r(70586),o=r(41103),n=r(22974),a=r(31263);class p{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new p,r=this._originStores[a.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,n.d9)(e),a.s3.DEFAULTS)}));for(let r=a.s3.SERVICE;r<a.kk;r++){const s=this._originStores[r];s&&s.forEach(((s,i)=>{e&&e.has(i)||t.set(i,(0,n.d9)(s),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=a.s3.USER){let s=this._originStores[r];if(s||(s=new Map,this._originStores[r]=s),s.set(e,t),!this._values.has(e)||(0,l.j0)(this._propertyOriginMap.get(e))<=r){const s=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),s!==t}return!1}delete(e,t=a.s3.USER){const r=this._originStores[t];if(!r)return;const s=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return s}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],s=r&&r.get(e),i=this._values.get(e);return this._values.set(e,s),this._propertyOriginMap.set(e,t),i!==s}originOf(e){return this._propertyOriginMap.get(e)||a.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var u=r(50549),c=r(1153),h=r(52011);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,l.j0)((0,c.vw)(this)),r=t.store,s=new p;t.store=s,(0,o.M)(t,r,s)}read(e,t){(0,u.i)(this,e,t)}getAtOrigin(e,t){const r=y(this),s=(0,a.M9)(t);if("string"==typeof e)return r.get(e,s);const i={};return e.forEach((e=>{i[e]=r.get(e,s)})),i}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return y(this).originOf(e)}revert(e,t){const r=y(this),s=(0,a.M9)(t),i=(0,c.vw)(this);let l;l="string"==typeof e?"*"===e?r.keys(s):[e]:e,l.forEach((e=>{i.invalidate(e),r.revert(e,s),i.commit(e)}))}};return t=(0,s._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function y(e){return(0,c.vw)(e).store}let f=class extends(d(i.Z)){};f=(0,s._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],f);var v=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return m(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,v.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,c.vw)(this).setAtOrigin(e,t,(0,a.M9)(r))}removeOrigin(e){const t=m(this),r=(0,a.M9)(e),s=t.keys(r);for(const e of s)t.originOf(e)===r&&t.set(e,t.get(e,r),a.s3.USER)}updateOrigin(e,t){const r=m(this),s=(0,a.M9)(t),i=this.get(e);for(let t=s+1;t<a.kk;++t)r.delete(e,t);r.set(e,i,s)}toJSON(e){return this.write({},e)}};return t=(0,s._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function m(e){return(0,c.vw)(e).store}const b=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,s._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],t),t};let w=class extends(b(i.Z)){};w=(0,s._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],w)},87085:(e,t,r)=>{r.d(t,{Z:()=>b});var s=r(43697),i=(r(66577),r(3172)),l=r(20102),o=r(32448),n=r(10699),a=r(83379),p=r(92604),u=r(95330),c=r(17452),h=r(5600),d=(r(67676),r(80442),r(75215),r(52011)),y=r(68773),f=r(6570),v=r(82971);let g=0,m=class extends(o.Z.EventedMixin((0,n.IG)(a.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,v.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=v.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},s=await Promise.all([r.e(4547),r.e(8008)]).then(r.bind(r,28008));try{return await s.fromItem(t)}catch(e){const r=t&&t.portalItem,s=r&&r.id||"unset",i=r&&r.portal&&r.portal.url||y.Z.portalUrl;throw p.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+s+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,u.D_)(e)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,c.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new l.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,s._)([(0,h.Cb)({type:String})],m.prototype,"attributionDataUrl",void 0),(0,s._)([(0,h.Cb)({type:f.Z})],m.prototype,"fullExtent",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],m.prototype,"hasAttributionData",null),(0,s._)([(0,h.Cb)({type:String,clonable:!1})],m.prototype,"id",void 0),(0,s._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],m.prototype,"legendEnabled",void 0),(0,s._)([(0,h.Cb)({type:["show","hide","hide-children"]})],m.prototype,"listMode",void 0),(0,s._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],m.prototype,"opacity",void 0),(0,s._)([(0,h.Cb)({clonable:!1})],m.prototype,"parent",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],m.prototype,"parsedUrl",null),(0,s._)([(0,h.Cb)({type:Boolean})],m.prototype,"popupEnabled",void 0),(0,s._)([(0,h.Cb)({type:Boolean})],m.prototype,"attributionVisible",void 0),(0,s._)([(0,h.Cb)({type:v.Z})],m.prototype,"spatialReference",void 0),(0,s._)([(0,h.Cb)({type:String})],m.prototype,"title",void 0),(0,s._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],m.prototype,"type",void 0),(0,s._)([(0,h.Cb)()],m.prototype,"url",void 0),(0,s._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],m.prototype,"visible",void 0),m=(0,s._)([(0,d.j)("esri.layers.Layer")],m);const b=m},16199:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Z});var s=r(43697),i=(r(66577),r(3172)),l=r(20102),o=r(16453),n=r(19153),a=r(17452),p=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),h=r(30556),d=r(87085),y=r(71612),f=r(38009),v=r(16859),g=r(34760),m=r(72965),b=r(39450),w=r(11145),_=r(5833),S=r(6570),C=r(82971),O=r(94139);let I=class extends((0,y.h)((0,g.Q)((0,m.M)((0,f.q)((0,v.I)((0,o.R)(d.Z))))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new S.Z(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,C.Z.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=C.Z.WebMercator,this.subDomains=null,this.tileInfo=new w.Z({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new O.Z({x:-20037508.342787,y:20037508.342787,spatialReference:C.Z.WebMercator}),spatialReference:C.Z.WebMercator,lods:[new b.Z({level:0,scale:591657527.591555,resolution:156543.033928}),new b.Z({level:1,scale:295828763.795777,resolution:78271.5169639999}),new b.Z({level:2,scale:147914381.897889,resolution:39135.7584820001}),new b.Z({level:3,scale:73957190.948944,resolution:19567.8792409999}),new b.Z({level:4,scale:36978595.474472,resolution:9783.93962049996}),new b.Z({level:5,scale:18489297.737236,resolution:4891.96981024998}),new b.Z({level:6,scale:9244648.868618,resolution:2445.98490512499}),new b.Z({level:7,scale:4622324.434309,resolution:1222.99245256249}),new b.Z({level:8,scale:2311162.217155,resolution:611.49622628138}),new b.Z({level:9,scale:1155581.108577,resolution:305.748113140558}),new b.Z({level:10,scale:577790.554289,resolution:152.874056570411}),new b.Z({level:11,scale:288895.277144,resolution:76.4370282850732}),new b.Z({level:12,scale:144447.638572,resolution:38.2185141425366}),new b.Z({level:13,scale:72223.819286,resolution:19.1092570712683}),new b.Z({level:14,scale:36111.909643,resolution:9.55462853563415}),new b.Z({level:15,scale:18055.954822,resolution:4.77731426794937}),new b.Z({level:16,scale:9027.977411,resolution:2.38865713397468}),new b.Z({level:17,scale:4513.988705,resolution:1.19432856685505}),new b.Z({level:18,scale:2256.994353,resolution:.597164283559817}),new b.Z({level:19,scale:1128.497176,resolution:.298582141647617}),new b.Z({level:20,scale:564.248588,resolution:.14929107082380833}),new b.Z({level:21,scale:282.124294,resolution:.07464553541190416}),new b.Z({level:22,scale:141.062147,resolution:.03732276770595208}),new b.Z({level:23,scale:70.5310735,resolution:.01866138385297604})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{urlTemplate:e,...t}:e}load(e){const t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then((()=>{let e="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){const t=new a.R9(this.urlTemplate);!(this.subDomains&&this.subDomains.length>0)&&t.authority.includes("{subDomain}")&&(e="is missing 'subDomains' property")}else e="spatialReference must match tileInfo.spatialReference";else e="is missing the required 'urlTemplate' property value";if(e)throw new l.Z("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${e}`)}));return this.addResolvingPromise(t),Promise.resolve(this)}get levelValues(){const e=[];if(!this.tileInfo)return null;for(const t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}readSpatialReference(e,t){return e||t.fullExtent&&t.fullExtent.spatialReference&&C.Z.fromJSON(t.fullExtent.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;const e=[],{urlTemplate:t,subDomains:r}=this,s=new a.R9(t),i=s.scheme?s.scheme+"://":"//",l=i+s.authority+"/";if(s.authority.includes("{subDomain}")){if(r&&r.length>0&&s.authority.split(".").length>1)for(const t of r)e.push(i+s.authority.replace(/\{subDomain\}/gi,t)+"/")}else e.push(l);return e.map((e=>("/"!==e.charAt(e.length-1)&&(e+="/"),e)))}get urlPath(){if(!this.urlTemplate)return null;const e=this.urlTemplate,t=new a.R9(e),r=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.substring(r.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){e&&(0,a.oC)(e)&&(e="https:"+e),e&&(e=e.replace(/\{z\}/gi,"{level}").replace(/\{x\}/gi,"{col}").replace(/\{y\}/gi,"{row}"),e=(0,a.Fv)(e)),t.templateUrl=e}fetchTile(e,t,r,s={}){const{signal:l}=s,o=this.getTileUrl(e,t,r),n={responseType:"image",signal:l,query:{...this.refreshParameters}};return(0,i.default)(o,n).then((e=>e.data))}getTileUrl(e,t,r){const s=this.levelValues[e];return this.tileServers[t%this.tileServers.length]+(0,n.gx)(this.urlPath,{level:s,z:s,col:r,x:r,row:t,y:t})}};(0,s._)([(0,p.Cb)({type:String,value:"",json:{write:!0}})],I.prototype,"copyright",void 0),(0,s._)([(0,p.Cb)({type:S.Z,json:{write:!0},nonNullable:!0})],I.prototype,"fullExtent",void 0),(0,s._)([(0,p.Cb)({readOnly:!0,json:{read:!1,write:!1}})],I.prototype,"legendEnabled",void 0),(0,s._)([(0,p.Cb)({type:["show","hide"]})],I.prototype,"listMode",void 0),(0,s._)([(0,p.Cb)({json:{read:!0,write:!0}})],I.prototype,"blendMode",void 0),(0,s._)([(0,p.Cb)()],I.prototype,"levelValues",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],I.prototype,"isReference",void 0),(0,s._)([(0,p.Cb)({type:["WebTiledLayer"],value:"WebTiledLayer"})],I.prototype,"operationalLayerType",void 0),(0,s._)([(0,p.Cb)({readOnly:!0,json:{read:!1,write:!1}})],I.prototype,"popupEnabled",void 0),(0,s._)([(0,p.Cb)({type:C.Z})],I.prototype,"spatialReference",void 0),(0,s._)([(0,u.r)("spatialReference",["spatialReference","fullExtent.spatialReference"])],I.prototype,"readSpatialReference",null),(0,s._)([(0,p.Cb)({type:[String],json:{write:!0}})],I.prototype,"subDomains",void 0),(0,s._)([(0,p.Cb)({type:w.Z,json:{write:!0}})],I.prototype,"tileInfo",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],I.prototype,"tileServers",null),(0,s._)([(0,p.Cb)({json:{read:!1}})],I.prototype,"type",void 0),(0,s._)([(0,p.Cb)()],I.prototype,"urlPath",null),(0,s._)([(0,p.Cb)({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],I.prototype,"urlTemplate",void 0),(0,s._)([(0,u.r)("urlTemplate",["urlTemplate","templateUrl"])],I.prototype,"readUrlTemplate",null),(0,s._)([(0,h.c)("urlTemplate",{templateUrl:{type:String}})],I.prototype,"writeUrlTemplate",null),(0,s._)([(0,p.Cb)({type:_.B,json:{write:!0}})],I.prototype,"wmtsInfo",void 0),I=(0,s._)([(0,c.j)("esri.layers.WebTileLayer")],I);const Z=I},16859:(e,t,r)=>{r.d(t,{I:()=>b});var s=r(43697),i=r(40330),l=r(3172),o=r(66643),n=r(20102),a=r(92604),p=r(70586),u=r(95330),c=r(17452),h=r(5600),d=(r(67676),r(80442),r(75215),r(71715)),y=r(52011),f=r(30556),v=r(65587),g=r(15235),m=r(86082);const b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){this.portalItem?.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const s=await r.e(8062).then(r.bind(r,18062));return(0,u.k_)(t),await s.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,u.D_)(e)||a.Z.getLogger(this.declaredClass).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,u.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?i.id?.findCredential(this.url):null;if(!t)return!0;const r=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=r,(0,p.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=i.id.findServerInfo(this.url);if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,n=v.Z.getDefault();if(n&&n.loaded&&(0,c.Fv)(n.restUrl)===(0,c.Fv)(s))return n.user;const a=`${s}/community/self`,u=(0,p.pC)(e)?e.signal:null,h=await(0,o.q6)((0,l.default)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?m.default.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,s=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||v.Z.getDefault());return r&&s&&!(0,c.tm)(s.restUrl,r.restUrl)?(t.messages&&t.messages.push(new n.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,s._)([(0,h.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,s._)([(0,d.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,s._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,s._)([(0,h.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,s._)([(0,y.j)("esri.layers.mixins.PortalLayer")],t),t},w={credential:null,user:null}},34760:(e,t,r)=>{r.d(t,{Q:()=>g});var s=r(43697),i=r(92604),l=r(95330),o=r(5600),n=(r(67676),r(80442),r(75215),r(52011)),a=r(46791),p=(r(20102),r(26258),r(87538));const u=new a.Z,c=new WeakMap;function h(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function d(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:d(t,e%t):0}let y=0,f=0;function v(){const e=Date.now();for(const t of u)t.refreshInterval&&e-(c.get(t)??0)+5>=6e4*t.refreshInterval&&(c.set(t,e),t.refresh(e))}(0,p.EH)((()=>{const e=Date.now();let t=0;for(const r of u)t=d(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?c.get(r)||c.set(r,e):c.delete(r);if(t!==f){if(f=t,clearInterval(y),0===f)return void(y=0);y=setInterval(v,f)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,l.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{!function(e){h(e)&&u.push(e)}(this)}),(()=>{}))}destroy(){var e;h(e=this)&&u.includes(e)&&u.remove(e)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,l.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{i.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,s._)([(0,o.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,s._)([(0,o.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,s._)([(0,o.Cb)()],t.prototype,"refreshParameters",null),t=(0,s._)([(0,n.j)("esri.layers.mixins.RefreshableLayer")],t),t}},39450:(e,t,r)=>{r.d(t,{Z:()=>u});var s,i=r(43697),l=r(96674),o=r(5600),n=(r(67676),r(80442),r(75215)),a=r(52011);let p=s=class extends l.wq{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new s({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,i._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],p.prototype,"cols",void 0),(0,i._)([(0,o.Cb)({type:n.z8,json:{write:!0}})],p.prototype,"level",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"levelValue",void 0),(0,i._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],p.prototype,"origin",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{write:!0}})],p.prototype,"resolution",void 0),(0,i._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],p.prototype,"rows",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{write:!0}})],p.prototype,"scale",void 0),p=s=(0,i._)([(0,a.j)("esri.layers.support.LOD")],p);const u=p},11145:(e,t,r)=>{r.d(t,{Z:()=>I});var s,i=r(43697),l=r(35454),o=r(96674),n=r(70586),a=r(67900),p=r(5600),u=(r(67676),r(80442),r(75215)),c=r(71715),h=r(52011),d=r(30556),y=r(94139),f=r(82971),v=r(24470),g=r(8744),m=r(40488),b=r(39450),w=r(43077);const _=new l.X({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let S=s=class extends o.wq{constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.minScale=0,this.maxScale=0,this.size=null,this.spatialReference=null}static create(e={}){const{resolutionFactor:t=1,scales:r,size:i=256,spatialReference:l=f.Z.WebMercator,numLODs:o=24}=e;if(!(0,g.JY)(l)){const e=[];if(r)for(let t=0;t<r.length;t++){const s=r[t];e.push({level:t,scale:s,resolution:s})}else{let t=5e-4;for(let r=o-1;r>=0;r--)e.unshift({level:r,scale:t,resolution:t}),t*=2}return new s({dpi:96,lods:e,origin:new y.Z(0,0,l),size:[i,i],spatialReference:l})}const n=(0,g.C5)(l),p=e.origin?new y.Z({x:e.origin.x,y:e.origin.y,spatialReference:l}):new y.Z(n?{x:n.origin[0],y:n.origin[1],spatialReference:l}:{x:0,y:0,spatialReference:l}),u=1/(39.37*(0,a.c9)(l)*96),c=[];if(r)for(let e=0;e<r.length;e++){const t=r[e],s=t*u;c.push({level:e,scale:t,resolution:s})}else{let e=(0,g.sT)(l)?512/i*591657527.5917094:256/i*591657527.591555;const r=Math.ceil(o/t);c.push({level:0,scale:e,resolution:e*u});for(let s=1;s<r;s++){const r=e/2**t,i=r*u;c.push({level:s,scale:r,resolution:i}),e=r}}return new s({dpi:96,lods:c,origin:p,size:[i,i],spatialReference:l})}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const r=(0,g.C5)(e);return e.isWrappable&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return y.Z.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0;const s=[];this._levelToLOD={},e&&(t=-1/0,r=1/0,e.forEach((e=>{s.push(e.scale),t=e.scale>t?e.scale:t,r=e.scale<r?e.scale:r,this._levelToLOD[e.level]=e}))),this._set("scales",s),this._set("minScale",t),this._set("maxScale",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const r=Math.floor(e),s=r+1;return t[r]/(t[r]/t[s])**(e-r)}scaleToZoom(e){const t=this.scales,r=t.length-1;let s=0;for(;s<r;s++){const r=t[s],i=t[s+1];if(r<=e)return s;if(i===e)return s+1;if(r>e&&i<e)return s+Math.log(r/e)/Math.log(r/i)}return s}snapScale(e,t=.95){const r=this.scaleToZoom(e);return r%Math.floor(r)>=t?this.zoomToScale(Math.ceil(r)):this.zoomToScale(Math.floor(r))}tileAt(e,t,r,s){const i=this.lodAt(e);if(!i)return null;let l,o;if("number"==typeof t)l=t,o=r;else if((0,g.fS)(t.spatialReference,this.spatialReference))l=t.x,o=t.y,s=r;else{const e=(0,m.iV)(t,this.spatialReference);if((0,n.Wi)(e))return null;l=e.x,o=e.y,s=r}const a=i.resolution*this.size[0],p=i.resolution*this.size[1];return s||(s=new w.f(null,0,0,0,(0,v.Ue)())),s.level=e,s.row=Math.floor((this.origin.y-o)/p+.001),s.col=Math.floor((l-this.origin.x)/a+.001),this.updateTileInfo(s),s}updateTileInfo(e,t=s.ExtrapolateOptions.NONE){let r=this.lodAt(e.level);if(!r&&t===s.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(r=t)}if(!r)return;const i=e.level-r.level,l=r.resolution*this.size[0]/2**i,o=r.resolution*this.size[1]/2**i;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,v.Ue)()),e.extent[0]=this.origin.x+e.col*l,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+l,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const{resolution:r}=this.lodAt(t.level),s=r*this.size[0],i=r*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*i,e[2]=e[0]+s,e[3]=e[1]+i,e}lodAt(e){return this._levelToLOD&&this._levelToLOD[e]||null}clone(){return s.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(256===this.size[0]&&256===this.size[1])return 256===e?this:null;const r=[],i=this.lods.length;for(let e=0;e<i;e++){const s=this.lods[e],i=s.resolution*t;r.push(new b.Z({level:s.level,scale:s.scale,resolution:i}))}return new s({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){const s=e[r];this._upsampleLevels[s.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/s.resolution:0},t=s}}};var C,O;(0,i._)([(0,p.Cb)({type:Number,json:{write:!0}})],S.prototype,"compressionQuality",void 0),(0,i._)([(0,p.Cb)({type:Number,json:{write:!0}})],S.prototype,"dpi",void 0),(0,i._)([(0,p.Cb)({type:String,json:{read:_.read,write:_.write,origins:{"web-scene":{read:!1,write:!1}}}})],S.prototype,"format",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],S.prototype,"isWrappable",null),(0,i._)([(0,p.Cb)({type:y.Z,json:{write:!0}})],S.prototype,"origin",void 0),(0,i._)([(0,c.r)("origin")],S.prototype,"readOrigin",null),(0,i._)([(0,p.Cb)({type:[b.Z],value:null,json:{write:!0}})],S.prototype,"lods",null),(0,i._)([(0,p.Cb)({readOnly:!0})],S.prototype,"minScale",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],S.prototype,"maxScale",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],S.prototype,"scales",void 0),(0,i._)([(0,p.Cb)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],S.prototype,"size",void 0),(0,i._)([(0,c.r)("size",["rows","cols"])],S.prototype,"readSize",null),(0,i._)([(0,d.c)("size",{cols:{type:u.z8},rows:{type:u.z8}})],S.prototype,"writeSize",null),(0,i._)([(0,p.Cb)({type:f.Z,json:{write:!0}})],S.prototype,"spatialReference",void 0),S=s=(0,i._)([(0,h.j)("esri.layers.support.TileInfo")],S),C=S||(S={}),(O=C.ExtrapolateOptions||(C.ExtrapolateOptions={}))[O.NONE=0]="NONE",O[O.POWER_OF_TWO=1]="POWER_OF_TWO";const I=S},43077:(e,t,r)=>{r.d(t,{f:()=>s});class s{constructor(e,t,r,s,i){this.id=e,this.level=t,this.row=r,this.col=s,this.extent=i}}},5833:(e,t,r)=>{r.d(t,{B:()=>p});var s,i=r(43697),l=r(96674),o=r(22974),n=r(5600),a=(r(75215),r(52011));let p=s=class extends l.wq{constructor(e){super(e)}clone(){return new s({customLayerParameters:(0,o.d9)(this.customLayerParameters),customParameters:(0,o.d9)(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};(0,i._)([(0,n.Cb)({json:{type:Object,write:!0}})],p.prototype,"customLayerParameters",void 0),(0,i._)([(0,n.Cb)({json:{type:Object,write:!0}})],p.prototype,"customParameters",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"layerIdentifier",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"tileMatrixSet",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"url",void 0),p=s=(0,i._)([(0,a.j)("esri.layer.support.WMTSLayerInfo")],p)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4547],{83305:(e,t,n)=>{n.d(t,{e:()=>E,f:()=>l,g:()=>P,h:()=>f,i:()=>s,j:()=>N,l:()=>u,p:()=>G});var r=n(99880),o=n(80442);let _,i=null;function s(){return!!i}function u(){return _||(_=n.e(6774).then(n.bind(n,66774)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,r.V)(`esri/geometry/support/${e}`)}))).then((e=>{T(e)})),_)}var P,l,E,c;!function(e){function t(e,t,n){i.ensureCache.prepare();const r=L(n),o=n===r,_=i.ensureFloat64(r),s=i._pe_geog_to_proj(i.getPointer(e),t,_);return s&&d(n,t,_,o),s}function n(e,t,n){return r(e,t,n,0)}function r(e,t,n,r){i.ensureCache.prepare();const o=L(n),_=n===o,s=i.ensureFloat64(o),u=i._pe_proj_to_geog_center(i.getPointer(e),t,s,r);return u&&d(n,t,s,_),u}e.geogToProj=t,e.projGeog=function(e,r,o,_){switch(_){case l.PE_TRANSFORM_P_TO_G:return n(e,r,o);case l.PE_TRANSFORM_G_TO_P:return t(e,r,o)}return 0},e.projToGeog=n,e.projToGeogCenter=r}(P||(P={})),(c=l||(l={})).init=function(){c.PE_BUFFER_MAX=i.PeDefs.prototype.PE_BUFFER_MAX,c.PE_NAME_MAX=i.PeDefs.prototype.PE_NAME_MAX,c.PE_MGRS_MAX=i.PeDefs.prototype.PE_MGRS_MAX,c.PE_USNG_MAX=i.PeDefs.prototype.PE_USNG_MAX,c.PE_DD_MAX=i.PeDefs.prototype.PE_DD_MAX,c.PE_DDM_MAX=i.PeDefs.prototype.PE_DDM_MAX,c.PE_DMS_MAX=i.PeDefs.prototype.PE_DMS_MAX,c.PE_UTM_MAX=i.PeDefs.prototype.PE_UTM_MAX,c.PE_PARM_MAX=i.PeDefs.prototype.PE_PARM_MAX,c.PE_TYPE_NONE=i.PeDefs.prototype.PE_TYPE_NONE,c.PE_TYPE_GEOGCS=i.PeDefs.prototype.PE_TYPE_GEOGCS,c.PE_TYPE_PROJCS=i.PeDefs.prototype.PE_TYPE_PROJCS,c.PE_TYPE_GEOGTRAN=i.PeDefs.prototype.PE_TYPE_GEOGTRAN,c.PE_TYPE_COORDSYS=i.PeDefs.prototype.PE_TYPE_COORDSYS,c.PE_TYPE_UNIT=i.PeDefs.prototype.PE_TYPE_UNIT,c.PE_TYPE_LINUNIT=i.PeDefs.prototype.PE_TYPE_LINUNIT,c.PE_STR_OPTS_NONE=i.PeDefs.prototype.PE_STR_OPTS_NONE,c.PE_STR_AUTH_NONE=i.PeDefs.prototype.PE_STR_AUTH_NONE,c.PE_STR_AUTH_TOP=i.PeDefs.prototype.PE_STR_AUTH_TOP,c.PE_STR_NAME_CANON=i.PeDefs.prototype.PE_STR_NAME_CANON,c.PE_PARM_X0=i.PeDefs.prototype.PE_PARM_X0,c.PE_PARM_ND=i.PeDefs.prototype.PE_PARM_ND,c.PE_TRANSFORM_1_TO_2=i.PeDefs.prototype.PE_TRANSFORM_1_TO_2,c.PE_TRANSFORM_2_TO_1=i.PeDefs.prototype.PE_TRANSFORM_2_TO_1,c.PE_TRANSFORM_P_TO_G=i.PeDefs.prototype.PE_TRANSFORM_P_TO_G,c.PE_TRANSFORM_G_TO_P=i.PeDefs.prototype.PE_TRANSFORM_G_TO_P,c.PE_HORIZON_RECT=i.PeDefs.prototype.PE_HORIZON_RECT,c.PE_HORIZON_POLY=i.PeDefs.prototype.PE_HORIZON_POLY,c.PE_HORIZON_LINE=i.PeDefs.prototype.PE_HORIZON_LINE,c.PE_HORIZON_DELTA=i.PeDefs.prototype.PE_HORIZON_DELTA},function(e){const t={},n={},r=e=>{if(e){const t=e.getType();switch(t){case l.PE_TYPE_GEOGCS:e=i.castObject(e,i.PeGeogcs);break;case l.PE_TYPE_PROJCS:e=i.castObject(e,i.PeProjcs);break;case l.PE_TYPE_GEOGTRAN:e=i.castObject(e,i.PeGeogtran);break;default:t&l.PE_TYPE_UNIT&&(e=i.castObject(e,i.PeUnit))}}return e};function o(e,n){let o=null,_=t[e];if(_||(_={},t[e]=_),_.hasOwnProperty(String(n)))o=_[n];else{const t=i.PeFactory.prototype.factoryByType(e,n);i.compare(t,i.NULL)||(o=t,_[n]=o)}return o=r(o),o}e.initialize=function(){i.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return o(l.PE_TYPE_COORDSYS,e)},e.factoryByType=o,e.fromString=function(e,t){let o=null,_=n[e];if(_||(_={},n[e]=_),_.hasOwnProperty(t))o=_[t];else{const n=i.PeFactory.prototype.fromString(e,t);i.compare(n,i.NULL)||(o=n,_[t]=o)}return o=r(o),o},e.geogcs=function(e){return o(l.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return o(l.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return i.PeFactory.prototype.getCode(e)},e.projcs=function(e){return o(l.PE_TYPE_PROJCS,e)},e.unit=function(e){return o(l.PE_TYPE_UNIT,e)}}(E||(E={}));let a=null;var S,C,f,A,R,p,O,N,M;function T(e){function t(e,t,n){e[t]=n(e[t])}i=e,l.init(),S.init(),R.init(),O.init(),N.init(),a=class extends i.PeGCSExtent{destroy(){i.destroy(this)}};const n=[i.PeDatum,i.PeGeogcs,i.PeGeogtran,i.PeObject,i.PeParameter,i.PePrimem,i.PeProjcs,i.PeSpheroid,i.PeUnit];for(const e of n)t(e.prototype,"getName",(e=>function(){return e.call(this,new Array(l.PE_NAME_MAX))}));for(const e of[i.PeGeogtran,i.PeProjcs])t(e.prototype,"getParameters",(e=>function(){const t=new Array(l.PE_PARM_MAX);let n=e.call(this);for(let e=0;e<t.length;e++){const r=i.getValue(n,"*");t[e]=r?i.wrapPointer(r,i.PeParameter):null,n+=Int32Array.BYTES_PER_ELEMENT}return t}));t(i.PeHorizon.prototype,"getCoord",(e=>function(){const t=this.getSize();if(!t)return null;const n=[];return d(n,t,e.call(this)),n})),t(i.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const t=i._pe_getPeGTlistExtendedGTsSize();return function(){let n=null;const r=e.call(this);if(!i.compare(r,i.NULL)){n=[r];const e=this.getSteps();if(e>1){const o=i.getPointer(r);for(let r=1;r<e;r++)n.push(i.wrapPointer(o+t*r,i.PeGTlistExtendedGTs))}}return n}}));const r=i._pe_getPeHorizonSize(),o=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let n=null;const o=e.call(this);if(!i.compare(o,i.NULL)){n=[o];const e=o.getNump();if(e>1){const t=i.getPointer(o);for(let o=1;o<e;o++)n.push(i.wrapPointer(t+r*o,i.PeHorizon))}}return t.set(e,n),n};t(i.PeProjcs.prototype,"horizonGcsGenerate",o),t(i.PeProjcs.prototype,"horizonPcsGenerate",o),i.PeObject.prototype.toString=function(e=l.PE_STR_OPTS_NONE){i.ensureCache.prepare();const t=i.getPointer(this),n=i.ensureInt8(new Array(l.PE_BUFFER_MAX));return i.UTF8ToString(i._pe_object_to_string_ext(t,e,n))}}function g(e){if(!e)return;const t=i.getClass(e);if(!t)return;const n=i.getCache(t);if(!n)return;const r=i.getPointer(e);r&&delete n[r]}function h(e,t){const n=[],r=new Array(t);for(let t=0;t<e;t++)n.push(i.ensureInt8(r));return n}function L(e){let t;return Array.isArray(e[0])?(t=[],e.forEach((e=>{t.push(e[0],e[1])}))):t=e,t}function d(e,t,n,r=!1){if(r)for(let r=0;r<2*t;r++)e[r]=i.getValue(n+r*Float64Array.BYTES_PER_ELEMENT,"double");else{const r=0===e.length;for(let o=0;o<t;o++)r&&(e[o]=new Array(2)),e[o][0]=i.getValue(n,"double"),e[o][1]=i.getValue(n+Float64Array.BYTES_PER_ELEMENT,"double"),n+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let t;e.init=function(){e.PE_GTLIST_OPTS_COMMON=i.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=i._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,n,r,o,_,s){let u=null;const P=new i.PeInteger(s);try{const l=i.PeGTlistExtended.prototype.getGTlist(e,n,r,o,_,P);if((s=P.val)&&(u=[l],s>1)){const e=i.getPointer(l);for(let n=1;n<s;n++)u.push(i.wrapPointer(e+t*n,i.PeGTlistExtendedEntry))}}finally{i.destroy(P)}return u}}(S||(S={})),function(e){e.destroy=function(e){if(e&&e.length){for(const t of e)g(t),t.getEntries().forEach((e=>{g(e);const t=e.getGeogtran();g(t),t.getParameters().forEach(g),[t.getGeogcs1(),t.getGeogcs2()].forEach((e=>{g(e);const t=e.getDatum();g(t),g(t.getSpheroid()),g(e.getPrimem()),g(e.getUnit())}))}));i.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(C||(C={})),function(e){e.geogToGeog=function(e,t,n,r,o){i.ensureCache.prepare();const _=L(n),s=n===_,u=i.ensureFloat64(_);let P=0;r&&(P=i.ensureFloat64(r));const l=i._pe_geog_to_geog(i.getPointer(e),t,u,P,o);return l&&d(n,t,u,s),l}}(f||(f={})),function(e){const t=(e,t,n,r,o,_)=>{let s,u;switch(i.ensureCache.prepare(),e){case"dd":s=i._pe_geog_to_dd,u=l.PE_DD_MAX;break;case"ddm":s=i._pe_geog_to_ddm,u=l.PE_DDM_MAX;break;case"dms":s=i._pe_geog_to_dms,u=l.PE_DMS_MAX}let P=0;t&&(P=i.getPointer(t));const E=L(r),c=i.ensureFloat64(E),a=h(n,u),S=s(P,n,c,o,i.ensureInt32(a));if(S)for(let e=0;e<n;e++)_[e]=i.UTF8ToString(a[e]);return S},n=(e,t,n,r,o)=>{let _;switch(i.ensureCache.prepare(),e){case"dd":_=i._pe_dd_to_geog;break;case"ddm":_=i._pe_ddm_to_geog;break;case"dms":_=i._pe_dms_to_geog}let s=0;t&&(s=i.getPointer(t));const u=r.map((e=>i.ensureString(e))),P=i.ensureInt32(u),l=i.ensureFloat64(new Array(2*n)),E=_(s,n,P,l);return E&&d(o,n,l),E};e.geogToDms=function(e,n,r,o,_){return t("dms",e,n,r,o,_)},e.dmsToGeog=function(e,t,r,o){return n("dms",e,t,r,o)},e.geogToDdm=function(e,n,r,o,_){return t("ddm",e,n,r,o,_)},e.ddmToGeog=function(e,t,r,o){return n("ddm",e,t,r,o)},e.geogToDd=function(e,n,r,o,_){return t("dd",e,n,r,o,_)},e.ddToGeog=function(e,t,r,o){return n("dd",e,t,r,o)}}(A||(A={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=i.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=i.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,t,n,r,o,_,s){i.ensureCache.prepare();let u=0;e&&(u=i.getPointer(e));const P=L(n),E=i.ensureFloat64(P),c=h(t,l.PE_MGRS_MAX),a=i.ensureInt32(c),S=i._pe_geog_to_mgrs_extended(u,t,E,r,o,_,a);if(S)for(let e=0;e<t;e++)s[e]=i.UTF8ToString(c[e]);return S},e.mgrsToGeogExtended=function(e,t,n,r,o){i.ensureCache.prepare();let _=0;e&&(_=i.getPointer(e));const s=n.map((e=>i.ensureString(e))),u=i.ensureInt32(s),P=i.ensureFloat64(new Array(2*t)),l=i._pe_mgrs_to_geog_extended(_,t,u,r,P);return l&&d(o,t,P),l}}(R||(R={})),function(e){e.geogToUsng=function(e,t,n,r,o,_,s){i.ensureCache.prepare();let u=0;e&&(u=i.getPointer(e));const P=L(n),E=i.ensureFloat64(P),c=h(t,l.PE_MGRS_MAX),a=i.ensureInt32(c),S=i._pe_geog_to_usng(u,t,E,r,o,_,a);if(S)for(let e=0;e<t;e++)s[e]=i.UTF8ToString(c[e]);return S},e.usngToGeog=function(e,t,n,r){i.ensureCache.prepare();let o=0;e&&(o=i.getPointer(e));const _=n.map((e=>i.ensureString(e))),s=i.ensureInt32(_),u=i.ensureFloat64(new Array(2*t)),P=i._pe_usng_to_geog(o,t,s,u);return P&&d(r,t,u),P}}(p||(p={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=i.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=i.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=i.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,t,n,r,o){i.ensureCache.prepare();let _=0;e&&(_=i.getPointer(e));const s=L(n),u=i.ensureFloat64(s),P=h(t,l.PE_UTM_MAX),E=i.ensureInt32(P),c=i._pe_geog_to_utm(_,t,u,r,E);if(c)for(let e=0;e<t;e++)o[e]=i.UTF8ToString(P[e]);return c},e.utmToGeog=function(e,t,n,r,o){i.ensureCache.prepare();let _=0;e&&(_=i.getPointer(e));const s=n.map((e=>i.ensureString(e))),u=i.ensureInt32(s),P=i.ensureFloat64(new Array(2*t)),l=i._pe_utm_to_geog(_,t,u,r,P);return l&&d(o,t,P),l}}(O||(O={})),function(e){const t=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=i.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=i.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(n,r=e.PE_PCSINFO_OPTION_DOMAIN){let o,_;return t.has(n)&&(_=t.get(n),_[r]&&(o=_[r])),o||(o=i.PePCSInfo.prototype.generate(n,r),_||(_=[],t.set(n,_)),_[r]=o),o}}(N||(N={})),function(e){e.versionString=function(){return i.PeVersion.prototype.version_string()}}(M||(M={}));const G=Object.freeze(Object.defineProperty({__proto__:null,get _pe(){return i},isLoaded:s,isSupported:function(){return!!(0,o.Z)("esri-wasm")},load:u,get PeCSTransformations(){return P},get PeDefs(){return l},get PeFactory(){return E},get PeGCSExtent(){return a},get PeGTlistExtended(){return S},get PeGTlistExtendedEntry(){return C},get PeGTTransformations(){return f},get PeNotationDms(){return A},get PeNotationMgrs(){return R},get PeNotationUsng(){return p},get PeNotationUtm(){return O},get PePCSInfo(){return N},get PeVersion(){return M},_init:T},Symbol.toStringTag,{value:"Module"}))},44547:(e,t,n)=>{n.d(t,{Up:()=>B,Bm:()=>z,iQ:()=>Y,kR:()=>W,zD:()=>m,iV:()=>w,CM:()=>X,oj:()=>U,dz:()=>D,KC:()=>Z,Wt:()=>x});var r=n(20102),o=n(22021),_=n(70586),i=n(95330),s=n(67900),u=n(58971),P=n(10661),l=n(52138),E=(n(17896),n(65617)),c=n(6570),a=n(65091),S=n(83305),C=n(94139),f=n(38913),A=n(58901),R=n(24678),p=(n(24470),n(68441));Math.PI;const O=p.sv.radius,N=p.sv.eccentricitySquared,M={a1:O*N,a2:O*N*O*N,a3:O*N*N/2,a4:O*N*O*N*2.5,a5:O*N+O*N*N/2,a6:1-N};p.sv.radius,p.sv.flattening,p.Z1.radius,p.Z1.flattening,p.yr.radius,p.yr.flattening,p.yr.radius;var T=n(18571),g=n(8744),h=n(56726),L=n(69285);let d=null,G=null,I=null,y={};const F=new P.s;function W(){return!!d&&(0,S.i)()}function m(e){return(0,_.Wi)(I)&&(I=Promise.all([(0,S.l)(),n.e(5837).then(n.bind(n,45837)).then((e=>e.g)),n.e(819).then(n.bind(n,80819))])),I.then((([,t,{hydratedAdapter:n}])=>{(0,i.k_)(e),G=n,d=t.default,d._enableProjection(S.p),F.notify()}))}function w(e,t,n=null,r=null){return Array.isArray(e)?0===e.length?[]:U(G,e,e[0].spatialReference,t,n,r):U(G,[e],e.spatialReference,t,n,r)[0]}function U(e,t,n,r,o=null,i=null){if((0,_.Wi)(n)||(0,_.Wi)(r))return t;if(B(n,r,o))return t.map((e=>(0,_.Wg)(function(e,t,n){return e?"x"in e?function(e,t,n,r,o){Le[0]=e.x,Le[1]=e.y;const _=e.z;return Le[2]=void 0!==_?_:o,X(Le,t,0,Le,r,0,1)?(n.x=Le[0],n.y=Le[1],n.spatialReference=r,void 0===_?(n.z=void 0,n.hasZ=!1):(n.z=Le[2],n.hasZ=!0),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}(e,t,new C.Z,n,0):"xmin"in e?function(e,t,n,r,o){const{xmin:_,ymin:i,xmax:s,ymax:u,hasZ:P,hasM:l}=e;return K(_,i,P?e.zmin:o,t,Le,r)?(n.xmin=Le[0],n.ymin=Le[1],P&&(n.zmin=Le[2]),K(s,u,P?e.zmax:o,t,Le,r)?(n.xmax=Le[0],n.ymax=Le[1],P&&(n.zmax=Le[2]),l&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null):null}(e,t,new c.Z,n,0):"rings"in e?j(e,t,new f.Z,n,0):"paths"in e?function(e,t,n,r,o){const{paths:_,hasZ:i,hasM:s}=e,u=[];return b(_,i,s,t,u,r,o)?(n.paths=u,n.spatialReference=r,n.hasZ=i,n.hasM=s,n):null}(e,t,new A.Z,n,0):"points"in e?function(e,t,n,r,o){const{points:_,hasZ:i,hasM:s}=e,u=[],P=_.length,l=[];for(const e of _)l.push(e[0],e[1],i?e[2]:o);if(!X(l,t,0,l,r,0,P))return null;for(let e=0;e<P;++e){const t=3*e,n=l[t],r=l[t+1];i&&s?u.push([n,r,l[t+2],_[e][3]]):i?u.push([n,r,l[t+2]]):s?u.push([n,r,_[e][2]]):u.push([n,r])}return n.points=u,n.spatialReference=r,n.hasZ=i,n.hasM=s,n}(e,t,new a.Z,n,0):null:null}(e,n,r))));if((0,_.Wi)(o)){const e=T.Z.cacheKey(n,r);void 0!==y[e]?o=y[e]:(o=function(e,t,n=null){if((0,_.Wi)(d))throw new H;if((0,_.Wi)(e)||(0,_.Wi)(t))return null;const r=d._getTransformation(G,e,t,n,n?.spatialReference);return null!==r?T.Z.fromGE(r):null}(n,r,null),(0,_.Wi)(o)&&(o=new T.Z),y[e]=o)}if((0,_.Wi)(d))throw new H;return(0,_.pC)(i)?d._project(e,t,n,r,o,i):d._project(e,t,n,r,o)}function D(e,t){return(0,_.Wi)(e)?{pending:null,geometry:null}:(0,g.fS)(e.spatialReference,t)?{pending:null,geometry:e}:(0,g.JY)(e.spatialReference)&&(0,g.JY)(t)?B(e.spatialReference,t)||W()?{pending:null,geometry:v(e,t)}:((0,u.it)(F),{pending:m(),geometry:null}):{pending:null,geometry:null}}class H extends r.Z{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}var k;function v(e,t){try{const n=w(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const r=(0,L.k)(n.type,e.spatialReference,t);return(0,_.pC)(r)&&r(n),n}catch(e){if(!(e instanceof H))throw e;return null}}function B(e,t,n){return!n&&(!!(0,g.fS)(e,t)||(0,g.JY)(e)&&(0,g.JY)(t)&&!!fe(e,t,Oe))}async function Y(e,t,n,r){if(W())return(0,i.Yn)(r);if(Array.isArray(e)){for(const{source:t,dest:n,geographicTransformation:o}of e)if(!B(t,n,o))return m(r)}else if(!B(e,t,n))return m(r);return(0,i.Yn)(r)}function x(e,t,n=t.spatialReference,r=0){return(0,_.pC)(n)&&(0,_.pC)(j(e,e.spatialReference,t,n,r))}function j(e,t,n,r,o){const{rings:_,hasZ:i,hasM:s}=e,u=[];return b(_,i,s,t,u,r,o)?(n.rings=u,n.spatialReference=r,n.hasZ=i,n.hasM=s,n):null}function Z(e,t,n,r=0){Le[0]=e.x,Le[1]=e.y;const o=e.z;return Le[2]=void 0!==o?o:r,X(Le,e.spatialReference,0,t,n,0,1)}function K(e,t,n,r,o,_){return Te[0]=e,Te[1]=t,Te[2]=n,X(Te,r,0,o,_,0,1)}function X(e,t,n,r,o,i,s=1){const u=fe(t,o,Oe);if((0,_.Wi)(u))return!1;if(u===Q){if(e===r&&n===i)return!0;const t=n+3*s;for(let o=n,_=i;o<t;o++,_++)r[_]=e[o];return!0}const P=n+3*s;for(let t=n,o=i;t<P;t+=3,o+=3)u(e,t,r,o);return!0}function b(e,t,n,r,o,_,i=0){const s=new Array;for(const n of e)for(const e of n)s.push(e[0],e[1],t?e[2]:i);if(!X(s,r,0,s,_,0,s.length/3))return!1;let u=0;o.length=0;for(const r of e){const e=new Array;for(const o of r)t&&n?e.push([s[u++],s[u++],s[u++],o[3]]):t?e.push([s[u++],s[u++],s[u++]]):n?(e.push([s[u++],s[u++],o[2]]),u++):(e.push([s[u++],s[u++]]),u++);o.push(e)}return!0}function z(e,t,n,r){if((0,_.Wi)(e)||(0,_.Wi)(r))return!1;const o=J(e,Re),i=J(r,pe);if(o===i&&!V(i)&&(o!==k.UNKNOWN||(0,g.fS)(e,r)))return(0,l.f)(n,t),!0;if(V(i)){const e=Ce[o][k.LON_LAT],r=Ce[k.LON_LAT][i];return!(0,_.Wi)(e)&&!(0,_.Wi)(r)&&(e(t,0,ge,0),r(ge,0,he,0),q(Ne*ge[0],Ne*ge[1],n),n[12]=he[0],n[13]=he[1],n[14]=he[2],!0)}if((i===k.WEB_MERCATOR||i===k.PLATE_CARREE)&&(o===k.WGS84||o===k.CGCS2000&&i===k.PLATE_CARREE||o===k.SPHERICAL_ECEF||o===k.WEB_MERCATOR)){const e=Ce[o][k.LON_LAT],r=Ce[k.LON_LAT][i];return!(0,_.Wi)(e)&&!(0,_.Wi)(r)&&(e(t,0,ge,0),r(ge,0,he,0),o===k.SPHERICAL_ECEF?function(e,t,n){q(e,t,n),(0,l.t)(n,n)}(Ne*ge[0],Ne*ge[1],n):(0,l.i)(n),n[12]=he[0],n[13]=he[1],n[14]=he[2],!0)}return!1}function V(e){return e===k.SPHERICAL_ECEF||e===k.SPHERICAL_MARS_PCPF||e===k.SPHERICAL_MOON_PCPF}function q(e,t,n){const r=Math.sin(e),o=Math.cos(e),_=Math.sin(t),i=Math.cos(t),s=n;return s[0]=-r,s[4]=-_*o,s[8]=i*o,s[12]=0,s[1]=o,s[5]=-_*r,s[9]=i*r,s[13]=0,s[2]=0,s[6]=i,s[10]=_,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}function J(e,t){return t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.c9)(e,1)),e.wkt===R.GG.wkt?t.spatialReferenceId=k.SPHERICAL_ECEF:(0,g.oR)(e)?t.spatialReferenceId=k.WGS84:(0,g.sS)(e)?t.spatialReferenceId=k.WEB_MERCATOR:(0,g.QM)(e)?t.spatialReferenceId=k.PLATE_CARREE:e.wkt===R.wY.wkt?t.spatialReferenceId=k.WGS84_ECEF:e.wkid===h.W.CGCS2000?t.spatialReferenceId=k.CGCS2000:e.wkt===R.HQ.wkt?t.spatialReferenceId=k.SPHERICAL_MARS_PCPF:e.wkt===R.VY.wkt?t.spatialReferenceId=k.SPHERICAL_MOON_PCPF:(0,g.BZ)(e)?t.spatialReferenceId=k.GCSMARS2000:(0,g.V2)(e)?t.spatialReferenceId=k.GCSMOON2000:t.spatialReferenceId=k.UNKNOWN)}function Q(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t])}function $(e,t,n,r){n[r++]=Me*(e[t++]/p.sv.radius),n[r++]=Me*(Math.PI/2-2*Math.atan(Math.exp(-e[t++]/p.sv.radius))),n[r]=e[t]}function ee(e,t,n,r){!function(e,t,n,r,_){const i=.4999999*Math.PI,s=(0,o.uZ)(Ne*e[t+1],-i,i),u=Math.sin(s);n[r++]=Ne*e[t]*_.radius,n[r++]=_.halfSemiMajorAxis*Math.log((1+u)/(1-u)),n[r]=e[t+2]}(e,t,n,r,p.sv)}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",e[e.WGS84=2]="WGS84",e[e.WEB_MERCATOR=3]="WEB_MERCATOR",e[e.WGS84_ECEF=4]="WGS84_ECEF",e[e.CGCS2000=5]="CGCS2000",e[e.WGS84_COMPARABLE_LON_LAT=6]="WGS84_COMPARABLE_LON_LAT",e[e.SPHERICAL_MARS_PCPF=7]="SPHERICAL_MARS_PCPF",e[e.GCSMARS2000=8]="GCSMARS2000",e[e.SPHERICAL_MOON_PCPF=9]="SPHERICAL_MOON_PCPF",e[e.GCSMOON2000=10]="GCSMOON2000",e[e.LON_LAT=11]="LON_LAT",e[e.PLATE_CARREE=12]="PLATE_CARREE"}(k||(k={}));const te=p.sv.radius*Math.PI/180,ne=180/(p.sv.radius*Math.PI);function re(e,t,n,r){n[r]=e[t]*te,n[r+1]=e[t+1]*te,n[r+2]=e[t+2]}function oe(e,t,n,r){n[r]=e[t]*ne,n[r+1]=e[t+1]*ne,n[r+2]=e[t+2]}function _e(e,t,n,r,o){const _=o+e[t+2],i=Ne*e[t+1],s=Ne*e[t],u=Math.cos(i);n[r++]=Math.cos(s)*u*_,n[r++]=Math.sin(s)*u*_,n[r]=Math.sin(i)*_}function ie(e,t,n,r){_e(e,t,n,r,p.Z1.radius)}function se(e,t,n,r){_e(e,t,n,r,p.yr.radius)}function ue(e,t,n,r){_e(e,t,n,r,p.sv.radius)}function Pe(e,t,n,r,_){const i=e[t],s=e[t+1],u=e[t+2],P=Math.sqrt(i*i+s*s+u*u),l=(0,o.Kt)(u/(0===P?1:P)),E=Math.atan2(s,i);n[r++]=Me*E,n[r++]=Me*l,n[r]=P-_}function le(e,t,n,r){Pe(e,t,n,r,p.Z1.radius)}function Ee(e,t,n,r){Pe(e,t,n,r,p.yr.radius)}function ce(e,t,n,r){Pe(e,t,n,r,p.sv.radius)}function ae(e,t,n,r){!function(e,t,n,r,o){const _=Ne*e[t],i=Ne*e[t+1],s=e[t+2],u=Math.sin(i),P=Math.cos(i),l=o.radius/Math.sqrt(1-o.eccentricitySquared*u*u);n[r++]=(l+s)*P*Math.cos(_),n[r++]=(l+s)*P*Math.sin(_),n[r++]=(l*(1-o.eccentricitySquared)+s)*u}(e,t,n,r,p.sv)}function Se(e,t,n,r){const o=M,_=e[t],i=e[t+1],s=e[t+2];let u,P,l,E,c,a,S,C,f,A,R,O,N,T,g,h,L,d,G,I,y;u=Math.abs(s),P=_*_+i*i,l=Math.sqrt(P),E=P+s*s,c=Math.sqrt(E),I=Math.atan2(i,_),a=s*s/E,S=P/E,T=o.a2/c,g=o.a3-o.a4/c,S>.3?(C=u/c*(1+S*(o.a1+T+a*g)/c),G=Math.asin(C),A=C*C,f=Math.sqrt(1-A)):(f=l/c*(1-a*(o.a5-T-S*g)/c),G=Math.acos(f),A=1-f*f,C=Math.sqrt(A)),R=1-p.sv.eccentricitySquared*A,O=p.sv.radius/Math.sqrt(R),N=o.a6*O,T=l-O*f,g=u-N*C,L=f*T+C*g,h=f*g-C*T,d=h/(N/R+L),G+=d,y=L+h*d/2,s<0&&(G=-G),n[r++]=Me*I,n[r++]=Me*G,n[r]=y}const Ce={[k.WGS84]:{[k.CGCS2000]:null,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:Q,[k.WGS84_COMPARABLE_LON_LAT]:Q,[k.SPHERICAL_ECEF]:ue,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:ee,[k.PLATE_CARREE]:re,[k.WGS84]:Q,[k.WGS84_ECEF]:ae},[k.CGCS2000]:{[k.CGCS2000]:Q,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:Q,[k.WGS84_COMPARABLE_LON_LAT]:Q,[k.SPHERICAL_ECEF]:ue,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:re,[k.WGS84]:null,[k.WGS84_ECEF]:ae},[k.GCSMARS2000]:{[k.CGCS2000]:null,[k.GCSMARS2000]:Q,[k.GCSMOON2000]:null,[k.LON_LAT]:Q,[k.WGS84_COMPARABLE_LON_LAT]:null,[k.SPHERICAL_ECEF]:null,[k.SPHERICAL_MARS_PCPF]:se,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:null,[k.WGS84]:null,[k.WGS84_ECEF]:null},[k.GCSMOON2000]:{[k.CGCS2000]:null,[k.GCSMARS2000]:null,[k.GCSMOON2000]:Q,[k.LON_LAT]:Q,[k.WGS84_COMPARABLE_LON_LAT]:null,[k.SPHERICAL_ECEF]:null,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:ie,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:null,[k.WGS84]:null,[k.WGS84_ECEF]:null},[k.WEB_MERCATOR]:{[k.CGCS2000]:null,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:$,[k.WGS84_COMPARABLE_LON_LAT]:$,[k.SPHERICAL_ECEF]:function(e,t,n,r){$(e,t,n,r),ue(n,r,n,r)},[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:Q,[k.PLATE_CARREE]:function(e,t,n,r){$(e,t,n,r),re(n,r,n,r)},[k.WGS84]:$,[k.WGS84_ECEF]:function(e,t,n,r){$(e,t,n,r),ae(n,r,n,r)}},[k.WGS84_ECEF]:{[k.CGCS2000]:Se,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:Se,[k.WGS84_COMPARABLE_LON_LAT]:Se,[k.SPHERICAL_ECEF]:function(e,t,n,r){Se(e,t,n,r),ue(n,r,n,r)},[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:function(e,t,n,r){Se(e,t,n,r),ee(n,r,n,r)},[k.PLATE_CARREE]:function(e,t,n,r){Se(e,t,n,r),re(n,r,n,r)},[k.WGS84]:Se,[k.WGS84_ECEF]:Q},[k.SPHERICAL_ECEF]:{[k.CGCS2000]:ce,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:ce,[k.WGS84_COMPARABLE_LON_LAT]:ce,[k.SPHERICAL_ECEF]:Q,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:function(e,t,n,r){ce(e,t,n,r),ee(n,r,n,r)},[k.PLATE_CARREE]:function(e,t,n,r){ce(e,t,n,r),re(n,r,n,r)},[k.WGS84]:ce,[k.WGS84_ECEF]:function(e,t,n,r){ce(e,t,n,r),ae(n,r,n,r)}},[k.SPHERICAL_MARS_PCPF]:{[k.CGCS2000]:null,[k.GCSMARS2000]:Ee,[k.GCSMOON2000]:null,[k.LON_LAT]:Ee,[k.WGS84_COMPARABLE_LON_LAT]:null,[k.SPHERICAL_ECEF]:null,[k.SPHERICAL_MARS_PCPF]:Q,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:null,[k.WGS84]:null,[k.WGS84_ECEF]:null},[k.SPHERICAL_MOON_PCPF]:{[k.CGCS2000]:null,[k.GCSMARS2000]:null,[k.GCSMOON2000]:le,[k.LON_LAT]:le,[k.WGS84_COMPARABLE_LON_LAT]:null,[k.SPHERICAL_ECEF]:null,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:Q,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:null,[k.WGS84]:null,[k.WGS84_ECEF]:null},[k.UNKNOWN]:{[k.CGCS2000]:null,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:null,[k.WGS84_COMPARABLE_LON_LAT]:null,[k.SPHERICAL_ECEF]:null,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:Q,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:null,[k.WGS84]:null,[k.WGS84_ECEF]:null},[k.LON_LAT]:{[k.CGCS2000]:Q,[k.GCSMARS2000]:Q,[k.GCSMOON2000]:Q,[k.LON_LAT]:Q,[k.WGS84_COMPARABLE_LON_LAT]:Q,[k.SPHERICAL_ECEF]:ue,[k.SPHERICAL_MARS_PCPF]:se,[k.SPHERICAL_MOON_PCPF]:ie,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:ee,[k.PLATE_CARREE]:re,[k.WGS84]:Q,[k.WGS84_ECEF]:ae},[k.WGS84_COMPARABLE_LON_LAT]:{[k.CGCS2000]:null,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:Q,[k.WGS84_COMPARABLE_LON_LAT]:Q,[k.SPHERICAL_ECEF]:ue,[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:null,[k.PLATE_CARREE]:re,[k.WGS84]:Q,[k.WGS84_ECEF]:ae},[k.PLATE_CARREE]:{[k.CGCS2000]:oe,[k.GCSMARS2000]:null,[k.GCSMOON2000]:null,[k.LON_LAT]:oe,[k.WGS84_COMPARABLE_LON_LAT]:oe,[k.SPHERICAL_ECEF]:function(e,t,n,r){oe(e,t,n,r),ue(n,r,n,r)},[k.SPHERICAL_MARS_PCPF]:null,[k.SPHERICAL_MOON_PCPF]:null,[k.UNKNOWN]:null,[k.WEB_MERCATOR]:function(e,t,n,r){oe(e,t,n,r),ee(n,r,n,r)},[k.PLATE_CARREE]:Q,[k.WGS84]:oe,[k.WGS84_ECEF]:function(e,t,n,r){oe(e,t,n,r),ae(n,r,n,r)}}};function fe(e,t,n=Ae()){return(0,_.Wi)(e)||(0,_.Wi)(t)?null:function(e,t,n){if((0,_.Wi)(e)||(0,_.Wi)(t)||n.source.spatialReference===e&&n.dest.spatialReference===t)return n;const r=J(e,n.source),o=J(t,n.dest);return r===k.UNKNOWN&&o===k.UNKNOWN?(0,g.fS)(e,t)?n.projector=Q:n.projector=null:n.projector=Ce[r][o],n}(e,t,n).projector}function Ae(){return{source:{spatialReference:null,spatialReferenceId:k.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:k.UNKNOWN,metersPerUnit:1},projector:Q}}const Re={spatialReference:null,spatialReferenceId:k.UNKNOWN},pe={spatialReference:null,spatialReferenceId:k.UNKNOWN},Oe=Ae(),Ne=(Ae(),(0,o.Vl)(1)),Me=(0,o.BV)(1),Te=(0,E.c)(),ge=(0,E.c)(),he=(0,E.c)(),Le=(0,E.c)();(0,E.c)()},18571:(e,t,n)=>{n.d(t,{Z:()=>_});let r=0;class o{constructor(e){this.uid=r++,e?(this._wkt=null!=e.wkt?e.wkt:null,this._wkid=null!=e.wkid?e.wkid:-1,this._isInverse=null!=e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}static fromGE(e){const t=new o;return t._wkt=e.wkt,t._wkid=e.wkid,t._isInverse=e.isInverse,t}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=r++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=r++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=r++}getInverse(){const e=new o;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class _{constructor(e){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,e&&e.steps)for(const t of e.steps)t instanceof o?this.steps.push(t):this.steps.push(new o({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}static cacheKey(e,t){return[void 0!==e.wkid&&null!==e.wkid?e.wkid.toString():"-1",void 0!==e.wkt&&null!==e.wkt?e.wkt.toString():"",void 0!==t.wkid&&null!==t.wkid?t.wkid.toString():"-1",void 0!==t.wkt&&null!==t.wkt?t.wkt.toString():""].join(",")}static fromGE(e){const t=new _;let n="";for(const r of e.steps){const e=o.fromGE(r);t.steps.push(e),n+=e.uid.toString()+","}return t._cachedProjection={},t._gtlistentry=null,t._chain=n,t}getInverse(){const e=new _;e.steps=[];for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}getGTListEntry(){let e="";for(const t of this.steps)e+=t.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e),this._gtlistentry}assignCachedGe(e,t,n){this._cachedProjection[_.cacheKey(e,t)]=n}getCachedGeTransformation(e,t){let n="";for(const e of this.steps)n+=e.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const r=this._cachedProjection[_.cacheKey(e,t)];return void 0===r?null:r}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2723],{10699:(e,t,r)=>{r.d(t,{IG:()=>l});var i=r(43697),s=r(52011);let o=0;const l=e=>{let t=class extends e{constructor(...e){super(...e),this.uid=null,Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return t=(0,i._)([(0,s.j)("esri.core.Identifiable")],t),t};let n=class extends(l(class{})){};n=(0,i._)([(0,s.j)("esri.core.Identifiable")],n)},16453:(e,t,r)=>{r.d(t,{R:()=>m,w:()=>_});var i=r(43697),s=r(15923),o=r(70586),l=r(41103),n=r(22974),a=r(31263);class p{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new p,r=this._originStores[a.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,n.d9)(e),a.s3.DEFAULTS)}));for(let r=a.s3.SERVICE;r<a.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{e&&e.has(s)||t.set(s,(0,n.d9)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=a.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||(0,o.j0)(this._propertyOriginMap.get(e))<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=a.s3.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r&&r.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||a.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var u=r(50549),h=r(1153),c=r(52011);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,o.j0)((0,h.vw)(this)),r=t.store,i=new p;t.store=i,(0,l.M)(t,r,i)}read(e,t){(0,u.i)(this,e,t)}getAtOrigin(e,t){const r=g(this),i=(0,a.M9)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach((e=>{s[e]=r.get(e,i)})),s}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return g(this).originOf(e)}revert(e,t){const r=g(this),i=(0,a.M9)(t),s=(0,h.vw)(this);let o;o="string"==typeof e?"*"===e?r.keys(i):[e]:e,o.forEach((e=>{s.invalidate(e),r.revert(e,i),s.commit(e)}))}};return t=(0,i._)([(0,c.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function g(e){return(0,h.vw)(e).store}let y=class extends(d(s.Z)){};y=(0,i._)([(0,c.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var b=r(76169);const f=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return v(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,b.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,h.vw)(this).setAtOrigin(e,t,(0,a.M9)(r))}removeOrigin(e){const t=v(this),r=(0,a.M9)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),a.s3.USER)}updateOrigin(e,t){const r=v(this),i=(0,a.M9)(t),s=this.get(e);for(let t=i+1;t<a.kk;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,c.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,h.vw)(e).store}const m=e=>{let t=class extends(f(d(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,c.j)("esri.core.MultiOriginJSONSupport")],t),t};let _=class extends(m(s.Z)){};_=(0,i._)([(0,c.j)("esri.core.MultiOriginJSONSupport")],_)},2723:(e,t,r)=>{r.r(t),r.d(t,{default:()=>C});var i=r(43697),s=r(3172),o=r(20102),l=r(35454),n=r(70586),a=r(16453),p=r(5600),u=(r(67676),r(80442),r(75215),r(52011)),h=r(82971),c=r(6570),d=r(24470),g=r(87085),y=r(71612),b=r(34760),f=r(72965),v=r(11145);const m=new(r(43077).f)("0/0/0",0,0,0,null);let _=class extends((0,y.h)((0,f.M)((0,b.Q)(g.Z)))){constructor(){super(...arguments),this.tileInfo=v.Z.create({spatialReference:h.Z.WebMercator,size:256}),this.type="base-tile",this.fullExtent=new c.Z(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,h.Z.WebMercator),this.spatialReference=h.Z.WebMercator}getTileBounds(e,t,r,i){const s=i||(0,d.Ue)();return m.level=e,m.row=t,m.col=r,m.extent=s,this.tileInfo.updateTileInfo(m),m.extent=null,s}fetchTile(e,t,r,i={}){const{signal:o}=i,l=this.getTileUrl(e,t,r),n={responseType:"image",signal:o,query:{...this.refreshParameters}};return(0,s.default)(l,n).then((e=>e.data))}getTileUrl(){throw new o.Z("basetilelayer:gettileurl-not-implemented","getTileUrl() is not implemented")}};(0,i._)([(0,p.Cb)({type:v.Z})],_.prototype,"tileInfo",void 0),(0,i._)([(0,p.Cb)({type:["show","hide"]})],_.prototype,"listMode",void 0),(0,i._)([(0,p.Cb)({readOnly:!0,value:"base-tile"})],_.prototype,"type",void 0),(0,i._)([(0,p.Cb)({nonNullable:!0})],_.prototype,"fullExtent",void 0),(0,i._)([(0,p.Cb)()],_.prototype,"spatialReference",void 0),_=(0,i._)([(0,u.j)("esri.layers.BaseTileLayer")],_);const w=_;var M=r(38009);const S=new l.X({BingMapsAerial:"aerial",BingMapsRoad:"road",BingMapsHybrid:"hybrid"});let O=class extends((0,y.h)((0,M.q)((0,a.R)(w)))){constructor(e){super(e),this.type="bing-maps",this.tileInfo=new v.Z({size:[256,256],dpi:96,origin:{x:-20037508.342787,y:20037508.342787,spatialReference:h.Z.WebMercator},spatialReference:h.Z.WebMercator,lods:[{level:1,resolution:78271.5169639999,scale:295828763.795777},{level:2,resolution:39135.7584820001,scale:147914381.897889},{level:3,resolution:19567.8792409999,scale:73957190.948944},{level:4,resolution:9783.93962049996,scale:36978595.474472},{level:5,resolution:4891.96981024998,scale:18489297.737236},{level:6,resolution:2445.98490512499,scale:9244648.868618},{level:7,resolution:1222.99245256249,scale:4622324.434309},{level:8,resolution:611.49622628138,scale:2311162.217155},{level:9,resolution:305.748113140558,scale:1155581.108577},{level:10,resolution:152.874056570411,scale:577790.554289},{level:11,resolution:76.4370282850732,scale:288895.277144},{level:12,resolution:38.2185141425366,scale:144447.638572},{level:13,resolution:19.1092570712683,scale:72223.819286},{level:14,resolution:9.55462853563415,scale:36111.909643},{level:15,resolution:4.77731426794937,scale:18055.954822},{level:16,resolution:2.38865713397468,scale:9027.977411},{level:17,resolution:1.19432856685505,scale:4513.988705},{level:18,resolution:.597164283559817,scale:2256.994353},{level:19,resolution:.298582141647617,scale:1128.497176},{level:20,resolution:.1492910708238085,scale:564.248588}]}),this.key=null,this.style="road",this.culture="en-US",this.region=null,this.portalUrl=null,this.hasAttributionData=!0}get bingMetadata(){return this._get("bingMetadata")}set bingMetadata(e){this._set("bingMetadata",e)}get copyright(){return(0,n.pC)(this.bingMetadata)?this.bingMetadata.copyright:null}get operationalLayerType(){return S.toJSON(this.style)}get bingLogo(){return(0,n.pC)(this.bingMetadata)?this.bingMetadata.brandLogoUri:null}load(e){return this.key?this.addResolvingPromise(this._getMetadata()):this.portalUrl?this.addResolvingPromise(this._getPortalBingKey().then((()=>this._getMetadata()))):this.addResolvingPromise(Promise.reject(new o.Z("bingmapslayer:load","Bing layer must have bing key."))),Promise.resolve(this)}getTileUrl(e,t,r){if(!this.loaded||(0,n.Wi)(this.bingMetadata))return null;const i=this.bingMetadata.resourceSets[0].resources[0],s=i.imageUrlSubdomains[t%i.imageUrlSubdomains.length],o=this._getQuadKey(e,t,r);return i.imageUrl.replace("{subdomain}",s).replace("{quadkey}",o)}async fetchAttributionData(){return this.load().then((()=>(0,n.Wi)(this.bingMetadata)?null:{contributors:this.bingMetadata.resourceSets[0].resources[0].imageryProviders.map((e=>({attribution:e.attribution,coverageAreas:e.coverageAreas.map((e=>({zoomMin:e.zoomMin,zoomMax:e.zoomMax,score:1,bbox:[e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]]})))})))}))}_getMetadata(){const e={road:"roadOnDemand",aerial:"aerial",hybrid:"aerialWithLabelsOnDemand"}[this.style];return(0,s.default)(`https://dev.virtualearth.net/REST/v1/Imagery/Metadata/${e}`,{responseType:"json",query:{include:"ImageryProviders",uriScheme:"https",key:this.key,suppressStatus:!0,output:"json",culture:this.culture,userRegion:this.region}}).then((e=>{const t=e.data;if(200!==t.statusCode)throw new o.Z("bingmapslayer:getmetadata",t.statusDescription);if(this.bingMetadata=t,0===this.bingMetadata.resourceSets.length)throw new o.Z("bingmapslayer:getmetadata","no bing resourcesets");if(0===this.bingMetadata.resourceSets[0].resources.length)throw new o.Z("bingmapslayer:getmetadata","no bing resources")})).catch((e=>{throw new o.Z("bingmapslayer:getmetadata",e.message)}))}_getPortalBingKey(){return(0,s.default)(this.portalUrl,{responseType:"json",authMode:"no-prompt",query:{f:"json"}}).then((e=>{if(!e.data.bingKey)throw new o.Z("bingmapslayer:getportalbingkey","The referenced Portal does not contain a valid bing key");this.key=e.data.bingKey})).catch((e=>{throw new o.Z("bingmapslayer:getportalbingkey",e.message)}))}_getQuadKey(e,t,r){let i="";for(let s=e;s>0;s--){let e=0;const o=1<<s-1;0!=(r&o)&&(e+=1),0!=(t&o)&&(e+=2),i+=e.toString()}return i}};(0,i._)([(0,p.Cb)({json:{read:!1,write:!1},value:null})],O.prototype,"bingMetadata",null),(0,i._)([(0,p.Cb)({json:{read:!1,write:!1},value:"bing-maps",readOnly:!0})],O.prototype,"type",void 0),(0,i._)([(0,p.Cb)({type:v.Z})],O.prototype,"tileInfo",void 0),(0,i._)([(0,p.Cb)({type:String,readOnly:!0,json:{read:!1,write:!1}})],O.prototype,"copyright",null),(0,i._)([(0,p.Cb)({type:String,json:{write:!1,read:!1}})],O.prototype,"key",void 0),(0,i._)([(0,p.Cb)({type:S.apiValues,nonNullable:!0,json:{read:{source:"layerType",reader:S.read}}})],O.prototype,"style",void 0),(0,i._)([(0,p.Cb)({type:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"]})],O.prototype,"operationalLayerType",null),(0,i._)([(0,p.Cb)({type:String,json:{write:!1,read:!1}})],O.prototype,"culture",void 0),(0,i._)([(0,p.Cb)({type:String,json:{write:!1,read:!1}})],O.prototype,"region",void 0),(0,i._)([(0,p.Cb)({type:String,json:{write:!0,read:!0}})],O.prototype,"portalUrl",void 0),(0,i._)([(0,p.Cb)({type:Boolean,json:{write:!1,read:!1}})],O.prototype,"hasAttributionData",void 0),(0,i._)([(0,p.Cb)({type:String,readOnly:!0})],O.prototype,"bingLogo",null),O=(0,i._)([(0,u.j)("esri.layers.BingMapsLayer")],O);const C=O},87085:(e,t,r)=>{r.d(t,{Z:()=>m});var i=r(43697),s=(r(66577),r(3172)),o=r(20102),l=r(32448),n=r(10699),a=r(83379),p=r(92604),u=r(95330),h=r(17452),c=r(5600),d=(r(67676),r(80442),r(75215),r(52011)),g=r(68773),y=r(6570),b=r(82971);let f=0,v=class extends(l.Z.EventedMixin((0,n.IG)(a.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.Z(-180,-90,180,90,b.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=b.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},i=await Promise.all([r.e(4547),r.e(8008)]).then(r.bind(r,28008));try{return await i.fromItem(t)}catch(e){const r=t&&t.portalItem,i=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||g.Z.portalUrl;throw p.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,u.D_)(e)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,h.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,c.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,c.Cb)({type:y.Z})],v.prototype,"fullExtent",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,c.Cb)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,c.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,c.Cb)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,c.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,c.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,c.Cb)({type:b.Z})],v.prototype,"spatialReference",void 0),(0,i._)([(0,c.Cb)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,c.Cb)()],v.prototype,"url",void 0),(0,i._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,d.j)("esri.layers.Layer")],v);const m=v},34760:(e,t,r)=>{r.d(t,{Q:()=>f});var i=r(43697),s=r(92604),o=r(95330),l=r(5600),n=(r(67676),r(80442),r(75215),r(52011)),a=r(46791),p=(r(20102),r(26258),r(87538));const u=new a.Z,h=new WeakMap;function c(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function d(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:d(t,e%t):0}let g=0,y=0;function b(){const e=Date.now();for(const t of u)t.refreshInterval&&e-(h.get(t)??0)+5>=6e4*t.refreshInterval&&(h.set(t,e),t.refresh(e))}(0,p.EH)((()=>{const e=Date.now();let t=0;for(const r of u)t=d(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?h.get(r)||h.set(r,e):h.delete(r);if(t!==y){if(y=t,clearInterval(g),0===y)return void(g=0);g=setInterval(b,y)}}));const f=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,o.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{!function(e){c(e)&&u.push(e)}(this)}),(()=>{}))}destroy(){var e;c(e=this)&&u.includes(e)&&u.remove(e)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,o.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{s.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,i._)([(0,l.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,i._)([(0,l.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,i._)([(0,l.Cb)()],t.prototype,"refreshParameters",null),t=(0,i._)([(0,n.j)("esri.layers.mixins.RefreshableLayer")],t),t}},39450:(e,t,r)=>{r.d(t,{Z:()=>u});var i,s=r(43697),o=r(96674),l=r(5600),n=(r(67676),r(80442),r(75215)),a=r(52011);let p=i=class extends o.wq{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new i({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,s._)([(0,l.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],p.prototype,"cols",void 0),(0,s._)([(0,l.Cb)({type:n.z8,json:{write:!0}})],p.prototype,"level",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],p.prototype,"levelValue",void 0),(0,s._)([(0,l.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],p.prototype,"origin",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],p.prototype,"resolution",void 0),(0,s._)([(0,l.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],p.prototype,"rows",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],p.prototype,"scale",void 0),p=i=(0,s._)([(0,a.j)("esri.layers.support.LOD")],p);const u=p},11145:(e,t,r)=>{r.d(t,{Z:()=>C});var i,s=r(43697),o=r(35454),l=r(96674),n=r(70586),a=r(67900),p=r(5600),u=(r(67676),r(80442),r(75215)),h=r(71715),c=r(52011),d=r(30556),g=r(94139),y=r(82971),b=r(24470),f=r(8744),v=r(40488),m=r(39450),_=r(43077);const w=new o.X({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let M=i=class extends l.wq{constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.minScale=0,this.maxScale=0,this.size=null,this.spatialReference=null}static create(e={}){const{resolutionFactor:t=1,scales:r,size:s=256,spatialReference:o=y.Z.WebMercator,numLODs:l=24}=e;if(!(0,f.JY)(o)){const e=[];if(r)for(let t=0;t<r.length;t++){const i=r[t];e.push({level:t,scale:i,resolution:i})}else{let t=5e-4;for(let r=l-1;r>=0;r--)e.unshift({level:r,scale:t,resolution:t}),t*=2}return new i({dpi:96,lods:e,origin:new g.Z(0,0,o),size:[s,s],spatialReference:o})}const n=(0,f.C5)(o),p=e.origin?new g.Z({x:e.origin.x,y:e.origin.y,spatialReference:o}):new g.Z(n?{x:n.origin[0],y:n.origin[1],spatialReference:o}:{x:0,y:0,spatialReference:o}),u=1/(39.37*(0,a.c9)(o)*96),h=[];if(r)for(let e=0;e<r.length;e++){const t=r[e],i=t*u;h.push({level:e,scale:t,resolution:i})}else{let e=(0,f.sT)(o)?512/s*591657527.5917094:256/s*591657527.591555;const r=Math.ceil(l/t);h.push({level:0,scale:e,resolution:e*u});for(let i=1;i<r;i++){const r=e/2**t,s=r*u;h.push({level:i,scale:r,resolution:s}),e=r}}return new i({dpi:96,lods:h,origin:p,size:[s,s],spatialReference:o})}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const r=(0,f.C5)(e);return e.isWrappable&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return g.Z.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0;const i=[];this._levelToLOD={},e&&(t=-1/0,r=1/0,e.forEach((e=>{i.push(e.scale),t=e.scale>t?e.scale:t,r=e.scale<r?e.scale:r,this._levelToLOD[e.level]=e}))),this._set("scales",i),this._set("minScale",t),this._set("maxScale",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const r=Math.floor(e),i=r+1;return t[r]/(t[r]/t[i])**(e-r)}scaleToZoom(e){const t=this.scales,r=t.length-1;let i=0;for(;i<r;i++){const r=t[i],s=t[i+1];if(r<=e)return i;if(s===e)return i+1;if(r>e&&s<e)return i+Math.log(r/e)/Math.log(r/s)}return i}snapScale(e,t=.95){const r=this.scaleToZoom(e);return r%Math.floor(r)>=t?this.zoomToScale(Math.ceil(r)):this.zoomToScale(Math.floor(r))}tileAt(e,t,r,i){const s=this.lodAt(e);if(!s)return null;let o,l;if("number"==typeof t)o=t,l=r;else if((0,f.fS)(t.spatialReference,this.spatialReference))o=t.x,l=t.y,i=r;else{const e=(0,v.iV)(t,this.spatialReference);if((0,n.Wi)(e))return null;o=e.x,l=e.y,i=r}const a=s.resolution*this.size[0],p=s.resolution*this.size[1];return i||(i=new _.f(null,0,0,0,(0,b.Ue)())),i.level=e,i.row=Math.floor((this.origin.y-l)/p+.001),i.col=Math.floor((o-this.origin.x)/a+.001),this.updateTileInfo(i),i}updateTileInfo(e,t=i.ExtrapolateOptions.NONE){let r=this.lodAt(e.level);if(!r&&t===i.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(r=t)}if(!r)return;const s=e.level-r.level,o=r.resolution*this.size[0]/2**s,l=r.resolution*this.size[1]/2**s;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,b.Ue)()),e.extent[0]=this.origin.x+e.col*o,e.extent[1]=this.origin.y-(e.row+1)*l,e.extent[2]=e.extent[0]+o,e.extent[3]=e.extent[1]+l}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const{resolution:r}=this.lodAt(t.level),i=r*this.size[0],s=r*this.size[1];return e[0]=this.origin.x+t.col*i,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+i,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD&&this._levelToLOD[e]||null}clone(){return i.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(256===this.size[0]&&256===this.size[1])return 256===e?this:null;const r=[],s=this.lods.length;for(let e=0;e<s;e++){const i=this.lods[e],s=i.resolution*t;r.push(new m.Z({level:i.level,scale:i.scale,resolution:s}))}return new i({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){const i=e[r];this._upsampleLevels[i.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/i.resolution:0},t=i}}};var S,O;(0,s._)([(0,p.Cb)({type:Number,json:{write:!0}})],M.prototype,"compressionQuality",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!0}})],M.prototype,"dpi",void 0),(0,s._)([(0,p.Cb)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],M.prototype,"format",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],M.prototype,"isWrappable",null),(0,s._)([(0,p.Cb)({type:g.Z,json:{write:!0}})],M.prototype,"origin",void 0),(0,s._)([(0,h.r)("origin")],M.prototype,"readOrigin",null),(0,s._)([(0,p.Cb)({type:[m.Z],value:null,json:{write:!0}})],M.prototype,"lods",null),(0,s._)([(0,p.Cb)({readOnly:!0})],M.prototype,"minScale",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],M.prototype,"maxScale",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],M.prototype,"scales",void 0),(0,s._)([(0,p.Cb)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],M.prototype,"size",void 0),(0,s._)([(0,h.r)("size",["rows","cols"])],M.prototype,"readSize",null),(0,s._)([(0,d.c)("size",{cols:{type:u.z8},rows:{type:u.z8}})],M.prototype,"writeSize",null),(0,s._)([(0,p.Cb)({type:y.Z,json:{write:!0}})],M.prototype,"spatialReference",void 0),M=i=(0,s._)([(0,c.j)("esri.layers.support.TileInfo")],M),S=M||(M={}),(O=S.ExtrapolateOptions||(S.ExtrapolateOptions={}))[O.NONE=0]="NONE",O[O.POWER_OF_TWO=1]="POWER_OF_TWO";const C=M},43077:(e,t,r)=>{r.d(t,{f:()=>i});class i{constructor(e,t,r,i,s){this.id=e,this.level=t,this.row=r,this.col=i,this.extent=s}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9296],{10699:(t,e,r)=>{r.d(e,{IG:()=>n});var i=r(43697),s=r(52011);let o=0;const n=t=>{let e=class extends t{constructor(...t){super(...t),this.uid=null,Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,i._)([(0,s.j)("esri.core.Identifiable")],e),e};let a=class extends(n(class{})){};a=(0,i._)([(0,s.j)("esri.core.Identifiable")],a)},16453:(t,e,r)=>{r.d(e,{R:()=>b,w:()=>_});var i=r(43697),s=r(15923),o=r(70586),n=r(41103),a=r(22974),l=r(31263);class p{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new p,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((t,r)=>{e.set(r,(0,a.d9)(t),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{t&&t.has(s)||e.set(s,(0,a.d9)(i),r)}))}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=l.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(t,e),!this._values.has(t)||(0,o.j0)(this._propertyOriginMap.get(t))<=r){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),i!==e}return!1}delete(t,e=l.s3.USER){const r=this._originStores[e];if(!r)return;const i=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return i}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],i=r&&r.get(t),s=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),s!==i}originOf(t){return this._propertyOriginMap.get(t)||l.s3.DEFAULTS}forEach(t){this._values.forEach(t)}}var u=r(50549),d=r(1153),h=r(52011);const c=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,o.j0)((0,d.vw)(this)),r=e.store,i=new p;e.store=i,(0,n.M)(e,r,i)}read(t,e){(0,u.i)(this,t,e)}getAtOrigin(t,e){const r=y(this),i=(0,l.M9)(e);if("string"==typeof t)return r.get(t,i);const s={};return t.forEach((t=>{s[t]=r.get(t,i)})),s}originOf(t){return(0,l.x3)(this.originIdOf(t))}originIdOf(t){return y(this).originOf(t)}revert(t,e){const r=y(this),i=(0,l.M9)(e),s=(0,d.vw)(this);let o;o="string"==typeof t?"*"===t?r.keys(i):[t]:t,o.forEach((t=>{s.invalidate(t),r.revert(t,i),s.commit(t)}))}};return e=(0,i._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function y(t){return(0,d.vw)(t).store}let g=class extends(c(s.Z)){};g=(0,i._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],g);var f=r(76169);const v=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return m(this).delete(t,(0,l.M9)(e))}write(t={},e){return(0,f.c)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,d.vw)(this).setAtOrigin(t,e,(0,l.M9)(r))}removeOrigin(t){const e=m(this),r=(0,l.M9)(t),i=e.keys(r);for(const t of i)e.originOf(t)===r&&e.set(t,e.get(t,r),l.s3.USER)}updateOrigin(t,e){const r=m(this),i=(0,l.M9)(e),s=this.get(t);for(let e=i+1;e<l.kk;++e)r.delete(t,e);r.set(t,s,i)}toJSON(t){return this.write({},t)}};return e=(0,i._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function m(t){return(0,d.vw)(t).store}const b=t=>{let e=class extends(v(c(t))){constructor(...t){super(...t)}};return e=(0,i._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],e),e};let _=class extends(b(s.Z)){};_=(0,i._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],_)},87085:(t,e,r)=>{r.d(e,{Z:()=>b});var i=r(43697),s=(r(66577),r(3172)),o=r(20102),n=r(32448),a=r(10699),l=r(83379),p=r(92604),u=r(95330),d=r(17452),h=r(5600),c=(r(67676),r(80442),r(75215),r(52011)),y=r(68773),g=r(6570),f=r(82971);let v=0,m=class extends(n.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new g.Z(-180,-90,180,90,f.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},i=await Promise.all([r.e(4547),r.e(8008)]).then(r.bind(r,28008));try{return await i.fromItem(e)}catch(t){const r=e&&e.portalItem,i=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||y.Z.portalUrl;throw p.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,u.D_)(t)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){if(this.parent){const t=this,e=this.parent;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"baseLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const t=this.url;return t?(0,d.mN)(t):null}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,s.default)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,h.Cb)({type:String})],m.prototype,"attributionDataUrl",void 0),(0,i._)([(0,h.Cb)({type:g.Z})],m.prototype,"fullExtent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],m.prototype,"hasAttributionData",null),(0,i._)([(0,h.Cb)({type:String,clonable:!1})],m.prototype,"id",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],m.prototype,"legendEnabled",void 0),(0,i._)([(0,h.Cb)({type:["show","hide","hide-children"]})],m.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],m.prototype,"opacity",void 0),(0,i._)([(0,h.Cb)({clonable:!1})],m.prototype,"parent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],m.prototype,"parsedUrl",null),(0,i._)([(0,h.Cb)({type:Boolean})],m.prototype,"popupEnabled",void 0),(0,i._)([(0,h.Cb)({type:Boolean})],m.prototype,"attributionVisible",void 0),(0,i._)([(0,h.Cb)({type:f.Z})],m.prototype,"spatialReference",void 0),(0,i._)([(0,h.Cb)({type:String})],m.prototype,"title",void 0),(0,i._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],m.prototype,"type",void 0),(0,i._)([(0,h.Cb)()],m.prototype,"url",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],m.prototype,"visible",void 0),m=(0,i._)([(0,c.j)("esri.layers.Layer")],m);const b=m},39296:(t,e,r)=>{r.r(e),r.d(e,{default:()=>h});var i=r(43697),s=r(20102),o=r(16453),n=r(1654),a=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),p=r(87085),u=r(16859);let d=class extends((0,u.I)((0,o.R)(p.Z))){constructor(t){super(t),this.resourceInfo=null,this.type="unsupported"}initialize(){this.addResolvingPromise(new Promise(((t,e)=>{(0,n.Os)((()=>{const t=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let r="Unsupported layer type";t&&(r+=" "+t),e(new s.Z("layer:unsupported-layer-type",r,{layerType:t}))}))})))}read(t,e){const r={resourceInfo:t};null!=t.id&&(r.id=t.id),null!=t.title&&(r.title=t.title),super.read(r,e)}write(t){return Object.assign(t||{},this.resourceInfo,{id:this.id})}};(0,i._)([(0,a.Cb)({readOnly:!0})],d.prototype,"resourceInfo",void 0),(0,i._)([(0,a.Cb)({type:["show","hide"]})],d.prototype,"listMode",void 0),(0,i._)([(0,a.Cb)({json:{read:!1},readOnly:!0,value:"unsupported"})],d.prototype,"type",void 0),d=(0,i._)([(0,l.j)("esri.layers.UnsupportedLayer")],d);const h=d},16859:(t,e,r)=>{r.d(e,{I:()=>b});var i=r(43697),s=r(40330),o=r(3172),n=r(66643),a=r(20102),l=r(92604),p=r(70586),u=r(95330),d=r(17452),h=r(5600),c=(r(67676),r(80442),r(75215),r(71715)),y=r(52011),g=r(30556),f=r(65587),v=r(15235),m=r(86082);const b=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){this.portalItem?.destroy(),this.portalItem=null}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new v.default({id:e.itemId,portal:r&&r.portal})}writePortalItem(t,e){t&&t.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem&&this.portalItem.id)try{const i=await r.e(8062).then(r.bind(r,18062));return(0,u.k_)(e),await i.load({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap},e)}catch(t){throw(0,u.D_)(t)||l.Z.getLogger(this.declaredClass).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch((t=>((0,u.r9)(t),!0))))}async _fetchUserHasEditingPrivileges(t){const e=this.url?s.id?.findCredential(this.url):null;if(!e)return!0;const r=_.credential===e?_.user:await this._fetchEditingUser(t);return _.credential=e,_.user=r,(0,p.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=s.id.findServerInfo(this.url);if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,a=f.Z.getDefault();if(a&&a.loaded&&(0,d.Fv)(a.restUrl)===(0,d.Fv)(i))return a.user;const l=`${i}/community/self`,u=(0,p.pC)(t)?t.signal:null,h=await(0,n.q6)((0,o.default)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?m.default.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e&&e.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||f.Z.getDefault());return r&&i&&!(0,d.tm)(i.restUrl,r.restUrl)?(e.messages&&e.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,i._)([(0,h.Cb)({type:v.default})],e.prototype,"portalItem",null),(0,i._)([(0,c.r)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,i._)([(0,g.c)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,i._)([(0,h.Cb)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),e=(0,i._)([(0,y.j)("esri.layers.mixins.PortalLayer")],e),e},_={credential:null,user:null}}}]);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.25/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import t from"../../../../../core/Error.js";import{isNone as e}from"../../../../../core/maybe.js";import{isAbortError as r}from"../../../../../core/promiseUtils.js";import{SPRITE_PADDING as a}from"../definitions.js";import{play as i}from"./utils.js";class s{constructor(t){this._requestRender=t,this._frameData=null}destroy(){this._playHandle.remove()}bindFrame(t,r,i){t.bindTexture(r,i),e(this._frameData)||(r.updateData(0,a,a,this._frameData.width,this._frameData.height,this._frameData),this._frameData=null)}async _load(e,a,s,o){try{const t=t=>{this._frameData=t,this._requestRender.requestRender()},r=await this._loadAnimation(e,t,o);this.frameCount=r.frameDurations.length,this.width=r.width,this.height=r.height,this._playHandle=i(r,a,s)}catch(h){if(!r(h))return new t("invalid-resource","Could not parse animated resource.")}}}export{s as BaseAnimatableTextureResource};
|