1"use strict";(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[4139],{7831:(t,e,r)=>{r.d(e,{A:()=>c}) 2var n=r(52067),a=r(35200),s=r(87874),i=r(91937),o=r(40038),l=r(62453) 3let u=class extends a.default{constructor(t){super(t),this.getCollections=null}initialize(){this.addHandles((0,l.fm)((()=>this._refresh()),s.sync))}destroy(){this.getCollections=null}_refresh(){const t=null!=this.getCollections?this.getCollections():null 4if(null==t)return void this.removeAll() 5let e=0 6for(const r of t)null!=r&&(e=this._processCollection(e,r)) 7this.splice(e,this.length)}_createNewInstance(t){return new a.default(t)}_processCollection(t,e){if(!e)return t 8const r=this.itemFilterFunction??(t=>!!t) 9for(const n of e)if(n){if(r(n)){const e=this.indexOf(n,t) 10e>=0?e!==t&&this.reorder(n,t):this.add(n,t),++t}if(this.getChildrenFunction){const e=this.getChildrenFunction(n) 11if(Array.isArray(e))for(const r of e)t=this._processCollection(t,r) 12else t=this._processCollection(t,e)}}return t}};(0,n._)([(0,i.MZ)()],u.prototype,"getCollections",void 0),(0,n._)([(0,i.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,n._)([(0,i.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,n._)([(0,o.$)("esri.core.CollectionFlattener")],u) 13const c=u},25341:(t,e,r)=>{r.d(e,{$0:()=>M,$h:()=>C,B8:()=>c,C:()=>s,CV:()=>v,D_:()=>o,I0:()=>T,IL:()=>A,N9:()=>I,O7:()=>L,Qr:()=>g,Qw:()=>u,Tl:()=>f,Z8:()=>m,aI:()=>N,e$:()=>d,eL:()=>y,hM:()=>w,hZ:()=>i,hs:()=>p,i1:()=>_,kN:()=>b,l:()=>O,lK:()=>U,lw:()=>h,mg:()=>l,o1:()=>P,sC:()=>E,t2:()=>j,t5:()=>F,tZ:()=>G,ut:()=>D,v3:()=>R,xI:()=>Z}) 14var n=r(69460),a=r(37770) 15function s(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}function i(t,e,r,n,a,s,i,o,l,u,c,h,f,p,d,y,m){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=s,t[5]=i,t[6]=o,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=f,t[12]=p,t[13]=d,t[14]=y,t[15]=m,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 l(t,e){if(t===e){const r=e[1],n=e[2],a=e[3],s=e[6],i=e[7],o=e[11] 16t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=s,t[11]=e[14],t[12]=a,t[13]=i,t[14]=o}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] 17return t}function u(t,e){return c(t,e)||o(t),t}function c(t,e){const r=e[0],n=e[1],a=e[2],s=e[3],i=e[4],o=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],p=e[11],d=e[12],y=e[13],m=e[14],g=e[15],b=r*o-n*i,v=r*l-a*i,M=r*u-s*i,w=n*l-a*o,_=n*u-s*o,I=a*u-s*l,S=c*y-h*d,x=c*m-f*d,E=c*g-p*d,A=h*m-f*y,O=h*g-p*y,P=f*g-p*m 18let L=b*P-v*O+M*A+w*E-_*x+I*S 19return L?(L=1/L,t[0]=(o*P-l*O+u*A)*L,t[1]=(a*O-n*P-s*A)*L,t[2]=(y*I-m*_+g*w)*L,t[3]=(f*_-h*I-p*w)*L,t[4]=(l*E-i*P-u*x)*L,t[5]=(r*P-a*E+s*x)*L,t[6]=(m*M-d*I-g*v)*L,t[7]=(c*I-f*M+p*v)*L,t[8]=(i*O-o*E+u*S)*L,t[9]=(n*E-r*O-s*S)*L,t[10]=(d*_-y*M+g*b)*L,t[11]=(h*M-c*_-p*b)*L,t[12]=(o*x-i*A-l*S)*L,t[13]=(r*A-n*x+a*S)*L,t[14]=(y*v-d*w-m*b)*L,t[15]=(c*w-h*v+f*b)*L,t):null}function h(t,e,r){const n=e[0],a=e[1],s=e[2],i=e[3],o=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=e[9],p=e[10],d=e[11],y=e[12],m=e[13],g=e[14],b=e[15] 20let v=r[0],M=r[1],w=r[2],_=r[3] 21return t[0]=v*n+M*o+w*h+_*y,t[1]=v*a+M*l+w*f+_*m,t[2]=v*s+M*u+w*p+_*g,t[3]=v*i+M*c+w*d+_*b,v=r[4],M=r[5],w=r[6],_=r[7],t[4]=v*n+M*o+w*h+_*y,t[5]=v*a+M*l+w*f+_*m,t[6]=v*s+M*u+w*p+_*g,t[7]=v*i+M*c+w*d+_*b,v=r[8],M=r[9],w=r[10],_=r[11],t[8]=v*n+M*o+w*h+_*y,t[9]=v*a+M*l+w*f+_*m,t[10]=v*s+M*u+w*p+_*g,t[11]=v*i+M*c+w*d+_*b,v=r[12],M=r[13],w=r[14],_=r[15],t[12]=v*n+M*o+w*h+_*y,t[13]=v*a+M*l+w*f+_*m,t[14]=v*s+M*u+w*p+_*g,t[15]=v*i+M*c+w*d+_*b,t}function f(t,e,r){const n=r[0],a=r[1],s=r[2] 22if(e===t)t[12]=e[0]*n+e[4]*a+e[8]*s+e[12],t[13]=e[1]*n+e[5]*a+e[9]*s+e[13],t[14]=e[2]*n+e[6]*a+e[10]*s+e[14],t[15]=e[3]*n+e[7]*a+e[11]*s+e[15] 23else{const r=e[0],i=e[1],o=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7],p=e[8],d=e[9],y=e[10],m=e[11] 24t[0]=r,t[1]=i,t[2]=o,t[3]=l,t[4]=u,t[5]=c,t[6]=h,t[7]=f,t[8]=p,t[9]=d,t[10]=y,t[11]=m,t[12]=r*n+u*a+p*s+e[12],t[13]=i*n+c*a+d*s+e[13],t[14]=o*n+h*a+y*s+e[14],t[15]=l*n+f*a+m*s+e[15]}return t}function p(t,e,r){const n=r[0],a=r[1],s=r[2] 25return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,r,n){let i=n[0],o=n[1],l=n[2],u=Math.sqrt(i*i+o*o+l*l) 26if(u<=(0,a.FD)())return void s(t,e) 27u=1/u,i*=u,o*=u,l*=u 28const c=Math.sin(r),h=Math.cos(r),f=1-h,p=e[0],d=e[1],y=e[2],m=e[3],g=e[4],b=e[5],v=e[6],M=e[7],w=e[8],_=e[9],I=e[10],S=e[11],x=i*i*f+h,E=o*i*f+l*c,A=l*i*f-o*c,O=i*o*f-l*c,P=o*o*f+h,L=l*o*f+i*c,T=i*l*f+o*c,C=o*l*f-i*c,R=l*l*f+h 29t[0]=p*x+g*E+w*A,t[1]=d*x+b*E+_*A,t[2]=y*x+v*E+I*A,t[3]=m*x+M*E+S*A,t[4]=p*O+g*P+w*L,t[5]=d*O+b*P+_*L,t[6]=y*O+v*P+I*L,t[7]=m*O+M*P+S*L,t[8]=p*T+g*C+w*R,t[9]=d*T+b*C+_*R,t[10]=y*T+v*C+I*
29R,t[11]=m*T+M*C+S*R,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function y(t,e,r){const n=Math.sin(r),a=Math.cos(r),s=e[4],i=e[5],o=e[6],l=e[7],u=e[8],c=e[9],h=e[10],f=e[11] 30return 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]=s*a+u*n,t[5]=i*a+c*n,t[6]=o*a+h*n,t[7]=l*a+f*n,t[8]=u*a-s*n,t[9]=c*a-i*n,t[10]=h*a-o*n,t[11]=f*a-l*n,t}function m(t,e,r){const n=Math.sin(r),a=Math.cos(r),s=e[0],i=e[1],o=e[2],l=e[3],u=e[8],c=e[9],h=e[10],f=e[11] 31return 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]=s*a-u*n,t[1]=i*a-c*n,t[2]=o*a-h*n,t[3]=l*a-f*n,t[8]=s*n+u*a,t[9]=i*n+c*a,t[10]=o*n+h*a,t[11]=l*n+f*a,t}function g(t,e,r){const n=Math.sin(r),a=Math.cos(r),s=e[0],i=e[1],o=e[2],l=e[3],u=e[4],c=e[5],h=e[6],f=e[7] 32return 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]=s*a+u*n,t[1]=i*a+c*n,t[2]=o*a+h*n,t[3]=l*a+f*n,t[4]=u*a-s*n,t[5]=c*a-i*n,t[6]=h*a-o*n,t[7]=f*a-l*n,t}function b(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 v(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}function M(t,e,r){if(0===e)return o(t) 33let n=r[0],s=r[1],i=r[2],l=Math.sqrt(n*n+s*s+i*i) 34if(l<=(0,a.FD)())return null 35l=1/l,n*=l,s*=l,i*=l 36const u=Math.sin(e),c=Math.cos(e),h=1-c 37return t[0]=n*n*h+c,t[1]=s*n*h+i*u,t[2]=i*n*h-s*u,t[3]=0,t[4]=n*s*h-i*u,t[5]=s*s*h+c,t[6]=i*s*h+n*u,t[7]=0,t[8]=n*i*h+s*u,t[9]=s*i*h-n*u,t[10]=i*i*h+c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function w(t,e){const r=Math.sin(e),n=Math.cos(e) 38return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){const r=Math.sin(e),n=Math.cos(e) 39return t[0]=n,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]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function I(t,e){const r=Math.sin(e),n=Math.cos(e) 40return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,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 S(t,e,r){const n=e[0],a=e[1],s=e[2],i=e[3],o=n+n,l=a+a,u=s+s,c=n*o,h=n*l,f=n*u,p=a*l,d=a*u,y=s*u,m=i*o,g=i*l,b=i*u 41return t[0]=1-(p+y),t[1]=h+b,t[2]=f-g,t[3]=0,t[4]=h-b,t[5]=1-(c+y),t[6]=d+m,t[7]=0,t[8]=f+g,t[9]=d-m,t[10]=1-(c+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const x=(0,n.vt)() 42function E(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function A(t,e){const r=e[0],n=e[1],a=e[2],s=e[4],i=e[5],o=e[6],l=e[8],u=e[9],c=e[10] 43return t[0]=Math.sqrt(r*r+n*n+a*a),t[1]=Math.sqrt(s*s+i*i+o*o),t[2]=Math.sqrt(l*l+u*u+c*c),t}function O(t,e){const r=e[0]+e[5]+e[10] 44let n=0 45return r>0?(n=2*Math.sqrt(r+1),t[3]=.25*n,t[0]=(e[6]-e[9])/n,t[1]=(e[8]-e[2])/n,t[2]=(e[1]-e[4])/n):e[0]>e[5]&&e[0]>e[10]?(n=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/n,t[0]=.25*n,t[1]=(e[1]+e[4])/n,t[2]=(e[8]+e[2])/n):e[5]>e[10]?(n=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/n,t[0]=(e[1]+e[4])/n,t[1]=.25*n,t[2]=(e[6]+e[9])/n):(n=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/n,t[0]=(e[8]+e[2])/n,t[1]=(e[6]+e[9])/n,t[2]=.25*n),t}function P(t,e,r,n){const a=e[0],s=e[1],i=e[2],o=e[3],l=a+a,u=s+s,c=i+i,h=a*l,f=a*u,p=a*c,d=s*u,y=s*c,m=i*c,g=o*l,b=o*u,v=o*c,M=n[0],w=n[1],_=n[2] 46return t[0]=(1-(d+m))*M,t[1]=(f+v)*M,t[2]=(p-b)*M,t[3]=0,t[4]=(f-v)*w,t[5]=(1-(h+m))*w,t[6]=(y+g)*w,t[7]=0,t[8]=(p+b)*_,t[9]=(y-g)*_,t[10]=(1-(h+d))*_,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function L(t,e,r,n,a){const s=e[0],i=e[1],o=e[2],l=e[3],u=s+s,c=i+i,h=o+o,f=s*u,p=s*c,d=s*h,y=i*c,m=i*h,g=o*h,b=l*u,v=l*c,M=l*h,w=n[0],_=n[1],I=n[2],S=a[0],x=a[1],E=a[2],A=(1-(y+g))*w,O=(p+M)*w,P=(d-v)*w,L=(p-M)*_,T=(1-(f+g))*_,C=(m+b)*_,R=(d+v)*I,F=(m-b)*I,Z=(1-(f+y))*I 47return t[0]=A,t[1]=O,t[2]=P,t[3]=0,t[4]=L,t[5]=T,t[6]=C,t[7]=0,t[8]=R,t[9]=F,t[10]=Z,t[11]=0,t[12]=r[0]+S-(A*S+L*x+R*E),t[13]=r[1]+x-(O*S+T*x+F*E),t[14]=r[2]+E-(P*S+C*x+Z*E),t[15]=1,t}function T(t,e){const r=e[0],n=e[1],a=e[2],s=e[3],i=r+r,o=n+n,l=a+a,u=r*i,c=n*i,h=n*o,f=a*i,p=a*o,d=a*l,y=s*i,m=s*o,g=s*l 48return t[0]=1-h-d,t[1]=c+g,t[2]=f-m,t[3]=0,t[4]=c-g,t[5]=1-u-d,t[6]=p+y,t[7]=0,t[8]=f+m,t[9]=p-y,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function C(t,e,r,n,a,s,i){const o=1/(r-e),l=1/(a-n),u=1/(s-i) 49return t[0]=2*s*o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*l,t[6]=0,t[7]=0,t[8]=(r+e)*o,t[9]=(a+n)*l,t[10]=(i+s)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=i*s*2*u,t[15]=0,t}function R(t,e,r,n,a,s,i){const o=1/(e-r),l=1/(n-a),u=1/(s-i) 50return t[0]=-2*o,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)*o,t[13]=(a+n)*l,t[14]=(i+s)*u,t[15]=1,t}function F(t,e,r,n){const s=e[0],i=e[1],l=e[2] 51let u=s-r[0],c=i-r[1],h=l-r[2] 52const f=(0,a.FD)() 53if(Math.abs(u)<f&&Math.abs(c)<f&&Math.abs(h)<f)return void o(t) 54let p=1/Math.sqrt(u*u+c*c+h*h) 55u*=p,c*=p,h*=p 56const d=n[0],y=n[1],m=n[2] 57let g=y*h-m*c,b=m*u-d*h,v=d*c-y*u 58p=Math.sqrt(g*g+b*b+v*v),p?(p=1/p,g*=p,b*=p,v*=p):(g=0,b=0,v=0) 59let M=c*v-h*b,w=h*g-u*v,_=u*b-c*g 60p=Math.sqrt(M*M+w*w+_*_),p?(p=1/p,M*=p,w*=p,_*=p):(M=0,w=0,_=0),t[0]=g,t[1]=M,t[2]=u,t[3]=0,t[4]=b,t[5]=w,t[6]=c,t[7]=0,t[8]=v,t[9]=_,t[10]=h,t[11]=0,t[12]=-(g*s+b*i+v*l),t[13]=-(M*s+w*i+_*l),t[14]=-(u*s+c*i+h*l),t[15]=1}function Z(t,e,r,n){const a=e[0],s=e[1],i=e[2],o=n[0],l=n[1],u=n[2] 61let c=a-r[0],h=s-r[1],f=i-r[2],p=c*c+h*h+f*f 62p>0&&(p=1/Math.sqrt(p),c*=p,h*=p,f*=p) 63let d=l*f-u*h,y=u*c-o*f,m=o*h-l*c 64return p=d*d+y*y+m*m,p>0&&(p=1/Math.sqrt(p),d*=p,y*=p,m*=p),t[0]=d,t[1]=y,t[2]=m,t[3]=0,t[4]=h*m-f*y,t[5]=f*d-c*m,t[6]=c*y-h*d,t[7]=0,t[8]=c,t[9]=h,t[10]=f,t[11]=0,t[12]=a,t[13]=s,t[14]=i,t[15]=1,t}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}function j(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 N(t,e){if(t===e)return!0 65const r=t[0],n=t[1],s=t[2],i=t[3],o=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=t[9],p=t[10],d=t[11],y=t[12],m=t[13],g=t[14],b=t[15],v=e[0],M=e[1],w=e[2],_=e[3],I=e[4],S=e[5],x=e[6],E=e[7],A=e[8],O=e[9],P=e[10],L=e[11],T=e[12],C=e[13],R=e[14],F=e[15],Z=(0,a.FD)() 66return Math.abs(r-v)<=Z*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(n-M)<=Z*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(s-w)<=Z*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(i-_)<=Z*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(o-I)<=Z*Math.max(1,Math.abs(o),Math.abs(I))&&Math.abs(l-S)<=Z*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-x)<=Z*Math.max(1,Math.abs(u),Math.abs(x))&&Math.abs(c-E)<=Z*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(h-A)<=Z*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(f-O)<=Z*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(p-P)<=Z*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(d-L)<=Z*Math.max(1,Math.abs(d),Math.abs(L))&&Math.abs(y-T)<=Z*Math.max(1,Math.abs(y),Math.abs(T))&&Math.abs(m-C)<=Z*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(g-R)<=Z*Math.max(1,Math.abs(g),Math.abs(R))&&Math.abs(b-F)<=Z*Math.max(1,Math.abs(b),Math.abs(F))}function D(t){const e=(0,a.FD)(),r=t[0],n=t[1],s=t[2],i=t[4],o=t[5],l=t[6],u=t[8],c=t[9],h=t[10] 67return Math.abs(1-(r*r+i*i+u*u))<=e&&Math.abs(1-(n*n+o*o+c*c))<=e&&Math.abs(1-(s*s+l*l+h*h))<=e}function G(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&
670===t[9]&&1===t[10]}const U=h,V=$ 68Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[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},adjoint:function(t,e){const r=e[0],n=e[1],a=e[2],s=e[3],i=e[4],o=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],p=e[11],d=e[12],y=e[13],m=e[14],g=e[15] 69return t[0]=o*(f*g-p*m)-h*(l*g-u*m)+y*(l*p-u*f),t[1]=-(n*(f*g-p*m)-h*(a*g-s*m)+y*(a*p-s*f)),t[2]=n*(l*g-u*m)-o*(a*g-s*m)+y*(a*u-s*l),t[3]=-(n*(l*p-u*f)-o*(a*p-s*f)+h*(a*u-s*l)),t[4]=-(i*(f*g-p*m)-c*(l*g-u*m)+d*(l*p-u*f)),t[5]=r*(f*g-p*m)-c*(a*g-s*m)+d*(a*p-s*f),t[6]=-(r*(l*g-u*m)-i*(a*g-s*m)+d*(a*u-s*l)),t[7]=r*(l*p-u*f)-i*(a*p-s*f)+c*(a*u-s*l),t[8]=i*(h*g-p*y)-c*(o*g-u*y)+d*(o*p-u*h),t[9]=-(r*(h*g-p*y)-c*(n*g-s*y)+d*(n*p-s*h)),t[10]=r*(o*g-u*y)-i*(n*g-s*y)+d*(n*u-s*o),t[11]=-(r*(o*p-u*h)-i*(n*p-s*h)+c*(n*u-s*o)),t[12]=-(i*(h*m-f*y)-c*(o*m-l*y)+d*(o*f-l*h)),t[13]=r*(h*m-f*y)-c*(n*m-a*y)+d*(n*f-a*h),t[14]=-(r*(o*m-l*y)-i*(n*m-a*y)+d*(n*l-a*
69o)),t[15]=r*(o*f-l*h)-i*(n*f-a*h)+c*(n*l-a*o),t},copy:s,determinant:function(t){const e=t[0],r=t[1],n=t[2],a=t[3],s=t[4],i=t[5],o=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11],p=t[12],d=t[13],y=t[14],m=t[15] 70return(e*i-r*s)*(h*m-f*y)-(e*o-n*s)*(c*m-f*d)+(e*l-a*s)*(c*y-h*d)+(r*o-n*i)*(u*m-f*p)-(r*l-a*i)*(u*y-h*p)+(n*l-a*o)*(u*d-c*p)},equals:N,exactEquals:j,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)},fromQuat:T,fromQuat2:function(t,e){const r=x,n=-e[0],a=-e[1],s=-e[2],i=e[3],o=e[4],l=e[5],u=e[6],c=e[7],h=n*n+a*a+s*s+i*i 71return h>0?(r[0]=2*(o*i+c*n+l*s-u*a)/h,r[1]=2*(l*i+c*a+u*n-o*s)/h,r[2]=2*(u*i+c*s+o*a-l*n)/h):(r[0]=2*(o*i+c*n+l*s-u*a),r[1]=2*(l*i+c*a+u*n-o*s),r[2]=2*(u*i+c*s+o*a-l*n)),S(t,e,r),t},fromRotation:M,fromRotationTranslation:S,fromRotationTranslationScale:P,fromRotationTranslationScaleOrigin:L,fromScaling:v,fromTranslation:b,fromXRotation:w,fromYRotation:_,fromZRotation:I,frustum:C,getRotation:O,getScaling:A,getTranslation:E,hasIdentityRotation:G,identity:o,invert:c,invertOrIdentity:u,isOrthoNormal:D,lookAt:F,mul:U,multiply:h,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,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t},ortho:R,perspective:function(t,e,r,n,a){const s=1/Math.tan(e/2) 72let i 73return t[0]=s/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,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!=a&&a!==1/0?(i=1/(n-a),t[10]=(a+n)*i,t[14]=2*a*n*i):(t[10]=-1,t[14]=-2*n),t},perspectiveFromFieldOfView:function(t,e,r,n){const a=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),i=Math.tan(e.leftDegrees*Math.PI/180),o=Math.tan(e.rightDegrees*Math.PI/180),l=2/(i+o),u=2/(a+s) 74return 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]=-(i-o)*l*.5,t[9]=(a-s)*u*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t},rotate:d,rotateX:y,rotateY:m,rotateZ:g,scale:p,set:i,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]+")"},sub:V,subtract:$,targetTo:Z,translate:f,transpose:l},Symbol.toStringTag,{value:"Module"}))},329:(t,e,r)=>{r.d(e,{L:()=>o,g:()=>i}) 75var n=r(79265),a=r(35200),s=r(75708) 76async function i(t,e){return await t.load(),o(t,e)}async function o(t,e){const r=[],i=(...t)=>{for(const e of t)null!=e&&(Array.isArray(e)?i(...e):a.default.isCollection(e)?e.forEach((t=>i(t))):s.A.isLoadable(e)&&r.push(e))} 77e(i) 78let o=null 79if(await(0,n.Tj)(r,(async t=>{const e=await(0,n.Ke)(function(t){return"loadAll"in t&&"function"==typeof t.loadAll}(t)?t.loadAll():t.load()) 80!1!==e.ok||o||(o=e)})),o)throw o.error 81return t}},60382:(t,e,r)=>{r.r(e),r.d(e,{default:()=>M}) 82var n=r(52067),a=r(33333),s=r(61840),i=r(92879),o=r(89348),l=r(75708),u=r(12752),c=r(81814),h=r(83546),f=r(91937),p=(r(57250),r(98389),r(40038)),d=r(80110),y=r(12220),m=r(24396),g=r(37879) 83let b=0,v=class extends(i.A.EventedMixin(o.A.IdentifiableMixin(l.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new d.default(-180,-90,180,90,y.default.WGS84),this.id=Date.now().toString(16)+"-layer-"+b++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.default.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t 84return(await r.e(54887).then(r.bind(r,54887))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:n}=await Promise.all([r.e(15420),r.e(80890)]).then(r.bind(r,63993)) 85try{return await n(e)}catch(t){const r=e?.portalItem,n=r?.id||"unset",a=r?.portal?.url||m.default.portalUrl 86throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+a+"', id: '"+n+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,c.isAbortError)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent 87if(t){const e=this 88"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.base
88Layers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible 89const e=this.parent 90return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,h.urlToObject)(this.url)}createLayerView(t,e){return Promise.reject(new s.default("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl 91if(this.hasAttributionData&&t)return(await(0,a.default)(t,{query:{f:"json"},responseType:"json"})).data 92throw new s.default("layer:no-attribution-data","Layer does not have attribution data")}};(0,n._)([(0,f.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n._)([(0,f.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,n._)([(0,f.MZ)({type:d.default})],v.prototype,"fullExtent",void 0),(0,n._)([(0,f.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n._)([(0,f.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,n._)([(0,f.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n._)([(0,f.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n._)([(0,f.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n._)([(0,f.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,n._)([(0,f.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n._)([(0,f.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,n._)([(0,f.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n._)([(0,f.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n._)([(0,f.MZ)({type:y.default})],v.prototype,"spatialReference",void 0),(0,n._)([(0,f.MZ)({type:String})],v.prototype,"title",void 0),(0,n._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n._)([(0,f.MZ)()],v.prototype,"url",void 0),(0,n._)([(0,f.MZ)({type:g.default})],v.prototype,"visibilityTimeExtent",void 0),(0,n._)([(0,f.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n._)([(0,p.$)("esri.layers.Layer")],v) 93const M=v},31136:(t,e,r)=>{r.d(e,{bv:()=>l,Fk:()=>u,yG:()=>c,$b:()=>h,Nd:()=>f,jm:()=>p,sK:()=>m}) 94var n=r(90542),a=r(37015) 95function s(){const t=new Float32Array(16) 96return t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}const i=s() 97Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){const e=new Float32Array(16) 98return 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},create:s,createView:function(t,e){return new Float32Array(t,e,16)},fromValues:function(t,e,r,n,a,s,i,o,l,u,c,h,f,p,d,y){const m=new Float32Array(16) 99return m[0]=t,m[1]=e,m[2]=r,m[3]=n,m[4]=a,m[5]=s,m[6]=i,m[7]=o,m[8]=l,m[9]=u,m[10]=c,m[11]=h,m[12]=f,m[13]=p,m[14]=d,m[15]=y,m}},Symbol.toStringTag,{value:"Module"})) 100var o=r(25341) 101class l{constructor(t,e,r){this.strength=t,this.radius=e,this.threshold=r,this.type="bloom"}interpolate(t,e,r){this.strength=d(t.strength,e.strength,r),this.radius=d(t.radius,e.radius,r),this.threshold=d(t.threshold,e.threshold,r)}clone(){return new l(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:y(this.radius),strength:this.strength,threshold:this.threshold}}}class u{constructor(t){this.radius=t,this.type="blur"}interpolate(t,e,r){this.radius=Math.round(d(t.radius,e.radius,r))}clone(){return new u(this.radius)}toJSON(){return{type:"blur",radius:y(this.radius)}}}class c{constructor(t,e){this.type=t,this.amount=e,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(t,e,r){this.amount=d(t.amount,e.amount,r),this._updateMatrix()}clone(){return new c(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const t=this._colorMatrix||s() 102switch(this.type){case"brightness":this._colorMatrix=((t,e)=>{const r=(0,o.hZ)(t,e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1) 103return(0,o.mg)(r,r)})(t,this.amount) 104break 105case"contrast":this._colorMatrix=((t,e)=>{const r=(0,o.hZ)(t,e,0,0,.5-.5*e,0,e,0,.5-.5*e,0,0,e,.5-.5*e,0,0,0,1) 106return(0,o.mg)(r,r)})(t,this.amount) 107break 108case"grayscale":this._colorMatrix=(t=>{const e=1-this.amount,r=(0,o.hZ)(t,.2126+.7874*e,.7152-.7152*e,.0722-.0722*e,0,.212
1086-.2126*e,.7152+.2848*e,.0722-.0722*e,0,.2126-.2126*e,.7152-.7152*e,.0722+.9278*e,0,0,0,0,1) 109return(0,o.mg)(r,r)})(t) 110break 111case"invert":this._colorMatrix=((t,e)=>{const r=1-2*e,n=(0,o.hZ)(t,r,0,0,e,0,r,0,e,0,0,r,e,0,0,0,1) 112return(0,o.mg)(n,n)})(t,this.amount) 113break 114case"saturate":this._colorMatrix=((t,e)=>{const r=(0,o.hZ)(t,.213+.787*e,.715-.715*e,.072-.072*e,0,.213-.213*e,.715+.285*e,.072-.072*e,0,.213-.213*e,.715-.715*e,.072+.928*e,0,0,0,0,1) 115return(0,o.mg)(r,r)})(t,this.amount) 116break 117case"sepia":this._colorMatrix=(t=>{const e=1-this.amount,r=(0,o.hZ)(t,.393+.607*e,.769-.769*e,.189-.189*e,0,.349-.349*e,.686+.314*e,.168-.168*e,0,.272-.272*e,.534-.534*e,.131+.869*e,0,0,0,0,1) 118return(0,o.mg)(r,r)})(t)}}}class h{constructor(t,e,r,n){this.offsetX=t,this.offsetY=e,this.blurRadius=r,this.color=n,this.type="drop-shadow"}interpolate(t,e,r){this.offsetX=d(t.offsetX,e.offsetX,r),this.offsetY=d(t.offsetY,e.offsetY,r),this.blurRadius=d(t.blurRadius,e.blurRadius,r),this.color[0]=Math.round(d(t.color[0],e.color[0],r)),this.color[1]=Math.round(d(t.color[1],e.color[1],r)),this.color[2]=Math.round(d(t.color[2],e.color[2],r)),this.color[3]=d(t.color[3],e.color[3],r)}clone(){return new h(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const t=[...this.color] 119return t[3]*=255,{type:"drop-shadow",xoffset:y(this.offsetX),yoffset:y(this.offsetY),blurRadius:y(this.blurRadius),color:t}}}class f{constructor(t){this.angle=t,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(t,e,r){this.angle=d(t.angle,e.angle,r),this._updateMatrix()}clone(){return new f(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const t=this._colorMatrix||s() 120this._colorMatrix=((t,e)=>{const r=Math.sin(e*Math.PI/180),n=Math.cos(e*Math.PI/180),a=(0,o.hZ)(t,.213+.787*n-.213*r,.715-.715*n-.715*r,.072-.072*n+.928*r,0,.213-.213*n+.143*r,.715+.285*n+.14*r,.072-.072*n-.283*r,0,.213-.213*n-.787*r,.715-.715*n+.715*r,.072+.928*n+.072*r,0,0,0,0,1) 121return(0,o.mg)(a,a)})(t,this.angle)}}class p{constructor(t){this.amount=t,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(t,e,r){this.amount=d(t.amount,e.amount,r)}clone(){return new p(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function d(t,e,r){return t+(e-t)*r}function y(t){return Math.round(1e3*(0,a.PN)(t))/1e3}function m(t){switch(t.type){case"grayscale":case"sepia":case"invert":return new c(t.type,0) 122case"saturate":case"brightness":case"contrast":return new c(t.type,1) 123case"opacity":return new p(1) 124case"hue-rotate":return new f(0) 125case"blur":return new u(0) 126case"drop-shadow":return new h(0,0,0,[...(0,n.TS)("transparent")]) 127case"bloom":return new l(0,0,1)}}},78493:(t,e,r)=>{r.d(e,{LF:()=>o,M9:()=>l,U2:()=>u,zu:()=>c}) 128var n=r(61840),a=r(42087),s=r(6075),i=r(63043) 129function o(t,e,r){try{return function(t){if(!t||0===t.length)return null 130if(function(t){const e=t[0] 131return!!e&&"scale"in e}(t)){const e=[] 132for(const r of t)e.push({scale:r.scale,value:c(r.value)}) 133return e}return c(t)}(t)}catch(t){r?.messages?.push(t)}return null}function l(t,e,r,n){try{const n=u(t);(0,a.sM)(r,n,e)}catch(t){n.messages&&n.messages.push(t)}}function u(t){const e=(0,s.q)(t) 134return e?(0,i.dw)(e)?e.map((t=>t.toJSON())):e.map((({scale:t,effects:e})=>({scale:t,value:e.map((t=>t.toJSON()))}))):null}function c(t){if(!t?.length)return"" 135const e=[] 136for(const r of t){let t=[] 137switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":t=[h(r,"amount")] 138break 139case"blur":t=[h(r,"radius","pt")] 140break 141case"hue-rotate":t=[h(r,"angle","deg")] 142break 143case"drop-shadow":t=[h(r,"xoffset","pt"),h(r,"yoffset","pt"),h(r,"blurRadius","pt"),f(r,"color")] 144break 145case"bloom":t=[h(r,"strength"),h(r,"radius","pt"),h(r,"threshold")]}const n=`${r.type}(${t.filter(Boolean).join(" ")})`;(0,s.q)(n),e.push(n)}return e.join(" ")}function h(t,e,r){if(null==t[e])throw new n.default("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t}) 146return r?t[e]+r:""+t[e]}function f(t,e){if(null==t[e])throw new n.default("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t}) 147const r=t[e] 148return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},6075:(t,e,r)=>{r.d(e,{q:()=>u}) 149var n=r(90542),a=r(61840),s=r(31136),i=r(63043) 150function o(t,e,r,n){var a=Error.call(this,t) 151return Object.setPrototypeOf&&Object.setPrototypeOf(a,o.prototype),a.expected=e,a.found=r,a.location=n,a.name="SyntaxError",a}function l(t,e,r){return r=r||" ",t.length>e?t:(e-=t.length,t+(r+=r.repeat(e)).slice(0,e))}function u(t){if(!t||0===t.length)return null 152if("string"==typeof t){const e=c(t) 153return e&&0!==e.length?e:null}const e=t.map((t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new a.default("effect:invalid-scale","scale must be finite and greater than 0",{stop:t}) 154return{scale:t.scale,effects:c(t.value)}})) 155e.sort(((t,e)=>e.effects.length-t.effects.length)) 156for(let r=0;r<e.length-1;r++){if(!(0,i.mj)(e[r].effects,e[r+1].effects))throw new a.default("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[r].effects,b:e[r+1].effects});(0,i.O9)(e[r].effects,e[r+1].effects)}return e.sort(((t,e)=>e.scale-t.scale)),e}function c(t){let e 157if(!t)return[] 158try{e=function(t,e){var r,n={},a=(e=void 0!==e?e:{}).grammarSource,s={start:Bt},i=Bt,l="none",u=")",c=",",h="(",f="%",p="px",d="cm",y="mm",m="in",g="pt",b="pc",v="deg",M="rad",w="grad",_="turn",I="#",S=".",x="e",E=/^[ \t\n\r]/,A=/^[a-z\-]/,O=/^[0-9a-fA-F]/,P=/^[+\-]/,L=/^[0-9]/,T=Ut("none"),C=Dt("none",!1),R=Dt(")",!1),F=Dt(",",!1),Z=Ut("whitespace"),$=Gt([" ","\t","\n","\r"],!1,!1),j=Ut("function"),N=Dt("(",!1),D=Ut("identifier"),G=Gt([["a","z"],"-"],!1,!1),U=Ut("percentage"),V=Dt("%",!1),q=Ut("length"),k=Dt("px",!1),B=Dt("cm",!1),K=Dt("mm",!1),H=Dt("in",!1),J=Dt("pt",!1),Y=Dt("pc",!1),z=Ut("angle"),W=Dt("deg",!1),X=Dt("rad",!1),Q=Dt("grad",!1),tt=Dt("turn",!1),et=Ut("number"),rt=Ut("color"),nt=Dt("#",!1),at=Gt([["0","9"],["a","f"],["A","F"]],!1,!1),st=Gt(["+","-"],!1,!1),it=Gt([["0","9"]],!1,!1),ot=Dt(".",!1),lt=Dt("e",!1),ut=function(){return[]},ct=function(t,e){return{type:"function",name:t,parameters:e||[]}},ht=function(t,e){return e.length>0?function(t,e){return[t].concat(function(t){return t.map((function(t){return t[3]}))}(e))}(t,e):[t]},ft=function(t){return{type:"quantity",value:t.value,unit:t.unit}},pt=function(t){return{type:"color",colorType:t.type,value:t.value}},dt=function(t){return t},yt=function(){return Nt()},mt=function(t){return{value:t,unit:"%"}},gt=function(t){return{value:t,unit:"px"}},bt=function(t){return{value:t,unit:"cm"}},vt=function(t){return{value:t,unit:"mm"}},Mt=function(t){return{value:t,unit:"in"}},wt=function(t){return{value:t,unit:"pt"}},_t=function(t){return{value:t,unit:"pc"}},It=function(t){return{value:t,unit:"deg"}},St=function(t){return{value:t,unit:"rad"}},xt=function(t){return{value:t,unit:"grad"}},Et=function(t){return{value:t,unit:"turn"}},At=function(t){return{value:t,unit:null}},Ot=function(){return{type:"hex",value:Nt()}},Pt=function(t){return{type:"function",value:t}},Lt=function(){return{type:"named",value:Nt()}},Tt=function(){return parseFloat(Nt())},Ct=0|e.peg$currPos,Rt=Ct,Ft=[{line:1,column:1}],Zt=Ct,$t=e.peg$maxFailExpected||[],jt=0|e.peg$silentFails 159if(e.startRule){if(!(e.startRule in s))throw new Error("Can't start parsing from rule \""+e.startRule+'".') 160i=s[e.startRule]}function Nt(){return t.substring(Rt,Ct)}function Dt(t,e){return{type:"literal",text:t,ignoreCase:e}}function Gt(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function Ut(t){return{type:"other",description:t}}function Vt(e){var r,n=Ft[e] 161if(n)return n 162if(e>=Ft.length)r=Ft.length-1 163else for(r=e;!Ft[--r];);for(n={line:(n=Ft[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++ 164return Ft[e]=n,n}function qt(t,e,r){var n=Vt(t),s=Vt(e) 165return{source:a,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:s.line,column:s.column}}}function kt(t){Ct<Zt||(Ct>Zt&&(Zt=Ct,$t=[]),$t.push(t))}function Bt(){var t 166return(t=Kt())===n&&(t=function(){var t,e 167if(t=[],(e=Ht())!==n)for(;e!==n;)t.push(e),e=Ht() 168else t=n 169return t}()),t}function Kt(){var e,r 170return jt++,e=Ct,Yt(),t.substr(Ct,4)===l?(r=l,Ct+=4):(r=n,0===jt&&kt(C)),r!==n?(Yt(),Rt=e,e=ut()
170):(Ct=e,e=n),jt--,e===n&&0===jt&&kt(T),e}function Ht(){var e,r,a,s 171return e=Ct,Yt(),(r=function(){var e,r,a 172return jt++,e=Ct,(r=zt())!==n?(40===t.charCodeAt(Ct)?(a=h,Ct++):(a=n,0===jt&&kt(N)),a!==n?(Rt=e,e=dt(r)):(Ct=e,e=n)):(Ct=e,e=n),jt--,e===n&&(r=n,0===jt&&kt(j)),e}())!==n?(Yt(),(a=function(){var e,r,a,s,i,o,l,u 173if(e=Ct,(r=Jt())!==n){for(a=[],s=Ct,i=Yt(),44===t.charCodeAt(Ct)?(o=c,Ct++):(o=n,0===jt&&kt(F)),o===n&&(o=null),l=Yt(),(u=Jt())!==n?s=i=[i,o,l,u]:(Ct=s,s=n);s!==n;)a.push(s),s=Ct,i=Yt(),44===t.charCodeAt(Ct)?(o=c,Ct++):(o=n,0===jt&&kt(F)),o===n&&(o=null),l=Yt(),(u=Jt())!==n?s=i=[i,o,l,u]:(Ct=s,s=n) 174Rt=e,e=ht(r,a)}else Ct=e,e=n 175return e}())===n&&(a=null),Yt(),41===t.charCodeAt(Ct)?(s=u,Ct++):(s=n,0===jt&&kt(R)),s!==n?(Yt(),Rt=e,e=ct(r,a)):(Ct=e,e=n)):(Ct=e,e=n),e}function Jt(){var t,e 176return t=Ct,(e=Wt())===n&&(e=Xt())===n&&(e=Qt())===n&&(e=function(){var t,e 177return jt++,t=Ct,Yt(),(e=ee())!==n?(Rt=t,t=At(e)):(Ct=t,t=n),jt--,t===n&&0===jt&&kt(et),t}()),e!==n&&(Rt=t,e=ft(e)),(t=e)===n&&(t=Ct,(e=te())!==n&&(Rt=t,e=pt(e)),t=e),t}function Yt(){var e,r 178for(jt++,e=[],r=t.charAt(Ct),E.test(r)?Ct++:(r=n,0===jt&&kt($));r!==n;)e.push(r),r=t.charAt(Ct),E.test(r)?Ct++:(r=n,0===jt&&kt($)) 179return jt--,r=n,0===jt&&kt(Z),e}function zt(){var e,r,a 180if(jt++,e=Ct,r=[],a=t.charAt(Ct),A.test(a)?Ct++:(a=n,0===jt&&kt(G)),a!==n)for(;a!==n;)r.push(a),a=t.charAt(Ct),A.test(a)?Ct++:(a=n,0===jt&&kt(G)) 181else r=n 182return r!==n&&(Rt=e,r=yt()),jt--,(e=r)===n&&(r=n,0===jt&&kt(D)),e}function Wt(){var e,r,a 183return jt++,e=Ct,Yt(),(r=ee())!==n?(37===t.charCodeAt(Ct)?(a=f,Ct++):(a=n,0===jt&&kt(V)),a!==n?(Rt=e,e=mt(r)):(Ct=e,e=n)):(Ct=e,e=n),jt--,e===n&&0===jt&&kt(U),e}function Xt(){var e,r,a 184return jt++,e=Ct,Yt(),(r=ee())!==n?(t.substr(Ct,2)===p?(a=p,Ct+=2):(a=n,0===jt&&kt(k)),a!==n?(Rt=e,e=gt(r)):(Ct=e,e=n)):(Ct=e,e=n),e===n&&(e=Ct,Yt(),(r=ee())!==n?(t.substr(Ct,2)===d?(a=d,Ct+=2):(a=n,0===jt&&kt(B)),a!==n?(Rt=e,e=bt(r)):(Ct=e,e=n)):(Ct=e,e=n),e===n&&(e=Ct,Yt(),(r=ee())!==n?(t.substr(Ct,2)===y?(a=y,Ct+=2):(a=n,0===jt&&kt(K)),a!==n?(Rt=e,e=vt(r)):(Ct=e,e=n)):(Ct=e,e=n),e===n&&(e=Ct,Yt(),(r=ee())!==n?(t.substr(Ct,2)===m?(a=m,Ct+=2):(a=n,0===jt&&kt(H)),a!==n?(Rt=e,e=Mt(r)):(Ct=e,e=n)):(Ct=e,e=n),e===n&&(e=Ct,Yt(),(r=ee())!==n?(t.substr(Ct,2)===g?(a=g,Ct+=2):(a=n,0===jt&&kt(J)),a!==n?(Rt=e,e=wt(r)):(Ct=e,e=n)):(Ct=e,e=n),e===n&&(e=Ct,Yt(),(r=ee())!==n?(t.substr(Ct,2)===b?(a=b,Ct+=2):(a=n,0===jt&&kt(Y)),a!==n?(Rt=e,e=_t(r)):(Ct=e,e=n)):(Ct=e,e=n)))))),jt--,e===n&&0===jt&&kt(q),e}function Qt(){var e,r,a 185return jt++,e=Ct,(r=ee())!==n?(t.substr(Ct,3)===v?(a=v,Ct+=3):(a=n,0===jt&&kt(W)),a!==n?(Rt=e,e=It(r)):(Ct=e,e=n)):(Ct=e,e=n),e===n&&(e=Ct,(r=ee())!==n?(t.substr(Ct,3)===M?(a=M,Ct+=3):(a=n,0===jt&&kt(X)),a!==n?(Rt=e,e=St(r)):(Ct=e,e=n)):(Ct=e,e=n),e===n&&(e=Ct,(r=ee())!==n?(t.substr(Ct,4)===w?(a=w,Ct+=4):(a=n,0===jt&&kt(Q)),a!==n?(Rt=e,e=xt(r)):(Ct=e,e=n)):(Ct=e,e=n),e===n&&(e=Ct,(r=ee())!==n?(t.substr(Ct,4)===_?(a=_,Ct+=4):(a=n,0===jt&&kt(tt)),a!==n?(Rt=e,e=Et(r)):(Ct=e,e=n)):(Ct=e,e=n)))),jt--,e===n&&(r=n,0===jt&&kt(z)),e}function te(){var e,r,a,s 186if(jt++,e=Ct,35===t.charCodeAt(Ct)?(r=I,Ct++):(r=n,0===jt&&kt(nt)),r!==n){if(a=[],s=t.charAt(Ct),O.test(s)?Ct++:(s=n,0===jt&&kt(at)),s!==n)for(;s!==n;)a.push(s),s=t.charAt(Ct),O.test(s)?Ct++:(s=n,0===jt&&kt(at)) 187else a=n 188a!==n?(Rt=e,e=Ot()):(Ct=e,e=n)}else Ct=e,e=n 189return e===n&&(e=Ct,(r=Ht())!==n&&(Rt=e,r=Pt(r)),(e=r)===n&&(e=Ct,(r=zt())!==n&&(Rt=e,r=Lt()),e=r)),jt--,e===n&&(r=n,0===jt&&kt(rt)),e}function ee(){var e,r,a,s,i,o,l,u 190for(e=Ct,r=t.charAt(Ct),P.test(r)?Ct++:(r=n,0===jt&&kt(st)),r===n&&(r=null),a=Ct,s=[],i=t.charAt(Ct),L.test(i)?Ct++:(i=n,0===jt&&kt(it));i!==n;)s.push(i),i=t.charAt(Ct),L.test(i)?Ct++:(i=n,0===jt&&kt(it)) 191if(46===t.charCodeAt(Ct)?(i=S,Ct++):(i=n,0===jt&&kt(ot)),i!==n){if(o=[],l=t.charAt(Ct),L.test(l)?Ct++:(l=n,0===jt&&kt(it)),l!==n)for(;l!==n;)o.push(l),l=t.charAt(Ct),L.test(l)?Ct++:(l=n,0===jt&&kt(it)) 192else o=n 193o!==n?a=s=[s,i,o]:(Ct=a,a=n)}else Ct=a,a=n 194if(a===n)if(a=[],s=t.charAt(Ct),L.test(s)?Ct++:(s=n,0===jt&&kt(it)),s!==n)for(;s!==n;)a.push(s),s=t.charAt(Ct),L.test(s)?Ct++:(s=n,0===jt&&kt(it)) 195else a=n 196if(a!==n){if(s=Ct,101===t.charCodeAt(Ct)?(i=x,Ct++):(i=n,0===jt&&kt(lt)),i!==n){
196if(o=t.charAt(Ct),P.test(o)?Ct++:(o=n,0===jt&&kt(st)),o===n&&(o=null),l=[],u=t.charAt(Ct),L.test(u)?Ct++:(u=n,0===jt&&kt(it)),u!==n)for(;u!==n;)l.push(u),u=t.charAt(Ct),L.test(u)?Ct++:(u=n,0===jt&&kt(it)) 197else l=n 198l!==n?s=i=[i,o,l]:(Ct=s,s=n)}else Ct=s,s=n 199s===n&&(s=null),Rt=e,e=Tt()}else Ct=e,e=n 200return e}if(r=i(),e.peg$library)return{peg$result:r,peg$currPos:Ct,peg$FAILED:n,peg$maxFailExpected:$t,peg$maxFailPos:Zt} 201if(r!==n&&Ct===t.length)return r 202throw r!==n&&Ct<t.length&&kt({type:"end"}),function(t,e,r){return new o(o.buildMessage(t,e),t,e,r)}($t,Zt<t.length?t.charAt(Zt):null,Zt<t.length?qt(Zt,Zt+1):qt(Zt,Zt))}(t)}catch(e){throw new a.default("effect:invalid-syntax","Invalid effect syntax",{value:t,error:e})}return e.map((t=>function(t){try{switch(t.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(t){let e=1 203return h(t.parameters,1),1===t.parameters.length&&(e=m(t.parameters[0])),new s.yG(t.name,e)}(t) 204case"opacity":return function(t){let e=1 205return h(t.parameters,1),1===t.parameters.length&&(e=m(t.parameters[0])),new s.jm(e)}(t) 206case"hue-rotate":return function(t){let e=0 207return h(t.parameters,1),1===t.parameters.length&&(e=function(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=d[t.unit]))throw new a.default("effect:type-error",`Expected <angle>, Actual: ${f(t)}`,{term:t})}(t),t.value*d[t.unit]||0}(t.parameters[0])),new s.Nd(e)}(t) 208case"blur":return function(t){let e=0 209return h(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0]),p(e,t.parameters[0])),new s.Fk(e)}(t) 210case"drop-shadow":return function(t){const e=[] 211let r=null 212for(const n of t.parameters)if("color"===n.type){if(e.length&&Object.freeze(e),r)throw new a.default("effect:type-error","Accepts only one color",{}) 213r=b(n)}else{const t=g(n) 214if(Object.isFrozen(e))throw new a.default("effect:type-error","<length> parameters not consecutive",{lengths:e}) 215e.push(t),3===e.length&&p(t,n)}if(e.length<2||e.length>3)throw new a.default("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e}) 216return new s.$b(e[0],e[1],e[2]||0,r||v("black"))}(t) 217case"bloom":return function(t){let e=1,r=0,n=0 218return h(t.parameters,3),t.parameters[0]&&(e=m(t.parameters[0])),t.parameters[1]&&(r=g(t.parameters[1]),p(r,t.parameters[1])),t.parameters[2]&&(n=m(t.parameters[2])),new s.bv(e,r,n)}(t)}}catch(e){throw e.details.filter=t,e}throw new a.default("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t)))}function h(t,e){if(t.length>e)throw new a.default("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function f(t){if("color"===t.type)return"<color>" 219if(t.unit){if(t.unit in y)return"<length>" 220if(t.unit in d)return"<angle>" 221if("%"===t.unit)return"<percentage>"}return"<double>"}function p(t,e){if(t<0)throw new a.default("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}(function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r})(o,Error),o.prototype.format=function(t){var e="Error: "+this.message 222if(this.location){var r,n=null 223for(r=0;r<t.length;r++)if(t[r].source===this.location.source){n=t[r].text.split(/\r\n|\n|\r/g) 224break}var a=this.location.start,s=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(a):a,i=this.location.source+":"+s.line+":"+s.column 225if(n){var o=this.location.end,u=l("",s.line.toString().length," "),c=n[a.line-1],h=(a.line===o.line?o.column:c.length+1)-a.column||1 226e+="\n --\x3e "+i+"\n"+u+" |\n"+s.line+" | "+c+"\n"+u+" | "+l("",a.column-1," ")+l("",h,"^")}else e+="\n at "+i}return e},o.buildMessage=function(t,e){var r={literal:function(t){return'"'+a(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?s(t[0])+"-"+s(t[1]):s(t)})) 227return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}} 228function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function a(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function s(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function i(t){return r[t.type](t)}return"Expected "+function(t){var e,r,n=t.map(i) 229if(n.sort(),n.length>0){for(e=1,r=1;e<n.length;e++)n[e-1]!==n[e]&&(n[r]=n[e],r++) 230n.length=r}switch(n.length){case 1:return n[0] 231case 2:return n[0]+" or "+n[1] 232default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(t)+" but "+function(t){return t?'"'+a(t)+'"':"end of input"}(e)+" found."} 233const d={deg:1,grad:.9,rad:180/Math.PI,turn:360},y={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72} 234function m(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new a.default("effect:type-error",`Expected <double> or <percentage>, Actual: ${f(t)}`,{term:t})}(t) 235const e=t.value 236return p(e,t),"%"===t.unit?.01*e:e}function g(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=y[t.unit]))throw new a.default("effect:type-error",`Expected <length>, Actual: ${f(t)}`,{term:t})}(t),t.value*y[t.unit]||0}function b(t){switch(t.colorType){case"hex":return(0,n.qh)(t.value) 237case"named":return v(t.value) 238case"function":return function(t){if(h(t.parameters,4),M.test(t.name))return[m(t.parameters[0]),m(t.parameters[1]),m(t.parameters[2]),t.parameters[3]?m(t.parameters[3]):1] 239if(w.test(t.name))return(0,n.z$)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new a.default("effect:type-error",`Expected <double>, Actual: ${f(t)}`,{term:t})}(t),p(t.value,t),t.value}(t.parameters[0]),m(t.parameters[1]),m(t.parameters[2]),t.parameters[3]?m(t.parameters[3]):1) 240throw new a.default("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function v(t){if(!(0,n.V6)(t))throw new a.default("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t}) 241return(0,n.c4)(t)}const M=/^rgba?/i,w=/^hsla?/i},63043:(t,e,r)=>{r.d(e,{J2:()=>o,O9:()=>s,dw:()=>i,mj:()=>a}) 242var n=r(31136) 243function a(t,e){const r=t.length>e.length?t:e 244return(t.length>e.length?e:t).every(((t,e)=>t.type===r[e].type))}function s(t,e){const r=t.length>e.length?t:e,a=t.length>e.length?e:t 245for(let s=a.length;s<r.length;s++)a.push((0,n.sK)(r[s]))}function i(t){const e=t[0] 246return!!e&&"type"in e}function o(t,e){return JSON.stringify(t??null)===JSON.stringify(e??null)}},98770:(t,e,r)=>{r.d(e,{p:()=>i})
247var n=r(52067),a=r(91937),s=(r(57250),r(12752),r(98389),r(40038)) 248const i=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"))}} 249return(0,n._)([(0,a.MZ)({type:String})],e.prototype,"apiKey",null),e=(0,n._)([(0,s.$)("esri.layers.mixins.APIKeyMixin")],e),e}},34348:(t,e,r)=>{r.d(e,{V:()=>b}) 250var n=r(52067),a=r(33333),s=r(11483),i=r(81814),o=r(83546),l=r(14974),u=r(91937),c=(r(57250),r(12752),r(98389),r(24743)),h=r(40038),f=r(64528),p=r(80110),d=r(12220),y=r(21436),m=r(57047),g=r(41749) 251const b=t=>{let e=class extends t{constructor(){super(...arguments),this.capabilities=void 0,this.copyright=null,this.fullExtent=null,this.legendEnabled=!0,this.spatialReference=null,this.version=void 0,this._allLayersAndTablesMap=null}readCapabilities(t,e){const r=e.capabilities&&e.capabilities.split(",").map((t=>t.toLowerCase().trim())) 252if(!r)return{operations:{supportsExportMap:!1,supportsExportTiles:!1,supportsIdentify:!1,supportsQuery:!1,supportsTileMap:!1},exportMap:null,exportTiles:null} 253const n=this.type,a="tile"!==n&&!!e.supportsDynamicLayers,s=r.includes("query"),i=r.includes("map"),o=!!e.exportTilesAllowed,u=r.includes("tilemap"),c=r.includes("data"),h="tile"!==n&&(!e.tileInfo||a),f="tile"!==n&&(!e.tileInfo||a),p="tile"!==n,d="tile"!==n&&a&&e.currentVersion>=11.1,y=e.cimVersion?l.R.parse(e.cimVersion):null,m=y?.greaterEqual(1,4)??!1,g=y?.greaterEqual(2,0)??!1 254return{operations:{supportsExportMap:i,supportsExportTiles:o,supportsIdentify:s,supportsQuery:c,supportsTileMap:u},exportMap:i?{supportsArcadeExpressionForLabeling:m,supportsCIMSymbols:g,supportsDynamicLayers:a,supportsSublayerOrderBy:d,supportsSublayerDefinitionExpression:f,supportsSublayerVisibility:h,supportsSublayersChanges:p}:null,exportTiles:o?{maxExportTilesCount:+e.maxExportTilesCount}:null}}readVersion(t,e){let r=e.currentVersion 255return r||(r=e.hasOwnProperty("capabilities")||e.hasOwnProperty("tables")?10:e.hasOwnProperty("supportedImageFormatTypes")?9.31:9.3),r}async fetchRelatedService(t){const e=this.portalItem 256if(!e||!(0,g.bK)(e))return null 257this._relatedFeatureServicePromise||(this._relatedFeatureServicePromise=e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},t).then((t=>t.find((t=>"Feature Service"===t.type))??null),(()=>null))) 258const r=await this._relatedFeatureServicePromise 259return(0,i.throwIfAborted)(t),r?{itemId:r.id,url:r.url}:null}async fetchSublayerInfo(t,e){const{source:r}=t 260if(this?.portalItem&&"tile"===this.type&&"map-layer"===r?.type&&(0,g.bK)(this.portalItem)&&t.originIdOf("url")<f.Gr.SERVICE){const n=await this.fetchRelatedService(e) 261n&&(t.url=(0,o.join)(n.url,r.mapLayerId.toString()),t.layerItemId=n.itemId)}const{url:n}=t 262let s 263if("data-layer"===r.type)s=(await(0,a.default)(n,{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey},...e})).data 264else if(n&&t.originIdOf("url")>f.Gr.SERVICE)try{const t=await this._fetchAllLayersAndTablesFromService(n),e=(0,y.qg)(n)?.sublayer??r.mapLayerId 265s=t.get(e)}catch{}else{let n=t.id 266"map-layer"===r?.type&&(n=r.mapLayerId) 267try{s=(await this.fetchAllLayersAndTables(e)).get(n)}catch{}}return s}async fetchAllLayersAndTables(t){return this._fetchAllLayersAndTablesFromService(this.parsedUrl?.path,t)}async _fetchAllLayersAndTablesFromService(t,e){await this.load(e),this._allLayersAndTablesMap||=ne
267w Map 268const r=(0,y.qg)(t),n=(0,s.tE)(this._allLayersAndTablesMap,r?.url.path,(()=>(0,a.default)((0,o.join)(r?.url.path,"/layers"),{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey}}).then((t=>{const e=new Map,{layers:r,tables:n}=t.data,a=[...r??[],...n??[]] 269for(const s of a)e.set(s.id,s) 270return{result:e}}),(t=>({error:t}))))),l=await n 271if((0,i.throwIfAborted)(e),"result"in l)return l.result 272throw l.error}} 273return(0,n._)([(0,u.MZ)({readOnly:!0})],e.prototype,"capabilities",void 0),(0,n._)([(0,c.w)("service","capabilities",["capabilities","exportTilesAllowed","maxExportTilesCount","supportsDynamicLayers","tileInfo"])],e.prototype,"readCapabilities",null),(0,n._)([(0,u.MZ)({json:{read:{source:"copyrightText"}}})],e.prototype,"copyright",void 0),(0,n._)([(0,u.MZ)({type:p.default})],e.prototype,"fullExtent",void 0),(0,n._)([(0,u.MZ)(m.id)],e.prototype,"id",void 0),(0,n._)([(0,u.MZ)({type:Boolean,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend"}}})],e.prototype,"legendEnabled",void 0),(0,n._)([(0,u.MZ)(m.M6)],e.prototype,"popupEnabled",void 0),(0,n._)([(0,u.MZ)({type:d.default})],e.prototype,"spatialReference",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],e.prototype,"version",void 0),(0,n._)([(0,c.w)("service","version",["currentVersion","capabilities","tables","supportedImageFormatTypes"])],e.prototype,"readVersion",null),e=(0,n._)([(0,h.$)("esri.layers.mixins.ArcGISMapService")],e),e}},79234:(t,e,r)=>{r.d(e,{b:()=>l}) 274var n=r(52067),a=r(12752),s=r(91937),i=(r(57250),r(98389),r(40038)),o=r(21436) 275const l=t=>{let e=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title") 276if(this.url){const t=(0,o.qg)(this.url) 277if(t?.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",(0,o.Jf)(t,a.A.getLogger(this)))}} 278return(0,n._)([(0,s.MZ)()],e.prototype,"title",null),(0,n._)([(0,s.MZ)({type:String})],e.prototype,"url",null),e=(0,n._)([(0,i.$)("esri.layers.mixins.ArcGISService")],e),e}},72852:(t,e,r)=>{r.d(e,{LF:()=>c,dM:()=>h,sU:()=>l}) 279var n=r(52067),a=r(91937),s=(r(57250),r(12752),r(98389),r(40038)),i=r(42407),o=r(78493) 280const l={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:i.K}},"portal-item":{read:!0,write:{layerContainerTypes:i.K}}}}},u={read:{reader:o.LF},write:{allowNull:!0,writer:o.M9,layerContainerTypes:i.K}},c={json:{read:!1,write:!1,origins:{"web-map":u,"portal-item":u}}},h=t=>{let e=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}} 281return(0,n._)([(0,a.MZ)(l)],e.prototype,"blendMode",void 0),(0,n._)([(0,a.MZ)(c)],e.prototype,"effect",void 0),e=(0,n._)([(0,s.$)("esri.layers.mixins.BlendLayer")],e),e}},31318:(t,e,r)=>{r.d(e,{d:()=>i}) 282var n=r(52067),a=r(91937),s=(r(57250),r(12752),r(98389),r(40038)) 283const i=t=>{let e=class extends t{constructor(){super(...arguments),this.customParameters=null}} 284return(0,n._)([(0,a.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],e.prototype,"customParameters",void 0),e=(0,n._)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],e),e}},92245:(t,e,r)=>{r.d(e,{A:()=>_})
285var n=r(52067),a=r(24396),s=r(51167),i=r(33333),o=r(79265),l=r(61840),u=r(12752),c=r(92874),h=r(81814),f=r(83546),p=r(91937),d=(r(57250),r(98389),r(24743)),y=r(40038),m=r(62391),g=r(98961),b=r(23687),v=r(56586),M=r(82678),w=r(41749) 286const _=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new v.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:n}=await r.e(58570).then(r.bind(r,58570)) 287return(0,h.throwIfAborted)(e),await n({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,h.isAbortError)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).cat
287ch((t=>((0,h.throwIfAbortError)(t),!0))))}async setUserPrivileges(t,e){if(!a.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e) 288if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:a}}=await this._fetchUserPrivileges(t,e) 289this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",a)}catch(t){(0,h.throwIfAbortError)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem 290if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e) 291const n=!s.id?.findCredential(this.url),a=t===r.id 292if(a&&r.portal.user)return this._getUserPrivileges(r,n) 293let i,o 294if(a)i=r.portal.url 295else try{i=await(0,g.wI)(this.url,e)}catch(t){(0,h.throwIfAbortError)(t)}if(!i||!(0,f.hasSameCanonicalPortal)(i,r.portal.url))return this._fetchFallbackUserPrivileges(e) 296try{const t=null!=e?e.signal:null 297o=await(s.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,h.throwIfAbortError)(t)}const l=!0,u=!1,c=!1 298if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:c}} 299try{if(a?await r.reload():(r=new v.default({id:t,portal:{url:i}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,n)}catch(t){(0,h.throwIfAbortError)(t)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(t,e){const r=(0,w.It)(t) 300return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0 301try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,h.throwIfAbortError)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?s.id?.findCredential(this.url):null 302if(!e)return!0 303const r=I.credential===e?I.user:await this._fetchEditingUser(t) 304return I.credential=e,I.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user 305if(e)return e 306const r=s.id?.findServerInfo(this.url??"") 307if(!r?.owningSystemUrl)return null 308const n=`${r.owningSystemUrl}/sharing/rest`,a=b.default.getDefault() 309if(a&&a.loaded&&(0,f.normalize)(a.restUrl)===(0,f.normalize)(n))return a.user 310const l=`${n}/community/self`,u=null!=t?t.signal:null,c=await(0,o.Ke)((0,i.default)(l,{authMode:"no-prompt",query:{f:"json"},signal:u})) 311return c.ok?M.default.fromJSON(c.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,n=this.portalItem?.id&&(this.portalItem.portal||b.default.getDefault()) 312return r&&n&&!(0,f.hasSamePortal)(n.restUrl,r.restUrl)?(e.messages&&e.messages.push(new l.default("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})}} 313return(0,n._)([(0,p.MZ)({type:v.default})],e.prototype,"portalItem",null),(0,n._)([(0,d.w)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,n._)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,n._)([(0,p.MZ)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,n._)([(0,p.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),(0,n._)([(0,p.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasFullEditingPrivileges",void 0),(0,n._)([(0,p.MZ)({type:Boolean,readOnly:!0})],e.prototype,"userHasUpdateItemPrivileges",void 0),e=(0,n._)([(0,y.$)("esri.layers.mixins.PortalLayer")],e),e},I={credential:null,user:null}},77449:(t,e,r)=>{r.d(e,{J:()=>M,p:()=>v}) 314var n=r(52067),a=(r(57250),r(12752)),s=r(81814),i=r(91937),o=r(86775),l=(r(98389),r(40038)),u=r(42407),c=r(35200),h=r(87874),f=r(62453) 315const p=new c.default,d=new WeakMap 316function y(t,e){return Number.isFinite(t)&&Number.isFinite(e)?e<=0?t:y(e,t%e):0}let m=0,g=0 317function b(){const t=Date.now() 318let e=!1 319for(const r of p){const n=r.deref() 320n?n.refreshInterval&&t-(d.get(n)??0)+5>=6e4*n.refreshInterval&&(d.set(n,t),n.refresh(t)):e=!0}if(e)for(let r=p.length-1;r>=0;r--)p.at(r).deref()||p.removeAt(r)}function v(t){return null!=t&&"object"==typeof t&&"refreshTimestamp"in t&&"refresh"in t}(0,f.fm)((()=>{const t=Date.now() 321let e=0 322for(const r of p){const n=r.deref() 323n&&(e=y(Math.round(6e4*n.refreshInterval),e),n.refreshInterval?d.get(n)||d.set(n,t):d.delete(n))}if(e!==g){if(g=e,clearInterval(m),0===g)return void(m=0) 324m=setInterval(b,g)}}),h.sync) 325const M=t=>{let e=class extends t{constructor(...t){super(...t),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,s.debounce)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||function(t){(function(t){return null!=t&&"object"==typeof t&&"refreshInterval"in t&&"refresh"in t})(t)&&p.push(new WeakRef(t))}(this)}),(()=>{}))}destroy(){!function(t){const e=p.find((e=>e.deref()===t)) 326e&&p.remove(e)}(this)}
326castRefreshInterval(t){return t>=.1?t:t<=0?0:.1}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(t=Date.now()){(0,s.ignoreAbortErrors)(this._debounceHasDataChanged()).then((e=>{e&&this._set("refreshTimestamp",t),this.emit("refresh",{dataChanged:e})}),(t=>{a.A.getLogger(this).error(t),this.emit("refresh",{dataChanged:!1,error:t})}))}async hasDataChanged(){return!0}get test(){}} 327return(0,n._)([(0,i.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:{enabled:!0,layerContainerTypes:u.K}}}}})],e.prototype,"refreshInterval",void 0),(0,n._)([(0,o.w)("refreshInterval")],e.prototype,"castRefreshInterval",null),(0,n._)([(0,i.MZ)({readOnly:!0})],e.prototype,"refreshTimestamp",void 0),(0,n._)([(0,i.MZ)({readOnly:!0})],e.prototype,"refreshParameters",null),e=(0,n._)([(0,l.$)("esri.layers.mixins.RefreshableLayer")],e),e}},36622:(t,e,r)=>{r.d(e,{j:()=>i}) 328var n=r(52067),a=r(91937),s=(r(57250),r(12752),r(98389),r(40038)) 329const i=t=>{let e=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent 330e&&"effectiveScaleRange"in e&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange) 331const r=this._get("effectiveScaleRange") 332return r&&r.minScale===t.minScale&&r.maxScale===t.maxScale?r:t}} 333return(0,n._)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"minScale",void 0),(0,n._)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"maxScale",void 0),(0,n._)([(0,a.MZ)({readOnly:!0})],e.prototype,"effectiveScaleRange",null),e=(0,n._)([(0,s.$)("esri.layers.mixins.ScaleRangeLayer")],e),e}},7399:(t,e,r)=>{r.d(e,{I:()=>g}) 334var n=r(52067),a=r(35200),s=r(7831),i=r(61840),o=r(12752),l=r(87874),u=r(91937),c=(r(57250),r(98389),r(76126)),h=r(40038),f=r(64528),p=r(96596),d=r(18367) 335const y=a.default.ofType(p.default) 336function m(t,e){t&&t.forEach((t=>{e(t),t.sublayers&&t.sublayers.length&&m(t.sublayers,e)}))}const g=t=>{let e=class extends t{constructor(...t){super(...t),this.allSublayers=new s.A({getCollections:()=>[this.sublayers],getChildrenFunction:t=>t.sublayers}),this.sublayersSourceJSON={[f.Gr.SERVICE]:{},[f.Gr.PORTAL_ITEM]:{},[f.Gr.WEB_SCENE]:{},[f.Gr.WEB_MAP]:{},[f.Gr.LINK_CHART]:{}},this.subtables=null,this.addHandles([(0,l.watch)((()=>this.sublayers),((t,e)=>this._handleSublayersChange(t,e)),l.sync),(0,l.watch)((()=>this.subtables),((t,e)=>this._handleSublayersChange(t,e)),l.sync)])}destroy(){this.allSublayers.destroy()}readSublayers(t,e){if(!e||!t)return 337const{sublayersSourceJSON:r}=this,n=(0,f.aB)(e.origin) 338if(n<f.Gr.SERVICE)return 339if(r[n]={context:e,visibleLayers:t.visibleLayers||r[n].visibleLayers,layers:t.layers||r[n].layers},n>f.Gr.SERVICE)return 340this._set("serviceSublayers",this.createSublayersForOrigin("service").sublayers) 341const{sublayers:a,origin:s}=this.createSublayersForOrigin("web-document"),i=(0,c.oY)(this) 342i.setDefaultOrigin(s),this._set("sublayers",new y(a)),i.setDefaultOrigin("user")}findSublayerById(t){return this.allSublayers.find((e=>e.id===t))}createServiceSublayers(){return this.createSublayersForOrigin("service").sublayers}createSublayersForOrigin(t){const e=(0,f.aB)("web-document"===t?"web-map":t) 343let r=f.Gr.SERVICE,n=this.sublayersSourceJSON[f.Gr.SERVICE].layers,a=this.sublayersSourceJSON[f.Gr.SERVICE].context,s=null 344const i=[f.Gr.PORTAL_ITEM,f.Gr.WEB_SCENE,f.Gr.WEB_MAP].filter((t=>t<=e)) 345for(const f of i){const t=this.sublayersSourceJSON[f];(0,d._X)(t.layers)&&(r=f,n=t.layers,a=t.context,t.visibleLayers&&(s={visibleLayers:t.visibleLayers,context:t.context}))}const o=[f.Gr.PORTAL_ITEM,f.Gr.WEB_SCENE,f.Gr.WEB_MAP].filter((t=>t>r&&t<=e)) 346let l=null 347for(const f of o){const{layers:t,visibleLayers:e,context:r}=this.sublayersSourceJSON[f] 348t&&(l={layers:t,context:r}),e&&(s={visibleLayers:e,context:r})}const u=function(t,e){const r=[],n={} 349return t?(t.forEach((t=>{const a=new p.default 350if(a.read(t,e),n[a.id]=a,null!=t.parentLayerId&&-1!==t.parentLayerId){const e=n[t.parentLayerId] 351e.sublayers||(e.sublayers=[]),e.sublayers.unshift(a)}else r.unshift(a)})),r):r}(n,a),c=new Map,h=new Set 352if(l)for(const f of l.layers)c.set(f.id,f) 353if(s?.visibleLayers)for(const f of s.visibleLayers)h.add(f) 354return m(u,(t=>{l&&t.read(c.get(t.id),l.context),s&&t.read({defaultVisibility:h.has(t.id)},s.context)})),{origin:(0,f.OL)(r),sublayers:new y({items:u})}}read(t,e){super.read(t,e),this.readSublayers(t,e)}_handleSublayersChange(t,e){e&&(e.forEach((t=>{t.parent=null,t.layer=null})),this.removeHandles("sublayers-owner")),t&&(t.forEach((t=>{t.parent=this,t.layer=this})),this.addHandles([t.on("after-add",(({item:t})=>{t.parent=this,t.layer=this})),t.on("after-remove",(({item:t})=>{t.parent=null,t.layer=null}))],"sublayers-owner"),"tile"===this.type&&this.addHandles(t.on("before-changes",(t=>{o.A.getLogger("esri.layers.TileLayer").error(new i.default("tilelayer:sublayers-non-modifiable","ISublayer can't be added, moved, or removed from the layer's sublayers",{layer:this})),t.preventDefault()})),"sublayers-owner"))}} 355return(0,n._)([(0,u.MZ)({readOnly:!0})],e.prototype,"allSublayers",void 0),(0,n._)([(0,u.MZ)({readOnly:!0,t
355ype:a.default.ofType(p.default)})],e.prototype,"serviceSublayers",void 0),(0,n._)([(0,u.MZ)({value:null,type:y,json:{read:!1,write:{allowNull:!0,ignoreOrigin:!0}}})],e.prototype,"sublayers",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],e.prototype,"sublayersSourceJSON",void 0),(0,n._)([(0,u.MZ)({type:y,json:{read:{source:"tables"}}})],e.prototype,"subtables",void 0),e=(0,n._)([(0,h.$)("esri.layers.mixins.SublayersOwner")],e),e}},64800:(t,e,r)=>{r.d(e,{C:()=>i,m:()=>s}) 356var n=r(61840),a=r(81814) 357async function s(t,e,r){let s 358try{s=await createImageBitmap(t)}catch(t){throw new n.default("request:server",`Unable to load ${e}`,{url:e,error:t})}return(0,a.throwIfAborted)(r),s}async function i(t,e,r,s,i){let o 359try{o=await createImageBitmap(t)}catch(t){throw new n.default("request:server",`Unable to load tile ${e}/${r}/${s}`,{error:t,level:e,row:r,col:s})}return(0,a.throwIfAborted)(i),o}},18367:(t,e,r)=>{r.d(e,{Sk:()=>s,Zx:()=>a,_X:()=>o}) 360var n=r(64528) 361function a(t,e,r){const n=e.flatten((({sublayers:t})=>t)).length 362return n!==t.length||!!t.some((t=>t.originIdOf("minScale")>r||t.originIdOf("maxScale")>r||t.originIdOf("renderer")>r||t.originIdOf("labelingInfo")>r||t.originIdOf("opacity")>r||t.originIdOf("labelsVisible")>r||t.originIdOf("source")>r))||!i(t,e)}function s(t,e,r){return!!t.some((t=>{const e=t.source,a=!e||"map-layer"===e.type&&e.mapLayerId===t.id&&(null==e.gdbVersion||e.gdbVersion===r) 363t.commitProperty("renderer"),t.commitProperty("labelingInfo"),t.commitProperty("opacity"),t.commitProperty("labelsVisible"),t.commitProperty("orderBy") 364const s=t.layer?.capabilities?.exportMap?.supportsSublayerOrderBy??!1 365return!a||t.originIdOf("renderer")>n.Gr.SERVICE||t.originIdOf("labelingInfo")>n.Gr.SERVICE||t.originIdOf("opacity")>n.Gr.SERVICE||t.originIdOf("labelsVisible")>n.Gr.SERVICE||s&&t.originIdOf("orderBy")>n.Gr.SERVICE}))||!i(t,e)}function i(t,e){if(!t?.length||null==e)return!0 366const r=e.slice().reverse().flatten((({sublayers:t})=>t&&t.toArray().reverse())).map((t=>t.id)).toArray() 367if(t.length>r.length)return!1 368let n=0 369const a=r.length 370for(const{id:s}of t){for(;n<a&&r[n]!==s;)n++ 371if(n>=a)return!1}return!0}function o(t){return!!t&&t.some((t=>null!=t.minScale||null!=t.layerDefinition?.minScale))}},41749:(t,e,r)=>{r.d(e,{It:()=>p,LG:()=>i,OM:()=>u,Sm:()=>c,Y:()=>o,bK:()=>l,mm:()=>f,sQ:()=>h}) 372var n=r(15420),a=r(12220),s=r(84682) 373function i(t,e){if(!o(t,e)){const r=t.typeKeywords 374r?r.push(e):t.typeKeywords=[e]}}function o(t,e){return!!t.typeKeywords?.includes(e)}function l(t){return o(t,f.HOSTED_SERVICE)}function u(t,e){const r=t.typeKeywords 375if(r){const t=r.indexOf(e) 376t>-1&&r.splice(t,1)}}function c(t,e,r){r?i(t,e):u(t,e)}async function h(t){const e=t.clone().normalize() 377let r 378if(e.length>1)for(const n of e)r?n.width>r.width&&(r=n):r=n 379else r=e[0] 380return async function(t){const e=t.spatialReference 381if(e.isWGS84)return t.clone() 382if(e.isWebMercator)return(0,s.webMercatorToGeographic)(t) 383const r=a.default.WGS84 384return await(0,n.initializeProjection)(e,r),(0,n.project)(t,r)}(r)}const f={DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"} 385function p(t){const{portal:e,isOrgItem:r,itemControl:n}=t,a=e.user?.privileges 386let s=!a||a.includes("features:user:edit"),i=!!r&&!!a?.includes("features:user:fullEdit") 387const o="update"===n||"admin"===n 388return o?i=s=!0:i&&(s=!0),{features:{edit:s,fullEdit:i},content:{updateItem:o}}}},8605:(t,e,r)=>{r.d(e,{Ao:()=>i,KQ:()=>o,Tg:()=>s}) 389var n=r(21590),a=r(97906) 390function s(t){return!!t&&null!=a.j[t]}function i(t){return 1/(a.j[t]||1)}const o=function(){const t=Object.keys(a.j) 391return(0,n.TF)(t,"decimal-degrees"),t.sort(),t}()}}])
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.