@arcgis/core 4.25.0-next.20221108 → 4.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{4726c869d80257488a38.js → 0690434cb3d7df4188aa.js} +1 -1
- package/assets/esri/core/workers/chunks/{bf097a329b91fcd7a300.js → 0a9813558c89a8824080.js} +1 -1
- package/assets/esri/core/workers/chunks/{33ea3449d32ac21adc91.js → 0d10010d8db4ebd20356.js} +1 -1
- package/assets/esri/core/workers/chunks/0ea80e26c937441c2bc5.js +1 -0
- package/assets/esri/core/workers/chunks/52b6711572ac7e058ce6.js +1 -0
- package/assets/esri/core/workers/chunks/{e031a2fee155aa168858.js → 61959a85261218b22376.js} +1 -1
- package/assets/esri/core/workers/chunks/{363700f66277a9176991.js → 7c255fe7a231d93a2048.js} +1 -1
- package/assets/esri/core/workers/chunks/8750c7463968f0c183ba.js +1 -0
- package/assets/esri/core/workers/chunks/a16641c79f56012b0d66.js +1 -0
- package/assets/esri/core/workers/chunks/{211ad79ff0b187c52449.js → afd87bc92895517b0877.js} +1 -1
- package/assets/esri/core/workers/chunks/b04984f048b75b2b4dd2.js +1 -0
- package/assets/esri/core/workers/chunks/bc878858cf5fb3237206.js +1 -0
- package/assets/esri/core/workers/chunks/{5de864843c0d3f4d291d.js → d4bfb6a3b8965be6f0d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{086dafcd10b310ba1a30.js → d9bba06ef5d22bd2d789.js} +1 -1
- package/assets/esri/core/workers/chunks/ee261fdc2a82d05e458e.js +1 -0
- package/assets/esri/core/workers/chunks/f29c6965e9e8f904be40.js +1 -0
- package/config.js +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +8 -2
- package/layers/WMSLayer.js +1 -1
- package/layers/WMTSLayer.js +1 -1
- package/package.json +1 -1
- package/portal/support/urlUtils.js +1 -1
- package/request.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMImageColorSubstitutionHelper.js +1 -1
- package/views/2d/layers/WMSLayerView2D.js +1 -1
- package/views/2d/layers/WMTSLayerView2D.js +1 -1
- package/widgets/FeatureForm/FormExpressionArcadeExecutor.js +1 -1
- package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
- package/widgets/FeatureForm/InputField.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/assets/esri/core/workers/chunks/6dfb2ddfd72009564a34.js +0 -1
- package/assets/esri/core/workers/chunks/83879da1ff7938a76574.js +0 -1
- package/assets/esri/core/workers/chunks/878bc2b24cc45418e819.js +0 -1
- package/assets/esri/core/workers/chunks/b5e6a868256c5aae6d5e.js +0 -1
- package/assets/esri/core/workers/chunks/c2a8813b618f98d0016d.js +0 -1
- package/assets/esri/core/workers/chunks/c868ffdc6bb8a49d82d7.js +0 -1
- package/assets/esri/core/workers/chunks/d573ec98401fbae26383.js +0 -1
- package/assets/esri/core/workers/chunks/f23d8ec18740eb2e5e8f.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4370,3172,9880,661],{22303:(e,t,r)=>{r.d(t,{Z:()=>m});var n,s,a=r(35270),i=r(22021),o=r(70586),l=r(75215);function u(e){return(0,i.uZ)((0,l.vU)(e),0,255)}function c(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}class h{constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}static blendColors(e,t,r,n=new h){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),h.fromArray(r,t)}return h.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return h.fromArray((0,a.B7)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new h){if(4!==e.length&&7!==e.length||"#"!==e[0])return null;const r=4===e.length?4:8,n=(1<<r)-1;let s=Number("0x"+e.substr(1));return isNaN(s)?null:(["b","g","r"].forEach((e=>{const a=s&n;s>>=r,t[e]=4===r?17*a:a})),t.a=1,t)}static fromArray(e,t=new h){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,a.St)(e)?(0,a.h$)(e):null;return r&&h.fromArray(r,t)||h.fromRgb(e,t)||h.fromHex(e,t)}static fromJSON(e){return e&&new h([e[0],e[1],e[2],e[3]/255])}static toUnitRGB(e){return(0,o.pC)(e)?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return(0,o.pC)(e)?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?h.fromString(e,this):Array.isArray(e)?h.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof h||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return`#${e.length<2?"0"+e:e}${t.length<2?"0"+t:t}${r.length<2?"0"+r:r}`}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=h.AlphaMode.ALWAYS){const t=u(this.r),r=u(this.g),n=u(this.b);return e===h.AlphaMode.ALWAYS||1!==this.a?[t,r,n,u(255*this.a)]:[t,r,n]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return(0,o.pC)(e)&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(c(this.r,0,255)),this.g=Math.round(c(this.g,0,255)),this.b=Math.round(c(this.b,0,255)),this.a=c(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}h.prototype.declaredClass="esri.Color",n=h||(h={}),(s=n.AlphaMode||(n.AlphaMode={}))[s.ALWAYS=0]="ALWAYS",s[s.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const m=h},99880:(e,t,r)=>{r.d(t,{V:()=>l});var n=r(68773),s=(r(3172),r(20102)),a=r(92604),i=r(17452);const o=a.Z.getLogger("esri.assets");function l(e){if(!n.Z.assetsPath)throw o.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new s.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(n.Z.assetsPath,e)}},52138:(e,t,r)=>{r.d(t,{a:()=>l,d:()=>f,e:()=>m,f:()=>d,g:()=>b,h:()=>S,i:()=>i,j:()=>w,k:()=>h,m:()=>u,s:()=>a,t:()=>o,v:()=>c,x:()=>v,y:()=>p});var n=r(65617),s=r(46851);function a(e,t,r,n,s,a,i,o,l,u,c,h,m,d,f,p,g){return e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=a,e[5]=i,e[6]=o,e[7]=l,e[8]=u,e[9]=c,e[10]=h,e[11]=m,e[12]=d,e[13]=f,e[14]=p,e[15]=g,e}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function o(e,t){if(e===t){const r=t[1],n=t[2],s=t[3],a=t[6],i=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=s,e[13]=i,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){const r=t[0],n=t[1],s=t[2],a=t[3],i=t[4],o=t[5],l=t[6],u=t[7],c=t[8],h=t[9],m=t[10],d=t[11],f=t[12],p=t[13],g=t[14],y=t[15],b=r*o-n*i,M=r*l-s*i,w=r*u-a*i,S=n*l-s*o,v=n*u-a*o,k=s*u-a*l,q=c*p-h*f,x=c*g-m*f,O=c*y-d*f,C=h*g-m*p,T=h*y-d*p,U=m*y-d*g;let P=b*U-M*T+w*C+S*O-v*x+k*q;return P?(P=1/P,e[0]=(o*U-l*T+u*C)*P,e[1]=(s*T-n*U-a*C)*P,e[2]=(p*k-g*v+y*S)*P,e[3]=(m*v-h*k-d*S)*P,e[4]=(l*O-i*U-u*x)*P,e[5]=(r*U-s*O+a*x)*P,e[6]=(g*w-f*k-y*M)*P,e[7]=(c*k-m*w+d*M)*P,e[8]=(i*T-o*O+u*q)*P,e[9]=(n*O-r*T-a*q)*P,e[10]=(f*v-p*w+y*b)*P,e[11]=(h*w-c*v-d*b)*P,e[12]=(o*x-i*C-l*q)*P,e[13]=(r*C-n*x+s*q)*P,e[14]=(p*M-f*S-g*b)*P,e[15]=(c*S-h*M+m*b)*P,e):null}function u(e,t,r){const n=t[0],s=t[1],a=t[2],i=t[3],o=t[4],l=t[5],u=t[6],c=t[7],h=t[8],m=t[9],d=t[10],f=t[11],p=t[12],g=t[13],y=t[14],b=t[15];let M=r[0],w=r[1],S=r[2],v=r[3];return e[0]=M*n+w*o+S*h+v*p,e[1]=M*s+w*l+S*m+v*g,e[2]=M*a+w*u+S*d+v*y,e[3]=M*i+w*c+S*f+v*b,M=r[4],w=r[5],S=r[6],v=r[7],e[4]=M*n+w*o+S*h+v*p,e[5]=M*s+w*l+S*m+v*g,e[6]=M*a+w*u+S*d+v*y,e[7]=M*i+w*c+S*f+v*b,M=r[8],w=r[9],S=r[10],v=r[11],e[8]=M*n+w*o+S*h+v*p,e[9]=M*s+w*l+S*m+v*g,e[10]=M*a+w*u+S*d+v*y,e[11]=M*i+w*c+S*f+v*b,M=r[12],w=r[13],S=r[14],v=r[15],e[12]=M*n+w*o+S*h+v*p,e[13]=M*s+w*l+S*m+v*g,e[14]=M*a+w*u+S*d+v*y,e[15]=M*i+w*c+S*f+v*b,e}function c(e,t,r){const n=r[0],s=r[1],a=r[2];if(t===e)e[12]=t[0]*n+t[4]*s+t[8]*a+t[12],e[13]=t[1]*n+t[5]*s+t[9]*a+t[13],e[14]=t[2]*n+t[6]*s+t[10]*a+t[14],e[15]=t[3]*n+t[7]*s+t[11]*a+t[15];else{const r=t[0],i=t[1],o=t[2],l=t[3],u=t[4],c=t[5],h=t[6],m=t[7],d=t[8],f=t[9],p=t[10],g=t[11];e[0]=r,e[1]=i,e[2]=o,e[3]=l,e[4]=u,e[5]=c,e[6]=h,e[7]=m,e[8]=d,e[9]=f,e[10]=p,e[11]=g,e[12]=r*n+u*s+d*a+t[12],e[13]=i*n+c*s+f*a+t[13],e[14]=o*n+h*s+p*a+t[14],e[15]=l*n+m*s+g*a+t[15]}return e}function h(e,t,r){const n=r[0],s=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*s,e[5]=t[5]*s,e[6]=t[6]*s,e[7]=t[7]*s,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function m(e,t,r,n){let a,i,o,l,u,c,h,m,d,f,p,g,y,b,M,w,S,v,k,q,x,O,C,T,U=n[0],P=n[1],Z=n[2],E=Math.sqrt(U*U+P*P+Z*Z);return E<(0,s.g)()?null:(E=1/E,U*=E,P*=E,Z*=E,a=Math.sin(r),i=Math.cos(r),o=1-i,l=t[0],u=t[1],c=t[2],h=t[3],m=t[4],d=t[5],f=t[6],p=t[7],g=t[8],y=t[9],b=t[10],M=t[11],w=U*U*o+i,S=P*U*o+Z*a,v=Z*U*o-P*a,k=U*P*o-Z*a,q=P*P*o+i,x=Z*P*o+U*a,O=U*Z*o+P*a,C=P*Z*o-U*a,T=Z*Z*o+i,e[0]=l*w+m*S+g*v,e[1]=u*w+d*S+y*v,e[2]=c*w+f*S+b*v,e[3]=h*w+p*S+M*v,e[4]=l*k+m*q+g*x,e[5]=u*k+d*q+y*x,e[6]=c*k+f*q+b*x,e[7]=h*k+p*q+M*x,e[8]=l*O+m*C+g*T,e[9]=u*O+d*C+y*T,e[10]=c*O+f*C+b*T,e[11]=h*O+p*C+M*T,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function d(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function f(e,t,r){if(0===t)return i(e);let n,a,o,l=r[0],u=r[1],c=r[2],h=Math.sqrt(l*l+u*u+c*c);return h<(0,s.g)()?null:(h=1/h,l*=h,u*=h,c*=h,n=Math.sin(t),a=Math.cos(t),o=1-a,e[0]=l*l*o+a,e[1]=u*l*o+c*n,e[2]=c*l*o-u*n,e[3]=0,e[4]=l*u*o-c*n,e[5]=u*u*o+a,e[6]=c*u*o+l*n,e[7]=0,e[8]=l*c*o+u*n,e[9]=u*c*o-l*n,e[10]=c*c*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function p(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function g(e,t,r){const n=t[0],s=t[1],a=t[2],i=t[3],o=n+n,l=s+s,u=a+a,c=n*o,h=n*l,m=n*u,d=s*l,f=s*u,p=a*u,g=i*o,y=i*l,b=i*u;return e[0]=1-(d+p),e[1]=h+b,e[2]=m-y,e[3]=0,e[4]=h-b,e[5]=1-(c+p),e[6]=f+g,e[7]=0,e[8]=m+y,e[9]=f-g,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const y=(0,n.c)();function b(e,t,r,n){const s=t[0],a=t[1],i=t[2],o=t[3],l=s+s,u=a+a,c=i+i,h=s*l,m=s*u,d=s*c,f=a*u,p=a*c,g=i*c,y=o*l,b=o*u,M=o*c,w=n[0],S=n[1],v=n[2];return e[0]=(1-(f+g))*w,e[1]=(m+M)*w,e[2]=(d-b)*w,e[3]=0,e[4]=(m-M)*S,e[5]=(1-(h+g))*S,e[6]=(p+y)*S,e[7]=0,e[8]=(d+b)*v,e[9]=(p-y)*v,e[10]=(1-(h+f))*v,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function M(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function S(e,t){if(e===t)return!0;const r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],l=e[5],u=e[6],c=e[7],h=e[8],m=e[9],d=e[10],f=e[11],p=e[12],g=e[13],y=e[14],b=e[15],M=t[0],w=t[1],S=t[2],v=t[3],k=t[4],q=t[5],x=t[6],O=t[7],C=t[8],T=t[9],U=t[10],P=t[11],Z=t[12],E=t[13],N=t[14],B=t[15],A=(0,s.g)();return Math.abs(r-M)<=A*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(n-w)<=A*Math.max(1,Math.abs(n),Math.abs(w))&&Math.abs(a-S)<=A*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(i-v)<=A*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(o-k)<=A*Math.max(1,Math.abs(o),Math.abs(k))&&Math.abs(l-q)<=A*Math.max(1,Math.abs(l),Math.abs(q))&&Math.abs(u-x)<=A*Math.max(1,Math.abs(u),Math.abs(x))&&Math.abs(c-O)<=A*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(h-C)<=A*Math.max(1,Math.abs(h),Math.abs(C))&&Math.abs(m-T)<=A*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(d-U)<=A*Math.max(1,Math.abs(d),Math.abs(U))&&Math.abs(f-P)<=A*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(p-Z)<=A*Math.max(1,Math.abs(p),Math.abs(Z))&&Math.abs(g-E)<=A*Math.max(1,Math.abs(g),Math.abs(E))&&Math.abs(y-N)<=A*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(b-B)<=A*Math.max(1,Math.abs(b),Math.abs(B))}function v(e){const t=(0,s.g)(),r=e[0],n=e[1],a=e[2],i=e[4],o=e[5],l=e[6],u=e[8],c=e[9],h=e[10];return Math.abs(1-(r*r+i*i+u*u))<=t&&Math.abs(1-(n*n+o*o+c*c))<=t&&Math.abs(1-(a*a+l*l+h*h))<=t}const k=u,q=M;Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},set:a,identity:i,transpose:o,invert:l,adjoint:function(e,t){const r=t[0],n=t[1],s=t[2],a=t[3],i=t[4],o=t[5],l=t[6],u=t[7],c=t[8],h=t[9],m=t[10],d=t[11],f=t[12],p=t[13],g=t[14],y=t[15];return e[0]=o*(m*y-d*g)-h*(l*y-u*g)+p*(l*d-u*m),e[1]=-(n*(m*y-d*g)-h*(s*y-a*g)+p*(s*d-a*m)),e[2]=n*(l*y-u*g)-o*(s*y-a*g)+p*(s*u-a*l),e[3]=-(n*(l*d-u*m)-o*(s*d-a*m)+h*(s*u-a*l)),e[4]=-(i*(m*y-d*g)-c*(l*y-u*g)+f*(l*d-u*m)),e[5]=r*(m*y-d*g)-c*(s*y-a*g)+f*(s*d-a*m),e[6]=-(r*(l*y-u*g)-i*(s*y-a*g)+f*(s*u-a*l)),e[7]=r*(l*d-u*m)-i*(s*d-a*m)+c*(s*u-a*l),e[8]=i*(h*y-d*p)-c*(o*y-u*p)+f*(o*d-u*h),e[9]=-(r*(h*y-d*p)-c*(n*y-a*p)+f*(n*d-a*h)),e[10]=r*(o*y-u*p)-i*(n*y-a*p)+f*(n*u-a*o),e[11]=-(r*(o*d-u*h)-i*(n*d-a*h)+c*(n*u-a*o)),e[12]=-(i*(h*g-m*p)-c*(o*g-l*p)+f*(o*m-l*h)),e[13]=r*(h*g-m*p)-c*(n*g-s*p)+f*(n*m-s*h),e[14]=-(r*(o*g-l*p)-i*(n*g-s*p)+f*(n*l-s*o)),e[15]=r*(o*m-l*h)-i*(n*m-s*h)+c*(n*l-s*o),e},determinant:function(e){const t=e[0],r=e[1],n=e[2],s=e[3],a=e[4],i=e[5],o=e[6],l=e[7],u=e[8],c=e[9],h=e[10],m=e[11],d=e[12],f=e[13],p=e[14],g=e[15];return(t*i-r*a)*(h*g-m*p)-(t*o-n*a)*(c*g-m*f)+(t*l-s*a)*(c*p-h*f)+(r*o-n*i)*(u*g-m*d)-(r*l-s*i)*(u*p-h*d)+(n*l-s*o)*(u*f-c*d)},multiply:u,translate:c,scale:h,rotate:m,rotateX:function(e,t,r){const n=Math.sin(r),s=Math.cos(r),a=t[4],i=t[5],o=t[6],l=t[7],u=t[8],c=t[9],h=t[10],m=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*s+u*n,e[5]=i*s+c*n,e[6]=o*s+h*n,e[7]=l*s+m*n,e[8]=u*s-a*n,e[9]=c*s-i*n,e[10]=h*s-o*n,e[11]=m*s-l*n,e},rotateY:function(e,t,r){const n=Math.sin(r),s=Math.cos(r),a=t[0],i=t[1],o=t[2],l=t[3],u=t[8],c=t[9],h=t[10],m=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*s-u*n,e[1]=i*s-c*n,e[2]=o*s-h*n,e[3]=l*s-m*n,e[8]=a*n+u*s,e[9]=i*n+c*s,e[10]=o*n+h*s,e[11]=l*n+m*s,e},rotateZ:function(e,t,r){const n=Math.sin(r),s=Math.cos(r),a=t[0],i=t[1],o=t[2],l=t[3],u=t[4],c=t[5],h=t[6],m=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*s+u*n,e[1]=i*s+c*n,e[2]=o*s+h*n,e[3]=l*s+m*n,e[4]=u*s-a*n,e[5]=c*s-i*n,e[6]=h*s-o*n,e[7]=m*s-l*n,e},fromTranslation:d,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotation:f,fromXRotation:p,fromYRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotationTranslation:g,fromQuat2:function(e,t){const r=y,n=-t[0],s=-t[1],a=-t[2],i=t[3],o=t[4],l=t[5],u=t[6],c=t[7],h=n*n+s*s+a*a+i*i;return h>0?(r[0]=2*(o*i+c*n+l*a-u*s)/h,r[1]=2*(l*i+c*s+u*n-o*a)/h,r[2]=2*(u*i+c*a+o*s-l*n)/h):(r[0]=2*(o*i+c*n+l*a-u*s),r[1]=2*(l*i+c*s+u*n-o*a),r[2]=2*(u*i+c*a+o*s-l*n)),g(e,t,r),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},getScaling:function(e,t){const r=t[0],n=t[1],s=t[2],a=t[4],i=t[5],o=t[6],l=t[8],u=t[9],c=t[10];return e[0]=Math.sqrt(r*r+n*n+s*s),e[1]=Math.sqrt(a*a+i*i+o*o),e[2]=Math.sqrt(l*l+u*u+c*c),e},getRotation:function(e,t){const r=t[0]+t[5]+t[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e},fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(e,t,r,n,s){const a=t[0],i=t[1],o=t[2],l=t[3],u=a+a,c=i+i,h=o+o,m=a*u,d=a*c,f=a*h,p=i*c,g=i*h,y=o*h,b=l*u,M=l*c,w=l*h,S=n[0],v=n[1],k=n[2],q=s[0],x=s[1],O=s[2],C=(1-(p+y))*S,T=(d+w)*S,U=(f-M)*S,P=(d-w)*v,Z=(1-(m+y))*v,E=(g+b)*v,N=(f+M)*k,B=(g-b)*k,A=(1-(m+p))*k;return e[0]=C,e[1]=T,e[2]=U,e[3]=0,e[4]=P,e[5]=Z,e[6]=E,e[7]=0,e[8]=N,e[9]=B,e[10]=A,e[11]=0,e[12]=r[0]+q-(C*q+P*x+N*O),e[13]=r[1]+x-(T*q+Z*x+B*O),e[14]=r[2]+O-(U*q+E*x+A*O),e[15]=1,e},fromQuat:function(e,t){const r=t[0],n=t[1],s=t[2],a=t[3],i=r+r,o=n+n,l=s+s,u=r*i,c=n*i,h=n*o,m=s*i,d=s*o,f=s*l,p=a*i,g=a*o,y=a*l;return e[0]=1-h-f,e[1]=c+y,e[2]=m-g,e[3]=0,e[4]=c-y,e[5]=1-u-f,e[6]=d+p,e[7]=0,e[8]=m+g,e[9]=d-p,e[10]=1-u-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,r,n,s,a,i){const o=1/(r-t),l=1/(s-n),u=1/(a-i);return e[0]=2*a*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*a*l,e[6]=0,e[7]=0,e[8]=(r+t)*o,e[9]=(s+n)*l,e[10]=(i+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*a*2*u,e[15]=0,e},perspective:function(e,t,r,n,s){const a=1/Math.tan(t/2);let i;return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=s&&s!==1/0?(i=1/(n-s),e[10]=(s+n)*i,e[14]=2*s*n*i):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){const s=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),i=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(i+o),u=2/(s+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(i-o)*l*.5,e[9]=(s-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},ortho:function(e,t,r,n,s,a,i){const o=1/(t-r),l=1/(n-s),u=1/(a-i);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*o,e[13]=(s+n)*l,e[14]=(i+a)*u,e[15]=1,e},lookAt:function(e,t,r,n){let a,o,l,u,c,h,m,d,f,p;const g=t[0],y=t[1],b=t[2],M=n[0],w=n[1],S=n[2],v=r[0],k=r[1],q=r[2],x=(0,s.g)();return Math.abs(g-v)<x&&Math.abs(y-k)<x&&Math.abs(b-q)<x?i(e):(m=g-v,d=y-k,f=b-q,p=1/Math.sqrt(m*m+d*d+f*f),m*=p,d*=p,f*=p,a=w*f-S*d,o=S*m-M*f,l=M*d-w*m,p=Math.sqrt(a*a+o*o+l*l),p?(p=1/p,a*=p,o*=p,l*=p):(a=0,o=0,l=0),u=d*l-f*o,c=f*a-m*l,h=m*o-d*a,p=Math.sqrt(u*u+c*c+h*h),p?(p=1/p,u*=p,c*=p,h*=p):(u=0,c=0,h=0),e[0]=a,e[1]=u,e[2]=m,e[3]=0,e[4]=o,e[5]=c,e[6]=d,e[7]=0,e[8]=l,e[9]=h,e[10]=f,e[11]=0,e[12]=-(a*g+o*y+l*b),e[13]=-(u*g+c*y+h*b),e[14]=-(m*g+d*y+f*b),e[15]=1,e)},targetTo:function(e,t,r,n){const s=t[0],a=t[1],i=t[2],o=n[0],l=n[1],u=n[2];let c=s-r[0],h=a-r[1],m=i-r[2],d=c*c+h*h+m*m;d>0&&(d=1/Math.sqrt(d),c*=d,h*=d,m*=d);let f=l*m-u*h,p=u*c-o*m,g=o*h-l*c;return d=f*f+p*p+g*g,d>0&&(d=1/Math.sqrt(d),f*=d,p*=d,g*=d),e[0]=f,e[1]=p,e[2]=g,e[3]=0,e[4]=h*g-m*p,e[5]=m*f-c*g,e[6]=c*p-h*f,e[7]=0,e[8]=c,e[9]=h,e[10]=m,e[11]=0,e[12]=s,e[13]=a,e[14]=i,e[15]=1,e},str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},subtract:M,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},exactEquals:w,equals:S,isOrthoNormal:v,mul:k,sub:q},Symbol.toStringTag,{value:"Module"}))},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>s,VL:()=>i,h$:()=>a,rW:()=>u});const n={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 s(e){return n[e]||n[e.toLowerCase()]}function a(e){return n[e]??n[e.toLowerCase()]}function i(e){return[...a(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const s=(e%360+360)%360/360,a=r<=.5?r*(t+1):r+t-r*t,i=2*r-a;return[Math.round(255*o(i,a,s+1/3)),Math.round(255*o(i,a,s)),Math.round(255*o(i,a,s-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,s=t?1:17,a=t?9===e.length:5===e.length;let i=Number("0x"+e.substr(1));if(isNaN(i))return null;const o=[0,0,0,1];let l;return a&&(l=i&n,i>>=r,o[3]=s*l/255),l=i&n,i>>=r,o[2]=s*l,l=i&n,i>>=r,o[1]=s*l,l=i&n,i>>=r,o[0]=s*l,o}},36030:(e,t,r)=>{r.d(t,{J:()=>a});var n=r(35454),s=r(5600);function a(e,t={}){const r=e instanceof n.X?e:new n.X(e,t),a={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(a.readOnly=!!t.readOnly),void 0!==t?.default&&(a.json.default=t.default),void 0!==t?.name&&(a.json.name=t.name),(0,s.Cb)(a)}},10661:(e,t,r)=>{r.d(t,{s:()=>s});var n=r(39020);class s{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new n.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const r=e[t];r.onInvalidated(),r.onCommitted()}}}},67900:(e,t,r)=>{r.d(t,{$C:()=>q,En:()=>v,Jo:()=>_,_R:()=>x,c9:()=>C,cM:()=>O,gV:()=>A,hd:()=>u,qE:()=>P,ty:()=>k}),r(80442);var n=r(35454),s=r(70586),a=r(24678),i=r(68441),o=r(8744),l=r(58116);const u=39.37,c=i.sv.radius*Math.PI/200,h=/UNIT\[([^\]]+)\]\]$/i,m=l.Z,d=/UNIT\[([^\]]+)\]/i,f=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),p=(0,n.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),g=e=>e*e,y=e=>e*e*e,b={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:g(.001)},"square-centimeters":{inBaseUnits:g(.01)},"square-decimeters":{inBaseUnits:g(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:g(1e3)},"square-inches":{inBaseUnits:g(.0254)},"square-feet":{inBaseUnits:g(.3048)},"square-yards":{inBaseUnits:g(.9144)},"square-miles":{inBaseUnits:g(1609.344)},"square-us-feet":{inBaseUnits:g(1200/3937)},acres:{inBaseUnits:.0015625*g(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*y(.001)},"cubic-centimeters":{inBaseUnits:1e3*y(.01)},"cubic-decimeters":{inBaseUnits:1e3*y(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*y(1e3)},"cubic-inches":{inBaseUnits:1e3*y(.0254)},"cubic-feet":{inBaseUnits:1e3*y(.3048)},"cubic-yards":{inBaseUnits:1e3*y(.9144)},"cubic-miles":{inBaseUnits:1e3*y(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},M=(()=>{const e={};for(const t in b)for(const r in b[t].units)e[r]=t;return e})();function w(e){const t=M[e];if(!t)throw new Error("unknown type");return t}function S(e,t=null){return t=t||w(e),b[t].baseUnit===e}function v(e,t,r){if(t===r)return e;const n=w(t);if(n!==w(r))throw new Error("incompatible units");const s=S(t,n)?e:function(e,t,r){return e*b[r].units[t].inBaseUnits}(e,t,n);return S(r,n)?s:function(e,t,r){return e/b[r].units[t].inBaseUnits}(s,r,n)}function k(e,t,r){return v(e,t,"meters")/(r*Math.PI/180)}function q(e){return p.fromJSON(e.toLowerCase())||null}function x(e){if((0,s.pC)(e)&&!(0,o.N$)(e))return 1;const t=C(e);return t>1e5?1:t}function O(e){return C(e)>=(0,a.Iu)(e).metersPerDegree?"meters":P(e)}function C(e,t=i.sv.metersPerDegree){return(0,s.Pt)(function(e,t=!1){const r=(0,s.pC)(e)?e.wkid:null,n=(0,s.pC)(e)?e.wkt:null;let a=null;if(r){if((0,o.o$)(r))return i.yr.metersPerDegree;if((0,o.ME)(r))return i.Z1.metersPerDegree;a=m.values[m[r]],!a&&t&&f.has(r)&&(a=c)}else n&&(E(n)?a=T(h.exec(n),a):Z(n)&&(a=T(d.exec(n),a)));return a}(e,!0),t)}function T(e,t){return e&&e[1]?U(e[1]):t}function U(e){return parseFloat(e.split(",")[1])}function P(e){const t=(0,s.pC)(e)?e.wkid:null,r=(0,s.pC)(e)?e.wkt:null;let n=null;if(t)n=m.units[m[t]];else if(r){const e=E(r)?h:Z(r)?d:null;if(e){const t=e.exec(r);t&&t[1]&&(n=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||!m.units.includes(r)){const t=U(e);r=null;const n=m.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=m.units[e];break}}return r}(t[1]))}}return(0,s.pC)(n)?q(n):null}function Z(e){return/^GEOCCS/i.test(e)}function E(e){return/^PROJCS/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const N={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},B={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},A=(0,n.w)()(N),_=(0,n.w)()(B);(0,n.w)()({...N,...B})},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),s=r(6570),a=r(9361),i=r(65091),o=r(94139),l=r(38913),u=r(58901);r(82971),r(86973),r(33955);const c={base:a.Z,key:"type",typeMap:{extent:s.Z,multipoint:i.Z,point:o.Z,polyline:u.Z,polygon:l.Z}};(0,n.N7)(c)},24678:(e,t,r)=>{r.d(t,{GG:()=>l,HQ:()=>u,Iu:()=>d,VY:()=>c,e8:()=>f,rS:()=>m,wY:()=>h});var n=r(70586),s=r(82971),a=r(68441),i=r(8744);function o(e){return new s.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const l=o(a.sv),u=o(a.yr),c=o(a.Z1),h=new s.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${a.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function m(e){return e&&((0,i.BZ)(e)||e===u)?u:e&&((0,i.V2)(e)||e===c)?c:l}function d(e){return(0,n.pC)(e)&&((0,i.BZ)(e)||e===u)?a.yr:(0,n.pC)(e)&&((0,i.V2)(e)||e===c)?a.Z1:a.sv}function f(e){return(0,i.o$)(e)?a.yr:(0,i.ME)(e)?a.Z1:a.sv}},24470:(e,t,r)=>{r.d(t,{Gv:()=>b,HH:()=>u,SO:()=>h,Ue:()=>a,al:()=>o,cS:()=>p,fS:()=>y,jE:()=>m,jn:()=>c,kK:()=>d,oJ:()=>l,r3:()=>f}),r(80442),r(22021);var n=r(70586),s=r(6570);function a(e=M){return[e[0],e[1],e[2],e[3]]}function i(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}function o(e,t,r,n,s=a()){return s[0]=e,s[1]=t,s[2]=r,s[3]=n,s}function l(e,t=a()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function u(e,t){return new s.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function c(e,t,r){if((0,n.Wi)(t))i(r,e);else if("length"in t)g(t)?(r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.max(e[2],t[2]),r[3]=Math.max(e[3],t[3])):2!==t.length&&3!==t.length||(r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.max(e[2],t[0]),r[3]=Math.max(e[3],t[1]));else switch(t.type){case"extent":r[0]=Math.min(e[0],t.xmin),r[1]=Math.min(e[1],t.ymin),r[2]=Math.max(e[2],t.xmax),r[3]=Math.max(e[3],t.ymax);break;case"point":r[0]=Math.min(e[0],t.x),r[1]=Math.min(e[1],t.y),r[2]=Math.max(e[2],t.x),r[3]=Math.max(e[3],t.y)}}function h(e){return function(e){return(0,n.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function m(e,t,r){return t>=e[0]&&r>=e[1]&&t<=e[2]&&r<=e[3]}function d(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function f(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function p(e){return e?i(e,b):a(b)}function g(e){return null!=e&&4===e.length}function y(e,t){return g(e)&&g(t)?e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]:e===t}const b=[1/0,1/0,-1/0,-1/0],M=[0,0,0,0]},33955:(e,t,r)=>{r.d(t,{Ji:()=>g,YX:()=>c,aW:()=>h,im:()=>p,l9:()=>d,oU:()=>f,q9:()=>b,wp:()=>m});var n=r(70586),s=r(6570),a=r(9361),i=r(65091),o=r(94139),l=r(38913),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function h(e){return void 0!==e.points}function m(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths}function f(e){return void 0!==e.rings}function p(e){return(0,n.Wi)(e)?null:e instanceof a.Z?e:m(e)?o.Z.fromJSON(e):d(e)?u.Z.fromJSON(e):f(e)?l.Z.fromJSON(e):h(e)?i.Z.fromJSON(e):c(e)?s.Z.fromJSON(e):null}function g(e){return e?m(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":h(e)?"esriGeometryMultipoint":null:null}const y={esriGeometryPoint:o.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:s.Z,esriGeometryMultipoint:i.Z};function b(e){return e&&y[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>s,P$:()=>a});var n=r(35454);const s=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),a=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},61576:(e,t,r)=>{r.r(t),r.d(t,{default:()=>g}),r(66577);var n=r(70586),s=r(18571),a=r(5847),i=r(75993),o=r(55914),l=r(55444),u=r(73506),c=r(15612),h=r(80676),m=r(87521),d=r(72758),f=r(23808),p=r(6570);class g{convertVectorFieldData(e){const t=a.Z.fromJSON(e.pixelBlock),r=(0,h.KC)(t,e.type);return Promise.resolve((0,n.pC)(r)&&r.toJSON())}async decode(e){const t=await(0,i.J)(e.data,e.options);return t&&t.toJSON()}symbolize(e){e.pixelBlock=a.Z.fromJSON(e.pixelBlock),e.extent=e.extent?p.Z.fromJSON(e.extent):null;const t=this.symbolizer.symbolize(e);return Promise.resolve((0,n.pC)(t)&&t.toJSON())}async updateSymbolizer(e){this.symbolizer=d.Z.fromJSON(e.symbolizerJSON),e.histograms&&"rasterStretch"===this.symbolizer?.rendererJSON.type&&(this.symbolizer.rendererJSON.histograms=e.histograms)}async updateRasterFunction(e){this.rasterFunction=(0,l.Ue)(e.rasterFunctionJSON)}async process(e){const t=this.rasterFunction.process({extent:p.Z.fromJSON(e.extent),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>(0,n.pC)(e)?a.Z.fromJSON(e):null)),primaryRasterIds:e.primaryRasterIds});return(0,n.pC)(t)?t.toJSON():null}stretch(e){const t=this.symbolizer.simpleStretch(a.Z.fromJSON(e.srcPixelBlock),e.stretchParams);return Promise.resolve((0,n.pC)(t)&&t.toJSON())}estimateStatisticsHistograms(e){const t=(0,c.Hv)(a.Z.fromJSON(e.srcPixelBlock));return Promise.resolve(t)}split(e){const t=(0,o.Vl)(a.Z.fromJSON(e.srcPixelBlock),e.tileSize,e.maximumPyramidLevel);return t&&t.forEach(((e,r)=>{t.set(r,e?.toJSON())})),Promise.resolve(t)}async mosaicAndTransform(e){const t=e.srcPixelBlocks.map((e=>e?new a.Z(e):null)),r=(0,o.us)(t,e.srcMosaicSize,{blockWidths:e.blockWidths,alignmentInfo:e.alignmentInfo,clipOffset:e.clipOffset,clipSize:e.clipSize});let s,i=r;return e.coefs&&(i=(0,o.Uk)(r,e.destDimension,e.coefs,e.sampleSpacing,e.interpolation)),e.projectDirections&&e.gcsGrid&&(s=(0,o.Qh)(e.destDimension,e.gcsGrid),i=(0,n.Wg)((0,h.xQ)(i,e.isUV?"vector-uv":"vector-magdir",s))),{pixelBlock:i?.toJSON(),localNorthDirections:s}}async createFlowMesh(e,t){const r={data:new Float32Array(e.flowData.buffer),mask:new Uint8Array(e.flowData.maskBuffer),width:e.flowData.width,height:e.flowData.height},{vertexData:n,indexData:s}=await(0,f.GE)(e.meshType,e.simulationSettings,r,t.signal);return{result:{vertexBuffer:n.buffer,indexBuffer:s.buffer},transferList:[n.buffer,s.buffer]}}async getProjectionOffsetGrid(e){const t=p.Z.fromJSON(e.projectedExtent),r=p.Z.fromJSON(e.srcBufferExtent);let n=null;e.datumTransformationSteps&&(n=new s.Z({steps:e.datumTransformationSteps})),(e.includeGCSGrid||(0,u.Mk)(t.spatialReference,r.spatialReference,n))&&await(0,u.zD)();const a=e.rasterTransform?(0,m.c)(e.rasterTransform):null;return(0,u.Qp)({...e,projectedExtent:t,srcBufferExtent:r,datumTransformation:n,rasterTransform:a})}}},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var n=r(68773),s=r(40330),a=r(20102),i=r(80442),o=r(22974),l=r(70586),u=r(95330),c=r(17452),h=r(71058),m=r(85958);async function d(e,t){const o=(0,c.HK)(e),y=(0,c.jc)(e);y||o||(e=(0,c.Fv)(e));const b={url:e,requestOptions:{...(0,l.Wg)(t)}};let M=(0,c.oh)(e);if(M){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=k("request:interceptor",e,t)}if((n instanceof Error||n instanceof a.Z)&&(r=k("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(M,b);if(null!=e)return{data:e,getHeader:w,requestOptions:b.requestOptions,url:b.url};M.after||M.error||(M=null)}if(e=b.url,"image"===(t=b.requestOptions).responseType){if((0,i.Z)("host-webworker")||(0,i.Z)("host-node"))throw k("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),b)}else if(o)throw k("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),b);if("head"===t.method){if(t.body)throw k("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),b);if(o||y)throw k("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),b)}if(await async function(){(0,i.Z)("host-webworker")?f||(f=await r.e(9884).then(r.bind(r,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),f)return f.execute(e,t);const S=new AbortController;(0,u.fu)(t,(()=>S.abort()));const v={controller:S,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:M,params:b,redoRequest:!1,useIdentity:p.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},C=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,a=e.controller.signal,i=r.body;let o=null,l=null;if(g&&"HTMLFormElement"in globalThis&&(i instanceof FormData?o=i:i instanceof HTMLFormElement&&(o=new FormData(i))),"string"==typeof i&&(l=i),e.fetchOptions={cache:r.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:p.priority,redirect:"follow",signal:a},(o||l)&&(e.fetchOptions.body=o||l),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||o?.get("token")),!e.hasToken&&n.Z.apiKey&&(0,h.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!x(t)&&!(0,u.Hc)(a)){let n;"immediate"===r.authMode?(await q(),n=await s.id.getCredential(t,{signal:a}),e.credential=n):"no-prompt"===r.authMode?(await q(),n=await s.id.getCredential(t,{prompt:!1,signal:a}).catch((()=>{})),e.credential=n):s.id&&(n=s.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[t,r]=await O(e)}while(!await T(e,t,r))}catch(r){const n=k("request:server",r,e.params,t);throw n.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(n),n}const a=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,c.kl)(a)){const e=(0,c.P$)(a,!0);e&&p.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,m.Hu)(r.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&s.id){const e=s.id.findServerInfo(i.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=s.id.findCredential(t,i.userId);e&&-1===s.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getHeader:t?e=>t?.headers.get(e):w,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(v);return M?.after?.(C),C}let f;const p=n.Z.request,g="FormData"in globalThis,y=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],M=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],w=()=>null,S=Symbol();function v(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,c.kl)(t)}function k(e,t,r,n){let s="Error";const i={url:r.url,requestOptions:r.requestOptions,getHeader:w,ssl:!1};if(t instanceof a.Z)return t.details?(t.details=(0,o.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=i,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n&&n.status,a=t.message;a&&(s=a),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=S in t?t[S]:t}return(0,u.D_)(t)?(0,u.zE)():new a.Z(e,s,i)}async function q(){s.id||await Promise.all([r.e(6261),r.e(1400),r.e(1761)]).then(r.bind(r,55142))}function x(e){return M.some((t=>t.test(e)))}async function O(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions??{},a=(0,c.jc)(t)||(0,c.HK)(t),o=r.responseType||"json",l=a?0:null!=r.timeout?r.timeout:p.timeout;let h=!1;if(!a){e.useSSL&&(t=(0,c.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let a={...r.query};e.credentialToken&&(a.token=e.credentialToken);let o=(0,c.B7)(a);(0,i.Z)("esri-url-encodes-apostrophe")&&(o=o.replace(/'/g,"%27"));const l=t.length+1+o.length;let u;h="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>p.maxUrlLength;const d=r.useProxy||!!(0,c.ed)(t);if(d){const e=(0,c.b7)(t);u=e.path,!h&&u.length+1+l>p.maxUrlLength&&(h=!0),e.query&&(a={...e.query,...a})}if("HEAD"===n.method&&(h||d)){if(h){if(l>p.maxUrlLength)throw k("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw k("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw k("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(h?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,c.fl)(t,a):(n.body=(0,c.B7)(a),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,a),d&&(e.useProxy=!0,t=`${u}?${t}`),a.token&&g&&n.body instanceof FormData&&!/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(t)&&n.body.set("token",a.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(s.id){const r=s.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include",(0,m.jH)(t)&&await(0,m.jz)(h?(0,c.fl)(t,a):t))}let f,y,b=0,M=!1;l>0&&(b=setTimeout((()=>{M=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)y=n,y.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||h||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!a&&!e.useProxy&&p.proxyUrl&&!v(t)){if(f=await d._abortableFetch(t,n),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)y=f;else if("HEAD"!==n.method)if(f.ok){switch(o){case"array-buffer":y=await f.arrayBuffer();break;case"blob":case"image":y=await f.blob();break;default:y=await f.text()}if(b&&(clearTimeout(b),b=0),"json"===o||"xml"===o||"document"===o)if(y)switch(o){case"json":y=JSON.parse(y);break;case"xml":y=C(y,"application/xml");break;case"document":y=C(y,"text/html")}else y=null;if(y){if("array-buffer"===o||"blob"===o){const e=f.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&y["blob"===o?"size":"byteLength"]<=750)try{const e=await new Response(y).json();e.error&&(y=e)}catch{}}"image"===o&&y instanceof Blob&&(y=await U(URL.createObjectURL(y),e,!0))}}else y=await f.text()}else y=await U(t,e)}catch(n){if("AbortError"===n.name){if(M)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!f&&n instanceof TypeError&&p.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||v(t))throw n;e.redoRequest=!0,(0,c.tD)({proxyUrl:p.proxyUrl,urlPrefix:(0,c.P$)(t)??""})}finally{b&&clearTimeout(b)}return[f,y]}function C(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function T(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let a,i;if(!t.ok)throw a=new Error(`Unable to load ${t.url} status: ${t.status}`),a[S]=r,a;r&&(r.error?a=r.error:"error"===r.status&&Array.isArray(r.messages)&&(a={...r},a[S]=r,a.details=r.messages));let o,l=null;a&&(i=Number(a.code),l=a.hasOwnProperty("subcode")?Number(a.subcode):null,o=a.messageCode,o=o&&o.toUpperCase());const u=n.authMode;if(403===i&&(4===l||a.message&&a.message.toLowerCase().includes("ssl")&&!a.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===i)&&void 0!==i&&y.includes(i)&&!x(e.params.url)&&(403!==i||o&&!b.includes(o)&&(null==l||2===l&&e.credentialToken))){await q();try{const t=await s.id.getCredential(e.params.url,{error:k("request:server",a,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;a=t}}if(a)throw a;return!0}function U(e,t,r=!1){const n=t.controller.signal,s=new Image;return t.withCredentials?s.crossOrigin="use-credentials":s.crossOrigin="anonymous",s.alt="",s.fetchPriority=p.priority,s.src=e,(0,m.fY)(s,e,r,n)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},98046:(e,t,r)=>{r.d(t,{Z:()=>d});var n,s=r(43697),a=r(22303),i=r(22974),o=r(5600),l=r(75215),u=r(36030),c=r(52011),h=r(899);let m=n=class extends h.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new n({fromColor:(0,i.d9)(this.fromColor),toColor:(0,i.d9)(this.toColor),algorithm:this.algorithm})}};(0,s._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],m.prototype,"algorithm",void 0),(0,s._)([(0,o.Cb)({type:a.Z,json:{type:[l.z8],write:!0}})],m.prototype,"fromColor",void 0),(0,s._)([(0,o.Cb)({type:a.Z,json:{type:[l.z8],write:!0}})],m.prototype,"toColor",void 0),(0,s._)([(0,o.Cb)({type:["algorithmic"]})],m.prototype,"type",void 0),m=n=(0,s._)([(0,c.j)("esri.rest.support.AlgorithmicColorRamp")],m);const d=m},899:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(43697),s=r(96674),a=r(5600),i=(r(67676),r(75215),r(52011));let o=class extends s.wq{constructor(e){super(e),this.type=null}};(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,n._)([(0,i.j)("esri.rest.support.ColorRamp")],o);const l=o},1515:(e,t,r)=>{r.d(t,{Z:()=>h});var n,s=r(43697),a=r(22974),i=r(5600),o=(r(75215),r(52011)),l=r(98046),u=r(899);let c=n=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new n({colorRamps:(0,a.d9)(this.colorRamps)})}};(0,s._)([(0,i.Cb)({type:[l.Z],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,s._)([(0,i.Cb)({type:["multipart"]})],c.prototype,"type",void 0),c=n=(0,s._)([(0,o.j)("esri.rest.support.MultipartColorRamp")],c);const h=c},94593:(e,t,r)=>{r.d(t,{V:()=>i,i:()=>o});var n=r(98046),s=r(899),a=r(1515);const i={key:"type",base:s.Z,typeMap:{algorithmic:n.Z,multipart:a.Z}};function o(e){return e&&e.type?"algorithmic"===e.type?n.Z.fromJSON(e):"multipart"===e.type?a.Z.fromJSON(e):null:null}},71058:(e,t,r)=>{r.d(t,{r:()=>a});var n=r(17452);const s=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function a(e){const t=(0,n.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!s.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{Hu:()=>c,fY:()=>l,jH:()=>h,jz:()=>m});var n=r(68773),s=r(80442),a=r(70586),i=r(95330),o=r(17452);function l(e,t,r=!1,n){return new Promise(((o,l)=>{if((0,i.Hc)(n))return void l(u());let c=()=>{d(),l(new Error(`Unable to load ${t}`))},h=()=>{const t=e;d(),o(t)},m=()=>{if(!e)return;const t=e;d(),t.src="",l(u())};const d=()=>{(0,s.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",h)),c=null,h=null,e=null,(0,a.pC)(n)&&n.removeEventListener("abort",m),m=null,r&&URL.revokeObjectURL(t)};(0,a.pC)(n)&&n.addEventListener("abort",m),(0,s.Z)("esri-image-decode")?e.decode().then(h,c):(e.addEventListener("error",c),e.addEventListener("load",h))}))}function u(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function c(e){n.Z.request.crossOriginNoCorsDomains||(n.Z.request.crossOriginNoCorsDomains={});const t=n.Z.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,o.P$)(r)??""]=0:(t[(0,o.P$)("http://"+r)??""]=0,t[(0,o.P$)("https://"+r)??""]=0)}function h(e){const t=n.Z.request.crossOriginNoCorsDomains;if(t){let r=(0,o.P$)(e);if(r)return r=r.toLowerCase(),!(0,o.D6)(r,(0,o.TI)())&&t[r]<Date.now()-36e5}return!1}async function m(e){const t=n.Z.request.crossOriginNoCorsDomains,r=(0,o.P$)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const s=(0,o.mN)(e);e=s.path,"json"===s.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8008,5732],{92835:(t,e,r)=>{r.d(e,{Z:()=>f});var s,i=r(43697),n=r(96674),o=r(70586),a=r(35463),l=r(5600),u=(r(67676),r(75215),r(71715)),c=r(52011),h=r(30556);let p=s=class extends n.wq{constructor(t){super(t),this.end=null,this.start=null}static get allTime(){return d}static get empty(){return m}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?t.getTime():null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?t.getTime():null}clone(){return new s({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=(0,o.pC)(this.start)?this.start.getTime():this.start,r=(0,o.pC)(this.end)?this.end.getTime():this.end,s=(0,o.pC)(t.start)?t.start.getTime():t.start,i=(0,o.pC)(t.end)?t.end.getTime():t.end;return e===s&&r===i}expandTo(t){if(this.isEmpty||this.isAllTime)return this.clone();const e=(0,o.yw)(this.start,(e=>(0,a.JE)(e,t))),r=(0,o.yw)(this.end,(e=>{const r=(0,a.JE)(e,t);return e.getTime()===r.getTime()?r:(0,a.Nm)(r,1,t)}));return new s({start:e,end:r})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return s.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=(0,o.R2)(this.start,-1/0,(t=>t.getTime())),r=(0,o.R2)(this.end,1/0,(t=>t.getTime())),i=(0,o.R2)(t.start,-1/0,(t=>t.getTime())),n=(0,o.R2)(t.end,1/0,(t=>t.getTime()));let a,l;if(i>=e&&i<=r?a=i:e>=i&&e<=n&&(a=e),r>=i&&r<=n?l=r:n>=e&&n<=r&&(l=n),null!=a&&null!=l&&!isNaN(a)&&!isNaN(l)){const t=new s;return t.start=a===-1/0?null:new Date(a),t.end=l===1/0?null:new Date(l),t}return s.empty}offset(t,e){if(this.isEmpty||this.isAllTime)return this.clone();const r=new s,{start:i,end:n}=this;return(0,o.pC)(i)&&(r.start=(0,a.Nm)(i,t,e)),(0,o.pC)(n)&&(r.end=(0,a.Nm)(n,t,e)),r}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=(0,o.pC)(this.start)&&(0,o.pC)(t.start)?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=(0,o.pC)(this.end)&&(0,o.pC)(t.end)?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new s({start:e,end:r})}};(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i._)([(0,u.r)("end")],p.prototype,"readEnd",null),(0,i._)([(0,h.c)("end")],p.prototype,"writeEnd",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i._)([(0,u.r)("start")],p.prototype,"readStart",null),(0,i._)([(0,h.c)("start")],p.prototype,"writeStart",null),p=s=(0,i._)([(0,c.j)("esri.TimeExtent")],p);const d=new p,m=new p({start:void 0,end:void 0}),f=p},5732:(t,e,r)=>{r.d(e,{a:()=>n,c:()=>s,g:()=>i});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},52138:(t,e,r)=>{r.d(e,{a:()=>l,d:()=>m,e:()=>p,f:()=>d,g:()=>_,h:()=>S,i:()=>o,j:()=>v,k:()=>h,m:()=>u,s:()=>n,t:()=>a,v:()=>c,x:()=>b,y:()=>f});var s=r(65617),i=r(46851);function n(t,e,r,s,i,n,o,a,l,u,c,h,p,d,m,f,y){return t[0]=e,t[1]=r,t[2]=s,t[3]=i,t[4]=n,t[5]=o,t[6]=a,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=p,t[12]=d,t[13]=m,t[14]=f,t[15]=y,t}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function a(t,e){if(t===e){const r=e[1],s=e[2],i=e[3],n=e[6],o=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=s,t[9]=n,t[11]=e[14],t[12]=i,t[13]=o,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function l(t,e){const r=e[0],s=e[1],i=e[2],n=e[3],o=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=e[9],p=e[10],d=e[11],m=e[12],f=e[13],y=e[14],g=e[15],_=r*a-s*o,w=r*l-i*o,v=r*u-n*o,S=s*l-i*a,b=s*u-n*a,x=i*u-n*l,M=c*f-h*m,A=c*y-p*m,T=c*g-d*m,E=h*y-p*f,I=h*g-d*f,R=p*g-d*y;let C=_*R-w*I+v*E+S*T-b*A+x*M;return C?(C=1/C,t[0]=(a*R-l*I+u*E)*C,t[1]=(i*I-s*R-n*E)*C,t[2]=(f*x-y*b+g*S)*C,t[3]=(p*b-h*x-d*S)*C,t[4]=(l*T-o*R-u*A)*C,t[5]=(r*R-i*T+n*A)*C,t[6]=(y*v-m*x-g*w)*C,t[7]=(c*x-p*v+d*w)*C,t[8]=(o*I-a*T+u*M)*C,t[9]=(s*T-r*I-n*M)*C,t[10]=(m*b-f*v+g*_)*C,t[11]=(h*v-c*b-d*_)*C,t[12]=(a*A-o*E-l*M)*C,t[13]=(r*E-s*A+i*M)*C,t[14]=(f*w-m*S-y*_)*C,t[15]=(c*S-h*w+p*_)*C,t):null}function u(t,e,r){const s=e[0],i=e[1],n=e[2],o=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=e[9],d=e[10],m=e[11],f=e[12],y=e[13],g=e[14],_=e[15];let w=r[0],v=r[1],S=r[2],b=r[3];return t[0]=w*s+v*a+S*h+b*f,t[1]=w*i+v*l+S*p+b*y,t[2]=w*n+v*u+S*d+b*g,t[3]=w*o+v*c+S*m+b*_,w=r[4],v=r[5],S=r[6],b=r[7],t[4]=w*s+v*a+S*h+b*f,t[5]=w*i+v*l+S*p+b*y,t[6]=w*n+v*u+S*d+b*g,t[7]=w*o+v*c+S*m+b*_,w=r[8],v=r[9],S=r[10],b=r[11],t[8]=w*s+v*a+S*h+b*f,t[9]=w*i+v*l+S*p+b*y,t[10]=w*n+v*u+S*d+b*g,t[11]=w*o+v*c+S*m+b*_,w=r[12],v=r[13],S=r[14],b=r[15],t[12]=w*s+v*a+S*h+b*f,t[13]=w*i+v*l+S*p+b*y,t[14]=w*n+v*u+S*d+b*g,t[15]=w*o+v*c+S*m+b*_,t}function c(t,e,r){const s=r[0],i=r[1],n=r[2];if(e===t)t[12]=e[0]*s+e[4]*i+e[8]*n+e[12],t[13]=e[1]*s+e[5]*i+e[9]*n+e[13],t[14]=e[2]*s+e[6]*i+e[10]*n+e[14],t[15]=e[3]*s+e[7]*i+e[11]*n+e[15];else{const r=e[0],o=e[1],a=e[2],l=e[3],u=e[4],c=e[5],h=e[6],p=e[7],d=e[8],m=e[9],f=e[10],y=e[11];t[0]=r,t[1]=o,t[2]=a,t[3]=l,t[4]=u,t[5]=c,t[6]=h,t[7]=p,t[8]=d,t[9]=m,t[10]=f,t[11]=y,t[12]=r*s+u*i+d*n+e[12],t[13]=o*s+c*i+m*n+e[13],t[14]=a*s+h*i+f*n+e[14],t[15]=l*s+p*i+y*n+e[15]}return t}function h(t,e,r){const s=r[0],i=r[1],n=r[2];return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function p(t,e,r,s){let n,o,a,l,u,c,h,p,d,m,f,y,g,_,w,v,S,b,x,M,A,T,E,I,R=s[0],C=s[1],U=s[2],L=Math.sqrt(R*R+C*C+U*U);return L<(0,i.g)()?null:(L=1/L,R*=L,C*=L,U*=L,n=Math.sin(r),o=Math.cos(r),a=1-o,l=e[0],u=e[1],c=e[2],h=e[3],p=e[4],d=e[5],m=e[6],f=e[7],y=e[8],g=e[9],_=e[10],w=e[11],v=R*R*a+o,S=C*R*a+U*n,b=U*R*a-C*n,x=R*C*a-U*n,M=C*C*a+o,A=U*C*a+R*n,T=R*U*a+C*n,E=C*U*a-R*n,I=U*U*a+o,t[0]=l*v+p*S+y*b,t[1]=u*v+d*S+g*b,t[2]=c*v+m*S+_*b,t[3]=h*v+f*S+w*b,t[4]=l*x+p*M+y*A,t[5]=u*x+d*M+g*A,t[6]=c*x+m*M+_*A,t[7]=h*x+f*M+w*A,t[8]=l*T+p*E+y*I,t[9]=u*T+d*E+g*I,t[10]=c*T+m*E+_*I,t[11]=h*T+f*E+w*I,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function m(t,e,r){if(0===e)return o(t);let s,n,a,l=r[0],u=r[1],c=r[2],h=Math.sqrt(l*l+u*u+c*c);return h<(0,i.g)()?null:(h=1/h,l*=h,u*=h,c*=h,s=Math.sin(e),n=Math.cos(e),a=1-n,t[0]=l*l*a+n,t[1]=u*l*a+c*s,t[2]=c*l*a-u*s,t[3]=0,t[4]=l*u*a-c*s,t[5]=u*u*a+n,t[6]=c*u*a+l*s,t[7]=0,t[8]=l*c*a+u*s,t[9]=u*c*a-l*s,t[10]=c*c*a+n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function f(t,e){const r=Math.sin(e),s=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,e,r){const s=e[0],i=e[1],n=e[2],o=e[3],a=s+s,l=i+i,u=n+n,c=s*a,h=s*l,p=s*u,d=i*l,m=i*u,f=n*u,y=o*a,g=o*l,_=o*u;return t[0]=1-(d+f),t[1]=h+_,t[2]=p-g,t[3]=0,t[4]=h-_,t[5]=1-(c+f),t[6]=m+y,t[7]=0,t[8]=p+g,t[9]=m-y,t[10]=1-(c+d),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const g=(0,s.c)();function _(t,e,r,s){const i=e[0],n=e[1],o=e[2],a=e[3],l=i+i,u=n+n,c=o+o,h=i*l,p=i*u,d=i*c,m=n*u,f=n*c,y=o*c,g=a*l,_=a*u,w=a*c,v=s[0],S=s[1],b=s[2];return t[0]=(1-(m+y))*v,t[1]=(p+w)*v,t[2]=(d-_)*v,t[3]=0,t[4]=(p-w)*S,t[5]=(1-(h+y))*S,t[6]=(f+g)*S,t[7]=0,t[8]=(d+_)*b,t[9]=(f-g)*b,t[10]=(1-(h+m))*b,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function w(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[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function v(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[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function S(t,e){if(t===e)return!0;const r=t[0],s=t[1],n=t[2],o=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8],p=t[9],d=t[10],m=t[11],f=t[12],y=t[13],g=t[14],_=t[15],w=e[0],v=e[1],S=e[2],b=e[3],x=e[4],M=e[5],A=e[6],T=e[7],E=e[8],I=e[9],R=e[10],C=e[11],U=e[12],L=e[13],P=e[14],D=e[15],z=(0,i.g)();return Math.abs(r-w)<=z*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(s-v)<=z*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(n-S)<=z*Math.max(1,Math.abs(n),Math.abs(S))&&Math.abs(o-b)<=z*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(a-x)<=z*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(l-M)<=z*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(u-A)<=z*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(c-T)<=z*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(h-E)<=z*Math.max(1,Math.abs(h),Math.abs(E))&&Math.abs(p-I)<=z*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(d-R)<=z*Math.max(1,Math.abs(d),Math.abs(R))&&Math.abs(m-C)<=z*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(f-U)<=z*Math.max(1,Math.abs(f),Math.abs(U))&&Math.abs(y-L)<=z*Math.max(1,Math.abs(y),Math.abs(L))&&Math.abs(g-P)<=z*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(_-D)<=z*Math.max(1,Math.abs(_),Math.abs(D))}function b(t){const e=(0,i.g)(),r=t[0],s=t[1],n=t[2],o=t[4],a=t[5],l=t[6],u=t[8],c=t[9],h=t[10];return Math.abs(1-(r*r+o*o+u*u))<=e&&Math.abs(1-(s*s+a*a+c*c))<=e&&Math.abs(1-(n*n+l*l+h*h))<=e}const x=u,M=w;Object.freeze(Object.defineProperty({__proto__:null,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[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},set:n,identity:o,transpose:a,invert:l,adjoint:function(t,e){const r=e[0],s=e[1],i=e[2],n=e[3],o=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=e[9],p=e[10],d=e[11],m=e[12],f=e[13],y=e[14],g=e[15];return t[0]=a*(p*g-d*y)-h*(l*g-u*y)+f*(l*d-u*p),t[1]=-(s*(p*g-d*y)-h*(i*g-n*y)+f*(i*d-n*p)),t[2]=s*(l*g-u*y)-a*(i*g-n*y)+f*(i*u-n*l),t[3]=-(s*(l*d-u*p)-a*(i*d-n*p)+h*(i*u-n*l)),t[4]=-(o*(p*g-d*y)-c*(l*g-u*y)+m*(l*d-u*p)),t[5]=r*(p*g-d*y)-c*(i*g-n*y)+m*(i*d-n*p),t[6]=-(r*(l*g-u*y)-o*(i*g-n*y)+m*(i*u-n*l)),t[7]=r*(l*d-u*p)-o*(i*d-n*p)+c*(i*u-n*l),t[8]=o*(h*g-d*f)-c*(a*g-u*f)+m*(a*d-u*h),t[9]=-(r*(h*g-d*f)-c*(s*g-n*f)+m*(s*d-n*h)),t[10]=r*(a*g-u*f)-o*(s*g-n*f)+m*(s*u-n*a),t[11]=-(r*(a*d-u*h)-o*(s*d-n*h)+c*(s*u-n*a)),t[12]=-(o*(h*y-p*f)-c*(a*y-l*f)+m*(a*p-l*h)),t[13]=r*(h*y-p*f)-c*(s*y-i*f)+m*(s*p-i*h),t[14]=-(r*(a*y-l*f)-o*(s*y-i*f)+m*(s*l-i*a)),t[15]=r*(a*p-l*h)-o*(s*p-i*h)+c*(s*l-i*a),t},determinant:function(t){const e=t[0],r=t[1],s=t[2],i=t[3],n=t[4],o=t[5],a=t[6],l=t[7],u=t[8],c=t[9],h=t[10],p=t[11],d=t[12],m=t[13],f=t[14],y=t[15];return(e*o-r*n)*(h*y-p*f)-(e*a-s*n)*(c*y-p*m)+(e*l-i*n)*(c*f-h*m)+(r*a-s*o)*(u*y-p*d)-(r*l-i*o)*(u*f-h*d)+(s*l-i*a)*(u*m-c*d)},multiply:u,translate:c,scale:h,rotate:p,rotateX:function(t,e,r){const s=Math.sin(r),i=Math.cos(r),n=e[4],o=e[5],a=e[6],l=e[7],u=e[8],c=e[9],h=e[10],p=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=n*i+u*s,t[5]=o*i+c*s,t[6]=a*i+h*s,t[7]=l*i+p*s,t[8]=u*i-n*s,t[9]=c*i-o*s,t[10]=h*i-a*s,t[11]=p*i-l*s,t},rotateY:function(t,e,r){const s=Math.sin(r),i=Math.cos(r),n=e[0],o=e[1],a=e[2],l=e[3],u=e[8],c=e[9],h=e[10],p=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=n*i-u*s,t[1]=o*i-c*s,t[2]=a*i-h*s,t[3]=l*i-p*s,t[8]=n*s+u*i,t[9]=o*s+c*i,t[10]=a*s+h*i,t[11]=l*s+p*i,t},rotateZ:function(t,e,r){const s=Math.sin(r),i=Math.cos(r),n=e[0],o=e[1],a=e[2],l=e[3],u=e[4],c=e[5],h=e[6],p=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=n*i+u*s,t[1]=o*i+c*s,t[2]=a*i+h*s,t[3]=l*i+p*s,t[4]=u*i-n*s,t[5]=c*i-o*s,t[6]=h*i-a*s,t[7]=p*i-l*s,t},fromTranslation:d,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotation:m,fromXRotation:f,fromYRotation:function(t,e){const r=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const r=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotationTranslation:y,fromQuat2:function(t,e){const r=g,s=-e[0],i=-e[1],n=-e[2],o=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=s*s+i*i+n*n+o*o;return h>0?(r[0]=2*(a*o+c*s+l*n-u*i)/h,r[1]=2*(l*o+c*i+u*s-a*n)/h,r[2]=2*(u*o+c*n+a*i-l*s)/h):(r[0]=2*(a*o+c*s+l*n-u*i),r[1]=2*(l*o+c*i+u*s-a*n),r[2]=2*(u*o+c*n+a*i-l*s)),y(t,e,r),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},getScaling:function(t,e){const r=e[0],s=e[1],i=e[2],n=e[4],o=e[5],a=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.sqrt(r*r+s*s+i*i),t[1]=Math.sqrt(n*n+o*o+a*a),t[2]=Math.sqrt(l*l+u*u+c*c),t},getRotation:function(t,e){const r=e[0]+e[5]+e[10];let s=0;return r>0?(s=2*Math.sqrt(r+1),t[3]=.25*s,t[0]=(e[6]-e[9])/s,t[1]=(e[8]-e[2])/s,t[2]=(e[1]-e[4])/s):e[0]>e[5]&&e[0]>e[10]?(s=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/s,t[0]=.25*s,t[1]=(e[1]+e[4])/s,t[2]=(e[8]+e[2])/s):e[5]>e[10]?(s=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/s,t[0]=(e[1]+e[4])/s,t[1]=.25*s,t[2]=(e[6]+e[9])/s):(s=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/s,t[0]=(e[8]+e[2])/s,t[1]=(e[6]+e[9])/s,t[2]=.25*s),t},fromRotationTranslationScale:_,fromRotationTranslationScaleOrigin:function(t,e,r,s,i){const n=e[0],o=e[1],a=e[2],l=e[3],u=n+n,c=o+o,h=a+a,p=n*u,d=n*c,m=n*h,f=o*c,y=o*h,g=a*h,_=l*u,w=l*c,v=l*h,S=s[0],b=s[1],x=s[2],M=i[0],A=i[1],T=i[2],E=(1-(f+g))*S,I=(d+v)*S,R=(m-w)*S,C=(d-v)*b,U=(1-(p+g))*b,L=(y+_)*b,P=(m+w)*x,D=(y-_)*x,z=(1-(p+f))*x;return t[0]=E,t[1]=I,t[2]=R,t[3]=0,t[4]=C,t[5]=U,t[6]=L,t[7]=0,t[8]=P,t[9]=D,t[10]=z,t[11]=0,t[12]=r[0]+M-(E*M+C*A+P*T),t[13]=r[1]+A-(I*M+U*A+D*T),t[14]=r[2]+T-(R*M+L*A+z*T),t[15]=1,t},fromQuat:function(t,e){const r=e[0],s=e[1],i=e[2],n=e[3],o=r+r,a=s+s,l=i+i,u=r*o,c=s*o,h=s*a,p=i*o,d=i*a,m=i*l,f=n*o,y=n*a,g=n*l;return t[0]=1-h-m,t[1]=c+g,t[2]=p-y,t[3]=0,t[4]=c-g,t[5]=1-u-m,t[6]=d+f,t[7]=0,t[8]=p+y,t[9]=d-f,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,r,s,i,n,o){const a=1/(r-e),l=1/(i-s),u=1/(n-o);return t[0]=2*n*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*n*l,t[6]=0,t[7]=0,t[8]=(r+e)*a,t[9]=(i+s)*l,t[10]=(o+n)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*n*2*u,t[15]=0,t},perspective:function(t,e,r,s,i){const n=1/Math.tan(e/2);let o;return t[0]=n/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(s-i),t[10]=(i+s)*o,t[14]=2*i*s*o):(t[10]=-1,t[14]=-2*s),t},perspectiveFromFieldOfView:function(t,e,r,s){const i=Math.tan(e.upDegrees*Math.PI/180),n=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+a),u=2/(i+n);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-a)*l*.5,t[9]=(i-n)*u*.5,t[10]=s/(r-s),t[11]=-1,t[12]=0,t[13]=0,t[14]=s*r/(r-s),t[15]=0,t},ortho:function(t,e,r,s,i,n,o){const a=1/(e-r),l=1/(s-i),u=1/(n-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+r)*a,t[13]=(i+s)*l,t[14]=(o+n)*u,t[15]=1,t},lookAt:function(t,e,r,s){let n,a,l,u,c,h,p,d,m,f;const y=e[0],g=e[1],_=e[2],w=s[0],v=s[1],S=s[2],b=r[0],x=r[1],M=r[2],A=(0,i.g)();return Math.abs(y-b)<A&&Math.abs(g-x)<A&&Math.abs(_-M)<A?o(t):(p=y-b,d=g-x,m=_-M,f=1/Math.sqrt(p*p+d*d+m*m),p*=f,d*=f,m*=f,n=v*m-S*d,a=S*p-w*m,l=w*d-v*p,f=Math.sqrt(n*n+a*a+l*l),f?(f=1/f,n*=f,a*=f,l*=f):(n=0,a=0,l=0),u=d*l-m*a,c=m*n-p*l,h=p*a-d*n,f=Math.sqrt(u*u+c*c+h*h),f?(f=1/f,u*=f,c*=f,h*=f):(u=0,c=0,h=0),t[0]=n,t[1]=u,t[2]=p,t[3]=0,t[4]=a,t[5]=c,t[6]=d,t[7]=0,t[8]=l,t[9]=h,t[10]=m,t[11]=0,t[12]=-(n*y+a*g+l*_),t[13]=-(u*y+c*g+h*_),t[14]=-(p*y+d*g+m*_),t[15]=1,t)},targetTo:function(t,e,r,s){const i=e[0],n=e[1],o=e[2],a=s[0],l=s[1],u=s[2];let c=i-r[0],h=n-r[1],p=o-r[2],d=c*c+h*h+p*p;d>0&&(d=1/Math.sqrt(d),c*=d,h*=d,p*=d);let m=l*p-u*h,f=u*c-a*p,y=a*h-l*c;return d=m*m+f*f+y*y,d>0&&(d=1/Math.sqrt(d),m*=d,f*=d,y*=d),t[0]=m,t[1]=f,t[2]=y,t[3]=0,t[4]=h*y-p*f,t[5]=p*m-c*y,t[6]=c*f-h*m,t[7]=0,t[8]=c,t[9]=h,t[10]=p,t[11]=0,t[12]=i,t[13]=n,t[14]=o,t[15]=1,t},str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},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+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},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[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t},subtract:w,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[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t},multiplyScalarAndAdd:function(t,e,r,s){return t[0]=e[0]+r[0]*s,t[1]=e[1]+r[1]*s,t[2]=e[2]+r[2]*s,t[3]=e[3]+r[3]*s,t[4]=e[4]+r[4]*s,t[5]=e[5]+r[5]*s,t[6]=e[6]+r[6]*s,t[7]=e[7]+r[7]*s,t[8]=e[8]+r[8]*s,t[9]=e[9]+r[9]*s,t[10]=e[10]+r[10]*s,t[11]=e[11]+r[11]*s,t[12]=e[12]+r[12]*s,t[13]=e[13]+r[13]*s,t[14]=e[14]+r[14]*s,t[15]=e[15]+r[15]*s,t},exactEquals:v,equals:S,isOrthoNormal:b,mul:x,sub:M},Symbol.toStringTag,{value:"Module"}))},13867:(t,e,r)=>{r.d(e,{Z:()=>i});var s=r(69801);class i{constructor(t,e){this._storage=new s.WJ,this._storage.maxSize=t,e&&this._storage.registerRemoveFunc("",e)}put(t,e,r){this._storage.put(t,e,r,1)}pop(t){return this._storage.pop(t)}get(t){return this._storage.get(t)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}}},69801:(t,e,r)=>{r.d(e,{WJ:()=>l,Xq:()=>a});var s,i,n=r(70586),o=r(44553);(i=s||(s={}))[i.ALL=0]="ALL",i[i.SOME=1]="SOME";class a{constructor(t,e,r){this._namespace=t,this._storage=e,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",r&&(this._storage.registerRemoveFunc(this._namespace,r),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(t,e,r,s=0){this._storage.put(this._namespace+t,e,r,s)}get(t){const e=this._storage.get(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}pop(t){const e=this._storage.pop(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,r){this._storage.updateSize(this._namespace+t,e,r)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class l{constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new o.Z,this._users=new o.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get size(){return this._size}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimit()}put(t,e,r,i){const n=this._db.get(t);if(n&&(this._size-=n.size,this._db.delete(t),n.entry!==e&&this._notifyRemove(t,n.entry,s.ALL)),r>this._maxSize)return void this._notifyRemove(t,e,s.ALL);if(void 0===e)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return void console.warn("Refusing to cache entry with invalid size "+r);const o=1+Math.max(i,-3)- -3;this._db.set(t,{entry:e,size:r,lifetime:o,lives:o}),this._size+=r,this._checkSizeLimit()}updateSize(t,e,r){const i=this._db.get(t);if(i&&i.entry===e){for(this._size-=i.size;r>this._maxSize;){const i=this._notifyRemove(t,e,s.SOME);if(!((0,n.pC)(i)&&i>0))return void this._db.delete(t);r=i}i.size=r,this._size+=r,this._checkSizeLimit()}}pop(t){const e=this._db.get(t);if(e)return this._size-=e.size,this._db.delete(t),++this._hit,e.entry;++this._miss}get(t){const e=this._db.get(t);if(void 0!==e)return this._db.delete(t),e.lives=e.lifetime,this._db.set(t,e),++this._hit,e.entry;++this._miss}getStats(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},r=new Array;this._db.forEach(((t,s)=>{const i=t.lifetime;r[i]=(r[i]||0)+t.size,this._users.forAll((r=>{const i=r.namespace;if(s.startsWith(i)){const r=e[i]||0;e[i]=r+t.size}}))}));const s={};this._users.forAll((t=>{const r=t.namespace;if(!isNaN(t.hitRate)&&t.hitRate>0){const i=e[r]||0;e[r]=i,s[r]=Math.round(100*t.hitRate)+"%"}else s[r]="0%"}));const i=Object.keys(e);i.sort(((t,r)=>e[r]-e[t])),i.forEach((r=>t[r]=Math.round(e[r]/2**20)+"MB / "+s[r]));for(let e=r.length-1;e>=0;--e){const s=r[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this.size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){this._db.forEach(((e,r)=>{r.startsWith(t)&&(this._size-=e.size,this._db.delete(r),this._notifyRemove(r,e.entry,s.ALL))}))}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,s.ALL))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,r){let s;return this._removeFuncs.some((i=>{if(t.startsWith(i[0])){const t=i[1](e,r);return"number"==typeof t&&(s=t),!0}return!1})),s}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[t,e]of this._db){if(this._db.delete(t),e.lives<=1){this._size-=e.size;const r=this._notifyRemove(t,e.entry,s.SOME);(0,n.pC)(r)&&r>0&&(this._size+=r,e.lives=e.lifetime,e.size=r,this._db.set(t,e))}else--e.lives,this._db.set(t,e);if(this._size<=.9*this.maxSize)return}}}},17445:(t,e,r)=>{r.d(e,{N1:()=>p,YP:()=>l,Z_:()=>f,gx:()=>u,nn:()=>y,on:()=>h,tX:()=>g});var s=r(91460),i=r(50758),n=r(70586),o=r(95330),a=r(26258);function l(t,e,r={}){return c(t,e,r,d)}function u(t,e,r={}){return c(t,e,r,m)}function c(t,e,r={},s){let i=null;const o=r.once?(t,r)=>{s(t)&&((0,n.hw)(i),e(t,r))}:(t,r)=>{s(t)&&e(t,r)};if(i=(0,a.aQ)(t,o,r.sync,r.equals),r.initial){const e=t();o(e,e)}return i}function h(t,e,r,o={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function p(t){o.once&&o.once&&(0,n.hw)(c),r(t)}const d=l(t,((t,r)=>{h(),(0,s.vT)(t)&&(a=t,u=(0,s.on)(t,e,p),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return c=(0,i.kB)((()=>{d.remove(),h()})),c}function p(t,e){return function(t,e,r){if((0,o.Hc)(r))return Promise.reject((0,o.zE)());const s=t();if(e?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,n.hw)(a)}return new Promise(((s,n)=>{a=(0,i.AL)([(0,o.fu)(r,(()=>{l(),n((0,o.zE)())})),c(t,(t=>{l(),s(t)}),{sync:!1,once:!0},e??d)])}))}(t,m,e)}function d(t){return!0}function m(t){return!!t}r(87538);const f={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},35463:(t,e,r)=>{r.d(e,{JE:()=>o,Nm:()=>n,rJ:()=>a}),r(80442);const s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},i={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function n(t,e,r){const s=new Date(t.getTime());if(e&&r){const t=i[r],{getter:n,setter:o,multiplier:a}=t;if("months"===r){const t=function(t,e){const r=new Date(t,e+1,1);return r.setDate(0),r.getDate()}(s.getFullYear(),s.getMonth()+e);s.getDate()>t&&s.setDate(t)}s[o](s[n]()+e*a)}return s}function o(t,e){switch(e){case"milliseconds":return new Date(t.getTime());case"seconds":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());case"minutes":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes());case"hours":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours());case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate());case"weeks":return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay());case"months":return new Date(t.getFullYear(),t.getMonth(),1);case"years":return new Date(t.getFullYear(),0,1);case"decades":return new Date(t.getFullYear()-t.getFullYear()%10,0,1);case"centuries":return new Date(t.getFullYear()-t.getFullYear()%100,0,1);default:return new Date}}function a(t,e,r){return 0===t?0:t*s[e]/s[r]}},24109:(t,e,r)=>{r.r(e),r.d(e,{default:()=>pt});var s=r(43697),i=r(3172),n=r(66643),o=r(20102),a=r(22974),l=r(70586),u=r(16453),c=r(95330),h=r(17452),p=r(5600),d=(r(75215),r(71715)),m=r(52011),f=r(30556),y=r(6570),g=r(82971),_=r(87085),w=r(54295),v=r(46486),S=r(17287),b=r(71612),x=r(17017),M=r(38009),A=r(16859),T=r(72965);let E=null;var I=r(92604),R=r(1533);class C{constructor(t,e){this._spriteSource=t,this._maxTextureSize=e,this.devicePixelRatio=1,this._spriteImageFormat="png",this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded","url"===t.type&&t.spriteFormat&&(this._spriteImageFormat=t.spriteFormat),t.pixelRatio&&(this.devicePixelRatio=t.pixelRatio),this.baseURL=t.spriteUrl}get spriteNames(){const t=[];for(const e in this._spritesData)t.push(e);return t.sort(),t}getSpriteInfo(t){return this._spritesData?this._spritesData[t]:null}async load(t){if(this.baseURL){this.loadStatus="loading";try{await this._loadSprites(t),this.loadStatus="loaded"}catch{this.loadStatus="failed"}}else this.loadStatus="failed"}async _loadSprites(t){this._isRetina=this.devicePixelRatio>1.15;const{width:e,height:r,data:s,json:i}=await this._getSpriteData(this._spriteSource,t),n=Object.keys(i);if(!n||0===n.length||!s)return this._spritesData=this.image=null,void(this.width=this.height=0);this._spritesData=i,this.width=e,this.height=r;const a=Math.max(this._maxTextureSize,4096);if(e>a||r>a){const t=`Sprite resource for style ${this.baseURL} is bigger than the maximum allowed of ${a} pixels}`;throw I.Z.getLogger("esri.layers.support.SpriteSource").error(t),new o.Z("SpriteSource",t)}let l;for(let t=0;t<s.length;t+=4)l=s[t+3]/255,s[t]=s[t]*l,s[t+1]=s[t+1]*l,s[t+2]=s[t+2]*l;this.image=s}async _getSpriteData(t,e){if("image"===t.type){let e,r;if(this.devicePixelRatio<1.15){if(!t.spriteSource1x)throw new o.Z("SpriteSource","no image data provided for low resolution sprites!");e=t.spriteSource1x.image,r=t.spriteSource1x.json}else{if(!t.spriteSource2x)throw new o.Z("SpriteSource","no image data provided for high resolution sprites!");e=t.spriteSource2x.image,r=t.spriteSource2x.json}return"width"in e&&"height"in e&&"data"in e&&((0,R.eP)(e.data)||(0,R.KZ)(e.data))?{width:e.width,height:e.height,data:new Uint8Array(e.data),json:r}:{...U(e),json:r}}const r=(0,h.mN)(this.baseURL),s=r.query?"?"+(0,h.B7)(r.query):"",n=this._isRetina?"@2x":"",a=`${r.path}${n}.${this._spriteImageFormat}${s}`,l=`${r.path}${n}.json${s}`,[u,c]=await Promise.all([(0,i.default)(l,e),(0,i.default)(a,{responseType:"image",...e})]);return{...U(c.data),json:u.data}}}function U(t){const e=document.createElement("canvas"),r=e.getContext("2d");e.width=t.width,e.height=t.height,r.drawImage(t,0,0,t.width,t.height);const s=r.getImageData(0,0,t.width,t.height);return{width:t.width,height:t.height,data:new Uint8Array(s.data)}}var L=r(11145),P=r(68773),D=r(45322),z=r(56608),F=r(55415);class B{constructor(t){this.url=t}async fetchTileIndex(){return this._tileIndexPromise||(this._tileIndexPromise=(0,i.default)(this.url).then((t=>t.data.index))),this._tileIndexPromise}async dataKey(t,e){const r=await this.fetchTileIndex();return(0,c.k_)(e),this._getIndexedDataKey(r,t)}_getIndexedDataKey(t,e){const r=[e];if(e.level<0||e.row<0||e.col<0||e.row>>e.level>0||e.col>>e.level>0)return null;let s=e;for(;0!==s.level;)s=new F.Z(s.level-1,s.row>>1,s.col>>1,s.world),r.push(s);let i,n,o=t,a=r.pop();if(1===o)return a;for(;r.length;)if(i=r.pop(),n=(1&i.col)+((1&i.row)<<1),o){if(0===o[n]){a=null;break}if(1===o[n]){a=i;break}a=i,o=o[n]}return a}}class O{constructor(t,e){this._tilemap=t,this._tileIndexUrl=e}async fetchTileIndex(t){return this._tileIndexPromise||(this._tileIndexPromise=(0,i.default)(this._tileIndexUrl,{query:{...t?.query}}).then((t=>t.data.index))),this._tileIndexPromise}dataKey(t,e){const{level:r,row:s,col:i}=t,n=new F.Z(t);return this._tilemap.fetchAvailabilityUpsample(r,s,i,n,e).then((()=>(n.world=t.world,n))).catch((t=>{if((0,c.D_)(t))throw t;return null}))}}const j=new Map;class k{constructor(t,e,r){this.tilemap=null,this.tileInfo=null,this.capabilities=null,this.fullExtent=null,this.name=t,this.sourceUrl=e;const s=(0,h.mN)(this.sourceUrl),i=(0,a.d9)(r),n=i.tiles;if(s)for(let t=0;t<n.length;t++){const e=(0,h.mN)(n[t]);e&&((0,h.YP)(e.path)||(e.path=(0,h.v_)(s.path,e.path)),n[t]=(0,h.fl)(e.path,{...s.query,...e.query}))}this.tileServers=n;const o=r.capabilities&&r.capabilities.split(",").map((t=>t.toLowerCase().trim())),l=!0===r?.exportTilesAllowed,u=!0===o?.includes("tilemap"),c=l&&r.hasOwnProperty("maxExportTilesCount")?r.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:l,supportsTileMap:u},exportTiles:l?{maxExportTilesCount:+c}:null},this.tileInfo=(0,D.d)(i.tileInfo,i,null,{ignoreMinMaxLOD:!0});const p=r.tileMap?(0,h.fl)((0,h.v_)(s.path,r.tileMap),s.query):null;u?(this.type="vector-tile",this.tilemap=new O(new z.y({layer:{parsedUrl:s,tileInfo:this.tileInfo,type:"vector-tile",tileServers:this.tileServers}}),p)):p&&(this.tilemap=new B(p)),this.fullExtent=y.Z.fromJSON(r.fullExtent)}destroy(){}async getRefKey(t,e){return this.tilemap?.dataKey(t,e)??t}requestTile(t,e,r,s){return function(t,e,r,s,n){return function(t,e){const r=j.get(t);if(r)return r.then((t=>(0,a.d9)(t)));const s=(0,i.default)(t,{responseType:"array-buffer",...e}).then((({data:e})=>(j.delete(t),e))).catch((e=>{throw j.delete(t),e}));return j.set(t,s),s}(t.replace(/\{z\}/gi,e.toString()).replace(/\{y\}/gi,r.toString()).replace(/\{x\}/gi,s.toString()),n)}(this.tileServers[e%this.tileServers.length],t,e,r,s)}isCompatibleWith(t){const e=this.tileInfo,r=t.tileInfo;if(!e.spatialReference.equals(r.spatialReference))return!1;if(!e.origin.equals(r.origin))return!1;if(Math.round(e.dpi)!==Math.round(r.dpi))return!1;const s=e.lods,i=r.lods,n=Math.min(s.length,i.length);for(let t=0;t<n;t++){const e=s[t],r=i[t];if(e.level!==r.level||Math.round(e.scale)!==Math.round(r.scale))return!1}return!0}}const q=P.Z.defaults&&P.Z.defaults.io.corsEnabledServers;function N(t){if(!t)return;const e=(0,h.P$)(t);q&&!q.includes(e)&&q.push(e)}function W(...t){let e;for(let r=0;r<t.length;++r)if((0,h.oC)(t[r])){if(e){const s=e.split("://")[0];e=s+":"+t[r].trim()}}else e=(0,h.YP)(t[r])?t[r]:(0,h.v_)(e,t[r]);return(0,h.Qj)(e)}async function G(t,e,r,s,n){let o,a,l;if((0,c.k_)(n),"string"==typeof r){const t=(0,h.Fv)(r);N(t),l=await(0,i.default)(t,{...n,responseType:"json",query:{f:"json",...n?.query}}),l.ssl&&(o&&(o=o.replace(/^http:/i,"https:")),a&&(a=a.replace(/^http:/i,"https:"))),o=t,a=t}else l={data:r},o=r.jsonUrl||null,a=s;const u=l.data;if(Z(u))return t.styleUrl=o||null,async function(t,e,r,s){const i=r?(0,h.Yd)(r):(0,h.L)();t.styleBase=i,t.style=e,t.styleUrl&&N(t.styleUrl),e["sprite-format"]&&"webp"===e["sprite-format"].toLowerCase()&&(t.spriteFormat="webp");const n=[];if(e.sources&&e.sources.esri){const r=e.sources.esri;r.url?await G(t,"esri",W(i,r.url),void 0,s):n.push(G(t,"esri",r,i,s))}for(const r of Object.keys(e.sources))"esri"!==r&&"vector"===e.sources[r].type&&(e.sources[r].url?n.push(G(t,r,W(i,e.sources[r].url),void 0,s)):e.sources[r].tiles&&n.push(G(t,r,e.sources[r],i,s)));await Promise.all(n)}(t,u,a,n);if(function(t){return!Z(t)}(u))return t.sourceUrl?H(t,u,a,!1,e,n):(t.sourceUrl=o||null,H(t,u,a,!0,e,n));throw new Error("You must specify the URL or the JSON for a service or for a style.")}function Z(t){return!!t.sources}async function H(t,e,r,s,i,n){const o=r?(0,h.Qj)(r)+"/":(0,h.L)(),a=function(t,e){if(t.hasOwnProperty("tileInfo"))return t;const r={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100}};let s=78271.51696400007,i=295828763.7957775;const n=[],o=t.hasOwnProperty("minzoom")?+t.minzoom:0,a=t.hasOwnProperty("maxzoom")?+t.maxzoom:22;for(let t=0;t<=a;t++)t>=o&&n.push({level:t,scale:i,resolution:s}),s/=2,i/=2;for(const r of t.tiles)N(W(e,r));return{capabilities:"TilesOnly",initialExtent:r,fullExtent:r,minScale:0,maxScale:0,tiles:t.tiles,tileInfo:{rows:512,cols:512,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:n,spatialReference:{wkid:102100}}}}(e,o),l=new k(i,(0,h.fl)(o,n?.query),a);if(!s&&t.primarySourceName in t.sourceNameToSource){const e=t.sourceNameToSource[t.primarySourceName];if(!e.isCompatibleWith(l))return;null!=l.fullExtent&&(null!=e.fullExtent?e.fullExtent.union(l.fullExtent):e.fullExtent=l.fullExtent.clone()),e.tileInfo.lods.length<l.tileInfo.lods.length&&(e.tileInfo=l.tileInfo)}if(s?(t.sourceBase=o,t.source=e,t.validatedSource=a,t.primarySourceName=i,t.sourceUrl&&N(t.sourceUrl)):N(o),t.sourceNameToSource[i]=l,!t.style){if(null==e.defaultStyles)throw new Error;return"string"==typeof e.defaultStyles?G(t,"",W(o,e.defaultStyles,"root.json"),void 0,n):G(t,"",e.defaultStyles,W(o,"root.json"),n)}}var $=r(33516);const Y=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,K={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function Q(t){const e=t?.match(Y);if(!e)return null;const[,r,s,i]=e;if(!r)return null;let n=null,o=null,a=null;const{devext:l,qaext:u,www:c}=K;if(s)if(n=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:o,portalHostname:a}=l);break;case"qa":({customBaseUrl:o,portalHostname:a}=u);break;default:return null}else({customBaseUrl:o,portalHostname:a}=c);else switch(r.toLowerCase()){case"devext":({customBaseUrl:o,portalHostname:a}=l);break;case"qaext":({customBaseUrl:o,portalHostname:a}=u);break;case"www":({customBaseUrl:o,portalHostname:a}=c);break;default:return null}return{customBaseUrl:o,isPortal:!1,portalHostname:a,urlKey:n}}var V=r(25929);const J=1e-6;function X(t,e){if(t===e)return!0;if(null==t&&null!=e)return!1;if(null!=t&&null==e)return!1;if(null==t||null==e)return!1;if(!t.spatialReference.equals(e.spatialReference)||t.dpi!==e.dpi)return!1;const r=t.origin,s=e.origin;if(Math.abs(r.x-s.x)>=J||Math.abs(r.y-s.y)>=J)return!1;let i,n;t.lods[0].scale>e.lods[0].scale?(i=t,n=e):(n=t,i=e);for(let t=i.lods[0].scale;t>=n.lods[n.lods.length-1].scale-J;t/=2)if(Math.abs(t-n.lods[0].scale)<J)return!0;return!1}function tt(t,e){if(t===e)return t;if(null==t&&null!=e)return e;if(null!=t&&null==e)return t;if(null==t||null==e)return null;const r=t.size[0],s=t.format,i=t.dpi,n={x:t.origin.x,y:t.origin.y},o=t.spatialReference.toJSON(),a=t.lods[0].scale>e.lods[0].scale?t.lods[0]:e.lods[0],l=t.lods[t.lods.length-1].scale<=e.lods[e.lods.length-1].scale?t.lods[t.lods.length-1]:e.lods[e.lods.length-1],u=a.scale,c=a.resolution,h=l.scale,p=[];let d=u,m=c,f=0;for(;d>h;)p.push({level:f,resolution:m,scale:d}),f++,d/=2,m/=2;return new L.Z({size:[r,r],dpi:i,format:s||"pbf",origin:n,lods:p,spatialReference:o})}var et=r(51785),rt=r(54738);let st,it;function nt(t){const e=(0,rt.Sh)(t);for(;e.length>1;){const t=ot(e.shift());if(t.available)return t}return ot(e.shift())}function ot(t){switch(t){case rt.zO.WEBGL1:return st||(st=function(){const t=new lt,e=ct(rt.zO.WEBGL1,t);return(0,l.Wi)(e)||(t.supportsElementIndexUint=null!==e.getExtension("OES_element_index_uint"),t.supportsStandardDerivatives=null!==e.getExtension("OES_standard_derivatives"),t.supportsInstancedArrays=null!==e.getExtension("ANGLE_instanced_arrays"),t.supportsTextureFloat=null!==e.getExtension("OES_texture_float"),t.supportsTextureHalfFloat=null!==e.getExtension("OES_texture_half_float"),t.supportsColorBufferFloat=null!==e.getExtension("WEBGL_color_buffer_float"),t.supportsColorBufferFloatBlend=null!==e.getExtension("EXT_float_blend"),t.supportsColorBufferHalfFloat=null!==e.getExtension("EXT_color_buffer_half_float")),t}()),st;case rt.zO.WEBGL2:return it||(it=function(){const t=new ut,e=ct(rt.zO.WEBGL2,t);return(0,l.Wi)(e)||(t.supportsColorBufferFloat=null!==e.getExtension("EXT_color_buffer_float"),t.supportsColorBufferFloatBlend=null!==e.getExtension("EXT_float_blend"),t.supportsColorBufferHalfFloat=t.supportsColorBufferFloat||null!==e.getExtension("EXT_color_buffer_half_float")),t}()),it}}class at{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1,this.supportsElementIndexUint=!1,this.supportsStandardDerivatives=!1,this.supportsInstancedArrays=!1,this.supportsTextureFloat=!1,this.supportsTextureHalfFloat=!1,this.supportsColorBufferFloat=!1,this.supportsColorBufferFloatBlend=!1,this.supportsColorBufferHalfFloat=!1}}class lt extends at{constructor(){super(...arguments),this.type=rt.zO.WEBGL1}}class ut extends at{constructor(){super(...arguments),this.type=rt.zO.WEBGL2,this.supportsElementIndexUint=!0,this.supportsStandardDerivatives=!0,this.supportsInstancedArrays=!0,this.supportsTextureFloat=!0,this.supportsTextureHalfFloat=!0}}function ct(t,e){if(t===rt.zO.WEBGL1&&"undefined"==typeof WebGLRenderingContext||t===rt.zO.WEBGL2&&"undefined"==typeof WebGL2RenderingContext)return null;const r=document.createElement("canvas");if(!r)return null;let s=(0,rt.kr)(r,t,{failIfMajorPerformanceCaveat:!0});if((0,l.Wi)(s)&&(s=(0,rt.kr)(r,t),(0,l.pC)(s)&&(e.majorPerformanceCaveat=!0)),(0,l.Wi)(s))return s;if(t===rt.zO.WEBGL1){const t=s.getParameter(s.VERSION)?.match(/^WebGL\s+([\d.]*)/);if(t){const r=parseFloat(t[1]);e.available=r>=.94}}else e.available=!0;e.maxTextureSize=s.getParameter(s.MAX_TEXTURE_SIZE),e.supportsVertexShaderSamplers=s.getParameter(s.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const i=s.getShaderPrecisionFormat(s.FRAGMENT_SHADER,s.HIGH_FLOAT);return i&&(e.supportsHighPrecisionFragment=i.precision>0),s}let ht=class extends((0,b.h)((0,T.M)((0,v.Z)((0,S.Y)((0,M.q)((0,A.I)((0,x.N)((0,w.V)((0,u.R)(_.Z)))))))))){constructor(...t){super(...t),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.style=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.type="vector-tile",this.url=null,this.showCollisionBoxes="none",this.path=null}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}destroy(){if(this.sourceNameToSource)for(const t of Object.values(this.sourceNameToSource))t?.destroy();this._spriteSourceMap.clear()}async prefetchResources(t){await this.loadSpriteSource(globalThis.devicePixelRatio||1,t)}load(t){const e=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},t).catch(c.r9).then((async()=>{if(!this.portalItem||!this.portalItem.id)return;const e=`${this.portalItem.itemUrl}/resources/styles/root.json`;(await(0,i.default)(e,{...t,query:{f:"json",...this.customParameters,token:this.apiKey}})).data&&this.read({url:e},(0,$.h)(this.portalItem))})).catch(c.r9).then((()=>this._loadStyle(t)));return this.addResolvingPromise(e),Promise.resolve(this)}get attributionDataUrl(){const t=this.currentStyleInfo,e=t&&t.serviceUrl&&(0,h.mN)(t.serviceUrl);if(!e)return null;const r=this._getDefaultAttribution(e.path);return r?(0,h.fl)(r,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const t=this.primarySource;return t?t.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get parsedUrl(){return this.serviceUrl?(0,h.mN)(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo&&this.currentStyleInfo.serviceUrl||null}get spatialReference(){return this.tileInfo&&this.tileInfo.spatialReference||null}get styleUrl(){return this.currentStyleInfo&&this.currentStyleInfo.styleUrl||null}writeStyleUrl(t,e){t&&(0,h.oC)(t)&&(t=`https:${t}`);const r=(0,l.Wg)(Q(t));e.styleUrl=(0,V.e)(t,r)}get tileInfo(){const t=[];for(const e in this.sourceNameToSource)t.push(this.sourceNameToSource[e]);let e=this.primarySource?.tileInfo||new L.Z;if(t.length>1)for(let r=0;r<t.length;r++)X(e,t[r].tileInfo)&&(e=tt(e,t[r].tileInfo));return e}readVersion(t,e){return e.version?parseFloat(e.version):parseFloat(e.currentVersion)}async loadSpriteSource(t=1,e){if(!this._spriteSourceMap.has(t)){const r=nt("2d").maxTextureSize,s=this.currentStyleInfo?.spriteUrl?(0,h.fl)(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,i=new C({type:"url",spriteUrl:s,pixelRatio:t,spriteFormat:this.currentStyleInfo?.spriteFormat},r);await i.load(e),this._spriteSourceMap.set(t,i)}return this._spriteSourceMap.get(t)}async setSpriteSource(t,e){if(!t)return null;const r=nt("2d").maxTextureSize,s=t.spriteUrl,i=s?(0,h.fl)(s,{...this.customParameters,token:this.apiKey}):null;if(!i&&"url"===t.type)return null;const n=new C(t,r);try{await n.load(e);const r=t.pixelRatio||1;return this._spriteSourceMap.clear(),this._spriteSourceMap.set(r,n),i&&this.currentStyleInfo&&(this.currentStyleInfo.spriteUrl=i),this.emit("spriteSource-change",{spriteSource:n}),n}catch(t){(0,c.r9)(t)}return null}async loadStyle(t,e){const r=t||this.style||this.url;return this._loadingTask&&"string"==typeof r&&this.url===r||(this._loadingTask?.abort(),this._loadingTask=(0,n.vr)((t=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(r,{signal:t}))),e)),this._loadingTask.promise}getStyleLayerId(t){return this.styleRepository.getStyleLayerId(t)}getStyleLayerIndex(t){return this.styleRepository.getStyleLayerIndex(t)}getPaintProperties(t){return(0,a.d9)(this.styleRepository.getPaintProperties(t))}setPaintProperties(t,e){const r=this.styleRepository.isPainterDataDriven(t);this.styleRepository.setPaintProperties(t,e);const s=this.styleRepository.isPainterDataDriven(t);this.emit("paint-change",{layer:t,paint:e,isDataDriven:r||s})}getStyleLayer(t){return(0,a.d9)(this.styleRepository.getStyleLayer(t))}setStyleLayer(t,e){this.styleRepository.setStyleLayer(t,e),this.emit("style-layer-change",{layer:t,index:e})}deleteStyleLayer(t){this.styleRepository.deleteStyleLayer(t),this.emit("delete-style-layer",{layer:t})}getLayoutProperties(t){return(0,a.d9)(this.styleRepository.getLayoutProperties(t))}setLayoutProperties(t,e){this.styleRepository.setLayoutProperties(t,e),this.emit("layout-change",{layer:t,layout:e})}setStyleLayerVisibility(t,e){this.styleRepository.setStyleLayerVisibility(t,e),this.emit("style-layer-visibility-change",{layer:t,visibility:e})}getStyleLayerVisibility(t){return this.styleRepository.getStyleLayerVisibility(t)}write(t,e){return e?.origin&&!this.styleUrl?(e.messages&&e.messages.push(new o.Z("vectortilelayer:unsupported",`VectorTileLayer (${this.title}, ${this.id}) with style defined by JSON only are not supported`,{layer:this})),null):super.write(t,e)}getTileUrl(t,e,r){return null}async _getSourceAndStyle(t,e){if(!t)throw new Error("invalid style!");const r=await async function(t,e){const r={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[s,i]="string"==typeof t?[t,null]:[null,t.jsonUrl];await G(r,"esri",t,i,e);const n={layerDefinition:r.validatedSource,url:s,serviceUrl:r.sourceUrl,style:r.style,styleUrl:r.styleUrl,spriteUrl:r.style.sprite&&W(r.styleBase,r.style.sprite),spriteFormat:r.spriteFormat,glyphsUrl:r.style.glyphs&&W(r.styleBase,r.style.glyphs),sourceNameToSource:r.sourceNameToSource,primarySourceName:r.primarySourceName};return N(n.spriteUrl),N(n.glyphsUrl),n}(t,{...e,query:{...this.customParameters,token:this.apiKey}});"webp"===r.spriteFormat&&(await function(t){if(E)return E;const e={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return E=new Promise((t=>{const r=new Image;r.onload=()=>{r.onload=r.onerror=null,t(r.width>0&&r.height>0)},r.onerror=()=>{r.onload=r.onerror=null,t(!1)},r.src="data:image/webp;base64,"+e.lossy})),E}()||(r.spriteFormat="png")),this._set("currentStyleInfo",{...r}),"string"==typeof t?(this.url=t,this.style=null):(this.url=null,this.style=t),this._set("sourceNameToSource",r.sourceNameToSource),this._set("primarySource",r.sourceNameToSource[r.primarySourceName]),this._set("styleRepository",new et.Z(r.style)),this.read(r.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(t){const e=t.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^\/]+)?\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/vectortileserver/i),r=["OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2"];if(!e)return;const s=e[2]&&e[2].toLowerCase();if(!s)return;const i=e[1]||"";for(const t of r)if(t.toLowerCase().includes(s))return(0,h.Fv)(`//static.arcgis.com/attribution/Vector${i}/${t}`)}async _loadStyle(t){return this._loadingTask?.promise??this.loadStyle(null,t)}};(0,s._)([(0,p.Cb)({readOnly:!0})],ht.prototype,"attributionDataUrl",null),(0,s._)([(0,p.Cb)({type:["show","hide"]})],ht.prototype,"listMode",void 0),(0,s._)([(0,p.Cb)({json:{read:!0,write:!0}})],ht.prototype,"blendMode",void 0),(0,s._)([(0,p.Cb)({readOnly:!0,json:{read:!1}})],ht.prototype,"capabilities",null),(0,s._)([(0,p.Cb)({readOnly:!0})],ht.prototype,"currentStyleInfo",void 0),(0,s._)([(0,p.Cb)({json:{read:!1},readOnly:!0,type:y.Z})],ht.prototype,"fullExtent",null),(0,s._)([(0,p.Cb)()],ht.prototype,"style",void 0),(0,s._)([(0,p.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],ht.prototype,"isReference",void 0),(0,s._)([(0,p.Cb)({type:["VectorTileLayer"]})],ht.prototype,"operationalLayerType",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],ht.prototype,"parsedUrl",null),(0,s._)([(0,p.Cb)({readOnly:!0})],ht.prototype,"serviceUrl",null),(0,s._)([(0,p.Cb)({type:g.Z,readOnly:!0})],ht.prototype,"spatialReference",null),(0,s._)([(0,p.Cb)({readOnly:!0})],ht.prototype,"styleRepository",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],ht.prototype,"sourceNameToSource",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],ht.prototype,"primarySource",void 0),(0,s._)([(0,p.Cb)({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],ht.prototype,"styleUrl",null),(0,s._)([(0,f.c)(["portal-item","web-document"],"styleUrl")],ht.prototype,"writeStyleUrl",null),(0,s._)([(0,p.Cb)({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:L.Z})],ht.prototype,"tileInfo",null),(0,s._)([(0,p.Cb)({json:{read:!1},readOnly:!0,value:"vector-tile"})],ht.prototype,"type",void 0),(0,s._)([(0,p.Cb)({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}})],ht.prototype,"url",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],ht.prototype,"version",void 0),(0,s._)([(0,d.r)("version",["version","currentVersion"])],ht.prototype,"readVersion",null),(0,s._)([(0,p.Cb)({type:String})],ht.prototype,"showCollisionBoxes",void 0),(0,s._)([(0,p.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],ht.prototype,"path",void 0),ht=(0,s._)([(0,m.j)("esri.layers.VectorTileLayer")],ht);const pt=ht},54295:(t,e,r)=>{r.d(e,{V:()=>o});var s=r(43697),i=r(5600),n=(r(67676),r(75215),r(52011));const o=t=>{let e=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(t){null!=t?this._override("apiKey",t):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s._)([(0,i.Cb)({type:String})],e.prototype,"apiKey",null),e=(0,s._)([(0,n.j)("esri.layers.mixins.APIKeyMixin")],e),e}},46486:(t,e,r)=>{r.d(e,{Z:()=>c});var s=r(43697),i=(r(66577),r(5600)),n=(r(67676),r(75215),r(71715)),o=r(52011),a=r(45322),l=r(56608),u=r(82971);const c=t=>{let e=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}readMinScale(t,e){return null!=e.minLOD&&null!=e.maxLOD?t:0}readMaxScale(t,e){return null!=e.minLOD&&null!=e.maxLOD?t:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(t,e){return e.capabilities&&e.capabilities.includes("Tilemap")?new l.y({layer:this}):null}};return(0,s._)([(0,i.Cb)({json:{read:{source:"copyrightText"}}})],e.prototype,"copyright",void 0),(0,s._)([(0,i.Cb)()],e.prototype,"minScale",void 0),(0,s._)([(0,n.r)("service","minScale")],e.prototype,"readMinScale",null),(0,s._)([(0,i.Cb)()],e.prototype,"maxScale",void 0),(0,s._)([(0,n.r)("service","maxScale")],e.prototype,"readMaxScale",null),(0,s._)([(0,i.Cb)({type:u.Z})],e.prototype,"spatialReference",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],e.prototype,"supportsBlankTile",null),(0,s._)([(0,i.Cb)(a.h)],e.prototype,"tileInfo",void 0),(0,s._)([(0,i.Cb)()],e.prototype,"tilemapCache",void 0),(0,s._)([(0,n.r)("service","tilemapCache",["capabilities"])],e.prototype,"readTilemapCache",null),(0,s._)([(0,i.Cb)()],e.prototype,"version",void 0),e=(0,s._)([(0,o.j)("esri.layers.mixins.ArcGISCachedService")],e),e}},17287:(t,e,r)=>{r.d(e,{Y:()=>u});var s=r(43697),i=r(92604),n=r(70586),o=r(5600),a=(r(67676),r(75215),r(52011)),l=r(66677);const u=t=>{let e=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const t=(0,l.Qc)(this.url);if((0,n.pC)(t)&&t.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",(0,l.Nm)(t,i.Z.getLogger(this.declaredClass)))}};return(0,s._)([(0,o.Cb)()],e.prototype,"title",null),(0,s._)([(0,o.Cb)({type:String})],e.prototype,"url",null),e=(0,s._)([(0,a.j)("esri.layers.mixins.ArcGISService")],e),e}},17017:(t,e,r)=>{r.d(e,{N:()=>o});var s=r(43697),i=r(5600),n=(r(67676),r(75215),r(52011));const o=t=>{let e=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,s._)([(0,i.Cb)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],e.prototype,"customParameters",void 0),e=(0,s._)([(0,n.j)("esri.layers.mixins.CustomParametersMixin")],e),e}},16859:(t,e,r)=>{r.d(e,{I:()=>w});var s=r(43697),i=r(40330),n=r(3172),o=r(66643),a=r(20102),l=r(92604),u=r(70586),c=r(95330),h=r(17452),p=r(5600),d=(r(67676),r(75215),r(71715)),m=r(52011),f=r(30556),y=r(65587),g=r(15235),_=r(86082);const w=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){this.portalItem=(0,u.SC)(this.portalItem)}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new g.default({id:e.itemId,portal:r&&r.portal})}writePortalItem(t,e){t&&t.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem&&this.portalItem.id)try{const s=await Promise.all([r.e(4547),r.e(9300),r.e(661)]).then(r.bind(r,18062));return(0,c.k_)(e),await s.load({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap},e)}catch(t){throw(0,c.D_)(t)||l.Z.getLogger(this.declaredClass).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch((t=>((0,c.r9)(t),!0))))}async _fetchUserHasEditingPrivileges(t){const e=this.url?i.id?.findCredential(this.url):null;if(!e)return!0;const r=v.credential===e?v.user:await this._fetchEditingUser(t);return v.credential=e,v.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=i.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,a=y.Z.getDefault();if(a&&a.loaded&&(0,h.Fv)(a.restUrl)===(0,h.Fv)(s))return a.user;const l=`${s}/community/self`,c=(0,u.pC)(t)?t.signal:null,p=await(0,o.q6)((0,n.default)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return p.ok?_.default.fromJSON(p.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e&&e.portal,s=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||y.Z.getDefault());return r&&s&&!(0,h.tm)(s.restUrl,r.restUrl)?(e.messages&&e.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,s._)([(0,p.Cb)({type:g.default})],e.prototype,"portalItem",null),(0,s._)([(0,d.r)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,s._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,s._)([(0,p.Cb)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),e=(0,s._)([(0,m.j)("esri.layers.mixins.PortalLayer")],e),e},v={credential:null,user:null}},33516:(t,e,r)=>{r.d(e,{Y:()=>o,h:()=>n});var s=r(17452),i=r(65587);function n(t){return{origin:"portal-item",url:(0,s.mN)(t.itemUrl),portal:t.portal||i.Z.getDefault(),portalItem:t,readResourcePaths:[]}}function o(t){return{origin:"portal-item",messages:[],writtenProperties:[],url:t.itemUrl?(0,s.mN)(t.itemUrl):null,portal:t.portal||i.Z.getDefault(),portalItem:t}}},55415:(t,e,r)=>{r.d(e,{Z:()=>i});var s=r(71143);class i{constructor(t,e,r,s){this.set(t,e,r,s)}static getId(t,e,r,s){return"object"==typeof t?`${t.level}/${t.row}/${t.col}/${t.world}`:`${t}/${e}/${r}/${s}`}get key(){return this}get id(){return this.toString()}set id(t){this.set(t)}get hash(){const t=4095&this.row,e=4095&this.col,r=63&this.level;return(3&this.world)<<30|e<<22|t<<8|r}acquire(t,e,r,s){this.set(t,e,r,s)}contains(t){const e=t.level-this.level;return e>=0&&this.row===t.row>>e&&this.col===t.col>>e&&this.world===t.world}equals(t){return this.level===t.level&&this.row===t.row&&this.col===t.col&&this.world===t.world}clone(){return new i(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(t,e,r,s){if(null==t)this.level=0,this.row=0,this.col=0,this.world=0;else if("object"==typeof t)this.level=t.level||0,this.row=t.row||0,this.col=t.col||0,this.world=t.world||0;else if("string"==typeof t){const[e,r,s,i]=t.split("/");this.level=parseFloat(e),this.row=parseFloat(r),this.col=parseFloat(s),this.world=parseFloat(i)}else this.level=+t,this.row=+e,this.col=+r,this.world=+s||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new i(this.level-1,this.row>>1,this.col>>1,this.world)}getChildKeys(){const t=this.level+1,e=this.row<<1,r=this.col<<1,s=this.world;return[new i(t,e,r,s),new i(t,e,r+1,s),new i(t,e+1,r,s),new i(t,e+1,r+1,s)]}compareRowMajor(t){return this.row<t.row?-1:this.row>t.row?1:this.col<t.col?-1:this.col>t.col?1:0}}i.pool=new s.Z(i,null,null,25,50)},54738:(t,e,r)=>{r.d(e,{Sh:()=>o,kr:()=>a,zO:()=>s});var s,i,n=r(80442);function o(t){const e=(0,n.Z)("esri-force-webgl");if(e===s.WEBGL1||e===s.WEBGL2)return[e];switch(t){case"2d":return(0,n.Z)("mac")&&(0,n.Z)("chrome")?[s.WEBGL1,s.WEBGL2]:[s.WEBGL2,s.WEBGL1];case"3d":return[s.WEBGL2,s.WEBGL1]}}function a(t,e,r={}){const i=e===s.WEBGL1?["webgl","experimental-webgl","webkit-3d","moz-webgl"]:["webgl2"];let n=null;for(const e of i){try{n=t.getContext(e,r)}catch(t){}if(n)break}return n}(i=s||(s={}))[i.WEBGL1=1]="WEBGL1",i[i.WEBGL2=2]="WEBGL2"}}]);
|