@arcgis/core 4.33.0-next.20250212 → 4.33.0-next.20250213

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.
Files changed (60) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/15ad8036736a32652c9b.js +1 -0
  3. package/assets/esri/core/workers/chunks/211c32244e05164dcd38.js +314 -0
  4. package/assets/esri/core/workers/chunks/219b06cca6aa1e041f40.js +1 -0
  5. package/assets/esri/core/workers/chunks/282c2d52011b331d4704.js +1 -0
  6. package/assets/esri/core/workers/chunks/2dc35c1c5d83174a2c06.js +1 -0
  7. package/assets/esri/core/workers/chunks/{e4651d577d297386268e.js → 32035bc69ee18b19623d.js} +1 -1
  8. package/assets/esri/core/workers/chunks/39c595734a9e9cd67e41.js +1 -0
  9. package/assets/esri/core/workers/chunks/544ad8fa4777ba8ec177.js +1 -0
  10. package/assets/esri/core/workers/chunks/6c64ccf5f64b5025b239.js +1 -0
  11. package/assets/esri/core/workers/chunks/89960be0e525d42ccffe.js +1 -0
  12. package/assets/esri/core/workers/chunks/9be12d0df67e2c4c3787.js +1 -0
  13. package/assets/esri/core/workers/chunks/a80c3ada9e09b8832e9b.js +1 -0
  14. package/assets/esri/core/workers/chunks/a8457210711b663059f0.js +1 -0
  15. package/assets/esri/core/workers/chunks/cbba0b6bd41d16eacb5c.js +1 -0
  16. package/assets/esri/core/workers/chunks/ea4c7560e64335f155f9.js +1 -0
  17. package/assets/esri/core/workers/chunks/eac791e3a0bb056a28f3.js +1 -0
  18. package/assets/esri/core/workers/chunks/{08980b1ad3d5d67c6390.js → f419aaf3bab086060894.js} +1 -1
  19. package/chunks/ComponentShader.glsl.js +6 -6
  20. package/core/libs/gl-matrix-2/factories/mat2df32.js +1 -1
  21. package/core/libs/gl-matrix-2/factories/mat2df64.js +1 -1
  22. package/core/libs/gl-matrix-2/factories/mat2f32.js +1 -1
  23. package/core/libs/gl-matrix-2/factories/mat2f64.js +1 -1
  24. package/core/libs/gl-matrix-2/factories/mat3f32.js +1 -1
  25. package/core/libs/gl-matrix-2/factories/mat3f64.js +1 -1
  26. package/core/libs/gl-matrix-2/factories/mat4f32.js +1 -1
  27. package/core/libs/gl-matrix-2/factories/mat4f64.js +1 -1
  28. package/core/libs/gl-matrix-2/factories/quat2f64.js +1 -1
  29. package/core/libs/gl-matrix-2/factories/vec2f32.js +1 -1
  30. package/core/libs/gl-matrix-2/factories/vec2f64.js +1 -1
  31. package/core/libs/gl-matrix-2/factories/vec3f32.js +1 -1
  32. package/core/libs/gl-matrix-2/factories/vec3f64.js +1 -1
  33. package/core/libs/gl-matrix-2/factories/vec4f32.js +1 -1
  34. package/core/libs/gl-matrix-2/factories/vec4f64.js +1 -1
  35. package/package.json +1 -1
  36. package/support/revision.js +1 -1
  37. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
  38. package/views/3d/environment/EnvironmentManager.js +1 -1
  39. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  40. package/views/3d/environment/Fog.js +1 -1
  41. package/views/3d/webgl-engine/lib/AnimationTimer.js +1 -1
  42. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  43. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  44. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  45. package/views/SceneView.js +1 -1
  46. package/assets/esri/core/workers/chunks/3ba85f1d660b8887f963.js +0 -314
  47. package/assets/esri/core/workers/chunks/3c8e5b5fb52611e30ed6.js +0 -1
  48. package/assets/esri/core/workers/chunks/5eceedac9b2b4d1ef133.js +0 -1
  49. package/assets/esri/core/workers/chunks/74e0116ae84def626c87.js +0 -1
  50. package/assets/esri/core/workers/chunks/7e3b374f906441cd7fb0.js +0 -1
  51. package/assets/esri/core/workers/chunks/84c1c3336011a1b79669.js +0 -1
  52. package/assets/esri/core/workers/chunks/9e7895e8201127ffe0a8.js +0 -1
  53. package/assets/esri/core/workers/chunks/a5e9ea13e844a62b2a7f.js +0 -1
  54. package/assets/esri/core/workers/chunks/a6ec3665bde2af8a96e6.js +0 -1
  55. package/assets/esri/core/workers/chunks/bf0bf2b912d668575a9b.js +0 -1
  56. package/assets/esri/core/workers/chunks/d7b260d6187f29e0c136.js +0 -1
  57. package/assets/esri/core/workers/chunks/debfb75a94b66b58cbbc.js +0 -1
  58. package/assets/esri/core/workers/chunks/e490f70f192780d7ad50.js +0 -1
  59. package/assets/esri/core/workers/chunks/e71b780d1e6a32f303b7.js +0 -1
  60. package/assets/esri/core/workers/chunks/f285ed5425b31123d2bc.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2763,8256],{11006:(t,e,n)=>{function r(t,e,n,r,o){i(t,e,n||0,r||t.length-1,o||s)}function i(t,e,n,r,s){for(;r>n;){if(r-n>600){var a=r-n+1,l=e-n+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1);i(t,e,Math.max(n,Math.floor(e-l*c/a+h)),Math.min(r,Math.floor(e+(a-l)*c/a+h)),s)}var p=t[e],f=n,d=r;for(o(t,n,e),s(t[r],p)>0&&o(t,n,r);f<d;){for(o(t,f,d),f++,d--;s(t[f],p)<0;)f++;for(;s(t[d],p)>0;)d--}0===s(t[n],p)?o(t,n,d):o(t,++d,r),d<=e&&(n=d+1),e<=d&&(r=d-1)}}function o(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function s(t,e){return t<e?-1:t>e?1:0}n.d(e,{q:()=>r})},38954:(t,e,n)=>{n.d(e,{A:()=>d,B:()=>f,C:()=>c,D:()=>m,E:()=>h,G:()=>$,H:()=>N,a:()=>j,b:()=>g,c:()=>s,d:()=>u,e:()=>P,f:()=>A,g:()=>l,h:()=>y,i:()=>a,j:()=>_,k:()=>x,l:()=>o,m:()=>S,n:()=>w,o:()=>Z,p:()=>B,q:()=>O,s:()=>v,t:()=>I,u:()=>b,v:()=>M,w:()=>R,x:()=>p,y:()=>U,z:()=>F});var r=n(51850),i=n(34304);function o(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(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}function _(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function v(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function x(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function w(t,e){const n=e[0],r=e[1],i=e[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function P(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=i*l-o*a,t[1]=o*s-r*l,t[2]=r*a-i*s,t}function S(t,e,n,r){const i=e[0],o=e[1],s=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=s+r*(n[2]-s),t}function I(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12],t[1]=n[1]*r+n[5]*i+n[9]*o+n[13],t[2]=n[2]*r+n[6]*i+n[10]*o+n[14],t}function O(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function R(t,e,n){const r=n[0],i=n[1],o=n[2],s=n[3],a=e[0],l=e[1],u=e[2],c=i*u-o*l,h=o*a-r*u,p=r*l-i*a,f=i*p-o*h,d=o*c-r*p,m=r*h-i*c,y=2*s;return t[0]=a+c*y+2*f,t[1]=l+h*y+2*d,t[2]=u+p*y+2*m,t}const E=(0,r.vt)(),L=(0,r.vt)();function B(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function Z(t,e,n){const r=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2];let s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const j=u,T=c,C=h,$=_,U=v,N=o,F=x;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(t,e){w(E,t),w(L,e);const n=A(E,L);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,i,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,h=3*l*s,p=l*o;return t[0]=e[0]*u+n[0]*c+r[0]*h+i[0]*p,t[1]=e[1]*u+n[1]*c+r[1]*h+i[1]*p,t[2]=e[2]*u+n[2]*c+r[2]*h+i[2]*p,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:P,crossAndNormalize:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2],u=i*l-o*a,c=o*s-r*l,h=r*a-i*s,p=Math.sqrt(u*u+c*c+h*h);return t[0]=u/p,t[1]=c/p,t[2]=h/p,t},direction:Z,dist:$,distance:_,div:C,divide:h,dot:A,equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],s=e[0],a=e[1],l=e[2],u=(0,i.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))},exactEquals:B,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*a+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*a+n[2]*l+r[2]*u+i[2]*c,t},inverse:b,len:N,length:o,lerp:S,max:m,min:d,mul:T,multiply:c,negate:M,normalize:w,random:function(t,e=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=o*e,t},rotateX:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,set:a,sign:f,sqrDist:U,sqrLen:F,squaredDistance:v,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:j,subtract:u,transformMat3:O,transformMat4:I,transformQuat:R},Symbol.toStringTag,{value:"Module"}))},4902:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(90237),i=n(40608);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.$)("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.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};let l=class extends(s(class{})){};var u;l=(0,r._)([(0,i.$)("esri.core.Identifiable")],l),(u=l||(l={})).IdentifiableMixin=s,u.NumericIdentifiableMixin=a;const c=l},92071:(t,e,n)=>{n.d(e,{P:()=>v,L:()=>x});var r=n(90237),i=n(69622),o=n(76953),s=n(4718),a=n(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new l,n=this._originStores[a.Gr.DEFAULTS];n&&n.forEach(((t,n)=>{e.set(n,(0,s.o8)(t),a.Gr.DEFAULTS)}));for(let n=a.Gr.SERVICE;n<a.AU;n++){const r=this._originStores[n];r&&r.forEach(((r,i)=>{t&&t.has(i)||e.set(i,(0,s.o8)(r),n)}))}return e}get(t,e){const n=void 0===e?this._values:this._originStores[e];return n?n.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,n=a.Gr.USER){let r=this._originStores[n];if(r||(r=new Map,this._originStores[n]=r),r.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=n){const r=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,n),r!==e}return!1}delete(t,e=a.Gr.USER){const n=this._originStores[e];if(!n)return;const r=n.get(t);if(n.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let n=e-1;n>=0;n--){const e=this._originStores[n];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,n);break}}}return r}has(t,e){const n=void 0===e?this._values:this._originStores[e];return!!n&&n.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const n=this._originStores[e],r=n?.get(t),i=this._values.get(t);return this._values.set(t,r),this._propertyOriginMap.set(t,e),i!==r}originOf(t){return this._propertyOriginMap.get(t)||a.Gr.DEFAULTS}forEach(t){this._values.forEach(t)}}var u=n(45917),c=n(88620),h=n(40608);const p=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,c.oY)(this),n=e.store,r=new l;e.store=r,(0,o.k)(e,n,r)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const n=f(this),r=(0,a.aB)(e);if("string"==typeof t)return n.get(t,r);const i={};return t.forEach((t=>{i[t]=n.get(t,r)})),i}originOf(t){return(0,a.OL)(this.originIdOf(t))}originIdOf(t){return f(this).originOf(t)}revert(t,e){const n=f(this),r=(0,a.aB)(e),i=(0,c.oY)(this);let o;o="string"==typeof t?"*"===t?n.keys(r):[t]:t,o.forEach((t=>{i.invalidate(t),n.revert(t,r),i.commit(t)}))}};return e=(0,r._)([(0,h.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function f(t){return(0,c.oY)(t).store}let d=class extends(p(i.A)){};d=(0,r._)([(0,h.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],d);var m=n(16649),y=n(49422);const g=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return _(this).delete(t,(0,a.aB)(e))}write(t,e){return(0,y.M)(this,t=t||{},e),t}setAtOrigin(t,e,n){(0,c.oY)(this).setAtOrigin(t,e,(0,a.aB)(n))}removeOrigin(t){const e=_(this),n=(0,a.aB)(t),r=e.keys(n);for(const t of r)e.originOf(t)===n&&e.set(t,e.get(t,n),a.Gr.USER)}updateOrigin(t,e){const n=_(this),r=(0,a.aB)(e),i=(0,m.Jt)(this,t);for(let e=r+1;e<a.AU;++e)n.delete(t,e);n.set(t,i,r)}toJSON(t){return this.write({},t)}};return e=(0,r._)([(0,h.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function _(t){return(0,c.oY)(t).store}const v=t=>{let e=class extends(g(p(t))){constructor(...t){super(...t)}};return e=(0,r._)([(0,h.$)("esri.core.MultiOriginJSONSupport")],e),e};let x=class extends(v(i.A)){};x=(0,r._)([(0,h.$)("esri.core.MultiOriginJSONSupport")],x)},62885:(t,e,n)=>{n.d(e,{H:()=>o,V:()=>i});var r=n(5503);function i(t,e,n=r.A){return e||(e=new n),e===t||(e.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?e.addMany(t):t&&e.add(t)),e;var i}function o(t){return t}},43668:(t,e,n)=>{n.d(e,{M5:()=>h,eV:()=>c});var r=n(78888),i=n(49186),o=n(74887),s=n(84952),a=n(26306);let l=null,u=!0;function c(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(t,e,n)}catch(t){u=!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:u}=await async function(t,e){const n=(0,s.r$)(t);if(n?.isBase64)return{arrayBuffer:(0,a.M)(n.data),mediaType:n.mediaType};const i=await(0,r.A)(t,{responseType:"array-buffer",...e});return{arrayBuffer:i.data,mediaType:i.getHeader?.("Content-Type")??""}}(t,e),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:t,parseGif:r}=await n.e(820).then(n.bind(n,10820));if(t(l))return r(l,e)}if(c){const{isAnimatedPNG:t,parseApng:r}=await n.e(2390).then(n.bind(n,22390));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.A)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,o.zf)(t))throw new i.A("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),e)}},29242:(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,{fA:()=>i,vt:()=>r,zK:()=>o});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,fromValues:i},Symbol.toStringTag,{value:"Module"}))},48163:(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,{Un:()=>l,fA:()=>i,vt:()=>r});const l=o(),u=s(),c=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:u,UNIT_Y:c,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,freeze:function(t,e){return[t,e]},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"}))},77690:(t,e,n)=>{n.d(e,{B8:()=>a,Ge:()=>p,I0:()=>h,KC:()=>l,hZ:()=>o,hs:()=>c,lw:()=>u,mg:()=>s,z0:()=>i});var r=n(34304);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,u){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]=u,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],u=e[7],c=e[8],h=c*s-a*u,p=-c*o+a*l,f=u*o-s*l;let d=n*h+r*p+i*f;return d?(d=1/d,t[0]=h*d,t[1]=(-c*r+i*u)*d,t[2]=(a*r-i*s)*d,t[3]=p*d,t[4]=(c*n-i*l)*d,t[5]=(-a*n+i*o)*d,t[6]=f*d,t[7]=(-u*n+r*l)*d,t[8]=(s*n-r*o)*d,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],u=e[7],c=e[8];return t[0]=s*c-a*u,t[1]=i*u-r*c,t[2]=r*a-i*s,t[3]=a*l-o*c,t[4]=n*c-i*l,t[5]=i*o-n*a,t[6]=o*u-s*l,t[7]=r*l-n*u,t[8]=n*s-r*o,t}function u(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=n[0],f=n[1],d=n[2],m=n[3],y=n[4],g=n[5],_=n[6],v=n[7],x=n[8];return t[0]=p*r+f*s+d*u,t[1]=p*i+f*a+d*c,t[2]=p*o+f*l+d*h,t[3]=m*r+y*s+g*u,t[4]=m*i+y*a+g*c,t[5]=m*o+y*l+g*h,t[6]=_*r+v*s+x*u,t[7]=_*i+v*a+x*c,t[8]=_*o+v*l+x*h,t}function c(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,u=n*s,c=r*s,h=r*a,p=i*s,f=i*a,d=i*l,m=o*s,y=o*a,g=o*l;return t[0]=1-h-d,t[3]=c-g,t[6]=p+y,t[1]=c+g,t[4]=1-u-d,t[7]=f-m,t[2]=p-y,t[5]=f+m,t[8]=1-u-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],u=e[7],c=e[8],h=e[9],p=e[10],f=e[11],d=e[12],m=e[13],y=e[14],g=e[15],_=n*a-r*s,v=n*l-i*s,x=n*u-o*s,M=r*l-i*a,b=r*u-o*a,w=i*u-o*l,A=c*m-h*d,P=c*y-p*d,S=c*g-f*d,I=h*y-p*m,O=h*g-f*m,R=p*g-f*y;let E=_*R-v*O+x*I+M*S-b*P+w*A;return E?(E=1/E,t[0]=(a*R-l*O+u*I)*E,t[1]=(l*S-s*R-u*P)*E,t[2]=(s*O-a*S+u*A)*E,t[3]=(i*O-r*R-o*I)*E,t[4]=(n*R-i*S+o*P)*E,t[5]=(r*S-n*O-o*A)*E,t[6]=(m*w-y*b+g*M)*E,t[7]=(y*x-d*w-g*v)*E,t[8]=(d*b-m*x+g*_)*E,t):null}function f(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}const d=u,m=f;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],u=t[8];return e*(u*o-s*l)+n*(-u*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],u=t[6],c=t[7],h=t[8],p=e[0],f=e[1],d=e[2],m=e[3],y=e[4],g=e[5],_=e[6],v=e[7],x=e[8],M=(0,r.FD)();return Math.abs(n-p)<=M*Math.max(1,Math.abs(n),Math.abs(p))&&Math.abs(i-f)<=M*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(o-d)<=M*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(s-m)<=M*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(a-y)<=M*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(l-g)<=M*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(u-_)<=M*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(c-v)<=M*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(h-x)<=M*Math.max(1,Math.abs(h),Math.abs(x))},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:function(t){const e=(0,r.FD)(),n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8];return Math.abs(1-(n*n+s*s+u*u))<=e&&Math.abs(1-(i*i+a*a+c*c))<=e&&Math.abs(1-(o*o+l*l+h*h))<=e},mul:d,multiply:u,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],u=e[9],c=e[10],h=c*s-a*u,p=-c*o+a*l,f=u*o-s*l,d=n*h+r*p+i*f;if(!d)return null;const m=1/d;return t[0]=h*m,t[1]=(-c*r+i*u)*m,t[2]=(a*r-i*s)*m,t[3]=p*m,t[4]=(c*n-i*l)*m,t[5]=(-a*n+i*o)*m,t[6]=f*m,t[7]=(-u*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],u=e[6],c=e[7],h=e[8],p=Math.sin(n),f=Math.cos(n);return t[0]=f*r+p*s,t[1]=f*i+p*a,t[2]=f*o+p*l,t[3]=f*s-p*r,t[4]=f*a-p*i,t[5]=f*l-p*o,t[6]=u,t[7]=c,t[8]=h,t},scale:c,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:m,subtract:f,translate:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=n[0],f=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+f*s+u,t[7]=p*i+f*a+c,t[8]=p*o+f*l+h,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},37585:(t,e,n)=>{n.d(e,{C:()=>i,Cc:()=>y,Io:()=>h,S8:()=>m,WQ:()=>s,e$:()=>_,hZ:()=>o,hs:()=>c,jb:()=>M,l0:()=>g,t2:()=>v});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t,e,n){return t[0]=e,t[1]=n,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,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function c(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function h(t,e){const n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function p(t,e){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function f(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function d(t){const e=t[0],n=t[1];return e*e+n*n}function m(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}function y(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 g(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 _(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}function v(t,e){return t[0]===e[0]&&t[1]===e[1]}const x=f,M=a,b=l,w=u,A=h,P=p,S=d;Object.freeze(Object.defineProperty({__proto__:null,add:s,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:i,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:A,distance:h,div:w,divide:u,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.FD)();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:v,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:x,length:f,lerp:y,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:b,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:m,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=1){const n=2*(0,r.Ov)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:_,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:c,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},set:o,sqrDist:P,sqrLen:S,squaredDistance:p,squaredLength:d,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:M,subtract:a,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:g,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"}))},75503:(t,e,n)=>{n.d(e,{E:()=>P,w:()=>a});var r=n(4576),i=n(21818),o=(n(44208),n(3694)),s=n(11006);class a{constructor(t=9,e){this._compareMinX=p,this._compareMinY=f,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(),M.prune(),b.prune(),w.prune(),A.prune()}all(t){l(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(v(t,n))for(M.clear();n;){for(let i=0,o=n.children.length;i<o;i++){const o=n.children[i],s=n.leaf?r(o):o;v(t,s)&&(n.leaf?e(o):_(t,s)?l(o,e):M.push(o))}n=M.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!v(t,e))return!1;for(M.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(v(t,o)){if(e.leaf||_(t,o))return!0;M.push(i)}}e=M.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-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 I([]),this}remove(t){if(!t)return this;let e,n=this._data,o=null,s=0,a=!1;const l=this._toBBox(t);for(w.clear(),A.clear();n||w.length>0;){if(n||(n=w.pop(),o=w.data[w.length-1],s=A.pop()??0,a=!0),n.leaf&&(e=(0,r.qh)(n.children,(0,i.zI)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),w.push(n),this._condense(w),this;a||n.leaf||!_(n,l)?o?(s++,n=o.children[s],a=!1):n=null:(w.push(n),A.push(s),s=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,r){const i=n-e+1;let o=this._maxEntries;if(i<=o){const r=new I(t.slice(e,n+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(o)),o=Math.ceil(i/o**(r-1)));const s=new O([]);s.height=r;const a=Math.ceil(i/o),l=a*Math.ceil(Math.sqrt(o));x(t,e,n,l,this._compareMinX);for(let i=e;i<=n;i+=l){const e=Math.min(i+l-1,n);x(t,i,e,a,this._compareMinY);for(let n=i;n<=e;n+=a){const i=Math.min(n+a-1,e);s.children.push(this._build(t,n,i,r-1))}}return u(s,this._toBBox),s}_insert(t,e,n){const r=this._toBBox,i=n?t:r(t);w.clear();const o=function(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=d(s),l=y(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}(i,this._data,e,w);for(o.children.push(t),h(o,i);e>=0&&w.data[e].children.length>this._maxEntries;)this._split(w,e),e--;!function(t,e,n){for(let r=n;r>=0;r--)h(e.data[r],t)}(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;const s=n.children.splice(o,n.children.length-o),a=n.leaf?new I(s):new O(s);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(n,a)}_splitRoot(t,e){this._data=new O([t,e]),this._data.height=t.height+1,u(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=c(t,0,s,this._toBBox),a=c(t,s,n,this._toBBox),l=g(e,a),u=d(e)+d(a);l<r?(r=l,o=s,i=u<i?u:i):l===r&&u<i&&(i=u,o=s)}return o}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:p,i=t.leaf?this._compareMinY:f;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=c(t,0,e,i),s=c(t,n-e,n,i);let a=m(o)+m(s);for(let r=e;r<n-e;r++){const e=t.children[r];h(o,t.leaf?i(e):e),a+=m(o)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];h(s,t.leaf?i(e):e),a+=m(s)}return a}_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.qh)(o,n,o.length,i.indexHint),1)}else this.clear();else u(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 l(t,e){let n=t;for(b.clear();n;){if(!0===n.leaf)for(const t of n.children)e((0,i.zI)(t));else b.pushArray(n.children);n=b.pop()??null}}function u(t,e){c(t,0,t.children.length,e,t)}function c(t,e,n,r,i){i||(i=new I([])),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],h(i,t.leaf?r(o):o);return i}function h(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 p(t,e){return t.minX-e.minX}function f(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function y(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 g(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 _(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function v(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function x(t,e,n,r,i){const o=[e,n];for(;o.length;){const e=o.pop(),n=o.pop();if(e-n<=r)continue;const a=n+Math.ceil((e-n)/r/2)*r;(0,s.q)(t,a,n,e,i),o.push(n,a,a,e)}}const M=new o.A,b=new o.A,w=new o.A,A=new o.A({deallocator:void 0});class P{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends P{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class I extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class O extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},36708:(t,e,n)=>{n.d(e,{C_:()=>p,OH:()=>m,Vh:()=>y,on:()=>h,pc:()=>g,wB:()=>l,z7:()=>u}),n(60999),n(5503);var r=n(37955),i=n(36563),o=n(97768),s=n(74887),a=n(14012);function l(t,e,n={}){return c(t,e,n,f)}function u(t,e,n={}){return c(t,e,n,d)}function c(t,e,n={},r){let i=null;const s=n.once?(t,n)=>{r(t)&&((0,o.xt)(i),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(i=(0,a.Cn)(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,u=null,c=null;function h(){a&&u&&(u.remove(),s.onListenerRemove?.(a),a=null,u=null)}function p(t){s.once&&s.once&&(0,o.xt)(c),n(t)}const f=l(t,((t,n)=>{h(),(0,r.wb)(t)&&(a=t,u=(0,r.on)(t,e,p),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return c=(0,i.hA)((()=>{f.remove(),h()})),c}function p(t,e){return function(t,e,n){if((0,s.G4)(n))return Promise.reject((0,s.NK)());const r=t();if(e?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,o.xt)(a)}return new Promise(((r,o)=>{a=(0,i.vE)([(0,s.u7)(n,(()=>{l(),o((0,s.NK)())})),c(t,(t=>{l(),r(t)}),{sync:!1,once:!0},e??f)])}))}(t,d,e)}function f(t){return!0}function d(t){return!!t}n(80559);const m={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},13069:(t,e,n)=>{n.d(e,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});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()}}`}function a(t){const e=t.toUpperCase();return"{"!==t[0]?`{${e}}`:e}},80754:(t,e,n)=>{n.d(e,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>u});var r=n(82799),i=n(16930),o=n(65864);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=u(t);for(const t of n)for(const n of t)n[0]+=e;return t}function u(t){return(0,o.Bi)(t)?t.rings:t.paths}},89056:(t,e,n)=>{n.d(e,{b3:()=>h,jZ:()=>c});var r=n(25482),i=n(19419),o=n(537),s=n(95108),a=n(65864),l=n(80754),u=n(21325);function c(t){return p(t,!0)}function h(t){return p(t,!1)}function p(t,e){if(null==t)return null;const n=t.spatialReference,i=(0,u.Vp)(n),s=r.A.isSerializable(t)?t.toJSON():t;if(!i)return s;const c=(0,u.K8)(n)?102100:4326,h=l.j7[c].maxX,p=l.j7[c].minX;if((0,a.fT)(s))return d(s,h,p);if((0,a.U9)(s))return s.points=s.points.map((t=>d(t,h,p))),s;if((0,a.ZC)(s))return f(s,i);if((0,a.Bi)(s)||(0,a.Rg)(s)){const t=(0,o.Rg)(x,s),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,l.kd)(n.xmin,p)*(2*h),i=0===r?s:(0,l.kS)(s,r);return n.xmin+=r,n.xmax+=r,n.xmax>h?_(i,h,e):n.xmin<p?_(i,p,e):i}return s}function f(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:r,ymax:i,xmin:o,xmax:s}=t,a=t.xmax-t.xmin,[l,u]=e.valid,{x:c,frameId:h}=m(t.xmin,e),{x:p,frameId:f}=m(t.xmax,e),d=c===p&&a>0;if(a>2*u){const t={xmin:o<s?c:p,ymin:r,xmax:u,ymax:i},e={xmin:l,ymin:r,xmax:o<s?p:c,ymax:i},a={xmin:0,ymin:r,xmax:u,ymax:i},d={xmin:l,ymin:r,xmax:0,ymax:i},m=[],g=[];y(t,a)&&m.push(h),y(t,d)&&g.push(h),y(e,a)&&m.push(f),y(e,d)&&g.push(f);for(let t=h+1;t<f;t++)m.push(t),g.push(t);n.push(new v(t,[h]),new v(e,[f]),new v(a,m),new v(d,g))}else c>p||d?n.push(new v({xmin:c,ymin:r,xmax:u,ymax:i},[h]),new v({xmin:l,ymin:r,xmax:p,ymax:i},[f])):n.push(new v({xmin:c,ymin:r,xmax:p,ymax:i},[h]));return n}(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]]))}}function d(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,l.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,l.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,l.kd)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,l.kd)(r,n);t.x+=e*(-2*n)}}return t}function m(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 y(t,e){const{xmin:n,ymin:r,xmax:i,ymax:o}=e;return g(t,n,r)&&g(t,n,o)&&g(t,i,o)&&g(t,i,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function _(t,e,n=!0){const r=!(0,a.Rg)(t);if(r&&(0,s.m3)(t),n)return(new M).cut(t,e);const i=r?t.rings:t.paths,o=r?4:2,l=i.length,u=-2*e;for(let t=0;t<l;t++){const e=i[t];if(e&&e.length>=o){const t=[];for(const n of e)t.push([n[0]+u,n[1]]);i.push(t)}}return r?t.rings=i:t.paths=i,t}class v{constructor(t,e){this.extent=t,this.frameIds=e}}const x=(0,i.vt)();class M{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?(b(this._lineIn,n<=0?t:this._xCut,e),b(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]))}_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=[]}}function b(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])}},4146:(t,e,n)=>{n.d(e,{A:()=>x});var r=n(90237),i=n(78888),o=n(49186),s=n(65529),a=n(4902),l=n(92474),u=n(53966),c=n(74887),h=n(84952),p=n(10107),f=(n(44208),n(87811),n(40608)),d=n(5443),m=n(16930),y=n(92602),g=n(79677);let _=0,v=class extends(s.A.EventedMixin(a.A.IdentifiableMixin(l.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new d.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+_++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(7982).then(n.bind(n,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(5613).then(n.bind(n,45613));try{return await r(e)}catch(t){const n=e?.portalItem,r=n?.id||"unset",i=n?.portal?.url||y.A.portalUrl;throw u.A.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,c.zf)(t)||u.A.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 effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(t,e){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,i.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,p.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,r._)([(0,p.MZ)({type:d.A})],v.prototype,"fullExtent",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,r._)([(0,p.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,r._)([(0,p.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,r._)([(0,p.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,r._)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,r._)([(0,p.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,r._)([(0,p.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,r._)([(0,p.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,r._)([(0,p.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,r._)([(0,p.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,r._)([(0,p.MZ)({type:String})],v.prototype,"title",void 0),(0,r._)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,r._)([(0,p.MZ)()],v.prototype,"url",void 0),(0,r._)([(0,p.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,r._)([(0,p.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,r._)([(0,f.$)("esri.layers.Layer")],v);const x=v},19647:(t,e,n)=>{n.r(e),n.d(e,{default:()=>oe});var r=n(90237),i=n(5503),o=n(49186),s=n(53966),a=n(92071),l=n(74887),u=n(10107),c=n(79901),h=(n(44208),n(87811),n(36005)),p=n(40608),f=n(43937),d=n(35666),m=n(4146),y=n(63074),g=n(16131),_=n(8303),v=n(25036),x=n(69540),M=n(25482),b=n(77690),w=n(29242),A=n(37585),P=n(38954);const S=(0,n(51850).vt)(),I=(0,w.vt)(),O=(0,w.vt)(),R=(0,w.vt)();function E(t,e,n){return(0,P.i)(S,e[0],e[1],1),(0,P.q)(S,S,(0,b.mg)(I,n)),0===S[2]?(0,A.hZ)(t,S[0],S[1]):(0,A.hZ)(t,S[0]/S[2],S[1]/S[2])}function L(t,e,n){return B(O,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),B(R,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,b.lw)(t,(0,b.KC)(O,O),R),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 B(t,e,n,r,i,o,s,a,l){(0,b.hZ)(t,e,r,o,n,i,s,1,1,1),(0,P.i)(S,a,l,1),(0,b.KC)(I,t);const[u,c,h]=(0,P.q)(S,S,(0,b.mg)(I,I));return(0,b.hZ)(I,u,0,0,0,c,0,0,0,h),(0,b.lw)(t,I,t)}var Z=n(90629),j=n(48163),T=n(86738),C=n(39829),$=n(57251),U=n(16930);let N=class extends x.A{projectOrWarn(t,e){if(null==t)return t;const{geometry:n,pending:r}=(0,$.projectOrLoad)(t,e);return r?null:r||n?n:(s.A.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};N=(0,r._)([(0,p.$)("esri.layers.support.GeoreferenceBase")],N);const F=N,X=(0,w.vt)(),q=(0,j.vt)();let Y=class extends M.A{};(0,r._)([(0,u.MZ)({type:Number,json:{write:{isRequired:!0}}})],Y.prototype,"x",void 0),(0,r._)([(0,u.MZ)({type:Number,json:{write:{isRequired:!0}}})],Y.prototype,"y",void 0),Y=(0,r._)([(0,p.$)("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],Y);let z=class extends x.A{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,r._)([(0,u.MZ)()],z.prototype,"sourcePoint",void 0),(0,r._)([(0,u.MZ)({type:T.A})],z.prototype,"mapPoint",void 0),z=(0,r._)([(0,p.$)("esri.layers.support.ControlPointsGeoreference.ControlPoint")],z);let V=class extends(M.A.JSONSupportMixin(F)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=U.A.fromJSON(e.spatialReference),r=(0,w.fA)(...e.coefficients,1);return t.map((t=>((0,A.hZ)(q,t.x,t.y),E(q,q,r),{sourcePoint:t,mapPoint:new T.A({x:q[0],y:q[1],spatialReference:n})})))}writeControlPoints(t,e,n,r){if(null!=this.transform)null!=t&&H(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.A("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.",{layer:r?.layer,georeference:this});r?.messages?r.messages.push(t):s.A.getLogger(this).error(t.name,t.message)}}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(X);if(null==t||!H(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,r){const i=(0,j.fA)(0,n),o=(0,j.fA)(0,0),s=(0,j.fA)(e,0),a=(0,j.fA)(e,n);return E(i,i,t),E(o,o,t),E(s,s,t),E(a,a,t),new C.A({rings:[[i,o,s,a,i]],spatialReference:r})}(t,this.width,this.height,e)}set coords(t){if(null==this.controlPoints||!H(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,Z.tc)(0,r),mapPoint:new T.A({x:i[0],y:i[1],spatialReference:e})},u={sourcePoint:(0,Z.tc)(0,0),mapPoint:new T.A({x:o[0],y:o[1],spatialReference:e})},c={sourcePoint:(0,Z.tc)(n,0),mapPoint:new T.A({x:s[0],y:s[1],spatialReference:e})},h={sourcePoint:(0,Z.tc)(n,r),mapPoint:new T.A({x:a[0],y:a[1],spatialReference:e})};H(l)&&H(u)&&H(c)&&H(h)&&(rt(X,l,u,c,h),this.controlPoints=this.controlPoints.map((({sourcePoint:t})=>((0,A.hZ)(q,t.x,t.y),E(q,q,X),{sourcePoint:t,mapPoint:new T.A({x:q[0],y:q[1],spatialReference:e})}))))}get inverseTransform(){return null==this.transform?null:(0,b.B8)((0,w.vt)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!H(this.controlPoints[0]))return null;(0,A.hZ)(q,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return E(q,q,this.transform),new T.A({x:q[0],y:q[1],spatialReference:e})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!H(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=(0,$.projectOrLoad)(t,e).geometry)?null:((0,A.hZ)(q,t.x,t.y),E(q,q,this.inverseTransform),(0,Z.tc)(q[0],q[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(!H(i))return null;const l=i.mapPoint.spatialReference,u=this._projectControlPoint(o,l),c=this._projectControlPoint(s,l),h=this._projectControlPoint(a,l);if(!u.valid||!c.valid||!h.valid)return null;if(!H(u.controlPoint))return null;null==t&&(t=(0,w.vt)());let p=null;return p=H(c.controlPoint)&&H(h.controlPoint)?rt(t,i,u.controlPoint,c.controlPoint,h.controlPoint):H(c.controlPoint)?function(t,e,n,r){return nt(k,J,e),nt(D,K,n),nt(G,Q,r),(0,A.Cc)(W,k,D,.5),(0,A.e$)(W,G,W,Math.PI),(0,A.Cc)(tt,J,K,.5),(0,A.e$)(tt,Q,tt,Math.PI),at(t,k,D,G,W,J,K,Q,tt)}(t,i,u.controlPoint,c.controlPoint):function(t,e,n){return nt(k,J,e),nt(D,K,n),(0,A.e$)(G,D,k,et),(0,A.e$)(W,k,D,et),(0,A.e$)(Q,K,J,-et),(0,A.e$)(tt,J,K,-et),at(t,k,D,G,W,J,K,Q,tt)}(t,i,u.controlPoint),p.every((t=>0===t))?null:p}_projectControlPoint(t,e){if(!H(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:r}=t,{geometry:i,pending:o}=(0,$.projectOrLoad)(r,e);return o?{valid:!1,controlPoint:null}:o||i?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:i}}:(s.A.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 H(t){return null!=t?.sourcePoint&&null!=t.mapPoint}(0,r._)([(0,u.MZ)({type:[z],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[Y],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:U.A,isRequired:!0}}}}})],V.prototype,"controlPoints",void 0),(0,r._)([(0,h.w)("controlPoints")],V.prototype,"readControlPoints",null),(0,r._)([(0,f.K)("controlPoints")],V.prototype,"writeControlPoints",null),(0,r._)([(0,u.MZ)({clonable:!1})],V.prototype,"coords",null),(0,r._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],V.prototype,"height",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],V.prototype,"inverseTransform",null),(0,r._)([(0,u.MZ)({readOnly:!0})],V.prototype,"transform",null),(0,r._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],V.prototype,"width",void 0),V=(0,r._)([(0,p.$)("esri.layers.support.ControlPointsGeoreference")],V);const k=(0,j.vt)(),D=(0,j.vt)(),G=(0,j.vt)(),W=(0,j.vt)(),J=(0,j.vt)(),K=(0,j.vt)(),Q=(0,j.vt)(),tt=(0,j.vt)(),et=Math.PI/2;function nt(t,e,n){(0,A.hZ)(t,n.sourcePoint.x,n.sourcePoint.y),(0,A.hZ)(e,n.mapPoint.x,n.mapPoint.y)}function rt(t,e,n,r,i){return nt(k,J,e),nt(D,K,n),nt(G,Q,r),nt(W,tt,i),at(t,k,D,G,W,J,K,Q,tt)}const it=new Array(8).fill(0),ot=new Array(8).fill(0);function st(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 at(t,e,n,r,i,o,s,a,l){return L(t,st(it,e,n,r,i),st(ot,o,s,a,l))}const lt=V;var ut=n(78888),ct=n(43668),ht=n(84952),pt=n(13069),ft=n(4902),dt=n(92474),mt=n(5443),yt=n(21325);const gt=(0,j.vt)();let _t=class extends F{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 C.A({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 T.A({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new T.A({x:i[0],y:i[1],spatialReference:n}),this.topRight=new T.A({x:o[0],y:o[1],spatialReference:n}),this.bottomRight=new T.A({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,$.projectOrLoad)(t,o).geometry;if(null==s)return null;(0,A.hZ)(gt,s.x,s.y);const a=L((0,w.vt)(),[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 E(gt,gt,a),(0,Z.tc)(gt[0],gt[1])}};(0,r._)([(0,u.MZ)({clonable:!1})],_t.prototype,"coords",null),(0,r._)([(0,u.MZ)({type:T.A})],_t.prototype,"bottomLeft",void 0),(0,r._)([(0,u.MZ)({type:T.A})],_t.prototype,"bottomRight",void 0),(0,r._)([(0,u.MZ)({type:T.A})],_t.prototype,"topLeft",void 0),(0,r._)([(0,u.MZ)({type:T.A})],_t.prototype,"topRight",void 0),_t=(0,r._)([(0,p.$)("esri.layers.support.CornersGeoreference")],_t);const vt=_t;var xt=n(34727),Mt=n(34304);let bt=class extends F{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=wt(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 C.A({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,xt.KJ)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),l=wt(o,s,-a),[u,c]=l(n[0],n[1]),[h,p]=l(i[0],i[1]);this.extent=new mt.A({xmin:u,ymin:c,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 u=(0,$.projectOrLoad)(t,l).geometry;if(null==u)return null;let c=u.x,h=u.y;return n&&([c,h]=wt(a.x,a.y,-n)(c,h)),(0,Z.tc)((0,xt.hs)(c,r,o,0,1),(0,xt.hs)(h,s,i,0,1))}};function wt(t,e,n){const r=(0,Mt.DF)(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]}function At(t,e){const n=(0,d.aB)(e);return function(t){return"media"===t?.type}(t)&&!!t.portalItem&&null!=n&&n>d.Gr.PORTAL_ITEM}function Pt(t,e,n){return{enabled:!At(n?.layer,n?.origin),ignoreOrigin:!0}}(0,r._)([(0,u.MZ)({clonable:!1})],bt.prototype,"coords",null),(0,r._)([(0,u.MZ)({type:mt.A})],bt.prototype,"extent",void 0),(0,r._)([(0,u.MZ)({type:Number})],bt.prototype,"rotation",void 0),bt=(0,r._)([(0,p.$)("esri.layers.support.ExtentAndRotationGeoreference")],bt);const St={json:{name:"url",type:String,write:{overridePolicy:Pt}}},It={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:Pt}}},Ot={types:{key:"type",base:F,typeMap:{"control-points":lt,corners:vt,"extent-and-rotation":bt}},json:{types:{key:"type",base:F,typeMap:{"control-points":lt}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};let Rt=class extends(ft.A.NumericIdentifiableMixin((0,a.P)(dt.A))){constructor(t){super(t),this.georeference=null,this.opacity=1}readGeoreference(t){return lt.fromJSON(t)}writeGeoreference(t,e,n,r){const i=r?.resources?.pendingOperations,a=()=>{const i=function(t,e,n){if(!t||"control-points"===t.type)return t;const{coords:r}=t;if(5!==r?.rings[0]?.length)return null;const[i,o,s,a]=r.rings[0],{spatialReference:l}=r;return new lt({controlPoints:[{mapPoint:new T.A({x:i[0],y:i[1],spatialReference:l}),sourcePoint:(0,Z.tc)(0,n)},{mapPoint:new T.A({x:o[0],y:o[1],spatialReference:l}),sourcePoint:(0,Z.tc)(0,0)},{mapPoint:new T.A({x:s[0],y:s[1],spatialReference:l}),sourcePoint:(0,Z.tc)(e,0)},{mapPoint:new T.A({x:a[0],y:a[1],spatialReference:l}),sourcePoint:(0,Z.tc)(e,n)}],width:e,height:n})}(this.georeference,this.contentWidth,this.contentHeight);if(i){if("control-points"!==t.type&&s.A.getLogger(this).warn(`only georeference of type 'control-points' may be persisted. The georeference of type '${t.type}' has been automatically converted.`),4!==i.controlPoints?.length&&r?.messages)return void r.messages.push(new o.A("property:unsupported","only 'control-points' georeference with 4 control points may be persisted."));e[n]=i.write({},r)}};if("control-points"!==t.type&&!this.loaded&&i)return e[n]={},void i.push(this.load().then(a));a()}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,u.MZ)(Ot)],Rt.prototype,"georeference",void 0),(0,r._)([(0,h.w)("georeference")],Rt.prototype,"readGeoreference",null),(0,r._)([(0,f.K)("georeference")],Rt.prototype,"writeGeoreference",null),(0,r._)([(0,u.MZ)({json:{read:!1,write:!1}})],Rt.prototype,"opacity",void 0),Rt=(0,r._)([(0,p.$)("esri.layers.support.MediaElementBase")],Rt);const Et=Rt;var Lt=n(85648);const Bt=Symbol("ImageElementInstance"),Zt=Symbol("VideoElementInstance");function jt(t){return function(t){return null!=t&&"object"==typeof t&&Bt in t}(t)||function(t){return null!=t&&"object"==typeof t&&Zt in t}(t)}var Tt,Ct=n(97159);let $t=class extends Et{static{Tt=Bt}constructor(t){super(t),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this[Tt]=!0,this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,ct.M5)(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.A("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,Ct.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,Ct.t)(t,r)));const s=function(t){return"string"==typeof t&&!(0,ht.DB)(t)&&!(0,ht.w8)(t)}(t)?t:null;if(s){if(null==(0,Ct.i)(s))return void(e[n]=s);const t=(0,Ct.t)(s,{...r,verifyItemRelativeUrls:r?.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},Ct.M.NO);if(i&&t&&!(0,ht.oP)(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,ht.DB)(t)?(0,ht.N9)(t):(await(0,ut.A)(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,pt.lk)(),r=`${(0,ht.fj)("media",n)}.${(0,Lt.n)({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}})})))}};(0,r._)([(0,u.MZ)()],$t.prototype,"animationOptions",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],$t.prototype,"content",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],$t.prototype,"contentWidth",null),(0,r._)([(0,u.MZ)({readOnly:!0})],$t.prototype,"contentHeight",null),(0,r._)([(0,u.MZ)(St)],$t.prototype,"image",void 0),(0,r._)([(0,h.w)("image",["url"])],$t.prototype,"readImage",null),(0,r._)([(0,f.K)("image")],$t.prototype,"writeImage",null),(0,r._)([(0,u.MZ)(It)],$t.prototype,"type",void 0),$t=(0,r._)([(0,p.$)("esri.layers.support.ImageElement")],$t);const Ut=$t;var Nt=n(62885),Ft=n(65529),Xt=n(61893),qt=n(36708),Yt=n(19419),zt=n(12176),Vt=n(6518),Ht=n(69622),kt=n(89056);let Dt=class extends Ht.A{constructor(t){super(t)}get bounds(){const t=this.coords;return null==t?.extent?null:(0,Yt.VY)(t.extent)}get coords(){const t=this.element.georeference?.coords;return(0,$.projectOrLoad)(t,this.spatialReference).geometry}get normalizedCoords(){return C.A.fromJSON((0,kt.jZ)(this.coords))}get normalizedBounds(){const t=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=t?(0,Yt.VY)(t):null}};(0,r._)([(0,u.MZ)()],Dt.prototype,"spatialReference",void 0),(0,r._)([(0,u.MZ)()],Dt.prototype,"element",void 0),(0,r._)([(0,u.MZ)()],Dt.prototype,"bounds",null),(0,r._)([(0,u.MZ)()],Dt.prototype,"coords",null),(0,r._)([(0,u.MZ)()],Dt.prototype,"normalizedCoords",null),(0,r._)([(0,u.MZ)()],Dt.prototype,"normalizedBounds",null),Dt=(0,r._)([(0,p.$)("esri.layers.support.MediaElementView")],Dt);var Gt,Wt=n(37955);let Jt=class extends Et{static{Gt=Zt}constructor(t){super(t),this.autoplay=!0,this.content=null,this.controller=null,this.type="video",this[Gt]=!0}load(){const t=this.video;return"string"==typeof t?this.addResolvingPromise(Promise.all([this._preProcessVideoUrl(t),n.e(3930).then(n.bind(n,3930))]).then((async([t,{default:e}])=>{this.controller=new e,this.controller.playerUrl=t,await(0,qt.C_)((()=>this.controller?.element)),this.controller.loop=!0,this.controller.muted=!0,this.controller.playsInline=!0,this.controller.crossOrigin="anonymous",await(0,qt.C_)((()=>"can-play"===this.controller?.state)),await this.controller.play(),this.autoplay||this.controller.pause(),this._set("content",this.controller.element)}))):t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then((()=>{this._set("content",t)}))):this.addResolvingPromise(Promise.reject(new o.A("video-element:invalid-video-type","Invalid video type",{video:t}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.controller?.currentTime}set currentTime(t){if(!this.controller)return;const e=(0,xt.qE)(t,0,this.controller.duration);this.controller?.setCurrentTime(e)}get duration(){return this.controller?.duration}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):s.A.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}writeVideo(t,e,n,r){if(!t)return void(r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source is missing")));const i=function(t){return"string"==typeof t&&!(0,ht.DB)(t)&&!(0,ht.w8)(t)}(t)?t:null;if(!i)return void(r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source must be an absolute url")));!(0,ht.oP)(i)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(i);const s=(0,ht.s2)(i);(0,Ct.i)(s)?r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source cannot be an item resource")):e[n]=s}async _preProcessVideoUrl(t){if((0,ht.zs)(t))return(0,ht.yM)(t);try{return await(0,ut.A)(t,{method:"head"}),t}catch{return(0,ht.yM)(t,!0)}}_loadVideo(t){return new Promise(((e,n)=>{const r=(0,Wt.Oo)(t,"canplay",(()=>{this.removeHandles("canplay"),this.autoplay?t.play().then(e,n):e()}));this.addHandles(r,"canplay"),"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",(0,ht.w8)(t.src)||(t.src=t.src))}))}};(0,r._)([(0,u.MZ)()],Jt.prototype,"autoplay",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],Jt.prototype,"content",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],Jt.prototype,"contentWidth",null),(0,r._)([(0,u.MZ)({readOnly:!0})],Jt.prototype,"contentHeight",null),(0,r._)([(0,u.MZ)()],Jt.prototype,"controller",void 0),(0,r._)([(0,u.MZ)({type:Number})],Jt.prototype,"currentTime",null),(0,r._)([(0,u.MZ)({type:Number})],Jt.prototype,"duration",null),(0,r._)([(0,u.MZ)(St)],Jt.prototype,"video",null),(0,r._)([(0,f.K)("video")],Jt.prototype,"writeVideo",null),(0,r._)([(0,u.MZ)(It)],Jt.prototype,"type",void 0),Jt=(0,r._)([(0,p.$)("esri.layers.support.VideoElement")],Jt);const Kt=Jt,Qt={key:"type",defaultKeyValue:"image",base:Et,typeMap:{image:Ut,video:Kt}},te=i.A.ofType(Qt);let ee=class extends(dt.A.LoadableMixin(Xt.A.EsriPromiseMixin(Ft.A.EventedAccessor))){constructor(t){super(t),this._index=new Vt.F,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 Dt({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const r=(0,qt.wB)((()=>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 te}async load(t){if((0,l.Te)(t),!this.spatialReference){const t=this.elements.find((t=>null!=t.georeference?.coords));this._set("spatialReference",t?t.georeference.coords.spatialReference:U.A.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,Nt.V)(t,this._get("elements"),te))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return null==t?null:new mt.A({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.A.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,$.initializeProjection)(t.spatialReference,this.spatialReference,null,e);const n=(0,yt.aI)(t.spatialReference,this.spatialReference)?t:(0,$.project)(t,this.spatialReference);if(!n)return[];const r=n.normalize(),i=[];for(const t of r)this._index.forEachInBounds((0,Yt.VY)(t),(({normalizedCoords:e,element:n})=>{null!=e&&(0,zt.fA)(t,e)&&i.push(n)}));return i.sort(((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e))),i}hasElement(t){return this.elements.includes(t)}_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,u.MZ)()],ee.prototype,"elements",null),(0,r._)([(0,u.MZ)({readOnly:!0})],ee.prototype,"fullExtent",null),(0,r._)([(0,u.MZ)()],ee.prototype,"spatialReference",null),ee=(0,r._)([(0,p.$)("esri.layers.support.LocalMediaElementSource")],ee);const ne=ee;var re=n(92935);let ie=class extends((0,y.dM)((0,v.j)((0,g.q)((0,_.A)((0,a.P)(m.A)))))){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.sg)((async(t,e,r)=>{const{save:i,saveAs:o}=await n.e(3561).then(n.bind(n,63561));switch(t){case re.X.SAVE:return i(this,e);case re.X.SAVE_AS:return o(this,r,e)}})),this.source=new ne}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.A("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"),this.setAtOrigin("source",n,"web-scene"),e=n);const r=jt(e)?new ne({elements:new i.A([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.effectiveSource!==this.source&&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}get source(){return this._get("source")}set source(t){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("source",t):s.A.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)?new ne({elements:new i.A(t)}):t instanceof i.A?new ne({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){if(t&&t instanceof ne){const e=t.elements.length;if(1!==e)return void(r?.messages&&r.messages.push(new o.A("media-layer:unsupported-source",`local media element source can only be persisted if it contains exactly one ImageElement, but it has ${e}.`)));t=t.elements.at(0)}jt(t)?t.write(e,r):r?.messages&&(t?r.messages.push(new o.A("media-layer:unsupported-source","only media elements of type 'ImageElement' or 'VideoElement' can be persisted")):r.messages.push(new o.A("media-layer:unsupported-source","the media layer is missing a source")))}async save(t){return this._debouncedSaveOperations(re.X.SAVE,t)}async saveAs(t,e){return this._debouncedSaveOperations(re.X.SAVE_AS,e,t)}_createSource(t){if("mediaType"in t)switch(t.mediaType){case"image":return new Ut;case"video":return new Kt}return null}_getSourceOverride(t,e){if(jt(t)&&this.originIdOf("source")===d.Gr.PORTAL_ITEM&&e&&(this.originIdOf("georeference")===d.Gr.WEB_MAP||this.originIdOf("georeference")===d.Gr.WEB_SCENE)){const n=t.toJSON(),r=this._createSource(n);return r.read({...n},{origin:"portal-item"}),r.read({georeference:e},{origin:"web-map"}),r.read({georeference:e},{origin:"web-scene"}),r}return null}};(0,r._)([(0,u.MZ)({readOnly:!0})],ie.prototype,"effectiveSource",void 0),(0,r._)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!0}}}})],ie.prototype,"georeference",void 0),(0,r._)([(0,h.w)("web-document","georeference")],ie.prototype,"readGeoreference",null),(0,r._)([(0,u.MZ)({type:String})],ie.prototype,"copyright",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],ie.prototype,"fullExtent",null),(0,r._)([(0,u.MZ)({type:["MediaLayer"]})],ie.prototype,"operationalLayerType",void 0),(0,r._)([(0,u.MZ)({type:["show","hide"]})],ie.prototype,"listMode",void 0),(0,r._)([(0,u.MZ)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1,target:{url:{type:String},mediaType:{type:["image","video"]},georeference:{type:lt}},overridePolicy(t,e,n){return{enabled:!0,allowNull:!1,ignoreOrigin:At(this,n?.origin)&&jt(t)&&!!t.georeference&&t.originIdOf("georeference")>d.Gr.PORTAL_ITEM}}}}})],ie.prototype,"source",null),(0,r._)([(0,c.w)("source")],ie.prototype,"castSource",null),(0,r._)([(0,h.w)("source",["url"])],ie.prototype,"readSource",null),(0,r._)([(0,f.K)("source")],ie.prototype,"writeSource",null),(0,r._)([(0,u.MZ)()],ie.prototype,"spatialReference",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],ie.prototype,"type",void 0),ie=(0,r._)([(0,p.$)("esri.layers.MediaLayer")],ie);const oe=ie},76369:(t,e,n)=>{n.d(e,{LF:()=>w,M9:()=>A});var r=n(49186),i=n(93637),o=n(40876),s=n(59247),a=n(27865);function l(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,l.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function u(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function c(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=h(t);return e&&0!==e.length?e:null}const e=t.map((t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:h(t.value)}}));e.sort(((t,e)=>e.effects.length-t.effects.length));for(let t=0;t<e.length-1;t++){if(!(0,a.mj)(e[t].effects,e[t+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,a.O9)(e[t].effects,e[t+1].effects)}return e.sort(((t,e)=>e.scale-t.scale)),e}function h(t){let e;if(!t)return[];try{e=function(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:Vt},s=Vt,a="none",u=")",c=",",h="(",p="%",f="px",d="cm",m="mm",y="in",g="pt",_="pc",v="deg",x="rad",M="grad",b="turn",w="#",A=".",P="e",S=/^[ \t\n\r]/,I=/^[a-z\-]/,O=/^[0-9a-fA-F]/,R=/^[+\-]/,E=/^[0-9]/,L=Xt("none"),B=Nt("none",!1),Z=Nt(")",!1),j=Nt(",",!1),T=Xt("whitespace"),C=Ft([" ","\t","\n","\r"],!1,!1),$=Xt("function"),U=Nt("(",!1),N=Xt("identifier"),F=Ft([["a","z"],"-"],!1,!1),X=Xt("percentage"),q=Nt("%",!1),Y=Xt("length"),z=Nt("px",!1),V=Nt("cm",!1),H=Nt("mm",!1),k=Nt("in",!1),D=Nt("pt",!1),G=Nt("pc",!1),W=Xt("angle"),J=Nt("deg",!1),K=Nt("rad",!1),Q=Nt("grad",!1),tt=Nt("turn",!1),et=Xt("number"),nt=Xt("color"),rt=Nt("#",!1),it=Ft([["0","9"],["a","f"],["A","F"]],!1,!1),ot=Ft(["+","-"],!1,!1),st=Ft([["0","9"]],!1,!1),at=Nt(".",!1),lt=Nt("e",!1),ut=function(){return[]},ct=function(t,e){return{type:"function",name:t,parameters:e||[]}},ht=function(t,e){return e.length>0?function(t,e){return[t].concat(function(t){return t.map((function(t){return t[3]}))}(e))}(t,e):[t]},pt=function(t){return{type:"quantity",value:t.value,unit:t.unit}},ft=function(t){return{type:"color",colorType:t.type,value:t.value}},dt=function(t){return t},mt=function(){return Ut()},yt=function(t){return{value:t,unit:"%"}},gt=function(t){return{value:t,unit:"px"}},_t=function(t){return{value:t,unit:"cm"}},vt=function(t){return{value:t,unit:"mm"}},xt=function(t){return{value:t,unit:"in"}},Mt=function(t){return{value:t,unit:"pt"}},bt=function(t){return{value:t,unit:"pc"}},wt=function(t){return{value:t,unit:"deg"}},At=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}},Ot=function(){return{type:"hex",value:Ut()}},Rt=function(t){return{type:"function",value:t}},Et=function(){return{type:"named",value:Ut()}},Lt=function(){return parseFloat(Ut())},Bt=0|e.peg$currPos,Zt=Bt,jt=[{line:1,column:1}],Tt=Bt,Ct=e.peg$maxFailExpected||[],$t=0|e.peg$silentFails;if(e.startRule){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');s=o[e.startRule]}function Ut(){return t.substring(Zt,Bt)}function Nt(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ft(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Xt(t){return{type:"other",description:t}}function qt(e){var n,r=jt[e];if(r)return r;if(e>=jt.length)n=jt.length-1;else for(n=e;!jt[--n];);for(r={line:(r=jt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return jt[e]=r,r}function Yt(t,e,n){var r=qt(t),o=qt(e);return{source:i,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:o.line,column:o.column}}}function zt(t){Bt<Tt||(Bt>Tt&&(Tt=Bt,Ct=[]),Ct.push(t))}function Vt(){var t;return(t=Ht())===r&&(t=function(){var t,e;if(t=[],(e=kt())!==r)for(;e!==r;)t.push(e),e=kt();else t=r;return t}()),t}function Ht(){var e,n;return $t++,e=Bt,Gt(),t.substr(Bt,4)===a?(n=a,Bt+=4):(n=r,0===$t&&zt(B)),n!==r?(Gt(),Zt=e,e=ut()):(Bt=e,e=r),$t--,e===r&&0===$t&&zt(L),e}function kt(){var e,n,i,o;return e=Bt,Gt(),(n=function(){var e,n,i;return $t++,e=Bt,(n=Wt())!==r?(40===t.charCodeAt(Bt)?(i=h,Bt++):(i=r,0===$t&&zt(U)),i!==r?(Zt=e,e=dt(n)):(Bt=e,e=r)):(Bt=e,e=r),$t--,e===r&&(n=r,0===$t&&zt($)),e}())!==r?(Gt(),(i=function(){var e,n,i,o,s,a,l,u;if(e=Bt,(n=Dt())!==r){for(i=[],o=Bt,s=Gt(),44===t.charCodeAt(Bt)?(a=c,Bt++):(a=r,0===$t&&zt(j)),a===r&&(a=null),l=Gt(),(u=Dt())!==r?o=s=[s,a,l,u]:(Bt=o,o=r);o!==r;)i.push(o),o=Bt,s=Gt(),44===t.charCodeAt(Bt)?(a=c,Bt++):(a=r,0===$t&&zt(j)),a===r&&(a=null),l=Gt(),(u=Dt())!==r?o=s=[s,a,l,u]:(Bt=o,o=r);Zt=e,e=ht(n,i)}else Bt=e,e=r;return e}())===r&&(i=null),Gt(),41===t.charCodeAt(Bt)?(o=u,Bt++):(o=r,0===$t&&zt(Z)),o!==r?(Gt(),Zt=e,e=ct(n,i)):(Bt=e,e=r)):(Bt=e,e=r),e}function Dt(){var t,e;return t=Bt,(e=Jt())===r&&(e=Kt())===r&&(e=Qt())===r&&(e=function(){var t,e;return $t++,t=Bt,Gt(),(e=ee())!==r?(Zt=t,t=It(e)):(Bt=t,t=r),$t--,t===r&&0===$t&&zt(et),t}()),e!==r&&(Zt=t,e=pt(e)),(t=e)===r&&(t=Bt,(e=te())!==r&&(Zt=t,e=ft(e)),t=e),t}function Gt(){var e,n;for($t++,e=[],n=t.charAt(Bt),S.test(n)?Bt++:(n=r,0===$t&&zt(C));n!==r;)e.push(n),n=t.charAt(Bt),S.test(n)?Bt++:(n=r,0===$t&&zt(C));return $t--,n=r,0===$t&&zt(T),e}function Wt(){var e,n,i;if($t++,e=Bt,n=[],i=t.charAt(Bt),I.test(i)?Bt++:(i=r,0===$t&&zt(F)),i!==r)for(;i!==r;)n.push(i),i=t.charAt(Bt),I.test(i)?Bt++:(i=r,0===$t&&zt(F));else n=r;return n!==r&&(Zt=e,n=mt()),$t--,(e=n)===r&&(n=r,0===$t&&zt(N)),e}function Jt(){var e,n,i;return $t++,e=Bt,Gt(),(n=ee())!==r?(37===t.charCodeAt(Bt)?(i=p,Bt++):(i=r,0===$t&&zt(q)),i!==r?(Zt=e,e=yt(n)):(Bt=e,e=r)):(Bt=e,e=r),$t--,e===r&&0===$t&&zt(X),e}function Kt(){var e,n,i;return $t++,e=Bt,Gt(),(n=ee())!==r?(t.substr(Bt,2)===f?(i=f,Bt+=2):(i=r,0===$t&&zt(z)),i!==r?(Zt=e,e=gt(n)):(Bt=e,e=r)):(Bt=e,e=r),e===r&&(e=Bt,Gt(),(n=ee())!==r?(t.substr(Bt,2)===d?(i=d,Bt+=2):(i=r,0===$t&&zt(V)),i!==r?(Zt=e,e=_t(n)):(Bt=e,e=r)):(Bt=e,e=r),e===r&&(e=Bt,Gt(),(n=ee())!==r?(t.substr(Bt,2)===m?(i=m,Bt+=2):(i=r,0===$t&&zt(H)),i!==r?(Zt=e,e=vt(n)):(Bt=e,e=r)):(Bt=e,e=r),e===r&&(e=Bt,Gt(),(n=ee())!==r?(t.substr(Bt,2)===y?(i=y,Bt+=2):(i=r,0===$t&&zt(k)),i!==r?(Zt=e,e=xt(n)):(Bt=e,e=r)):(Bt=e,e=r),e===r&&(e=Bt,Gt(),(n=ee())!==r?(t.substr(Bt,2)===g?(i=g,Bt+=2):(i=r,0===$t&&zt(D)),i!==r?(Zt=e,e=Mt(n)):(Bt=e,e=r)):(Bt=e,e=r),e===r&&(e=Bt,Gt(),(n=ee())!==r?(t.substr(Bt,2)===_?(i=_,Bt+=2):(i=r,0===$t&&zt(G)),i!==r?(Zt=e,e=bt(n)):(Bt=e,e=r)):(Bt=e,e=r)))))),$t--,e===r&&0===$t&&zt(Y),e}function Qt(){var e,n,i;return $t++,e=Bt,(n=ee())!==r?(t.substr(Bt,3)===v?(i=v,Bt+=3):(i=r,0===$t&&zt(J)),i!==r?(Zt=e,e=wt(n)):(Bt=e,e=r)):(Bt=e,e=r),e===r&&(e=Bt,(n=ee())!==r?(t.substr(Bt,3)===x?(i=x,Bt+=3):(i=r,0===$t&&zt(K)),i!==r?(Zt=e,e=At(n)):(Bt=e,e=r)):(Bt=e,e=r),e===r&&(e=Bt,(n=ee())!==r?(t.substr(Bt,4)===M?(i=M,Bt+=4):(i=r,0===$t&&zt(Q)),i!==r?(Zt=e,e=Pt(n)):(Bt=e,e=r)):(Bt=e,e=r),e===r&&(e=Bt,(n=ee())!==r?(t.substr(Bt,4)===b?(i=b,Bt+=4):(i=r,0===$t&&zt(tt)),i!==r?(Zt=e,e=St(n)):(Bt=e,e=r)):(Bt=e,e=r)))),$t--,e===r&&(n=r,0===$t&&zt(W)),e}function te(){var e,n,i,o;if($t++,e=Bt,35===t.charCodeAt(Bt)?(n=w,Bt++):(n=r,0===$t&&zt(rt)),n!==r){if(i=[],o=t.charAt(Bt),O.test(o)?Bt++:(o=r,0===$t&&zt(it)),o!==r)for(;o!==r;)i.push(o),o=t.charAt(Bt),O.test(o)?Bt++:(o=r,0===$t&&zt(it));else i=r;i!==r?(Zt=e,e=Ot()):(Bt=e,e=r)}else Bt=e,e=r;return e===r&&(e=Bt,(n=kt())!==r&&(Zt=e,n=Rt(n)),(e=n)===r&&(e=Bt,(n=Wt())!==r&&(Zt=e,n=Et()),e=n)),$t--,e===r&&(n=r,0===$t&&zt(nt)),e}function ee(){var e,n,i,o,s,a,l,u;for(e=Bt,n=t.charAt(Bt),R.test(n)?Bt++:(n=r,0===$t&&zt(ot)),n===r&&(n=null),i=Bt,o=[],s=t.charAt(Bt),E.test(s)?Bt++:(s=r,0===$t&&zt(st));s!==r;)o.push(s),s=t.charAt(Bt),E.test(s)?Bt++:(s=r,0===$t&&zt(st));if(46===t.charCodeAt(Bt)?(s=A,Bt++):(s=r,0===$t&&zt(at)),s!==r){if(a=[],l=t.charAt(Bt),E.test(l)?Bt++:(l=r,0===$t&&zt(st)),l!==r)for(;l!==r;)a.push(l),l=t.charAt(Bt),E.test(l)?Bt++:(l=r,0===$t&&zt(st));else a=r;a!==r?i=o=[o,s,a]:(Bt=i,i=r)}else Bt=i,i=r;if(i===r)if(i=[],o=t.charAt(Bt),E.test(o)?Bt++:(o=r,0===$t&&zt(st)),o!==r)for(;o!==r;)i.push(o),o=t.charAt(Bt),E.test(o)?Bt++:(o=r,0===$t&&zt(st));else i=r;if(i!==r){if(o=Bt,101===t.charCodeAt(Bt)?(s=P,Bt++):(s=r,0===$t&&zt(lt)),s!==r){if(a=t.charAt(Bt),R.test(a)?Bt++:(a=r,0===$t&&zt(ot)),a===r&&(a=null),l=[],u=t.charAt(Bt),E.test(u)?Bt++:(u=r,0===$t&&zt(st)),u!==r)for(;u!==r;)l.push(u),u=t.charAt(Bt),E.test(u)?Bt++:(u=r,0===$t&&zt(st));else l=r;l!==r?o=s=[s,a,l]:(Bt=o,o=r)}else Bt=o,o=r;o===r&&(o=null),Zt=e,e=Lt()}else Bt=e,e=r;return e}if(n=s(),e.peg$library)return{peg$result:n,peg$currPos:Bt,peg$FAILED:r,peg$maxFailExpected:Ct,peg$maxFailPos:Tt};if(n!==r&&Bt===t.length)return n;throw n!==r&&Bt<t.length&&zt({type:"end"}),function(t,e,n){return new l(l.buildMessage(t,e),t,e,n)}(Ct,Tt<t.length?t.charAt(Tt):null,Tt<t.length?Yt(Tt,Tt+1):Yt(Tt,Tt))}(t)}catch(e){throw new r.A("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 p(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new s.yG(t.name,e)}(t);case"opacity":return function(t){let e=1;return p(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new s.jm(e)}(t);case"hue-rotate":return function(t){let e=0;return p(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!=m[t.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${f(t)}`,{term:t})}(t),t.value*m[t.unit]||0}(t.parameters[0])),new s.Nd(e)}(t);case"blur":return function(t){let e=0;return p(t.parameters,1),1===t.parameters.length&&(e=_(t.parameters[0]),d(e,t.parameters[0])),new s.Fk(e)}(t);case"drop-shadow":return function(t){const e=[];let n=null;for(const i of t.parameters)if("color"===i.type){if(e.length&&Object.freeze(e),n)throw new r.A("effect:type-error","Accepts only one color",{});n=v(i)}else{const t=_(i);if(Object.isFrozen(e))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&d(t,i)}if(e.length<2||e.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new s.$b(e[0],e[1],e[2]||0,n||x("black"))}(t);case"bloom":return function(t){let e=1,n=0,r=0;return p(t.parameters,3),t.parameters[0]&&(e=g(t.parameters[0])),t.parameters[1]&&(n=_(t.parameters[1]),d(n,t.parameters[1])),t.parameters[2]&&(r=g(t.parameters[2])),new s.bv(e,n,r)}(t)}}catch(e){throw e.details.filter=t,e}throw new r.A("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t)))}function p(t,e){if(t.length>e)throw new r.A("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function f(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in y)return"<length>";if(t.unit in m)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function d(t,e){if(t<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}(function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n})(l,Error),l.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(r){var a=this.location.end,l=u("",o.line.toString().length," "),c=r[i.line-1],h=(i.line===a.line?a.column:c.length+1)-i.column||1;e+="\n --\x3e "+s+"\n"+l+" |\n"+o.line+" | "+c+"\n"+l+" | "+u("",i.column-1," ")+u("",h,"^")}else e+="\n at "+s}return e},l.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."};const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},y={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${f(t)}`,{term:t})}(t);const e=t.value;return d(e,t),"%"===t.unit?.01*e:e}function _(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=y[t.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${f(t)}`,{term:t})}(t),t.value*y[t.unit]||0}function v(t){switch(t.colorType){case"hex":return(0,o.qh)(t.value);case"named":return x(t.value);case"function":return function(t){if(p(t.parameters,4),M.test(t.name))return[g(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1];if(b.test(t.name))return(0,o.z$)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${f(t)}`,{term:t})}(t),d(t.value,t),t.value}(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function x(t){if(!(0,o.V6)(t))throw new r.A("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,o.c4)(t)}const M=/^rgba?/i,b=/^hsla?/i;function w(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:P(n.value)});return e}return P(t)}(t)}catch(t){n?.messages?.push(t)}return null}function A(t,e,n,r){try{const r=function(t){const e=c(t);return e?(0,a.dw)(e)?e.map((t=>t.toJSON())):e.map((({scale:t,effects:e})=>({scale:t,value:e.map((t=>t.toJSON()))}))):null}(t);(0,i.sM)(n,r,e)}catch(t){r.messages&&r.messages.push(t)}}function P(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=[S(n,"amount")];break;case"blur":t=[S(n,"radius","pt")];break;case"hue-rotate":t=[S(n,"angle","deg")];break;case"drop-shadow":t=[S(n,"xoffset","pt"),S(n,"yoffset","pt"),S(n,"blurRadius","pt"),I(n,"color")];break;case"bloom":t=[S(n,"strength"),S(n,"radius","pt"),S(n,"threshold")]}const r=`${n.type}(${t.filter(Boolean).join(" ")})`;c(r),e.push(r)}return e.join(" ")}function S(t,e,n){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return n?t[e]+n:""+t[e]}function I(t,e){if(null==t[e])throw new r.A("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})`}},6518:(t,e,n)=>{n.d(e,{F:()=>a});var r=n(44208),i=n(75503),o=n(19419);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.w(9,(0,r.A)("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.Ie)();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()))}}},63074:(t,e,n)=>{n.d(e,{LF:()=>c,dM:()=>h,sU:()=>l});var r=n(90237),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),s=n(89317),a=n(76369);const l={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:{layerContainerTypes:s.K}},"portal-item":{read:!0,write:{layerContainerTypes:s.K}}}}},u={read:{reader:a.LF},write:{allowNull:!0,writer:a.M9,layerContainerTypes:s.K}},c={json:{read:!1,write:!1,origins:{"web-map":u,"portal-item":u}}},h=t=>{let e=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r._)([(0,i.MZ)(l)],e.prototype,"blendMode",void 0),(0,r._)([(0,i.MZ)(c)],e.prototype,"effect",void 0),e=(0,r._)([(0,o.$)("esri.layers.mixins.BlendLayer")],e),e}},8303:(t,e,n)=>{n.d(e,{A:()=>b});var r=n(90237),i=n(92602),o=n(70333),s=n(78888),a=n(60999),l=n(49186),u=n(53966),c=n(97768),h=n(74887),p=n(84952),f=n(10107),d=(n(44208),n(87811),n(36005)),m=n(40608),y=n(43937),g=n(83531),_=n(20655),v=n(80812),x=n(41318),M=n(10407);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,c.pR)(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 v.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 n.e(1204).then(n.bind(n,41204));return(0,h.Te)(e),await r({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,h.zf)(t)||u.A.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.QP)(t),!0))))}async setUserPrivileges(t,e){if(!i.A.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.QP)(t)}}async _fetchUserPrivileges(t,e){let n=this.portalItem;if(!t||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(e);const r=!o.id?.findCredential(this.url),i=t===n.id;if(i&&n.portal.user)return this._getUserPrivileges(n,r);let s,a;if(i)s=n.portal.url;else try{s=await(0,g.wI)(this.url,e)}catch(t){(0,h.QP)(t)}if(!s||!(0,p.b8)(s,n.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,h.QP)(t)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await n.reload():(n=new v.default({id:t,portal:{url:s}}),await n.load(e)),n.portal.user)return this._getUserPrivileges(n,r)}catch(t){(0,h.QP)(t)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(t,e){const n=(0,M.It)(t);return e&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,h.QP)(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=w.credential===e?w.user:await this._fetchEditingUser(t);return w.credential=e,w.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=_.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(r))return i.user;const l=`${r}/community/self`,u=null!=t?t.signal:null,c=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?x.A.fromJSON(c.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||_.A.getDefault());return n&&r&&!(0,p.ut)(r.restUrl,n.restUrl)?(e.messages&&e.messages.push(new l.A("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,f.MZ)({type:v.default})],e.prototype,"portalItem",null),(0,r._)([(0,d.w)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,r._)([(0,y.K)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,r._)([(0,f.MZ)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,r._)([(0,f.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,f.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,f.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasUpdateItemPrivileges",void 0),e=(0,r._)([(0,m.$)("esri.layers.mixins.PortalLayer")],e),e},w={credential:null,user:null}},25036:(t,e,n)=>{n.d(e,{j:()=>s});var r=n(90237),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608));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.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"minScale",void 0),(0,r._)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"maxScale",void 0),(0,r._)([(0,i.MZ)({readOnly:!0})],e.prototype,"effectiveScaleRange",null),e=(0,r._)([(0,o.$)("esri.layers.mixins.ScaleRangeLayer")],e),e}},85648:(t,e,n)=>{n.d(e,{n:()=>i});var r=n(84952);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.Zo)(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},92935:(t,e,n)=>{var r;n.d(e,{X:()=>r}),function(t){t[t.SAVE=0]="SAVE",t[t.SAVE_AS=1]="SAVE_AS"}(r||(r={}))},78553:(t,e,n)=>{n.d(e,{D:()=>o,p:()=>i});var r=n(56507);function i(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function o(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3920,8256],{38954:(t,e,r)=>{r.d(e,{A:()=>h,B:()=>f,C:()=>p,D:()=>y,E:()=>c,G:()=>B,H:()=>U,a:()=>R,b:()=>g,c:()=>i,d:()=>l,e:()=>A,f:()=>S,g:()=>u,h:()=>m,i:()=>a,j:()=>v,k:()=>M,l:()=>s,m:()=>O,n:()=>_,o:()=>j,p:()=>F,q:()=>E,s:()=>b,t:()=>C,u:()=>x,v:()=>w,w:()=>Z,x:()=>d,y:()=>D,z:()=>$});var n=r(51850),o=r(34304);function s(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function l(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function p(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function d(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function h(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function y(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function g(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function v(t,e){const r=e[0]-t[0],n=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(r*r+n*n+o*o)}function b(t,e){const r=e[0]-t[0],n=e[1]-t[1],o=e[2]-t[2];return r*r+n*n+o*o}function M(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function _(t,e){const r=e[0],n=e[1],o=e[2];let s=r*r+n*n+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,r){const n=e[0],o=e[1],s=e[2],i=r[0],a=r[1],u=r[2];return t[0]=o*u-s*a,t[1]=s*i-n*u,t[2]=n*a-o*i,t}function O(t,e,r,n){const o=e[0],s=e[1],i=e[2];return t[0]=o+n*(r[0]-o),t[1]=s+n*(r[1]-s),t[2]=i+n*(r[2]-i),t}function C(t,e,r){const n=e[0],o=e[1],s=e[2];return t[0]=r[0]*n+r[4]*o+r[8]*s+r[12],t[1]=r[1]*n+r[5]*o+r[9]*s+r[13],t[2]=r[2]*n+r[6]*o+r[10]*s+r[14],t}function E(t,e,r){const n=e[0],o=e[1],s=e[2];return t[0]=n*r[0]+o*r[3]+s*r[6],t[1]=n*r[1]+o*r[4]+s*r[7],t[2]=n*r[2]+o*r[5]+s*r[8],t}function Z(t,e,r){const n=r[0],o=r[1],s=r[2],i=r[3],a=e[0],u=e[1],l=e[2],p=o*l-s*u,c=s*a-n*l,d=n*u-o*a,f=o*d-s*c,h=s*p-n*d,y=n*c-o*p,m=2*i;return t[0]=a+p*m+2*f,t[1]=u+c*m+2*h,t[2]=l+d*m+2*y,t}const T=(0,n.vt)(),I=(0,n.vt)();function F(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function j(t,e,r){const n=r[0]-e[0],o=r[1]-e[1],s=r[2]-e[2];let i=n*n+o*o+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=n*i,t[1]=o*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const R=l,P=p,N=c,B=v,D=b,U=s,$=M;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:u,angle:function(t,e){_(T,t),_(I,e);const r=S(T,I);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,o,s){const i=1-s,a=i*i,u=s*s,l=a*i,p=3*s*a,c=3*u*i,d=u*s;return t[0]=e[0]*l+r[0]*p+n[0]*c+o[0]*d,t[1]=e[1]*l+r[1]*p+n[1]*c+o[1]*d,t[2]=e[2]*l+r[2]*p+n[2]*c+o[2]*d,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:i,cross:A,crossAndNormalize:function(t,e,r){const n=e[0],o=e[1],s=e[2],i=r[0],a=r[1],u=r[2],l=o*u-s*a,p=s*i-n*u,c=n*a-o*i,d=Math.sqrt(l*l+p*p+c*c);return t[0]=l/d,t[1]=p/d,t[2]=c/d,t},direction:j,dist:B,distance:v,div:N,divide:c,dot:S,equals:function(t,e){if(t===e)return!0;const r=t[0],n=t[1],s=t[2],i=e[0],a=e[1],u=e[2],l=(0,o.FD)();return Math.abs(r-i)<=l*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-a)<=l*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-u)<=l*Math.max(1,Math.abs(s),Math.abs(u))},exactEquals:F,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,o,s){const i=s*s,a=i*(2*s-3)+1,u=i*(s-2)+s,l=i*(s-1),p=i*(3-2*s);return t[0]=e[0]*a+r[0]*u+n[0]*l+o[0]*p,t[1]=e[1]*a+r[1]*u+n[1]*l+o[1]*p,t[2]=e[2]*a+r[2]*u+n[2]*l+o[2]*p,t},inverse:x,len:U,length:s,lerp:O,max:y,min:h,mul:P,multiply:p,negate:w,normalize:_,random:function(t,e=1){const r=o.Ov,n=2*r()*Math.PI,s=2*r()-1,i=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(n)*i,t[1]=Math.sin(n)*i,t[2]=s*e,t},rotateX:function(t,e,r,n){const o=[],s=[];return o[0]=e[0]-r[0],o[1]=e[1]-r[1],o[2]=e[2]-r[2],s[0]=o[0],s[1]=o[1]*Math.cos(n)-o[2]*Math.sin(n),s[2]=o[1]*Math.sin(n)+o[2]*Math.cos(n),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateY:function(t,e,r,n){const o=[],s=[];return o[0]=e[0]-r[0],o[1]=e[1]-r[1],o[2]=e[2]-r[2],s[0]=o[2]*Math.sin(n)+o[0]*Math.cos(n),s[1]=o[1],s[2]=o[2]*Math.cos(n)-o[0]*Math.sin(n),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateZ:function(t,e,r,n){const o=[],s=[];return o[0]=e[0]-r[0],o[1]=e[1]-r[1],o[2]=e[2]-r[2],s[0]=o[0]*Math.cos(n)-o[1]*Math.sin(n),s[1]=o[0]*Math.sin(n)+o[1]*Math.cos(n),s[2]=o[2],t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:g,set:a,sign:f,sqrDist:D,sqrLen:$,squaredDistance:b,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:R,subtract:l,transformMat3:E,transformMat4:C,transformQuat:Z},Symbol.toStringTag,{value:"Module"}))},4902:(t,e,r)=>{r.d(e,{A:()=>p});var n=r(90237),o=r(40608);let s=0;const i=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return e=(0,n._)([(0,o.$)("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:s++})}};return e=(0,n._)([(0,o.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};let u=class extends(i(class{})){};var l;u=(0,n._)([(0,o.$)("esri.core.Identifiable")],u),(l=u||(u={})).IdentifiableMixin=i,l.NumericIdentifiableMixin=a;const p=u},92071:(t,e,r)=>{r.d(e,{P:()=>b,L:()=>M});var n=r(90237),o=r(69622),s=r(76953),i=r(4718),a=r(35666);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new u,r=this._originStores[a.Gr.DEFAULTS];r&&r.forEach(((t,r)=>{e.set(r,(0,i.o8)(t),a.Gr.DEFAULTS)}));for(let r=a.Gr.SERVICE;r<a.AU;r++){const n=this._originStores[r];n&&n.forEach(((n,o)=>{t&&t.has(o)||e.set(o,(0,i.o8)(n),r)}))}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=a.Gr.USER){let n=this._originStores[r];if(n||(n=new Map,this._originStores[r]=n),n.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=r){const n=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),n!==e}return!1}delete(t,e=a.Gr.USER){const r=this._originStores[e];if(!r)return;const n=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return n}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],n=r?.get(t),o=this._values.get(t);return this._values.set(t,n),this._propertyOriginMap.set(t,e),o!==n}originOf(t){return this._propertyOriginMap.get(t)||a.Gr.DEFAULTS}forEach(t){this._values.forEach(t)}}var l=r(45917),p=r(88620),c=r(40608);const d=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,p.oY)(this),r=e.store,n=new u;e.store=n,(0,s.k)(e,r,n)}read(t,e){(0,l.L)(this,t,e)}getAtOrigin(t,e){const r=f(this),n=(0,a.aB)(e);if("string"==typeof t)return r.get(t,n);const o={};return t.forEach((t=>{o[t]=r.get(t,n)})),o}originOf(t){return(0,a.OL)(this.originIdOf(t))}originIdOf(t){return f(this).originOf(t)}revert(t,e){const r=f(this),n=(0,a.aB)(e),o=(0,p.oY)(this);let s;s="string"==typeof t?"*"===t?r.keys(n):[t]:t,s.forEach((t=>{o.invalidate(t),r.revert(t,n),o.commit(t)}))}};return e=(0,n._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function f(t){return(0,p.oY)(t).store}let h=class extends(d(o.A)){};h=(0,n._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],h);var y=r(16649),m=r(49422);const g=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return v(this).delete(t,(0,a.aB)(e))}write(t,e){return(0,m.M)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,p.oY)(this).setAtOrigin(t,e,(0,a.aB)(r))}removeOrigin(t){const e=v(this),r=(0,a.aB)(t),n=e.keys(r);for(const t of n)e.originOf(t)===r&&e.set(t,e.get(t,r),a.Gr.USER)}updateOrigin(t,e){const r=v(this),n=(0,a.aB)(e),o=(0,y.Jt)(this,t);for(let e=n+1;e<a.AU;++e)r.delete(t,e);r.set(t,o,n)}toJSON(t){return this.write({},t)}};return e=(0,n._)([(0,c.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function v(t){return(0,p.oY)(t).store}const b=t=>{let e=class extends(g(d(t))){constructor(...t){super(...t)}};return e=(0,n._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],e),e};let M=class extends(b(o.A)){};M=(0,n._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],M)},89317:(t,e,r)=>{r.d(e,{K:()=>n});const n=["operational-layers","basemap","ground"]},29242:(t,e,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,r,n,o,s,i,a,u){return[t,e,r,n,o,s,i,a,u]}r.d(e,{fA:()=>o,vt:()=>n,zK:()=>s});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:n,fromValues:o},Symbol.toStringTag,{value:"Module"}))},77690:(t,e,r)=>{r.d(e,{B8:()=>a,Ge:()=>d,I0:()=>c,KC:()=>u,hZ:()=>s,hs:()=>p,lw:()=>l,mg:()=>i,z0:()=>o});var n=r(34304);function o(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 s(t,e,r,n,o,s,i,a,u,l){return t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=s,t[5]=i,t[6]=a,t[7]=u,t[8]=l,t}function i(t,e){if(t===e){const r=e[1],n=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=o}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 r=e[0],n=e[1],o=e[2],s=e[3],i=e[4],a=e[5],u=e[6],l=e[7],p=e[8],c=p*i-a*l,d=-p*s+a*u,f=l*s-i*u;let h=r*c+n*d+o*f;return h?(h=1/h,t[0]=c*h,t[1]=(-p*n+o*l)*h,t[2]=(a*n-o*i)*h,t[3]=d*h,t[4]=(p*r-o*u)*h,t[5]=(-a*r+o*s)*h,t[6]=f*h,t[7]=(-l*r+n*u)*h,t[8]=(i*r-n*s)*h,t):null}function u(t,e){const r=e[0],n=e[1],o=e[2],s=e[3],i=e[4],a=e[5],u=e[6],l=e[7],p=e[8];return t[0]=i*p-a*l,t[1]=o*l-n*p,t[2]=n*a-o*i,t[3]=a*u-s*p,t[4]=r*p-o*u,t[5]=o*s-r*a,t[6]=s*l-i*u,t[7]=n*u-r*l,t[8]=r*i-n*s,t}function l(t,e,r){const n=e[0],o=e[1],s=e[2],i=e[3],a=e[4],u=e[5],l=e[6],p=e[7],c=e[8],d=r[0],f=r[1],h=r[2],y=r[3],m=r[4],g=r[5],v=r[6],b=r[7],M=r[8];return t[0]=d*n+f*i+h*l,t[1]=d*o+f*a+h*p,t[2]=d*s+f*u+h*c,t[3]=y*n+m*i+g*l,t[4]=y*o+m*a+g*p,t[5]=y*s+m*u+g*c,t[6]=v*n+b*i+M*l,t[7]=v*o+b*a+M*p,t[8]=v*s+b*u+M*c,t}function p(t,e,r){const n=r[0],o=r[1],s=r[2];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=s*e[6],t[7]=s*e[7],t[8]=s*e[8],t}function c(t,e){const r=e[0],n=e[1],o=e[2],s=e[3],i=r+r,a=n+n,u=o+o,l=r*i,p=n*i,c=n*a,d=o*i,f=o*a,h=o*u,y=s*i,m=s*a,g=s*u;return t[0]=1-c-h,t[3]=p-g,t[6]=d+m,t[1]=p+g,t[4]=1-l-h,t[7]=f-y,t[2]=d-m,t[5]=f+y,t[8]=1-l-c,t}function d(t,e){const r=e[0],n=e[1],o=e[2],s=e[3],i=e[4],a=e[5],u=e[6],l=e[7],p=e[8],c=e[9],d=e[10],f=e[11],h=e[12],y=e[13],m=e[14],g=e[15],v=r*a-n*i,b=r*u-o*i,M=r*l-s*i,w=n*u-o*a,x=n*l-s*a,_=o*l-s*u,S=p*y-c*h,A=p*m-d*h,O=p*g-f*h,C=c*m-d*y,E=c*g-f*y,Z=d*g-f*m;let T=v*Z-b*E+M*C+w*O-x*A+_*S;return T?(T=1/T,t[0]=(a*Z-u*E+l*C)*T,t[1]=(u*O-i*Z-l*A)*T,t[2]=(i*E-a*O+l*S)*T,t[3]=(o*E-n*Z-s*C)*T,t[4]=(r*Z-o*O+s*A)*T,t[5]=(n*O-r*E-s*S)*T,t[6]=(y*_-m*x+g*w)*T,t[7]=(m*M-h*_-g*b)*T,t[8]=(h*x-y*M+g*v)*T,t):null}function f(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}const h=l,y=f;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t},adjoint:u,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],r=t[1],n=t[2],o=t[3],s=t[4],i=t[5],a=t[6],u=t[7],l=t[8];return e*(l*s-i*u)+r*(-l*o+i*a)+n*(u*o-s*a)},equals:function(t,e){const r=t[0],o=t[1],s=t[2],i=t[3],a=t[4],u=t[5],l=t[6],p=t[7],c=t[8],d=e[0],f=e[1],h=e[2],y=e[3],m=e[4],g=e[5],v=e[6],b=e[7],M=e[8],w=(0,n.FD)();return Math.abs(r-d)<=w*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(o-f)<=w*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(s-h)<=w*Math.max(1,Math.abs(s),Math.abs(h))&&Math.abs(i-y)<=w*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(a-m)<=w*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(u-g)<=w*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(l-v)<=w*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(p-b)<=w*Math.max(1,Math.abs(p),Math.abs(b))&&Math.abs(c-M)<=w*Math.max(1,Math.abs(c),Math.abs(M))},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:o,fromQuat:c,fromRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,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:function(t){const e=(0,n.FD)(),r=t[0],o=t[1],s=t[2],i=t[3],a=t[4],u=t[5],l=t[6],p=t[7],c=t[8];return Math.abs(1-(r*r+i*i+l*l))<=e&&Math.abs(1-(o*o+a*a+p*p))<=e&&Math.abs(1-(s*s+u*u+c*c))<=e},mul:h,multiply:l,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t},normalFromMat4:d,normalFromMat4Legacy:function(t,e){const r=e[0],n=e[1],o=e[2],s=e[4],i=e[5],a=e[6],u=e[8],l=e[9],p=e[10],c=p*i-a*l,d=-p*s+a*u,f=l*s-i*u,h=r*c+n*d+o*f;if(!h)return null;const y=1/h;return t[0]=c*y,t[1]=(-p*n+o*l)*y,t[2]=(a*n-o*i)*y,t[3]=d*y,t[4]=(p*r-o*u)*y,t[5]=(-a*r+o*s)*y,t[6]=f*y,t[7]=(-l*r+n*u)*y,t[8]=(i*r-n*s)*y,t},projection:function(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,r){const n=e[0],o=e[1],s=e[2],i=e[3],a=e[4],u=e[5],l=e[6],p=e[7],c=e[8],d=Math.sin(r),f=Math.cos(r);return t[0]=f*n+d*i,t[1]=f*o+d*a,t[2]=f*s+d*u,t[3]=f*i-d*n,t[4]=f*a-d*o,t[5]=f*u-d*s,t[6]=l,t[7]=p,t[8]=c,t},scale:p,scaleByVec2:function(t,e,r){const n=r[0],o=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:s,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:f,translate:function(t,e,r){const n=e[0],o=e[1],s=e[2],i=e[3],a=e[4],u=e[5],l=e[6],p=e[7],c=e[8],d=r[0],f=r[1];return t[0]=n,t[1]=o,t[2]=s,t[3]=i,t[4]=a,t[5]=u,t[6]=d*n+f*i+l,t[7]=d*o+f*a+p,t[8]=d*s+f*u+c,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},36708:(t,e,r)=>{r.d(e,{C_:()=>d,OH:()=>y,Vh:()=>m,on:()=>c,pc:()=>g,wB:()=>u,z7:()=>l}),r(60999),r(5503);var n=r(37955),o=r(36563),s=r(97768),i=r(74887),a=r(14012);function u(t,e,r={}){return p(t,e,r,f)}function l(t,e,r={}){return p(t,e,r,h)}function p(t,e,r={},n){let o=null;const i=r.once?(t,r)=>{n(t)&&((0,s.xt)(o),e(t,r))}:(t,r)=>{n(t)&&e(t,r)};if(o=(0,a.Cn)(t,i,r.sync,r.equals),r.initial){const e=t();i(e,e)}return o}function c(t,e,r,i={}){let a=null,l=null,p=null;function c(){a&&l&&(l.remove(),i.onListenerRemove?.(a),a=null,l=null)}function d(t){i.once&&i.once&&(0,s.xt)(p),r(t)}const f=u(t,((t,r)=>{c(),(0,n.wb)(t)&&(a=t,l=(0,n.on)(t,e,d),i.onListenerAdd?.(t))}),{sync:i.sync,initial:!0});return p=(0,o.hA)((()=>{f.remove(),c()})),p}function d(t,e){return function(t,e,r){if((0,i.G4)(r))return Promise.reject((0,i.NK)());const n=t();if(e?.(n))return Promise.resolve(n);let a=null;function u(){a=(0,s.xt)(a)}return new Promise(((n,s)=>{a=(0,o.vE)([(0,i.u7)(r,(()=>{u(),s((0,i.NK)())})),p(t,(t=>{u(),n(t)}),{sync:!1,once:!0},e??f)])}))}(t,h,e)}function f(t){return!0}function h(t){return!!t}r(80559);const y={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},4146:(t,e,r)=>{r.d(e,{A:()=>M});var n=r(90237),o=r(78888),s=r(49186),i=r(65529),a=r(4902),u=r(92474),l=r(53966),p=r(74887),c=r(84952),d=r(10107),f=(r(44208),r(87811),r(40608)),h=r(5443),y=r(16930),m=r(92602),g=r(79677);let v=0,b=class extends(i.A.EventedMixin(a.A.IdentifiableMixin(u.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new h.A(-180,-90,180,90,y.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:n}=await r.e(5613).then(r.bind(r,45613));try{return await n(e)}catch(t){const r=e?.portalItem,n=r?.id||"unset",o=r?.portal?.url||m.A.portalUrl;throw l.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+n+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,p.zf)(t)||l.A.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 effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(t,e){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,o.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n._)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,n._)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,n._)([(0,d.MZ)({type:h.A})],b.prototype,"fullExtent",void 0),(0,n._)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,n._)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,n._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,n._)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,n._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,n._)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,n._)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,n._)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,n._)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,n._)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,n._)([(0,d.MZ)({type:y.A})],b.prototype,"spatialReference",void 0),(0,n._)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,n._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,n._)([(0,d.MZ)()],b.prototype,"url",void 0),(0,n._)([(0,d.MZ)({type:g.A})],b.prototype,"visibilityTimeExtent",void 0),(0,n._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,n._)([(0,f.$)("esri.layers.Layer")],b);const M=b},1689:(t,e,r)=>{r.r(e),r.d(e,{default:()=>D});var n=r(90237),o=r(78888),s=r(49186),i=r(34727),a=r(92071),u=r(36708),l=r(10107),p=(r(44208),r(53966),r(87811),r(36005)),c=r(40608),d=r(5443),f=r(82799),h=r(16930),y=r(4146),m=r(63074),g=r(69208),v=r(25036),b=r(60694),M=r(10873),w=r(69540),x=r(25482);let _=class extends(w.A.ClonableMixin(x.A)){constructor(t){super(t),this.framerate=null,this.containerFormat=null,this.gop=null,this.aspectRatio=null,this.klv=null}};(0,n._)([(0,l.MZ)({type:String})],_.prototype,"framerate",void 0),(0,n._)([(0,l.MZ)({type:String})],_.prototype,"containerFormat",void 0),(0,n._)([(0,l.MZ)({type:Number})],_.prototype,"gop",void 0),(0,n._)([(0,l.MZ)({type:String})],_.prototype,"aspectRatio",void 0),(0,n._)([(0,l.MZ)({type:Object})],_.prototype,"klv",void 0),_=(0,n._)([(0,c.$)("esri.layers.support.PlaybackInfo")],_);const S=_;var A=r(22453),O=r(64422);let C=class extends(w.A.ClonableMixin(x.A)){constructor(t){super(t),this.frame=null,this.frameCenter=null,this.frameOutline=null,this.lineOfSight=null,this.sensorLocation=null,this.sensorTrail=null}};(0,n._)([(0,l.MZ)({type:Boolean})],C.prototype,"frame",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],C.prototype,"frameCenter",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],C.prototype,"frameOutline",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],C.prototype,"lineOfSight",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],C.prototype,"sensorLocation",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],C.prototype,"sensorTrail",void 0),C=(0,n._)([(0,c.$)("esri.layers.support.TelemetryDisplay")],C);const E=C;var Z=r(69622),T=r(43937),I=r(86738);let F=class extends Z.A{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,n._)([(0,l.MZ)()],F.prototype,"sourcePoint",void 0),(0,n._)([(0,l.MZ)({type:I.A})],F.prototype,"mapPoint",void 0),F=(0,n._)([(0,c.$)("esri.layers.support.VideoFrame.ControlPoint")],F);let j=class extends(w.A.ClonableMixin(x.A)){constructor(t){super(t),this.frame=null,this.controlPoints=null}readControlPoints(t){return t.map((t=>({sourcePoint:{x:t.frameX,y:t.frameY},mapPoint:new I.A(t.point)})))}writeControlPoints(t,e){null!=t&&function(t){return null!=t?.sourcePoint&&null!=t.mapPoint}(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint,r=t.mapPoint;return{frameX:e.x,frameY:e.y,point:r.toJSON()}})))}};(0,n._)([(0,l.MZ)({type:String})],j.prototype,"frame",void 0),(0,n._)([(0,l.MZ)({type:[F],json:{write:{allowNull:!1,isRequired:!0}}})],j.prototype,"controlPoints",void 0),(0,n._)([(0,p.w)("controlPoints")],j.prototype,"readControlPoints",null),(0,n._)([(0,T.K)("controlPoints")],j.prototype,"writeControlPoints",null),j=(0,n._)([(0,c.$)("esri.layers.support.VideoFrame")],j);const R=j;var P=r(3930),N=r(48457);let B=class extends((0,m.dM)((0,v.j)((0,a.P)((0,g.d)(y.A))))){constructor(t){super(t),this._trailPoints=[],this.capabilities=null,this.connectionInfo=null,this.controller=new P.default,this.copyright=null,this.created=null,this.description=null,this.elevationSource=null,this.frame=null,this.frameCount=null,this.fullExtent=null,this.initialExtent=null,this.layerId=null,this.playbackInfo=null,this.posterUrl=null,this.qualities=null,this.serviceItemId=null,this.sourceJSON=null,this.sourceQuality=null,this.sourceType=null,this.spatialReference=h.A.WGS84,this.telemetryDisplay=null,this.title=null,this.type="video",this.url=null,this.videoLayersInfo=null,this.videoTimeExtent=null}initialize(){this.telemetryDisplay=new E({frame:!1,frameCenter:!1,frameOutline:!0,lineOfSight:!0,sensorLocation:!0,sensorTrail:!0}),this.addHandles([(0,u.wB)((()=>this.metadata),(()=>{this.notifyChange("telemetry"),this.notifyChange("groundControlPoints"),this.notifyChange("frameHorizonPoints")})),(0,u.wB)((()=>this.telemetry?.sensorLocation),(t=>this._setSensorTrail(t)),u.Vh)])}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this._fetchService(e)),Promise.resolve(this)}get buffered(){return this.controller.buffered}readCapabilitiesFromService(t,e){return(0,A.d)(e)}readConnectionInfo(t,e){const r=Object.values(e.connectionUrl);return r?.length&&(this.controller.playerUrl=r[0]),e.connectionUrl}get currentTime(){return this.controller.currentTime}get duration(){return this.controller.duration}get ended(){return this.controller.ended}get frameHorizonPoints(){return(0,N.SC)(this.metadata)}get groundControlPoints(){return(0,N.I0)(this.metadata)}get loop(){return this.controller.loop}set loop(t){this.controller.loop=t}get metadata(){return this.controller?.currentMetadata}get mimeType(){return this.controller?.mimeType}get muted(){return this.controller.muted}set muted(t){this.controller.muted=t}get playbackRate(){return this.controller.rate}set playbackRate(t){this.controller.rate=t}get playerUrl(){return this.controller.playerUrl}get playing(){return this.controller.playing}get state(){return this.controller.state}get telemetry(){return(0,N.YI)(this.metadata)}get videoElement(){return this.controller?.element}get videoHeight(){return this.controller?.videoHeight}readLayerInfosFromService(t,e){return(0,N.Yv)(e)}get videoWidth(){return this.controller?.videoWidth}get waiting(){return this.controller.waiting}play(){this.controller.play()}pause(){this.controller.pause()}reset(){this.controller.reset()}setCurrentTime(t){if(!this.duration)return;const e=(0,i.qE)(t,0,this.duration);this.controller.setCurrentTime(e)}toGround(t,e){return this.controller?.sensorModel?.metadataSupportsTransforms?this.controller.sensorModel.transformImageToGeo(t,e):null}toVideo(t){if(!this.controller?.sensorModel?.metadataSupportsTransforms)return null;const e=this.controller.sensorModel.transformGeoToImage(t.x,t.y,t.z);return{x:e[0],y:e[1]}}async _fetchService(t){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const e=(0,b.qg)(this.parsedUrl?.path);if(null==e)throw new s.A("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");let r=null;const{data:n,ssl:i}=await(0,o.A)(e.url.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters},signal:t}),a=n;if(this.url=e.url.path,i&&(this.url=this.url.replace(/^http:/i,"https:")),!a?.currentVersion)return a.currentVersion="11.2",this.sourceJSON=a,void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});let u=e?.sublayer;if(null==u&&a.layers?.length&&(u=a.layers[0].id),null==u)throw new s.A("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");this.url=`${e.url.path}/${u}`,r=await(0,o.A)(this.url,{query:{f:"json",...this.customParameters},signal:t});const l={...a,...r.data};this.sourceJSON=l,this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl})}_setSensorTrail(t){if(!t)return;const e=(0,N.yQ)(t,this._trailPoints);this._trailPoints=[...e];const r=this._trailPoints.map((t=>t.toArray())),n=new f.A({hasZ:t.hasZ,paths:[r]});this.telemetry.sensorTrail=n.clone()}};(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"buffered",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],B.prototype,"capabilities",void 0),(0,n._)([(0,p.w)("service","capabilities",["supportsAppend","supportsCoverageQuery","supportsExportClip","supportsExportFrameset","supportsMensuration","supportsUpdate"])],B.prototype,"readCapabilitiesFromService",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"connectionInfo",void 0),(0,n._)([(0,p.w)("connectionInfo",["connectionUrl"])],B.prototype,"readConnectionInfo",null),(0,n._)([(0,l.MZ)()],B.prototype,"controller",void 0),(0,n._)([(0,l.MZ)({type:String})],B.prototype,"copyright",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,type:Date})],B.prototype,"created",void 0),(0,n._)([(0,l.MZ)({type:Number})],B.prototype,"currentTime",null),(0,n._)([(0,l.MZ)({type:String})],B.prototype,"description",void 0),(0,n._)([(0,l.MZ)({type:Number})],B.prototype,"duration",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"elevationSource",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],B.prototype,"ended",null),(0,n._)([(0,l.MZ)({type:R})],B.prototype,"frame",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,type:Number})],B.prototype,"frameCount",void 0),(0,n._)([(0,l.MZ)({type:d.A})],B.prototype,"fullExtent",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"frameHorizonPoints",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"groundControlPoints",null),(0,n._)([(0,l.MZ)({type:d.A})],B.prototype,"initialExtent",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:{source:"id"}}})],B.prototype,"layerId",void 0),(0,n._)([(0,l.MZ)({type:Boolean})],B.prototype,"loop",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"metadata",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"mimeType",null),(0,n._)([(0,l.MZ)({type:Boolean})],B.prototype,"muted",null),(0,n._)([(0,l.MZ)({type:S})],B.prototype,"playbackInfo",void 0),(0,n._)([(0,l.MZ)({type:Number})],B.prototype,"playbackRate",null),(0,n._)([(0,l.MZ)({type:String})],B.prototype,"playerUrl",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"playing",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:{source:"poster"}}})],B.prototype,"posterUrl",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"qualities",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"serviceItemId",void 0),(0,n._)([(0,l.MZ)()],B.prototype,"sourceJSON",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"sourceQuality",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,json:{name:"serviceType"}})],B.prototype,"sourceType",void 0),(0,n._)([(0,l.MZ)()],B.prototype,"spatialReference",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,type:String})],B.prototype,"state",null),(0,n._)([(0,l.MZ)({readOnly:!0,type:O.A})],B.prototype,"telemetry",null),(0,n._)([(0,l.MZ)({type:E})],B.prototype,"telemetryDisplay",void 0),(0,n._)([(0,l.MZ)({readOnly:!1,json:{read:{source:"name"}}})],B.prototype,"title",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"type",void 0),(0,n._)([(0,l.MZ)(M.OZ)],B.prototype,"url",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"videoElement",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"videoHeight",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],B.prototype,"videoLayersInfo",void 0),(0,n._)([(0,p.w)("service","videoLayersInfo",["id","name","poster","serviceType","type"])],B.prototype,"readLayerInfosFromService",null),(0,n._)([(0,l.MZ)({readOnly:!0,nonNullable:!1,json:{read:{reader:N.nX,source:"time"}}})],B.prototype,"videoTimeExtent",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"videoWidth",null),(0,n._)([(0,l.MZ)({readOnly:!0})],B.prototype,"waiting",null),B=(0,n._)([(0,c.$)("esri.layers.VideoLayer")],B);const D=B},76369:(t,e,r)=>{r.d(e,{LF:()=>_,M9:()=>S});var n=r(49186),o=r(93637),s=r(40876),i=r(59247),a=r(27865);function u(t,e,r,n){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,u.prototype),o.expected=e,o.found=r,o.location=n,o.name="SyntaxError",o}function l(t,e,r){return r=r||" ",t.length>e?t:(e-=t.length,t+(r+=r.repeat(e)).slice(0,e))}function p(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=c(t);return e&&0!==e.length?e:null}const e=t.map((t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new n.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:c(t.value)}}));e.sort(((t,e)=>e.effects.length-t.effects.length));for(let t=0;t<e.length-1;t++){if(!(0,a.mj)(e[t].effects,e[t+1].effects))throw new n.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,a.O9)(e[t].effects,e[t+1].effects)}return e.sort(((t,e)=>e.scale-t.scale)),e}function c(t){let e;if(!t)return[];try{e=function(t,e){var r,n={},o=(e=void 0!==e?e:{}).grammarSource,s={start:zt},i=zt,a="none",l=")",p=",",c="(",d="%",f="px",h="cm",y="mm",m="in",g="pt",v="pc",b="deg",M="rad",w="grad",x="turn",_="#",S=".",A="e",O=/^[ \t\n\r]/,C=/^[a-z\-]/,E=/^[0-9a-fA-F]/,Z=/^[+\-]/,T=/^[0-9]/,I=qt("none"),F=Ut("none",!1),j=Ut(")",!1),R=Ut(",",!1),P=qt("whitespace"),N=$t([" ","\t","\n","\r"],!1,!1),B=qt("function"),D=Ut("(",!1),U=qt("identifier"),$=$t([["a","z"],"-"],!1,!1),q=qt("percentage"),L=Ut("%",!1),Q=qt("length"),k=Ut("px",!1),z=Ut("cm",!1),G=Ut("mm",!1),V=Ut("in",!1),J=Ut("pt",!1),W=Ut("pc",!1),K=qt("angle"),H=Ut("deg",!1),Y=Ut("rad",!1),X=Ut("grad",!1),tt=Ut("turn",!1),et=qt("number"),rt=qt("color"),nt=Ut("#",!1),ot=$t([["0","9"],["a","f"],["A","F"]],!1,!1),st=$t(["+","-"],!1,!1),it=$t([["0","9"]],!1,!1),at=Ut(".",!1),ut=Ut("e",!1),lt=function(){return[]},pt=function(t,e){return{type:"function",name:t,parameters:e||[]}},ct=function(t,e){return e.length>0?function(t,e){return[t].concat(function(t){return t.map((function(t){return t[3]}))}(e))}(t,e):[t]},dt=function(t){return{type:"quantity",value:t.value,unit:t.unit}},ft=function(t){return{type:"color",colorType:t.type,value:t.value}},ht=function(t){return t},yt=function(){return Dt()},mt=function(t){return{value:t,unit:"%"}},gt=function(t){return{value:t,unit:"px"}},vt=function(t){return{value:t,unit:"cm"}},bt=function(t){return{value:t,unit:"mm"}},Mt=function(t){return{value:t,unit:"in"}},wt=function(t){return{value:t,unit:"pt"}},xt=function(t){return{value:t,unit:"pc"}},_t=function(t){return{value:t,unit:"deg"}},St=function(t){return{value:t,unit:"rad"}},At=function(t){return{value:t,unit:"grad"}},Ot=function(t){return{value:t,unit:"turn"}},Ct=function(t){return{value:t,unit:null}},Et=function(){return{type:"hex",value:Dt()}},Zt=function(t){return{type:"function",value:t}},Tt=function(){return{type:"named",value:Dt()}},It=function(){return parseFloat(Dt())},Ft=0|e.peg$currPos,jt=Ft,Rt=[{line:1,column:1}],Pt=Ft,Nt=e.peg$maxFailExpected||[],Bt=0|e.peg$silentFails;if(e.startRule){if(!(e.startRule in s))throw new Error("Can't start parsing from rule \""+e.startRule+'".');i=s[e.startRule]}function Dt(){return t.substring(jt,Ft)}function Ut(t,e){return{type:"literal",text:t,ignoreCase:e}}function $t(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function qt(t){return{type:"other",description:t}}function Lt(e){var r,n=Rt[e];if(n)return n;if(e>=Rt.length)r=Rt.length-1;else for(r=e;!Rt[--r];);for(n={line:(n=Rt[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Rt[e]=n,n}function Qt(t,e,r){var n=Lt(t),s=Lt(e);return{source:o,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:s.line,column:s.column}}}function kt(t){Ft<Pt||(Ft>Pt&&(Pt=Ft,Nt=[]),Nt.push(t))}function zt(){var t;return(t=Gt())===n&&(t=function(){var t,e;if(t=[],(e=Vt())!==n)for(;e!==n;)t.push(e),e=Vt();else t=n;return t}()),t}function Gt(){var e,r;return Bt++,e=Ft,Wt(),t.substr(Ft,4)===a?(r=a,Ft+=4):(r=n,0===Bt&&kt(F)),r!==n?(Wt(),jt=e,e=lt()):(Ft=e,e=n),Bt--,e===n&&0===Bt&&kt(I),e}function Vt(){var e,r,o,s;return e=Ft,Wt(),(r=function(){var e,r,o;return Bt++,e=Ft,(r=Kt())!==n?(40===t.charCodeAt(Ft)?(o=c,Ft++):(o=n,0===Bt&&kt(D)),o!==n?(jt=e,e=ht(r)):(Ft=e,e=n)):(Ft=e,e=n),Bt--,e===n&&(r=n,0===Bt&&kt(B)),e}())!==n?(Wt(),(o=function(){var e,r,o,s,i,a,u,l;if(e=Ft,(r=Jt())!==n){for(o=[],s=Ft,i=Wt(),44===t.charCodeAt(Ft)?(a=p,Ft++):(a=n,0===Bt&&kt(R)),a===n&&(a=null),u=Wt(),(l=Jt())!==n?s=i=[i,a,u,l]:(Ft=s,s=n);s!==n;)o.push(s),s=Ft,i=Wt(),44===t.charCodeAt(Ft)?(a=p,Ft++):(a=n,0===Bt&&kt(R)),a===n&&(a=null),u=Wt(),(l=Jt())!==n?s=i=[i,a,u,l]:(Ft=s,s=n);jt=e,e=ct(r,o)}else Ft=e,e=n;return e}())===n&&(o=null),Wt(),41===t.charCodeAt(Ft)?(s=l,Ft++):(s=n,0===Bt&&kt(j)),s!==n?(Wt(),jt=e,e=pt(r,o)):(Ft=e,e=n)):(Ft=e,e=n),e}function Jt(){var t,e;return t=Ft,(e=Ht())===n&&(e=Yt())===n&&(e=Xt())===n&&(e=function(){var t,e;return Bt++,t=Ft,Wt(),(e=ee())!==n?(jt=t,t=Ct(e)):(Ft=t,t=n),Bt--,t===n&&0===Bt&&kt(et),t}()),e!==n&&(jt=t,e=dt(e)),(t=e)===n&&(t=Ft,(e=te())!==n&&(jt=t,e=ft(e)),t=e),t}function Wt(){var e,r;for(Bt++,e=[],r=t.charAt(Ft),O.test(r)?Ft++:(r=n,0===Bt&&kt(N));r!==n;)e.push(r),r=t.charAt(Ft),O.test(r)?Ft++:(r=n,0===Bt&&kt(N));return Bt--,r=n,0===Bt&&kt(P),e}function Kt(){var e,r,o;if(Bt++,e=Ft,r=[],o=t.charAt(Ft),C.test(o)?Ft++:(o=n,0===Bt&&kt($)),o!==n)for(;o!==n;)r.push(o),o=t.charAt(Ft),C.test(o)?Ft++:(o=n,0===Bt&&kt($));else r=n;return r!==n&&(jt=e,r=yt()),Bt--,(e=r)===n&&(r=n,0===Bt&&kt(U)),e}function Ht(){var e,r,o;return Bt++,e=Ft,Wt(),(r=ee())!==n?(37===t.charCodeAt(Ft)?(o=d,Ft++):(o=n,0===Bt&&kt(L)),o!==n?(jt=e,e=mt(r)):(Ft=e,e=n)):(Ft=e,e=n),Bt--,e===n&&0===Bt&&kt(q),e}function Yt(){var e,r,o;return Bt++,e=Ft,Wt(),(r=ee())!==n?(t.substr(Ft,2)===f?(o=f,Ft+=2):(o=n,0===Bt&&kt(k)),o!==n?(jt=e,e=gt(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,Wt(),(r=ee())!==n?(t.substr(Ft,2)===h?(o=h,Ft+=2):(o=n,0===Bt&&kt(z)),o!==n?(jt=e,e=vt(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,Wt(),(r=ee())!==n?(t.substr(Ft,2)===y?(o=y,Ft+=2):(o=n,0===Bt&&kt(G)),o!==n?(jt=e,e=bt(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,Wt(),(r=ee())!==n?(t.substr(Ft,2)===m?(o=m,Ft+=2):(o=n,0===Bt&&kt(V)),o!==n?(jt=e,e=Mt(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,Wt(),(r=ee())!==n?(t.substr(Ft,2)===g?(o=g,Ft+=2):(o=n,0===Bt&&kt(J)),o!==n?(jt=e,e=wt(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,Wt(),(r=ee())!==n?(t.substr(Ft,2)===v?(o=v,Ft+=2):(o=n,0===Bt&&kt(W)),o!==n?(jt=e,e=xt(r)):(Ft=e,e=n)):(Ft=e,e=n)))))),Bt--,e===n&&0===Bt&&kt(Q),e}function Xt(){var e,r,o;return Bt++,e=Ft,(r=ee())!==n?(t.substr(Ft,3)===b?(o=b,Ft+=3):(o=n,0===Bt&&kt(H)),o!==n?(jt=e,e=_t(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,(r=ee())!==n?(t.substr(Ft,3)===M?(o=M,Ft+=3):(o=n,0===Bt&&kt(Y)),o!==n?(jt=e,e=St(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,(r=ee())!==n?(t.substr(Ft,4)===w?(o=w,Ft+=4):(o=n,0===Bt&&kt(X)),o!==n?(jt=e,e=At(r)):(Ft=e,e=n)):(Ft=e,e=n),e===n&&(e=Ft,(r=ee())!==n?(t.substr(Ft,4)===x?(o=x,Ft+=4):(o=n,0===Bt&&kt(tt)),o!==n?(jt=e,e=Ot(r)):(Ft=e,e=n)):(Ft=e,e=n)))),Bt--,e===n&&(r=n,0===Bt&&kt(K)),e}function te(){var e,r,o,s;if(Bt++,e=Ft,35===t.charCodeAt(Ft)?(r=_,Ft++):(r=n,0===Bt&&kt(nt)),r!==n){if(o=[],s=t.charAt(Ft),E.test(s)?Ft++:(s=n,0===Bt&&kt(ot)),s!==n)for(;s!==n;)o.push(s),s=t.charAt(Ft),E.test(s)?Ft++:(s=n,0===Bt&&kt(ot));else o=n;o!==n?(jt=e,e=Et()):(Ft=e,e=n)}else Ft=e,e=n;return e===n&&(e=Ft,(r=Vt())!==n&&(jt=e,r=Zt(r)),(e=r)===n&&(e=Ft,(r=Kt())!==n&&(jt=e,r=Tt()),e=r)),Bt--,e===n&&(r=n,0===Bt&&kt(rt)),e}function ee(){var e,r,o,s,i,a,u,l;for(e=Ft,r=t.charAt(Ft),Z.test(r)?Ft++:(r=n,0===Bt&&kt(st)),r===n&&(r=null),o=Ft,s=[],i=t.charAt(Ft),T.test(i)?Ft++:(i=n,0===Bt&&kt(it));i!==n;)s.push(i),i=t.charAt(Ft),T.test(i)?Ft++:(i=n,0===Bt&&kt(it));if(46===t.charCodeAt(Ft)?(i=S,Ft++):(i=n,0===Bt&&kt(at)),i!==n){if(a=[],u=t.charAt(Ft),T.test(u)?Ft++:(u=n,0===Bt&&kt(it)),u!==n)for(;u!==n;)a.push(u),u=t.charAt(Ft),T.test(u)?Ft++:(u=n,0===Bt&&kt(it));else a=n;a!==n?o=s=[s,i,a]:(Ft=o,o=n)}else Ft=o,o=n;if(o===n)if(o=[],s=t.charAt(Ft),T.test(s)?Ft++:(s=n,0===Bt&&kt(it)),s!==n)for(;s!==n;)o.push(s),s=t.charAt(Ft),T.test(s)?Ft++:(s=n,0===Bt&&kt(it));else o=n;if(o!==n){if(s=Ft,101===t.charCodeAt(Ft)?(i=A,Ft++):(i=n,0===Bt&&kt(ut)),i!==n){if(a=t.charAt(Ft),Z.test(a)?Ft++:(a=n,0===Bt&&kt(st)),a===n&&(a=null),u=[],l=t.charAt(Ft),T.test(l)?Ft++:(l=n,0===Bt&&kt(it)),l!==n)for(;l!==n;)u.push(l),l=t.charAt(Ft),T.test(l)?Ft++:(l=n,0===Bt&&kt(it));else u=n;u!==n?s=i=[i,a,u]:(Ft=s,s=n)}else Ft=s,s=n;s===n&&(s=null),jt=e,e=It()}else Ft=e,e=n;return e}if(r=i(),e.peg$library)return{peg$result:r,peg$currPos:Ft,peg$FAILED:n,peg$maxFailExpected:Nt,peg$maxFailPos:Pt};if(r!==n&&Ft===t.length)return r;throw r!==n&&Ft<t.length&&kt({type:"end"}),function(t,e,r){return new u(u.buildMessage(t,e),t,e,r)}(Nt,Pt<t.length?t.charAt(Pt):null,Pt<t.length?Qt(Pt,Pt+1):Qt(Pt,Pt))}(t)}catch(e){throw new n.A("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 d(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new i.yG(t.name,e)}(t);case"opacity":return function(t){let e=1;return d(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new i.jm(e)}(t);case"hue-rotate":return function(t){let e=0;return d(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!=y[t.unit]))throw new n.A("effect:type-error",`Expected <angle>, Actual: ${f(t)}`,{term:t})}(t),t.value*y[t.unit]||0}(t.parameters[0])),new i.Nd(e)}(t);case"blur":return function(t){let e=0;return d(t.parameters,1),1===t.parameters.length&&(e=v(t.parameters[0]),h(e,t.parameters[0])),new i.Fk(e)}(t);case"drop-shadow":return function(t){const e=[];let r=null;for(const o of t.parameters)if("color"===o.type){if(e.length&&Object.freeze(e),r)throw new n.A("effect:type-error","Accepts only one color",{});r=b(o)}else{const t=v(o);if(Object.isFrozen(e))throw new n.A("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&h(t,o)}if(e.length<2||e.length>3)throw new n.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new i.$b(e[0],e[1],e[2]||0,r||M("black"))}(t);case"bloom":return function(t){let e=1,r=0,n=0;return d(t.parameters,3),t.parameters[0]&&(e=g(t.parameters[0])),t.parameters[1]&&(r=v(t.parameters[1]),h(r,t.parameters[1])),t.parameters[2]&&(n=g(t.parameters[2])),new i.bv(e,r,n)}(t)}}catch(e){throw e.details.filter=t,e}throw new n.A("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t)))}function d(t,e){if(t.length>e)throw new n.A("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function f(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in m)return"<length>";if(t.unit in y)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function h(t,e){if(t<0)throw new n.A("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}(function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r})(u,Error),u.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var r,n=null;for(r=0;r<t.length;r++)if(t[r].source===this.location.source){n=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,i=this.location.source+":"+s.line+":"+s.column;if(n){var a=this.location.end,u=l("",s.line.toString().length," "),p=n[o.line-1],c=(o.line===a.line?a.column:p.length+1)-o.column||1;e+="\n --\x3e "+i+"\n"+u+" |\n"+s.line+" | "+p+"\n"+u+" | "+l("",o.column-1," ")+l("",c,"^")}else e+="\n at "+i}return e},u.buildMessage=function(t,e){var r={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?s(t[0])+"-"+s(t[1]):s(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(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"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function s(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"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function i(t){return r[t.type](t)}return"Expected "+function(t){var e,r,n=t.map(i);if(n.sort(),n.length>0){for(e=1,r=1;e<n.length;e++)n[e-1]!==n[e]&&(n[r]=n[e],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]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."};const y={deg:1,grad:.9,rad:180/Math.PI,turn:360},m={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new n.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${f(t)}`,{term:t})}(t);const e=t.value;return h(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!=m[t.unit]))throw new n.A("effect:type-error",`Expected <length>, Actual: ${f(t)}`,{term:t})}(t),t.value*m[t.unit]||0}function b(t){switch(t.colorType){case"hex":return(0,s.qh)(t.value);case"named":return M(t.value);case"function":return function(t){if(d(t.parameters,4),w.test(t.name))return[g(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1];if(x.test(t.name))return(0,s.z$)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new n.A("effect:type-error",`Expected <double>, Actual: ${f(t)}`,{term:t})}(t),h(t.value,t),t.value}(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1);throw new n.A("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function M(t){if(!(0,s.V6)(t))throw new n.A("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,s.c4)(t)}const w=/^rgba?/i,x=/^hsla?/i;function _(t,e,r){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 r of t)e.push({scale:r.scale,value:A(r.value)});return e}return A(t)}(t)}catch(t){r?.messages?.push(t)}return null}function S(t,e,r,n){try{const n=function(t){const e=p(t);return e?(0,a.dw)(e)?e.map((t=>t.toJSON())):e.map((({scale:t,effects:e})=>({scale:t,value:e.map((t=>t.toJSON()))}))):null}(t);(0,o.sM)(r,n,e)}catch(t){n.messages&&n.messages.push(t)}}function A(t){if(!t?.length)return"";const e=[];for(const r of t){let t=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":t=[O(r,"amount")];break;case"blur":t=[O(r,"radius","pt")];break;case"hue-rotate":t=[O(r,"angle","deg")];break;case"drop-shadow":t=[O(r,"xoffset","pt"),O(r,"yoffset","pt"),O(r,"blurRadius","pt"),C(r,"color")];break;case"bloom":t=[O(r,"strength"),O(r,"radius","pt"),O(r,"threshold")]}const n=`${r.type}(${t.filter(Boolean).join(" ")})`;p(n),e.push(n)}return e.join(" ")}function O(t,e,r){if(null==t[e])throw new n.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return r?t[e]+r:""+t[e]}function C(t,e){if(null==t[e])throw new n.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});const r=t[e];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},63074:(t,e,r)=>{r.d(e,{LF:()=>p,dM:()=>c,sU:()=>u});var n=r(90237),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),i=r(89317),a=r(76369);const u={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:{layerContainerTypes:i.K}},"portal-item":{read:!0,write:{layerContainerTypes:i.K}}}}},l={read:{reader:a.LF},write:{allowNull:!0,writer:a.M9,layerContainerTypes:i.K}},p={json:{read:!1,write:!1,origins:{"web-map":l,"portal-item":l}}},c=t=>{let e=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,n._)([(0,o.MZ)(u)],e.prototype,"blendMode",void 0),(0,n._)([(0,o.MZ)(p)],e.prototype,"effect",void 0),e=(0,n._)([(0,s.$)("esri.layers.mixins.BlendLayer")],e),e}},69208:(t,e,r)=>{r.d(e,{d:()=>i});var n=r(90237),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const i=t=>{let e=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n._)([(0,o.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],e.prototype,"customParameters",void 0),e=(0,n._)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],e),e}},25036:(t,e,r)=>{r.d(e,{j:()=>i});var n=r(90237),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const i=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 r=this._get("effectiveScaleRange");return r&&r.minScale===t.minScale&&r.maxScale===t.maxScale?r:t}};return(0,n._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"minScale",void 0),(0,n._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"maxScale",void 0),(0,n._)([(0,o.MZ)({readOnly:!0})],e.prototype,"effectiveScaleRange",null),e=(0,n._)([(0,s.$)("esri.layers.mixins.ScaleRangeLayer")],e),e}},10873:(t,e,r)=>{r.d(e,{C1:()=>S,Fm:()=>M,Ih:()=>b,M6:()=>c,OZ:()=>f,PY:()=>p,Qo:()=>m,Yj:()=>y,fV:()=>h,hG:()=>_,hn:()=>x,id:()=>w,kF:()=>d,ke:()=>v,zQ:()=>A});var n=r(89317),o=r(5443),s=r(16930),i=r(97159),a=r(88625),u=r(85360),l=r(78553);const p={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:{enabled:!0,layerContainerTypes:n.K}}},c={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(t,e)=>!e.disablePopup},write:{enabled:!0,writer(t,e,r){e[r]=!t}}}},d={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:{enabled:!0,layerContainerTypes:n.K}}},f={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:i.w}}},h={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:{enabled:!0,layerContainerTypes:n.K}}},y={value:null,type:a.A,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:{enabled:!0,layerContainerTypes:n.K}}};function m(t){return{type:t,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const g={write:{enabled:!0,layerContainerTypes:n.K},read:!0},v={type:Number,json:{origins:{"web-document":g,"portal-item":{write:{layerContainerTypes:n.K}}}}},b={...v,json:{...v.json,origins:{"web-document":{...g,write:{enabled:!0,layerContainerTypes:n.K,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(t,e,r)=>r&&"service"!==r.origin||!e.drawingInfo||void 0===e.drawingInfo.transparency?e.layerDefinition?.drawingInfo&&void 0!==e.layerDefinition.drawingInfo.transparency?(0,l.D)(e.layerDefinition.drawingInfo.transparency):void 0:(0,l.D)(e.drawingInfo.transparency)}}},M={type:o.A,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(t,e)=>{const r=o.A.fromJSON(t);return null!=e.spatialReference&&"object"==typeof e.spatialReference&&(r.spatialReference=s.A.fromJSON(e.spatialReference)),r}}}},read:!1}},w={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},x={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.minScale",write:{layerContainerTypes:n.K}}},_={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.maxScale",write:{layerContainerTypes:n.K}}},S={json:{write:{ignoreOrigin:!0,layerContainerTypes:n.K},origins:{"web-map":{read:!1,write:!1}}}},A={type:u.A,json:{name:"attributeTableInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}}},20557:(t,e,r)=>{r.d(e,{Fm:()=>u,Hz:()=>f,JQ:()=>d,JZ:()=>M,ND:()=>y,R_:()=>i,U9:()=>c,fu:()=>o,nr:()=>h,oF:()=>s,rq:()=>l,z$:()=>p});const n=[["binary","application/octet-stream","bin",""]];function o(t,e){return null!=g(e.name,t?.supportedFormats??[])}function s(t,e){if(!t)return!1;const r=l(e,t.supportedFormats??[]);return null!=r&&t.editFormats.includes(r)}function i(t,e){return v(function(t,e){const r=t.toLowerCase();return m(e).find((t=>b(t)===r))}(t,e))}function a(t,e){return v(g(t,e))}function u(t,e){return b(function(t,e){return m(e).find((e=>v(e)===t))}(t,e))}function l(t,e){return a(t.name,e)??i(t.type,e)}function p(t,e,r){return i(t,r)??a(e,r)}function c({supportedFormats:t}){return p("model/gltf-binary","glb",t)}function d(t){const e=c(t);return null!=e&&t.editFormats.includes(e)}function f(t){if(!t)return null;const e=c(t),r=function({supportedFormats:t}){return p("model/gltf+json","gltf",t)}(t);let n=null;for(const o of t.queryFormats){if(o===e)return o;o===r&&(n=o)}return n}function h({supportedFormats:t}){return p("application/esri3do-SR_world","wld",t)}function y({supportedFormats:t}){return p("application/esri3do-SR_prj","prj",t)}function m(t){return[...n,...t]}function g(t,e){const r=t.toLowerCase();return m(e).find((t=>function(t){return t?.[2].split(",").map((t=>t.toLowerCase()))??[]}(t).some((t=>r.endsWith(t)))))}function v(t){return t?.[0]}function b(t){return t?.[1].toLowerCase()}function M(t){return t.tables?.find((t=>"assetMaps"===t.role))}},22453:(t,e,r)=>{r.d(e,{S:()=>h,d:()=>A});var n=r(44208),o=r(60694),s=r(20557);function i(t,e,r){return!!u(t,e,r)}function a(t,e,r){return u(t,e,r)}function u(t,e,r){return t&&t.hasOwnProperty(e)?t[e]:r}const l={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function p(t){const e=t?.supportedSpatialAggregationStatistics?.map((t=>t.toLowerCase()));return{envelope:!!e?.includes("envelopeaggregate"),centroid:!!e?.includes("centroidaggregate"),convexHull:!!e?.includes("convexhullaggregate")}}function c(t,e){const r=t?.supportedOperationsWithCacheHint?.map((t=>t.toLowerCase()));return!!r?.includes(e.toLowerCase())}function d(t){const e=t?.supportedStatisticTypes?.map((t=>t.toLowerCase()));return{count:!!e?.includes("count"),sum:!!e?.includes("sum"),min:!!e?.includes("min"),max:!!e?.includes("max"),avg:!!e?.includes("avg"),var:!!e?.includes("var"),stddev:!!e?.includes("stddev"),percentileContinuous:!!e?.includes("percentile_continuous"),percentileDiscrete:!!e?.includes("percentile_discrete"),envelope:!!e?.includes("envelopeaggregate"),centroid:!!e?.includes("centroidaggregate"),convexHull:!!e?.includes("convexhullaggregate")}}function f(t){const e=t?.supportedNormalizationTypes?.map((t=>t.toLowerCase()));return{field:!!e?.includes("field"),log:!!e?.includes("log"),naturalLog:!!e?.includes("naturallog"),percentOfTotal:!!e?.includes("percentoftotal"),squareRoot:!!e?.includes("squareroot")}}function h(t,e){return{analytics:y(t),attachment:m(t),data:g(t),metadata:v(t),operations:b(t.capabilities,t,e),query:M(t,e),queryAttributeBins:_(t),queryRelated:w(t),queryTopFeatures:x(t),editing:S(t)}}function y(t){return{supportsCacheHint:c(t.advancedQueryCapabilities,"queryAnalytics")}}function m(t){const e=t.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:c(t.advancedQueryCapabilities,"queryAttachments"),supportsOrderByFields:i(t.advancedQueryCapabilities,"supportsQueryAttachmentOrderByFields",!1),supportsResize:i(t,"supportsAttachmentsResizing",!1)};return e&&Array.isArray(e)&&e.forEach((t=>{const e=l[t.name];e&&(r[e]=!!t.isEnabled)})),r}function g(t){return{isVersioned:i(t,"isDataVersioned",!1),isBranchVersioned:i(t,"isDataBranchVersioned",!1),supportsAttachment:i(t,"hasAttachments",!1),supportsM:i(t,"hasM",!1),supportsZ:i(t,"hasZ",!1)}}function v(t){return{supportsAdvancedFieldProperties:i(t,"supportsFieldDescriptionProperty",!1)}}function b(t,e,r){const n=t?t.toLowerCase().split(",").map((t=>t.trim())):[],s=r?(0,o.qg)(r):null,a=n.includes(null!=s&&"MapServer"===s.serverType?"data":"query"),u=n.includes("editing")&&!e.datesInUnknownTimezone;let l=u&&n.includes("create"),p=u&&n.includes("delete"),c=u&&n.includes("update");const d=n.includes("changetracking"),f=e.advancedQueryCapabilities;return u&&!(l||p||c)&&(l=p=c=!0),{supportsCalculate:i(e,"supportsCalculate",!1),supportsTruncate:i(e,"supportsTruncate",!1),supportsValidateSql:i(e,"supportsValidateSql",!1),supportsAdd:l,supportsDelete:p,supportsEditing:u,supportsChangeTracking:d,supportsQuery:a,supportsQueryAnalytics:i(f,"supportsQueryAnalytic",!1),supportsQueryAttachments:i(f,"supportsQueryAttachments",!1),supportsQueryBins:i(f,"supportsQueryBins",!1),supportsQueryTopFeatures:i(f,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:i(e,"supportsAttachmentsResizing",!1),supportsSync:n.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:i(e,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:i(e,"supportsAsyncConvert3D",!1)}}function M(t,e){const r=t.advancedQueryCapabilities,u=t.ownershipBasedAccessControlForFeatures,l=t.archivingInfo,d=t.currentVersion,f=e?.includes("MapServer"),h=!f||d>=(0,n.A)("mapserver-pbf-version-support"),y=(0,o.Wo)(e),m=new Set((t.supportedQueryFormats??"").split(",").map((t=>t.toLowerCase().trim())));return{maxRecordCount:a(t,"maxRecordCount",void 0),maxRecordCountFactor:a(t,"maxRecordCountFactor",void 0),standardMaxRecordCount:a(t,"standardMaxRecordCount",void 0),supportedSpatialAggregationStatistics:p(r),supportsCacheHint:i(r,"supportsQueryWithCacheHint",!1)||c(r,"query"),supportsCentroid:i(r,"supportsReturningGeometryCentroid",!1),supportsCompactGeometry:y,supportsCurrentUser:i(r,"supportsCurrentUserQueries",!1),supportsDefaultSpatialReference:i(r,"supportsDefaultSR",!1),supportsDisjointSpatialRelationship:i(r,"supportsDisjointSpatialRel",!1),supportsDistance:i(r,"supportsQueryWithDistance",!1),supportsDistinct:i(r,"supportsDistinct",t.supportsAdvancedQueries),supportsExtent:i(r,"supportsReturningQueryExtent",!1),supportsFormatPBF:h&&m.has("pbf"),supportsFullTextSearch:i(r,"supportsFullTextSearch",!1),supportsGeometryProperties:i(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:i(r,"supportsHavingClause",!1),supportsHistoricMoment:i(l,"supportsQueryWithHistoricMoment",!1),supportsMaxRecordCountFactor:i(r,"supportsMaxRecordCountFactor",!1),supportsOrderBy:i(r,"supportsOrderBy",t.supportsAdvancedQueries),supportsPagination:i(r,"supportsPagination",!1),supportsPercentileStatistics:i(r,"supportsPercentileStatistics",!1),supportsQuantization:i(t,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:i(t,"supportsQuantizationEditMode",!1),supportsQueryByAnonymous:i(u,"allowAnonymousToQuery",!0),supportsQueryByOthers:i(u,"allowOthersToQuery",!0),supportsQueryGeometry:i(t,"supportsReturningQueryGeometry",!1),supportsResultType:i(r,"supportsQueryWithResultType",!1),supportsReturnMesh:!!(0,s.Hz)(t.infoFor3D),supportsSpatialAggregationStatistics:i(r,"supportsSpatialAggregationStatistics",!1),supportsSqlExpression:i(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:i(t,"useStandardizedQueries",!1),supportsStatistics:i(r,"supportsStatistics",t.supportsStatistics),supportsTopFeaturesQuery:i(r,"supportsTopFeaturesQuery",!1),supportsTrueCurve:i(r,"supportsTrueCurve",!1),tileMaxRecordCount:a(t,"tileMaxRecordCount",void 0)}}function w(t){const e=t.advancedQueryCapabilities,r=i(e,"supportsAdvancedQueryRelated",!1);return{supportsPagination:i(e,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:c(e,"queryRelated")}}function x(t){return{supportsCacheHint:c(t.advancedQueryCapabilities,"queryTopFilter")}}function _(t){const e=t?t.queryBinsCapabilities:void 0;return{supportsDate:i(e,"supportsDateBin",!1),supportsFixedInterval:i(e,"supportsFixedIntervalBin",!1),supportsAutoInterval:i(e,"supportsAutoIntervalBin",!1),supportsFixedBoundaries:i(e,"supportsFixedBoundariesBin",!1),supportsStackBy:i(e,"supportsStackBy",!1),supportsSplitBy:i(e,"supportsSplitBy",!1),supportsSnapToData:i(e,"supportsSnapToData",!1),supportsReturnFullIntervalBin:i(e,"supportsReturnFullIntervalBin",!1),supportsFirstDayOfWeek:i(e,"supportsFirstDayOfWeek",!1),supportsNormalization:i(e,"supportsNormalization",!1),supportedStatistics:d(e),supportedNormalizationTypes:f(e)}}function S(t){const e=t.ownershipBasedAccessControlForFeatures,r=t?t.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:i(t,"allowGeometryUpdates",!0),supportsGlobalId:i(t,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:i(t,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:i(t,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:i(t,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:i(t,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:i(e,"allowAnonymousToDelete",!0),supportsDeleteByOthers:i(e,"allowOthersToDelete",!0),supportsUpdateByAnonymous:i(e,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:i(e,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:i(r,"supportsAsyncApplyEdits",!1),zDefault:a(t,"zDefault",void 0)}}function A(t){return{operations:{supportsAppend:i(t,"supportsAppend",!1),supportsCoverageQuery:t?.playbackInfo?.klv["0601"]??!1,supportsExportClip:i(t,"supportsExportClip",!1),supportsExportFrameset:i(t,"supportsExportFrameset",!1),supportsMensuration:i(t,"supportsMensuration",!1),supportsUpdate:i(t,"supportsUpdate",!1)}}}},31756:(t,e,r)=>{r.d(e,{j:()=>s});var n=r(83047),o=r(79258);const s={unknown:1,inches:(0,n.oU)(1,"meters","inches"),feet:(0,n.oU)(1,"meters","feet"),"us-feet":(0,n.oU)(1,"meters","us-feet"),yards:(0,n.oU)(1,"meters","yards"),miles:(0,n.oU)(1,"meters","miles"),"nautical-miles":(0,n.oU)(1,"meters","nautical-miles"),millimeters:(0,n.oU)(1,"meters","millimeters"),centimeters:(0,n.oU)(1,"meters","centimeters"),decimeters:(0,n.oU)(1,"meters","decimeters"),meters:(0,n.oU)(1,"meters","meters"),kilometers:(0,n.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,n.vl)(1,"meters",o.$O.radius)}},88625:(t,e,r)=>{r.d(e,{A:()=>M});var n,o=r(90237),s=r(66552),i=r(25482),a=r(97768),u=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),p=r(40608),c=r(43937),d=r(30524);let f=n=class extends i.A{constructor(t){super(t)}async collectRequiredFields(t,e){return(0,d.Dx)(t,e,this.expression)}clone(){return new n({expression:this.expression,title:this.title})}equals(t){return this.expression===t.expression&&this.title===t.title}};(0,o._)([(0,u.MZ)({type:String,json:{write:{isRequired:!0}}})],f.prototype,"expression",void 0),(0,o._)([(0,u.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),f=n=(0,o._)([(0,p.$)("esri.symbols.support.FeatureExpressionInfo")],f);const h=f;var y,m=r(16271);const g=(0,s.O)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),v=new s.J({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let b=class extends i.A{static{y=this}constructor(t){super(t),this.featureExpressionInfo=void 0,this.offset=null}readFeatureExpressionInfo(t,e){return null!=t?t:e.featureExpression&&0===e.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(t,e,r,n){e[r]=t.write({},n),"0"===t.expression&&(e.featureExpression={value:0})}get mode(){const{offset:t,featureExpressionInfo:e}=this;return this._isOverridden("mode")?this._get("mode"):null!=t||e?"relative-to-ground":"on-the-ground"}set mode(t){this._override("mode",t)}set unit(t){this._set("unit",t)}write(t,e){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(t,e):null}clone(){return new y({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}equals(t){return this.mode===t.mode&&this.offset===t.offset&&this.unit===t.unit&&(0,a.CM)(this.featureExpressionInfo,t.featureExpressionInfo)}};(0,o._)([(0,u.MZ)({type:h,json:{write:!0}})],b.prototype,"featureExpressionInfo",void 0),(0,o._)([(0,l.w)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],b.prototype,"readFeatureExpressionInfo",null),(0,o._)([(0,c.K)("featureExpressionInfo",{featureExpressionInfo:{type:h},"featureExpression.value":{type:[0]}})],b.prototype,"writeFeatureExpressionInfo",null),(0,o._)([(0,u.MZ)({type:g.apiValues,nonNullable:!0,json:{type:g.jsonValues,read:g.read,write:{writer:g.write,isRequired:!0}}})],b.prototype,"mode",null),(0,o._)([(0,u.MZ)({type:Number,json:{write:!0}})],b.prototype,"offset",void 0),(0,o._)([(0,u.MZ)({type:m.KQ,json:{type:String,read:v.read,write:v.write}})],b.prototype,"unit",null),b=y=(0,o._)([(0,p.$)("esri.symbols.support.ElevationInfo")],b);const M=b},16271:(t,e,r)=>{r.d(e,{Ao:()=>s,KQ:()=>i});var n=r(4576),o=r(31756);function s(t){return 1/(o.j[t]||1)}const i=function(){const t=Object.keys(o.j);return(0,n.TF)(t,"decimal-degrees"),t.sort(),t}()},85360:(t,e,r)=>{r.d(e,{A:()=>j});var n=r(90237),o=r(25482),s=r(4718),i=r(10107),a=r(79901),u=r(36005),l=r(40608),p=r(43937);r(44208),r(53966),r(87811);let c=class extends o.A{constructor(t){super(t),this.description=null,this.label=null,this.type=null}};(0,n._)([(0,i.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,n._)([(0,i.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,n._)([(0,i.MZ)()],c.prototype,"type",void 0),c=(0,n._)([(0,l.$)("esri.tables.elements.AttributeTableElement")],c);const d=c;var f;let h=f=class extends d{constructor(t){super(t),this.displayType="auto",this.type="attachment"}clone(){return new f({description:this.description,displayType:this.displayType,label:this.label})}};(0,n._)([(0,i.MZ)({type:["auto"],json:{write:!0}})],h.prototype,"displayType",void 0),(0,n._)([(0,i.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=f=(0,n._)([(0,l.$)("esri.tables.elements.AttributeTableAttachmentElement")],h);const y=h;var m;let g=m=class extends d{constructor(t){super(t),this.fieldName=null,this.type="field"}clone(){return new m({description:this.description,fieldName:this.fieldName,label:this.label})}};(0,n._)([(0,i.MZ)({type:String,json:{write:!0}})],g.prototype,"fieldName",void 0),(0,n._)([(0,i.MZ)({type:String,json:{read:!1,write:!0}})],g.prototype,"type",void 0),g=m=(0,n._)([(0,l.$)("esri.tables.elements.AttributeTableFieldElement")],g);const v=g;var b,M=r(56507);let w=b=class extends d{constructor(t){super(t),this.relationshipId=null,this.type="relationship"}clone(){return new b({description:this.description,label:this.label,relationshipId:this.relationshipId})}};(0,n._)([(0,i.MZ)({type:Number,json:{write:!0}})],w.prototype,"relationshipId",void 0),(0,n._)([(0,i.MZ)({type:["relationship"],json:{read:!1,write:!0}})],w.prototype,"type",void 0),w=b=(0,n._)([(0,l.$)("esri.tables.elements.AttributeTableRelationshipElement")],w);const x=w;function _(t){return{typesWithGroup:{base:d,key:"type",typeMap:{attachment:y,field:v,group:t,relationship:x}},typesWithoutGroup:{base:d,key:"type",typeMap:{attachment:y,field:v,relationship:x}}}}function S(t,e,r=!0){if(!t)return null;const n=r?e.typesWithGroup.typeMap:e.typesWithoutGroup.typeMap;return t.filter((t=>n[t.type])).map((t=>n[t.type].fromJSON(t)))}function A(t,e,r=!0){if(!t)return null;const n=r?e.typesWithGroup.typeMap:e.typesWithoutGroup.typeMap;return t.filter((t=>n[t.type])).map((t=>t.toJSON()))}function O(t,e,r=!0){return t?t.map((t=>(0,M.aq)(r?e.typesWithGroup:e.typesWithoutGroup,t))):null}var C;let E=C=class extends d{constructor(t){super(t),this.elements=null,this.type="group"}castElements(t){return O(t,Z,!1)}readElements(t,e){return S(e.attributeTableElements,Z,!1)}writeElements(t,e){e.attributeTableElements=A(t,Z,!1)}clone(){return new C({description:this.description,elements:(0,s.o8)(this.elements),label:this.label})}};(0,n._)([(0,i.MZ)({json:{write:!0}})],E.prototype,"elements",void 0),(0,n._)([(0,a.w)("elements")],E.prototype,"castElements",null),(0,n._)([(0,u.w)("elements",["attributeTableElements"])],E.prototype,"readElements",null),(0,n._)([(0,p.K)("elements")],E.prototype,"writeElements",null),(0,n._)([(0,i.MZ)({type:String,json:{read:!1,write:!0}})],E.prototype,"type",void 0),E=C=(0,n._)([(0,l.$)("esri.tables.elements.AttributeTableGroupElement")],E);const Z=_(E);var T;const I=_(E);let F=T=class extends o.A{constructor(t){super(t),this.elements=null,this.orderByFields=null}castElements(t){return O(t,I)}readElements(t,e){return S(e.attributeTableElements,I)}writeElements(t,e){e.attributeTableElements=A(t,I)}clone(){return new T({elements:(0,s.o8)(this.elements),orderByFields:this.orderByFields})}};(0,n._)([(0,i.MZ)({json:{write:!0}})],F.prototype,"elements",void 0),(0,n._)([(0,a.w)("elements")],F.prototype,"castElements",null),(0,n._)([(0,u.w)("elements",["attributeTableElements"])],F.prototype,"readElements",null),(0,n._)([(0,p.K)("elements")],F.prototype,"writeElements",null),(0,n._)([(0,i.MZ)({type:[Object],json:{write:!0}})],F.prototype,"orderByFields",void 0),F=T=(0,n._)([(0,l.$)("esri.tables.AttributeTableTemplate")],F);const j=F},78553:(t,e,r)=>{r.d(e,{D:()=>s,p:()=>o});var n=r(56507);function o(t){const e=(0,n.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[378],{40876:(e,t,n)=>{n.d(t,{TS:()=>i,Tf:()=>c,V6:()=>o,c4:()=>l,qh:()=>s,z$:()=>u});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(e){return!!r[e]||!!r[e.toLowerCase()]}function i(e){return r[e]??r[e.toLowerCase()]}function l(e){return[...i(e)]}function a(e,t,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function u(e,t,n,r=1){const o=(e%360+360)%360/360,i=n<=.5?n*(t+1):n+t-n*t,l=2*n-i;return[Math.round(255*a(l,i,o+1/3)),Math.round(255*a(l,i,o)),Math.round(255*a(l,i,o-1/3)),r]}function s(e){const t=e.length>5,n=t?8:4,r=(1<<n)-1,o=t?1:17,i=t?9===e.length:5===e.length;let l=Number("0x"+e.slice(1));if(isNaN(l))return null;const a=[0,0,0,1];let u;return i&&(u=l&r,l>>=n,a[3]=o*u/255),u=l&r,l>>=n,a[2]=o*u,u=l&r,l>>=n,a[1]=o*u,u=l&r,l>>=n,a[0]=o*u,a}const c=2.2},69540:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(90237),o=n(69622),i=(n(44208),n(4718)),l=(n(53966),n(97768)),a=n(35666),u=n(88620),s=n(40608);const c=e=>{let t=class extends e{clone(){const e=(0,u.oY)(this);(0,l.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,n=e.store,r={},o=new Map;for(const e in t){const l=t[e],u=n?.originOf(e),s=l.clonable;if(l.readOnly||!1===s||u!==a.Gr.USER&&u!==a.Gr.DEFAULTS&&u!==a.Gr.WEB_MAP&&u!==a.Gr.WEB_SCENE)continue;const c=this[e];let f=null;f="function"==typeof s?s(c):"reference"===s?c:(0,i.TU)(c),null!=c&&null==f||(u===a.Gr.DEFAULTS?o.set(e,f):r[e]=f)}const s=new(0,Object.getPrototypeOf(this).constructor)(r);if(o.size){const e=(0,u.oY)(s)?.store;if(e)for(const[t,n]of o)e.set(t,n,a.Gr.DEFAULTS)}return s}};return t=(0,r._)([(0,s.$)("esri.core.Clonable")],t),t};let f=class extends(c(o.A)){};f=(0,r._)([(0,s.$)("esri.core.Clonable")],f),(f||(f={})).ClonableMixin=c;const d=f},93223:(e,t,n)=>{n.d(t,{e:()=>i});var r=n(66552),o=n(10107);function i(e,t={}){const n=e instanceof r.J?e:new r.J(e,t),{alwaysWriteDefaults:i,default:l,ignoreUnknown:a=!0,name:u,nonNullable:s,readOnly:c=!1}=t;return(0,o.MZ)({type:a?n.apiValues:String,json:{type:n.jsonValues,default:l,name:u,read:!c&&{reader:n.read},write:{writer:n.write,alwaysWriteDefaults:i}},nonNullable:s,readOnly:c})}},72385:(e,t,n)=>{function r(){return new Float32Array(3)}function o(e){const t=new Float32Array(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(e,t,n){const r=new Float32Array(3);return r[0]=e,r[1]=t,r[2]=n,r}function l(){return r()}function a(){return i(1,1,1)}function u(){return i(1,0,0)}function s(){return i(0,1,0)}function c(){return i(0,0,1)}n.d(t,{fA:()=>i,o8:()=>o,vt:()=>r});const f=l(),d=a(),C=u(),A=s(),E=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:C,UNIT_Y:A,UNIT_Z:E,ZEROS:f,clone:o,create:r,fromValues:i,ones:a,unitX:u,unitY:s,unitZ:c,zeros:l},Symbol.toStringTag,{value:"Module"}))},91829:(e,t,n)=>{function r(){return[0,0,0,0]}function o(e,t,n,r){return[e,t,n,r]}function i(e,t,n,r){return[e,t,n,r]}function l(e,t=[0,0,0,0]){const n=Math.min(4,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function s(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}n.d(t,{CN:()=>i,Un:()=>C,ci:()=>l,fA:()=>o,uY:()=>d,vt:()=>r});const d=[0,0,0,0],C=a(),A=u(),E=s(),h=c(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:C,UNIT_W:g,UNIT_X:A,UNIT_Y:E,UNIT_Z:h,ZEROS:d,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:r,freeze:i,fromArray:l,fromValues:o,ones:a,unitW:f,unitX:u,unitY:s,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>o});var r=n(37539);function o(e,t,n,o,i,l,a=Math.floor(e.length/3)){const u=(0,r.jd)(t,i);if(null==u)return!1;if(u===r.pO){if(e===o&&n===l)return!0;const t=n+3*a;for(let r=n,i=l;r<t;r++,i++)o[i]=e[r];return!0}const s=n+3*a;for(let t=n,r=l;t<s;t+=3,r+=3)u(e,t,o,r);return!0}},37539:(e,t,n)=>{n.d(t,{rz:()=>c,pO:()=>g,jd:()=>A,Tp:()=>E,w5:()=>C});var r=n(34727),o=n(83047),i=n(73941),l=n(79258);Math.PI;const a=l.$O.radius,u=l.$O.eccentricitySquared,s={a1:a*u,a2:a*u*a*u,a3:a*u*u/2,a4:a*u*a*u*2.5,a5:a*u+a*u*u/2,a6:1-u};l.$O.radius,l.$O.flattening,l.Sw.radius,l.Sw.flattening,l.sH.radius,l.sH.flattening,l.sH.radius;var c,f=n(21325),d=n(19936);!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",e[e.WGS84=2]="WGS84",e[e.WEB_MERCATOR=3]="WEB_MERCATOR",e[e.WGS84_ECEF=4]="WGS84_ECEF",e[e.CGCS2000=5]="CGCS2000",e[e.SPHERICAL_MARS_PCPF=6]="SPHERICAL_MARS_PCPF",e[e.GCSMARS2000=7]="GCSMARS2000",e[e.SPHERICAL_MOON_PCPF=8]="SPHERICAL_MOON_PCPF",e[e.GCSMOON2000=9]="GCSMOON2000",e[e.LON_LAT=10]="LON_LAT",e[e.PLATE_CARREE=11]="PLATE_CARREE"}(c||(c={}));const C={[c.WGS84]:{[c.CGCS2000]:g,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:g,[c.SPHERICAL_ECEF]:M,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:S,[c.PLATE_CARREE]:y,[c.WGS84]:g,[c.WGS84_ECEF]:L},[c.CGCS2000]:{[c.CGCS2000]:g,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:g,[c.SPHERICAL_ECEF]:M,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:S,[c.PLATE_CARREE]:y,[c.WGS84]:g,[c.WGS84_ECEF]:L},[c.GCSMARS2000]:{[c.CGCS2000]:null,[c.GCSMARS2000]:g,[c.GCSMOON2000]:null,[c.LON_LAT]:g,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:w,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.GCSMOON2000]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:g,[c.LON_LAT]:g,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:R,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.WEB_MERCATOR]:{[c.CGCS2000]:b,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:b,[c.SPHERICAL_ECEF]:function(e,t,n,r){const o=e[t]/G,i=T-2*Math.atan(Math.exp(-e[t+1]/G)),l=G+e[t+2],a=Math.cos(i)*l;n[r]=Math.cos(o)*a,n[r+1]=Math.sin(o)*a,n[r+2]=Math.sin(i)*l},[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:g,[c.PLATE_CARREE]:function(e,t,n,r){b(e,t,n,r),y(n,r,n,r)},[c.WGS84]:b,[c.WGS84_ECEF]:function(e,t,n,r){b(e,t,n,r),L(n,r,n,r)}},[c.WGS84_ECEF]:{[c.CGCS2000]:I,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:I,[c.SPHERICAL_ECEF]:function(e,t,n,r){I(e,t,n,r),M(n,r,n,r)},[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:function(e,t,n,r){I(e,t,n,r),S(n,r,n,r)},[c.PLATE_CARREE]:function(e,t,n,r){I(e,t,n,r),y(n,r,n,r)},[c.WGS84]:I,[c.WGS84_ECEF]:g},[c.SPHERICAL_ECEF]:{[c.CGCS2000]:N,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:N,[c.SPHERICAL_ECEF]:g,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:function(e,t,n,r){N(e,t,n,r),S(n,r,n,r)},[c.PLATE_CARREE]:function(e,t,n,r){N(e,t,n,r),y(n,r,n,r)},[c.WGS84]:N,[c.WGS84_ECEF]:function(e,t,n,r){N(e,t,n,r),L(n,r,n,r)}},[c.SPHERICAL_MARS_PCPF]:{[c.CGCS2000]:null,[c.GCSMARS2000]:P,[c.GCSMOON2000]:null,[c.LON_LAT]:P,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:g,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.SPHERICAL_MOON_PCPF]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:m,[c.LON_LAT]:m,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:g,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.UNKNOWN]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:g,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.LON_LAT]:{[c.CGCS2000]:g,[c.GCSMARS2000]:g,[c.GCSMOON2000]:g,[c.LON_LAT]:g,[c.SPHERICAL_ECEF]:M,[c.SPHERICAL_MARS_PCPF]:w,[c.SPHERICAL_MOON_PCPF]:R,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:S,[c.PLATE_CARREE]:y,[c.WGS84]:g,[c.WGS84_ECEF]:L},[c.PLATE_CARREE]:{[c.CGCS2000]:p,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:p,[c.SPHERICAL_ECEF]:function(e,t,n,r){p(e,t,n,r),M(n,r,n,r)},[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:function(e,t,n,r){p(e,t,n,r),S(n,r,n,r)},[c.PLATE_CARREE]:g,[c.WGS84]:p,[c.WGS84_ECEF]:function(e,t,n,r){p(e,t,n,r),L(n,r,n,r)}}};function A(e,t){return E(e,t)?.projector}function E(e,t){if(null==e||null==t)return null;if(U.source.spatialReference===e&&U.dest.spatialReference===t)return U;const n=h(e,U.source),r=h(t,U.dest);return n===c.UNKNOWN&&r===c.UNKNOWN?(0,f.aI)(e,t)?U.projector=g:U.projector=null:U.projector=C[n][r],U}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,o.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=c.SPHERICAL_ECEF:(0,f.oT)(e)?t.spatialReferenceId=c.WGS84:(0,f.K8)(e)?t.spatialReferenceId=c.WEB_MERCATOR:(0,f.r1)(e)?t.spatialReferenceId=c.PLATE_CARREE:e.wkt===i.Ro.wkt?t.spatialReferenceId=c.WGS84_ECEF:e.wkid===d.Y.CGCS2000?t.spatialReferenceId=c.CGCS2000:e.wkt===i.FY.wkt?t.spatialReferenceId=c.SPHERICAL_MARS_PCPF:e.wkt===i.LJ.wkt?t.spatialReferenceId=c.SPHERICAL_MOON_PCPF:(0,f.q8)(e)?t.spatialReferenceId=c.GCSMARS2000:(0,f.KQ)(e)?t.spatialReferenceId=c.GCSMOON2000:t.spatialReferenceId=c.UNKNOWN):c.UNKNOWN}function g(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t])}function b(e,t,n,r){n[r]=v*(e[t]/G),n[r+1]=v*(T-2*Math.atan(Math.exp(-e[t+1]/G))),n[r+2]=e[t+2]}function S(e,t,n,o){!function(e,t,n,o,i){const l=.4999999*Math.PI,a=(0,r.qE)(F*e[t+1],-l,l),u=Math.sin(a);n[o++]=F*e[t]*i.radius,n[o++]=i.halfSemiMajorAxis*Math.log((1+u)/(1-u)),n[o]=e[t+2]}(e,t,n,o,l.$O)}function y(e,t,n,r){n[r]=e[t]*W,n[r+1]=e[t+1]*W,n[r+2]=e[t+2]}function p(e,t,n,r){n[r]=e[t]*k,n[r+1]=e[t+1]*k,n[r+2]=e[t+2]}function O(e,t,n,r,o){const i=o+e[t+2],l=F*e[t+1],a=F*e[t],u=Math.cos(l)*i;n[r]=Math.cos(a)*u,n[r+1]=Math.sin(a)*u,n[r+2]=Math.sin(l)*i}function R(e,t,n,r){O(e,t,n,r,l.Sw.radius)}function w(e,t,n,r){O(e,t,n,r,l.sH.radius)}function M(e,t,n,r){O(e,t,n,r,l.$O.radius)}function _(e,t,n,o,i){const l=e[t],a=e[t+1],u=e[t+2],s=Math.sqrt(l*l+a*a+u*u),c=(0,r.YN)(u/(0===s?1:s)),f=Math.atan2(a,l);n[o++]=v*f,n[o++]=v*c,n[o]=s-i}function m(e,t,n,r){_(e,t,n,r,l.Sw.radius)}function P(e,t,n,r){_(e,t,n,r,l.sH.radius)}function N(e,t,n,r){_(e,t,n,r,l.$O.radius)}function L(e,t,n,r){!function(e,t,n,r,o){const i=F*e[t],l=F*e[t+1],a=e[t+2],u=Math.sin(l),s=Math.cos(l),c=o.radius/Math.sqrt(1-o.eccentricitySquared*u*u);n[r++]=(c+a)*s*Math.cos(i),n[r++]=(c+a)*s*Math.sin(i),n[r++]=(c*(1-o.eccentricitySquared)+a)*u}(e,t,n,r,l.$O)}function I(e,t,n,r){const o=s,i=e[t],a=e[t+1],u=e[t+2];let c,f,d,C,A,E,h,g,b,S,y,p,O,R,w,M,_,m,P,N,L;c=Math.abs(u),f=i*i+a*a,d=Math.sqrt(f),C=f+u*u,A=Math.sqrt(C),N=Math.atan2(a,i),E=u*u/C,h=f/C,R=o.a2/A,w=o.a3-o.a4/A,h>.3?(g=c/A*(1+h*(o.a1+R+E*w)/A),P=Math.asin(g),S=g*g,b=Math.sqrt(1-S)):(b=d/A*(1-E*(o.a5-R-h*w)/A),P=Math.acos(b),S=1-b*b,g=Math.sqrt(S)),y=1-l.$O.eccentricitySquared*S,p=l.$O.radius/Math.sqrt(y),O=o.a6*p,R=d-p*b,w=c-O*g,_=b*R+g*w,M=b*w-g*R,m=M/(O/y+_),P+=m,L=_+M*m/2,u<0&&(P=-P),n[r++]=v*N,n[r++]=v*P,n[r]=L}const U={source:{spatialReference:null,spatialReferenceId:c.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:c.UNKNOWN,metersPerUnit:1},projector:g},F=(0,r.kU)(1),v=(0,r.KJ)(1),T=.5*Math.PI,G=l.$O.radius,W=G*Math.PI/180,k=180/(G*Math.PI)},34142:(e,t,n)=>{n.r(t),n.d(t,{default:()=>R});var r=n(4576),o=n(34275),i=n(67026),l=n(82534),a=n(38954),u=n(72385),s=n(16930),c=n(9762),f=(n(44208),n(63531)),d=n(69846),C=n(48425),A=n(59418),E=n(37203);function h(e,t,n){return e?.attributeInfo.useElevation?t?function(e,t){const n=new Float64Array(t);for(let r=0;r<t;r++)n[r]=e[3*r+2];return n}(t,n):null:e?.attributeInfo.storageInfo?(0,A.m0)(e.attributeInfo.storageInfo,e.buffer,n,!0):null}function g(e){switch(e){default:case null:case"none":return e=>e;case"low-four-bit":return e=>15&e;case"high-four-bit":return e=>(240&e)>>4;case"absolute-value":return e=>Math.abs(e);case"modulo-ten":return e=>e%10}}function b(e){let t=0;for(const n of e||[])t|=1<<n;return t}var S=n(57005);class y{transform(e){const t=this._transform(e),n=[t.points.buffer,t.rgb.buffer];null!=t.pointIdFilterMap&&n.push(t.pointIdFilterMap.buffer);for(const e of t.attributes)"buffer"in e.values&&(0,o.mw)(e.values.buffer)&&e.values.buffer!==t.rgb.buffer&&n.push(e.values.buffer);return Promise.resolve({result:t,transferList:n})}_transform(e){const t=function(e,t){if(null==e.encoding||""===e.encoding){const n=(0,A.wH)(t,e);if(null==n.vertexAttributes.position)return;const r=(0,A.MA)(t,n.vertexAttributes.position),o=n.header.fields,i=[o.offsetX,o.offsetY,o.offsetZ],l=[o.scaleX,o.scaleY,o.scaleZ],a=r.length/3,u=new Float64Array(3*a);for(let e=0;e<a;e++)u[3*e]=r[3*e]*l[0]+i[0],u[3*e+1]=r[3*e+1]*l[1]+i[1],u[3*e+2]=r[3*e+2]*l[2]+i[2];return u}if("lepcc-xyz"===e.encoding)return(0,E.Me)(t).result}(e.schema,e.geometryBuffer);let n=t.length/3,o=null;const i=new Array,l=h(e.primaryAttributeData,t,n);null!=e.primaryAttributeData&&l&&i.push({attributeInfo:e.primaryAttributeData.attributeInfo,values:l});const a=h(e.modulationAttributeData,t,n);null!=e.modulationAttributeData&&a&&i.push({attributeInfo:e.modulationAttributeData.attributeInfo,values:a});let u=function(e,t,n,r){const{rendererJSON:o,isRGBRenderer:i}=e;let l=null,a=null;if(t&&i)l=t;else if(t&&"pointCloudUniqueValueRenderer"===o?.type){a=C.A.fromJSON(o);const e=a.colorUniqueValueInfos;l=new Uint8Array(3*r);const n=g(a.fieldTransformType);for(let o=0;o<r;o++){const r=(n?n(t[o]):t[o])+"";for(let t=0;t<e.length;t++)if(e[t].values.includes(r)){l[3*o]=e[t].color.r,l[3*o+1]=e[t].color.g,l[3*o+2]=e[t].color.b;break}}}else if(t&&"pointCloudStretchRenderer"===o?.type){a=d.A.fromJSON(o);const e=a.stops;l=new Uint8Array(3*r);const n=g(a.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(t[o]):t[o],i=e.length-1;if(r<e[0].value)l[3*o]=e[0].color.r,l[3*o+1]=e[0].color.g,l[3*o+2]=e[0].color.b;else if(r>=e[i].value)l[3*o]=e[i].color.r,l[3*o+1]=e[i].color.g,l[3*o+2]=e[i].color.b;else for(let t=1;t<e.length;t++)if(r<e[t].value){const n=(r-e[t-1].value)/(e[t].value-e[t-1].value);l[3*o]=e[t].color.r*n+e[t-1].color.r*(1-n),l[3*o+1]=e[t].color.g*n+e[t-1].color.g*(1-n),l[3*o+2]=e[t].color.b*n+e[t-1].color.b*(1-n);break}}}else if(t&&"pointCloudClassBreaksRenderer"===o?.type){a=f.A.fromJSON(o);const e=a.colorClassBreakInfos;l=new Uint8Array(3*r);const n=g(a.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(t[o]):t[o];for(let t=0;t<e.length;t++)if(r>=e[t].minValue&&r<=e[t].maxValue){l[3*o]=e[t].color.r,l[3*o+1]=e[t].color.g,l[3*o+2]=e[t].color.b;break}}}else l=new Uint8Array(3*r).fill(255);if(n&&a?.colorModulation){const e=a.colorModulation.minValue,t=a.colorModulation.maxValue,o=.3;for(let i=0;i<r;i++){const r=n[i],a=r>=t?1:r<=e?o:o+(1-o)*(r-e)/(t-e);l[3*i]=a*l[3*i],l[3*i+1]=a*l[3*i+1],l[3*i+2]=a*l[3*i+2]}}return l}(e.rendererInfo,l,a,n);if(e.filterInfo&&e.filterInfo.length>0&&null!=e.filterAttributesData){const l=e.filterAttributesData.filter(r.Ru).map((e=>{const r=h(e,t,n),o={attributeInfo:e.attributeInfo,values:r};return i.push(o),o}));o=new Uint32Array(n),n=function(e,t,n,r,o){const i=e.length/3;let l=0;for(let a=0;a<i;a++){let i=!0;for(let e=0;e<r.length&&i;e++){const{filterJSON:t}=r[e],n=o[e].values[a];switch(t.type){case"pointCloudValueFilter":{const e="exclude"===t.mode;t.values.includes(n)===e&&(i=!1);break}case"pointCloudBitfieldFilter":{const e=b(t.requiredSetBits),r=b(t.requiredClearBits);((n&e)!==e||n&r)&&(i=!1);break}case"pointCloudReturnFilter":{const e=15&n,r=n>>>4&15,o=r>1,l=1===e,a=e===r;let u=!1;for(const e of t.includedReturns)if("last"===e&&a||"firstOfMany"===e&&l&&o||"lastOfMany"===e&&a&&o||"single"===e&&!o){u=!0;break}u||(i=!1);break}}}i&&(n[l]=a,e[3*l]=e[3*a],e[3*l+1]=e[3*a+1],e[3*l+2]=e[3*a+2],t[3*l]=t[3*a],t[3*l+1]=t[3*a+1],t[3*l+2]=t[3*a+2],l++)}return l}(t,u,o,e.filterInfo,l)}for(const r of e.userAttributesData){const e=h(r,t,n);i.push({attributeInfo:r.attributeInfo,values:e})}3*n<u.length&&(u=new Uint8Array(u.buffer.slice(0,3*n))),function(e,t,n){if(0!==n)for(let r=0;r<t;r++)e[3*r+2]+=n}(t,n,e.elevationOffset);const c=p(t,n,S.ab.fromData(e.obbData),s.A.fromJSON(e.inSR),s.A.fromJSON(e.outSR));return{obbData:e.obbData,points:c,rgb:u,attributes:i,pointIdFilterMap:o}}}function p(e,t,n,r,o){if(!(0,c.projectBuffer)(e,r,0,e,o,0,t))throw new Error("Can't reproject");const l=(0,u.o8)(n.center),s=(0,u.vt)(),f=(0,u.vt)(),d=(0,u.o8)(n.halfSize);(0,i.Xr)(O,n.quaternion);const C=new Float32Array(3*t);for(let n=0;n<t;n++){let t=3*n;s[0]=e[t]-l[0],s[1]=e[t+1]-l[1],s[2]=e[t+2]-l[2],(0,a.w)(f,s,O),d[0]=Math.max(d[0],Math.abs(f[0])),d[1]=Math.max(d[1],Math.abs(f[1])),d[2]=Math.max(d[2],Math.abs(f[2])),C[t++]=s[0],C[t++]=s[1],C[t]=s[2]}return n.halfSize=d,C}const O=(0,l.vt)();function R(){return new y}},59418:(e,t,n)=>{n.d(t,{wH:()=>h,MA:()=>C,m0:()=>b});var r=n(49186),o=n(4718),i=n(53966),l=n(34275),a=n(37203),u=n(46540);const s=()=>i.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(e,t,n){let o="",i=0;for(;i<n;){const l=e[t+i];if(l<128)o+=String.fromCharCode(l),i++;else if(l>=192&&l<224){if(i+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const a=(31&l)<<6|63&e[t+i+1];o+=String.fromCharCode(a),i+=2}else if(l>=224&&l<240){if(i+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(15&l)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];o+=String.fromCharCode(a),i+=3}else{if(!(l>=240&&l<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(7&l)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(a>=65536){const e=55296+(a-65536>>10),t=56320+(1023&a);o+=String.fromCharCode(e,t)}else o+=String.fromCharCode(a);i+=4}}}return o}function f(e,t){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<t.length;o++){const i=t[o],l=i.valueType||i.type,a=y[l];n.fields[i.property]=a(e,r),r+=S[l].BYTES_PER_ELEMENT}return n.byteCount=r,n}function d(e,t,n){const o=[];let i,l,a=0;for(l=0;l<e;l+=1){if(i=t[l],i>0){if(o.push(c(n,a,i-1)),0!==n[a+i-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);a+=i}return o}function C(e,t){return new(0,S[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function A(e,t,n){const i=null!=t.header?f(e,t.header):{byteOffset:0,byteCount:0,fields:{count:n}},l={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let a=i.byteCount;for(let e=0;e<t.ordering.length;e++){const n=t.ordering[e],u=(0,o.o8)(t[n]);if(u.count=i.fields.count??0,"String"===u.valueType){if(u.byteOffset=a,u.byteCount=i.fields[n+"ByteCount"],"UTF-8"!==u.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:u.encoding});if(u.timeEncoding&&"ECMA_ISO8601"!==u.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:u.timeEncoding})}else{if(!p(u.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:u.valueType});{const e=O(u.valueType);a+=a%e!=0?e-a%e:0,u.byteOffset=a,u.byteCount=e*u.valuesPerElement*u.count}}a+=u.byteCount??0,l.entries[n]=u}return l.byteCount=a-l.byteOffset,l}function E(e,t,n){if(t!==e&&s().error(`Invalid ${n} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function h(e,t){const n=f(e,t&&t.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,l=null!=i.vertexCount?i.vertexCount:i.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const n={...t.vertexAttributes[e],byteOffset:r,count:l},i=g[e]||"_"+e;o.vertexAttributes[i]=n,r+=O(n.valueType)*n.valuesPerElement*l}const a=i.faceCount;if(t.faces&&a){o.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const n={...t.faces[e],byteOffset:r,count:a};o.faces[e]=n,r+=O(n.valueType)*n.valuesPerElement*a}}const u=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&u){o.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const n={...t.featureAttributes[e],byteOffset:r,count:u};o.featureAttributes[e]=n,r+=("UInt64"===n.valueType?8:O(n.valueType))*n.valuesPerElement*u}}return E(r,e.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const g={position:u.r.POSITION,normal:u.r.NORMAL,color:u.r.COLOR,uv0:u.r.UV0,region:u.r.UVREGION};function b(e,t,n,o=!1){if("lepcc-rgb"===e.encoding)return o?(0,a.mb)(t):function(e){return Array.isArray(e)?e.length<l.y9?e:new Uint8Array(e):e.length<l.y9?Array.from(e):e}((0,a.mb)(t));if("lepcc-intensity"===e.encoding)return o?(0,a.Ax)(t):function(e){return Array.isArray(e)?e.length<l.y9?e:new Uint16Array(e):e.length<l.y9?Array.from(e):e}((0,a.Ax)(t));if(null!=e.encoding&&""!==e.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(s().warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(s().warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const i=A(t,e,n);E(i.byteOffset+i.byteCount,t.byteLength,"attribute");const u=i.entries.attributeValues||i.entries.objectIds;if(u){if("String"===u.valueType){const e=i.entries.attributeByteCounts,n=C(t,e),r=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,u);return u.timeEncoding?function(e,t,n){return d(e,t,n).map((e=>{const t=e?Date.parse(e):null;return null==t||Number.isNaN(t)?null:t}))}(e.count,n,r):d(e.count,n,r)}return o?C(t,u):function(e,t){const n=C(e,t);return n.length<l.y9?Array.from(n):n}(t,u)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const S={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},y={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function p(e){return S.hasOwnProperty(e)}function O(e){return p(e)?S[e].BYTES_PER_ELEMENT:0}},37203:(e,t,n)=>{n.d(t,{Ax:()=>g,Me:()=>s,mb:()=>A});var r=n(49186);const o=!0,i={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function l(e,t,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,n+i.identifierOffset,i.identifierLength)),version:t.getUint16(n+i.versionOffset,o),checksum:t.getUint32(n+i.checksumOffset,o)}}const a={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function u(e,t){return{sizeLo:e.getUint32(t+a.sizeLo,o),sizeHi:e.getUint32(t+a.sizeHi,o),minX:e.getFloat64(t+a.minX,o),minY:e.getFloat64(t+a.minY,o),minZ:e.getFloat64(t+a.minZ,o),maxX:e.getFloat64(t+a.maxX,o),maxY:e.getFloat64(t+a.maxY,o),maxZ:e.getFloat64(t+a.maxZ,o),errorX:e.getFloat64(t+a.errorX,o),errorY:e.getFloat64(t+a.errorY,o),errorZ:e.getFloat64(t+a.errorZ,o),count:e.getUint32(t+a.count,o),reserved:e.getUint32(t+a.reserved,o)}}function s(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:s}=l(e,t,n);if(n+=i.byteCount,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(s>1)throw new r.A("lepcc-decode-error","Unknown version");const f=u(t,n);if(n+=a.byteCount,f.sizeHi*2**32+f.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const d=new Float64Array(3*f.count),C=[],A=[],E=[],h=[];if(n=c(e,n,C),n=c(e,n,A),n=c(e,n,E),n=c(e,n,h),n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad length");let g=0,b=0;for(let e=0;e<C.length;e++){b+=C[e];let t=0;for(let n=0;n<A[e];n++){t+=E[g];const e=h[g];d[3*g]=Math.min(f.maxX,f.minX+2*f.errorX*t),d[3*g+1]=Math.min(f.maxY,f.minY+2*f.errorY*b),d[3*g+2]=Math.min(f.maxZ,f.minZ+2*f.errorZ*e),g++}}return{errorX:f.errorX,errorY:f.errorY,errorZ:f.errorZ,result:d}}function c(e,t,n){const r=[];t=f(e,t,r);const o=[];for(let i=0;i<r.length;i++){o.length=0,t=f(e,t,o);for(let e=0;e<o.length;e++)n.push(o[e]+r[i])}return t}function f(e,t,n){const i=new DataView(e,t),l=i.getUint8(0),a=31&l,u=!!(32&l),s=(192&l)>>6;let c=0;if(0===s)c=i.getUint32(1,o),t+=5;else if(1===s)c=i.getUint16(1,o),t+=3;else{if(2!==s)throw new r.A("lepcc-decode-error","Bad count type");c=i.getUint8(1),t+=2}if(u)throw new r.A("lepcc-decode-error","LUT not implemented");const f=Math.ceil(c*a/8),d=new Uint8Array(e,t,f);let C=0,A=0,E=0;const h=-1>>>32-a;for(let e=0;e<c;e++){for(;A<a;)C|=d[E]<<A,A+=8,E+=1;n[e]=C&h,C>>>=a,A-=a,A+a>32&&(C|=d[E-1]>>8-A)}return t+E}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function C(e,t){return{sizeLo:e.getUint32(t+d.sizeLo,o),sizeHi:e.getUint32(t+d.sizeHi,o),count:e.getUint32(t+d.count,o),colorMapCount:e.getUint16(t+d.colorMapCount,o),lookupMethod:e.getUint8(t+d.lookupMethod),compressionMethod:e.getUint8(t+d.compressionMethod)}}function A(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=l(e,t,n);if(n+=i.byteCount,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(a>1)throw new r.A("lepcc-decode-error","Unknown version");const u=C(t,n);if(n+=d.byteCount,u.sizeHi*2**32+u.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===u.lookupMethod||1===u.lookupMethod)&&0===u.compressionMethod){if(3*u.colorMapCount+u.count+n!==e.byteLength||u.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const t=new Uint8Array(e,n,3*u.colorMapCount),o=new Uint8Array(e,n+3*u.colorMapCount,u.count),i=new Uint8Array(3*u.count);for(let e=0;e<u.count;e++){const n=o[e];i[3*e]=t[3*n],i[3*e+1]=t[3*n+1],i[3*e+2]=t[3*n+2]}return i}if(0===u.lookupMethod&&0===u.compressionMethod){if(3*u.count+n!==e.byteLength||0!==u.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(e,n).slice()}if(u.lookupMethod<=2&&1===u.compressionMethod){if(n+3!==e.byteLength||1!==u.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=t.getUint8(n),i=t.getUint8(n+1),l=t.getUint8(n+2),a=new Uint8Array(3*u.count);for(let e=0;e<u.count;e++)a[3*e]=o,a[3*e+1]=i,a[3*e+2]=l;return a}throw new r.A("lepcc-decode-error","Bad method "+u.lookupMethod+","+u.compressionMethod)}const E={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function h(e,t){return{sizeLo:e.getUint32(t+E.sizeLo,o),sizeHi:e.getUint32(t+E.sizeHi,o),count:e.getUint32(t+E.count,o),scaleFactor:e.getUint16(t+E.scaleFactor,o),bitsPerPoint:e.getUint8(t+E.bitsPerPoint),reserved:e.getUint8(t+E.reserved)}}function g(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=l(e,t,n);if(n+=i.byteCount,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(a>1)throw new r.A("lepcc-decode-error","Unknown version");const u=h(t,n);if(n+=E.byteCount,u.sizeHi*2**32+u.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const s=new Uint16Array(u.count);if(8===u.bitsPerPoint){if(u.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint8Array(e,n,u.count);for(let e=0;e<u.count;e++)s[e]=t[e]*u.scaleFactor}else if(16===u.bitsPerPoint){if(2*u.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint16Array(e,n,u.count);for(let e=0;e<u.count;e++)s[e]=t[e]*u.scaleFactor}else{const t=[];if(f(e,n,t)!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let e=0;e<u.count;e++)s[e]=t[e]*u.scaleFactor}return s}}}]);