@arcgis/core 4.30.0-next.20240213 → 4.30.0-next.20240214
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/TimeExtent.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/051c00021039f20ad935.js +1 -0
- package/assets/esri/core/workers/chunks/08ba549f9c4afc42a21c.js +1 -0
- package/assets/esri/core/workers/chunks/{a384f29cb3256401962a.js → 1629a8c2085dce59cd1b.js} +1 -1
- package/assets/esri/core/workers/chunks/18512caeeb03b9759ab1.js +1 -0
- package/assets/esri/core/workers/chunks/{cc1c958aad790a44048b.js → 1ca28af7c516d8283bb0.js} +1 -1
- package/assets/esri/core/workers/chunks/1f8a0fb32b96e50f5909.js +1 -0
- package/assets/esri/core/workers/chunks/25f7e92cb4934c4930be.js +1 -0
- package/assets/esri/core/workers/chunks/2649166d1a462c7f8338.js +1 -0
- package/assets/esri/core/workers/chunks/51e4f771bfe352967c97.js +1 -0
- package/assets/esri/core/workers/chunks/5467bacd2771e6b1cdfa.js +1 -0
- package/assets/esri/core/workers/chunks/5638d95e600ff271c5b1.js +1 -0
- package/assets/esri/core/workers/chunks/58f088b08e12c5435dbc.js +1 -0
- package/assets/esri/core/workers/chunks/5aef1e898618f8dda2c9.js +1 -0
- package/assets/esri/core/workers/chunks/656ec8a14df0e4b68433.js +1 -0
- package/assets/esri/core/workers/chunks/66f21348fb68c83b9dc3.js +1108 -0
- package/assets/esri/core/workers/chunks/{eb2d6f1ee63b40ae0736.js → 774b655498289b1b36bb.js} +1 -1
- package/assets/esri/core/workers/chunks/9310f1de92d9b82dc803.js +1 -0
- package/assets/esri/core/workers/chunks/{f03d62ab7806b68d0b62.js → 9fbf61675e2a5374f754.js} +1 -1
- package/assets/esri/core/workers/chunks/a0b017a34cafd08ce945.js +1 -0
- package/assets/esri/core/workers/chunks/a28711db61c1df2d7bac.js +1 -0
- package/assets/esri/core/workers/chunks/aa9b46bcb75c96731de3.js +1 -0
- package/assets/esri/core/workers/chunks/c83da4659646ce3f5b50.js +1 -0
- package/assets/esri/core/workers/chunks/{05ebb9cec0e1826b283f.js → cafcc53175f9d4c5de2f.js} +1 -1
- package/assets/esri/core/workers/chunks/{1c6914ded7db720f7bf7.js → daf6eab5dd198ca9a67b.js} +1 -1
- package/assets/esri/core/workers/chunks/e03edeaf3af46495449e.js +1 -0
- package/assets/esri/core/workers/chunks/e0c9f29eedfa71554445.js +1 -0
- package/assets/esri/core/workers/chunks/e123017c670f22266768.js +1 -0
- package/assets/esri/core/workers/chunks/eba3a6f0a66b51b8ec12.js +1 -0
- package/assets/esri/core/workers/chunks/ebb294c82207f3ff9f04.js +1 -0
- package/assets/esri/core/workers/chunks/{e4da908079417cc2f495.js → ee0c77889059815a31b2.js} +1 -1
- package/assets/esri/core/workers/chunks/f36e55302b45e2936a5b.js +1 -0
- package/assets/esri/core/workers/chunks/f85e67d4a18603ccaaed.js +1 -0
- package/assets/esri/core/workers/chunks/f90bbebd2dc07a77ce09.js +1 -0
- package/chunks/vec32.js +1 -1
- package/interfaces.d.ts +131 -66
- package/layers/WFSLayer.js +1 -1
- package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/package.json +1 -1
- package/portal/Portal.js +1 -1
- package/portal/PortalGroup.js +1 -1
- package/portal/PortalUser.js +1 -1
- package/portal/support/geometryServiceUtils.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToUpdateResponseFactories.js +1 -1
- package/rest/networks/support/Association.js +1 -1
- package/rest/places.js +1 -1
- package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
- package/rest/support/ImageSampleParameters.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
- package/support/elevationInfoUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/defaultCIMValues.js +1 -1
- package/symbols/cim/utils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +9 -7
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceConstants.js +5 -0
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +8 -8
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
- package/views/draw/drawSurfaces.js +1 -1
- package/views/layers/ImageryTileLayerView.js +1 -1
- package/webdoc/support/webdocLoadUtils.js +1 -1
- package/webdoc/support/webdocSaveUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/Print/PrintViewModel.js +1 -1
- package/widgets/Search/support/locatorUtils.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/00b9e92f8df245a83921.js +0 -1
- package/assets/esri/core/workers/chunks/02ee044597c89c86b934.js +0 -1
- package/assets/esri/core/workers/chunks/143ccb14c9e915dd1412.js +0 -1
- package/assets/esri/core/workers/chunks/24649b410b757599a549.js +0 -1
- package/assets/esri/core/workers/chunks/2519b207894132d5ea91.js +0 -1
- package/assets/esri/core/workers/chunks/30f9b2a3417cbcfeecca.js +0 -1
- package/assets/esri/core/workers/chunks/42ab9c282bb267c3db03.js +0 -1
- package/assets/esri/core/workers/chunks/49afeac45250b15b5f36.js +0 -1
- package/assets/esri/core/workers/chunks/50bb67f2eeace5d50673.js +0 -1
- package/assets/esri/core/workers/chunks/50cdc59426ba859027e2.js +0 -1
- package/assets/esri/core/workers/chunks/58c5861d060c808813a1.js +0 -1
- package/assets/esri/core/workers/chunks/5dbb3ef6fdd25ac632ad.js +0 -1
- package/assets/esri/core/workers/chunks/61c4bb58ef9f2d99c75e.js +0 -1
- package/assets/esri/core/workers/chunks/6e50220f8e2d392e2855.js +0 -1
- package/assets/esri/core/workers/chunks/6fd8047741a0df006ddd.js +0 -1
- package/assets/esri/core/workers/chunks/7709248f59520aee6f51.js +0 -1
- package/assets/esri/core/workers/chunks/8852a64918caf80fc414.js +0 -1
- package/assets/esri/core/workers/chunks/94dfb80ab23dda92918b.js +0 -1
- package/assets/esri/core/workers/chunks/9ebbc75ba5c623a322aa.js +0 -1
- package/assets/esri/core/workers/chunks/a74c59cf5d1c4e63a4e1.js +0 -1
- package/assets/esri/core/workers/chunks/be562536212360943388.js +0 -1
- package/assets/esri/core/workers/chunks/d06d36815c2121484a13.js +0 -1
- package/assets/esri/core/workers/chunks/d5f06a7b0ea7951c8dd0.js +0 -1
- package/assets/esri/core/workers/chunks/de6d54df7ae32694fd70.js +0 -1
- package/assets/esri/core/workers/chunks/f13c4b9692dad5802a32.js +0 -1106
- package/assets/esri/core/workers/chunks/f1e8f7d1a98b9e207b1b.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2364,6147],{25228:(t,e,n)=>{n.d(e,{c:()=>m});var r,i=n(41948),o=n(40504),s=n(94360),a=n(1580),l=(n(9456),n(66360),n(72052),n(33600)),c=n(12552),u=n(18996),h=n(28484);let p=r=class extends o.am{static get allTime(){return d}static get empty(){return f}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,i=t.end?.getTime()??t.end;return e===r&&n===i}expandTo(t,e=h.OX){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,s.aU)(n,t,e));let i=this.end;if(i){const n=(0,s.aU)(i,t,e);i=i.getTime()===n.getTime()?n:(0,s.g1)(n,1,t,e)}return new r({start:n,end:i})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,i=t.start?.getTime()??-1/0,o=t.end?.getTime()??1/0;let s,a;return i>=e&&i<=n?s=i:e>=i&&e<=o&&(s=e),n>=i&&n<=o?a=n:o>=e&&o<=n&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?r.empty:new r({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(t,e,n=h.OX){if(this.isEmpty||this.isAllTime)return this.clone();const i=new r,{start:o,end:a}=this;return null!=o&&(i.start=(0,s.g1)(o,t,e,n)),null!=a&&(i.end=(0,s.g1)(a,t,e,n)),i}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:n})}};(0,i._)([(0,a.qq)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i._)([(0,l.E)("end")],p.prototype,"readEnd",null),(0,i._)([(0,u.G)("end")],p.prototype,"writeEnd",null),(0,i._)([(0,a.qq)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i._)([(0,a.qq)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i._)([(0,a.qq)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i._)([(0,l.E)("start")],p.prototype,"readStart",null),(0,i._)([(0,u.G)("start")],p.prototype,"writeStart",null),p=r=(0,i._)([(0,c.c)("esri.TimeExtent")],p);const d=new p,f=new p({start:void 0,end:void 0}),m=p},8528:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>i});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},85304:(t,e,n)=>{n.d(e,{q:()=>l});var r,i,o,s=n(8528),a={exports:{}};r=a,i=function(){function t(n,r,i,o,s){for(;o>i;){if(o-i>600){var a=o-i+1,l=r-i+1,c=Math.log(a),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(a-u)/a)*(l-a/2<0?-1:1);t(n,r,Math.max(i,Math.floor(r-l*u/a+h)),Math.min(o,Math.floor(r+(a-l)*u/a+h)),s)}var p=n[r],d=i,f=o;for(e(n,i,r),s(n[o],p)>0&&e(n,i,o);d<f;){for(e(n,d,f),d++,f--;s(n[d],p)<0;)d++;for(;s(n[f],p)>0;)f--}0===s(n[i],p)?e(n,i,f):e(n,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,i,o,s){t(e,r,i||0,o||e.length-1,s||n)}},void 0!==(o=i())&&(r.exports=o);const l=(0,s.g)(a.exports)},3856:(t,e,n)=>{n.d(e,{m:()=>h,q:()=>u});var r=n(41948),i=n(43780),o=(n(9456),n(62088)),s=(n(66360),n(70680)),a=n(71448),l=n(20916),c=n(12552);const u=t=>{let e=class extends t{clone(){const t=(0,l.m6)(this);(0,s.EN)(t,"unable to clone instance of non-accessor class");const e=t.metadata,n=t.store,r={},i=new Map;for(const t in e){const s=e[t],l=n?.originOf(t),c=s.clonable;if(s.readOnly||!1===c||l!==a.sT.USER&&l!==a.sT.DEFAULTS&&l!==a.sT.WEB_MAP&&l!==a.sT.WEB_SCENE)continue;const u=this[t];let h=null;h="function"==typeof c?c(u):"reference"===c?u:(0,o.gx)(u),null!=u&&null==h||(l===a.sT.DEFAULTS?i.set(t,h):r[t]=h)}const c=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){const t=(0,l.m6)(c)?.store;if(t)for(const[e,n]of i)t.set(e,n,a.sT.DEFAULTS)}return c}};return e=(0,r._)([(0,c.c)("esri.core.Clonable")],e),e};let h=class extends(u(i.c)){};h=(0,r._)([(0,c.c)("esri.core.Clonable")],h)},22156:(t,e,n)=>{n.d(e,{MR:()=>s,qm:()=>a});var r=n(41948),i=n(12552);let o=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,r._)([(0,i.c)("esri.core.Identifiable")],e),e},a=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return e=(0,r._)([(0,i.c)("esri.core.NumericIdentifiable")],e),e};let l=class extends(s(class{})){};l=(0,r._)([(0,i.c)("esri.core.Identifiable")],l)},63316:(t,e,n)=>{n.d(e,{AD:()=>h,wV:()=>u});var r=n(2600),i=n(20744),o=n(10860),s=n(28176),a=n(49416);let l=null,c=!0;function u(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(c)try{return new ImageData(t,e,n)}catch(t){c=!1}const i=function(t,e,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(t,e)}(e,n,r);return i.data.set(t,0),i}async function h(t,e){const{arrayBuffer:l,mediaType:c}=await async function(t,e){const n=(0,s.nV)(t);if(n?.isBase64)return{arrayBuffer:(0,a.K)(n.data),mediaType:n.mediaType};const i=await(0,r.c)(t,{responseType:"array-buffer",...e});return{arrayBuffer:i.data,mediaType:i.getHeader?.("Content-Type")??""}}(t,e),u="image/png"===c;if("image/gif"===c){const{isAnimatedGIF:t,parseGif:r}=await n.e(8560).then(n.bind(n,68560));if(t(l))return r(l,e)}if(u){const{isAnimatedPNG:t,parseApng:r}=await n.e(4464).then(n.bind(n,84464));if(t(l))return r(l,e)}return async function(t,e){const n=window.URL.createObjectURL(t);try{const{data:t}=await(0,r.c)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,o.mA)(t))throw new i.c("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:c}),e)}},68612:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,r,i,o,s,a,l){return[t,e,n,r,i,o,s,a,l]}n.d(e,{IJ:()=>o,Su:()=>r,WK:()=>i});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:i},Symbol.toStringTag,{value:"Module"}))},85256:(t,e,n)=>{function r(){return[0,0]}function i(t,e){return[t,e]}function o(){return i(1,1)}function s(){return i(1,0)}function a(){return i(0,1)}n.d(e,{Qw:()=>l,Su:()=>r,WK:()=>i});const l=o(),c=s(),u=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:c,UNIT_Y:u,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:function(t,e){return new Float64Array(t,e,2)},fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:o,unitX:s,unitY:a,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,e,n)=>{n.d(e,{KU:()=>h,QT:()=>f,S_:()=>a,WO:()=>o,_7:()=>l,aU:()=>u,iW:()=>c,kr:()=>i,oL:()=>s,yy:()=>p});var r=n(47364);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function o(t,e,n,r,i,o,s,a,l,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=a,t[7]=l,t[8]=c,t}function s(t,e){if(t===e){const n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=u*s-a*c,p=-u*o+a*l,d=c*o-s*l;let f=n*h+r*p+i*d;return f?(f=1/f,t[0]=h*f,t[1]=(-u*r+i*c)*f,t[2]=(a*r-i*s)*f,t[3]=p*f,t[4]=(u*n-i*l)*f,t[5]=(-a*n+i*o)*f,t[6]=d*f,t[7]=(-c*n+r*l)*f,t[8]=(s*n-r*o)*f,t):null}function l(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8];return t[0]=s*u-a*c,t[1]=i*c-r*u,t[2]=r*a-i*s,t[3]=a*l-o*u,t[4]=n*u-i*l,t[5]=i*o-n*a,t[6]=o*c-s*l,t[7]=r*l-n*c,t[8]=n*s-r*o,t}function c(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],c=e[6],u=e[7],h=e[8],p=n[0],d=n[1],f=n[2],m=n[3],y=n[4],g=n[5],_=n[6],x=n[7],v=n[8];return t[0]=p*r+d*s+f*c,t[1]=p*i+d*a+f*u,t[2]=p*o+d*l+f*h,t[3]=m*r+y*s+g*c,t[4]=m*i+y*a+g*u,t[5]=m*o+y*l+g*h,t[6]=_*r+x*s+v*c,t[7]=_*i+x*a+v*u,t[8]=_*o+x*l+v*h,t}function u(t,e,n){const r=n[0],i=n[1],o=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=o*e[6],t[7]=o*e[7],t[8]=o*e[8],t}function h(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=n+n,a=r+r,l=i+i,c=n*s,u=r*s,h=r*a,p=i*s,d=i*a,f=i*l,m=o*s,y=o*a,g=o*l;return t[0]=1-h-f,t[3]=u-g,t[6]=p+y,t[1]=u+g,t[4]=1-c-f,t[7]=d-m,t[2]=p-y,t[5]=d+m,t[8]=1-c-h,t}function p(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=e[9],p=e[10],d=e[11],f=e[12],m=e[13],y=e[14],g=e[15],_=n*a-r*s,x=n*l-i*s,v=n*c-o*s,w=r*l-i*a,b=r*c-o*a,M=i*c-o*l,q=u*m-h*f,P=u*y-p*f,S=u*g-d*f,I=h*y-p*m,E=h*g-d*m,R=p*g-d*y;let A=_*R-x*E+v*I+w*S-b*P+M*q;return A?(A=1/A,t[0]=(a*R-l*E+c*I)*A,t[1]=(l*S-s*R-c*P)*A,t[2]=(s*E-a*S+c*q)*A,t[3]=(i*E-r*R-o*I)*A,t[4]=(n*R-i*S+o*P)*A,t[5]=(r*S-n*E-o*q)*A,t[6]=(m*M-y*b+g*w)*A,t[7]=(y*v-f*M-g*x)*A,t[8]=(f*b-m*v+g*_)*A,t):null}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function f(t){const e=(0,r.Au)(),n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=t[8];return Math.abs(1-(n*n+s*s+c*c))<=e&&Math.abs(1-(i*i+a*a+u*u))<=e&&Math.abs(1-(o*o+l*l+h*h))<=e}const m=c,y=d;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],l=t[7],c=t[8];return e*(c*o-s*l)+n*(-c*i+s*a)+r*(l*i-o*a)},equals:function(t,e){const n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=t[8],p=e[0],d=e[1],f=e[2],m=e[3],y=e[4],g=e[5],_=e[6],x=e[7],v=e[8],w=(0,r.Au)();return Math.abs(n-p)<=w*Math.max(1,Math.abs(n),Math.abs(p))&&Math.abs(i-d)<=w*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-f)<=w*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(s-m)<=w*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(a-y)<=w*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(l-g)<=w*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(c-_)<=w*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(u-x)<=w*Math.max(1,Math.abs(u),Math.abs(x))&&Math.abs(h-v)<=w*Math.max(1,Math.abs(h),Math.abs(v))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:i,fromQuat:h,fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:f,mul:m,multiply:c,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:p,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],i=e[2],o=e[4],s=e[5],a=e[6],l=e[8],c=e[9],u=e[10],h=u*s-a*c,p=-u*o+a*l,d=c*o-s*l,f=n*h+r*p+i*d;if(!f)return null;const m=1/f;return t[0]=h*m,t[1]=(-u*r+i*c)*m,t[2]=(a*r-i*s)*m,t[3]=p*m,t[4]=(u*n-i*l)*m,t[5]=(-a*n+i*o)*m,t[6]=d*m,t[7]=(-c*n+r*l)*m,t[8]=(s*n-r*o)*m,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],c=e[6],u=e[7],h=e[8],p=Math.sin(n),d=Math.cos(n);return t[0]=d*r+p*s,t[1]=d*i+p*a,t[2]=d*o+p*l,t[3]=d*s-p*r,t[4]=d*a-p*i,t[5]=d*l-p*o,t[6]=c,t[7]=u,t[8]=h,t},scale:u,scaleByVec2:function(t,e,n){const r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t},set:o,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:y,subtract:d,translate:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],c=e[6],u=e[7],h=e[8],p=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=s,t[4]=a,t[5]=l,t[6]=p*r+d*s+c,t[7]=p*i+d*a+u,t[8]=p*o+d*l+h,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},37648:(t,e,n)=>{n.d(e,{Cq:()=>p,WO:()=>i,c9:()=>f,m4:()=>d,qy:()=>l});var r=n(47364);function i(t,e,n){return t[0]=e,t[1]=n,t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function a(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){const n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function c(t,e){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function u(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function h(t){const e=t[0],n=t[1];return e*e+n*n}function p(t,e,n,r){const i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function d(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function f(t,e,n,r){const i=e[0]-n[0],o=e[1]-n[1],s=Math.sin(r),a=Math.cos(r);return t[0]=i*a-o*s+n[0],t[1]=i*s+o*a+n[1],t}const m=u,y=o,g=s,_=a,x=l,v=c,w=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},angle:function(t,e){const n=t[0],r=t[1],i=e[0],o=e[1];let s=n*n+r*r;s>0&&(s=1/Math.sqrt(s));let a=i*i+o*o;a>0&&(a=1/Math.sqrt(a));const l=(n*i+r*o)*s*a;return l>1?0:l<-1?Math.PI:Math.acos(l)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,n){const r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},dist:x,distance:l,div:_,divide:a,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const n=t[0],i=t[1],o=e[0],s=e[1],a=(0,r.Au)();return Math.abs(n-o)<=a*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-s)<=a*Math.max(1,Math.abs(i),Math.abs(s))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:m,length:u,lerp:p,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:g,multiply:s,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const n=e[0],r=e[1];let i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t},projectAndScale:function(t,e,n,r,i){let o=e[0]-n[0],s=e[1]-n[1];const a=(r[0]*o+r[1]*s)*(i-1);return o=r[0]*a,s=r[1]*a,t[0]=e[0]+o,t[1]=e[1]+s,t},random:function(t,e){e=e||1;const n=2*(0,r.QR)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:f,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},set:i,sqrDist:v,sqrLen:w,squaredDistance:c,squaredLength:h,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:y,subtract:o,transformMat2:function(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},transformMat2d:d,transformMat3:function(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},transformMat4:function(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}},Symbol.toStringTag,{value:"Module"}))},3024:(t,e,n)=>{n.d(e,{U:()=>s});var r=n(92400),i=n(24680),o=n(85304);class s{constructor(t=9,e){this._compareMinX=u,this._compareMinY=h,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),v.prune(),w.prune(),b.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(g(t,n))for(x.clear();n;){for(let i=0,o=n.children.length;i<o;i++){const o=n.children[i],s=n.leaf?r(o):o;g(t,s)&&(n.leaf?e(o):y(t,s)?this._all(o,e):x.push(o))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!g(t,e))return!1;for(x.clear();e;){for(let r=0,i=e.children.length;r<i;r++){const i=e.children[r],o=e.leaf?n(i):i;if(g(t,o)){if(e.leaf||y(t,o))return!0;x.push(i)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new P([]),this}remove(t){if(!t)return this;let e,n=this._data,i=null,o=0,s=!1;const a=this._toBBox(t);for(w.clear(),b.clear();n||w.length>0;){if(n||(n=w.pop(),i=w.data[w.length-1],o=b.pop()??0,s=!0),n.leaf&&(e=(0,r.IP)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),w.push(n),this._condense(w),this;s||n.leaf||!y(n,a)?i?(o++,n=i.children[o],s=!1):n=null:(w.push(n),b.push(o),o=0,i=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(v.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else v.pushArray(n.children);n=v.pop()??null}}_build(t,e,n,r){const i=n-e+1;let o=this._maxEntries;if(i<=o){const r=new P(t.slice(e,n+1));return a(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(o)),o=Math.ceil(i/o**(r-1)));const s=new S([]);s.height=r;const l=Math.ceil(i/o),c=l*Math.ceil(Math.sqrt(o));_(t,e,n,c,this._compareMinX);for(let i=e;i<=n;i+=c){const e=Math.min(i+c-1,n);_(t,i,e,l,this._compareMinY);for(let n=i;n<=e;n+=l){const i=Math.min(n+l-1,e);s.children.push(this._build(t,n,i,r-1))}}return a(s,this._toBBox),s}_chooseSubtree(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let o=0,s=e.children.length;o<s;o++){const s=e.children[o],a=p(s),l=f(t,s)-a;l<i?(i=l,r=a<r?a:r,n=s):l===i&&a<r&&(r=a,n=s)}e=n||e.children[0]}return e}_insert(t,e,n){const r=this._toBBox,i=n?t:r(t);w.clear();const o=this._chooseSubtree(i,this._data,e,w);for(o.children.push(t),c(o,i);e>=0&&w.data[e].children.length>this._maxEntries;)this._split(w,e),e--;this._adjustParentBBoxes(i,w,e)}_split(t,e){const n=t.data[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const o=this._chooseSplitIndex(n,i,r);if(!o)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const s=n.children.splice(o,n.children.length-o),l=n.leaf?new P(s):new S(s);l.height=n.height,a(n,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(n,l)}_splitRoot(t,e){this._data=new S([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,i,o;r=i=1/0;for(let s=e;s<=n-e;s++){const e=l(t,0,s,this._toBBox),a=l(t,s,n,this._toBBox),c=m(e,a),u=p(e)+p(a);c<r?(r=c,o=s,i=u<i?u:i):c===r&&u<i&&(i=u,o=s)}return o}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:u,i=t.leaf?this._compareMinY:h;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const i=this._toBBox,o=l(t,0,e,i),s=l(t,n-e,n,i);let a=d(o)+d(s);for(let r=e;r<n-e;r++){const e=t.children[r];c(o,t.leaf?i(e):e),a+=d(o)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];c(s,t.leaf?i(e):e),a+=d(s)}return a}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)c(e.data[r],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const i=t.data[e-1],o=i.children;o.splice((0,r.IP)(o,n,o.length,i.indexHint),1)}else this.clear();else a(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,r,i){i||(i=new P([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o,s=e;s<n;s++)o=t.children[s],c(i,t.leaf?r(o):o);return i}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function u(t,e){return t.minX-e.minX}function h(t,e){return t.minY-e.minY}function p(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function f(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function m(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function y(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function _(t,e,n,r,i){const s=[e,n];for(;s.length;){const e=s.pop(),n=s.pop();if(e-n<=r)continue;const a=n+Math.ceil((e-n)/r/2)*r;(0,o.q)(t,a,n,e,i),s.push(n,a,a,e)}}const x=new i.c,v=new i.c,w=new i.c,b=new i.c({deallocator:void 0});class M{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class q extends M{constructor(){super(...arguments),this.height=1,this.indexHint=new r.is}}class P extends q{constructor(t){super(),this.children=t,this.leaf=!0}}class S extends q{constructor(t){super(),this.children=t,this.leaf=!1}}},57896:(t,e,n)=>{n.d(e,{Eq:()=>p,KG:()=>g,_8:()=>y,_I:()=>c,aE:()=>l,du:()=>m,on:()=>h}),n(40196),n(2952);var r=n(60976),i=n(38912),o=n(70680),s=n(10860),a=n(37176);function l(t,e,n={}){return u(t,e,n,d)}function c(t,e,n={}){return u(t,e,n,f)}function u(t,e,n={},r){let i=null;const s=n.once?(t,n)=>{r(t)&&((0,o.oR)(i),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(i=(0,a.M9)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return i}function h(t,e,n,s={}){let a=null,c=null,u=null;function h(){a&&c&&(c.remove(),s.onListenerRemove?.(a),a=null,c=null)}function p(t){s.once&&s.once&&(0,o.oR)(u),n(t)}const d=l(t,((t,n)=>{h(),(0,r.sh)(t)&&(a=t,c=(0,r.on)(t,e,p),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return u=(0,i.uU)((()=>{d.remove(),h()})),u}function p(t,e){return function(t,e,n){if((0,s.wv)(n))return Promise.reject((0,s.Uh)());const r=t();if(e?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,o.oR)(a)}return new Promise(((r,o)=>{a=(0,i.Ip)([(0,s.wD)(n,(()=>{l(),o((0,s.Uh)())})),u(t,(t=>{l(),r(t)}),{sync:!1,once:!0},e??d)])}))}(t,f,e)}function d(t){return!0}function f(t){return!!t}n(41168);const m={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},63564:(t,e,n)=>{n.d(e,{Mr:()=>s,cf:()=>o,g1:()=>i});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}},44048:(t,e,n)=>{n.d(e,{Hh:()=>s,iM:()=>c,wb:()=>l,yK:()=>a});var r=n(48516),i=n(56156),o=n(6704);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.c({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.c.WebMercator}),minus180Line:new r.c({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.c.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.c({paths:[[[180,-180],[180,180]]],spatialReference:i.c.WGS84}),minus180Line:new r.c({paths:[[[-180,-180],[-180,180]]],spatialReference:i.c.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=c(t);for(const t of n)for(const n of t)n[0]+=e;return t}function c(t){return(0,o.Cs)(t)?t.rings:t.paths}},81436:(t,e,n)=>{n.d(e,{c:()=>x});var r=n(41948),i=(n(60708),n(2600)),o=n(20744),s=n(77860),a=n(22156),l=n(95800),c=n(66360),u=n(10860),h=n(28176),p=n(1580),d=(n(9456),n(72052),n(12552)),f=n(6220),m=n(95247),y=n(56156);let g=0,_=class extends(s.c.EventedMixin((0,a.MR)(l.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.c(-180,-90,180,90,y.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.c.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 n.e(9232).then(n.bind(n,69232))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(2259).then(n.bind(n,12259));try{return await r(e)}catch(t){const n=e&&e.portalItem,r=n?.id||"unset",i=n&&n.portal&&n.portal.url||f.default.portalUrl;throw c.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,u.mA)(t)||c.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"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):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,h.as)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,i.c)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,p.qq)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,r._)([(0,p.qq)({type:m.c})],_.prototype,"fullExtent",void 0),(0,r._)([(0,p.qq)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,r._)([(0,p.qq)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,r._)([(0,p.qq)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,r._)([(0,p.qq)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,r._)([(0,p.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,r._)([(0,p.qq)({clonable:!1})],_.prototype,"parent",void 0),(0,r._)([(0,p.qq)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,r._)([(0,p.qq)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,r._)([(0,p.qq)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,r._)([(0,p.qq)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,r._)([(0,p.qq)({type:y.c})],_.prototype,"spatialReference",void 0),(0,r._)([(0,p.qq)({type:String})],_.prototype,"title",void 0),(0,r._)([(0,p.qq)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,r._)([(0,p.qq)()],_.prototype,"url",void 0),(0,r._)([(0,p.qq)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,r._)([(0,d.c)("esri.layers.Layer")],_);const x=_},66664:(t,e,n)=>{n.r(e),n.d(e,{default:()=>he});var r=n(41948),i=n(2952),o=n(20744),s=n(66360),a=n(26496),l=n(10860),c=n(1580),u=n(33392),h=(n(72052),n(9456),n(33600)),p=n(12552),d=n(18996),f=n(71448),m=n(81436),y=n(25216),g=n(66576),_=n(98768),x=n(3116),v=n(2600),w=n(63316),b=n(28176),M=n(63564),q=n(22156),P=n(95800),S=n(43780),I=n(40504),E=n(77556),R=n(68612),A=n(37648),O=n(98472);const T=(0,n(62484).Su)(),L=(0,R.Su)(),B=(0,R.Su)(),C=(0,R.Su)();function j(t,e,n){return(0,O.s)(T,e[0],e[1],1),(0,O.t)(T,T,(0,E.oL)(L,n)),0===T[2]?(0,A.WO)(t,T[0],T[1]):(0,A.WO)(t,T[0]/T[2],T[1]/T[2])}function U(t,e,n){return W(B,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),W(C,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,E.iW)(t,(0,E._7)(B,B),C),0!==t[8]&&(t[0]/=t[8],t[1]/=t[8],t[2]/=t[8],t[3]/=t[8],t[4]/=t[8],t[5]/=t[8],t[6]/=t[8],t[7]/=t[8],t[8]/=t[8]),t}function W(t,e,n,r,i,o,s,a,l){(0,E.WO)(t,e,r,o,n,i,s,1,1,1),(0,O.s)(T,a,l,1),(0,E._7)(L,t);const[c,u,h]=(0,O.t)(T,T,(0,E.oL)(L,L));return(0,E.WO)(L,c,0,0,0,u,0,0,0,h),(0,E.iW)(t,L,t)}var X=n(50144),N=n(85256),Y=n(67776),H=n(7488),F=n(60074),D=n(56156),z=n(3856);let $=class extends z.m{projectOrWarn(t,e){if(null==t)return t;const{geometry:n,pending:r}=(0,F.projectOrLoad)(t,e);return r?null:r||n?n:(s.c.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};$=(0,r._)([(0,p.c)("esri.layers.support.GeoreferenceBase")],$);const G=$,V=(0,R.Su)(),k=(0,N.Su)();let K=class extends S.c{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,r._)([(0,c.qq)()],K.prototype,"sourcePoint",void 0),(0,r._)([(0,c.qq)({type:Y.c})],K.prototype,"mapPoint",void 0),K=(0,r._)([(0,p.c)("esri.layers.support.ControlPoint")],K);let J=class extends((0,I.Ib)(G)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=D.c.fromJSON(e.spatialReference),r=(0,R.WK)(...e.coefficients,1);return t.map((t=>((0,A.WO)(k,t.x,t.y),j(k,k,r),{sourcePoint:t,mapPoint:new Y.c({x:k[0],y:k[1],spatialReference:n})})))}writeControlPoints(t,e,n,r){if(null!=this.transform)null!=t&&Q(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint;return{x:e.x,y:e.y}})),e.spatialReference=t[0].mapPoint.spatialReference.toJSON(),e.coefficients=this.transform.slice(0,8));else{const t=new o.c("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration.",{layer:r?.layer,georeference:this});r?.messages?r.messages.push(t):s.c.getLogger(this).error(t.name,t.message)}}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(V);if(null==t||!Q(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,r){const i=(0,N.WK)(0,n),o=(0,N.WK)(0,0),s=(0,N.WK)(e,0),a=(0,N.WK)(e,n);return j(i,i,t),j(o,o,t),j(s,s,t),j(a,a,t),new H.c({rings:[[i,o,s,a,i]],spatialReference:r})}(t,this.width,this.height,e)}set coords(t){if(null==this.controlPoints||!Q(this.controlPoints[0]))return;const e=this.controlPoints[0].mapPoint.spatialReference;if(null==(t=this.projectOrWarn(t,e)))return;const{width:n,height:r}=this,{rings:[[i,o,s,a]]}=t,l={sourcePoint:(0,X.Gy)(0,r),mapPoint:new Y.c({x:i[0],y:i[1],spatialReference:e})},c={sourcePoint:(0,X.Gy)(0,0),mapPoint:new Y.c({x:o[0],y:o[1],spatialReference:e})},u={sourcePoint:(0,X.Gy)(n,0),mapPoint:new Y.c({x:s[0],y:s[1],spatialReference:e})},h={sourcePoint:(0,X.Gy)(n,r),mapPoint:new Y.c({x:a[0],y:a[1],spatialReference:e})};Q(l)&&Q(c)&&Q(u)&&Q(h)&&(ct(V,l,c,u,h),this.controlPoints=this.controlPoints.map((({sourcePoint:t})=>((0,A.WO)(k,t.x,t.y),j(k,k,V),{sourcePoint:t,mapPoint:new Y.c({x:k[0],y:k[1],spatialReference:e})}))))}get inverseTransform(){return null==this.transform?null:(0,E.S_)((0,R.Su)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!Q(this.controlPoints[0]))return null;(0,A.WO)(k,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return j(k,k,this.transform),new Y.c({x:k[0],y:k[1],spatialReference:e})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!Q(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=(0,F.projectOrLoad)(t,e).geometry)?null:((0,A.WO)(k,t.x,t.y),j(k,k,this.inverseTransform),(0,X.Gy)(k[0],k[1]))}toSourceNormalized(t){const e=this.toSource(t);return null!=e&&(e.x/=this.width,e.y/=this.height),e}_updateTransform(t){const{controlPoints:e,width:n,height:r}=this;if(!(null!=e&&n>0&&r>0))return null;const[i,o,s,a]=e;if(!Q(i))return null;const l=i.mapPoint.spatialReference,c=this._projectControlPoint(o,l),u=this._projectControlPoint(s,l),h=this._projectControlPoint(a,l);if(!c.valid||!u.valid||!h.valid)return null;if(!Q(c.controlPoint))return null;null==t&&(t=(0,R.Su)());let p=null;return p=Q(u.controlPoint)&&Q(h.controlPoint)?ct(t,i,c.controlPoint,u.controlPoint,h.controlPoint):Q(u.controlPoint)?function(t,e,n,r){return lt(Z,rt,e),lt(tt,it,n),lt(et,ot,r),(0,A.Cq)(nt,Z,tt,.5),(0,A.c9)(nt,et,nt,Math.PI),(0,A.Cq)(st,rt,it,.5),(0,A.c9)(st,ot,st,Math.PI),dt(t,Z,tt,et,nt,rt,it,ot,st)}(t,i,c.controlPoint,u.controlPoint):function(t,e,n){return lt(Z,rt,e),lt(tt,it,n),(0,A.c9)(et,tt,Z,at),(0,A.c9)(nt,Z,tt,at),(0,A.c9)(ot,it,rt,-at),(0,A.c9)(st,rt,it,-at),dt(t,Z,tt,et,nt,rt,it,ot,st)}(t,i,c.controlPoint),p.every((t=>0===t))?null:p}_projectControlPoint(t,e){if(!Q(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:r}=t,{geometry:i,pending:o}=(0,F.projectOrLoad)(r,e);return o?{valid:!1,controlPoint:null}:o||i?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:i}}:(s.c.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:r.spatialReference,targetSpatialReference:e}),{valid:!1,controlPoint:null})}};function Q(t){return null!=t?.sourcePoint&&null!=t.mapPoint}(0,r._)([(0,c.qq)({type:[K],json:{write:{allowNull:!1,isRequired:!0}}})],J.prototype,"controlPoints",void 0),(0,r._)([(0,h.E)("controlPoints")],J.prototype,"readControlPoints",null),(0,r._)([(0,d.G)("controlPoints")],J.prototype,"writeControlPoints",null),(0,r._)([(0,c.qq)()],J.prototype,"coords",null),(0,r._)([(0,c.qq)({json:{write:!0}})],J.prototype,"height",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],J.prototype,"inverseTransform",null),(0,r._)([(0,c.qq)({readOnly:!0})],J.prototype,"transform",null),(0,r._)([(0,c.qq)({json:{write:!0}})],J.prototype,"width",void 0),J=(0,r._)([(0,p.c)("esri.layers.support.ControlPointsGeoreference")],J);const Z=(0,N.Su)(),tt=(0,N.Su)(),et=(0,N.Su)(),nt=(0,N.Su)(),rt=(0,N.Su)(),it=(0,N.Su)(),ot=(0,N.Su)(),st=(0,N.Su)(),at=Math.PI/2;function lt(t,e,n){(0,A.WO)(t,n.sourcePoint.x,n.sourcePoint.y),(0,A.WO)(e,n.mapPoint.x,n.mapPoint.y)}function ct(t,e,n,r,i){return lt(Z,rt,e),lt(tt,it,n),lt(et,ot,r),lt(nt,st,i),dt(t,Z,tt,et,nt,rt,it,ot,st)}const ut=new Array(8).fill(0),ht=new Array(8).fill(0);function pt(t,e,n,r,i){return t[0]=e[0],t[1]=e[1],t[2]=n[0],t[3]=n[1],t[4]=r[0],t[5]=r[1],t[6]=i[0],t[7]=i[1],t}function dt(t,e,n,r,i,o,s,a,l){return U(t,pt(ut,e,n,r,i),pt(ht,o,s,a,l))}const ft=J,mt=(0,N.Su)();let yt=class extends G{constructor(t){super(t),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:t,topRight:e,bottomLeft:n,bottomRight:r}=this;if(null==t||null==e||null==n||null==r)return null;const i=t.spatialReference;return e=this.projectOrWarn(e,i),n=this.projectOrWarn(n,i),r=this.projectOrWarn(r,i),null==e||null==n||null==r?null:new H.c({rings:[[[n.x,n.y],[t.x,t.y],[e.x,e.y],[r.x,r.y],[n.x,n.y]]],spatialReference:i})}set coords(t){const{topLeft:e}=this;if(null==e)return;const n=e.spatialReference;if(null==(t=this.projectOrWarn(t,n)))return;const{rings:[[r,i,o,s]]}=t;this.bottomLeft=new Y.c({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new Y.c({x:i[0],y:i[1],spatialReference:n}),this.topRight=new Y.c({x:o[0],y:o[1],spatialReference:n}),this.bottomRight=new Y.c({x:s[0],y:s[1],spatialReference:n})}toSourceNormalized(t){const{topLeft:e,topRight:n,bottomRight:r,bottomLeft:i}=this;if(null==t||null==e||null==n||null==r||null==i)return null;const o=e.spatialReference;t=t.normalize();const s=(0,F.projectOrLoad)(t,o).geometry;if(null==s)return null;(0,A.WO)(mt,s.x,s.y);const a=U((0,R.Su)(),[e.x,e.y,i.x,i.y,n.x,n.y,r.x,r.y],[0,0,0,1,1,0,1,1]);return j(mt,mt,a),(0,X.Gy)(mt[0],mt[1])}};(0,r._)([(0,c.qq)()],yt.prototype,"coords",null),(0,r._)([(0,c.qq)({type:Y.c})],yt.prototype,"bottomLeft",void 0),(0,r._)([(0,c.qq)({type:Y.c})],yt.prototype,"bottomRight",void 0),(0,r._)([(0,c.qq)({type:Y.c})],yt.prototype,"topLeft",void 0),(0,r._)([(0,c.qq)({type:Y.c})],yt.prototype,"topRight",void 0),yt=(0,r._)([(0,p.c)("esri.layers.support.CornersGeoreference")],yt);const gt=yt;var _t=n(53648),xt=n(47364),vt=n(95247);let wt=class extends G{constructor(t){super(t),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:i}=this.extent;let o;if(this.rotation){const{x:i,y:s}=this.extent.center,a=bt(i,s,this.rotation);o=[a(t,e),a(t,r),a(n,r),a(n,e)],o.push(o[0])}else o=[[t,e],[t,r],[n,r],[n,e],[t,e]];return new H.c({rings:[o],spatialReference:i})}set coords(t){if(null==t||null==this.extent)return;const e=this.extent.spatialReference;if(t=this.projectOrWarn(t,e),null==t?.extent)return;const{rings:[[n,r,i]],extent:{center:{x:o,y:s}}}=t,a=(0,_t.UB)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),l=bt(o,s,-a),[c,u]=l(n[0],n[1]),[h,p]=l(i[0],i[1]);this.extent=new vt.c({xmin:c,ymin:u,xmax:h,ymax:p,spatialReference:e}),this.rotation=a}toSourceNormalized(t){const{extent:e,rotation:n}=this;if(null==t||null==e)return null;const{xmin:r,ymin:i,xmax:o,ymax:s,center:a,spatialReference:l}=e;t=t.normalize();const c=(0,F.projectOrLoad)(t,l).geometry;if(null==c)return null;let u=c.x,h=c.y;return n&&([u,h]=bt(a.x,a.y,-n)(u,h)),(0,X.Gy)((0,_t.aU)(u,r,o,0,1),(0,_t.aU)(h,s,i,0,1))}};function bt(t,e,n){const r=(0,xt.Af)(n),i=Math.cos(r),o=Math.sin(r);return(n,r)=>[i*(n-t)+o*(r-e)+t,i*(r-e)-o*(n-t)+e]}(0,r._)([(0,c.qq)()],wt.prototype,"coords",null),(0,r._)([(0,c.qq)({type:vt.c})],wt.prototype,"extent",void 0),(0,r._)([(0,c.qq)({type:Number})],wt.prototype,"rotation",void 0),wt=(0,r._)([(0,p.c)("esri.layers.support.ExtentAndRotationGeoreference")],wt);const Mt={key:"type",base:G,typeMap:{"control-points":ft,corners:gt,"extent-and-rotation":wt}},qt={key:"type",base:G,typeMap:{"control-points":ft}};let Pt=class extends((0,q.qm)((0,a.U)(P.c))){constructor(t){super(t),this.georeference=null,this.opacity=1}readGeoreference(t){return ft.fromJSON(t)}get contentWidth(){return 0}get contentHeight(){return 0}toSource(t){const{georeference:e,contentWidth:n,contentHeight:r}=this;if(null==t||null==e||0===n||0===r)return null;const i=e.toSourceNormalized(t);return null==i?null:(i.x*=n,i.y*=r,i)}};(0,r._)([(0,c.qq)({types:Mt,json:{write:!0,types:qt}})],Pt.prototype,"georeference",void 0),(0,r._)([(0,h.E)("georeference")],Pt.prototype,"readGeoreference",null),(0,r._)([(0,c.qq)({json:{read:!1,write:!1}})],Pt.prototype,"opacity",void 0),Pt=(0,r._)([(0,p.c)("esri.layers.support.MediaElementBase")],Pt);const St=Pt;n(60708);var It=n(60544);function Et(t,e){const n=(0,f.CQ)(e);return r=t,"media"===r?.type&&!!t.portalItem&&null!=n&&n>f.sT.PORTAL_ITEM;var r}var Rt=n(73960),At=n(91952);let Ot=class extends St{constructor(t){super(t),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,w.AD)(t).then((t=>{this._set("content",t)}));this.addResolvingPromise(e)}else if(t instanceof HTMLImageElement){const e=t.decode().then((()=>{this._set("content",t)}));this.addResolvingPromise(e)}else t?this._set("content",t):this.addResolvingPromise(Promise.reject(new o.c("image-element:invalid-image-type","Invalid image type",{image:t})));return Promise.resolve(this)}get contentWidth(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalWidth:this.content.width}get contentHeight(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalHeight:this.content.height}readImage(t,e,n){return(0,At.f)(e.url,n)}writeImage(t,e,n,r){if(null==t)return;const i=r?.portalItem,o=r?.resources;if(!i||!o)return void("string"==typeof t&&(e[n]=(0,At.t)(t,r)));const s=function(t){return"string"==typeof t&&!(0,b.o9)(t)&&!(0,b.ue)(t)}(t)?t:null;if(s){if(null==(0,At.i)(s))return void(e[n]=s);const t=(0,At.t)(s,{...r,verifyItemRelativeUrls:r?.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},At.M.NO);if(i&&t&&!(0,b.ic)(t))return o.toKeep.push({resource:i.resourceFromPath(t),compress:!1}),void(e[n]=t)}e[n]="<pending>",o.pendingOperations.push(async function(t){return"string"==typeof t?(0,b.o9)(t)?(0,b.W8)(t):(await(0,v.c)(t,{responseType:"blob"})).data:new Promise((e=>function(t){if(t instanceof HTMLCanvasElement)return t;const e=t instanceof HTMLImageElement?t.naturalWidth:t.width,n=t instanceof HTMLImageElement?t.naturalHeight:t.height,r=document.createElement("canvas"),i=r.getContext("2d");return r.width=e,r.height=n,t instanceof HTMLImageElement?i.drawImage(t,0,0,t.width,t.height):t instanceof ImageData&&i.putImageData(t,0,0),r}(t).toBlob(e)))}(t).then((t=>{const r=function(t,e){const n=(0,M.g1)(),r=`${(0,b.kn)("media",n)}.${(0,Rt.e)({type:"blob",blob:t})}`;return e.resourceFromPath(r)}(t,i);e[n]=r.itemRelativeUrl,o.toAdd.push({resource:r,content:{type:"blob",blob:t},compress:!1,finish:t=>{this.image=t.url}})})))}write(t,e){const n=super.write(t,e);return"mediaType"in n&&!n.url&&delete n.mediaType,n}};(0,r._)([(0,c.qq)()],Ot.prototype,"animationOptions",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],Ot.prototype,"content",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],Ot.prototype,"contentWidth",null),(0,r._)([(0,c.qq)({readOnly:!0})],Ot.prototype,"contentHeight",null),(0,r._)([(0,c.qq)({json:{name:"url",type:String,write:{overridePolicy:(t,e,n)=>({enabled:!Et(n?.layer,n?.origin)})}}})],Ot.prototype,"image",void 0),(0,r._)([(0,h.E)("image",["url"])],Ot.prototype,"readImage",null),(0,r._)([(0,d.G)("image")],Ot.prototype,"writeImage",null),(0,r._)([(0,c.qq)({readOnly:!0,json:{read:!1,write:{target:"mediaType",ignoreOrigin:!0}}})],Ot.prototype,"type",void 0),Ot=(0,r._)([(0,p.c)("esri.layers.support.ImageElement")],Ot);const Tt=Ot;var Lt=n(30604),Bt=n(77860),Ct=n(94804),jt=n(57896),Ut=n(83372),Wt=n(41980),Xt=n(6904),Nt=n(33008),Yt=n(47452),Ht=n(6704),Ft=n(44048);function Dt(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,Ft.yK)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,Ft.yK)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,Ft.yK)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,Ft.yK)(r,n);t.x+=e*(-2*n)}}return t}function zt(t,e){const n=[],{ymin:r,ymax:i,xmin:o,xmax:s}=t,a=t.xmax-t.xmin,[l,c]=e.valid,{x:u,frameId:h}=$t(t.xmin,e),{x:p,frameId:d}=$t(t.xmax,e),f=u===p&&a>0;if(a>2*c){const t={xmin:o<s?u:p,ymin:r,xmax:c,ymax:i},e={xmin:l,ymin:r,xmax:o<s?p:u,ymax:i},a={xmin:0,ymin:r,xmax:c,ymax:i},f={xmin:l,ymin:r,xmax:0,ymax:i},m=[],y=[];Gt(t,a)&&m.push(h),Gt(t,f)&&y.push(h),Gt(e,a)&&m.push(d),Gt(e,f)&&y.push(d);for(let t=h+1;t<d;t++)m.push(t),y.push(t);n.push(new Kt(t,[h]),new Kt(e,[d]),new Kt(a,m),new Kt(f,y))}else u>p||f?n.push(new Kt({xmin:u,ymin:r,xmax:c,ymax:i},[h]),new Kt({xmin:l,ymin:r,xmax:p,ymax:i},[d])):n.push(new Kt({xmin:u,ymin:r,xmax:p,ymax:i},[h]));return n}function $t(t,e){const[n,r]=e.valid,i=2*r;let o,s=0;return t>r?(o=Math.ceil(Math.abs(t-r)/i),t-=o*i,s=o):t<n&&(o=Math.ceil(Math.abs(t-n)/i),t+=o*i,s=-o),{x:t,frameId:s}}function Gt(t,e){const{xmin:n,ymin:r,xmax:i,ymax:o}=e;return Vt(t,n,r)&&Vt(t,n,o)&&Vt(t,i,o)&&Vt(t,i,r)}function Vt(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function kt(t,e,n=!0){const r=!(0,Ht.cZ)(t);if(r&&(0,Yt.Wk)(t),n)return(new Qt).cut(t,e);const i=r?t.rings:t.paths,o=r?4:2,s=i.length,a=-2*e;for(let t=0;t<s;t++){const e=i[t];if(e&&e.length>=o){const t=[];for(const n of e)t.push([n[0]+a,n[1]]);i.push(t)}}return r?t.rings=i:t.paths=i,t}class Kt{constructor(t,e){this.extent=t,this.frameIds=e}}const Jt=(0,Ut.Su)();class Qt{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t[0],t[1],this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide==-1){const n=this._intersect(this._prevPt,t);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(t[0],t[1],e)}else this._lineTo(t[0],t[1],e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e,n){this._closed?(this._lineIn.push([n<=0?t:this._xCut,e]),this._lineOut.push([n>=0?t:this._xCut,e])):(n<=0&&this._lineIn.push([t,e]),n>=0&&this._lineOut.push([t,e]))}_lineTo(t,e,n){this._closed?(this._addPolyVertex(this._lineIn,n<=0?t:this._xCut,e),this._addPolyVertex(this._lineOut,n>=0?t:this._xCut,e)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([t,e])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([t,e])):this._prevSide<0?(this._lineIn.push([t,e]),this._lineOut.push([t,e])):this._prevSide>0&&(this._lineOut.push([t,e]),this._lineIn.push([t,e]))}_addPolyVertex(t,e,n){const r=t.length;r>1&&t[r-1][0]===e&&t[r-2][0]===e?t[r-1][1]=n:t.push([e,n])}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0][1]=t[e-2][1],t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]);return t[1]+n*(e[1]-t[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}let Zt=class extends S.c{constructor(t){super(t)}get bounds(){const t=this.coords;return null==t?.extent?null:(0,Ut.ER)(t.extent)}get coords(){const t=this.element.georeference?.coords;return(0,F.projectOrLoad)(t,this.spatialReference).geometry}get normalizedCoords(){return H.c.fromJSON(function(t,e){if(null==t)return null;const n=t.spatialReference,r=(0,It.Nq)(n),i=(0,I.wt)(t)?t.toJSON():t;if(!r)return i;const o=(0,It.kn)(n)?102100:4326,s=Ft.Hh[o].maxX,a=Ft.Hh[o].minX;if((0,Ht._x)(i))return Dt(i,s,a);if((0,Ht._)(i))return i.points=i.points.map((t=>Dt(t,s,a))),i;if((0,Ht.Ul)(i))return function(t,e){if(!e)return t;const n=zt(t,e).map((t=>t.extent));return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map((t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]))}}(i,r);if((0,Ht.Cs)(i)||(0,Ht.cZ)(i)){const t=(0,Nt.ac)(Jt,i),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,Ft.yK)(n.xmin,a)*(2*s),o=0===r?i:(0,Ft.wb)(i,r);return n.xmin+=r,n.xmax+=r,n.xmax>s?kt(o,s,e):n.xmin<a?kt(o,a,e):o}return i}(this.coords,!0))}get normalizedBounds(){const t=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=t?(0,Ut.ER)(t):null}};(0,r._)([(0,c.qq)()],Zt.prototype,"spatialReference",void 0),(0,r._)([(0,c.qq)()],Zt.prototype,"element",void 0),(0,r._)([(0,c.qq)()],Zt.prototype,"bounds",null),(0,r._)([(0,c.qq)()],Zt.prototype,"coords",null),(0,r._)([(0,c.qq)()],Zt.prototype,"normalizedCoords",null),(0,r._)([(0,c.qq)()],Zt.prototype,"normalizedBounds",null),Zt=(0,r._)([(0,p.c)("esri.layers.support.MediaElementView")],Zt);var te=n(60976);let ee=class extends St{constructor(t){super(t),this.autoplay=!0,this.content=null,this.type="video"}load(){const t=this.video;if("string"==typeof t){const e=document.createElement("video");e.src=t,e.crossOrigin="anonymous",e.autoplay=!0,e.muted=!0,e.loop=!0,this.addResolvingPromise(this._loadVideo(e).then((()=>{this._set("content",e)})))}else t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then((()=>{this._set("content",t)}))):this.addResolvingPromise(Promise.reject(new o.c("video-element:invalid-video-type","Invalid video type",{video:t})));return Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):s.c.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}_loadVideo(t){return new Promise(((e,n)=>{const r=(0,te.qw)(t,"canplay",(()=>{this.removeHandles("canplay"),this.autoplay?t.play().then(e,n):e()}));this.addHandles(r,"canplay"),"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",t.src?.includes("blob:")||(t.src=t.src))}))}};(0,r._)([(0,c.qq)()],ee.prototype,"autoplay",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],ee.prototype,"content",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],ee.prototype,"contentWidth",null),(0,r._)([(0,c.qq)({readOnly:!0})],ee.prototype,"contentHeight",null),(0,r._)([(0,c.qq)()],ee.prototype,"video",null),ee=(0,r._)([(0,p.c)("esri.layers.support.VideoElement")],ee);const ne=ee,re={key:"type",defaultKeyValue:"image",base:St,typeMap:{image:Tt,video:ne}},ie=i.c.ofType(re);let oe=class extends(P.c.LoadableMixin((0,Ct.g)(Bt.c.EventedAccessor))){constructor(t){super(t),this._index=new Xt.c,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=t=>{for(const e of t.removed){const t=this._elementViewsMap.get(e);this._elementViewsMap.delete(e),this._index.delete(t),this.removeHandles(t),t.destroy(),this.notifyChange("fullExtent")}const{spatialReference:e}=this;for(const n of t.added){if(this._elementViewsMap.get(n))continue;const t=new Zt({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const r=(0,jt.aE)((()=>t.coords),(()=>this._updateIndexForElement(t,!1)));this._updateIndexForElement(t,!0),this.addHandles(r,t)}this._elementsIndexes.clear(),this.elements.forEach(((t,e)=>this._elementsIndexes.set(t,e))),this.emit("refresh")},this.elements=new ie}async load(t){if((0,l.wp)(t),!this.spatialReference){const t=this.elements.find((t=>null!=t.georeference?.coords));this._set("spatialReference",t?t.georeference.coords.spatialReference:D.c.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(t){this._set("elements",(0,Lt.q)(t,this._get("elements"),ie))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return null==t?null:new vt.c({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:this.spatialReference})}set spatialReference(t){"not-loaded"===this.loadStatus?this._set("spatialReference",t):s.c.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,F.initializeProjection)(t.spatialReference,this.spatialReference,null,e);const n=(0,It.yK)(t.spatialReference,this.spatialReference)?t:(0,F.project)(t,this.spatialReference);if(!n)return[];const r=n.normalize(),i=[];for(const t of r)this._index.forEachInBounds((0,Ut.ER)(t),(({normalizedCoords:e,element:n})=>{null!=e&&(0,Wt.yu)(t,e)&&i.push(n)}));return i.sort(((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e))),i}_updateIndexForElement(t,e){const n=t.normalizedBounds,r=this._index.has(t),i=null!=n;this._index.delete(t),i&&this._index.set(t,n),this.notifyChange("fullExtent"),e||(r!==i?this.emit("refresh"):this.emit("change",{element:t.element}))}};(0,r._)([(0,c.qq)()],oe.prototype,"elements",null),(0,r._)([(0,c.qq)({readOnly:!0})],oe.prototype,"fullExtent",null),(0,r._)([(0,c.qq)()],oe.prototype,"spatialReference",null),oe=(0,r._)([(0,p.c)("esri.layers.support.LocalMediaElementSource")],oe);const se=oe;var ae=n(8616);function le(t){return"object"==typeof t&&null!=t&&"type"in t}function ce(t){return le(t)&&"image"===t.type}let ue=class extends((0,y.W)((0,x.I)((0,g.Y)((0,_.K)((0,a.U)(m.c)))))){constructor(t){super(t),this.effectiveSource=null,this.georeference=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this._debouncedSaveOperations=(0,l.Cu)((async(t,e,r)=>{const{save:i,saveAs:o}=await n.e(7852).then(n.bind(n,7852));switch(t){case ae.U.SAVE:return i(this,e);case ae.U.SAVE_AS:return o(this,r,e)}})),this.source=new se}load(t){return this.addResolvingPromise(this._doLoad(t)),Promise.resolve(this)}async _doLoad(t){await this.loadFromPortal({supportedTypes:["Media Layer"]},t);let e=this.source;if(!e)throw new o.c("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer.");const n=this._getSourceOverride(e,this.georeference);n&&(this.setAtOrigin("source",n,"web-map"),e=n);const r=le(e)?new se({elements:new i.c([e])}):e;this._set("effectiveSource",r),this.spatialReference&&(r.spatialReference=this.spatialReference),await r.load(t),this.spatialReference=r.spatialReference}destroy(){this.effectiveSource?.destroy(),this.source?.destroy()}readGeoreference(t,e){return t&&"itemId"in e&&e.itemId?t:void 0}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}set source(t){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("source",t):s.c.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)?new se({elements:new i.c(t)}):t instanceof i.c?new se({elements:t}):t:null}readSource(t,e,n){if("itemId"in e&&e.itemId)return;const r=this._createSource(e);return r?.read(e,n),r}writeSource(t,e,n,r){ce(t)?t.write(e,r):r?.messages&&r?.messages?.push(new o.c("media-layer:unsupported-source","source must be an 'ImageElement'"))}async save(t){return this._debouncedSaveOperations(ae.U.SAVE,t)}async saveAs(t,e){return this._debouncedSaveOperations(ae.U.SAVE_AS,e,t)}_createSource(t){if("mediaType"in t)switch(t.mediaType){case"image":return new Tt;case"video":return new ne}return null}_getSourceOverride(t,e){if(le(t)&&this.originIdOf("source")===f.sT.PORTAL_ITEM&&e&&this.originIdOf("georeference")===f.sT.WEB_MAP){const n=t.toJSON(),r=this._createSource(n);return r.read({...n},{origin:"portal-item"}),r.read({georeference:e},{origin:"web-map"}),r}return null}};(0,r._)([(0,c.qq)({readOnly:!0})],ue.prototype,"effectiveSource",void 0),(0,r._)([(0,c.qq)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!1}}}})],ue.prototype,"georeference",void 0),(0,r._)([(0,h.E)("web-map","georeference")],ue.prototype,"readGeoreference",null),(0,r._)([(0,c.qq)({type:String})],ue.prototype,"copyright",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],ue.prototype,"fullExtent",null),(0,r._)([(0,c.qq)({type:["MediaLayer"]})],ue.prototype,"operationalLayerType",void 0),(0,r._)([(0,c.qq)({type:["show","hide"]})],ue.prototype,"listMode",void 0),(0,r._)([(0,c.qq)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1,overridePolicy(t,e,n){return{enabled:!0,allowNull:!1,ignoreOrigin:Et(this,n?.origin)&&ce(t)&&!!t.georeference&&t.originIdOf("georeference")>f.sT.PORTAL_ITEM}}}}})],ue.prototype,"source",null),(0,r._)([(0,u.W)("source")],ue.prototype,"castSource",null),(0,r._)([(0,h.E)("source",["url"])],ue.prototype,"readSource",null),(0,r._)([(0,d.G)("source")],ue.prototype,"writeSource",null),(0,r._)([(0,c.qq)()],ue.prototype,"spatialReference",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],ue.prototype,"type",void 0),ue=(0,r._)([(0,p.c)("esri.layers.MediaLayer")],ue);const he=ue},24676:(t,e,n)=>{n.d(e,{gH:()=>P,GA:()=>S});var r,i,o=n(20744),s=n(58820),a=n(46988),l=n(65604),c=(n(8528),n(14644)),u={exports:{}};i=function(){function t(e,n,r,i){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,t.prototype),o.expected=n,o.found=r,o.location=i,o.name="SyntaxError",o}function e(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}return function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(t,Error),t.prototype.format=function(t){var n="Error: "+this.message;if(this.location){var r,i=null;for(r=0;r<t.length;r++)if(t[r].source===this.location.source){i=t[r].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,s=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+s.line+":"+s.column;if(i){var l=this.location.end,c=e("",s.line.toString().length," "),u=i[o.line-1],h=(o.line===l.line?l.column:u.length+1)-o.column||1;n+="\n --\x3e "+a+"\n"+c+" |\n"+s.line+" | "+u+"\n"+c+" | "+e("",o.column-1," ")+e("",h,"^")}else n+="\n at "+a}return n},t.buildMessage=function(t,e){var n={literal:function(t){return'"'+i(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function i(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function o(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function s(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(s);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+i(t)+'"':"end of input"}(e)+" found."},{SyntaxError:t,parse:function(e,n){var r,i={},o=(n=void 0!==n?n:{}).grammarSource,s={start:zt},a=zt,l="none",c=")",u=",",h="(",p="%",d="px",f="cm",m="mm",y="in",g="pt",_="pc",x="deg",v="rad",w="grad",b="turn",M="#",q=".",P="e",S=/^[ \t\n\r]/,I=/^[a-z\-]/,E=/^[0-9a-fA-F]/,R=/^[+\-]/,A=/^[0-9]/,O=Yt("none"),T=Xt("none",!1),L=Xt(")",!1),B=Xt(",",!1),C=Yt("whitespace"),j=Nt([" ","\t","\n","\r"],!1,!1),U=Yt("function"),W=Xt("(",!1),X=Yt("identifier"),N=Nt([["a","z"],"-"],!1,!1),Y=Yt("percentage"),H=Xt("%",!1),F=Yt("length"),D=Xt("px",!1),z=Xt("cm",!1),$=Xt("mm",!1),G=Xt("in",!1),V=Xt("pt",!1),k=Xt("pc",!1),K=Yt("angle"),J=Xt("deg",!1),Q=Xt("rad",!1),Z=Xt("grad",!1),tt=Xt("turn",!1),et=Yt("number"),nt=Yt("color"),rt=Xt("#",!1),it=Nt([["0","9"],["a","f"],["A","F"]],!1,!1),ot=Nt(["+","-"],!1,!1),st=Nt([["0","9"]],!1,!1),at=Xt(".",!1),lt=Xt("e",!1),ct=function(){return[]},ut=function(t,e){return{type:"function",name:t,parameters:e||[]}},ht=function(t,e){return e.length>0?function(t,e,n){return[t].concat(function(t,e){return t.map((function(t){return t[3]}))}(e))}(t,e):[t]},pt=function(t){return{type:"quantity",value:t.value,unit:t.unit}},dt=function(t){return{type:"color",colorType:t.type,value:t.value}},ft=function(t){return t},mt=function(){return Wt()},yt=function(t){return{value:t,unit:"%"}},gt=function(t){return{value:t,unit:"px"}},_t=function(t){return{value:t,unit:"cm"}},xt=function(t){return{value:t,unit:"mm"}},vt=function(t){return{value:t,unit:"in"}},wt=function(t){return{value:t,unit:"pt"}},bt=function(t){return{value:t,unit:"pc"}},Mt=function(t){return{value:t,unit:"deg"}},qt=function(t){return{value:t,unit:"rad"}},Pt=function(t){return{value:t,unit:"grad"}},St=function(t){return{value:t,unit:"turn"}},It=function(t){return{value:t,unit:null}},Et=function(){return{type:"hex",value:Wt()}},Rt=function(t){return{type:"function",value:t}},At=function(){return{type:"named",value:Wt()}},Ot=function(){return parseFloat(Wt())},Tt=0,Lt=0,Bt=[{line:1,column:1}],Ct=0,jt=[],Ut=0;if("startRule"in n){if(!(n.startRule in s))throw new Error("Can't start parsing from rule \""+n.startRule+'".');a=s[n.startRule]}function Wt(){return e.substring(Lt,Tt)}function Xt(t,e){return{type:"literal",text:t,ignoreCase:e}}function Nt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Yt(t){return{type:"other",description:t}}function Ht(t){var n,r=Bt[t];if(r)return r;for(n=t-1;!Bt[n];)n--;for(r={line:(r=Bt[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Bt[t]=r,r}function Ft(t,e,n){var r=Ht(t),i=Ht(e),s={source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}};return n&&o&&"function"==typeof o.offset&&(s.start=o.offset(s.start),s.end=o.offset(s.end)),s}function Dt(t){Tt<Ct||(Tt>Ct&&(Ct=Tt,jt=[]),jt.push(t))}function zt(){var t;return(t=$t())===i&&(t=function(){var t,e;if(t=[],(e=Gt())!==i)for(;e!==i;)t.push(e),e=Gt();else t=i;return t}()),t}function $t(){var t,n;return Ut++,t=Tt,kt(),e.substr(Tt,4)===l?(n=l,Tt+=4):(n=i,0===Ut&&Dt(T)),n!==i?(kt(),Lt=t,t=ct()):(Tt=t,t=i),Ut--,t===i&&0===Ut&&Dt(O),t}function Gt(){var t,n,r,o;return t=Tt,kt(),(n=function(){var t,n,r;return Ut++,t=Tt,(n=Kt())!==i?(40===e.charCodeAt(Tt)?(r=h,Tt++):(r=i,0===Ut&&Dt(W)),r!==i?(Lt=t,t=ft(n)):(Tt=t,t=i)):(Tt=t,t=i),Ut--,t===i&&(n=i,0===Ut&&Dt(U)),t}())!==i?(kt(),(r=function(){var t,n,r,o,s,a,l,c;if(t=Tt,(n=Vt())!==i){for(r=[],o=Tt,s=kt(),44===e.charCodeAt(Tt)?(a=u,Tt++):(a=i,0===Ut&&Dt(B)),a===i&&(a=null),l=kt(),(c=Vt())!==i?o=s=[s,a,l,c]:(Tt=o,o=i);o!==i;)r.push(o),o=Tt,s=kt(),44===e.charCodeAt(Tt)?(a=u,Tt++):(a=i,0===Ut&&Dt(B)),a===i&&(a=null),l=kt(),(c=Vt())!==i?o=s=[s,a,l,c]:(Tt=o,o=i);Lt=t,t=ht(n,r)}else Tt=t,t=i;return t}())===i&&(r=null),kt(),41===e.charCodeAt(Tt)?(o=c,Tt++):(o=i,0===Ut&&Dt(L)),o!==i?(kt(),Lt=t,t=ut(n,r)):(Tt=t,t=i)):(Tt=t,t=i),t}function Vt(){var t,e;return t=Tt,(e=Jt())===i&&(e=Qt())===i&&(e=Zt())===i&&(e=function(){var t,e;return Ut++,t=Tt,kt(),(e=ee())!==i?(Lt=t,t=It(e)):(Tt=t,t=i),Ut--,t===i&&0===Ut&&Dt(et),t}()),e!==i&&(Lt=t,e=pt(e)),(t=e)===i&&(t=Tt,(e=te())!==i&&(Lt=t,e=dt(e)),t=e),t}function kt(){var t,n;for(Ut++,t=[],S.test(e.charAt(Tt))?(n=e.charAt(Tt),Tt++):(n=i,0===Ut&&Dt(j));n!==i;)t.push(n),S.test(e.charAt(Tt))?(n=e.charAt(Tt),Tt++):(n=i,0===Ut&&Dt(j));return Ut--,n=i,0===Ut&&Dt(C),t}function Kt(){var t,n,r;if(Ut++,t=Tt,n=[],I.test(e.charAt(Tt))?(r=e.charAt(Tt),Tt++):(r=i,0===Ut&&Dt(N)),r!==i)for(;r!==i;)n.push(r),I.test(e.charAt(Tt))?(r=e.charAt(Tt),Tt++):(r=i,0===Ut&&Dt(N));else n=i;return n!==i&&(Lt=t,n=mt()),Ut--,(t=n)===i&&(n=i,0===Ut&&Dt(X)),t}function Jt(){var t,n,r;return Ut++,t=Tt,kt(),(n=ee())!==i?(37===e.charCodeAt(Tt)?(r=p,Tt++):(r=i,0===Ut&&Dt(H)),r!==i?(Lt=t,t=yt(n)):(Tt=t,t=i)):(Tt=t,t=i),Ut--,t===i&&0===Ut&&Dt(Y),t}function Qt(){var t,n,r;return Ut++,t=Tt,kt(),(n=ee())!==i?(e.substr(Tt,2)===d?(r=d,Tt+=2):(r=i,0===Ut&&Dt(D)),r!==i?(Lt=t,t=gt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,kt(),(n=ee())!==i?(e.substr(Tt,2)===f?(r=f,Tt+=2):(r=i,0===Ut&&Dt(z)),r!==i?(Lt=t,t=_t(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,kt(),(n=ee())!==i?(e.substr(Tt,2)===m?(r=m,Tt+=2):(r=i,0===Ut&&Dt($)),r!==i?(Lt=t,t=xt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,kt(),(n=ee())!==i?(e.substr(Tt,2)===y?(r=y,Tt+=2):(r=i,0===Ut&&Dt(G)),r!==i?(Lt=t,t=vt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,kt(),(n=ee())!==i?(e.substr(Tt,2)===g?(r=g,Tt+=2):(r=i,0===Ut&&Dt(V)),r!==i?(Lt=t,t=wt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,kt(),(n=ee())!==i?(e.substr(Tt,2)===_?(r=_,Tt+=2):(r=i,0===Ut&&Dt(k)),r!==i?(Lt=t,t=bt(n)):(Tt=t,t=i)):(Tt=t,t=i)))))),Ut--,t===i&&0===Ut&&Dt(F),t}function Zt(){var t,n,r;return Ut++,t=Tt,(n=ee())!==i?(e.substr(Tt,3)===x?(r=x,Tt+=3):(r=i,0===Ut&&Dt(J)),r!==i?(Lt=t,t=Mt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,(n=ee())!==i?(e.substr(Tt,3)===v?(r=v,Tt+=3):(r=i,0===Ut&&Dt(Q)),r!==i?(Lt=t,t=qt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,(n=ee())!==i?(e.substr(Tt,4)===w?(r=w,Tt+=4):(r=i,0===Ut&&Dt(Z)),r!==i?(Lt=t,t=Pt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,(n=ee())!==i?(e.substr(Tt,4)===b?(r=b,Tt+=4):(r=i,0===Ut&&Dt(tt)),r!==i?(Lt=t,t=St(n)):(Tt=t,t=i)):(Tt=t,t=i)))),Ut--,t===i&&(n=i,0===Ut&&Dt(K)),t}function te(){var t,n,r,o;if(Ut++,t=Tt,35===e.charCodeAt(Tt)?(n=M,Tt++):(n=i,0===Ut&&Dt(rt)),n!==i){if(r=[],E.test(e.charAt(Tt))?(o=e.charAt(Tt),Tt++):(o=i,0===Ut&&Dt(it)),o!==i)for(;o!==i;)r.push(o),E.test(e.charAt(Tt))?(o=e.charAt(Tt),Tt++):(o=i,0===Ut&&Dt(it));else r=i;r!==i?(Lt=t,t=Et()):(Tt=t,t=i)}else Tt=t,t=i;return t===i&&(t=Tt,(n=Gt())!==i&&(Lt=t,n=Rt(n)),(t=n)===i&&(t=Tt,(n=Kt())!==i&&(Lt=t,n=At()),t=n)),Ut--,t===i&&(n=i,0===Ut&&Dt(nt)),t}function ee(){var t,n,r,o,s,a,l;for(t=Tt,R.test(e.charAt(Tt))?(e.charAt(Tt),Tt++):0===Ut&&Dt(ot),n=Tt,r=[],A.test(e.charAt(Tt))?(o=e.charAt(Tt),Tt++):(o=i,0===Ut&&Dt(st));o!==i;)r.push(o),A.test(e.charAt(Tt))?(o=e.charAt(Tt),Tt++):(o=i,0===Ut&&Dt(st));if(46===e.charCodeAt(Tt)?(o=q,Tt++):(o=i,0===Ut&&Dt(at)),o!==i){if(s=[],A.test(e.charAt(Tt))?(a=e.charAt(Tt),Tt++):(a=i,0===Ut&&Dt(st)),a!==i)for(;a!==i;)s.push(a),A.test(e.charAt(Tt))?(a=e.charAt(Tt),Tt++):(a=i,0===Ut&&Dt(st));else s=i;s!==i?n=r=[r,o,s]:(Tt=n,n=i)}else Tt=n,n=i;if(n===i)if(n=[],A.test(e.charAt(Tt))?(r=e.charAt(Tt),Tt++):(r=i,0===Ut&&Dt(st)),r!==i)for(;r!==i;)n.push(r),A.test(e.charAt(Tt))?(r=e.charAt(Tt),Tt++):(r=i,0===Ut&&Dt(st));else n=i;if(n!==i){if(r=Tt,101===e.charCodeAt(Tt)?(o=P,Tt++):(o=i,0===Ut&&Dt(lt)),o!==i){if(R.test(e.charAt(Tt))?(s=e.charAt(Tt),Tt++):(s=i,0===Ut&&Dt(ot)),s===i&&(s=null),a=[],A.test(e.charAt(Tt))?(l=e.charAt(Tt),Tt++):(l=i,0===Ut&&Dt(st)),l!==i)for(;l!==i;)a.push(l),A.test(e.charAt(Tt))?(l=e.charAt(Tt),Tt++):(l=i,0===Ut&&Dt(st));else a=i;a!==i?r=o=[o,s,a]:(Tt=r,r=i)}else Tt=r,r=i;r===i&&(r=null),Lt=t,t=Ot()}else Tt=t,t=i;return t}if((r=a())!==i&&Tt===e.length)return r;throw r!==i&&Tt<e.length&&Dt({type:"end"}),function(e,n,r){return new t(t.buildMessage(e,n),e,n,r)}(jt,Ct<e.length?e.charAt(Ct):null,Ct<e.length?Ft(Ct,Ct+1):Ft(Ct,Ct))}}},(r=u).exports&&(r.exports=i());var h=u.exports;function p(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=d(t);return e&&0!==e.length?e:null}const e=t.map((t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new o.c("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:d(t.value)}}));e.sort(((t,e)=>e.effects.length-t.effects.length));for(let t=0;t<e.length-1;t++){if(!(0,c.w1)(e[t].effects,e[t+1].effects))throw new o.c("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,c.A1)(e[t].effects,e[t+1].effects)}return e.sort(((t,e)=>e.scale-t.scale)),e}function d(t){let e;if(!t)return[];try{e=h.parse(t)}catch(e){throw new o.c("effect:invalid-syntax","Invalid effect syntax",{value:t,error:e})}return e.map((t=>function(t){try{switch(t.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(t){let e=1;return f(t.parameters,1),1===t.parameters.length&&(e=x(t.parameters[0])),new l.M7(t.name,e)}(t);case"opacity":return function(t){let e=1;return f(t.parameters,1),1===t.parameters.length&&(e=x(t.parameters[0])),new l.Ez(e)}(t);case"hue-rotate":return function(t){let e=0;return f(t.parameters,1),1===t.parameters.length&&(e=function(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=g[t.unit]))throw new o.c("effect:type-error",`Expected <angle>, Actual: ${m(t)}`,{term:t})}(t),t.value*g[t.unit]||0}(t.parameters[0])),new l.C8(e)}(t);case"blur":return function(t){let e=0;return f(t.parameters,1),1===t.parameters.length&&(e=v(t.parameters[0]),y(e,t.parameters[0])),new l.o1(e)}(t);case"drop-shadow":return function(t){const e=[];let n=null;for(const r of t.parameters)if("color"===r.type){if(e.length&&Object.freeze(e),n)throw new o.c("effect:type-error","Accepts only one color",{});n=w(r)}else{const t=v(r);if(Object.isFrozen(e))throw new o.c("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&y(t,r)}if(e.length<2||e.length>3)throw new o.c("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new l.of(e[0],e[1],e[2]||0,n||b("black"))}(t);case"bloom":return function(t){let e=1,n=0,r=0;return f(t.parameters,3),t.parameters[0]&&(e=x(t.parameters[0])),t.parameters[1]&&(n=v(t.parameters[1]),y(n,t.parameters[1])),t.parameters[2]&&(r=x(t.parameters[2])),new l.qC(e,n,r)}(t)}}catch(e){throw e.details.filter=t,e}throw new o.c("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t)))}function f(t,e){if(t.length>e)throw new o.c("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function m(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in _)return"<length>";if(t.unit in g)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function y(t,e){if(t<0)throw new o.c("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}const g={deg:1,grad:.9,rad:180/Math.PI,turn:360},_={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function x(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new o.c("effect:type-error",`Expected <double> or <percentage>, Actual: ${m(t)}`,{term:t})}(t);const e=t.value;return y(e,t),"%"===t.unit?.01*e:e}function v(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=_[t.unit]))throw new o.c("effect:type-error",`Expected <length>, Actual: ${m(t)}`,{term:t})}(t),t.value*_[t.unit]||0}function w(t){switch(t.colorType){case"hex":return(0,a.yU)(t.value);case"named":return b(t.value);case"function":return function(t){if(f(t.parameters,4),M.test(t.name))return[x(t.parameters[0]),x(t.parameters[1]),x(t.parameters[2]),t.parameters[3]?x(t.parameters[3]):1];if(q.test(t.name))return(0,a.ec)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new o.c("effect:type-error",`Expected <double>, Actual: ${m(t)}`,{term:t})}(t),y(t.value,t),t.value}(t.parameters[0]),x(t.parameters[1]),x(t.parameters[2]),t.parameters[3]?x(t.parameters[3]):1);throw new o.c("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function b(t){if(!(0,a.kv)(t))throw new o.c("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,a.uO)(t)}const M=/^rgba?/i,q=/^hsla?/i;function P(t,e,n){try{return function(t){if(!t||0===t.length)return null;if(function(t){const e=t[0];return!!e&&"scale"in e}(t)){const e=[];for(const n of t)e.push({scale:n.scale,value:I(n.value)});return e}return I(t)}(t)}catch(t){n?.messages?.push(t)}return null}function S(t,e,n,r){try{const r=function(t){const e=p(t);return e?(0,c.Ub)(e)?e.map((t=>t.toJSON())):e.map((({scale:t,effects:e})=>({scale:t,value:e.map((t=>t.toJSON()))}))):null}(t);(0,s.qQ)(n,r,e)}catch(t){r.messages&&r.messages.push(t)}}function I(t){if(!t?.length)return"";const e=[];for(const n of t){let t=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":t=[E(n,"amount")];break;case"blur":t=[E(n,"radius","pt")];break;case"hue-rotate":t=[E(n,"angle","deg")];break;case"drop-shadow":t=[E(n,"xoffset","pt"),E(n,"yoffset","pt"),E(n,"blurRadius","pt"),R(n,"color")];break;case"bloom":t=[E(n,"strength"),E(n,"radius","pt"),E(n,"threshold")]}const r=`${n.type}(${t.filter(Boolean).join(" ")})`;p(r),e.push(r)}return e.join(" ")}function E(t,e,n){if(null==t[e])throw new o.c("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return n?t[e]+n:""+t[e]}function R(t,e){if(null==t[e])throw new o.c("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});const n=t[e];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},6904:(t,e,n)=>{n.d(e,{c:()=>a});var r=n(9456),i=n(3024),o=n(83372);const s={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.U(9,(0,r.c)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((n,r)=>{t[e++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,o.FZ)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){s.minX=t[0],s.minY=t[1],s.maxX=t[2],s.maxY=t[3]})(e),t.search(s,n)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},25216:(t,e,n)=>{n.d(e,{W:()=>l});var r=n(41948),i=n(1580),o=(n(9456),n(66360),n(72052),n(12552)),s=n(24676);const a={read:{reader:s.gH},write:{allowNull:!0,writer:s.GA}},l=t=>{let e=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r._)([(0,i.qq)({type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!0},"portal-item":{read:!0,write:!0}}}})],e.prototype,"blendMode",void 0),(0,r._)([(0,i.qq)({json:{read:!1,write:!1,origins:{"web-map":a,"portal-item":a}}})],e.prototype,"effect",void 0),e=(0,r._)([(0,o.c)("esri.layers.mixins.BlendLayer")],e),e}},98768:(t,e,n)=>{n.d(e,{K:()=>b});var r=n(41948),i=n(6220),o=n(47620),s=n(2600),a=n(40196),l=n(20744),c=n(66360),u=n(70680),h=n(10860),p=n(28176),d=n(1580),f=(n(9456),n(72052),n(33600)),m=n(12552),y=n(18996),g=n(71068),_=n(54872),x=n(9764),v=n(53039),w=n(46940);const b=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,n){if(e.itemId)return new x.default({id:e.itemId,portal:n?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:r}=await Promise.all([n.e(8828),n.e(4132)]).then(n.bind(n,94132));return(0,h.wp)(e),await r({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap},e)}catch(t){throw(0,h.mA)(t)||c.c.getLogger(this).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,h.CE)(t),!0))))}async setUserPrivileges(t,e){if(!i.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(t){(0,h.CE)(t)}}async _fetchUserPrivileges(t,e){let n=this.portalItem;if(!t||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(e);const r=t===n.id;if(r&&n.portal.user)return(0,w.CI)(n);let i,s;if(r)i=n.portal.url;else try{i=await(0,g.mK)(this.url,e)}catch(t){(0,h.CE)(t)}if(!i||!(0,p.Cs)(i,n.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;s=await(o.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,h.CE)(t)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(r?await n.reload():(n=new x.default({id:t,portal:{url:i}}),await n.load(e)),n.portal.user)return(0,w.CI)(n)}catch(t){(0,h.CE)(t)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,h.CE)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?o.id?.findCredential(this.url):null;if(!e)return!0;const n=M.credential===e?M.user:await this._fetchEditingUser(t);return M.credential=e,M.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const n=o.id.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,i=_.c.getDefault();if(i&&i.loaded&&(0,p.k7)(i.restUrl)===(0,p.k7)(r))return i.user;const l=`${r}/community/self`,c=null!=t?t.signal:null,u=await(0,a.aG)((0,s.c)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?v.c.fromJSON(u.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const n=e?.portal,r=this.portalItem?.id&&(this.portalItem.portal||_.c.getDefault());return n&&r&&!(0,p.kF)(r.restUrl,n.restUrl)?(e.messages&&e.messages.push(new l.c("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,r._)([(0,d.qq)({type:x.default})],e.prototype,"portalItem",null),(0,r._)([(0,f.E)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,r._)([(0,y.G)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,r._)([(0,d.qq)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,r._)([(0,d.qq)({type:Boolean,readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,d.qq)({type:Boolean,readOnly:!0})],e.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,d.qq)({type:Boolean,readOnly:!0})],e.prototype,"userHasUpdateItemPrivileges",void 0),e=(0,r._)([(0,m.c)("esri.layers.mixins.PortalLayer")],e),e},M={credential:null,user:null}},3116:(t,e,n)=>{n.d(e,{I:()=>s});var r=n(41948),i=n(1580),o=(n(9456),n(66360),n(72052),n(12552));const s=t=>{let e=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;e&&"effectiveScaleRange"in e&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===t.minScale&&n.maxScale===t.maxScale?n:t}};return(0,r._)([(0,i.qq)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"minScale",void 0),(0,r._)([(0,i.qq)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"maxScale",void 0),(0,r._)([(0,i.qq)({readOnly:!0})],e.prototype,"effectiveScaleRange",null),e=(0,r._)([(0,o.c)("esri.layers.mixins.ScaleRangeLayer")],e),e}},73960:(t,e,n)=>{n.d(e,{e:()=>i});var r=n(28176);function i(t){return o[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,r.wt)(t);return l[e]||s}(t.url)}(t)]||a}const o={},s="text/plain",a=o[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)o[l[t]]=t},8616:(t,e,n)=>{var r;n.d(e,{U:()=>r}),function(t){t[t.SAVE=0]="SAVE",t[t.SAVE_AS=1]="SAVE_AS"}(r||(r={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5076,6147],{25228:(e,t,r)=>{r.d(t,{c:()=>y});var n,i=r(41948),s=r(40504),a=r(94360),o=r(1580),l=(r(9456),r(66360),r(72052),r(33600)),u=r(12552),c=r(18996),p=r(28484);let f=n=class extends s.am{static get allTime(){return d}static get empty(){return h}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,a.aU)(r,e,t));let i=this.end;if(i){const r=(0,a.aU)(i,e,t);i=i.getTime()===r.getTime()?r:(0,a.g1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,o;return i>=t&&i<=r?a=i:t>=i&&t<=s&&(a=t),r>=i&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==a||null==o||isNaN(a)||isNaN(o)?n.empty:new n({start:a===-1/0?null:new Date(a),end:o===1/0?null:new Date(o)})}offset(e,t,r=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();const i=new n,{start:s,end:o}=this;return null!=s&&(i.start=(0,a.g1)(s,e,t,r)),null!=o&&(i.end=(0,a.g1)(o,e,t,r)),i}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i._)([(0,o.qq)({type:Date,json:{write:{allowNull:!0}}})],f.prototype,"end",void 0),(0,i._)([(0,l.E)("end")],f.prototype,"readEnd",null),(0,i._)([(0,c.G)("end")],f.prototype,"writeEnd",null),(0,i._)([(0,o.qq)({readOnly:!0,json:{read:!1}})],f.prototype,"isAllTime",null),(0,i._)([(0,o.qq)({readOnly:!0,json:{read:!1}})],f.prototype,"isEmpty",null),(0,i._)([(0,o.qq)({type:Date,json:{write:{allowNull:!0}}})],f.prototype,"start",void 0),(0,i._)([(0,l.E)("start")],f.prototype,"readStart",null),(0,i._)([(0,c.G)("start")],f.prototype,"writeStart",null),f=n=(0,i._)([(0,u.c)("esri.TimeExtent")],f);const d=new f,h=new f({start:void 0,end:void 0}),y=f},8528:(e,t,r)=>{r.d(t,{c:()=>n,g:()=>i});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},83536:(e,t,r)=>{r.d(t,{c:()=>u});var n=r(41948),i=r(2952),s=(r(40196),r(20744),r(66360),r(37176),r(41168)),a=r(1580),o=r(12552);let l=class extends i.c{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,s.ox)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new i.c(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const n of t)if(n){if(r(n)){const t=this.indexOf(n,e);t>=0?t!==e&&this.reorder(n,e):this.add(n,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(n);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,n._)([(0,a.qq)()],l.prototype,"getCollections",void 0),(0,n._)([(0,a.qq)()],l.prototype,"getChildrenFunction",void 0),(0,n._)([(0,a.qq)()],l.prototype,"itemFilterFunction",void 0),l=(0,n._)([(0,o.c)("esri.core.CollectionFlattener")],l);const u=l},57896:(e,t,r)=>{r.d(t,{Eq:()=>f,KG:()=>g,_8:()=>m,_I:()=>u,aE:()=>l,du:()=>y,on:()=>p}),r(40196),r(2952);var n=r(60976),i=r(38912),s=r(70680),a=r(10860),o=r(37176);function l(e,t,r={}){return c(e,t,r,d)}function u(e,t,r={}){return c(e,t,r,h)}function c(e,t,r={},n){let i=null;const a=r.once?(e,r)=>{n(e)&&((0,s.oR)(i),t(e,r))}:(e,r)=>{n(e)&&t(e,r)};if(i=(0,o.M9)(e,a,r.sync,r.equals),r.initial){const t=e();a(t,t)}return i}function p(e,t,r,a={}){let o=null,u=null,c=null;function p(){o&&u&&(u.remove(),a.onListenerRemove?.(o),o=null,u=null)}function f(e){a.once&&a.once&&(0,s.oR)(c),r(e)}const d=l(e,((e,r)=>{p(),(0,n.sh)(e)&&(o=e,u=(0,n.on)(e,t,f),a.onListenerAdd?.(e))}),{sync:a.sync,initial:!0});return c=(0,i.uU)((()=>{d.remove(),p()})),c}function f(e,t){return function(e,t,r){if((0,a.wv)(r))return Promise.reject((0,a.Uh)());const n=e();if(t?.(n))return Promise.resolve(n);let o=null;function l(){o=(0,s.oR)(o)}return new Promise(((n,s)=>{o=(0,i.Ip)([(0,a.wD)(r,(()=>{l(),s((0,a.Uh)())})),c(e,(e=>{l(),n(e)}),{sync:!1,once:!0},t??d)])}))}(e,h,t)}function d(e){return!0}function h(e){return!!e}r(41168);const y={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},44080:(e,t,r)=>{r.r(t),r.d(t,{default:()=>U});var n=r(41948),i=r(83536),s=r(79152),a=r(66360),o=r(26496),l=r(10860),u=r(57896),c=r(1580),p=(r(9456),r(72052),r(20916)),f=r(33600),d=r(12552),h=r(18996),y=r(71448),m=r(81436),g=r(25216),v=r(66576),b=r(98768),w=r(3116),_=r(83928),A=r(9764),x=r(2952),q=r(30604);function E(e,t,r){let n,i;if(e)for(let s=0,a=e.length;s<a;s++){if(n=e.at(s),n?.[t]===r)return n;if("group"===n?.type&&(i=E(n.layers,t,r),i))return i}}const S=e=>{let t=class extends e{constructor(...e){super(...e),this.layers=new x.c;const t=e=>{e.parent=this,this.layerAdded(e),"elevation"!==e.type&&"base-elevation"!==e.type||a.c.getLogger(this).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as an operational layer and will therefore be ignored.`)},r=e=>{e.parent=null,this.layerRemoved(e)};this.addHandles([this.layers.on("before-add",(e=>(e=>{e.parent&&"remove"in e.parent&&e.parent.remove(e)})(e.item))),this.layers.on("after-add",(e=>t(e.item))),this.layers.on("after-remove",(e=>r(e.item)))])}destroy(){const e=this.layers.toArray();for(const t of e)t.destroy();this.layers.destroy()}set layers(e){this._set("layers",(0,q.q)(e,this._get("layers")))}add(e,t){const r=this.layers;if(t=r.getNextIndex(t),e instanceof m.c){const n=e;n.parent===this?this.reorder(n,t):r.add(n,t)}else(0,l.eW)(e)?e.then((e=>{this.destroyed||this.add(e,t)})):a.c.getLogger(this).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(e,t){const r=this.layers;let n=r.getNextIndex(t);e.slice().forEach((e=>{e.parent!==this?(r.add(e,n),n+=1):this.reorder(e,n)}))}findLayerById(e){return E(this.layers,"id",e)}findLayerByUid(e){return E(this.layers,"uid",e)}remove(e){return this.layers.remove(e)}removeMany(e){return this.layers.removeMany(e)}removeAll(){return this.layers.removeAll()}reorder(e,t){return this.layers.reorder(e,t)}layerAdded(e){}layerRemoved(e){}};return(0,n._)([(0,c.qq)()],t.prototype,"layers",null),t=(0,n._)([(0,d.c)("esri.support.LayersMixin")],t),t};function I(e,t,r){if(e)for(let n=0,i=e.length;n<i;n++){const i=e.at(n);if(i[t]===r)return i;if("group"===i?.type){const e=I(i.tables,t,r);if(e)return e}}}const C=e=>{let t=class extends e{constructor(...e){super(...e),this.tables=new x.c,this.addHandles([this.tables.on("after-add",(e=>{const t=e.item;t.parent&&t.parent!==this&&"tables"in t.parent&&t.parent.tables.remove(t),t.parent=this,"feature"!==t.type&&a.c.getLogger(this).error(`Layer 'title:${t.title}, id:${t.id}' of type '${t.type}' is not supported as a table and will therefore be ignored.`)})),this.tables.on("after-remove",(e=>{e.item.parent=null}))])}destroy(){const e=this.tables.toArray();for(const t of e)t.destroy();this.tables.destroy()}set tables(e){this._set("tables",(0,q.q)(e,this._get("tables")))}findTableById(e){return I(this.tables,"id",e)}findTableByUid(e){return I(this.tables,"uid",e)}};return(0,n._)([(0,c.qq)()],t.prototype,"tables",null),t=(0,n._)([(0,d.c)("esri.support.TablesMixin")],t),t},T=Symbol("WebScene");var P=r(8616),L=r(13448),O=r(14812);let F=class extends((0,g.W)((0,w.I)((0,v.Y)((0,b.K)(C(S((0,o.U)(m.c)))))))){constructor(e){var t;super(e),this.allLayers=new i.c({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(t=this,new i.c({getCollections:()=>[t.tables,t.layers],getChildrenFunction:e=>{const t=[];return"tables"in e&&t.push(e.tables),"layers"in e&&t.push(e.layers),t},itemFilterFunction:e=>{const t=e.parent;return!!t&&"tables"in t&&t.tables.includes(e)}})),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group",this._debouncedSaveOperations=(0,l.Cu)((async(e,t,n)=>{const{save:i,saveAs:s}=await r.e(9864).then(r.bind(r,89864));switch(e){case P.U.SAVE:return i(this,t);case P.U.SAVE_AS:return s(this,n,t)}}))}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles([(0,u.aE)((()=>{let e=this.parent;for(;e&&"parent"in e&&e.parent;)e=e.parent;return e&&T in e}),(e=>{const t="prevent-adding-tables";this.removeHandles(t),e&&(this.tables.removeAll(),this.addHandles((0,u.on)((()=>this.tables),"before-add",(e=>{e.preventDefault(),a.c.getLogger(this).errorOnce("tables","tables in group layers in a webscene are not supported. Please move the tables from the group layer to the webscene if you want to persist them.")})),t))}),u.KG),(0,u.aE)((()=>this.visible),this._onVisibilityChange.bind(this),u.du)])}destroy(){this.allLayers.destroy(),this.allTables.destroy()}get sourceIsPortalItem(){return this.portalItem&&this.originIdOf("portalItem")===y.sT.USER}_writeLayers(e,t,r,n){const i=[];if(!e)return i;e.forEach((e=>{const t=(0,O.WW)(e,n.webmap?n.webmap.getLayerJSONFromResourceInfo(e):null,n);t?.layerType&&i.push(t)})),t.layers=i}set portalItem(e){this._set("portalItem",e)}readPortalItem(e,t,r){const{itemId:n,layerType:i}=t;if("GroupLayer"===i&&n)return new A.default({id:n,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}set visibilityMode(e){const t=this._get("visibilityMode")!==e;this._set("visibilityMode",e),t&&this._enforceVisibility(e,this.visible)}async beforeSave(){return(0,L.W)(this)}load(e){const t=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Group Layer","Scene Service"],layerModuleTypeMap:_.q},e).catch((e=>{if((0,l.CE)(e),this.sourceIsPortalItem)throw e}));return this.addResolvingPromise(t),Promise.resolve(this)}async loadAll(){return(0,s.A)(this,(e=>{e(this.layers,this.tables)}))}async save(e){return this._debouncedSaveOperations(P.U.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(P.U.SAVE_AS,t,e)}layerAdded(e){e.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(e):"inherited"===this.visibilityMode&&(e.visible=this.visible),this.hasHandles(e.uid)?console.error(`Layer read to Grouplayer: uid=${e.uid}`):this.addHandles((0,u.aE)((()=>e.visible),(t=>this._onChildVisibilityChange(e,t)),u.du),e.uid)}layerRemoved(e){this.removeHandles(e.uid),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(e){this.layers.forEach((t=>{t!==e&&(t.visible=!1)}))}_enforceVisibility(e,t){if(!(0,p.m6)(this).initialized)return;const r=this.layers;let n=r.find((e=>e.visible));switch(e){case"exclusive":r.length&&!n&&(n=r.at(0),n.visible=!0),this._turnOffOtherLayers(n);break;case"inherited":r.forEach((e=>{e.visible=t}))}}_onVisibilityChange(e){"inherited"===this.visibilityMode&&this.layers.forEach((t=>{t.visible=e}))}_onChildVisibilityChange(e,t){switch(this.visibilityMode){case"exclusive":t?this._turnOffOtherLayers(e):this._isAnyLayerVisible()||(e.visible=!0);break;case"inherited":e.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some((e=>e.visible))}};(0,n._)([(0,c.qq)({readOnly:!0,dependsOn:[]})],F.prototype,"allLayers",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],F.prototype,"allTables",void 0),(0,n._)([(0,c.qq)({json:{read:!0,write:!0}})],F.prototype,"blendMode",void 0),(0,n._)([(0,c.qq)()],F.prototype,"fullExtent",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],F.prototype,"sourceIsPortalItem",null),(0,n._)([(0,c.qq)({json:{read:!1,write:{ignoreOrigin:!0}}})],F.prototype,"layers",void 0),(0,n._)([(0,h.G)("layers")],F.prototype,"_writeLayers",null),(0,n._)([(0,c.qq)({type:["GroupLayer"]})],F.prototype,"operationalLayerType",void 0),(0,n._)([(0,c.qq)({json:{origins:{"web-map":{read:!1,write:{overridePolicy(e,t,r){return{enabled:"Group Layer"===e?.type&&r?.initiator!==this}}}},"web-scene":{read:!1,write:!1}}}})],F.prototype,"portalItem",null),(0,n._)([(0,f.E)("web-map","portalItem",["itemId"])],F.prototype,"readPortalItem",null),(0,n._)([(0,h.G)("web-map","portalItem",{itemId:{type:String}})],F.prototype,"writePortalItem",null),(0,n._)([(0,c.qq)()],F.prototype,"spatialReference",void 0),(0,n._)([(0,c.qq)({json:{read:!1},readOnly:!0,value:"group"})],F.prototype,"type",void 0),(0,n._)([(0,c.qq)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{type:["independent","exclusive"],write:(e,t,r)=>{"inherited"!==e&&(t[r]=e)}}}}})],F.prototype,"visibilityMode",null),F=(0,n._)([(0,d.c)("esri.layers.GroupLayer")],F);const U=F},24676:(e,t,r)=>{r.d(t,{gH:()=>E,GA:()=>S});var n,i,s=r(20744),a=r(58820),o=r(46988),l=r(65604),u=(r(8528),r(14644)),c={exports:{}};i=function(){function e(t,r,n,i){var s=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(s,e.prototype),s.expected=r,s.found=n,s.location=i,s.name="SyntaxError",s}function t(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var n,i=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){i=e[n].text.split(/\r\n|\n|\r/g);break}var s=this.location.start,a=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(s):s,o=this.location.source+":"+a.line+":"+a.column;if(i){var l=this.location.end,u=t("",a.line.toString().length," "),c=i[s.line-1],p=(s.line===l.line?l.column:c.length+1)-s.column||1;r+="\n --\x3e "+o+"\n"+u+" |\n"+a.line+" | "+c+"\n"+u+" | "+t("",s.column-1," ")+t("",p,"^")}else r+="\n at "+o}return r},e.buildMessage=function(e,t){var r={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function s(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function a(e){return r[e.type](e)}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."},{SyntaxError:e,parse:function(t,r){var n,i={},s=(r=void 0!==r?r:{}).grammarSource,a={start:Be},o=Be,l="none",u=")",c=",",p="(",f="%",d="px",h="cm",y="mm",m="in",g="pt",v="pc",b="deg",w="rad",_="grad",A="turn",x="#",q=".",E="e",S=/^[ \t\n\r]/,I=/^[a-z\-]/,C=/^[0-9a-fA-F]/,T=/^[+\-]/,P=/^[0-9]/,L=Ne("none"),O=je("none",!1),F=je(")",!1),U=je(",",!1),$=Ne("whitespace"),M=He([" ","\t","\n","\r"],!1,!1),R=Ne("function"),k=je("(",!1),j=Ne("identifier"),H=He([["a","z"],"-"],!1,!1),N=Ne("percentage"),G=je("%",!1),V=Ne("length"),D=je("px",!1),B=je("cm",!1),z=je("mm",!1),W=je("in",!1),K=je("pt",!1),J=je("pc",!1),X=Ne("angle"),Q=je("deg",!1),Y=je("rad",!1),Z=je("grad",!1),ee=je("turn",!1),te=Ne("number"),re=Ne("color"),ne=je("#",!1),ie=He([["0","9"],["a","f"],["A","F"]],!1,!1),se=He(["+","-"],!1,!1),ae=He([["0","9"]],!1,!1),oe=je(".",!1),le=je("e",!1),ue=function(){return[]},ce=function(e,t){return{type:"function",name:e,parameters:t||[]}},pe=function(e,t){return t.length>0?function(e,t,r){return[e].concat(function(e,t){return e.map((function(e){return e[3]}))}(t))}(e,t):[e]},fe=function(e){return{type:"quantity",value:e.value,unit:e.unit}},de=function(e){return{type:"color",colorType:e.type,value:e.value}},he=function(e){return e},ye=function(){return ke()},me=function(e){return{value:e,unit:"%"}},ge=function(e){return{value:e,unit:"px"}},ve=function(e){return{value:e,unit:"cm"}},be=function(e){return{value:e,unit:"mm"}},we=function(e){return{value:e,unit:"in"}},_e=function(e){return{value:e,unit:"pt"}},Ae=function(e){return{value:e,unit:"pc"}},xe=function(e){return{value:e,unit:"deg"}},qe=function(e){return{value:e,unit:"rad"}},Ee=function(e){return{value:e,unit:"grad"}},Se=function(e){return{value:e,unit:"turn"}},Ie=function(e){return{value:e,unit:null}},Ce=function(){return{type:"hex",value:ke()}},Te=function(e){return{type:"function",value:e}},Pe=function(){return{type:"named",value:ke()}},Le=function(){return parseFloat(ke())},Oe=0,Fe=0,Ue=[{line:1,column:1}],$e=0,Me=[],Re=0;if("startRule"in r){if(!(r.startRule in a))throw new Error("Can't start parsing from rule \""+r.startRule+'".');o=a[r.startRule]}function ke(){return t.substring(Fe,Oe)}function je(e,t){return{type:"literal",text:e,ignoreCase:t}}function He(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ne(e){return{type:"other",description:e}}function Ge(e){var r,n=Ue[e];if(n)return n;for(r=e-1;!Ue[r];)r--;for(n={line:(n=Ue[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Ue[e]=n,n}function Ve(e,t,r){var n=Ge(e),i=Ge(t),a={source:s,start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:i.line,column:i.column}};return r&&s&&"function"==typeof s.offset&&(a.start=s.offset(a.start),a.end=s.offset(a.end)),a}function De(e){Oe<$e||(Oe>$e&&($e=Oe,Me=[]),Me.push(e))}function Be(){var e;return(e=ze())===i&&(e=function(){var e,t;if(e=[],(t=We())!==i)for(;t!==i;)e.push(t),t=We();else e=i;return e}()),e}function ze(){var e,r;return Re++,e=Oe,Je(),t.substr(Oe,4)===l?(r=l,Oe+=4):(r=i,0===Re&&De(O)),r!==i?(Je(),Fe=e,e=ue()):(Oe=e,e=i),Re--,e===i&&0===Re&&De(L),e}function We(){var e,r,n,s;return e=Oe,Je(),(r=function(){var e,r,n;return Re++,e=Oe,(r=Xe())!==i?(40===t.charCodeAt(Oe)?(n=p,Oe++):(n=i,0===Re&&De(k)),n!==i?(Fe=e,e=he(r)):(Oe=e,e=i)):(Oe=e,e=i),Re--,e===i&&(r=i,0===Re&&De(R)),e}())!==i?(Je(),(n=function(){var e,r,n,s,a,o,l,u;if(e=Oe,(r=Ke())!==i){for(n=[],s=Oe,a=Je(),44===t.charCodeAt(Oe)?(o=c,Oe++):(o=i,0===Re&&De(U)),o===i&&(o=null),l=Je(),(u=Ke())!==i?s=a=[a,o,l,u]:(Oe=s,s=i);s!==i;)n.push(s),s=Oe,a=Je(),44===t.charCodeAt(Oe)?(o=c,Oe++):(o=i,0===Re&&De(U)),o===i&&(o=null),l=Je(),(u=Ke())!==i?s=a=[a,o,l,u]:(Oe=s,s=i);Fe=e,e=pe(r,n)}else Oe=e,e=i;return e}())===i&&(n=null),Je(),41===t.charCodeAt(Oe)?(s=u,Oe++):(s=i,0===Re&&De(F)),s!==i?(Je(),Fe=e,e=ce(r,n)):(Oe=e,e=i)):(Oe=e,e=i),e}function Ke(){var e,t;return e=Oe,(t=Qe())===i&&(t=Ye())===i&&(t=Ze())===i&&(t=function(){var e,t;return Re++,e=Oe,Je(),(t=tt())!==i?(Fe=e,e=Ie(t)):(Oe=e,e=i),Re--,e===i&&0===Re&&De(te),e}()),t!==i&&(Fe=e,t=fe(t)),(e=t)===i&&(e=Oe,(t=et())!==i&&(Fe=e,t=de(t)),e=t),e}function Je(){var e,r;for(Re++,e=[],S.test(t.charAt(Oe))?(r=t.charAt(Oe),Oe++):(r=i,0===Re&&De(M));r!==i;)e.push(r),S.test(t.charAt(Oe))?(r=t.charAt(Oe),Oe++):(r=i,0===Re&&De(M));return Re--,r=i,0===Re&&De($),e}function Xe(){var e,r,n;if(Re++,e=Oe,r=[],I.test(t.charAt(Oe))?(n=t.charAt(Oe),Oe++):(n=i,0===Re&&De(H)),n!==i)for(;n!==i;)r.push(n),I.test(t.charAt(Oe))?(n=t.charAt(Oe),Oe++):(n=i,0===Re&&De(H));else r=i;return r!==i&&(Fe=e,r=ye()),Re--,(e=r)===i&&(r=i,0===Re&&De(j)),e}function Qe(){var e,r,n;return Re++,e=Oe,Je(),(r=tt())!==i?(37===t.charCodeAt(Oe)?(n=f,Oe++):(n=i,0===Re&&De(G)),n!==i?(Fe=e,e=me(r)):(Oe=e,e=i)):(Oe=e,e=i),Re--,e===i&&0===Re&&De(N),e}function Ye(){var e,r,n;return Re++,e=Oe,Je(),(r=tt())!==i?(t.substr(Oe,2)===d?(n=d,Oe+=2):(n=i,0===Re&&De(D)),n!==i?(Fe=e,e=ge(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,Je(),(r=tt())!==i?(t.substr(Oe,2)===h?(n=h,Oe+=2):(n=i,0===Re&&De(B)),n!==i?(Fe=e,e=ve(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,Je(),(r=tt())!==i?(t.substr(Oe,2)===y?(n=y,Oe+=2):(n=i,0===Re&&De(z)),n!==i?(Fe=e,e=be(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,Je(),(r=tt())!==i?(t.substr(Oe,2)===m?(n=m,Oe+=2):(n=i,0===Re&&De(W)),n!==i?(Fe=e,e=we(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,Je(),(r=tt())!==i?(t.substr(Oe,2)===g?(n=g,Oe+=2):(n=i,0===Re&&De(K)),n!==i?(Fe=e,e=_e(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,Je(),(r=tt())!==i?(t.substr(Oe,2)===v?(n=v,Oe+=2):(n=i,0===Re&&De(J)),n!==i?(Fe=e,e=Ae(r)):(Oe=e,e=i)):(Oe=e,e=i)))))),Re--,e===i&&0===Re&&De(V),e}function Ze(){var e,r,n;return Re++,e=Oe,(r=tt())!==i?(t.substr(Oe,3)===b?(n=b,Oe+=3):(n=i,0===Re&&De(Q)),n!==i?(Fe=e,e=xe(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,(r=tt())!==i?(t.substr(Oe,3)===w?(n=w,Oe+=3):(n=i,0===Re&&De(Y)),n!==i?(Fe=e,e=qe(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,(r=tt())!==i?(t.substr(Oe,4)===_?(n=_,Oe+=4):(n=i,0===Re&&De(Z)),n!==i?(Fe=e,e=Ee(r)):(Oe=e,e=i)):(Oe=e,e=i),e===i&&(e=Oe,(r=tt())!==i?(t.substr(Oe,4)===A?(n=A,Oe+=4):(n=i,0===Re&&De(ee)),n!==i?(Fe=e,e=Se(r)):(Oe=e,e=i)):(Oe=e,e=i)))),Re--,e===i&&(r=i,0===Re&&De(X)),e}function et(){var e,r,n,s;if(Re++,e=Oe,35===t.charCodeAt(Oe)?(r=x,Oe++):(r=i,0===Re&&De(ne)),r!==i){if(n=[],C.test(t.charAt(Oe))?(s=t.charAt(Oe),Oe++):(s=i,0===Re&&De(ie)),s!==i)for(;s!==i;)n.push(s),C.test(t.charAt(Oe))?(s=t.charAt(Oe),Oe++):(s=i,0===Re&&De(ie));else n=i;n!==i?(Fe=e,e=Ce()):(Oe=e,e=i)}else Oe=e,e=i;return e===i&&(e=Oe,(r=We())!==i&&(Fe=e,r=Te(r)),(e=r)===i&&(e=Oe,(r=Xe())!==i&&(Fe=e,r=Pe()),e=r)),Re--,e===i&&(r=i,0===Re&&De(re)),e}function tt(){var e,r,n,s,a,o,l;for(e=Oe,T.test(t.charAt(Oe))?(t.charAt(Oe),Oe++):0===Re&&De(se),r=Oe,n=[],P.test(t.charAt(Oe))?(s=t.charAt(Oe),Oe++):(s=i,0===Re&&De(ae));s!==i;)n.push(s),P.test(t.charAt(Oe))?(s=t.charAt(Oe),Oe++):(s=i,0===Re&&De(ae));if(46===t.charCodeAt(Oe)?(s=q,Oe++):(s=i,0===Re&&De(oe)),s!==i){if(a=[],P.test(t.charAt(Oe))?(o=t.charAt(Oe),Oe++):(o=i,0===Re&&De(ae)),o!==i)for(;o!==i;)a.push(o),P.test(t.charAt(Oe))?(o=t.charAt(Oe),Oe++):(o=i,0===Re&&De(ae));else a=i;a!==i?r=n=[n,s,a]:(Oe=r,r=i)}else Oe=r,r=i;if(r===i)if(r=[],P.test(t.charAt(Oe))?(n=t.charAt(Oe),Oe++):(n=i,0===Re&&De(ae)),n!==i)for(;n!==i;)r.push(n),P.test(t.charAt(Oe))?(n=t.charAt(Oe),Oe++):(n=i,0===Re&&De(ae));else r=i;if(r!==i){if(n=Oe,101===t.charCodeAt(Oe)?(s=E,Oe++):(s=i,0===Re&&De(le)),s!==i){if(T.test(t.charAt(Oe))?(a=t.charAt(Oe),Oe++):(a=i,0===Re&&De(se)),a===i&&(a=null),o=[],P.test(t.charAt(Oe))?(l=t.charAt(Oe),Oe++):(l=i,0===Re&&De(ae)),l!==i)for(;l!==i;)o.push(l),P.test(t.charAt(Oe))?(l=t.charAt(Oe),Oe++):(l=i,0===Re&&De(ae));else o=i;o!==i?n=s=[s,a,o]:(Oe=n,n=i)}else Oe=n,n=i;n===i&&(n=null),Fe=e,e=Le()}else Oe=e,e=i;return e}if((n=o())!==i&&Oe===t.length)return n;throw n!==i&&Oe<t.length&&De({type:"end"}),function(t,r,n){return new e(e.buildMessage(t,r),t,r,n)}(Me,$e<t.length?t.charAt($e):null,$e<t.length?Ve($e,$e+1):Ve($e,$e))}}},(n=c).exports&&(n.exports=i());var p=c.exports;function f(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=d(e);return t&&0!==t.length?t:null}const t=e.map((e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new s.c("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:d(e.value)}}));t.sort(((e,t)=>t.effects.length-e.effects.length));for(let e=0;e<t.length-1;e++){if(!(0,u.w1)(t[e].effects,t[e+1].effects))throw new s.c("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,u.A1)(t[e].effects,t[e+1].effects)}return t.sort(((e,t)=>t.scale-e.scale)),t}function d(e){let t;if(!e)return[];try{t=p.parse(e)}catch(t){throw new s.c("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map((e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=b(e.parameters[0])),new l.M7(e.name,t)}(e);case"opacity":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=b(e.parameters[0])),new l.Ez(t)}(e);case"hue-rotate":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=g[e.unit]))throw new s.c("effect:type-error",`Expected <angle>, Actual: ${y(e)}`,{term:e})}(e),e.value*g[e.unit]||0}(e.parameters[0])),new l.C8(t)}(e);case"blur":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=w(e.parameters[0]),m(t,e.parameters[0])),new l.o1(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new s.c("effect:type-error","Accepts only one color",{});r=_(n)}else{const e=w(n);if(Object.isFrozen(t))throw new s.c("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&m(e,n)}if(t.length<2||t.length>3)throw new s.c("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new l.of(t[0],t[1],t[2]||0,r||A("black"))}(e);case"bloom":return function(e){let t=1,r=0,n=0;return h(e.parameters,3),e.parameters[0]&&(t=b(e.parameters[0])),e.parameters[1]&&(r=w(e.parameters[1]),m(r,e.parameters[1])),e.parameters[2]&&(n=b(e.parameters[2])),new l.qC(t,r,n)}(e)}}catch(t){throw t.details.filter=e,t}throw new s.c("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e)))}function h(e,t){if(e.length>t)throw new s.c("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function y(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in v)return"<length>";if(e.unit in g)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function m(e,t){if(e<0)throw new s.c("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const g={deg:1,grad:.9,rad:180/Math.PI,turn:360},v={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function b(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new s.c("effect:type-error",`Expected <double> or <percentage>, Actual: ${y(e)}`,{term:e})}(e);const t=e.value;return m(t,e),"%"===e.unit?.01*t:t}function w(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=v[e.unit]))throw new s.c("effect:type-error",`Expected <length>, Actual: ${y(e)}`,{term:e})}(e),e.value*v[e.unit]||0}function _(e){switch(e.colorType){case"hex":return(0,o.yU)(e.value);case"named":return A(e.value);case"function":return function(e){if(h(e.parameters,4),x.test(e.name))return[b(e.parameters[0]),b(e.parameters[1]),b(e.parameters[2]),e.parameters[3]?b(e.parameters[3]):1];if(q.test(e.name))return(0,o.ec)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new s.c("effect:type-error",`Expected <double>, Actual: ${y(e)}`,{term:e})}(e),m(e.value,e),e.value}(e.parameters[0]),b(e.parameters[1]),b(e.parameters[2]),e.parameters[3]?b(e.parameters[3]):1);throw new s.c("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function A(e){if(!(0,o.kv)(e))throw new s.c("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,o.uO)(e)}const x=/^rgba?/i,q=/^hsla?/i;function E(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:I(r.value)});return t}return I(e)}(e)}catch(e){r?.messages?.push(e)}return null}function S(e,t,r,n){try{const n=function(e){const t=f(e);return t?(0,u.Ub)(t)?t.map((e=>e.toJSON())):t.map((({scale:e,effects:t})=>({scale:e,value:t.map((e=>e.toJSON()))}))):null}(e);(0,a.qQ)(r,n,t)}catch(e){n.messages&&n.messages.push(e)}}function I(e){if(!e?.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[C(r,"amount")];break;case"blur":e=[C(r,"radius","pt")];break;case"hue-rotate":e=[C(r,"angle","deg")];break;case"drop-shadow":e=[C(r,"xoffset","pt"),C(r,"yoffset","pt"),C(r,"blurRadius","pt"),T(r,"color")];break;case"bloom":e=[C(r,"strength"),C(r,"radius","pt"),C(r,"threshold")]}const n=`${r.type}(${e.filter(Boolean).join(" ")})`;f(n),t.push(n)}return t.join(" ")}function C(e,t,r){if(null==e[t])throw new s.c("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function T(e,t){if(null==e[t])throw new s.c("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},25216:(e,t,r)=>{r.d(t,{W:()=>l});var n=r(41948),i=r(1580),s=(r(9456),r(66360),r(72052),r(12552)),a=r(24676);const o={read:{reader:a.gH},write:{allowNull:!0,writer:a.GA}},l=e=>{let t=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,n._)([(0,i.qq)({type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!0},"portal-item":{read:!0,write:!0}}}})],t.prototype,"blendMode",void 0),(0,n._)([(0,i.qq)({json:{read:!1,write:!1,origins:{"web-map":o,"portal-item":o}}})],t.prototype,"effect",void 0),t=(0,n._)([(0,s.c)("esri.layers.mixins.BlendLayer")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>A});var n=r(41948),i=r(6220),s=r(47620),a=r(2600),o=r(40196),l=r(20744),u=r(66360),c=r(70680),p=r(10860),f=r(28176),d=r(1580),h=(r(9456),r(72052),r(33600)),y=r(12552),m=r(18996),g=r(71068),v=r(54872),b=r(9764),w=r(53039),_=r(46940);const A=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,p.wp)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,p.mA)(e)||u.c.getLogger(this).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,p.CE)(e),!0))))}async setUserPrivileges(e,t){if(!i.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=e===r.id;if(n&&r.portal.user)return(0,_.CI)(r);let i,a;if(n)i=r.portal.url;else try{i=await(0,g.mK)(this.url,t)}catch(e){(0,p.CE)(e)}if(!i||!(0,f.Cs)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.CE)(e)}if(!a)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(n?await r.reload():(r=new b.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return(0,_.CI)(r)}catch(e){(0,p.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=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=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=v.c.getDefault();if(i&&i.loaded&&(0,f.k7)(i.restUrl)===(0,f.k7)(n))return i.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,o.aG)((0,a.c)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?w.c.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&n&&!(0,f.kF)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.c("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,n._)([(0,d.qq)({type:b.default})],t.prototype,"portalItem",null),(0,n._)([(0,h.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,n._)([(0,m.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,n._)([(0,d.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,n._)([(0,d.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,n._)([(0,d.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,n._)([(0,d.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,n._)([(0,y.c)("esri.layers.mixins.PortalLayer")],t),t},x={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>a});var n=r(41948),i=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const a=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,n._)([(0,i.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,n._)([(0,i.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,n._)([(0,i.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,n._)([(0,s.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},8616:(e,t,r)=>{var n;r.d(t,{U:()=>n}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(n||(n={}))},13448:(e,t,r)=>{r.d(t,{W:()=>i,e:()=>a});var n=r(20744);async function i(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}const s=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function a(e,t,r){let i=(e.messages??[]).filter((({type:e})=>"error"===e)).map((({name:e,message:t,details:r})=>new n.c(e,t,r)));if(e.blockedRelativeUrls&&(i=i.concat(e.blockedRelativeUrls.map((e=>new n.c("url:unsupported",`Relative url '${e}' is not supported`))))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:n}=r;e&&(i=i.filter((({name:e})=>!(s.has(e)||t.includes(e))))),n&&(i=i.filter((e=>"web-document-write:property-required"!==e.name)))}if(i.length>0)throw new n.c(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:i})}}}]);
|
package/chunks/vec32.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{create as t}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{getEpsilon as n,RANDOM as a}from"../core/libs/gl-matrix-2/math/common.js";function s(t){const n=t[0],a=t[1],s=t[2];return Math.sqrt(n*n+a*a+s*s)}function r(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,a,s){return t[0]=n,t[1]=a,t[2]=s,t}function u(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t}function e(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t}function c(t,n,a){return t[0]=n[0]*a[0],t[1]=n[1]*a[1],t[2]=n[2]*a[2],t}function i(t,n,a){return t[0]=n[0]/a[0],t[1]=n[1]/a[1],t[2]=n[2]/a[2],t}function h(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t}function M(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function l(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,a){return t[0]=Math.min(n[0],a[0]),t[1]=Math.min(n[1],a[1]),t[2]=Math.min(n[2],a[2]),t}function b(t,n,a){return t[0]=Math.max(n[0],a[0]),t[1]=Math.max(n[1],a[1]),t[2]=Math.max(n[2],a[2]),t}function d(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t}function g(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t}function q(t,n,a,s){return t[0]=n[0]+a[0]*s,t[1]=n[1]+a[1]*s,t[2]=n[2]+a[2]*s,t}function x(t,n){const a=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];return Math.sqrt(a*a+s*s+r*r)}function p(t,n){const a=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];return a*a+s*s+r*r}function v(t){const n=t[0],a=t[1],s=t[2];return n*n+a*a+s*s}function j(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function y(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function z(t,n){const a=n[0],s=n[1],r=n[2];let o=a*a+s*s+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function P(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function _(t,n,a){const s=n[0],r=n[1],o=n[2],u=a[0],e=a[1],c=a[2];return t[0]=r*c-o*e,t[1]=o*u-s*c,t[2]=s*e-r*u,t}function A(t,n,a,s){const r=n[0],o=n[1],u=n[2];return t[0]=r+s*(a[0]-r),t[1]=o+s*(a[1]-o),t[2]=u+s*(a[2]-u),t}function D(t,n,a,s,r,o){const u=o*o,e=u*(2*o-3)+1,c=u*(o-2)+o,i=u*(o-1),h=u*(3-2*o);return t[0]=n[0]*e+a[0]*c+s[0]*i+r[0]*h,t[1]=n[1]*e+a[1]*c+s[1]*i+r[1]*h,t[2]=n[2]*e+a[2]*c+s[2]*i+r[2]*h,t}function I(t,n,a,s,r,o){const u=1-o,e=u*u,c=o*o,i=e*u,h=3*o*e,M=3*c*u,f=c*o;return t[0]=n[0]*i+a[0]*h+s[0]*M+r[0]*f,t[1]=n[1]*i+a[1]*h+s[1]*M+r[1]*f,t[2]=n[2]*i+a[2]*h+s[2]*M+r[2]*f,t}function L(t,n){n=n||1;const s=a,r=2*s()*Math.PI,o=2*s()-1,u=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=o*n,t}function O(t,n,a){const s=n[0],r=n[1],o=n[2];return t[0]=a[0]*s+a[4]*r+a[8]*o+a[12],t[1]=a[1]*s+a[5]*r+a[9]*o+a[13],t[2]=a[2]*s+a[6]*r+a[10]*o+a[14],t}function S(t,n,a){const s=n[0],r=n[1],o=n[2];return t[0]=s*a[0]+r*a[3]+o*a[6],t[1]=s*a[1]+r*a[4]+o*a[7],t[2]=s*a[2]+r*a[5]+o*a[8],t}function E(t,n,a){const s=a[0],r=a[1],o=a[2],u=a[3],e=n[0],c=n[1],i=n[2],h=r*i-o*c,M=o*e-s*i,f=s*c-r*e,l=r*f-o*M,m=o*h-s*f,b=s*M-r*h,d=2*u;return t[0]=e+h*d+2*l,t[1]=c+M*d+2*m,t[2]=i+f*d+2*b,t}function Q(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[0],o[1]=r[1]*Math.cos(s)-r[2]*Math.sin(s),o[2]=r[1]*Math.sin(s)+r[2]*Math.cos(s),t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function T(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[2]*Math.sin(s)+r[0]*Math.cos(s),o[1]=r[1],o[2]=r[2]*Math.cos(s)-r[0]*Math.sin(s),t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function k(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[0]*Math.cos(s)-r[1]*Math.sin(s),o[1]=r[0]*Math.sin(s)+r[1]*Math.cos(s),o[2]=r[2],t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function w(t,n){
|
|
5
|
+
import{create as t}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{getEpsilon as n,RANDOM as a}from"../core/libs/gl-matrix-2/math/common.js";function s(t){const n=t[0],a=t[1],s=t[2];return Math.sqrt(n*n+a*a+s*s)}function r(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,a,s){return t[0]=n,t[1]=a,t[2]=s,t}function u(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t}function e(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t}function c(t,n,a){return t[0]=n[0]*a[0],t[1]=n[1]*a[1],t[2]=n[2]*a[2],t}function i(t,n,a){return t[0]=n[0]/a[0],t[1]=n[1]/a[1],t[2]=n[2]/a[2],t}function h(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t}function M(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function l(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,a){return t[0]=Math.min(n[0],a[0]),t[1]=Math.min(n[1],a[1]),t[2]=Math.min(n[2],a[2]),t}function b(t,n,a){return t[0]=Math.max(n[0],a[0]),t[1]=Math.max(n[1],a[1]),t[2]=Math.max(n[2],a[2]),t}function d(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t}function g(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t}function q(t,n,a,s){return t[0]=n[0]+a[0]*s,t[1]=n[1]+a[1]*s,t[2]=n[2]+a[2]*s,t}function x(t,n){const a=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];return Math.sqrt(a*a+s*s+r*r)}function p(t,n){const a=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];return a*a+s*s+r*r}function v(t){const n=t[0],a=t[1],s=t[2];return n*n+a*a+s*s}function j(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function y(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function z(t,n){const a=n[0],s=n[1],r=n[2];let o=a*a+s*s+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function P(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function _(t,n,a){const s=n[0],r=n[1],o=n[2],u=a[0],e=a[1],c=a[2];return t[0]=r*c-o*e,t[1]=o*u-s*c,t[2]=s*e-r*u,t}function A(t,n,a,s){const r=n[0],o=n[1],u=n[2];return t[0]=r+s*(a[0]-r),t[1]=o+s*(a[1]-o),t[2]=u+s*(a[2]-u),t}function D(t,n,a,s,r,o){const u=o*o,e=u*(2*o-3)+1,c=u*(o-2)+o,i=u*(o-1),h=u*(3-2*o);return t[0]=n[0]*e+a[0]*c+s[0]*i+r[0]*h,t[1]=n[1]*e+a[1]*c+s[1]*i+r[1]*h,t[2]=n[2]*e+a[2]*c+s[2]*i+r[2]*h,t}function I(t,n,a,s,r,o){const u=1-o,e=u*u,c=o*o,i=e*u,h=3*o*e,M=3*c*u,f=c*o;return t[0]=n[0]*i+a[0]*h+s[0]*M+r[0]*f,t[1]=n[1]*i+a[1]*h+s[1]*M+r[1]*f,t[2]=n[2]*i+a[2]*h+s[2]*M+r[2]*f,t}function L(t,n){n=n||1;const s=a,r=2*s()*Math.PI,o=2*s()-1,u=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=o*n,t}function O(t,n,a){const s=n[0],r=n[1],o=n[2];return t[0]=a[0]*s+a[4]*r+a[8]*o+a[12],t[1]=a[1]*s+a[5]*r+a[9]*o+a[13],t[2]=a[2]*s+a[6]*r+a[10]*o+a[14],t}function S(t,n,a){const s=n[0],r=n[1],o=n[2];return t[0]=s*a[0]+r*a[3]+o*a[6],t[1]=s*a[1]+r*a[4]+o*a[7],t[2]=s*a[2]+r*a[5]+o*a[8],t}function E(t,n,a){const s=a[0],r=a[1],o=a[2],u=a[3],e=n[0],c=n[1],i=n[2],h=r*i-o*c,M=o*e-s*i,f=s*c-r*e,l=r*f-o*M,m=o*h-s*f,b=s*M-r*h,d=2*u;return t[0]=e+h*d+2*l,t[1]=c+M*d+2*m,t[2]=i+f*d+2*b,t}function Q(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[0],o[1]=r[1]*Math.cos(s)-r[2]*Math.sin(s),o[2]=r[1]*Math.sin(s)+r[2]*Math.cos(s),t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function T(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[2]*Math.sin(s)+r[0]*Math.cos(s),o[1]=r[1],o[2]=r[2]*Math.cos(s)-r[0]*Math.sin(s),t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function k(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[0]*Math.cos(s)-r[1]*Math.sin(s),o[1]=r[0]*Math.sin(s)+r[1]*Math.cos(s),o[2]=r[2],t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function w(t,n){z(B,t),z(C,n);const a=P(B,C);return a>1?0:a<-1?Math.PI:Math.acos(a)}const B=t(),C=t();function F(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function H(t,a){if(t===a)return!0;const s=t[0],r=t[1],o=t[2],u=a[0],e=a[1],c=a[2],i=n();return Math.abs(s-u)<=i*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(r-e)<=i*Math.max(1,Math.abs(r),Math.abs(e))&&Math.abs(o-c)<=i*Math.max(1,Math.abs(o),Math.abs(c))}function J(t,n,a){const s=a[0]-n[0],r=a[1]-n[1],o=a[2]-n[2];let u=s*s+r*r+o*o;return u>0?(u=1/Math.sqrt(u),t[0]=s*u,t[1]=r*u,t[2]=o*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const K=e,N=c,R=i,U=x,X=p,Y=s,Z=v,V=Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:w,bezier:I,ceil:h,copy:r,cross:_,direction:J,dist:U,distance:x,div:R,divide:i,dot:P,equals:H,exactEquals:G,floor:M,hermite:D,inverse:y,len:Y,length:s,lerp:A,max:b,min:m,mul:N,multiply:c,negate:j,normalize:z,random:L,rotateX:Q,rotateY:T,rotateZ:k,round:d,scale:g,scaleAndAdd:q,set:o,sign:l,sqrDist:X,sqrLen:Z,squaredDistance:p,squaredLength:v,str:F,sub:K,subtract:e,transformMat3:S,transformMat4:O,transformQuat:E},Symbol.toStringTag,{value:"Module"}));export{c as A,b as B,Y as C,J as D,j as E,H as F,i as G,V as H,M as I,k as J,h as K,d as L,y as M,D as N,I as O,L as P,Q,T as R,F as S,N as T,R as U,p as a,_ as b,r as c,w as d,O as e,e as f,u as g,G as h,g as i,P as j,A as k,s as l,U as m,z as n,v as o,x as p,q,E as r,o as s,S as t,f as u,X as v,Z as w,m as x,K as y,l as z};
|