@arcgis/core 4.29.0-next.20240221 → 4.29.0
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0bc21d2a0b65bd4e9d76.js +1 -0
- package/assets/esri/core/workers/chunks/{6e50220f8e2d392e2855.js → 5b275309d78453a9319e.js} +1 -1
- package/assets/esri/core/workers/chunks/{6fd8047741a0df006ddd.js → 69f6558b538d1b2d3086.js} +1 -1
- package/assets/esri/core/workers/chunks/{63c2ca47e8df5e9b5574.js → 87fb028c66de06bf6d75.js} +1 -1
- package/assets/esri/core/workers/chunks/9307d485a9e5f9fa77d1.js +1 -0
- package/assets/esri/core/workers/chunks/{958402a4f6dd0d23546d.js → a4c3da057ec2a07bbbe8.js} +1 -1
- package/assets/esri/core/workers/chunks/{48c6a9ed53cf4f9255b0.js → b454c6b992bcdbab36a8.js} +1 -1
- package/assets/esri/core/workers/chunks/{e7b26c7e9e24dc6255be.js → cacf97b0a7a1057b9f79.js} +1 -1
- package/config.js +1 -1
- package/copyright.txt +56 -28
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/interfaces.d.ts +8 -8
- package/kernel.js +1 -1
- package/layers/orientedImagery/core/CameraOrientation.js +1 -1
- package/layers/orientedImagery/core/ElevationSourceDefinitions.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.js +5 -0
- package/layers/orientedImagery/transformations/updateElevation.js +5 -0
- package/layers/orientedImagery/transformations/updateElevationUtils.js +5 -0
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/orientedImagery/transformations/worldToImage.js +5 -0
- package/layers/support/EditingCapabilities.js +1 -1
- package/layers/support/LayerContingentValuesCache.js +1 -1
- package/layers/support/editableLayers.js +1 -1
- package/package.json +1 -1
- package/rest/print.js +1 -1
- package/smartMapping/renderers/pieChart.js +1 -1
- package/support/elevationInfoUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/meshFastUpdateUtils.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/layers/support/editableLayerViews.js +5 -0
- package/views/webgl/testDoublePrecisionArithmetic.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/support/EditorEditingCapabilities.js +1 -1
- package/widgets/Editor/support/EditorItem.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
- package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/assets/esri/core/workers/chunks/25f73748df0ee82d06cb.js +0 -1
- package/assets/esri/core/workers/chunks/2d7a18f8c540269ecee9.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1740,8348],{44247:(e,t,i)=>{async function r(e,t){const{WhereClause:r}=await Promise.all([i.e(3220),i.e(988)]).then(i.bind(i,63220));return r.create(e,t)}function o(e,t){return null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}i.d(t,{_:()=>o,u:()=>r})},75824:(e,t,i)=>{i.d(t,{Md:()=>n,m0:()=>s,qG:()=>o});var r=i(39452);class o{}function n(e){return e instanceof r.C?e===o.instance:"unknown"===e?.toString().toLowerCase()}function s(e){return n(e)?o.instance:e}o.instance=new r._C("Etc/UTC")},77048:(e,t,i)=>{i.d(t,{C6:()=>c,FZ:()=>m,K:()=>v,K8:()=>l,MZ:()=>a,Qv:()=>f,Su:()=>o,UN:()=>w,WK:()=>n,WO:()=>y,WU:()=>s,eC:()=>u,is:()=>g,mK:()=>d,qe:()=>p,qy:()=>h,yK:()=>q});var r=i(95247);function o(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function n(e,t,i,r,n,s,a=o()){return a[0]=e,a[1]=t,a[2]=i,a[3]=r,a[4]=n,a[5]=s,a}function s(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new r.c(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function p(e,t,i=0,r=t.length/3){let o=e[0],n=e[1],s=e[2],a=e[3],l=e[4],p=e[5];for(let e=0;e<r;e++)o=Math.min(o,t[i+3*e]),n=Math.min(n,t[i+3*e+1]),s=Math.min(s,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),p=Math.max(p,t[i+3*e+2]);e[0]=o,e[1]=n,e[2]=s,e[3]=a,e[4]=l,e[5]=p}function u(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function c(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function d(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function y(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}function m(e){return e?y(e,v):o(v)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function h(e,t,i,r,o){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=o,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function q(e,t,i){if(null==e||null==t)return e===t;if(!g(e)||!g(t))return!1;if(i){for(let r=0;r<e.length;r++)if(!i(e[r],t[r]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}i(83372);const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];o()},75432:(e,t,i)=>{i.r(t),i.d(t,{default:()=>A});var r=i(41948),o=i(20744),n=i(14628),s=i(1580),a=i(33392),l=i(12552),p=i(672),u=i(3856),c=i(40504),d=(i(9456),i(66360),i(72052),i(43780));const y=[2155,2194,2204,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2314,2867,2868,2869,2870,2871,2872,2873,2874,2875,2876,2877,2878,2879,2880,2881,2882,2883,2884,2885,2886,2887,2888,2889,2890,2891,2892,2893,2894,2895,2896,2897,2898,2899,2900,2901,2902,2903,2904,2905,2906,2907,2908,2909,2910,2911,2912,2913,2914,2915,2916,2917,2918,2919,2920,2921,2922,2923,2924,2925,2926,2927,2928,2929,2930,2964,2965,2966,2967,2968,2992,2994,3080,3089,3091,3102,3359,3359,3361,3363,3365,3366,3404,3407,3417,3418,3419,3420,3421,3422,3423,3424,3425,3426,3427,3428,3429,3430,3431,3432,3433,3434,3435,3436,3437,3438,3441,3442,3443,3444,3445,3446,3451,3452,3453,3454,3455,3456,3457,3458,3459,3479,3481,3483,3485,3487,3490,3492,3494,3496,3498,3500,3502,3504,3506,3508,3510,3512,3515,3517,3519,3521,3523,3525,3527,3529,3531,3533,3535,3537,3539,3541,3543,3545,3547,3549,3551,3553,3560,3561,3562,3563,3564,3565,3566,3567,3568,3569,3570,3582,3584,3586,3588,3590,3593,3598,3600,3605,3608,3610,3612,3614,3616,3618,3620,3622,3624,3626,3628,3630,3632,3634,3636,3640,3642,3644,3646,3648,3650,3652,3654,3656,3658,3660,3662,3664,3668,3670,3672,3674,3676,3677,3679,3680,3682,3683,3686,3688,3690,3692,3696,3698,3700,3728,3729,3730,3731,3732,3733,3734,3735,3736,3737,3738,3739,3753,3754,3755,3756,3757,3758,3759,3760,3991,3992,4217,4399,4400,4401,4402,4403,4404,4405,4406,4407,4408,4409,4410,4411,4412,4413,4418,4419,4420,4421,4422,4423,4424,4425,4426,4427,4428,4429,4430,4431,4432,4433,4438,4439,4455,4456,4457,5466,5588,5589,5623,5624,5625,5646,5654,5655,6128,6129,6141,6200,6201,6202,6391,6405,6407,6409,6411,6413,6416,6418,6420,6422,6424,6426,6428,6430,6432,6434,6436,6438,6441,6443,6445,6447,6449,6451,6453,6455,6457,6459,6461,6463,6465,6467,6469,6471,6473,6475,6477,6479,6484,6486,6488,6490,6492,6494,6496,6499,6501,6503,6505,6507,6510,6515,6517,6519,6521,6523,6525,6527,6529,6531,6533,6535,6537,6539,6541,6543,6545,6547,6549,6551,6553,6555,6557,6559,6561,6563,6565,6568,6570,6572,6574,6576,6578,6582,6584,6586,6588,6590,6593,6595,6597,6599,6601,6603,6605,6607,6609,6612,6614,6616,6618,6625,6626,6627,6633,6785,6787,6789,6791,6793,6795,6797,6799,6801,6803,6805,6807,6809,6811,6813,6815,6817,6819,6821,6823,6825,6827,6829,6831,6833,6835,6837,6839,6841,6843,6845,6847,6849,6851,6853,6855,6857,6859,6861,6863,6868,6880,6885,6887,6923,6925,6966,6997,7057,7058,7059,7060,7061,7062,7063,7064,7065,7066,7067,7068,7069,7070,7119,7120,7121,7122,7123,7124,7125,7126,7127,7128,7132,7258,7260,7262,7264,7266,7268,7270,7272,7274,7276,7278,7280,7282,7284,7286,7288,7290,7292,7294,7296,7298,7300,7302,7304,7306,7308,7310,7312,7314,7316,7318,7320,7322,7324,7326,7328,7330,7332,7334,7336,7338,7340,7342,7344,7346,7348,7350,7352,7354,7356,7358,7360,7362,7364,7366,7368,7370,7558,7587,7588,7589,7590,7591,7592,7593,7594,7595,7596,7597,7598,7599,7600,7601,7602,7603,7604,7605,7606,7607,7608,7609,7610,7611,7612,7613,7614,7615,7616,7617,7618,7619,7620,7621,7622,7623,7624,7625,7626,7627,7628,7629,7630,7631,7632,7633,7634,7635,7636,7637,7638,7639,7640,7641,7642,7643,7644,7645,24100,26729,26730,26731,26732,26733,26734,26735,26736,26737,26738,26739,26740,26741,26742,26743,26744,26745,26746,26747,26748,26749,26750,26751,26752,26753,26754,26755,26756,26757,26758,26759,26760,26766,26767,26768,26769,26770,26771,26772,26773,26774,26775,26776,26777,26778,26779,26780,26781,26782,26783,26784,26785,26786,26787,26791,26792,26793,26794,26795,26796,26797,26798,26799,26801,26802,26803,26811,26812,26813,26814,26815,26819,26820,26821,26822,26825,26826,26830,26831,26832,26833,26836,26837,26841,26842,26843,26844,26847,26848,26849,26850,26851,26852,26853,26854,26855,26856,26857,26858,26859,26860,26861,26862,26863,26864,26865,26866,26867,26868,26869,26870,32001,32002,32003,32005,32006,32007,32008,32009,32010,32011,32012,32013,32014,32015,32016,32017,32018,32019,32020,32021,32022,32023,32024,32025,32026,32027,32028,32029,32030,32031,32033,32034,32035,32036,32037,32038,32039,32040,32041,32042,32043,32044,32045,32046,32047,32048,32049,32050,32051,32052,32053,32054,32055,32056,32057,32058,32064,32065,32066,32067,32074,32075,32076,32077,32099,32164,32165,32166,32167,32664,32665,32666,32667,65061,102120,102121,102629,102630,102631,102632,102633,102634,102635,102636,102637,102638,102639,102640,102641,102642,102643,102644,102645,102646,102648,102649,102650,102651,102652,102653,102654,102655,102656,102657,102658,102659,102660,102661,102662,102663,102664,102665,102666,102667,102668,102669,102670,102671,102672,102673,102674,102675,102676,102677,102678,102679,102680,102681,102682,102683,102684,102685,102686,102687,102688,102689,102690,102691,102692,102693,102694,102695,102696,102697,102698,102700,102704,102707,102708,102709,102710,102711,102712,102713,102714,102715,102716,102717,102718,102719,102720,102721,102722,102723,102724,102725,102726,102727,102728,102729,102730,102733,102734,102735,102736,102737,102738,102739,102740,102741,102742,102743,102744,102745,102746,102747,102748,102749,102750,102751,102752,102753,102754,102755,102756,102757,102758,102761,102766],m=[5614,5702,6130,6131,6132,6358,6359,6360],f=[115700,4326];function h(e){return y.includes(e)?"feet":"meters"}function g(e,t){return"number"==typeof e?m.includes(e)?"feet":"meters":h(t)}function q(e,t){return e&&f.includes(e)||4326===t?"ellipsoidal":"gravity-related-height"}let v=class extends d.c{constructor(){super(...arguments),this.verticalWKID=null}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:r,tangentialDistortionCoefficients:o}=this;return e?.length>1&&!Number.isNaN(t)&&i?.length>1&&r?.length>1&&o?.length>1}get unitAndHeightInfo(){const{horizontalWKID:e,verticalWKID:t}=this;let i=e,r=t;const o=this;if(4===o.type){const{properties:e}=o;i=4326,r=e.verticalWKID}return{heightModel:q(r,i),heightUnit:g(r,i),horizontalUnit:h(i)}}};(0,r._)([(0,s.qq)({json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],v.prototype,"focalLength",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],v.prototype,"horizontalWKID",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],v.prototype,"verticalWKID",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],v.prototype,"x",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],v.prototype,"y",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],v.prototype,"z",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],v.prototype,"type",void 0),(0,r._)([(0,s.qq)({readOnly:!0})],v.prototype,"unitAndHeightInfo",null),v=(0,r._)([(0,l.c)("esri.layers.orientedImagery.core.CameraOrientation")],v);const w=v;let _=class extends((0,u.q)((0,c.Ib)(w))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:r,y:o,z:n,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,m=[e,t,i,r,o,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>m.push(e))),m.push(u),c?.forEach((e=>m.push(e))),d?.forEach((e=>m.push(e))),y?.forEach((e=>m.push(e)))),m.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,r._)([(0,s.qq)({json:{write:!0}})],_.prototype,"type",void 0),(0,r._)([(0,s.qq)({type:[Number],json:{write:!0}})],_.prototype,"affineTransformations",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],_.prototype,"focalLength",void 0),(0,r._)([(0,s.qq)({type:[Number],json:{write:!0}})],_.prototype,"principalOffsetPoint",void 0),(0,r._)([(0,s.qq)({type:[Number],json:{write:!0}})],_.prototype,"radialDistortionCoefficients",void 0),(0,r._)([(0,s.qq)({type:[Number],json:{write:!0}})],_.prototype,"tangentialDistortionCoefficients",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],_.prototype,"heading",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],_.prototype,"pitch",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],_.prototype,"roll",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],_.prototype,"horizontalWKID",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],_.prototype,"verticalWKID",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],_.prototype,"x",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],_.prototype,"y",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],_.prototype,"z",void 0),_=(0,r._)([(0,l.c)("esri.layers.orientedImagery.core.CameraOrientationHPR")],_);const S=_;let x=class extends((0,u.q)((0,c.Ib)(w))){constructor(){super(...arguments),this.type=2,this.verticalWKID=null}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:r,y:o,z:n,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,m=[e,t,i,r,o,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>m.push(e))),m.push(u),c?.forEach((e=>m.push(e))),d?.forEach((e=>m.push(e))),y?.forEach((e=>m.push(e)))),m.map((e=>isNaN(e)?"":e)).join("|")}};(0,r._)([(0,s.qq)({json:{write:!0}})],x.prototype,"type",void 0),(0,r._)([(0,s.qq)({type:[Number],json:{write:!0}})],x.prototype,"affineTransformations",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],x.prototype,"focalLength",void 0),(0,r._)([(0,s.qq)({type:[Number],json:{write:!0}})],x.prototype,"principalOffsetPoint",void 0),(0,r._)([(0,s.qq)({type:[Number],json:{write:!0}})],x.prototype,"radialDistortionCoefficients",void 0),(0,r._)([(0,s.qq)({type:[Number],json:{write:!0}})],x.prototype,"tangentialDistortionCoefficients",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],x.prototype,"omega",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],x.prototype,"phi",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],x.prototype,"kappa",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],x.prototype,"horizontalWKID",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],x.prototype,"verticalWKID",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],x.prototype,"x",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],x.prototype,"y",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],x.prototype,"z",void 0),x=(0,r._)([(0,l.c)("esri.layers.orientedImagery.core.CameraOrientationOPK")],x);const F=x;let b=class extends((0,u.q)((0,c.Ib)(w))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:r,tangentialDistortionCoefficients:o}=this;return e?.length>1||!Number.isNaN(t)||i?.length>1||r?.length>1||o?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:r,y:o,z:n,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,m=[e,t,i,r,o,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>m.push(e))),m.push(u),c?.forEach((e=>m.push(e))),c?.forEach((e=>m.push(e))),d?.forEach((e=>m.push(e))),y?.forEach((e=>m.push(e)))),m.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,r._)([(0,s.qq)({json:{write:!0}})],b.prototype,"type",void 0),(0,r._)([(0,s.qq)({type:[Number],json:{write:!0}})],b.prototype,"affineTransformations",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],b.prototype,"focalLength",void 0),(0,r._)([(0,s.qq)({type:[Number],json:{write:!0}})],b.prototype,"principalOffsetPoint",void 0),(0,r._)([(0,s.qq)({type:[Number],json:{write:!0}})],b.prototype,"radialDistortionCoefficients",void 0),(0,r._)([(0,s.qq)({type:[Number],json:{write:!0}})],b.prototype,"tangentialDistortionCoefficients",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],b.prototype,"yaw",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],b.prototype,"pitch",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],b.prototype,"roll",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],b.prototype,"horizontalWKID",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],b.prototype,"verticalWKID",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],b.prototype,"x",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],b.prototype,"z",void 0),b=(0,r._)([(0,l.c)("esri.layers.orientedImagery.core.CameraOrientationYPR")],b);const N=b;i(66668);let T=class extends c.am{constructor(){super(...arguments),this.url=null}};(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],T.prototype,"lod",void 0),(0,r._)([(0,s.qq)({type:String,json:{write:!0}})],T.prototype,"rasterFunction",void 0),(0,r._)([(0,s.qq)({type:String,json:{write:!0}})],T.prototype,"url",void 0),T=(0,r._)([(0,l.c)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],T);let I=class extends c.am{constructor(){super(...arguments),this.constantElevation=null}};var j;(0,r._)([(0,s.qq)({type:Number,json:{write:!0}})],I.prototype,"constantElevation",void 0),I=(0,r._)([(0,l.c)("esri.layers.orientedImagery.cor.ElevationSourceDefinitions.ConstantElevation")],I),function(e){e[e.HPR=1]="HPR",e[e.OPK=2]="OPK",e[e.YPR=3]="YPR",e[e.LTP=4]="LTP"}(j||(j={}));var P=i(82060);const O=new n.O({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),D=new n.O({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique","":null}),C=new Map;C.set(`${j.OPK}`,{desc:"Using Omega Phi Kappa",constructor:F}),C.set(`${j.HPR}`,{desc:"Using Heading, Pitch and Roll",constructor:S}),C.set(`${j.YPR}`,{desc:"Using Yaw, Pitch and Roll",constructor:N});const R=new Map;function M(e,t,i){return{name:`orientedImageryProperties.${e}`,write:!t||{target:`orientedImageryProperties.${e}`,writer:t},origins:{service:{name:`orientedImageryInfo.orientedImageryProperties.${e}`,write:t,read:i}}}}R.set(`${j.HPR}`,(function(e){const[t,i,r,o,n,s,a,l,p,u,c,d,y,m,f,h,g,q,v,w,_,S]=e.slice(1),x=[p,u,c,d,y,m].map((e=>Number(e))),F=[h,g].map((e=>Number(e))),b=[q,v,w],N=[_,S];return{horizontalWKID:t,verticalWKID:i,x:r,y:o,z:n,heading:s,pitch:a,roll:l,affineTransformations:6===x.filter(P.I).length?x:null,focalLength:f,principalOffsetPoint:2!==F.filter(P.I).length?null:F,radialDistortionCoefficients:3!==b.filter(P.I).length?null:b,tangentialDistortionCoefficients:2!==N.filter(P.I).length?null:N}})),R.set(`${j.YPR}`,(function(e){const[t,i,r,o,n,s,a,l,p,u,c,d,y,m,f,h,g,q,v,w,_,S]=e.slice(1),x=[p,u,c,d,y,m].map((e=>Number(e))),F=[h,g].map((e=>Number(e))),b=[q,v,w],N=[_,S];return{horizontalWKID:t,verticalWKID:i,x:r,y:o,z:n,yaw:s,pitch:a,roll:l,affineTransformations:6===x.filter(P.I).length?x:null,focalLength:f,principalOffsetPoint:2!==F.filter(P.I).length?null:F,radialDistortionCoefficients:3!==b.filter(P.I).length?null:b,tangentialDistortionCoefficients:2!==N.filter(P.I).length?null:N}})),R.set(`${j.OPK}`,(function(e){const[t,i,r,o,n,s,a,l,p,u,c,d,y,m,f,h,g,q,v,w,_,S]=e.slice(1),x=[p,u,c,d,y,m].map((e=>Number(e))),F=[h,g].map((e=>Number(e))),b=[q,v,w].map((e=>Number(e))),N=[_,S].map((e=>Number(e)));return{horizontalWKID:t,verticalWKID:i,x:r,y:o,z:n,omega:s,phi:a,kappa:l,affineTransformations:6===x.filter(P.I).length?x:null,focalLength:f,principalOffsetPoint:2!==F.filter(P.I).length?null:F,radialDistortionCoefficients:3!==b.filter(P.I).length?[0,0,0]:b,tangentialDistortionCoefficients:2!==N.filter(P.I).length?[0,0]:N}})),R.set(`${j.LTP}`,(function(e){const[t,i,r,o,n,...s]=e.slice(1),a=R.get(n);return a?{latitude:t,longitude:i,ellipsoidRadius:r,squaredEccentricity:o,properties:a([n,"",...s])}:null}));let E=class extends p.default{constructor(){super(...arguments),this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.type="oriented-imagery",this.timeIntervalUnit=null,this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.videoPathPrefix=null,this.videoPathSuffix=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:i}=this;return function(e,t,i){return e?(e=>null!=e&&"constantElevation"in e&&"number"==typeof e.constantElevation)(e)?new I(e):function(e,t,i){let{url:r}=e;return r?(r=function(e,t,i){return t&&(e=`${t}${e}`),i&&(e+=`${i}`),e}(r,t,i),new T({...e,url:r})):null}(e,t,i):e}(e,t,i)}findFirstValidLayerId(e){return e.layers?.find((e=>"Oriented Imagery Layer"===e.type))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new o.c("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};(0,r._)([(0,s.qq)({type:Number,json:M("cameraHeading")})],E.prototype,"cameraHeading",void 0),(0,r._)([(0,s.qq)({type:Number,json:M("cameraHeight")})],E.prototype,"cameraHeight",void 0),(0,r._)([(0,s.qq)({type:Number,json:M("cameraPitch")})],E.prototype,"cameraPitch",void 0),(0,r._)([(0,s.qq)({type:Number,json:M("cameraRoll")})],E.prototype,"cameraRoll",void 0),(0,r._)([(0,s.qq)({type:Number,json:M("coveragePercent")})],E.prototype,"coveragePercent",void 0),(0,r._)([(0,s.qq)({type:String,json:M("demPathPrefix")})],E.prototype,"demPathPrefix",void 0),(0,r._)([(0,s.qq)({type:String,json:M("demPathSuffix")})],E.prototype,"demPathSuffix",void 0),(0,r._)([(0,s.qq)({type:String,json:M("depthImagePathPrefix")})],E.prototype,"depthImagePathPrefix",void 0),(0,r._)([(0,s.qq)({type:String,json:M("depthImagePathSuffix")})],E.prototype,"depthImagePathSuffix",void 0),(0,r._)([(0,s.qq)({type:Object,json:M("elevationSource")})],E.prototype,"elevationSource",void 0),(0,r._)([(0,s.qq)()],E.prototype,"effectiveElevationSource",null),(0,r._)([(0,s.qq)({type:Number,json:M("farDistance")})],E.prototype,"farDistance",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],E.prototype,"geometryType",void 0),(0,r._)([(0,s.qq)({type:Number,json:M("horizontalFieldOfView")})],E.prototype,"horizontalFieldOfView",void 0),(0,r._)([(0,s.qq)({type:String,json:M("horizontalMeasurementUnit")})],E.prototype,"horizontalMeasurementUnit",void 0),(0,r._)([(0,s.qq)({type:String,json:M("imagePathPrefix")})],E.prototype,"imagePathPrefix",void 0),(0,r._)([(0,s.qq)({type:String,json:M("imagePathSuffix")})],E.prototype,"imagePathSuffix",void 0),(0,r._)([(0,s.qq)({type:Number,json:M("imageRotation")})],E.prototype,"imageRotation",void 0),(0,r._)([(0,s.qq)({type:Number,json:M("maximumDistance")})],E.prototype,"maximumDistance",void 0),(0,r._)([(0,s.qq)({type:Number,json:M("nearDistance")})],E.prototype,"nearDistance",void 0),(0,r._)([(0,s.qq)({type:["OrientedImageryLayer"]})],E.prototype,"operationalLayerType",void 0),(0,r._)([(0,s.qq)({json:M("orientationAccuracy",((e,t)=>{e&&(t.orientationAccuracy=e.join(","))}))}),(0,a.W)((e=>e?e.trim().split(",").map(Number):null))],E.prototype,"orientationAccuracy",void 0),(0,r._)([(0,s.qq)({json:{...M("orientedImageryType",D.write,D.read),type:D.apiValues}})],E.prototype,"orientedImageryType",void 0),(0,r._)([(0,s.qq)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],E.prototype,"type",void 0),(0,r._)([(0,s.qq)({json:{...M("timeIntervalUnit",O.write,O.read),type:O.apiValues}})],E.prototype,"timeIntervalUnit",void 0),(0,r._)([(0,s.qq)({type:Number,json:M("verticalFieldOfView")})],E.prototype,"verticalFieldOfView",void 0),(0,r._)([(0,s.qq)({json:{...M("verticalMeasurementUnit"),type:new n.O({Feet:"feet",Meter:"meter"}).apiValues}})],E.prototype,"verticalMeasurementUnit",void 0),(0,r._)([(0,s.qq)({type:String,json:M("videoPathPrefix")})],E.prototype,"videoPathPrefix",void 0),(0,r._)([(0,s.qq)({type:String,json:M("videoPathSuffix")})],E.prototype,"videoPathSuffix",void 0),E=(0,r._)([(0,l.c)("esri.layers.OrientedImageryLayer")],E);const A=E},38724:(e,t,i)=>{i.d(t,{C:()=>s});var r=i(41948),o=i(1580),n=(i(9456),i(66360),i(72052),i(12552));const s=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,r._)([(0,o.qq)({type:String})],t.prototype,"apiKey",null),t=(0,r._)([(0,n.c)("esri.layers.mixins.APIKeyMixin")],t),t}},16660:(e,t,i)=>{i.d(t,{u:()=>l});var r=i(41948),o=i(66360),n=i(1580),s=(i(9456),i(72052),i(12552)),a=i(48212);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.K0)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.oR)(e,o.c.getLogger(this)))}};return(0,r._)([(0,n.qq)()],t.prototype,"title",null),(0,r._)([(0,n.qq)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,s.c)("esri.layers.mixins.ArcGISService")],t),t}},87352:(e,t,i)=>{i.d(t,{c:()=>c});var r=i(41948),o=i(3856),n=i(14628),s=i(40504),a=i(1580),l=(i(9456),i(66360),i(72052),i(12552));const p=new n.O({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,o.q)(s.am)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,r._)([(0,a.qq)({json:{write:!0}})],u.prototype,"name",void 0),(0,r._)([(0,a.qq)({json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,a.qq)({json:{read:p.read,write:p.write}})],u.prototype,"drawingTool",void 0),(0,r._)([(0,a.qq)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,r._)([(0,a.qq)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,r._)([(0,l.c)("esri.layers.support.FeatureTemplate")],u);const c=u},79648:(e,t,i)=>{i.d(t,{c:()=>y});var r=i(41948),o=i(3856),n=i(40504),s=i(1580),a=(i(9456),i(66360),i(72052),i(33600)),l=i(12552),p=i(18996),u=i(89812),c=i(87352);let d=class extends((0,o.q)(n.am)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const i of Object.keys(e))t[i]=(0,u.h4)(e[i]);return t}writeDomains(e,t){const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r._)([(0,s.qq)({json:{write:!0}})],d.prototype,"id",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],d.prototype,"name",void 0),(0,r._)([(0,s.qq)({json:{write:!0}})],d.prototype,"domains",void 0),(0,r._)([(0,a.E)("domains")],d.prototype,"readDomains",null),(0,r._)([(0,p.G)("domains")],d.prototype,"writeDomains",null),(0,r._)([(0,s.qq)({type:[c.c],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,r._)([(0,l.c)("esri.layers.support.FeatureType")],d);const y=d},600:(e,t,i)=>{i.d(t,{c:()=>h});var r,o=i(41948),n=i(14628),s=i(40504),a=i(1580),l=i(53368),p=(i(72052),i(9456),i(9968)),u=i(33600),c=i(12552),d=i(89812),y=i(36408);const m=new n.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=r=class extends s.am{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?.value??null}readValueType(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?m.fromJSON(i.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,o._)([(0,a.qq)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,o._)([(0,a.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,o._)([(0,a.qq)()],f.prototype,"description",void 0),(0,o._)([(0,u.E)("description")],f.prototype,"readDescription",null),(0,o._)([(0,a.qq)({types:d.i2,json:{read:{reader:d.h4},write:!0}})],f.prototype,"domain",void 0),(0,o._)([(0,a.qq)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,o._)([(0,a.qq)({type:l.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,o._)([(0,a.qq)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,o._)([(0,a.qq)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,o._)([(0,p.G)(y.M)],f.prototype,"type",void 0),(0,o._)([(0,a.qq)()],f.prototype,"valueType",void 0),(0,o._)([(0,u.E)("valueType",["description"])],f.prototype,"readValueType",null),(0,o._)([(0,a.qq)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=r=(0,o._)([(0,c.c)("esri.layers.support.Field")],f);const h=f},16424:(e,t,i)=>{i.d(t,{c:()=>d});var r=i(20744),o=i(40504),n=i(66360),s=i(86916),a=i(75824),l=i(564),p=i(28484),u=i(39452);const c=new Map;class d{static fromJSON(e){return new d(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new d(e.fields??[],h(e))}static fromLayerJSON(e){return new d(e.fields??[],h(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=m(t);if(t&&r){const o=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(o,e),this._normalizedFieldsMap.set(r,e),i.push(`${o}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.Mz)(e)||(0,l.w1)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.Mz)(e)||(0,l.w1)(e)||e.nullable||void 0!==(0,l.gB)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(y(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.c.getLogger("esri.layers.support.FieldsIndex").error(new r.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),p.Gw):f.has(t.type)?p.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===p.OI?a.qG.instance:t===p.Gw?u.Kq.utcInstance:(0,s.wJ)(c,t,(()=>u._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.eM)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,o.wt)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function y(e){return e.trim().toLowerCase()}function m(e){return(0,l.gP)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function h(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:o}=e,n=(r?"startField"in r?r.startField:r.startTimeField:"")??"",s=(r?"endField"in r?r.endField:r.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,p.Mt)(e.dateFieldsTimeReference):null,l=o?function(e){return"timeZone"in e}(o)?o.timeZone??a:o.dateFieldsTimeReference?(0,p.Mt)(o.dateFieldsTimeReference):a??p.Gw:null,u=r?function(e){return"timeZone"in e}(r)?r.timeZone??a:r.timeReference?(0,p.Mt)(r.timeReference):a:null,c=new Map([[y(o?.creationDateField??""),l],[y(o?.editDateField??""),l],[y(n),u],[y(s),u]]);for(const{name:r,type:o}of e.fields)if(f.has(o))t.set(r,p.OI);else if("date"!==o&&"esriFieldTypeDate"!==o)t.set(r,null);else if(i)t.set(r,p.OI);else{const e=c.get(y(r??""))??a;t.set(r,e)}return t}},24144:(e,t,i)=>{i.d(t,{c:()=>u});var r,o=i(41948),n=i(2952),s=i(40504),a=i(1580),l=(i(9456),i(66360),i(72052),i(12552));let p=r=class extends s.am{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.c}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o._)([(0,a.qq)({type:String,json:{write:!0}})],p.prototype,"floorField",void 0),(0,o._)([(0,a.qq)({json:{read:!1,write:!1}})],p.prototype,"viewAllMode",void 0),(0,o._)([(0,a.qq)({json:{read:!1,write:!1}})],p.prototype,"viewAllLevelIds",void 0),p=r=(0,o._)([(0,l.c)("esri.layers.support.LayerFloorInfo")],p);const u=p},89812:(e,t,i)=>{i.d(t,{h4:()=>F,i2:()=>x}),i(9456);var r,o=i(41948),n=i(62088),s=i(1580),a=(i(66360),i(9968)),l=i(12552),p=i(40504);i(72052);let u=r=class extends p.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,o._)([(0,s.qq)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,o._)([(0,s.qq)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=r=(0,o._)([(0,l.c)("esri.layers.support.CodedValue")],u);const c=new(i(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends p.am{constructor(e){super(e),this.name=null,this.type=null}};(0,o._)([(0,s.qq)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,o._)([(0,a.G)(c)],d.prototype,"type",void 0),d=(0,o._)([(0,l.c)("esri.layers.support.Domain")],d);const y=d;var m;let f=m=class extends y{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some((e=>(String(e.code)===i&&(t=e.name),!!t)))}return t}clone(){return new m({codedValues:(0,n.ct)(this.codedValues),name:this.name})}};(0,o._)([(0,s.qq)({type:[u],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,o._)([(0,a.G)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=m=(0,o._)([(0,l.c)("esri.layers.support.CodedValueDomain")],f);const h=f;var g;i(20744);let q=g=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,o._)([(0,a.G)({inherited:"inherited"})],q.prototype,"type",void 0),q=g=(0,o._)([(0,l.c)("esri.layers.support.InheritedDomain")],q);const v=q;var w;let _=w=class extends y{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,s.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]}}}})],_.prototype,"maxValue",void 0),(0,o._)([(0,s.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]}}}})],_.prototype,"minValue",void 0),(0,o._)([(0,a.G)({range:"range"})],_.prototype,"type",void 0),_=w=(0,o._)([(0,l.c)("esri.layers.support.RangeDomain")],_);const S=_,x={key:"type",base:y,typeMap:{range:_,"coded-value":h,inherited:v}};function F(e){if(!e?.type)return null;switch(e.type){case"range":return S.fromJSON(e);case"codedValue":return h.fromJSON(e);case"inherited":return v.fromJSON(e)}return null}},36408:(e,t,i)=>{i.d(t,{M:()=>r});const r=new(i(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},4144:(e,t,i)=>{i.d(t,{GC:()=>x,I5:()=>f,Wi:()=>g,Y$:()=>m,cF:()=>h,wf:()=>q,y6:()=>y});var r=i(88264);const o="__begin__",n="__end__",s=new RegExp(o,"ig"),a=new RegExp(n,"ig"),l=new RegExp("^"+o,"i"),p=new RegExp(n+"$","i"),u='"',c=u+" + ",d=" + "+u;function y(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function m(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=y(e.labelExpression),t.type="conventional"),t}function h(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return q(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(v);return t?.[1].trim()||null}(t.expression);case"arcade":return x(t.expression)}return null}function q(e){let t;return e?(t=(0,r.qq)(e,(e=>o+'$feature["'+e+'"]'+n)),t=l.test(t)?t.replace(l,""):u+t,t=p.test(t)?t.replace(p,""):t+u,t=t.replaceAll(s,c).replaceAll(a,d)):t='""',t}const v=/^\s*\{([^}]+)\}\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,_=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,S=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function x(e){if(!e)return null;let t=w.exec(e)||_.exec(e);return t?t[1]||t[3]:(t=S.exec(e),t?t[2]:null)}},54712:(e,t,i)=>{i.d(t,{S:()=>c});var r=i(9456),o=i(48212);function n(e,t,i){return!!a(e,t,i)}function s(e,t,i){return a(e,t,i)}function a(e,t,i){return e&&e.hasOwnProperty(t)?e[t]:i}const l={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function p(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function u(e,t){const i=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!i?.includes(t.toLowerCase())}function c(e,t){return{analytics:d(e),attachment:y(e),data:m(e),metadata:f(e),operations:h(e.capabilities,e,t),query:g(e,t),queryRelated:q(e),queryTopFeatures:v(e),editing:w(e)}}function d(e){return{supportsCacheHint:u(e.advancedQueryCapabilities,"queryAnalytics")}}function y(e){const t=e.attachmentProperties,i={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:u(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:n(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=l[e.name];t&&(i[t]=!!e.isEnabled)})),i}function m(e){return{isVersioned:n(e,"isDataVersioned",!1),supportsAttachment:n(e,"hasAttachments",!1),supportsM:n(e,"hasM",!1),supportsZ:n(e,"hasZ",!1)}}function f(e){return{supportsAdvancedFieldProperties:n(e,"supportsFieldDescriptionProperty",!1)}}function h(e,t,i){const r=e?e.toLowerCase().split(",").map((e=>e.trim())):[],s=i?(0,o.K0)(i):null,a=r.includes(null!=s&&"MapServer"===s.serverType?"data":"query"),l=r.includes("editing")&&!t.datesInUnknownTimezone;let p=l&&r.includes("create"),u=l&&r.includes("delete"),c=l&&r.includes("update");const d=r.includes("changetracking"),y=t.advancedQueryCapabilities;return l&&!(p||u||c)&&(p=u=c=!0),{supportsCalculate:n(t,"supportsCalculate",!1),supportsTruncate:n(t,"supportsTruncate",!1),supportsValidateSql:n(t,"supportsValidateSql",!1),supportsAdd:p,supportsDelete:u,supportsEditing:l,supportsChangeTracking:d,supportsQuery:a,supportsQueryAnalytics:n(y,"supportsQueryAnalytic",!1),supportsQueryAttachments:n(y,"supportsQueryAttachments",!1),supportsQueryTopFeatures:n(y,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:n(t,"supportsAttachmentsResizing",!1),supportsSync:r.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:n(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:n(t,"supportsAsyncConvert3D",!1)}}function g(e,t){const i=e.advancedQueryCapabilities,a=e.ownershipBasedAccessControlForFeatures,l=e.archivingInfo,c=e.currentVersion,d=t?.includes("MapServer"),y=!d||c>=(0,r.c)("mapserver-pbf-version-support"),m=(0,o.Wq)(t),f=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{supportsStatistics:n(i,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:n(i,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:n(i,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:p(i),supportsCentroid:n(i,"supportsReturningGeometryCentroid",!1),supportsDistance:n(i,"supportsQueryWithDistance",!1),supportsDistinct:n(i,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:n(i,"supportsReturningQueryExtent",!1),supportsGeometryProperties:n(i,"supportsReturningGeometryProperties",!1),supportsHavingClause:n(i,"supportsHavingClause",!1),supportsOrderBy:n(i,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:n(i,"supportsPagination",!1),supportsQuantization:n(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:n(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:n(e,"supportsReturningQueryGeometry",!1),supportsResultType:n(i,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:n(i,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:n(i,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:n(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:n(i,"supportsTopFeaturesQuery",!1),supportsQueryByAnonymous:n(a,"allowAnonymousToQuery",!0),supportsQueryByOthers:n(a,"allowOthersToQuery",!0),supportsHistoricMoment:n(l,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:y&&f.has("pbf"),supportsDisjointSpatialRelationship:n(i,"supportsDisjointSpatialRel",!1),supportsCacheHint:n(i,"supportsQueryWithCacheHint",!1)||u(i,"query"),supportsDefaultSpatialReference:n(i,"supportsDefaultSR",!1),supportsCompactGeometry:m,supportsFullTextSearch:n(i,"supportsFullTextSearch",!1),maxRecordCountFactor:s(e,"maxRecordCountFactor",void 0),maxRecordCount:s(e,"maxRecordCount",void 0),standardMaxRecordCount:s(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:s(e,"tileMaxRecordCount",void 0)}}function q(e){const t=e.advancedQueryCapabilities,i=n(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:n(t,"supportsQueryRelatedPagination",!1),supportsCount:i,supportsOrderBy:i,supportsCacheHint:u(t,"queryRelated")}}function v(e){return{supportsCacheHint:u(e.advancedQueryCapabilities,"queryTopFilter")}}function w(e){const t=e.ownershipBasedAccessControlForFeatures,i=e?e.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:n(e,"allowGeometryUpdates",!0),supportsGlobalId:n(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:n(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:n(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:n(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:n(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:n(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:n(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:n(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:n(t,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:n(i,"supportsAsyncApplyEdits",!1),zDefault:s(e,"zDefault",void 0)}}},21012:(e,t,i)=>{i.d(t,{M:()=>o});var r=i(37924);function o(e,t,i){if(!i?.features||!i.hasZ)return;const o=(0,r.O)(i.geometryType,t,e.outSpatialReference);if(null!=o)for(const e of i.features)o(e.geometry)}},59500:(e,t,i)=>{i.d(t,{c:()=>v});var r,o=i(41948),n=i(60708),s=i(6444),a=i(14628),l=i(40504),p=i(62088),u=i(1580),c=(i(9456),i(66360),i(33600)),d=i(12552),y=i(18996),m=i(56156),f=i(6704),h=i(600);const g=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let q=r=class extends l.am{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const i=m.c.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const o=e[t],n=s.c.fromJSON(o),a=o.geometry?.spatialReference;null==n.geometry||a||(n.geometry.spatialReference=i);const l=o.aggregateGeometries,p=n.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],r=l[e],o=r?.spatialReference;null==t||o||(t.spatialReference=i)}r.push(n)}return r}writeGeometryType(e,t,i,r){if(e)return void g.write(e,t,i,r);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void g.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,r=(0,f.h4)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=m.c.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,p.ct)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const r=t.features[i];if(r.geometry){const t=e?.[i];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,i],translate:[r,o]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-r)/t)),(e=>Math.round((o-e)/i)));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[r,o],scale:[n,s]}=i;let a=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;a=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const p=this._getHydrationFunction(e,(e=>e*n+r),(e=>o-e*s),a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}_quantizePoints(e,t,i){let r,o;const n=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=i(a[1]);e===r&&s===o||(n.push([e-r,s-o]),r=e,o=s)}else r=t(a[0]),o=i(a[1]),n.push([r,o])}return n.length>0?n:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,f.Cs)(e)?e.rings:e.paths,o=[];for(let e=0,n=r.length;e<n;e++){const n=r[e],s=this._quantizePoints(n,t,i);s&&o.push(s)}return o.length>0?((0,f.Cs)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,o){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,f.Cs)(e)?e.rings:e.paths;let s,a;for(let e=0,r=n.length;e<r;e++){const r=n[e];for(let e=0,o=r.length;e<o;e++){const o=r[e];e>0?(s+=o[0],a+=o[1]):(s=o[0],a=o[1]),o[0]=t(s),o[1]=i(a)}}if(r&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2]),i[3]=o(i[3])}}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=o(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let s,a;for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=i(a)}if(r&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2]),t[3]=o(t[3])}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2])}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2])}}:null}};(0,o._)([(0,u.qq)({type:String,json:{write:!0}})],q.prototype,"displayFieldName",void 0),(0,o._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],q.prototype,"exceededTransferLimit",void 0),(0,o._)([(0,u.qq)({type:[s.c],json:{write:!0}})],q.prototype,"features",void 0),(0,o._)([(0,c.E)("features")],q.prototype,"readFeatures",null),(0,o._)([(0,u.qq)({type:[h.c],json:{write:!0}})],q.prototype,"fields",void 0),(0,o._)([(0,u.qq)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],q.prototype,"geometryType",void 0),(0,o._)([(0,y.G)("geometryType")],q.prototype,"writeGeometryType",null),(0,o._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],q.prototype,"hasM",void 0),(0,o._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],q.prototype,"hasZ",void 0),(0,o._)([(0,u.qq)({types:n.Su,json:{write:!0}})],q.prototype,"queryGeometry",void 0),(0,o._)([(0,c.E)("queryGeometry")],q.prototype,"readQueryGeometry",null),(0,o._)([(0,u.qq)({type:m.c,json:{write:!0}})],q.prototype,"spatialReference",void 0),(0,o._)([(0,y.G)("spatialReference")],q.prototype,"writeSpatialReference",null),(0,o._)([(0,u.qq)({json:{write:!0}})],q.prototype,"transform",void 0),q=r=(0,o._)([(0,d.c)("esri.rest.support.FeatureSet")],q),q.prototype.toJSON.isDefaultToJSON=!0;const v=q},45704:(e,t,i)=>{i.d(t,{Sg:()=>u,Uj:()=>p,Uz:()=>l,YP:()=>c}),i(9456);var r=i(47472),o=i(7432),n=i(49736),s=i(28652),a=i(9504);const l=n.c.fromJSON(a.qe),p=o.c.fromJSON(a.MZ),u=r.c.fromJSON(a.yq),c=s.c.fromJSON(a.gF);n.c.fromJSON(a.gP),o.c.fromJSON(a.aV),r.c.fromJSON(a.wp)},9504:(e,t,i)=>{i.d(t,{MZ:()=>n,aV:()=>p,gF:()=>a,gP:()=>l,qe:()=>o,wp:()=>u,yq:()=>s});const r=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},p={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},u={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2296],{44728:(e,t,r)=>{r.d(t,{c:()=>c});var i,n,s=r(46988),o=r(53648),l=r(53368);function a(e){return(0,o.qk)((0,l.Wu)(e),0,255)}function d(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function u(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class p{static blendColors(e,t,r,i=new p){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),i=r[1];if("rgb"===i&&3===e.length||"rgba"===i&&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])),p.fromArray(r,t)}return p.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===i&&3===e.length||"hsla"===i&&4===e.length)return p.fromArray((0,s.ec)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new p){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),i=parseInt(e.substring(2,3),16),n=parseInt(e.substring(3,4),16),s=5===e.length?15:parseInt(e.substring(4),16);return p.fromArray([r+16*r,i+16*i,n+16*n,(s+16*s)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),i=parseInt(e.substring(3,5),16),n=parseInt(e.substring(5,7),16),s=7===e.length?255:parseInt(e.substring(7),16);return p.fromArray([r,i,n,s/255],t)}default:return null}}static fromArray(e,t=new p){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,s.kv)(e)?(0,s.SQ)(e):null;return r&&p.fromArray(r,t)||p.fromRgb(e,t)||p.fromHex(e,t)}static fromJSON(e){return null!=e?new p([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?p.fromString(e,this):Array.isArray(e)?p.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof p||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${u(this.r,i)}${u(this.g,i)}${u(this.b,i)}${n?u(Math.round(255*this.a),i):""}`;return t?s.toUpperCase():s}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=p.AlphaMode.ALWAYS){const t=a(this.r),r=a(this.g),i=a(this.b);return e===p.AlphaMode.ALWAYS||1!==this.a?[t,r,i,a(255*this.a)]:[t,r,i]}clone(){return new p(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(d(this.r,0,255)),this.g=Math.round(d(this.g,0,255)),this.b=Math.round(d(this.b,0,255)),this.a=d(this.a,0,1),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}p.prototype.declaredClass="esri.Color",(n=(i=p||(p={})).AlphaMode||(i.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const c=p},25228:(e,t,r)=>{r.d(t,{c:()=>m});var i,n=r(41948),s=r(40504),o=r(94360),l=r(1580),a=(r(9456),r(66360),r(72052),r(33600)),d=r(12552),u=r(18996),p=r(28484);let c=i=class extends s.am{static get allTime(){return h}static get empty(){return y}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.aU)(r,e,t));let n=this.end;if(n){const r=(0,o.aU)(n,e,t);n=n.getTime()===r.getTime()?r:(0,o.g1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,l;if(n>=t&&n<=r?o=n:t>=n&&t<=s&&(o=t),r>=n&&r<=s?l=r:s>=t&&s<=r&&(l=s),null!=o&&null!=l&&!isNaN(o)&&!isNaN(l)){const e=new i;return e.start=o===-1/0?null:new Date(o),e.end=l===1/0?null:new Date(l),e}return i.empty}offset(e,t,r=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.g1)(s,e,t,r)),null!=l&&(n.end=(0,o.g1)(l,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n._)([(0,a.E)("end")],c.prototype,"readEnd",null),(0,n._)([(0,u.G)("end")],c.prototype,"writeEnd",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n._)([(0,a.E)("start")],c.prototype,"readStart",null),(0,n._)([(0,u.G)("start")],c.prototype,"writeStart",null),c=i=(0,n._)([(0,d.c)("esri.TimeExtent")],c);const h=new c,y=new c({start:void 0,end:void 0}),m=c},3856:(e,t,r)=>{r.d(t,{m:()=>p,q:()=>u});var i=r(41948),n=r(43780),s=(r(9456),r(62088)),o=(r(66360),r(70680)),l=r(71448),a=r(20916),d=r(12552);const u=e=>{let t=class extends e{clone(){const e=(0,a.m6)(this);(0,o.EN)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,i={},n=new Map;for(const e in t){const o=t[e],a=r?.originOf(e),d=o.clonable;if(o.readOnly||!1===d||a!==l.sT.USER&&a!==l.sT.DEFAULTS&&a!==l.sT.WEB_MAP&&a!==l.sT.WEB_SCENE)continue;const u=this[e];let p=null;p="function"==typeof d?d(u):"reference"===d?u:(0,s.gx)(u),null!=u&&null==p||(a===l.sT.DEFAULTS?n.set(e,p):i[e]=p)}const d=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const e=(0,a.m6)(d)?.store;if(e)for(const[t,r]of n)e.set(t,r,l.sT.DEFAULTS)}return d}};return t=(0,i._)([(0,d.c)("esri.core.Clonable")],t),t};let p=class extends(u(n.c)){};p=(0,i._)([(0,d.c)("esri.core.Clonable")],p)},22156:(e,t,r)=>{r.d(t,{MR:()=>o,qm:()=>l});var i=r(41948),n=r(12552);let s=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,i._)([(0,n.c)("esri.core.Identifiable")],t),t},l=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return t=(0,i._)([(0,n.c)("esri.core.NumericIdentifiable")],t),t};let a=class extends(o(class{})){};a=(0,i._)([(0,n.c)("esri.core.Identifiable")],a)},75824:(e,t,r)=>{r.d(t,{Md:()=>s,m0:()=>o,qG:()=>n});var i=r(39452);class n{}function s(e){return e instanceof i.C?e===n.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return s(e)?n.instance:e}n.instance=new i._C("Etc/UTC")},63564:(e,t,r)=>{r.d(t,{Mr:()=>o,cf:()=>s,g1:()=>n});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${n().toUpperCase()}}`}function o(){return`{${n()}}`}},13819:(e,t,r)=>{r.d(t,{c:()=>b});var i,n=r(41948),s=r(92400),o=r(14628),l=r(40504),a=r(24296),d=r(69504),u=r(1580),p=(r(9456),r(66360),r(33600)),c=r(12552),h=r(18996);const y=(0,o.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,s.sH)(m,"orthometric");const f=(0,o.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=i=class extends l.am{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new d.c("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,a.oG)(e)||f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,a._2)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new d.c("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,u.qq)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,n._)([(0,h.G)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,n._)([(0,p.E)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,n._)([(0,u.qq)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],g.prototype,"heightUnit",void 0),(0,n._)([(0,p.E)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,n._)([(0,p.E)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,n._)([(0,u.qq)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,n._)([(0,p.E)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=i=(0,n._)([(0,c.c)("esri.geometry.HeightModelInfo")],g);const b=g},81436:(e,t,r)=>{r.d(t,{c:()=>b});var i=r(41948),n=(r(60708),r(2600)),s=r(20744),o=r(77860),l=r(22156),a=r(95800),d=r(66360),u=r(10860),p=r(28176),c=r(1580),h=(r(9456),r(72052),r(12552)),y=r(6220),m=r(95247),f=r(56156);let g=0,v=class extends(o.c.EventedMixin((0,l.MR)(a.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.c(-180,-90,180,90,f.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t&&t.portalItem,i=r?.id||"unset",n=r&&r.portal&&r.portal.url||y.default.portalUrl;throw d.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,u.mA)(e)||d.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,p.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,c.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,c.qq)({type:m.c})],v.prototype,"fullExtent",void 0),(0,i._)([(0,c.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,c.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,c.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,c.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,c.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,c.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,c.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,c.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,c.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,c.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,c.qq)({type:f.c})],v.prototype,"spatialReference",void 0),(0,i._)([(0,c.qq)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,c.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,c.qq)()],v.prototype,"url",void 0),(0,i._)([(0,c.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,h.c)("esri.layers.Layer")],v);const b=v},21680:(e,t,r)=>{r.r(t),r.d(t,{default:()=>te});var i=r(41948),n=r(82692),s=r(2600),o=r(20744),l=r(62088),a=r(66360),d=r(26496),u=r(58820),p=r(10860),c=r(28176),h=r(1580),y=(r(9456),r(33600)),m=r(12552),f=r(18996),g=r(81436),v=r(38724),b=r(16660),w=r(28584),q=r(66576),_=r(98768),S=r(3116),T=r(87072),F=r(53368),I=r(9968),x=r(40504);r(72052);let C=class extends x.am{constructor(e){super(e),this.field=null,this.type=null}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}};(0,i._)([(0,h.qq)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],C.prototype,"field",void 0),(0,i._)([(0,h.qq)({readOnly:!0,nonNullable:!0,json:{read:!1}})],C.prototype,"type",void 0),C=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudFilter")],C);const j=C;var N;let E=N=class extends j{constructor(e){super(e),this.requiredClearBits=null,this.requiredSetBits=null,this.type="bitfield"}clone(){return new N({field:this.field,requiredClearBits:(0,l.ct)(this.requiredClearBits),requiredSetBits:(0,l.ct)(this.requiredSetBits)})}};(0,i._)([(0,h.qq)({type:[F.Ab],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredSetBits}}}}})],E.prototype,"requiredClearBits",void 0),(0,i._)([(0,h.qq)({type:[F.Ab],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredClearBits}}}}})],E.prototype,"requiredSetBits",void 0),(0,i._)([(0,I.G)({pointCloudBitfieldFilter:"bitfield"})],E.prototype,"type",void 0),E=N=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudBitfieldFilter")],E);const O=E;var R;let V=R=class extends j{constructor(e){super(e),this.includedReturns=[],this.type="return"}clone(){return new R({field:this.field,includedReturns:(0,l.ct)(this.includedReturns)})}};(0,i._)([(0,h.qq)({type:[["firstOfMany","last","lastOfMany","single"]],json:{write:{enabled:!0,isRequired:!0}}})],V.prototype,"includedReturns",void 0),(0,i._)([(0,I.G)({pointCloudReturnFilter:"return"})],V.prototype,"type",void 0),V=R=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudReturnFilter")],V);const P=V;var A;let M=A=class extends j{constructor(e){super(e),this.mode="exclude",this.type="value",this.values=[]}clone(){return new A({field:this.field,mode:this.mode,values:(0,l.ct)(this.values)})}};(0,i._)([(0,h.qq)({type:["exclude","include"],json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"mode",void 0),(0,i._)([(0,I.G)({pointCloudValueFilter:"value"})],M.prototype,"type",void 0),(0,i._)([(0,h.qq)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"values",void 0),M=A=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudValueFilter")],M);const U={key:"type",base:j,typeMap:{value:M,bitfield:O,return:P}};var D,L=r(21488),B=r(600),k=r(81732),G=r(83336),$=r(12432),z=r(96220);let H=D=class extends z.c{constructor(e){super(e),this.type="point-cloud-rgb",this.field=null}clone(){return new D({...this.cloneProperties(),field:(0,l.ct)(this.field)})}};(0,i._)([(0,I.G)({pointCloudRGBRenderer:"point-cloud-rgb"})],H.prototype,"type",void 0),(0,i._)([(0,h.qq)({type:String,json:{write:!0}})],H.prototype,"field",void 0),H=D=(0,i._)([(0,m.c)("esri.renderers.PointCloudRGBRenderer")],H);const K=H;var Z=r(56185),J=r(53224);const W={key:"type",base:z.c,typeMap:{"point-cloud-class-breaks":$.c,"point-cloud-rgb":K,"point-cloud-stretch":Z.c,"point-cloud-unique-value":J.c},errorContext:"renderer"};var Y=r(69204),X=r(65548);const Q=(0,k.l)();let ee=class extends((0,T.G6)((0,b.u)((0,q.Y)((0,_.K)((0,S.I)((0,d.U)((0,w.G)((0,v.C)(g.c))))))))){constructor(...e){super(...e),this.operationalLayerType="PointCloudLayer",this.popupEnabled=!0,this.popupTemplate=null,this.opacity=1,this.filters=[],this.fields=null,this.fieldsIndex=null,this.outFields=null,this.path=null,this.legendEnabled=!0,this.renderer=null,this.type="point-cloud"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get defaultPopupTemplate(){return this.attributeStorageInfo?this.createPopupTemplate():null}getFieldDomain(e){const t=this.fieldsIndex.get(e);return t?.domain?t.domain:null}readServiceFields(e,t,r){return Array.isArray(e)?e.map((e=>{const t=new B.c;return"FieldTypeInteger"===e.type&&((e=(0,l.ct)(e)).type="esriFieldTypeInteger"),t.read(e,r),t})):Array.isArray(t.attributeStorageInfo)?t.attributeStorageInfo.map((e=>new B.c({name:e.name,type:"ELEVATION"===e.name?"double":"integer"}))):null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}writeRenderer(e,t,r,i){(0,u.qQ)("layerDefinition.drawingInfo.renderer",e.write({},i),t)}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(p.CE).then((()=>this._fetchService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){const t=(0,X.Ap)(this,e);return t&&(this._formatPopupTemplateReturnsField(t),this._formatPopupTemplateRGBField(t)),t}_formatPopupTemplateReturnsField(e){const t=this.fieldsIndex.get("RETURNS");if(!t)return;const r=e.fieldInfos?.find((e=>e.fieldName===t.name));if(!r)return;const i=new G.c({name:"pcl-returns-decoded",title:t.alias||t.name,expression:`\n var returnValue = $feature.${t.name};\n return (returnValue % 16) + " / " + Floor(returnValue / 16);\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-returns-decoded"}_formatPopupTemplateRGBField(e){const t=this.fieldsIndex.get("RGB");if(!t)return;const r=e.fieldInfos?.find((e=>e.fieldName===t.name));if(!r)return;const i=new G.c({name:"pcl-rgb-decoded",title:t.alias||t.name,expression:`\n var rgb = $feature.${t.name};\n var red = Floor(rgb / 65536, 0);\n var green = Floor((rgb - (red * 65536)) / 256,0);\n var blue = rgb - (red * 65536) - (green * 256);\n\n return "rgb(" + red + "," + green + "," + blue + ")";\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-rgb-decoded"}async queryCachedStatistics(e,t){if(await this.load(t),!this.attributeStorageInfo)throw new o.c("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new o.c("pointcloudlayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.attributeStorageInfo)if(e.name===r.name){const r=(0,c.kn)(this.parsedUrl.path,`./statistics/${e.key}`);return(0,s.c)(r,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new o.c("pointcloudlayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(T.UJ.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"};return this._debouncedSaveOperations(T.UJ.SAVE,e)}validateLayer(e){if(e.layerType&&"PointCloud"!==e.layerType)throw new o.c("pointcloudlayer:layer-type-not-supported","PointCloudLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.c("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"});if(this.version.major>2)throw new o.c("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"})}hasCachedStatistics(e){return null!=this.attributeStorageInfo&&this.attributeStorageInfo.some((t=>t.name===e))}_getTypeKeywords(){return["PointCloud"]}_validateElevationInfo(){const e=this.elevationInfo;(0,Y.A$)(a.c.getLogger(this),(0,Y.Ez)("Point cloud layers","absolute-height",e)),(0,Y.A$)(a.c.getLogger(this),(0,Y.W8)("Point cloud layers",e))}};(0,i._)([(0,h.qq)({type:["PointCloudLayer"]})],ee.prototype,"operationalLayerType",void 0),(0,i._)([(0,h.qq)(L.Ou)],ee.prototype,"popupEnabled",void 0),(0,i._)([(0,h.qq)({type:n.c,json:{name:"popupInfo",write:!0}})],ee.prototype,"popupTemplate",void 0),(0,i._)([(0,h.qq)({readOnly:!0,json:{read:!1}})],ee.prototype,"defaultPopupTemplate",null),(0,i._)([(0,h.qq)({readOnly:!0,json:{write:!1,read:!1,origins:{"web-document":{write:!1,read:!1}}}})],ee.prototype,"opacity",void 0),(0,i._)([(0,h.qq)({type:["show","hide"]})],ee.prototype,"listMode",void 0),(0,i._)([(0,h.qq)({types:[U],json:{origins:{service:{read:{source:"filters"}}},name:"layerDefinition.filters",write:!0}})],ee.prototype,"filters",void 0),(0,i._)([(0,h.qq)({type:[B.c]})],ee.prototype,"fields",void 0),(0,i._)([(0,h.qq)(Q.fieldsIndex)],ee.prototype,"fieldsIndex",void 0),(0,i._)([(0,y.E)("service","fields",["fields","attributeStorageInfo"])],ee.prototype,"readServiceFields",null),(0,i._)([(0,h.qq)(Q.outFields)],ee.prototype,"outFields",void 0),(0,i._)([(0,h.qq)({readOnly:!0})],ee.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,h.qq)(L.Kg)],ee.prototype,"elevationInfo",null),(0,i._)([(0,h.qq)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],ee.prototype,"path",void 0),(0,i._)([(0,h.qq)(L.Uj)],ee.prototype,"legendEnabled",void 0),(0,i._)([(0,h.qq)({types:W,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:{target:{"layerDefinition.drawingInfo.renderer":{types:W},"layerDefinition.drawingInfo.transparency":{type:Number}}}}})],ee.prototype,"renderer",void 0),(0,i._)([(0,f.G)("renderer")],ee.prototype,"writeRenderer",null),(0,i._)([(0,h.qq)({json:{read:!1},readOnly:!0})],ee.prototype,"type",void 0),ee=(0,i._)([(0,m.c)("esri.layers.PointCloudLayer")],ee);const te=ee},28584:(e,t,r)=>{r.d(t,{G:()=>o});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.qq)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.c)("esri.layers.mixins.CustomParametersMixin")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>_});var i=r(41948),n=r(6220),s=r(47620),o=r(2600),l=r(40196),a=r(20744),d=r(66360),u=r(70680),p=r(10860),c=r(28176),h=r(1580),y=(r(9456),r(72052),r(33600)),m=r(12552),f=r(18996),g=r(71068),v=r(54872),b=r(9764),w=r(53039),q=r(46940);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,p.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,p.mA)(e)||d.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.CE)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,q.CI)(r);let n,o;if(i)n=r.portal.url;else try{n=await(0,g.mK)(this.url,t)}catch(e){(0,p.CE)(e)}if(!n||!(0,c.Cs)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.CE)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new b.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,q.CI)(r)}catch(e){(0,p.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.c.getDefault();if(n&&n.loaded&&(0,c.k7)(n.restUrl)===(0,c.k7)(i))return n.user;const a=`${i}/community/self`,d=null!=e?e.signal:null,u=await(0,l.aG)((0,o.c)(a,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?w.c.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&i&&!(0,c.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.c("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,h.qq)({type:b.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.c)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>o});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,n.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,s.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},600:(e,t,r)=>{r.d(t,{c:()=>f});var i,n=r(41948),s=r(14628),o=r(40504),l=r(1580),a=r(53368),d=(r(72052),r(9456),r(9968)),u=r(33600),p=r(12552),c=r(89812),h=r(36408);const y=new s.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends o.am{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,n._)([(0,l.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,n._)([(0,l.qq)()],m.prototype,"description",void 0),(0,n._)([(0,u.E)("description")],m.prototype,"readDescription",null),(0,n._)([(0,l.qq)({types:c.i2,json:{read:{reader:c.h4},write:!0}})],m.prototype,"domain",void 0),(0,n._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,n._)([(0,l.qq)({type:a.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,n._)([(0,d.G)(h.M)],m.prototype,"type",void 0),(0,n._)([(0,l.qq)()],m.prototype,"valueType",void 0),(0,n._)([(0,u.E)("valueType",["description"])],m.prototype,"readValueType",null),(0,n._)([(0,l.qq)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,n._)([(0,p.c)("esri.layers.support.Field")],m);const f=m},16424:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(20744),n=r(40504),s=r(66360),o=r(86916),l=r(75824),a=r(564),d=r(28484),u=r(39452);const p=new Map;class c{static fromJSON(e){return new c(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new c(e.fields??[],f(e))}static fromLayerJSON(e){return new c(e.fields??[],f(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,i=y(t);if(t&&i){const n=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.Mz)(e)||(0,a.w1)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.Mz)(e)||(0,a.w1)(e)||e.nullable||void 0!==(0,a.gB)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.c.getLogger("esri.layers.support.FieldsIndex").error(new i.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),d.Gw):m.has(t.type)?d.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===d.OI?l.qG.instance:t===d.Gw?u.Kq.utcInstance:(0,o.wJ)(p,t,(()=>u._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.eM)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,n.wt)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function y(e){return(0,a.gP)(e)?.toLowerCase()??""}const m=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function f(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,d.Mt)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,d.Mt)(n.dateFieldsTimeReference):l??d.Gw:null,u=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,d.Mt)(i.timeReference):l:null,p=new Map([[h(n?.creationDateField??""),a],[h(n?.editDateField??""),a],[h(s),u],[h(o),u]]);for(const{name:i,type:n}of e.fields)if(m.has(n))t.set(i,d.OI);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,d.OI);else{const e=p.get(h(i??""))??l;t.set(i,e)}return t}},89812:(e,t,r)=>{r.d(t,{h4:()=>T,i2:()=>S}),r(9456);var i,n=r(41948),s=r(62088),o=r(1580),l=(r(66360),r(9968)),a=r(12552),d=r(40504);r(72052);let u=i=class extends d.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,o.qq)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=i=(0,n._)([(0,a.c)("esri.layers.support.CodedValue")],u);const p=new(r(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends d.am{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,l.G)(p)],c.prototype,"type",void 0),c=(0,n._)([(0,a.c)("esri.layers.support.Domain")],c);const h=c;var y;let m=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,s.ct)(this.codedValues),name:this.name})}};(0,n._)([(0,o.qq)({type:[u],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,n._)([(0,l.G)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=y=(0,n._)([(0,a.c)("esri.layers.support.CodedValueDomain")],m);const f=m;var g;r(20744);let v=g=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,n._)([(0,l.G)({inherited:"inherited"})],v.prototype,"type",void 0),v=g=(0,n._)([(0,a.c)("esri.layers.support.InheritedDomain")],v);const b=v;var w;let q=w=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],q.prototype,"maxValue",void 0),(0,n._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],q.prototype,"minValue",void 0),(0,n._)([(0,l.G)({range:"range"})],q.prototype,"type",void 0),q=w=(0,n._)([(0,a.c)("esri.layers.support.RangeDomain")],q);const _=q,S={key:"type",base:h,typeMap:{range:q,"coded-value":f,inherited:b}};function T(e){if(!e?.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return f.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},81732:(e,t,r)=>{r.d(t,{l:()=>a});var i=r(9456),n=r(66360),s=r(600),o=r(16424),l=r(564);function a(){return{fields:{type:[s.c],value:null,set:function(e){if(e&&(0,i.c)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");n.c.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.c.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||n.c.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.OO)(this.fieldsIndex,e)}}}}},36408:(e,t,r)=>{r.d(t,{M:()=>i});const i=new(r(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},12432:(e,t,r)=>{r.d(t,{c:()=>v});var i,n=r(41948),s=r(62088),o=r(1580),l=(r(9456),r(66360),r(9968)),a=r(12552),d=r(96220),u=r(89584),p=r(44728),c=r(40504),h=r(53368);let y=i=class extends c.am{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new i({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,s.ct)(this.color)})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,n._)([(0,o.qq)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],y.prototype,"minValue",void 0),(0,n._)([(0,o.qq)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],y.prototype,"maxValue",void 0),(0,n._)([(0,o.qq)({type:p.c,json:{type:[h.Ab],write:!0}})],y.prototype,"color",void 0),y=i=(0,n._)([(0,a.c)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],y);const m=y;var f;let g=f=class extends d.c{constructor(e){super(e),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new f({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,s.ct)(this.colorClassBreakInfos),legendOptions:(0,s.ct)(this.legendOptions)})}};(0,n._)([(0,l.G)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],g.prototype,"type",void 0),(0,n._)([(0,o.qq)({json:{write:!0},type:String})],g.prototype,"field",void 0),(0,n._)([(0,o.qq)({type:u.i,json:{write:!0}})],g.prototype,"legendOptions",void 0),(0,n._)([(0,o.qq)({type:d.c.fieldTransformTypeKebabDict.apiValues,json:{type:d.c.fieldTransformTypeKebabDict.jsonValues,read:d.c.fieldTransformTypeKebabDict.read,write:d.c.fieldTransformTypeKebabDict.write}})],g.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.qq)({type:[m],json:{write:!0}})],g.prototype,"colorClassBreakInfos",void 0),g=f=(0,n._)([(0,a.c)("esri.renderers.PointCloudClassBreaksRenderer")],g);const v=g},96220:(e,t,r)=>{r.d(t,{c:()=>T});var i,n=r(41948),s=r(14628),o=r(40504),l=r(62088),a=r(1580),d=(r(9456),r(66360),r(12552));r(72052);let u=i=class extends o.am{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new i({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],u.prototype,"minValue",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],u.prototype,"maxValue",void 0),u=i=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.ColorModulation")],u);const p=u,c=new s.O({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let h=class extends o.am{};(0,n._)([(0,a.qq)({type:c.apiValues,readOnly:!0,nonNullable:!0,json:{type:c.jsonValues,read:!1,write:c.write}})],h.prototype,"type",void 0),h=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],h);const y=h;var m,f=r(9968);let g=m=class extends y{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new m({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,n._)([(0,f.G)({pointCloudFixedSizeAlgorithm:"fixed-size"})],g.prototype,"type",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"size",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],g.prototype,"useRealWorldSymbolSizes",void 0),g=m=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],g);const v=g;var b;let w=b=class extends y{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new b({scaleFactor:this.scaleFactor})}};(0,n._)([(0,f.G)({pointCloudSplatAlgorithm:"splat"})],w.prototype,"type",void 0),(0,n._)([(0,a.qq)({type:Number,value:1,nonNullable:!0,json:{write:!0}})],w.prototype,"scaleFactor",void 0),w=b=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],w);const q={key:"type",base:y,typeMap:{"fixed-size":v,splat:w}},_=(0,s.w)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let S=class extends o.am{constructor(e){super(e),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,l.ct)(this.pointSizeAlgorithm),colorModulation:(0,l.ct)(this.colorModulation),pointsPerInch:(0,l.ct)(this.pointsPerInch)}}};(0,n._)([(0,a.qq)({type:_.apiValues,readOnly:!0,nonNullable:!0,json:{type:_.jsonValues,read:!1,write:_.write}})],S.prototype,"type",void 0),(0,n._)([(0,a.qq)({types:q,json:{write:!0}})],S.prototype,"pointSizeAlgorithm",void 0),(0,n._)([(0,a.qq)({type:p,json:{write:!0}})],S.prototype,"colorModulation",void 0),(0,n._)([(0,a.qq)({json:{write:!0},nonNullable:!0,type:Number})],S.prototype,"pointsPerInch",void 0),S=(0,n._)([(0,d.c)("esri.renderers.PointCloudRenderer")],S),(S||(S={})).fieldTransformTypeKebabDict=new s.O({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"});const T=S},56185:(e,t,r)=>{r.d(t,{c:()=>h});var i,n=r(41948),s=r(62088),o=r(1580),l=(r(9456),r(66360),r(9968)),a=r(12552),d=r(96220),u=r(89584),p=r(83060);let c=i=class extends d.c{constructor(e){super(e),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new i({...this.cloneProperties(),field:(0,s.ct)(this.field),fieldTransformType:(0,s.ct)(this.fieldTransformType),stops:(0,s.ct)(this.stops),legendOptions:(0,s.ct)(this.legendOptions)})}};(0,n._)([(0,l.G)({pointCloudStretchRenderer:"point-cloud-stretch"})],c.prototype,"type",void 0),(0,n._)([(0,o.qq)({json:{write:!0},type:String})],c.prototype,"field",void 0),(0,n._)([(0,o.qq)({type:u.i,json:{write:!0}})],c.prototype,"legendOptions",void 0),(0,n._)([(0,o.qq)({type:d.c.fieldTransformTypeKebabDict.apiValues,json:{type:d.c.fieldTransformTypeKebabDict.jsonValues,read:d.c.fieldTransformTypeKebabDict.read,write:d.c.fieldTransformTypeKebabDict.write}})],c.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.qq)({type:[p.c],json:{write:!0}})],c.prototype,"stops",void 0),c=i=(0,n._)([(0,a.c)("esri.renderers.PointCloudStretchRenderer")],c);const h=c},53224:(e,t,r)=>{r.d(t,{c:()=>v});var i,n=r(41948),s=r(62088),o=r(1580),l=(r(9456),r(66360),r(9968)),a=r(12552),d=r(96220),u=r(89584),p=r(44728),c=r(40504),h=r(53368);let y=i=class extends c.am{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new i({description:this.description,label:this.label,values:(0,s.ct)(this.values),color:(0,s.ct)(this.color)})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,n._)([(0,o.qq)({type:[String],json:{write:!0}})],y.prototype,"values",void 0),(0,n._)([(0,o.qq)({type:p.c,json:{type:[h.Ab],write:!0}})],y.prototype,"color",void 0),y=i=(0,n._)([(0,a.c)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],y);const m=y;var f;let g=f=class extends d.c{constructor(e){super(e),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new f({...this.cloneProperties(),field:(0,s.ct)(this.field),fieldTransformType:(0,s.ct)(this.fieldTransformType),colorUniqueValueInfos:(0,s.ct)(this.colorUniqueValueInfos),legendOptions:(0,s.ct)(this.legendOptions)})}};(0,n._)([(0,l.G)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],g.prototype,"type",void 0),(0,n._)([(0,o.qq)({json:{write:!0},type:String})],g.prototype,"field",void 0),(0,n._)([(0,o.qq)({type:d.c.fieldTransformTypeKebabDict.apiValues,json:{type:d.c.fieldTransformTypeKebabDict.jsonValues,read:d.c.fieldTransformTypeKebabDict.read,write:d.c.fieldTransformTypeKebabDict.write}})],g.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.qq)({type:[m],json:{write:!0}})],g.prototype,"colorUniqueValueInfos",void 0),(0,n._)([(0,o.qq)({type:u.i,json:{write:!0}})],g.prototype,"legendOptions",void 0),g=f=(0,n._)([(0,a.c)("esri.renderers.PointCloudUniqueValueRenderer")],g);const v=g},89584:(e,t,r)=>{r.d(t,{i:()=>a});var i,n=r(41948),s=r(40504),o=r(1580),l=(r(9456),r(66360),r(72052),r(12552));let a=i=class extends s.am{constructor(){super(...arguments),this.title=null}clone(){return new i({title:this.title})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=i=(0,n._)([(0,l.c)("esri.renderers.support.LegendOptions")],a)},83060:(e,t,r)=>{r.d(t,{c:()=>c});var i,n=r(41948),s=r(44728),o=r(40504),l=r(1580),a=r(53368),d=(r(72052),r(9456),r(12552)),u=r(18996);let p=i=class extends o.am{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,r){t[r]=e??0}clone(){return new i({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,n._)([(0,l.qq)({type:s.c,json:{type:[a.Ab],write:!0}})],p.prototype,"color",void 0),(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,n._)([(0,l.qq)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),(0,n._)([(0,u.G)("value")],p.prototype,"writeValue",null),p=i=(0,n._)([(0,d.c)("esri.renderers.visualVariables.support.ColorStop")],p);const c=p},69204:(e,t,r)=>{function i(e,t){return t?.mode?t.mode:function(e){return e?d:u}(e).mode}function n(e,t){return i(null!=e&&e.hasZ,t)}function s(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function o(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function l(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function a(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{A$:()=>a,Ez:()=>s,W8:()=>l,ay:()=>o,m6:()=>n}),r(35764);const d={mode:"absolute-height",offset:0},u={mode:"on-the-ground",offset:null}},65548:(e,t,r)=>{r.d(t,{Ap:()=>d});var i=r(82692),n=r(564),s=r(3739),o=(r(73312),r(67300),r(18480),r(72944)),l=(r(53568),r(15024),r(63116),r(13428)),a=r(76992);function d({displayField:e,editFieldsInfo:t,fields:r,objectIdField:a,title:d},h){if(!r)return null;const m=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(p),e}(e.fields??[],t?.ignoreFieldTypes||y).map((t=>new l.c({fieldName:t.name,isEditable:(0,n.Yn)(t,e),label:t.alias,format:c(t),visible:u(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:a},h);if(!m.length)return null;const f=function(e){const t=(0,n.G2)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:d,fields:r,displayField:e}),g=[new o.c,new s.c];return new i.c({title:f,content:g,fieldInfos:m})}const u=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.iY)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function c(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.c({digitSeparator:!0,places:0});case"double":return new a.c({digitSeparator:!0,places:2});case"string":return(0,n.Gm)(e.name)?new a.c({digitSeparator:!0,places:0}):null;default:return null}}function h(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const y=["geometry","blob","raster","guid","xml"]}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2296],{44728:(e,t,r)=>{r.d(t,{c:()=>c});var i,n,s=r(46988),o=r(53648),l=r(53368);function a(e){return(0,o.qk)((0,l.Wu)(e),0,255)}function d(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function u(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class p{static blendColors(e,t,r,i=new p){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),i=r[1];if("rgb"===i&&3===e.length||"rgba"===i&&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])),p.fromArray(r,t)}return p.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===i&&3===e.length||"hsla"===i&&4===e.length)return p.fromArray((0,s.ec)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new p){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),i=parseInt(e.substring(2,3),16),n=parseInt(e.substring(3,4),16),s=5===e.length?15:parseInt(e.substring(4),16);return p.fromArray([r+16*r,i+16*i,n+16*n,(s+16*s)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),i=parseInt(e.substring(3,5),16),n=parseInt(e.substring(5,7),16),s=7===e.length?255:parseInt(e.substring(7),16);return p.fromArray([r,i,n,s/255],t)}default:return null}}static fromArray(e,t=new p){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,s.kv)(e)?(0,s.SQ)(e):null;return r&&p.fromArray(r,t)||p.fromRgb(e,t)||p.fromHex(e,t)}static fromJSON(e){return null!=e?new p([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?p.fromString(e,this):Array.isArray(e)?p.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof p||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${u(this.r,i)}${u(this.g,i)}${u(this.b,i)}${n?u(Math.round(255*this.a),i):""}`;return t?s.toUpperCase():s}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=p.AlphaMode.ALWAYS){const t=a(this.r),r=a(this.g),i=a(this.b);return e===p.AlphaMode.ALWAYS||1!==this.a?[t,r,i,a(255*this.a)]:[t,r,i]}clone(){return new p(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(d(this.r,0,255)),this.g=Math.round(d(this.g,0,255)),this.b=Math.round(d(this.b,0,255)),this.a=d(this.a,0,1),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}p.prototype.declaredClass="esri.Color",i=p||(p={}),(n=i.AlphaMode||(i.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const c=p},25228:(e,t,r)=>{r.d(t,{c:()=>m});var i,n=r(41948),s=r(40504),o=r(94360),l=r(1580),a=(r(9456),r(66360),r(72052),r(33600)),d=r(12552),u=r(18996),p=r(28484);let c=i=class extends s.am{static get allTime(){return h}static get empty(){return y}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.aU)(r,e,t));let n=this.end;if(n){const r=(0,o.aU)(n,e,t);n=n.getTime()===r.getTime()?r:(0,o.g1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,l;if(n>=t&&n<=r?o=n:t>=n&&t<=s&&(o=t),r>=n&&r<=s?l=r:s>=t&&s<=r&&(l=s),null!=o&&null!=l&&!isNaN(o)&&!isNaN(l)){const e=new i;return e.start=o===-1/0?null:new Date(o),e.end=l===1/0?null:new Date(l),e}return i.empty}offset(e,t,r=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.g1)(s,e,t,r)),null!=l&&(n.end=(0,o.g1)(l,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n._)([(0,a.E)("end")],c.prototype,"readEnd",null),(0,n._)([(0,u.G)("end")],c.prototype,"writeEnd",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n._)([(0,a.E)("start")],c.prototype,"readStart",null),(0,n._)([(0,u.G)("start")],c.prototype,"writeStart",null),c=i=(0,n._)([(0,d.c)("esri.TimeExtent")],c);const h=new c,y=new c({start:void 0,end:void 0}),m=c},3856:(e,t,r)=>{r.d(t,{m:()=>p,q:()=>u});var i=r(41948),n=r(43780),s=(r(9456),r(62088)),o=(r(66360),r(70680)),l=r(71448),a=r(20916),d=r(12552);const u=e=>{let t=class extends e{clone(){const e=(0,a.m6)(this);(0,o.EN)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,i={},n=new Map;for(const e in t){const o=t[e],a=r?.originOf(e),d=o.clonable;if(o.readOnly||!1===d||a!==l.sT.USER&&a!==l.sT.DEFAULTS&&a!==l.sT.WEB_MAP&&a!==l.sT.WEB_SCENE)continue;const u=this[e];let p=null;p="function"==typeof d?d(u):"reference"===d?u:(0,s.gx)(u),null!=u&&null==p||(a===l.sT.DEFAULTS?n.set(e,p):i[e]=p)}const d=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const e=(0,a.m6)(d)?.store;if(e)for(const[t,r]of n)e.set(t,r,l.sT.DEFAULTS)}return d}};return t=(0,i._)([(0,d.c)("esri.core.Clonable")],t),t};let p=class extends(u(n.c)){};p=(0,i._)([(0,d.c)("esri.core.Clonable")],p)},22156:(e,t,r)=>{r.d(t,{MR:()=>o,qm:()=>l});var i=r(41948),n=r(12552);let s=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,i._)([(0,n.c)("esri.core.Identifiable")],t),t},l=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return t=(0,i._)([(0,n.c)("esri.core.NumericIdentifiable")],t),t};let a=class extends(o(class{})){};a=(0,i._)([(0,n.c)("esri.core.Identifiable")],a)},75824:(e,t,r)=>{r.d(t,{Md:()=>s,m0:()=>o,qG:()=>n});var i=r(39452);class n{}function s(e){return e instanceof i.C?e===n.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return s(e)?n.instance:e}n.instance=new i._C("Etc/UTC")},63564:(e,t,r)=>{r.d(t,{Mr:()=>o,cf:()=>s,g1:()=>n});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${n().toUpperCase()}}`}function o(){return`{${n()}}`}},13819:(e,t,r)=>{r.d(t,{c:()=>b});var i,n=r(41948),s=r(92400),o=r(14628),l=r(40504),a=r(24296),d=r(69504),u=r(1580),p=(r(9456),r(66360),r(33600)),c=r(12552),h=r(18996);const y=(0,o.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,s.sH)(m,"orthometric");const f=(0,o.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=i=class extends l.am{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new d.c("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,a.oG)(e)||f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,a._2)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new d.c("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,u.qq)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,n._)([(0,h.G)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,n._)([(0,p.E)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,n._)([(0,u.qq)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],g.prototype,"heightUnit",void 0),(0,n._)([(0,p.E)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,n._)([(0,p.E)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,n._)([(0,u.qq)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,n._)([(0,p.E)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=i=(0,n._)([(0,c.c)("esri.geometry.HeightModelInfo")],g);const b=g},81436:(e,t,r)=>{r.d(t,{c:()=>b});var i=r(41948),n=(r(60708),r(2600)),s=r(20744),o=r(77860),l=r(22156),a=r(95800),d=r(66360),u=r(10860),p=r(28176),c=r(1580),h=(r(9456),r(72052),r(12552)),y=r(6220),m=r(95247),f=r(56156);let g=0,v=class extends(o.c.EventedMixin((0,l.MR)(a.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.c(-180,-90,180,90,f.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t&&t.portalItem,i=r?.id||"unset",n=r&&r.portal&&r.portal.url||y.default.portalUrl;throw d.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,u.mA)(e)||d.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,p.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,c.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,c.qq)({type:m.c})],v.prototype,"fullExtent",void 0),(0,i._)([(0,c.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,c.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,c.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,c.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,c.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,c.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,c.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,c.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,c.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,c.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,c.qq)({type:f.c})],v.prototype,"spatialReference",void 0),(0,i._)([(0,c.qq)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,c.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,c.qq)()],v.prototype,"url",void 0),(0,i._)([(0,c.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,h.c)("esri.layers.Layer")],v);const b=v},21680:(e,t,r)=>{r.r(t),r.d(t,{default:()=>te});var i=r(41948),n=r(82692),s=r(2600),o=r(20744),l=r(62088),a=r(66360),d=r(26496),u=r(58820),p=r(10860),c=r(28176),h=r(1580),y=(r(9456),r(33600)),m=r(12552),f=r(18996),g=r(81436),v=r(38724),b=r(16660),w=r(28584),q=r(66576),_=r(98768),S=r(3116),T=r(87072),F=r(53368),I=r(9968),x=r(40504);r(72052);let C=class extends x.am{constructor(e){super(e),this.field=null,this.type=null}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}};(0,i._)([(0,h.qq)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],C.prototype,"field",void 0),(0,i._)([(0,h.qq)({readOnly:!0,nonNullable:!0,json:{read:!1}})],C.prototype,"type",void 0),C=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudFilter")],C);const j=C;var N;let E=N=class extends j{constructor(e){super(e),this.requiredClearBits=null,this.requiredSetBits=null,this.type="bitfield"}clone(){return new N({field:this.field,requiredClearBits:(0,l.ct)(this.requiredClearBits),requiredSetBits:(0,l.ct)(this.requiredSetBits)})}};(0,i._)([(0,h.qq)({type:[F.Ab],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredSetBits}}}}})],E.prototype,"requiredClearBits",void 0),(0,i._)([(0,h.qq)({type:[F.Ab],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredClearBits}}}}})],E.prototype,"requiredSetBits",void 0),(0,i._)([(0,I.G)({pointCloudBitfieldFilter:"bitfield"})],E.prototype,"type",void 0),E=N=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudBitfieldFilter")],E);const O=E;var R;let V=R=class extends j{constructor(e){super(e),this.includedReturns=[],this.type="return"}clone(){return new R({field:this.field,includedReturns:(0,l.ct)(this.includedReturns)})}};(0,i._)([(0,h.qq)({type:[["firstOfMany","last","lastOfMany","single"]],json:{write:{enabled:!0,isRequired:!0}}})],V.prototype,"includedReturns",void 0),(0,i._)([(0,I.G)({pointCloudReturnFilter:"return"})],V.prototype,"type",void 0),V=R=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudReturnFilter")],V);const P=V;var A;let M=A=class extends j{constructor(e){super(e),this.mode="exclude",this.type="value",this.values=[]}clone(){return new A({field:this.field,mode:this.mode,values:(0,l.ct)(this.values)})}};(0,i._)([(0,h.qq)({type:["exclude","include"],json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"mode",void 0),(0,i._)([(0,I.G)({pointCloudValueFilter:"value"})],M.prototype,"type",void 0),(0,i._)([(0,h.qq)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"values",void 0),M=A=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudValueFilter")],M);const U={key:"type",base:j,typeMap:{value:M,bitfield:O,return:P}};var D,L=r(21488),B=r(600),k=r(81732),G=r(83336),$=r(12432),z=r(96220);let H=D=class extends z.c{constructor(e){super(e),this.type="point-cloud-rgb",this.field=null}clone(){return new D({...this.cloneProperties(),field:(0,l.ct)(this.field)})}};(0,i._)([(0,I.G)({pointCloudRGBRenderer:"point-cloud-rgb"})],H.prototype,"type",void 0),(0,i._)([(0,h.qq)({type:String,json:{write:!0}})],H.prototype,"field",void 0),H=D=(0,i._)([(0,m.c)("esri.renderers.PointCloudRGBRenderer")],H);const K=H;var Z=r(56185),J=r(53224);const W={key:"type",base:z.c,typeMap:{"point-cloud-class-breaks":$.c,"point-cloud-rgb":K,"point-cloud-stretch":Z.c,"point-cloud-unique-value":J.c},errorContext:"renderer"};var Y=r(69204),X=r(65548);const Q=(0,k.l)();let ee=class extends((0,T.G6)((0,b.u)((0,q.Y)((0,_.K)((0,S.I)((0,d.U)((0,w.G)((0,v.C)(g.c))))))))){constructor(...e){super(...e),this.operationalLayerType="PointCloudLayer",this.popupEnabled=!0,this.popupTemplate=null,this.opacity=1,this.filters=[],this.fields=null,this.fieldsIndex=null,this.outFields=null,this.path=null,this.legendEnabled=!0,this.renderer=null,this.type="point-cloud"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get defaultPopupTemplate(){return this.attributeStorageInfo?this.createPopupTemplate():null}getFieldDomain(e){const t=this.fieldsIndex.get(e);return t?.domain?t.domain:null}readServiceFields(e,t,r){return Array.isArray(e)?e.map((e=>{const t=new B.c;return"FieldTypeInteger"===e.type&&((e=(0,l.ct)(e)).type="esriFieldTypeInteger"),t.read(e,r),t})):Array.isArray(t.attributeStorageInfo)?t.attributeStorageInfo.map((e=>new B.c({name:e.name,type:"ELEVATION"===e.name?"double":"integer"}))):null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}writeRenderer(e,t,r,i){(0,u.qQ)("layerDefinition.drawingInfo.renderer",e.write({},i),t)}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(p.CE).then((()=>this._fetchService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){const t=(0,X.Ap)(this,e);return t&&(this._formatPopupTemplateReturnsField(t),this._formatPopupTemplateRGBField(t)),t}_formatPopupTemplateReturnsField(e){const t=this.fieldsIndex.get("RETURNS");if(!t)return;const r=e.fieldInfos?.find((e=>e.fieldName===t.name));if(!r)return;const i=new G.c({name:"pcl-returns-decoded",title:t.alias||t.name,expression:`\n var returnValue = $feature.${t.name};\n return (returnValue % 16) + " / " + Floor(returnValue / 16);\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-returns-decoded"}_formatPopupTemplateRGBField(e){const t=this.fieldsIndex.get("RGB");if(!t)return;const r=e.fieldInfos?.find((e=>e.fieldName===t.name));if(!r)return;const i=new G.c({name:"pcl-rgb-decoded",title:t.alias||t.name,expression:`\n var rgb = $feature.${t.name};\n var red = Floor(rgb / 65536, 0);\n var green = Floor((rgb - (red * 65536)) / 256,0);\n var blue = rgb - (red * 65536) - (green * 256);\n\n return "rgb(" + red + "," + green + "," + blue + ")";\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-rgb-decoded"}async queryCachedStatistics(e,t){if(await this.load(t),!this.attributeStorageInfo)throw new o.c("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new o.c("pointcloudlayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.attributeStorageInfo)if(e.name===r.name){const r=(0,c.kn)(this.parsedUrl.path,`./statistics/${e.key}`);return(0,s.c)(r,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new o.c("pointcloudlayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(T.UJ.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"};return this._debouncedSaveOperations(T.UJ.SAVE,e)}validateLayer(e){if(e.layerType&&"PointCloud"!==e.layerType)throw new o.c("pointcloudlayer:layer-type-not-supported","PointCloudLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.c("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"});if(this.version.major>2)throw new o.c("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"})}hasCachedStatistics(e){return null!=this.attributeStorageInfo&&this.attributeStorageInfo.some((t=>t.name===e))}_getTypeKeywords(){return["PointCloud"]}_validateElevationInfo(){const e=this.elevationInfo;(0,Y.A$)(a.c.getLogger(this),(0,Y.Ez)("Point cloud layers","absolute-height",e)),(0,Y.A$)(a.c.getLogger(this),(0,Y.W8)("Point cloud layers",e))}};(0,i._)([(0,h.qq)({type:["PointCloudLayer"]})],ee.prototype,"operationalLayerType",void 0),(0,i._)([(0,h.qq)(L.Ou)],ee.prototype,"popupEnabled",void 0),(0,i._)([(0,h.qq)({type:n.c,json:{name:"popupInfo",write:!0}})],ee.prototype,"popupTemplate",void 0),(0,i._)([(0,h.qq)({readOnly:!0,json:{read:!1}})],ee.prototype,"defaultPopupTemplate",null),(0,i._)([(0,h.qq)({readOnly:!0,json:{write:!1,read:!1,origins:{"web-document":{write:!1,read:!1}}}})],ee.prototype,"opacity",void 0),(0,i._)([(0,h.qq)({type:["show","hide"]})],ee.prototype,"listMode",void 0),(0,i._)([(0,h.qq)({types:[U],json:{origins:{service:{read:{source:"filters"}}},name:"layerDefinition.filters",write:!0}})],ee.prototype,"filters",void 0),(0,i._)([(0,h.qq)({type:[B.c]})],ee.prototype,"fields",void 0),(0,i._)([(0,h.qq)(Q.fieldsIndex)],ee.prototype,"fieldsIndex",void 0),(0,i._)([(0,y.E)("service","fields",["fields","attributeStorageInfo"])],ee.prototype,"readServiceFields",null),(0,i._)([(0,h.qq)(Q.outFields)],ee.prototype,"outFields",void 0),(0,i._)([(0,h.qq)({readOnly:!0})],ee.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,h.qq)(L.Kg)],ee.prototype,"elevationInfo",null),(0,i._)([(0,h.qq)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],ee.prototype,"path",void 0),(0,i._)([(0,h.qq)(L.Uj)],ee.prototype,"legendEnabled",void 0),(0,i._)([(0,h.qq)({types:W,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:{target:{"layerDefinition.drawingInfo.renderer":{types:W},"layerDefinition.drawingInfo.transparency":{type:Number}}}}})],ee.prototype,"renderer",void 0),(0,i._)([(0,f.G)("renderer")],ee.prototype,"writeRenderer",null),(0,i._)([(0,h.qq)({json:{read:!1},readOnly:!0})],ee.prototype,"type",void 0),ee=(0,i._)([(0,m.c)("esri.layers.PointCloudLayer")],ee);const te=ee},28584:(e,t,r)=>{r.d(t,{G:()=>o});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.qq)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.c)("esri.layers.mixins.CustomParametersMixin")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>_});var i=r(41948),n=r(6220),s=r(47620),o=r(2600),l=r(40196),a=r(20744),d=r(66360),u=r(70680),p=r(10860),c=r(28176),h=r(1580),y=(r(9456),r(72052),r(33600)),m=r(12552),f=r(18996),g=r(71068),v=r(54872),b=r(9764),w=r(53039),q=r(46940);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,p.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,p.mA)(e)||d.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.CE)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,q.CI)(r);let n,o;if(i)n=r.portal.url;else try{n=await(0,g.mK)(this.url,t)}catch(e){(0,p.CE)(e)}if(!n||!(0,c.Cs)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.CE)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new b.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,q.CI)(r)}catch(e){(0,p.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.c.getDefault();if(n&&n.loaded&&(0,c.k7)(n.restUrl)===(0,c.k7)(i))return n.user;const a=`${i}/community/self`,d=null!=e?e.signal:null,u=await(0,l.aG)((0,o.c)(a,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?w.c.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&i&&!(0,c.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.c("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,h.qq)({type:b.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.c)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>o});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,n.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,s.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},600:(e,t,r)=>{r.d(t,{c:()=>f});var i,n=r(41948),s=r(14628),o=r(40504),l=r(1580),a=r(53368),d=(r(72052),r(9456),r(9968)),u=r(33600),p=r(12552),c=r(89812),h=r(36408);const y=new s.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends o.am{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,n._)([(0,l.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,n._)([(0,l.qq)()],m.prototype,"description",void 0),(0,n._)([(0,u.E)("description")],m.prototype,"readDescription",null),(0,n._)([(0,l.qq)({types:c.i2,json:{read:{reader:c.h4},write:!0}})],m.prototype,"domain",void 0),(0,n._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,n._)([(0,l.qq)({type:a.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,n._)([(0,d.G)(h.M)],m.prototype,"type",void 0),(0,n._)([(0,l.qq)()],m.prototype,"valueType",void 0),(0,n._)([(0,u.E)("valueType",["description"])],m.prototype,"readValueType",null),(0,n._)([(0,l.qq)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,n._)([(0,p.c)("esri.layers.support.Field")],m);const f=m},16424:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(20744),n=r(40504),s=r(66360),o=r(86916),l=r(75824),a=r(564),d=r(28484),u=r(39452);const p=new Map;class c{static fromJSON(e){return new c(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new c(e.fields??[],f(e))}static fromLayerJSON(e){return new c(e.fields??[],f(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,i=y(t);if(t&&i){const n=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.Mz)(e)||(0,a.w1)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.Mz)(e)||(0,a.w1)(e)||e.nullable||void 0!==(0,a.gB)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.c.getLogger("esri.layers.support.FieldsIndex").error(new i.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),d.Gw):m.has(t.type)?d.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===d.OI?l.qG.instance:t===d.Gw?u.Kq.utcInstance:(0,o.wJ)(p,t,(()=>u._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.eM)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,n.wt)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function y(e){return(0,a.gP)(e)?.toLowerCase()??""}const m=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function f(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,d.Mt)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,d.Mt)(n.dateFieldsTimeReference):l??d.Gw:null,u=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,d.Mt)(i.timeReference):l:null,p=new Map([[h(n?.creationDateField??""),a],[h(n?.editDateField??""),a],[h(s),u],[h(o),u]]);for(const{name:i,type:n}of e.fields)if(m.has(n))t.set(i,d.OI);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,d.OI);else{const e=p.get(h(i??""))??l;t.set(i,e)}return t}},89812:(e,t,r)=>{r.d(t,{h4:()=>T,i2:()=>S}),r(9456);var i,n=r(41948),s=r(62088),o=r(1580),l=(r(66360),r(9968)),a=r(12552),d=r(40504);r(72052);let u=i=class extends d.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,o.qq)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=i=(0,n._)([(0,a.c)("esri.layers.support.CodedValue")],u);const p=new(r(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends d.am{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,l.G)(p)],c.prototype,"type",void 0),c=(0,n._)([(0,a.c)("esri.layers.support.Domain")],c);const h=c;var y;let m=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,s.ct)(this.codedValues),name:this.name})}};(0,n._)([(0,o.qq)({type:[u],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,n._)([(0,l.G)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=y=(0,n._)([(0,a.c)("esri.layers.support.CodedValueDomain")],m);const f=m;var g;r(20744);let v=g=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,n._)([(0,l.G)({inherited:"inherited"})],v.prototype,"type",void 0),v=g=(0,n._)([(0,a.c)("esri.layers.support.InheritedDomain")],v);const b=v;var w;let q=w=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],q.prototype,"maxValue",void 0),(0,n._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],q.prototype,"minValue",void 0),(0,n._)([(0,l.G)({range:"range"})],q.prototype,"type",void 0),q=w=(0,n._)([(0,a.c)("esri.layers.support.RangeDomain")],q);const _=q,S={key:"type",base:h,typeMap:{range:q,"coded-value":f,inherited:b}};function T(e){if(!e?.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return f.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},81732:(e,t,r)=>{r.d(t,{l:()=>a});var i=r(9456),n=r(66360),s=r(600),o=r(16424),l=r(564);function a(){return{fields:{type:[s.c],value:null,set:function(e){if(e&&(0,i.c)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");n.c.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.c.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||n.c.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.OO)(this.fieldsIndex,e)}}}}},36408:(e,t,r)=>{r.d(t,{M:()=>i});const i=new(r(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},12432:(e,t,r)=>{r.d(t,{c:()=>v});var i,n=r(41948),s=r(62088),o=r(1580),l=(r(9456),r(66360),r(9968)),a=r(12552),d=r(96220),u=r(89584),p=r(44728),c=r(40504),h=r(53368);let y=i=class extends c.am{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new i({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,s.ct)(this.color)})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,n._)([(0,o.qq)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],y.prototype,"minValue",void 0),(0,n._)([(0,o.qq)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],y.prototype,"maxValue",void 0),(0,n._)([(0,o.qq)({type:p.c,json:{type:[h.Ab],write:!0}})],y.prototype,"color",void 0),y=i=(0,n._)([(0,a.c)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],y);const m=y;var f;let g=f=class extends d.c{constructor(e){super(e),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new f({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,s.ct)(this.colorClassBreakInfos),legendOptions:(0,s.ct)(this.legendOptions)})}};(0,n._)([(0,l.G)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],g.prototype,"type",void 0),(0,n._)([(0,o.qq)({json:{write:!0},type:String})],g.prototype,"field",void 0),(0,n._)([(0,o.qq)({type:u.i,json:{write:!0}})],g.prototype,"legendOptions",void 0),(0,n._)([(0,o.qq)({type:d.c.fieldTransformTypeKebabDict.apiValues,json:{type:d.c.fieldTransformTypeKebabDict.jsonValues,read:d.c.fieldTransformTypeKebabDict.read,write:d.c.fieldTransformTypeKebabDict.write}})],g.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.qq)({type:[m],json:{write:!0}})],g.prototype,"colorClassBreakInfos",void 0),g=f=(0,n._)([(0,a.c)("esri.renderers.PointCloudClassBreaksRenderer")],g);const v=g},96220:(e,t,r)=>{r.d(t,{c:()=>T});var i,n=r(41948),s=r(14628),o=r(40504),l=r(62088),a=r(1580),d=(r(9456),r(66360),r(12552));r(72052);let u=i=class extends o.am{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new i({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],u.prototype,"minValue",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],u.prototype,"maxValue",void 0),u=i=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.ColorModulation")],u);const p=u,c=new s.O({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let h=class extends o.am{};(0,n._)([(0,a.qq)({type:c.apiValues,readOnly:!0,nonNullable:!0,json:{type:c.jsonValues,read:!1,write:c.write}})],h.prototype,"type",void 0),h=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],h);const y=h;var m,f=r(9968);let g=m=class extends y{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new m({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,n._)([(0,f.G)({pointCloudFixedSizeAlgorithm:"fixed-size"})],g.prototype,"type",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"size",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],g.prototype,"useRealWorldSymbolSizes",void 0),g=m=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],g);const v=g;var b;let w=b=class extends y{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new b({scaleFactor:this.scaleFactor})}};(0,n._)([(0,f.G)({pointCloudSplatAlgorithm:"splat"})],w.prototype,"type",void 0),(0,n._)([(0,a.qq)({type:Number,value:1,nonNullable:!0,json:{write:!0}})],w.prototype,"scaleFactor",void 0),w=b=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],w);const q={key:"type",base:y,typeMap:{"fixed-size":v,splat:w}},_=(0,s.w)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let S=class extends o.am{constructor(e){super(e),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,l.ct)(this.pointSizeAlgorithm),colorModulation:(0,l.ct)(this.colorModulation),pointsPerInch:(0,l.ct)(this.pointsPerInch)}}};(0,n._)([(0,a.qq)({type:_.apiValues,readOnly:!0,nonNullable:!0,json:{type:_.jsonValues,read:!1,write:_.write}})],S.prototype,"type",void 0),(0,n._)([(0,a.qq)({types:q,json:{write:!0}})],S.prototype,"pointSizeAlgorithm",void 0),(0,n._)([(0,a.qq)({type:p,json:{write:!0}})],S.prototype,"colorModulation",void 0),(0,n._)([(0,a.qq)({json:{write:!0},nonNullable:!0,type:Number})],S.prototype,"pointsPerInch",void 0),S=(0,n._)([(0,d.c)("esri.renderers.PointCloudRenderer")],S),(S||(S={})).fieldTransformTypeKebabDict=new s.O({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"});const T=S},56185:(e,t,r)=>{r.d(t,{c:()=>h});var i,n=r(41948),s=r(62088),o=r(1580),l=(r(9456),r(66360),r(9968)),a=r(12552),d=r(96220),u=r(89584),p=r(83060);let c=i=class extends d.c{constructor(e){super(e),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new i({...this.cloneProperties(),field:(0,s.ct)(this.field),fieldTransformType:(0,s.ct)(this.fieldTransformType),stops:(0,s.ct)(this.stops),legendOptions:(0,s.ct)(this.legendOptions)})}};(0,n._)([(0,l.G)({pointCloudStretchRenderer:"point-cloud-stretch"})],c.prototype,"type",void 0),(0,n._)([(0,o.qq)({json:{write:!0},type:String})],c.prototype,"field",void 0),(0,n._)([(0,o.qq)({type:u.i,json:{write:!0}})],c.prototype,"legendOptions",void 0),(0,n._)([(0,o.qq)({type:d.c.fieldTransformTypeKebabDict.apiValues,json:{type:d.c.fieldTransformTypeKebabDict.jsonValues,read:d.c.fieldTransformTypeKebabDict.read,write:d.c.fieldTransformTypeKebabDict.write}})],c.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.qq)({type:[p.c],json:{write:!0}})],c.prototype,"stops",void 0),c=i=(0,n._)([(0,a.c)("esri.renderers.PointCloudStretchRenderer")],c);const h=c},53224:(e,t,r)=>{r.d(t,{c:()=>v});var i,n=r(41948),s=r(62088),o=r(1580),l=(r(9456),r(66360),r(9968)),a=r(12552),d=r(96220),u=r(89584),p=r(44728),c=r(40504),h=r(53368);let y=i=class extends c.am{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new i({description:this.description,label:this.label,values:(0,s.ct)(this.values),color:(0,s.ct)(this.color)})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,n._)([(0,o.qq)({type:[String],json:{write:!0}})],y.prototype,"values",void 0),(0,n._)([(0,o.qq)({type:p.c,json:{type:[h.Ab],write:!0}})],y.prototype,"color",void 0),y=i=(0,n._)([(0,a.c)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],y);const m=y;var f;let g=f=class extends d.c{constructor(e){super(e),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new f({...this.cloneProperties(),field:(0,s.ct)(this.field),fieldTransformType:(0,s.ct)(this.fieldTransformType),colorUniqueValueInfos:(0,s.ct)(this.colorUniqueValueInfos),legendOptions:(0,s.ct)(this.legendOptions)})}};(0,n._)([(0,l.G)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],g.prototype,"type",void 0),(0,n._)([(0,o.qq)({json:{write:!0},type:String})],g.prototype,"field",void 0),(0,n._)([(0,o.qq)({type:d.c.fieldTransformTypeKebabDict.apiValues,json:{type:d.c.fieldTransformTypeKebabDict.jsonValues,read:d.c.fieldTransformTypeKebabDict.read,write:d.c.fieldTransformTypeKebabDict.write}})],g.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.qq)({type:[m],json:{write:!0}})],g.prototype,"colorUniqueValueInfos",void 0),(0,n._)([(0,o.qq)({type:u.i,json:{write:!0}})],g.prototype,"legendOptions",void 0),g=f=(0,n._)([(0,a.c)("esri.renderers.PointCloudUniqueValueRenderer")],g);const v=g},89584:(e,t,r)=>{r.d(t,{i:()=>a});var i,n=r(41948),s=r(40504),o=r(1580),l=(r(9456),r(66360),r(72052),r(12552));let a=i=class extends s.am{constructor(){super(...arguments),this.title=null}clone(){return new i({title:this.title})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=i=(0,n._)([(0,l.c)("esri.renderers.support.LegendOptions")],a)},83060:(e,t,r)=>{r.d(t,{c:()=>c});var i,n=r(41948),s=r(44728),o=r(40504),l=r(1580),a=r(53368),d=(r(72052),r(9456),r(12552)),u=r(18996);let p=i=class extends o.am{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,r){t[r]=e??0}clone(){return new i({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,n._)([(0,l.qq)({type:s.c,json:{type:[a.Ab],write:!0}})],p.prototype,"color",void 0),(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,n._)([(0,l.qq)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),(0,n._)([(0,u.G)("value")],p.prototype,"writeValue",null),p=i=(0,n._)([(0,d.c)("esri.renderers.visualVariables.support.ColorStop")],p);const c=p},69204:(e,t,r)=>{function i(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?a:d}(e).mode}(null!=e&&e.hasZ,t)}function n(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function s(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function o(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function l(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{A$:()=>l,Ez:()=>n,W8:()=>o,ay:()=>s,m6:()=>i}),r(24296),r(35764);const a={mode:"absolute-height",offset:0},d={mode:"on-the-ground",offset:null}},65548:(e,t,r)=>{r.d(t,{Ap:()=>d});var i=r(82692),n=r(564),s=r(3739),o=(r(73312),r(67300),r(18480),r(72944)),l=(r(53568),r(15024),r(63116),r(13428)),a=r(76992);function d({displayField:e,editFieldsInfo:t,fields:r,objectIdField:a,title:d},h){if(!r)return null;const m=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(p),e}(e.fields??[],t?.ignoreFieldTypes||y).map((t=>new l.c({fieldName:t.name,isEditable:(0,n.Yn)(t,e),label:t.alias,format:c(t),visible:u(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:a},h);if(!m.length)return null;const f=function(e){const t=(0,n.G2)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:d,fields:r,displayField:e}),g=[new o.c,new s.c];return new i.c({title:f,content:g,fieldInfos:m})}const u=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.iY)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function c(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.c({digitSeparator:!0,places:0});case"double":return new a.c({digitSeparator:!0,places:2});case"string":return(0,n.Gm)(e.name)?new a.c({digitSeparator:!0,places:0}):null;default:return null}}function h(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const y=["geometry","blob","raster","guid","xml"]}}]);
|