@arcgis/core 4.30.0-next.20240601 → 4.30.0-next.20240604

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/0d750cf0c74d14080fea.js +1 -0
  3. package/assets/esri/core/workers/chunks/{10262c0776dc61ebe920.js → 1ea3e4afb8ac0a515688.js} +1 -1
  4. package/assets/esri/core/workers/chunks/288fdc4a4746d6b81687.js +1 -0
  5. package/assets/esri/core/workers/chunks/360207daa4b6ce7692f2.js +1 -0
  6. package/assets/esri/core/workers/chunks/569c0397dc923ea2700e.js +1 -0
  7. package/assets/esri/core/workers/chunks/63f06a86a8a0e60f0f6d.js +1 -0
  8. package/assets/esri/core/workers/chunks/714ba83004f250a7f0d6.js +1 -0
  9. package/assets/esri/core/workers/chunks/{7e06063fe0c0853ff0f9.js → 7bdbe784b3ff709aa6c1.js} +1 -1
  10. package/assets/esri/core/workers/chunks/85219e23fc3f996bda90.js +1 -0
  11. package/assets/esri/core/workers/chunks/85afa3c4b08500faf3cb.js +1 -0
  12. package/assets/esri/core/workers/chunks/911f1a12570ea9e3e930.js +1 -0
  13. package/assets/esri/core/workers/chunks/9f2d8940da48c864b2ca.js +1 -0
  14. package/assets/esri/core/workers/chunks/b2ddb0aea8f78e4bff0e.js +1 -0
  15. package/assets/esri/core/workers/chunks/b57a5055b9956433dac2.js +1 -0
  16. package/assets/esri/core/workers/chunks/d03ada1212b13e76bff4.js +1 -0
  17. package/assets/esri/core/workers/chunks/d61e1078e0d3bae71237.js +1 -0
  18. package/assets/esri/core/workers/chunks/dcca17cf0c48a97a5fa1.js +1 -0
  19. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  20. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  21. package/assets/esri/themes/base/widgets/_Print.scss +31 -0
  22. package/assets/esri/themes/dark/main.css +1 -1
  23. package/assets/esri/themes/light/main.css +1 -1
  24. package/assets/esri/themes/light/view.css +1 -1
  25. package/core/sql.js +1 -1
  26. package/geometry/support/meshUtils/geographicUtils.js +1 -1
  27. package/geometry/support/meshVertexSpaceUtils.js +1 -1
  28. package/interfaces.d.ts +374 -157
  29. package/layers/support/Sublayer.js +1 -1
  30. package/package.json +1 -1
  31. package/support/revision.js +1 -1
  32. package/symbols/cim/CIMSymbolHelper.js +1 -1
  33. package/views/2d/layers/support/ExportStrategy.js +1 -1
  34. package/views/3d/analysis/Viewshed/FieldOfViewManipulation.js +1 -1
  35. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  36. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  37. package/views/3d/analysis/Viewshed/viewshedToolConfig.js +1 -1
  38. package/views/3d/layers/I3SMeshView3D.js +1 -1
  39. package/views/3d/terrain/PatchRenderData.js +1 -1
  40. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  41. package/views/3d/webgl-engine/lib/ModelDirtySet.js +1 -1
  42. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  43. package/views/animation/pointToPoint/Definition.js +1 -1
  44. package/views/animation/pointToPoint/Segment.js +1 -1
  45. package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
  46. package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
  47. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  48. package/widgets/Feature/support/featureUtils.js +1 -1
  49. package/widgets/FeatureTable/AttachmentsColumn.d.ts +4 -0
  50. package/widgets/FeatureTable/RelationshipColumn.d.ts +4 -0
  51. package/widgets/LayerList/ListItemPanel.js +1 -1
  52. package/widgets/Print/PrintViewModel.js +1 -1
  53. package/widgets/Print.js +1 -1
  54. package/widgets/TableList/ListItemPanel.js +1 -1
  55. package/assets/esri/core/workers/chunks/34df10bfe977896523f3.js +0 -1
  56. package/assets/esri/core/workers/chunks/3aebfa49d6e42c50b53b.js +0 -1
  57. package/assets/esri/core/workers/chunks/5450e38fe055c2d96ef4.js +0 -1
  58. package/assets/esri/core/workers/chunks/57017fa7e2ac4e0f2dfe.js +0 -1
  59. package/assets/esri/core/workers/chunks/5e6073954f4716b2fd9d.js +0 -1
  60. package/assets/esri/core/workers/chunks/61aa8e2ae69cabe3028b.js +0 -1
  61. package/assets/esri/core/workers/chunks/730cc0d28d3fba013077.js +0 -1
  62. package/assets/esri/core/workers/chunks/8a65d17f99d4ddc25204.js +0 -1
  63. package/assets/esri/core/workers/chunks/8e9c56f3bad5e00f7e1e.js +0 -1
  64. package/assets/esri/core/workers/chunks/a55c3aed4ccb77fb9078.js +0 -1
  65. package/assets/esri/core/workers/chunks/d2a59e2ed3274f61484d.js +0 -1
  66. package/assets/esri/core/workers/chunks/eaadfb033dce33094e4c.js +0 -1
  67. package/assets/esri/core/workers/chunks/eae526e10fb9306c5650.js +0 -1
  68. package/assets/esri/core/workers/chunks/eb6c76bbd4169c071151.js +0 -1
  69. package/assets/esri/core/workers/chunks/ef49aef62a6df76428a0.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3740,9377,3069],{39516:(e,t,i)=>{async function n(e,t){const{WhereClause:n}=await Promise.all([i.e(835),i.e(4800)]).then(i.bind(i,50835));return n.create(e,t)}function r(e,t){return"1=1"===e?t??e:"1=1"===t?e??t:null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}i.d(t,{G:()=>n,m:()=>r})},3330:(e,t,i)=>{i.d(t,{GB:()=>r,Qo:()=>s,Y4:()=>o});var n=i(96285);class r{}function o(e){return e instanceof n.bo?e===r.instance:"unknown"===e?.toString().toLowerCase()}function s(e){return o(e)?r.instance:e}r.instance=new n.oh("Etc/UTC")},13069:(e,t,i)=>{i.d(t,{lk:()=>r,vD:()=>s,yS:()=>o});const n="randomUUID"in crypto;function r(){if(n)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 o(){return`{${r().toUpperCase()}}`}function s(){return`{${r()}}`}},70328:(e,t,i)=>{i.d(t,{BI:()=>h,Ej:()=>u,Hq:()=>p,Ie:()=>m,Jt:()=>f,Ne:()=>c,RF:()=>a,aI:()=>v,fA:()=>o,hZ:()=>y,iT:()=>l,is:()=>g,qv:()=>_,vI:()=>d,v_:()=>w,vt:()=>r,w1:()=>s});var n=i(5443);function r(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,i,n,o,s,a=r()){return a[0]=e,a[1]=t,a[2]=i,a[3]=n,a[4]=o,a[5]=s,a}function s(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new n.A(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,n=t.length/3){let r=e[0],o=e[1],s=e[2],a=e[3],l=e[4],p=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),o=Math.min(o,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]=r,e[1]=o,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,_):r(_)}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,n,r){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function v(e,t,i){if(null==e||null==t)return e===t;if(!g(e)||!g(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}i(19419);const _=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];r()},16230:(e,t,i)=>{i.r(t),i.d(t,{default:()=>$});var n=i(90237),r=i(49186),o=i(66552),s=i(10107),a=i(79901),l=i(40608),p=i(13600),u=i(69540),c=i(25482),d=(i(44208),i(53966),i(87811),i(69622));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 v(e,t){return e&&f.includes(e)||4326===t?"ellipsoidal":"gravity-related-height"}let _=class extends d.A{constructor(){super(...arguments),this.verticalWKID=null}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&i?.length>1&&n?.length>1&&r?.length>1}get unitAndHeightInfo(){const{horizontalWKID:e,verticalWKID:t}=this;let i=e,n=t;const r=this;if(4===r.type){const{properties:e}=r;i=4326,n=e.verticalWKID}return{heightModel:v(n,i),heightUnit:g(n,i),horizontalUnit:h(i)}}};(0,n._)([(0,s.MZ)({json:{write:!0}})],_.prototype,"affineTransformations",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],_.prototype,"focalLength",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],_.prototype,"principalOffsetPoint",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],_.prototype,"radialDistortionCoefficients",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],_.prototype,"tangentialDistortionCoefficients",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],_.prototype,"horizontalWKID",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],_.prototype,"verticalWKID",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],_.prototype,"x",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],_.prototype,"y",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],_.prototype,"z",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],_.prototype,"type",void 0),(0,n._)([(0,s.MZ)({readOnly:!0})],_.prototype,"unitAndHeightInfo",null),_=(0,n._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientation")],_);const w=_;let M=class extends((0,u.O)((0,c.Te)(w))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,m=[e,t,i,n,r,o,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,n._)([(0,s.MZ)({json:{write:!0}})],M.prototype,"type",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],M.prototype,"affineTransformations",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],M.prototype,"focalLength",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],M.prototype,"principalOffsetPoint",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],M.prototype,"radialDistortionCoefficients",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],M.prototype,"tangentialDistortionCoefficients",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],M.prototype,"heading",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],M.prototype,"pitch",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],M.prototype,"roll",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],M.prototype,"horizontalWKID",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],M.prototype,"verticalWKID",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],M.prototype,"x",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],M.prototype,"y",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],M.prototype,"z",void 0),M=(0,n._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationHPR")],M);const Z=M;let N=class extends((0,u.O)((0,c.Te)(w))){constructor(){super(...arguments),this.type=2,this.verticalWKID=null}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,m=[e,t,i,n,r,o,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,n._)([(0,s.MZ)({json:{write:!0}})],N.prototype,"type",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],N.prototype,"affineTransformations",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"focalLength",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],N.prototype,"principalOffsetPoint",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],N.prototype,"radialDistortionCoefficients",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],N.prototype,"tangentialDistortionCoefficients",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"omega",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"phi",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"kappa",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"horizontalWKID",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"verticalWKID",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"x",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"y",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],N.prototype,"z",void 0),N=(0,n._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationOPK")],N);const x=N;let b=class extends((0,u.O)((0,c.Te)(w))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:n,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||i?.length>1||n?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,m=[e,t,i,n,r,o,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,n._)([(0,s.MZ)({json:{write:!0}})],b.prototype,"type",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],b.prototype,"affineTransformations",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],b.prototype,"focalLength",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],b.prototype,"principalOffsetPoint",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],b.prototype,"radialDistortionCoefficients",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],b.prototype,"tangentialDistortionCoefficients",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],b.prototype,"yaw",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],b.prototype,"pitch",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],b.prototype,"roll",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],b.prototype,"horizontalWKID",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],b.prototype,"verticalWKID",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],b.prototype,"x",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],b.prototype,"z",void 0),b=(0,n._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationYPR")],b);const j=b;i(24183);let T=class extends c.oY{constructor(){super(...arguments),this.url=null}};(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],T.prototype,"lod",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],T.prototype,"rasterFunction",void 0),(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],T.prototype,"url",void 0),T=(0,n._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],T);let F=class extends c.oY{constructor(){super(...arguments),this.constantElevation=null}};var I;(0,n._)([(0,s.MZ)({type:Number,json:{write:!0}})],F.prototype,"constantElevation",void 0),F=(0,n._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],F),function(e){e[e.HPR=1]="HPR",e[e.OPK=2]="OPK",e[e.YPR=3]="YPR",e[e.LTP=4]="LTP"}(I||(I={}));var S=i(58769);const P=new o.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),D=new o.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique","":null}),O=new Map;O.set(`${I.OPK}`,{desc:"Using Omega Phi Kappa",constructor:x}),O.set(`${I.HPR}`,{desc:"Using Heading, Pitch and Roll",constructor:Z}),O.set(`${I.YPR}`,{desc:"Using Yaw, Pitch and Roll",constructor:j});const R=new Map;function E(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(`${I.HPR}`,(function(e){const[t,i,n,r,o,s,a,l,p,u,c,d,y,m,f,h,g,v,_,w,M,Z]=e.slice(1),N=[p,u,c,d,y,m].map((e=>Number(e))),x=[h,g].map((e=>Number(e))),b=[v,_,w],j=[M,Z];return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,heading:s,pitch:a,roll:l,affineTransformations:6===N.filter(S.E).length?N:null,focalLength:f,principalOffsetPoint:2!==x.filter(S.E).length?null:x,radialDistortionCoefficients:3!==b.filter(S.E).length?null:b,tangentialDistortionCoefficients:2!==j.filter(S.E).length?null:j}})),R.set(`${I.YPR}`,(function(e){const[t,i,n,r,o,s,a,l,p,u,c,d,y,m,f,h,g,v,_,w,M,Z]=e.slice(1),N=[p,u,c,d,y,m].map((e=>Number(e))),x=[h,g].map((e=>Number(e))),b=[v,_,w],j=[M,Z];return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,yaw:s,pitch:a,roll:l,affineTransformations:6===N.filter(S.E).length?N:null,focalLength:f,principalOffsetPoint:2!==x.filter(S.E).length?null:x,radialDistortionCoefficients:3!==b.filter(S.E).length?null:b,tangentialDistortionCoefficients:2!==j.filter(S.E).length?null:j}})),R.set(`${I.OPK}`,(function(e){const[t,i,n,r,o,s,a,l,p,u,c,d,y,m,f,h,g,v,_,w,M,Z]=e.slice(1),N=[p,u,c,d,y,m].map((e=>Number(e))),x=[h,g].map((e=>Number(e))),b=[v,_,w].map((e=>Number(e))),j=[M,Z].map((e=>Number(e)));return{horizontalWKID:t,verticalWKID:i,x:n,y:r,z:o,omega:s,phi:a,kappa:l,affineTransformations:6===N.filter(S.E).length?N:null,focalLength:f,principalOffsetPoint:2!==x.filter(S.E).length?null:x,radialDistortionCoefficients:3!==b.filter(S.E).length?[0,0,0]:b,tangentialDistortionCoefficients:2!==j.filter(S.E).length?[0,0]:j}})),R.set(`${I.LTP}`,(function(e){const[t,i,n,r,o,...s]=e.slice(1),a=R.get(o);return a?{latitude:t,longitude:i,ellipsoidRadius:n,squaredEccentricity:r,properties:a([o,"",...s])}:null}));let z=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.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),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 F(e):function(e,t,i){let{url:n}=e;return n?(n=function(e,t,i){return t&&(e=`${t}${e}`),i&&(e+=`${i}`),e}(n,t,i),new T({...e,url:n})):null}(e,t,i):e}(e,t,i)}findFirstValidLayerId(e){return e.layers?.find((e=>this.supportedSourceTypes.has(e.type)))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new r.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};(0,n._)([(0,s.MZ)({type:Number,json:E("cameraHeading")})],z.prototype,"cameraHeading",void 0),(0,n._)([(0,s.MZ)({type:Number,json:E("cameraHeight")})],z.prototype,"cameraHeight",void 0),(0,n._)([(0,s.MZ)({type:Number,json:E("cameraPitch")})],z.prototype,"cameraPitch",void 0),(0,n._)([(0,s.MZ)({type:Number,json:E("cameraRoll")})],z.prototype,"cameraRoll",void 0),(0,n._)([(0,s.MZ)({type:Number,json:E("coveragePercent")})],z.prototype,"coveragePercent",void 0),(0,n._)([(0,s.MZ)({type:String,json:E("demPathPrefix")})],z.prototype,"demPathPrefix",void 0),(0,n._)([(0,s.MZ)({type:String,json:E("demPathSuffix")})],z.prototype,"demPathSuffix",void 0),(0,n._)([(0,s.MZ)({type:String,json:E("depthImagePathPrefix")})],z.prototype,"depthImagePathPrefix",void 0),(0,n._)([(0,s.MZ)({type:String,json:E("depthImagePathSuffix")})],z.prototype,"depthImagePathSuffix",void 0),(0,n._)([(0,s.MZ)({type:Object,json:E("elevationSource")})],z.prototype,"elevationSource",void 0),(0,n._)([(0,s.MZ)()],z.prototype,"effectiveElevationSource",null),(0,n._)([(0,s.MZ)({type:Number,json:E("farDistance")})],z.prototype,"farDistance",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],z.prototype,"geometryType",void 0),(0,n._)([(0,s.MZ)({type:Number,json:E("horizontalFieldOfView")})],z.prototype,"horizontalFieldOfView",void 0),(0,n._)([(0,s.MZ)({type:String,json:E("horizontalMeasurementUnit")})],z.prototype,"horizontalMeasurementUnit",void 0),(0,n._)([(0,s.MZ)({type:String,json:E("imagePathPrefix")})],z.prototype,"imagePathPrefix",void 0),(0,n._)([(0,s.MZ)({type:String,json:E("imagePathSuffix")})],z.prototype,"imagePathSuffix",void 0),(0,n._)([(0,s.MZ)({type:Number,json:E("imageRotation")})],z.prototype,"imageRotation",void 0),(0,n._)([(0,s.MZ)({type:Number,json:E("maximumDistance")})],z.prototype,"maximumDistance",void 0),(0,n._)([(0,s.MZ)({type:Number,json:E("nearDistance")})],z.prototype,"nearDistance",void 0),(0,n._)([(0,s.MZ)({type:["OrientedImageryLayer"]})],z.prototype,"operationalLayerType",void 0),(0,n._)([(0,s.MZ)({json:E("orientationAccuracy",((e,t)=>{e&&(t.orientationAccuracy=e.join(","))}))}),(0,a.w)((e=>e?e.trim().split(",").map(Number):null))],z.prototype,"orientationAccuracy",void 0),(0,n._)([(0,s.MZ)({json:{...E("orientedImageryType",D.write,D.read),type:D.apiValues}})],z.prototype,"orientedImageryType",void 0),(0,n._)([(0,s.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],z.prototype,"type",void 0),(0,n._)([(0,s.MZ)({json:{...E("timeIntervalUnit",P.write,P.read),type:P.apiValues}})],z.prototype,"timeIntervalUnit",void 0),(0,n._)([(0,s.MZ)({type:Number,json:E("verticalFieldOfView")})],z.prototype,"verticalFieldOfView",void 0),(0,n._)([(0,s.MZ)({json:{...E("verticalMeasurementUnit"),type:new o.J({Feet:"feet",Meter:"meter"}).apiValues}})],z.prototype,"verticalMeasurementUnit",void 0),(0,n._)([(0,s.MZ)({type:String,json:E("videoPathPrefix")})],z.prototype,"videoPathPrefix",void 0),(0,n._)([(0,s.MZ)({type:String,json:E("videoPathSuffix")})],z.prototype,"videoPathSuffix",void 0),z=(0,n._)([(0,l.$)("esri.layers.OrientedImageryLayer")],z);const $=z},33143:(e,t,i)=>{i.d(t,{A:()=>y});var n=i(90237),r=i(69540),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),l=i(40608),p=i(43937),u=i(72088),c=i(29005);let d=class extends((0,r.O)(o.oY)){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.rS)(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,n._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,n._)([(0,a.w)("domains")],d.prototype,"readDomains",null),(0,n._)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,n._)([(0,s.MZ)({type:[c.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,n._)([(0,l.$)("esri.layers.support.FeatureType")],d);const y=d},20437:(e,t,i)=>{i.d(t,{A:()=>h});var n,r=i(90237),o=i(66552),s=i(25482),a=i(10107),l=i(56507),p=(i(87811),i(44208),i(93223)),u=i(36005),c=i(40608),d=i(72088),y=i(98453);const m=new o.J({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=n=class extends s.oY{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 n({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,r._)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,r._)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,r._)([(0,a.MZ)()],f.prototype,"description",void 0),(0,r._)([(0,u.w)("description")],f.prototype,"readDescription",null),(0,r._)([(0,a.MZ)({types:d.gK,json:{read:{reader:d.rS},write:!0}})],f.prototype,"domain",void 0),(0,r._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,r._)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,r._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,r._)([(0,p.e)(y.m)],f.prototype,"type",void 0),(0,r._)([(0,a.MZ)()],f.prototype,"valueType",void 0),(0,r._)([(0,u.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,r._)([(0,a.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=n=(0,r._)([(0,c.$)("esri.layers.support.Field")],f);const h=f},95466:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(49186),r=i(25482),o=i(53966),s=i(91869),a=i(3330),l=i(30524),p=i(56400),u=i(96285);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,n=m(t);if(t&&n){const r=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.Xz)(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.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(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?(o.A.getLogger("esri.layers.support.FieldsIndex").error(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),p.n$):f.has(t.type)?p.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===p.L5?a.GB.instance:t===p.n$?u.mQ.utcInstance:(0,s.tE)(c,t,(()=>u.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.OH)(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,r.Wj)(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.rS)(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:n,editFieldsInfo:r}=e,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",s=(n?"endField"in n?n.endField:n.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,p.ZS)(e.dateFieldsTimeReference):null,l=r?function(e){return"timeZone"in e}(r)?r.timeZone??a:r.dateFieldsTimeReference?(0,p.ZS)(r.dateFieldsTimeReference):a??p.n$:null,u=n?function(e){return"timeZone"in e}(n)?n.timeZone??a:n.timeReference?(0,p.ZS)(n.timeReference):a:null,c=new Map([[y(r?.creationDateField??""),l],[y(r?.editDateField??""),l],[y(o),u],[y(s),u]]);for(const{name:n,type:r}of e.fields)if(f.has(r))t.set(n,p.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,p.L5);else{const e=c.get(y(n??""))??a;t.set(n,e)}return t}},72088:(e,t,i)=>{i.d(t,{rS:()=>x,gK:()=>N}),i(44208);var n,r=i(90237),o=i(4718),s=i(10107),a=(i(53966),i(93223)),l=i(40608),p=i(25482);i(87811);let u=n=class extends p.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,r._)([(0,s.MZ)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=n=(0,r._)([(0,l.$)("esri.layers.support.CodedValue")],u);const c=new(i(66552).J)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends p.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,r._)([(0,a.e)(c)],d.prototype,"type",void 0),d=(0,r._)([(0,l.$)("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,o.o8)(this.codedValues),name:this.name})}};(0,r._)([(0,s.MZ)({type:[u],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,r._)([(0,a.e)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=m=(0,r._)([(0,l.$)("esri.layers.support.CodedValueDomain")],f);const h=f;var g;i(49186);let v=g=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,r._)([(0,a.e)({inherited:"inherited"})],v.prototype,"type",void 0),v=g=(0,r._)([(0,l.$)("esri.layers.support.InheritedDomain")],v);const _=v;var w;let M=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,r._)([(0,s.MZ)({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]}}}})],M.prototype,"maxValue",void 0),(0,r._)([(0,s.MZ)({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]}}}})],M.prototype,"minValue",void 0),(0,r._)([(0,a.e)({range:"range"})],M.prototype,"type",void 0),M=w=(0,r._)([(0,l.$)("esri.layers.support.RangeDomain")],M);const Z=M,N={key:"type",base:y,typeMap:{range:M,"coded-value":h,inherited:_}};function x(e){if(!e?.type)return null;switch(e.type){case"range":return Z.fromJSON(e);case"codedValue":return h.fromJSON(e);case"inherited":return _.fromJSON(e)}return null}},98453:(e,t,i)=>{i.d(t,{m:()=>n});const n=new(i(66552).J)({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"})},32730:(e,t,i)=>{i.d(t,{BI:()=>h,D3:()=>m,XJ:()=>f,lc:()=>y,mX:()=>v,rU:()=>g,tH:()=>N});var n=i(799);const r="__begin__",o="__end__",s=new RegExp(r,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+r,"i"),p=new RegExp(o+"$","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 v(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(_);return t?.[1].trim()||null}(t.expression);case"arcade":return N(t.expression)}return null}function v(e){let t;return e?(t=(0,n.HC)(e,(e=>r+'$feature["'+e+'"]'+o)),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 _=/^\s*\{([^}]+)\}\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,M=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,Z=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function N(e){if(!e)return null;let t=w.exec(e)||M.exec(e);return t?t[1]||t[3]:(t=Z.exec(e),t?t[2]:null)}},58501:(e,t,i)=>{i.d(t,{q:()=>r});var n=i(62815);function r(e,t,i){if(!i?.features||!i.hasZ)return;const r=(0,n.N)(i.geometryType,t,e.outSpatialReference);if(null!=r)for(const e of i.features)r(e.geometry)}},22671:(e,t,i)=>{i.d(t,{A:()=>_});var n,r=i(90237),o=i(59456),s=i(52106),a=i(66552),l=i(25482),p=i(4718),u=i(10107),c=(i(44208),i(53966),i(36005)),d=i(40608),y=i(43937),m=i(16930),f=i(65864),h=i(20437);const g=new a.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=n=class extends l.oY{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.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const r=e[t],o=s.A.fromJSON(r),a=r.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=i);const l=r.aggregateGeometries,p=o.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],n=l[e],r=n?.spatialReference;null==t||r||(t.spatialReference=i)}n.push(o)}return n}writeGeometryType(e,t,i,n){if(e)return void g.write(e,t,i,n);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void g.write(e.geometry.type,t,i,n)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,n=(0,f.rS)(e);return n&&!i&&t.spatialReference&&(n.spatialReference=m.A.fromJSON(t.spatialReference)),n}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 n(this.cloneProperties())}cloneProperties(){return(0,p.o8)({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 n=t.features[i];if(n.geometry){const t=e?.[i];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,i],translate:[n,r]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((r-e)/i)));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.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:[n,r],scale:[o,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*o+n),(e=>r-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 n,r;const o=[];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===n&&s===r||(o.push([e-n,s-r]),n=e,r=s)}else n=t(a[0]),r=i(a[1]),o.push([n,r])}return o.length>0?o: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 n=(0,f.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],s=this._quantizePoints(o,t,i);s&&r.push(s)}return r.length>0?((0,f.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,i);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,n,r){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,f.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];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(n&&r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2]),i[3]=r(i[3])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(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),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=i(a)}if(n&&r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2]),t[3]=r(t[3])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2])}}:null}};(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,r._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,r._)([(0,u.MZ)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,r._)([(0,c.w)("features")],v.prototype,"readFeatures",null),(0,r._)([(0,u.MZ)({type:[h.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,r._)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,r._)([(0,y.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,r._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,r._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,r._)([(0,u.MZ)({types:o.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,r._)([(0,c.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,r._)([(0,u.MZ)({type:m.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,r._)([(0,y.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,r._)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=n=(0,r._)([(0,d.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2324,1053,2141],{11053:(t,n,e)=>{e.d(n,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},11006:(t,n,e)=>{e.d(n,{q:()=>s});var r,o,i,a=e(11053),l={exports:{}};r=l,o=function(){function t(e,r,o,i,a){for(;i>o;){if(i-o>600){var l=i-o+1,s=r-o+1,c=Math.log(l),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(l-u)/l)*(s-l/2<0?-1:1);t(e,r,Math.max(o,Math.floor(r-s*u/l+f)),Math.min(i,Math.floor(r+(l-s)*u/l+f)),a)}var h=e[r],p=o,d=i;for(n(e,o,r),a(e[i],h)>0&&n(e,o,i);p<d;){for(n(e,p,d),p++,d--;a(e[p],h)<0;)p++;for(;a(e[d],h)>0;)d--}0===a(e[o],h)?n(e,o,d):n(e,++d,i),d<=r&&(o=d+1),r<=d&&(i=d-1)}}function n(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function e(t,n){return t<n?-1:t>n?1:0}return function(n,r,o,i,a){t(n,r,o||0,i||n.length-1,a||e)}},void 0!==(i=o())&&(r.exports=i);const s=(0,a.g)(l.exports)},73354:(t,n,e)=>{function r(t,n,e){o(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function o(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return t;const i=t.length/r,a=e[0],l=e[1],s=e[2],c=e[4],u=e[5],f=e[6],h=e[8],p=e[9],d=e[10],m=e[12],g=e[13],y=e[14];let M=0,x=0;for(let e=0;e<i;e++){const e=n[M],i=n[M+1],_=n[M+2];t[x]=a*e+c*i+h*_+m,t[x+1]=l*e+u*i+p*_+g,t[x+2]=s*e+f*i+d*_+y,M+=o,x+=r}return t}function i(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return;const i=t.length/r,a=e[0],l=e[1],s=e[2],c=e[3],u=e[4],f=e[5],h=e[6],p=e[7],d=e[8];let m=0,g=0;for(let e=0;e<i;e++){const e=n[m],i=n[m+1],y=n[m+2];t[g]=a*e+c*i+h*y,t[g+1]=l*e+u*i+p*y,t[g+2]=s*e+f*i+d*y,m+=o,g+=r}}function l(t,n,e){s(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let a=0,l=0;for(let s=0;s<i;s++)t[l]=e*n[a],t[l+1]=e*n[a+1],t[l+2]=e*n[a+2],a+=o,l+=r;return t}function c(t,n,e,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(n.length/o))return t;let a=0,l=0;for(let s=0;s<i;s++)t[l]=n[a]+e[0],t[l+1]=n[a+1]+e[1],t[l+2]=n[a+2]+e[2],a+=o,l+=r;return t}function u(t,n){f(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function f(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,a=0;for(let l=0;l<o;l++){const o=n[i],l=n[i+1],s=n[i+2],c=o*o+l*l+s*s;if(c>0){const n=1/Math.sqrt(c);t[a]=n*o,t[a+1]=n*l,t[a+2]=n*s}i+=r,a+=e}}e.d(n,{a:()=>o,b:()=>c,c:()=>i,d:()=>r,e:()=>u,f:()=>l,n:()=>f,s:()=>s,t:()=>a}),e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:u,scale:s,scaleView:l,shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,a=n.typedBuffer,l=n.typedBufferStride;let s=0,c=0;for(let t=0;t<r;t++)o[c]=a[s]>>e,o[c+1]=a[s+1]>>e,o[c+2]=a[s+2]>>e,s+=l,c+=i},transformMat3:a,transformMat3View:i,transformMat4:o,transformMat4View:r,translate:c},Symbol.toStringTag,{value:"Module"}))},65686:(t,n,e)=>{e.d(n,{a:()=>o,b:()=>l,n:()=>a,s:()=>s,t:()=>i}),e(44208);var r=e(53966);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,r=4,o=r){if(t.length/r!=n.length/o)return;const i=t.length/r,a=e[0],l=e[1],s=e[2],c=e[3],u=e[4],f=e[5],h=e[6],p=e[7],d=e[8];let m=0,g=0;for(let e=0;e<i;e++){const e=n[m],i=n[m+1],y=n[m+2],M=n[m+3];t[g]=a*e+c*i+h*y,t[g+1]=l*e+u*i+p*y,t[g+2]=s*e+f*i+d*y,t[g+3]=M,m+=o,g+=r}}function a(t,n){const e=Math.min(t.count,n.count),r=t.typedBuffer,o=t.typedBufferStride,i=n.typedBuffer,a=n.typedBufferStride;for(let t=0;t<e;t++){const n=t*o,e=t*a,l=i[e],s=i[e+1],c=i[e+2],u=l*l+s*s+c*c;if(u>0){const t=1/Math.sqrt(u);r[n]=t*l,r[n+1]=t*s,r[n+2]=t*c}}}function l(t,n,e){s(t.typedBuffer,n,e,t.typedBufferStride)}function s(t,n,e,r=4){const o=Math.min(t.length/r,n.count),i=n.typedBuffer,a=n.typedBufferStride;let l=0,s=0;for(let n=0;n<o;n++)t[s]=e*i[l],t[s+1]=e*i[l+1],t[s+2]=e*i[l+2],t[s+3]=e*i[l+3],l+=a,s+=r}Object.freeze(Object.defineProperty({__proto__:null,normalize:a,scale:s,scaleView:l,transformMat3:i,transformMat3View:o,transformMat4:function(t,n,e,o=4,i=o){if(t.length/o!=n.length/i)return void r.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const a=t.length/o,l=e[0],s=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],m=e[8],g=e[9],y=e[10],M=e[11],x=e[12],_=e[13],A=e[14],w=e[15];let v=0,b=0;for(let e=0;e<a;e++){const e=n[v],r=n[v+1],a=n[v+2],S=n[v+3];t[b]=l*e+f*r+m*a+x*S,t[b+1]=s*e+h*r+g*a+_*S,t[b+2]=c*e+p*r+y*a+A*S,t[b+3]=u*e+d*r+M*a+w*S,v+=i,b+=o}},transformMat4View:function(t,n,e){if(t.count!==n.count)return;const r=t.count,o=e[0],i=e[1],a=e[2],l=e[3],s=e[4],c=e[5],u=e[6],f=e[7],h=e[8],p=e[9],d=e[10],m=e[11],g=e[12],y=e[13],M=e[14],x=e[15],_=t.typedBuffer,A=t.typedBufferStride,w=n.typedBuffer,v=n.typedBufferStride;for(let t=0;t<r;t++){const n=t*A,e=t*v,r=w[e],b=w[e+1],S=w[e+2],B=w[e+3];_[n]=o*r+s*b+h*S+g*B,_[n+1]=i*r+c*b+p*S+y*B,_[n+2]=a*r+u*b+d*S+M*B,_[n+3]=l*r+f*b+m*S+x*B}}},Symbol.toStringTag,{value:"Module"}))},69540:(t,n,e)=>{e.d(n,{O:()=>u,P:()=>f});var r=e(90237),o=e(69622),i=(e(44208),e(4718)),a=(e(53966),e(97768)),l=e(35666),s=e(88620),c=e(40608);const u=t=>{let n=class extends t{clone(){const t=(0,s.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,e=t.store,r={},o=new Map;for(const t in n){const a=n[t],s=e?.originOf(t),c=a.clonable;if(a.readOnly||!1===c||s!==l.Gr.USER&&s!==l.Gr.DEFAULTS&&s!==l.Gr.WEB_MAP&&s!==l.Gr.WEB_SCENE)continue;const u=this[t];let f=null;f="function"==typeof c?c(u):"reference"===c?u:(0,i.TU)(u),null!=u&&null==f||(s===l.Gr.DEFAULTS?o.set(t,f):r[t]=f)}const c=new(0,Object.getPrototypeOf(this).constructor)(r);if(o.size){const t=(0,s.oY)(c)?.store;if(t)for(const[n,e]of o)t.set(n,e,l.Gr.DEFAULTS)}return c}};return n=(0,r._)([(0,c.$)("esri.core.Clonable")],n),n};let f=class extends(u(o.A)){};f=(0,r._)([(0,c.$)("esri.core.Clonable")],f)},95488:(t,n,e)=>{e.d(n,{I:()=>o});var r=e(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const n=t.slice();for(const t of n)t.onInvalidated(),t.onCommitted()}}}},29242:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,i,a,l,s){return[t,n,e,r,o,i,a,l,s]}e.d(n,{fA:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:function(t,n){return new Float64Array(t,n,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},9093:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,createView:function(t,n){return new Float64Array(t,n,16)},fromValues:function(t,n,e,r,o,i,a,l,s,c,u,f,h,p,d,m){return[t,n,e,r,o,i,a,l,s,c,u,f,h,p,d,m]}},Symbol.toStringTag,{value:"Module"}))},77690:(t,n,e)=>{e.d(n,{B8:()=>l,Ge:()=>h,I0:()=>f,KC:()=>s,hZ:()=>i,hs:()=>u,lw:()=>c,mg:()=>a,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function i(t,n,e,r,o,i,a,l,s,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=l,t[7]=s,t[8]=c,t}function a(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function l(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],l=n[5],s=n[6],c=n[7],u=n[8],f=u*a-l*c,h=-u*i+l*s,p=c*i-a*s;let d=e*f+r*h+o*p;return d?(d=1/d,t[0]=f*d,t[1]=(-u*r+o*c)*d,t[2]=(l*r-o*a)*d,t[3]=h*d,t[4]=(u*e-o*s)*d,t[5]=(-l*e+o*i)*d,t[6]=p*d,t[7]=(-c*e+r*s)*d,t[8]=(a*e-r*i)*d,t):null}function s(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],l=n[5],s=n[6],c=n[7],u=n[8];return t[0]=a*u-l*c,t[1]=o*c-r*u,t[2]=r*l-o*a,t[3]=l*s-i*u,t[4]=e*u-o*s,t[5]=o*i-e*l,t[6]=i*c-a*s,t[7]=r*s-e*c,t[8]=e*a-r*i,t}function c(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=n[5],c=n[6],u=n[7],f=n[8],h=e[0],p=e[1],d=e[2],m=e[3],g=e[4],y=e[5],M=e[6],x=e[7],_=e[8];return t[0]=h*r+p*a+d*c,t[1]=h*o+p*l+d*u,t[2]=h*i+p*s+d*f,t[3]=m*r+g*a+y*c,t[4]=m*o+g*l+y*u,t[5]=m*i+g*s+y*f,t[6]=M*r+x*a+_*c,t[7]=M*o+x*l+_*u,t[8]=M*i+x*s+_*f,t}function u(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=e+e,l=r+r,s=o+o,c=e*a,u=r*a,f=r*l,h=o*a,p=o*l,d=o*s,m=i*a,g=i*l,y=i*s;return t[0]=1-f-d,t[3]=u-y,t[6]=h+g,t[1]=u+y,t[4]=1-c-d,t[7]=p-m,t[2]=h-g,t[5]=p+m,t[8]=1-c-f,t}function h(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],l=n[5],s=n[6],c=n[7],u=n[8],f=n[9],h=n[10],p=n[11],d=n[12],m=n[13],g=n[14],y=n[15],M=e*l-r*a,x=e*s-o*a,_=e*c-i*a,A=r*s-o*l,w=r*c-i*l,v=o*c-i*s,b=u*m-f*d,S=u*g-h*d,B=u*y-p*d,O=f*g-h*m,T=f*y-p*m,E=h*y-p*g;let R=M*E-x*T+_*O+A*B-w*S+v*b;return R?(R=1/R,t[0]=(l*E-s*T+c*O)*R,t[1]=(s*B-a*E-c*S)*R,t[2]=(a*T-l*B+c*b)*R,t[3]=(o*T-r*E-i*O)*R,t[4]=(e*E-o*B+i*S)*R,t[5]=(r*B-e*T-i*b)*R,t[6]=(m*v-g*w+y*A)*R,t[7]=(g*_-d*v-y*x)*R,t[8]=(d*w-m*_+y*M)*R,t):null}function p(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const d=c,m=p;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:s,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],a=t[5],l=t[6],s=t[7],c=t[8];return n*(c*i-a*s)+e*(-c*o+a*l)+r*(s*o-i*l)},equals:function(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],l=t[4],s=t[5],c=t[6],u=t[7],f=t[8],h=n[0],p=n[1],d=n[2],m=n[3],g=n[4],y=n[5],M=n[6],x=n[7],_=n[8],A=(0,r.FD)();return Math.abs(e-h)<=A*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-p)<=A*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(i-d)<=A*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(a-m)<=A*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(l-g)<=A*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(s-y)<=A*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(c-M)<=A*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(u-x)<=A*Math.max(1,Math.abs(u),Math.abs(x))&&Math.abs(f-_)<=A*Math.max(1,Math.abs(f),Math.abs(_))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:l,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],i=t[2],a=t[3],l=t[4],s=t[5],c=t[6],u=t[7],f=t[8];return Math.abs(1-(e*e+a*a+c*c))<=n&&Math.abs(1-(o*o+l*l+u*u))<=n&&Math.abs(1-(i*i+s*s+f*f))<=n},mul:d,multiply:c,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:h,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],a=n[5],l=n[6],s=n[8],c=n[9],u=n[10],f=u*a-l*c,h=-u*i+l*s,p=c*i-a*s,d=e*f+r*h+o*p;if(!d)return null;const m=1/d;return t[0]=f*m,t[1]=(-u*r+o*c)*m,t[2]=(l*r-o*a)*m,t[3]=h*m,t[4]=(u*e-o*s)*m,t[5]=(-l*e+o*i)*m,t[6]=p*m,t[7]=(-c*e+r*s)*m,t[8]=(a*e-r*i)*m,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=n[5],c=n[6],u=n[7],f=n[8],h=Math.sin(e),p=Math.cos(e);return t[0]=p*r+h*a,t[1]=p*o+h*l,t[2]=p*i+h*s,t[3]=p*a-h*r,t[4]=p*l-h*o,t[5]=p*s-h*i,t[6]=c,t[7]=u,t[8]=f,t},scale:u,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:p,translate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=n[5],c=n[6],u=n[7],f=n[8],h=e[0],p=e[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=l,t[5]=s,t[6]=h*r+p*a+c,t[7]=h*o+p*l+u,t[8]=h*i+p*s+f,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},75503:(t,n,e)=>{e.d(n,{w:()=>a});var r=e(4576),o=(e(44208),e(3694)),i=e(11006);class a{constructor(t=9,n){this._compareMinX=f,this._compareMinY=h,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&("function"==typeof n?this._toBBox=n:this._initFormat(n)),this.clear()}destroy(){this.clear(),_.prune(),A.prune(),w.prune(),v.prune()}all(t){l(this._data,t)}search(t,n){let e=this._data;const r=this._toBBox;if(M(t,e))for(_.clear();e;){for(let o=0,i=e.children.length;o<i;o++){const i=e.children[o],a=e.leaf?r(i):i;M(t,a)&&(e.leaf?n(i):y(t,a)?l(i,n):_.push(i))}e=_.pop()}}collides(t){let n=this._data;const e=this._toBBox;if(!M(t,n))return!1;for(_.clear();n;){for(let r=0,o=n.children.length;r<o;r++){const o=n.children[r],i=n.leaf?e(o):o;if(M(t,i)){if(n.leaf||y(t,i))return!0;_.push(o)}}n=_.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let n=0,e=t.length;n<e;n++)this.insert(t[n]);return this}let n=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===n.height)this._splitRoot(this._data,n);else{if(this._data.height<n.height){const t=this._data;this._data=n,n=t}this._insert(n,this._data.height-n.height-1,!0)}else this._data=n;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new B([]),this}remove(t){if(!t)return this;let n,e=this._data,o=null,i=0,a=!1;const l=this._toBBox(t);for(w.clear(),v.clear();e||w.length>0;){if(e||(e=w.pop(),o=w.data[w.length-1],i=v.pop()??0,a=!0),e.leaf&&(n=(0,r.qh)(e.children,t,e.children.length,e.indexHint),-1!==n))return e.children.splice(n,1),w.push(e),this._condense(w),this;a||e.leaf||!y(e,l)?o?(i++,e=o.children[i],a=!1):e=null:(w.push(e),v.push(i),i=0,o=e,e=e.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,n,e,r){const o=e-n+1;let i=this._maxEntries;if(o<=i){const r=new B(t.slice(n,e+1));return s(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const a=new O([]);a.height=r;const l=Math.ceil(o/i),c=l*Math.ceil(Math.sqrt(i));x(t,n,e,c,this._compareMinX);for(let o=n;o<=e;o+=c){const n=Math.min(o+c-1,e);x(t,o,n,l,this._compareMinY);for(let e=o;e<=n;e+=l){const o=Math.min(e+l-1,n);a.children.push(this._build(t,e,o,r-1))}}return s(a,this._toBBox),a}_insert(t,n,e){const r=this._toBBox,o=e?t:r(t);w.clear();const i=function(t,n,e,r){for(;r.push(n),!0!==n.leaf&&r.length-1!==e;){let e,r=1/0,o=1/0;for(let i=0,a=n.children.length;i<a;i++){const a=n.children[i],l=p(a),s=m(t,a)-l;s<o?(o=s,r=l<r?l:r,e=a):s===o&&l<r&&(r=l,e=a)}n=e||n.children[0]}return n}(o,this._data,n,w);for(i.children.push(t),u(i,o);n>=0&&w.data[n].children.length>this._maxEntries;)this._split(w,n),n--;!function(t,n,e){for(let r=e;r>=0;r--)u(n.data[r],t)}(o,w,n)}_split(t,n){const e=t.data[n],r=e.children.length,o=this._minEntries;this._chooseSplitAxis(e,o,r);const i=this._chooseSplitIndex(e,o,r);if(!i)return;const a=e.children.splice(i,e.children.length-i),l=e.leaf?new B(a):new O(a);l.height=e.height,s(e,this._toBBox),s(l,this._toBBox),n?t.data[n-1].children.push(l):this._splitRoot(e,l)}_splitRoot(t,n){this._data=new O([t,n]),this._data.height=t.height+1,s(this._data,this._toBBox)}_chooseSplitIndex(t,n,e){let r,o,i;r=o=1/0;for(let a=n;a<=e-n;a++){const n=c(t,0,a,this._toBBox),l=c(t,a,e,this._toBBox),s=g(n,l),u=p(n)+p(l);s<r?(r=s,i=a,o=u<o?u:o):s===r&&u<o&&(o=u,i=a)}return i}_chooseSplitAxis(t,n,e){const r=t.leaf?this._compareMinX:f,o=t.leaf?this._compareMinY:h;this._allDistMargin(t,n,e,r)<this._allDistMargin(t,n,e,o)&&t.children.sort(r)}_allDistMargin(t,n,e,r){t.children.sort(r);const o=this._toBBox,i=c(t,0,n,o),a=c(t,e-n,e,o);let l=d(i)+d(a);for(let r=n;r<e-n;r++){const n=t.children[r];u(i,t.leaf?o(n):n),l+=d(i)}for(let r=e-n-1;r>=n;r--){const n=t.children[r];u(a,t.leaf?o(n):n),l+=d(a)}return l}_condense(t){for(let n=t.length-1;n>=0;n--){const e=t.data[n];if(0===e.children.length)if(n>0){const o=t.data[n-1],i=o.children;i.splice((0,r.qh)(i,e,i.length,o.indexHint),1)}else this.clear();else s(e,this._toBBox)}}_initFormat(t){const n=["return a"," - b",";"];this._compareMinX=new Function("a","b",n.join(t[0])),this._compareMinY=new Function("a","b",n.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function l(t,n){let e=t;for(A.clear();e;){if(!0===e.leaf)for(const t of e.children)n(t);else A.pushArray(e.children);e=A.pop()??null}}function s(t,n){c(t,0,t.children.length,n,t)}function c(t,n,e,r,o){o||(o=new B([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,a=n;a<e;a++)i=t.children[a],u(o,t.leaf?r(i):i);return o}function u(t,n){t.minX=Math.min(t.minX,n.minX),t.minY=Math.min(t.minY,n.minY),t.maxX=Math.max(t.maxX,n.maxX),t.maxY=Math.max(t.maxY,n.maxY)}function f(t,n){return t.minX-n.minX}function h(t,n){return t.minY-n.minY}function p(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,n){return(Math.max(n.maxX,t.maxX)-Math.min(n.minX,t.minX))*(Math.max(n.maxY,t.maxY)-Math.min(n.minY,t.minY))}function g(t,n){const e=Math.max(t.minX,n.minX),r=Math.max(t.minY,n.minY),o=Math.min(t.maxX,n.maxX),i=Math.min(t.maxY,n.maxY);return Math.max(0,o-e)*Math.max(0,i-r)}function y(t,n){return t.minX<=n.minX&&t.minY<=n.minY&&n.maxX<=t.maxX&&n.maxY<=t.maxY}function M(t,n){return n.minX<=t.maxX&&n.minY<=t.maxY&&n.maxX>=t.minX&&n.maxY>=t.minY}function x(t,n,e,r,o){const a=[n,e];for(;a.length;){const n=a.pop(),e=a.pop();if(n-e<=r)continue;const l=e+Math.ceil((n-e)/r/2)*r;(0,i.q)(t,l,e,n,o),a.push(e,l,l,n)}}const _=new o.A,A=new o.A,w=new o.A,v=new o.A({deallocator:void 0});class b{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends b{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class B extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class O extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},48353:(t,n,e)=>{e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function a(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),a=Math.cos(n),l=e;return l[0]=-r,l[4]=-i*o,l[8]=a*o,l[12]=0,l[1]=o,l[5]=-i*r,l[9]=a*r,l[13]=0,l[2]=0,l[6]=a,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=e(37539),s=e(21325);function c(t,n,e,r){if(null==t||null==r)return!1;const i=(0,l.Qk)(t,l.Wv),c=(0,l.Qk)(r,l.zp);if(i===c&&!u(c)&&(i!==l.rz.UNKNOWN||(0,s.aI)(t,r)))return(0,o.kN)(e,n),!0;if(u(c)){const t=l.w5[i][l.rz.LON_LAT],r=l.w5[l.rz.LON_LAT][c];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,p,0),a(f*h[0],f*h[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}if(!(c!==l.rz.WEB_MERCATOR&&c!==l.rz.PLATE_CARREE&&c!==l.rz.WGS84&&c!==l.rz.CGCS2000||i!==l.rz.WGS84&&i!==l.rz.SPHERICAL_ECEF&&i!==l.rz.WEB_MERCATOR&&i!==l.rz.CGCS2000)){const t=l.w5[i][l.rz.LON_LAT],r=l.w5[l.rz.LON_LAT][c];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,p,0),i===l.rz.SPHERICAL_ECEF?function(t,n,e){a(t,n,e),(0,o.mg)(e,e)}(f*h[0],f*h[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function u(t){return t===l.rz.SPHERICAL_ECEF||t===l.rz.SPHERICAL_MARS_PCPF||t===l.rz.SPHERICAL_MOON_PCPF}const f=(0,r.kU)(1),h=(0,i.vt)(),p=(0,i.vt)()},65806:(t,n,e)=>{e.d(n,{g:()=>a});var r=e(51850),o=e(57251),i=e(9762);function a(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){l[0]=t.x,l[1]=t.y;const o=t.z;return l[2]=o??r??0,(0,i.projectBuffer)(l,t.spatialReference,0,n,e,0,1)}const a=(0,o.tryProjectWithZConversion)(t,e);return!!a&&(n[0]=a?.x,n[1]=a?.y,n[2]=a?.z??r??0,!0)}const l=(0,r.vt)()},98764:(t,n,e)=>{e.d(n,{Y0:()=>c,lO:()=>u});var r=e(73941),o=e(16930),i=e(21325);const a=new o.A(r.fv),l=new o.A(r.FY),s=new o.A(r.LJ),c=new o.A(r.Ro);function u(t){const n=f.get(t);if(n)return n;let e=a;if(t)if(t===l)e=l;else if(t===s)e=s;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?e=l:((0,i.ZL)(n)||(0,i.ZL)(r))&&(e=s);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?e=l:t===p&&(e=s)}}}return f.set(t,e),e}const f=new Map,h=l.wkt.toUpperCase(),p=s.wkt.toUpperCase()},4197:(t,n,e)=>{e.d(n,{Ns:()=>s,jh:()=>o,l5:()=>a,s:()=>l,xm:()=>i});var r=e(34275);function o(t,n=!1){return t<=r.y9?n?new Array(t).fill(0):new Array(t):new Float64Array(t)}function i(t){return((0,r.cy)(t)?t.length:t.byteLength/8)<=r.y9?Array.from(t):new Float64Array(t)}function a(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function l(t,n){for(let e=0;e<n.length;++e)t[e]=n[e];return t}function s(t){return Array.isArray(t)?new Float64Array(t):t}},95696:(t,n,e)=>{e.d(n,{A:()=>u});var r=e(90237),o=e(69540),i=e(25482),a=e(10107),l=(e(44208),e(53966),e(87811),e(93223)),s=e(40608);let c=class extends((0,o.O)(i.oY)){constructor(t){super(t),this.type="georeferenced",this.origin=null}};(0,r._)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r._)([(0,s.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c);const u=c},18251:(t,n,e)=>{e.d(n,{A:()=>f});var r=e(90237),o=e(69540),i=e(25482),a=e(10107),l=(e(44208),e(53966),e(87811),e(93223)),s=e(40608),c=e(51850);let u=class extends((0,o.O)(i.oY)){constructor(t){super(t),this.type="local",this.origin=(0,c.vt)()}};(0,r._)([(0,l.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,s.$)("esri.geometry.support.MeshLocalVertexSpace")],u);const f=u},38419:(t,n,e)=>{e.r(n),e.d(n,{default:()=>l});var r=e(44208),o=e(75503),i=e(95696),a=e(72258);class l{async createIndex(t,n){const e=new Array;if(!t.vertexAttributes?.position)return new o.w;const r=function(t){const{vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o}=t,l=(0,a.UR)({vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o},new i.A,{allowBufferReuse:!0})?.position;return l?!t.components||t.components.some((t=>!t.faces))?{position:l.buffer}:{position:l.buffer,components:t.components.map((t=>t.faces))}:null}(t),l=null!=n?await n.invoke("createIndexThread",r,{transferList:e}):this.createIndexThread(r).result;return s().fromJSON(l)}createIndexThread(t){const n=s();if(!t)return{result:n.toJSON()};const e=new Float64Array(t.position);return t.components?function(t,n,e){let r=0;for(const t of e)r+=t.length/3;const o=new Array(r);let i=0;for(const t of e)for(let e=0;e<t.length;e+=3)o[i++]=c(n,3*t[e],3*t[e+1],3*t[e+2]);return t.load(o),{result:t.toJSON()}}(n,e,t.components.map((t=>new Uint32Array(t)))):function(t,n){const e=new Array(n.length/9);let r=0;for(let t=0;t<n.length;t+=9)e[r++]=c(n,t,t+3,t+6);return t.load(e),{result:t.toJSON()}}(n,e)}}function s(){return new o.w(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function c(t,n,e,r){return{minX:Math.min(t[n],t[e],t[r]),maxX:Math.max(t[n],t[e],t[r]),minY:Math.min(t[n+1],t[e+1],t[r+1]),maxY:Math.max(t[n+1],t[e+1],t[r+1]),p0:[t[n],t[n+1],t[n+2]],p1:[t[e],t[e+1],t[e+2]],p2:[t[r],t[r+1],t[r+2]]}}},22141:(t,n,e)=>{e.d(n,{$5:()=>S,CN:()=>A,JP:()=>_,KM:()=>O,Mv:()=>E,X4:()=>w,gr:()=>b,project:()=>X,qs:()=>B,si:()=>v,xA:()=>T});var r=e(34727),o=e(77690),i=e(29242),a=e(58083),l=e(9093),s=e(38954),c=e(51850),u=e(57251),f=e(98764),h=e(48353),p=e(9762),d=e(4197),m=(e(79258),e(21325)),g=e(28735),y=e(13030),M=e(73354),x=e(65686);const _="Projection may be possible after calling projection.load().";function A(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function w(t,n,e,r,o){return Y(C.TO_PCPF,y.xs.fromTypedArray(t),R.NORMAL,y.Xm.fromTypedArray(n),y.Xm.fromTypedArray(e),r,y.xs.fromTypedArray(o))?o:null}function v(t,n,e,r,o){return Y(C.FROM_PCPF,y.xs.fromTypedArray(t),R.NORMAL,y.Xm.fromTypedArray(n),y.Xm.fromTypedArray(e),r,y.xs.fromTypedArray(o))?o:null}function b(t,n,e){return(0,p.projectBuffer)(t,n,0,e,(0,f.lO)(n),0,t.length/3)?e:null}function S(t,n,e){return(0,p.projectBuffer)(t,(0,f.lO)(e),0,n,e,0,t.length/3)?n:null}function B(t,n,e){return(0,o.Ge)(j,e),(0,M.t)(n,t,j),(0,r.or)(j)&&(0,M.n)(n,n),n}function O(t,n,e){return(0,o.z0)(j,e),(0,x.t)(n,t,j),(0,r.or)(j)&&(0,M.n)(n,n,4),n}function T(t,n,e,r,o){if(!Y(C.TO_PCPF,y.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),R.TANGENT,y.Xm.fromTypedArray(n),y.Xm.fromTypedArray(e),r,y.xs.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function E(t,n,e,r,o){if(!Y(C.FROM_PCPF,y.xs.fromTypedArray(t,16),R.TANGENT,y.Xm.fromTypedArray(n),y.Xm.fromTypedArray(e),r,y.xs.fromTypedArray(o,16)))return null;for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}var R,C,N;function F(t,n,e,r,i){switch((0,h.l)(r,e,L,r),t===C.FROM_PCPF&&(0,a.B8)(L,L),n){case R.NORMAL:return(0,o.Ge)(i,L);case R.TANGENT:return(0,o.z0)(i,L)}}function Y(t,n,e,r,o,i,a){if(!n)return;const l=r.count,c=(0,f.lO)(i);if(function(t){return t.isWGS84||(0,m.x1)(t)||(0,m.q8)(t)||(0,m.KQ)(t)}(i))for(let r=0;r<l;r++)o.getVec(r,P),n.getVec(r,z),(0,s.t)(z,z,F(t,e,P,c,j)),a.setVec(r,z);else for(let i=0;i<l;i++){o.getVec(i,P),n.getVec(i,z);const l=(0,g.jg)(r.get(i,1));let u=Math.cos(l);e===R.TANGENT!=(t===C.TO_PCPF)&&(u=1/u),F(t,e,P,c,j),t===C.TO_PCPF?(j[0]*=u,j[1]*=u,j[2]*=u,j[3]*=u,j[4]*=u,j[5]*=u):(j[0]*=u,j[3]*=u,j[6]*=u,j[1]*=u,j[4]*=u,j[7]*=u),(0,s.t)(z,z,j),(0,s.n)(z,z),a.setVec(i,z)}return a}function X(t){return"local"===t.vertexSpace.type?function({vertexSpace:t,transform:n,inSpatialReference:e,outSpatialReference:r,localMode:o,outPositions:i,positions:s}){const m=t.origin??c.uY,g=null!=t.origin?n?.localMatrix??l.zK:l.zK,y=(0,f.lO)(e),x=r.isWebMercator&&o||!(0,u.canProjectWithoutEngine)(e,y)?e:y;(0,h.l)(e,m,L,x),(0,a.lw)(L,L,g);const _=i??(0,d.jh)(s.length);return(0,M.a)(_,s,L),(0,p.projectBuffer)(_,x,0,_,r,0,_.length/3),_}(t):function({vertexSpace:t,transform:n,outPositions:e,positions:r,inSpatialReference:o,outSpatialReference:i}){const u=null!=t.origin?n?.localMatrix??l.zK:l.zK,f=e??(0,d.jh)(r.length);(0,a.aI)(u,l.zK)?(0,d.s)(f,r):(0,M.a)(f,r,u);const h=t.origin??c.uY;if(!(0,s.e)(h,c.uY)){const[t,n,e]=h;for(let r=0;r<f.length;r+=3)f[r]+=t,f[r+1]+=n,f[r+2]+=e}return(0,p.projectBuffer)(f,o,0,f,i,0,f.length/3)?f:null}(t)}(N=R||(R={}))[N.NORMAL=0]="NORMAL",N[N.TANGENT=1]="TANGENT",function(t){t[t.TO_PCPF=0]="TO_PCPF",t[t.FROM_PCPF=1]="FROM_PCPF"}(C||(C={}));const P=(0,c.vt)(),z=(0,c.vt)(),L=(0,l.vt)(),j=(0,i.vt)()},72258:(t,n,e)=>{e.d(n,{UR:()=>_,p5:()=>x,xK:()=>b});var r=e(53966),o=e(34727),i=e(83047),a=e(77690),l=e(29242),s=e(58083),c=e(9093),u=e(38954),f=e(51850),h=e(98764),p=e(48353),d=e(65806),m=e(27615),g=e(73354),y=e(22141);const M=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function x(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,u.f)(t,o,i),!0}const o=(0,h.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:a}=e,l=E;if(!(0,p.l)(r,a,l,o))return!1;const c=(0,s.B8)(E,l);return null!=c&&((0,u.h)(t,i,c),!0)}function _(t,n,e){const{vertexSpace:r,transform:i,vertexAttributes:l}=t,f=v(t.spatialReference,e,R.SOURCE|R.TARGET);if((0,m.yJ)(r,n)&&(!i||(0,s.t2)(i.localMatrix,c.zK))&&(0,o.Io)(f,1)){const{position:t,normal:n,tangent:r}=l,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const a=(0,h.lO)(n);if(!(0,p.l)(n,r,S,a))return(0,y.CN)(M(),n,a),null;if(e&&(0,s.lw)(S,S,e.localMatrix),!(0,p.l)(n,o,B,a))return(0,y.CN)(M(),a,n),null;(0,s.B8)(B,B);const l=(0,s.lw)(S,B,S);return w(l,n,i,R.SOURCE|R.TARGET),A(t,l)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const a=(0,h.lO)(t);if(!(0,p.l)(t,r,S,a))return(0,y.CN)(M(),t,a),null;e&&(0,s.lw)(S,S,e.localMatrix),w(S,t,i,R.SOURCE);const l=new Float64Array(n.position.length),c=function(t,n,e,r){(0,g.a)(r,t,n);const o=new Float64Array(t.length);return(0,y.$5)(r,o,e)?o:((0,y.CN)(M(),(0,h.lO)(e),e),null)}(n.position,S,t,l);if(!c)return null;const f=function(t,n,e,r,o){if(null==e)return null;const i=new Float32Array(e.length);return(0,y.qs)(e,i,r),(0,y.si)(i,t,n,o,i)?i:((0,y.CN)(M(),(0,h.lO)(o),o),null)}(c,l,n.normal,S,t);if(n.normal&&!f)return null;const d=function(t,n,e,r,o){if(null==e)return null;const i=new Float32Array(e.length);return(0,y.KM)(e,i,r),(0,y.Mv)(i,t,n,o,i)?i:((0,y.CN)(M(),(0,h.lO)(o),o),null)}(c,l,n.tangent,S,t);if(n.tangent&&!d)return null;if(o){const t=(0,u.k)(T,o);(0,g.b)(c,c,t)}return{position:c,normal:f,tangent:d}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=(0,h.lO)(n);if(!(0,p.l)(n,o,S,l))return(0,y.CN)(M(),n,l),null;const c=1/v(n,i,R.TARGET);(0,s.hs)(S,S,[c,c,c]);const u=(0,s.B8)(B,S),{position:f,normal:d,tangent:m}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,g.b)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=A(t,e.localMatrix);return(0,g.b)(r.position,r.position,n),r}(t,r,e),x=new Float64Array(f.length),_=function(t,n,e,r){const o=(0,y.gr)(t,n,r);if(!o)return(0,y.CN)(M(),n,(0,h.lO)(n)),null;const i=new Float64Array(o.length);return(0,g.a)(i,o,e),i}(f,n,u,x);if(!_)return null;const w=(0,a.Ge)(O,u),b=function(t,n,e,r,o,i){if(null==t)return null;const a=i??new Float32Array(t.length);return(0,y.X4)(t,n,e,r,a)?((0,g.t)(a,a,o),a):((0,y.CN)(M(),r,(0,h.lO)(r)),null)}(d,f,x,n,w,d!==t.normal?d:void 0);if(!b&&d)return null;const T=function(t,n,e,r,o,i){if(null==t)return null;const a=i??new Float32Array(t.length);return(0,y.xA)(t,n,e,r,a)?((0,g.t)(a,a,o,4),a):((0,y.CN)(M(),r,(0,h.lO)(r)),null)}(m,f,x,n,w,m!==t.tangent?m:void 0);return!T&&m?null:{position:_,normal:b,tangent:T}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const{position:a,normal:l,tangent:s}=n?A(t,n.localMatrix):t,c=new Float64Array(a.length);let f=a;if(r&&(f=(0,g.b)(c,f,r)),o){const t=(0,u.k)(T,o);f=(0,g.b)(c,f,t)}v(e,i,R.NONE);const h=i?.allowBufferReuse;return{position:f!==t.position||h?f:f.slice(),normal:l!==t.normal||h?l:l?.slice(),tangent:s!==t.tangent||h?s:s?.slice()}}(t,t.vertexSpace,n.origin,e)}}function A(t,n){const e=new Float64Array(t.position.length);(0,g.a)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,y.qs)(t.normal,r,n),o&&t.tangent&&(0,y.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function w(t,n,e,r){const o=v(n,e,r);1!==o&&(0,s.hs)(t,t,[o,o,o])}function v(t,n,e){const r=!!(e&R.SOURCE),o=!!(e&R.TARGET),i=n?.sourceUnit,a=n?.targetUnit;if(!i&&!a)return 1;let l=b(i,t);!r&&i&&1!==l&&(M().warn("source unit conversion not supported"),l=1);let s=1/b(a,t);return!o&&a&&1!==s&&(M().warn("target unit conversion not supported"),s=1),l*s}function b(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const S=(0,c.vt)(),B=(0,c.vt)(),O=(0,l.vt)(),T=(0,f.vt)(),E=(0,c.vt)();var R,C;(C=R||(R={}))[C.NONE=0]="NONE",C[C.SOURCE=1]="SOURCE",C[C.TARGET=2]="TARGET"},27615:(t,n,e)=>{e.d(n,{CK:()=>f,Hq:()=>u,MW:()=>h,TE:()=>p,yJ:()=>d});var r=e(51447),o=e(53966),i=e(38954),a=e(86738),l=e(95696),s=e(18251);function c(){return o.A.getLogger("esri.geometry.Mesh")}function u(t){return null!=t.origin}function f(t){return u(t.vertexSpace)}function h(t,n){if(!u(t))return null;const[e,r,o]=t.origin;return new a.A({x:e,y:r,z:o,spatialReference:n})}function p(t,n){const{x:e,y:o,z:i,spatialReference:a}=t,u=[e,o,i??0];return void 0!==n?.geographic&&((0,r.io)(c(),"option: geographic",{replacement:"use vertexSpace option instead",version:"4.29",warnOnce:!0}),n.vertexSpace&&c().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")),"local"===(n?.vertexSpace??(f=n?.geographic,null==f?void 0:f?"local":"georeferenced")??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(a))?new s.A({origin:u}):new l.A({origin:u});var f}function d(t,n){return t.type===n.type&&(t.origin===n.origin||null!=t.origin&&null!=n.origin&&(0,i.e)(t.origin,n.origin))}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2324,1053,2141],{11053:(t,n,e)=>{e.d(n,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},11006:(t,n,e)=>{e.d(n,{q:()=>s});var r,o,i,a=e(11053),l={exports:{}};r=l,o=function(){function t(e,r,o,i,a){for(;i>o;){if(i-o>600){var l=i-o+1,s=r-o+1,c=Math.log(l),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(l-u)/l)*(s-l/2<0?-1:1);t(e,r,Math.max(o,Math.floor(r-s*u/l+f)),Math.min(i,Math.floor(r+(l-s)*u/l+f)),a)}var h=e[r],p=o,d=i;for(n(e,o,r),a(e[i],h)>0&&n(e,o,i);p<d;){for(n(e,p,d),p++,d--;a(e[p],h)<0;)p++;for(;a(e[d],h)>0;)d--}0===a(e[o],h)?n(e,o,d):n(e,++d,i),d<=r&&(o=d+1),r<=d&&(i=d-1)}}function n(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function e(t,n){return t<n?-1:t>n?1:0}return function(n,r,o,i,a){t(n,r,o||0,i||n.length-1,a||e)}},void 0!==(i=o())&&(r.exports=i);const s=(0,a.g)(l.exports)},73354:(t,n,e)=>{function r(t,n,e){o(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function o(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return t;const i=t.length/r,a=e[0],l=e[1],s=e[2],c=e[4],u=e[5],f=e[6],h=e[8],p=e[9],d=e[10],m=e[12],g=e[13],y=e[14];let M=0,x=0;for(let e=0;e<i;e++){const e=n[M],i=n[M+1],_=n[M+2];t[x]=a*e+c*i+h*_+m,t[x+1]=l*e+u*i+p*_+g,t[x+2]=s*e+f*i+d*_+y,M+=o,x+=r}return t}function i(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return;const i=t.length/r,a=e[0],l=e[1],s=e[2],c=e[3],u=e[4],f=e[5],h=e[6],p=e[7],d=e[8];let m=0,g=0;for(let e=0;e<i;e++){const e=n[m],i=n[m+1],y=n[m+2];t[g]=a*e+c*i+h*y,t[g+1]=l*e+u*i+p*y,t[g+2]=s*e+f*i+d*y,m+=o,g+=r}}function l(t,n,e){s(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let a=0,l=0;for(let s=0;s<i;s++)t[l]=e*n[a],t[l+1]=e*n[a+1],t[l+2]=e*n[a+2],a+=o,l+=r;return t}function c(t,n,e,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(n.length/o))return t;let a=0,l=0;for(let s=0;s<i;s++)t[l]=n[a]+e[0],t[l+1]=n[a+1]+e[1],t[l+2]=n[a+2]+e[2],a+=o,l+=r;return t}function u(t,n){f(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function f(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,a=0;for(let l=0;l<o;l++){const o=n[i],l=n[i+1],s=n[i+2],c=o*o+l*l+s*s;if(c>0){const n=1/Math.sqrt(c);t[a]=n*o,t[a+1]=n*l,t[a+2]=n*s}i+=r,a+=e}}e.d(n,{a:()=>o,b:()=>c,c:()=>i,d:()=>r,e:()=>u,f:()=>l,n:()=>f,s:()=>s,t:()=>a}),e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:u,scale:s,scaleView:l,shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,a=n.typedBuffer,l=n.typedBufferStride;let s=0,c=0;for(let t=0;t<r;t++)o[c]=a[s]>>e,o[c+1]=a[s+1]>>e,o[c+2]=a[s+2]>>e,s+=l,c+=i},transformMat3:a,transformMat3View:i,transformMat4:o,transformMat4View:r,translate:c},Symbol.toStringTag,{value:"Module"}))},65686:(t,n,e)=>{e.d(n,{a:()=>o,b:()=>l,n:()=>a,s:()=>s,t:()=>i}),e(44208);var r=e(53966);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,r=4,o=r){if(t.length/r!=n.length/o)return;const i=t.length/r,a=e[0],l=e[1],s=e[2],c=e[3],u=e[4],f=e[5],h=e[6],p=e[7],d=e[8];let m=0,g=0;for(let e=0;e<i;e++){const e=n[m],i=n[m+1],y=n[m+2],M=n[m+3];t[g]=a*e+c*i+h*y,t[g+1]=l*e+u*i+p*y,t[g+2]=s*e+f*i+d*y,t[g+3]=M,m+=o,g+=r}}function a(t,n){const e=Math.min(t.count,n.count),r=t.typedBuffer,o=t.typedBufferStride,i=n.typedBuffer,a=n.typedBufferStride;for(let t=0;t<e;t++){const n=t*o,e=t*a,l=i[e],s=i[e+1],c=i[e+2],u=l*l+s*s+c*c;if(u>0){const t=1/Math.sqrt(u);r[n]=t*l,r[n+1]=t*s,r[n+2]=t*c}}}function l(t,n,e){s(t.typedBuffer,n,e,t.typedBufferStride)}function s(t,n,e,r=4){const o=Math.min(t.length/r,n.count),i=n.typedBuffer,a=n.typedBufferStride;let l=0,s=0;for(let n=0;n<o;n++)t[s]=e*i[l],t[s+1]=e*i[l+1],t[s+2]=e*i[l+2],t[s+3]=e*i[l+3],l+=a,s+=r}Object.freeze(Object.defineProperty({__proto__:null,normalize:a,scale:s,scaleView:l,transformMat3:i,transformMat3View:o,transformMat4:function(t,n,e,o=4,i=o){if(t.length/o!=n.length/i)return void r.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const a=t.length/o,l=e[0],s=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],m=e[8],g=e[9],y=e[10],M=e[11],x=e[12],_=e[13],A=e[14],w=e[15];let v=0,b=0;for(let e=0;e<a;e++){const e=n[v],r=n[v+1],a=n[v+2],S=n[v+3];t[b]=l*e+f*r+m*a+x*S,t[b+1]=s*e+h*r+g*a+_*S,t[b+2]=c*e+p*r+y*a+A*S,t[b+3]=u*e+d*r+M*a+w*S,v+=i,b+=o}},transformMat4View:function(t,n,e){if(t.count!==n.count)return;const r=t.count,o=e[0],i=e[1],a=e[2],l=e[3],s=e[4],c=e[5],u=e[6],f=e[7],h=e[8],p=e[9],d=e[10],m=e[11],g=e[12],y=e[13],M=e[14],x=e[15],_=t.typedBuffer,A=t.typedBufferStride,w=n.typedBuffer,v=n.typedBufferStride;for(let t=0;t<r;t++){const n=t*A,e=t*v,r=w[e],b=w[e+1],S=w[e+2],B=w[e+3];_[n]=o*r+s*b+h*S+g*B,_[n+1]=i*r+c*b+p*S+y*B,_[n+2]=a*r+u*b+d*S+M*B,_[n+3]=l*r+f*b+m*S+x*B}}},Symbol.toStringTag,{value:"Module"}))},69540:(t,n,e)=>{e.d(n,{O:()=>u,P:()=>f});var r=e(90237),o=e(69622),i=(e(44208),e(4718)),a=(e(53966),e(97768)),l=e(35666),s=e(88620),c=e(40608);const u=t=>{let n=class extends t{clone(){const t=(0,s.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,e=t.store,r={},o=new Map;for(const t in n){const a=n[t],s=e?.originOf(t),c=a.clonable;if(a.readOnly||!1===c||s!==l.Gr.USER&&s!==l.Gr.DEFAULTS&&s!==l.Gr.WEB_MAP&&s!==l.Gr.WEB_SCENE)continue;const u=this[t];let f=null;f="function"==typeof c?c(u):"reference"===c?u:(0,i.TU)(u),null!=u&&null==f||(s===l.Gr.DEFAULTS?o.set(t,f):r[t]=f)}const c=new(0,Object.getPrototypeOf(this).constructor)(r);if(o.size){const t=(0,s.oY)(c)?.store;if(t)for(const[n,e]of o)t.set(n,e,l.Gr.DEFAULTS)}return c}};return n=(0,r._)([(0,c.$)("esri.core.Clonable")],n),n};let f=class extends(u(o.A)){};f=(0,r._)([(0,c.$)("esri.core.Clonable")],f)},95488:(t,n,e)=>{e.d(n,{I:()=>o});var r=e(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const n=t.slice();for(const t of n)t.onInvalidated(),t.onCommitted()}}}},29242:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,i,a,l,s){return[t,n,e,r,o,i,a,l,s]}e.d(n,{fA:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:function(t,n){return new Float64Array(t,n,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},9093:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,createView:function(t,n){return new Float64Array(t,n,16)},fromValues:function(t,n,e,r,o,i,a,l,s,c,u,f,h,p,d,m){return[t,n,e,r,o,i,a,l,s,c,u,f,h,p,d,m]}},Symbol.toStringTag,{value:"Module"}))},77690:(t,n,e)=>{e.d(n,{B8:()=>l,Ge:()=>h,I0:()=>f,KC:()=>s,hZ:()=>i,hs:()=>u,lw:()=>c,mg:()=>a,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function i(t,n,e,r,o,i,a,l,s,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=l,t[7]=s,t[8]=c,t}function a(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function l(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],l=n[5],s=n[6],c=n[7],u=n[8],f=u*a-l*c,h=-u*i+l*s,p=c*i-a*s;let d=e*f+r*h+o*p;return d?(d=1/d,t[0]=f*d,t[1]=(-u*r+o*c)*d,t[2]=(l*r-o*a)*d,t[3]=h*d,t[4]=(u*e-o*s)*d,t[5]=(-l*e+o*i)*d,t[6]=p*d,t[7]=(-c*e+r*s)*d,t[8]=(a*e-r*i)*d,t):null}function s(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],l=n[5],s=n[6],c=n[7],u=n[8];return t[0]=a*u-l*c,t[1]=o*c-r*u,t[2]=r*l-o*a,t[3]=l*s-i*u,t[4]=e*u-o*s,t[5]=o*i-e*l,t[6]=i*c-a*s,t[7]=r*s-e*c,t[8]=e*a-r*i,t}function c(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=n[5],c=n[6],u=n[7],f=n[8],h=e[0],p=e[1],d=e[2],m=e[3],g=e[4],y=e[5],M=e[6],x=e[7],_=e[8];return t[0]=h*r+p*a+d*c,t[1]=h*o+p*l+d*u,t[2]=h*i+p*s+d*f,t[3]=m*r+g*a+y*c,t[4]=m*o+g*l+y*u,t[5]=m*i+g*s+y*f,t[6]=M*r+x*a+_*c,t[7]=M*o+x*l+_*u,t[8]=M*i+x*s+_*f,t}function u(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=e+e,l=r+r,s=o+o,c=e*a,u=r*a,f=r*l,h=o*a,p=o*l,d=o*s,m=i*a,g=i*l,y=i*s;return t[0]=1-f-d,t[3]=u-y,t[6]=h+g,t[1]=u+y,t[4]=1-c-d,t[7]=p-m,t[2]=h-g,t[5]=p+m,t[8]=1-c-f,t}function h(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],l=n[5],s=n[6],c=n[7],u=n[8],f=n[9],h=n[10],p=n[11],d=n[12],m=n[13],g=n[14],y=n[15],M=e*l-r*a,x=e*s-o*a,_=e*c-i*a,A=r*s-o*l,w=r*c-i*l,v=o*c-i*s,b=u*m-f*d,S=u*g-h*d,B=u*y-p*d,O=f*g-h*m,T=f*y-p*m,E=h*y-p*g;let R=M*E-x*T+_*O+A*B-w*S+v*b;return R?(R=1/R,t[0]=(l*E-s*T+c*O)*R,t[1]=(s*B-a*E-c*S)*R,t[2]=(a*T-l*B+c*b)*R,t[3]=(o*T-r*E-i*O)*R,t[4]=(e*E-o*B+i*S)*R,t[5]=(r*B-e*T-i*b)*R,t[6]=(m*v-g*w+y*A)*R,t[7]=(g*_-d*v-y*x)*R,t[8]=(d*w-m*_+y*M)*R,t):null}function p(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const d=c,m=p;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:s,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],a=t[5],l=t[6],s=t[7],c=t[8];return n*(c*i-a*s)+e*(-c*o+a*l)+r*(s*o-i*l)},equals:function(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],l=t[4],s=t[5],c=t[6],u=t[7],f=t[8],h=n[0],p=n[1],d=n[2],m=n[3],g=n[4],y=n[5],M=n[6],x=n[7],_=n[8],A=(0,r.FD)();return Math.abs(e-h)<=A*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-p)<=A*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(i-d)<=A*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(a-m)<=A*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(l-g)<=A*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(s-y)<=A*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(c-M)<=A*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(u-x)<=A*Math.max(1,Math.abs(u),Math.abs(x))&&Math.abs(f-_)<=A*Math.max(1,Math.abs(f),Math.abs(_))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:l,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],i=t[2],a=t[3],l=t[4],s=t[5],c=t[6],u=t[7],f=t[8];return Math.abs(1-(e*e+a*a+c*c))<=n&&Math.abs(1-(o*o+l*l+u*u))<=n&&Math.abs(1-(i*i+s*s+f*f))<=n},mul:d,multiply:c,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:h,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],a=n[5],l=n[6],s=n[8],c=n[9],u=n[10],f=u*a-l*c,h=-u*i+l*s,p=c*i-a*s,d=e*f+r*h+o*p;if(!d)return null;const m=1/d;return t[0]=f*m,t[1]=(-u*r+o*c)*m,t[2]=(l*r-o*a)*m,t[3]=h*m,t[4]=(u*e-o*s)*m,t[5]=(-l*e+o*i)*m,t[6]=p*m,t[7]=(-c*e+r*s)*m,t[8]=(a*e-r*i)*m,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=n[5],c=n[6],u=n[7],f=n[8],h=Math.sin(e),p=Math.cos(e);return t[0]=p*r+h*a,t[1]=p*o+h*l,t[2]=p*i+h*s,t[3]=p*a-h*r,t[4]=p*l-h*o,t[5]=p*s-h*i,t[6]=c,t[7]=u,t[8]=f,t},scale:u,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:p,translate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=n[5],c=n[6],u=n[7],f=n[8],h=e[0],p=e[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=l,t[5]=s,t[6]=h*r+p*a+c,t[7]=h*o+p*l+u,t[8]=h*i+p*s+f,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},75503:(t,n,e)=>{e.d(n,{w:()=>a});var r=e(4576),o=(e(44208),e(3694)),i=e(11006);class a{constructor(t=9,n){this._compareMinX=f,this._compareMinY=h,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&("function"==typeof n?this._toBBox=n:this._initFormat(n)),this.clear()}destroy(){this.clear(),_.prune(),A.prune(),w.prune(),v.prune()}all(t){l(this._data,t)}search(t,n){let e=this._data;const r=this._toBBox;if(M(t,e))for(_.clear();e;){for(let o=0,i=e.children.length;o<i;o++){const i=e.children[o],a=e.leaf?r(i):i;M(t,a)&&(e.leaf?n(i):y(t,a)?l(i,n):_.push(i))}e=_.pop()}}collides(t){let n=this._data;const e=this._toBBox;if(!M(t,n))return!1;for(_.clear();n;){for(let r=0,o=n.children.length;r<o;r++){const o=n.children[r],i=n.leaf?e(o):o;if(M(t,i)){if(n.leaf||y(t,i))return!0;_.push(o)}}n=_.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let n=0,e=t.length;n<e;n++)this.insert(t[n]);return this}let n=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===n.height)this._splitRoot(this._data,n);else{if(this._data.height<n.height){const t=this._data;this._data=n,n=t}this._insert(n,this._data.height-n.height-1,!0)}else this._data=n;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new B([]),this}remove(t){if(!t)return this;let n,e=this._data,o=null,i=0,a=!1;const l=this._toBBox(t);for(w.clear(),v.clear();e||w.length>0;){if(e||(e=w.pop(),o=w.data[w.length-1],i=v.pop()??0,a=!0),e.leaf&&(n=(0,r.qh)(e.children,t,e.children.length,e.indexHint),-1!==n))return e.children.splice(n,1),w.push(e),this._condense(w),this;a||e.leaf||!y(e,l)?o?(i++,e=o.children[i],a=!1):e=null:(w.push(e),v.push(i),i=0,o=e,e=e.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,n,e,r){const o=e-n+1;let i=this._maxEntries;if(o<=i){const r=new B(t.slice(n,e+1));return s(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const a=new O([]);a.height=r;const l=Math.ceil(o/i),c=l*Math.ceil(Math.sqrt(i));x(t,n,e,c,this._compareMinX);for(let o=n;o<=e;o+=c){const n=Math.min(o+c-1,e);x(t,o,n,l,this._compareMinY);for(let e=o;e<=n;e+=l){const o=Math.min(e+l-1,n);a.children.push(this._build(t,e,o,r-1))}}return s(a,this._toBBox),a}_insert(t,n,e){const r=this._toBBox,o=e?t:r(t);w.clear();const i=function(t,n,e,r){for(;r.push(n),!0!==n.leaf&&r.length-1!==e;){let e,r=1/0,o=1/0;for(let i=0,a=n.children.length;i<a;i++){const a=n.children[i],l=p(a),s=m(t,a)-l;s<o?(o=s,r=l<r?l:r,e=a):s===o&&l<r&&(r=l,e=a)}n=e||n.children[0]}return n}(o,this._data,n,w);for(i.children.push(t),u(i,o);n>=0&&w.data[n].children.length>this._maxEntries;)this._split(w,n),n--;!function(t,n,e){for(let r=e;r>=0;r--)u(n.data[r],t)}(o,w,n)}_split(t,n){const e=t.data[n],r=e.children.length,o=this._minEntries;this._chooseSplitAxis(e,o,r);const i=this._chooseSplitIndex(e,o,r);if(!i)return;const a=e.children.splice(i,e.children.length-i),l=e.leaf?new B(a):new O(a);l.height=e.height,s(e,this._toBBox),s(l,this._toBBox),n?t.data[n-1].children.push(l):this._splitRoot(e,l)}_splitRoot(t,n){this._data=new O([t,n]),this._data.height=t.height+1,s(this._data,this._toBBox)}_chooseSplitIndex(t,n,e){let r,o,i;r=o=1/0;for(let a=n;a<=e-n;a++){const n=c(t,0,a,this._toBBox),l=c(t,a,e,this._toBBox),s=g(n,l),u=p(n)+p(l);s<r?(r=s,i=a,o=u<o?u:o):s===r&&u<o&&(o=u,i=a)}return i}_chooseSplitAxis(t,n,e){const r=t.leaf?this._compareMinX:f,o=t.leaf?this._compareMinY:h;this._allDistMargin(t,n,e,r)<this._allDistMargin(t,n,e,o)&&t.children.sort(r)}_allDistMargin(t,n,e,r){t.children.sort(r);const o=this._toBBox,i=c(t,0,n,o),a=c(t,e-n,e,o);let l=d(i)+d(a);for(let r=n;r<e-n;r++){const n=t.children[r];u(i,t.leaf?o(n):n),l+=d(i)}for(let r=e-n-1;r>=n;r--){const n=t.children[r];u(a,t.leaf?o(n):n),l+=d(a)}return l}_condense(t){for(let n=t.length-1;n>=0;n--){const e=t.data[n];if(0===e.children.length)if(n>0){const o=t.data[n-1],i=o.children;i.splice((0,r.qh)(i,e,i.length,o.indexHint),1)}else this.clear();else s(e,this._toBBox)}}_initFormat(t){const n=["return a"," - b",";"];this._compareMinX=new Function("a","b",n.join(t[0])),this._compareMinY=new Function("a","b",n.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function l(t,n){let e=t;for(A.clear();e;){if(!0===e.leaf)for(const t of e.children)n(t);else A.pushArray(e.children);e=A.pop()??null}}function s(t,n){c(t,0,t.children.length,n,t)}function c(t,n,e,r,o){o||(o=new B([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,a=n;a<e;a++)i=t.children[a],u(o,t.leaf?r(i):i);return o}function u(t,n){t.minX=Math.min(t.minX,n.minX),t.minY=Math.min(t.minY,n.minY),t.maxX=Math.max(t.maxX,n.maxX),t.maxY=Math.max(t.maxY,n.maxY)}function f(t,n){return t.minX-n.minX}function h(t,n){return t.minY-n.minY}function p(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,n){return(Math.max(n.maxX,t.maxX)-Math.min(n.minX,t.minX))*(Math.max(n.maxY,t.maxY)-Math.min(n.minY,t.minY))}function g(t,n){const e=Math.max(t.minX,n.minX),r=Math.max(t.minY,n.minY),o=Math.min(t.maxX,n.maxX),i=Math.min(t.maxY,n.maxY);return Math.max(0,o-e)*Math.max(0,i-r)}function y(t,n){return t.minX<=n.minX&&t.minY<=n.minY&&n.maxX<=t.maxX&&n.maxY<=t.maxY}function M(t,n){return n.minX<=t.maxX&&n.minY<=t.maxY&&n.maxX>=t.minX&&n.maxY>=t.minY}function x(t,n,e,r,o){const a=[n,e];for(;a.length;){const n=a.pop(),e=a.pop();if(n-e<=r)continue;const l=e+Math.ceil((n-e)/r/2)*r;(0,i.q)(t,l,e,n,o),a.push(e,l,l,n)}}const _=new o.A,A=new o.A,w=new o.A,v=new o.A({deallocator:void 0});class b{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends b{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class B extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class O extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},48353:(t,n,e)=>{e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function a(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),a=Math.cos(n),l=e;return l[0]=-r,l[4]=-i*o,l[8]=a*o,l[12]=0,l[1]=o,l[5]=-i*r,l[9]=a*r,l[13]=0,l[2]=0,l[6]=a,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=e(37539),s=e(21325);function c(t,n,e,r){if(null==t||null==r)return!1;const i=(0,l.Qk)(t,l.Wv),c=(0,l.Qk)(r,l.zp);if(i===c&&!u(c)&&(i!==l.rz.UNKNOWN||(0,s.aI)(t,r)))return(0,o.kN)(e,n),!0;if(u(c)){const t=l.w5[i][l.rz.LON_LAT],r=l.w5[l.rz.LON_LAT][c];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,p,0),a(f*h[0],f*h[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}if(!(c!==l.rz.WEB_MERCATOR&&c!==l.rz.PLATE_CARREE&&c!==l.rz.WGS84&&c!==l.rz.CGCS2000||i!==l.rz.WGS84&&i!==l.rz.SPHERICAL_ECEF&&i!==l.rz.WEB_MERCATOR&&i!==l.rz.CGCS2000)){const t=l.w5[i][l.rz.LON_LAT],r=l.w5[l.rz.LON_LAT][c];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,p,0),i===l.rz.SPHERICAL_ECEF?function(t,n,e){a(t,n,e),(0,o.mg)(e,e)}(f*h[0],f*h[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function u(t){return t===l.rz.SPHERICAL_ECEF||t===l.rz.SPHERICAL_MARS_PCPF||t===l.rz.SPHERICAL_MOON_PCPF}const f=(0,r.kU)(1),h=(0,i.vt)(),p=(0,i.vt)()},65806:(t,n,e)=>{e.d(n,{g:()=>a});var r=e(51850),o=e(57251),i=e(9762);function a(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){l[0]=t.x,l[1]=t.y;const o=t.z;return l[2]=o??r??0,(0,i.projectBuffer)(l,t.spatialReference,0,n,e,0,1)}const a=(0,o.tryProjectWithZConversion)(t,e);return!!a&&(n[0]=a?.x,n[1]=a?.y,n[2]=a?.z??r??0,!0)}const l=(0,r.vt)()},98764:(t,n,e)=>{e.d(n,{Y0:()=>c,lO:()=>u});var r=e(73941),o=e(16930),i=e(21325);const a=new o.A(r.fv),l=new o.A(r.FY),s=new o.A(r.LJ),c=new o.A(r.Ro);function u(t){const n=f.get(t);if(n)return n;let e=a;if(t)if(t===l)e=l;else if(t===s)e=s;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?e=l:((0,i.ZL)(n)||(0,i.ZL)(r))&&(e=s);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?e=l:t===p&&(e=s)}}}return f.set(t,e),e}const f=new Map,h=l.wkt.toUpperCase(),p=s.wkt.toUpperCase()},4197:(t,n,e)=>{e.d(n,{Ns:()=>s,jh:()=>o,l5:()=>a,s:()=>l,xm:()=>i});var r=e(34275);function o(t,n=!1){return t<=r.y9?n?new Array(t).fill(0):new Array(t):new Float64Array(t)}function i(t){return((0,r.cy)(t)?t.length:t.byteLength/8)<=r.y9?Array.from(t):new Float64Array(t)}function a(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function l(t,n){for(let e=0;e<n.length;++e)t[e]=n[e];return t}function s(t){return Array.isArray(t)?new Float64Array(t):t}},95696:(t,n,e)=>{e.d(n,{A:()=>u});var r=e(90237),o=e(69540),i=e(25482),a=e(10107),l=(e(44208),e(53966),e(87811),e(93223)),s=e(40608);let c=class extends((0,o.O)(i.oY)){constructor(t){super(t),this.type="georeferenced",this.origin=null}};(0,r._)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r._)([(0,s.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c);const u=c},18251:(t,n,e)=>{e.d(n,{A:()=>f});var r=e(90237),o=e(69540),i=e(25482),a=e(10107),l=(e(44208),e(53966),e(87811),e(93223)),s=e(40608),c=e(51850);let u=class extends((0,o.O)(i.oY)){constructor(t){super(t),this.type="local",this.origin=(0,c.vt)()}};(0,r._)([(0,l.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,s.$)("esri.geometry.support.MeshLocalVertexSpace")],u);const f=u},38419:(t,n,e)=>{e.r(n),e.d(n,{default:()=>l});var r=e(44208),o=e(75503),i=e(95696),a=e(72258);class l{async createIndex(t,n){const e=new Array;if(!t.vertexAttributes?.position)return new o.w;const r=function(t){const{vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o}=t,l=(0,a.UR)({vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o},new i.A,{allowBufferReuse:!0})?.position;return l?!t.components||t.components.some((t=>!t.faces))?{position:l.buffer}:{position:l.buffer,components:t.components.map((t=>t.faces))}:null}(t),l=null!=n?await n.invoke("createIndexThread",r,{transferList:e}):this.createIndexThread(r).result;return s().fromJSON(l)}createIndexThread(t){const n=s();if(!t)return{result:n.toJSON()};const e=new Float64Array(t.position);return t.components?function(t,n,e){let r=0;for(const t of e)r+=t.length/3;const o=new Array(r);let i=0;for(const t of e)for(let e=0;e<t.length;e+=3)o[i++]=c(n,3*t[e],3*t[e+1],3*t[e+2]);return t.load(o),{result:t.toJSON()}}(n,e,t.components.map((t=>new Uint32Array(t)))):function(t,n){const e=new Array(n.length/9);let r=0;for(let t=0;t<n.length;t+=9)e[r++]=c(n,t,t+3,t+6);return t.load(e),{result:t.toJSON()}}(n,e)}}function s(){return new o.w(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function c(t,n,e,r){return{minX:Math.min(t[n],t[e],t[r]),maxX:Math.max(t[n],t[e],t[r]),minY:Math.min(t[n+1],t[e+1],t[r+1]),maxY:Math.max(t[n+1],t[e+1],t[r+1]),p0:[t[n],t[n+1],t[n+2]],p1:[t[e],t[e+1],t[e+2]],p2:[t[r],t[r+1],t[r+2]]}}},22141:(t,n,e)=>{e.d(n,{$5:()=>S,CN:()=>A,JP:()=>_,KM:()=>O,Mv:()=>E,X4:()=>w,gr:()=>b,project:()=>X,qs:()=>B,si:()=>v,xA:()=>T});var r=e(34727),o=e(77690),i=e(29242),a=e(58083),l=e(9093),s=e(38954),c=e(51850),u=e(57251),f=e(98764),h=e(48353),p=e(9762),d=e(4197),m=(e(79258),e(21325)),g=e(28735),y=e(13030),M=e(73354),x=e(65686);const _="Projection may be possible after calling projection.load().";function A(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function w(t,n,e,r,o){return Y(C.TO_PCPF,y.xs.fromTypedArray(t),R.NORMAL,y.Xm.fromTypedArray(n),y.Xm.fromTypedArray(e),r,y.xs.fromTypedArray(o))?o:null}function v(t,n,e,r,o){return Y(C.FROM_PCPF,y.xs.fromTypedArray(t),R.NORMAL,y.Xm.fromTypedArray(n),y.Xm.fromTypedArray(e),r,y.xs.fromTypedArray(o))?o:null}function b(t,n,e){return(0,p.projectBuffer)(t,n,0,e,(0,f.lO)(n),0,t.length/3)?e:null}function S(t,n,e){return(0,p.projectBuffer)(t,(0,f.lO)(e),0,n,e,0,t.length/3)?n:null}function B(t,n,e){return(0,o.Ge)(j,e),(0,M.t)(n,t,j),(0,r.or)(j)&&(0,M.n)(n,n),n}function O(t,n,e){return(0,o.z0)(j,e),(0,x.t)(n,t,j),(0,r.or)(j)&&(0,M.n)(n,n,4),n}function T(t,n,e,r,o){if(!Y(C.TO_PCPF,y.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),R.TANGENT,y.Xm.fromTypedArray(n),y.Xm.fromTypedArray(e),r,y.xs.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function E(t,n,e,r,o){if(!Y(C.FROM_PCPF,y.xs.fromTypedArray(t,16),R.TANGENT,y.Xm.fromTypedArray(n),y.Xm.fromTypedArray(e),r,y.xs.fromTypedArray(o,16)))return null;for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}var R,C,N;function F(t,n,e,r,i){switch((0,h.l)(r,e,L,r),t===C.FROM_PCPF&&(0,a.B8)(L,L),n){case R.NORMAL:return(0,o.Ge)(i,L);case R.TANGENT:return(0,o.z0)(i,L)}}function Y(t,n,e,r,o,i,a){if(!n)return;const l=r.count,c=(0,f.lO)(i);if(function(t){return t.isWGS84||(0,m.x1)(t)||(0,m.q8)(t)||(0,m.KQ)(t)}(i))for(let r=0;r<l;r++)o.getVec(r,P),n.getVec(r,z),(0,s.t)(z,z,F(t,e,P,c,j)),a.setVec(r,z);else for(let i=0;i<l;i++){o.getVec(i,P),n.getVec(i,z);const l=(0,g.jg)(r.get(i,1));let u=Math.cos(l);e===R.TANGENT!=(t===C.TO_PCPF)&&(u=1/u),F(t,e,P,c,j),t===C.TO_PCPF?(j[0]*=u,j[1]*=u,j[2]*=u,j[3]*=u,j[4]*=u,j[5]*=u):(j[0]*=u,j[3]*=u,j[6]*=u,j[1]*=u,j[4]*=u,j[7]*=u),(0,s.t)(z,z,j),(0,s.n)(z,z),a.setVec(i,z)}return a}function X(t){return"local"===t.vertexSpace.type?function({vertexSpace:t,transform:n,inSpatialReference:e,outSpatialReference:r,localMode:o,outPositions:i,positions:s}){const m=t.origin??c.uY,g=null!=t.origin?n?.localMatrix??l.zK:l.zK,y=(0,f.lO)(e),x=r.isWebMercator&&o||!(0,u.canProjectWithoutEngine)(e,y)?e:y;(0,h.l)(e,m,L,x),(0,a.lw)(L,L,g);const _=i??(0,d.jh)(s.length);return(0,M.a)(_,s,L),(0,p.projectBuffer)(_,x,0,_,r,0,_.length/3),_}(t):function({vertexSpace:t,transform:n,outPositions:e,positions:r,inSpatialReference:o,outSpatialReference:i}){const u=null!=t.origin?n?.localMatrix??l.zK:l.zK,f=e??(0,d.jh)(r.length);(0,a.aI)(u,l.zK)?(0,d.s)(f,r):(0,M.a)(f,r,u);const h=t.origin??c.uY;if(!(0,s.e)(h,c.uY)){const[t,n,e]=h;for(let r=0;r<f.length;r+=3)f[r]+=t,f[r+1]+=n,f[r+2]+=e}return(0,p.projectBuffer)(f,o,0,f,i,0,f.length/3)?f:null}(t)}(N=R||(R={}))[N.NORMAL=0]="NORMAL",N[N.TANGENT=1]="TANGENT",function(t){t[t.TO_PCPF=0]="TO_PCPF",t[t.FROM_PCPF=1]="FROM_PCPF"}(C||(C={}));const P=(0,c.vt)(),z=(0,c.vt)(),L=(0,l.vt)(),j=(0,i.vt)()},72258:(t,n,e)=>{e.d(n,{UR:()=>_,p5:()=>x,xK:()=>b});var r=e(53966),o=e(34727),i=e(83047),a=e(77690),l=e(29242),s=e(58083),c=e(9093),u=e(38954),f=e(51850),h=e(98764),p=e(48353),d=e(65806),m=e(27615),g=e(73354),y=e(22141);const M=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function x(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,u.f)(t,o,i),!0}const o=(0,h.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:a}=e,l=E;if(!(0,p.l)(r,a,l,o))return!1;const c=(0,s.B8)(E,l);return null!=c&&((0,u.h)(t,i,c),!0)}function _(t,n,e){const{vertexSpace:r,transform:i,vertexAttributes:l}=t,f=v(t.spatialReference,e,R.SOURCE|R.TARGET);if((0,m.yJ)(r,n)&&(!i||(0,s.t2)(i.localMatrix,c.zK))&&(0,o.Io)(f,1)){const{position:t,normal:n,tangent:r}=l,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const a=(0,h.lO)(n);if(!(0,p.l)(n,r,S,a))return(0,y.CN)(M(),n,a),null;if(e&&(0,s.lw)(S,S,e.localMatrix),!(0,p.l)(n,o,B,a))return(0,y.CN)(M(),a,n),null;(0,s.B8)(B,B);const l=(0,s.lw)(S,B,S);return w(l,n,i,R.SOURCE|R.TARGET),A(t,l)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const a=(0,h.lO)(t);if(!(0,p.l)(t,r,S,a))return(0,y.CN)(M(),t,a),null;e&&(0,s.lw)(S,S,e.localMatrix),w(S,t,i,R.SOURCE);const l=new Float64Array(n.position.length),c=function(t,n,e,r){(0,g.a)(r,t,n);const o=new Float64Array(t.length);return(0,y.$5)(r,o,e)?o:((0,y.CN)(M(),(0,h.lO)(e),e),null)}(n.position,S,t,l);if(!c)return null;const f=function(t,n,e,r,o){if(null==e)return null;const i=new Float32Array(e.length);return(0,y.qs)(e,i,r),(0,y.si)(i,t,n,o,i)?i:((0,y.CN)(M(),(0,h.lO)(o),o),null)}(c,l,n.normal,S,t);if(n.normal&&!f)return null;const d=function(t,n,e,r,o){if(null==e)return null;const i=new Float32Array(e.length);return(0,y.KM)(e,i,r),(0,y.Mv)(i,t,n,o,i)?i:((0,y.CN)(M(),(0,h.lO)(o),o),null)}(c,l,n.tangent,S,t);if(n.tangent&&!d)return null;if(o){const t=(0,u.k)(T,o);(0,g.b)(c,c,t)}return{position:c,normal:f,tangent:d}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=(0,h.lO)(n);if(!(0,p.l)(n,o,S,l))return(0,y.CN)(M(),n,l),null;const c=1/v(n,i,R.TARGET);(0,s.hs)(S,S,[c,c,c]);const u=(0,s.B8)(B,S),{position:f,normal:d,tangent:m}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,g.b)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=A(t,e.localMatrix);return(0,g.b)(r.position,r.position,n),r}(t,r,e),x=new Float64Array(f.length),_=function(t,n,e,r){const o=(0,y.gr)(t,n,r);if(!o)return(0,y.CN)(M(),n,(0,h.lO)(n)),null;const i=new Float64Array(o.length);return(0,g.a)(i,o,e),i}(f,n,u,x);if(!_)return null;const w=(0,a.Ge)(O,u),b=function(t,n,e,r,o,i){if(null==t)return null;const a=i??new Float32Array(t.length);return(0,y.X4)(t,n,e,r,a)?((0,g.t)(a,a,o),a):((0,y.CN)(M(),r,(0,h.lO)(r)),null)}(d,f,x,n,w,d!==t.normal?d:void 0);if(!b&&d)return null;const T=function(t,n,e,r,o,i){if(null==t)return null;const a=i??new Float32Array(t.length);return(0,y.xA)(t,n,e,r,a)?((0,g.t)(a,a,o,4),a):((0,y.CN)(M(),r,(0,h.lO)(r)),null)}(m,f,x,n,w,m!==t.tangent?m:void 0);return!T&&m?null:{position:_,normal:b,tangent:T}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const{position:a,normal:l,tangent:s}=n?A(t,n.localMatrix):t,c=new Float64Array(a.length);let f=a;if(r&&(f=(0,g.b)(c,f,r)),o){const t=(0,u.k)(T,o);f=(0,g.b)(c,f,t)}v(e,i,R.NONE);const h=i?.allowBufferReuse;return{position:f!==t.position||h?f:f.slice(),normal:l!==t.normal||h?l:l?.slice(),tangent:s!==t.tangent||h?s:s?.slice()}}(t,t.vertexSpace,n.origin,e)}}function A(t,n){const e=new Float64Array(t.position.length);(0,g.a)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,y.qs)(t.normal,r,n),o&&t.tangent&&(0,y.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function w(t,n,e,r){const o=v(n,e,r);1!==o&&(0,s.hs)(t,t,[o,o,o])}function v(t,n,e){const r=!!(e&R.SOURCE),o=!!(e&R.TARGET),i=n?.sourceUnit,a=n?.targetUnit;if(!i&&!a)return 1;let l=b(i,t);!r&&i&&1!==l&&(M().warn("source unit conversion not supported"),l=1);let s=1/b(a,t);return!o&&a&&1!==s&&(M().warn("target unit conversion not supported"),s=1),l*s}function b(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const S=(0,c.vt)(),B=(0,c.vt)(),O=(0,l.vt)(),T=(0,f.vt)(),E=(0,c.vt)();var R,C;(C=R||(R={}))[C.NONE=0]="NONE",C[C.SOURCE=1]="SOURCE",C[C.TARGET=2]="TARGET"},27615:(t,n,e)=>{e.d(n,{CK:()=>f,Hq:()=>u,MW:()=>h,TE:()=>p,yJ:()=>d});var r=e(51447),o=e(53966),i=e(38954),a=e(86738),l=e(95696),s=e(18251);function c(){return o.A.getLogger("esri.geometry.Mesh")}function u(t){return null!=t.origin}function f(t){return u(t.vertexSpace)}function h(t,n){if(!u(t))return null;const[e,r,o]=t.origin;return new a.A({x:e,y:r,z:o,spatialReference:n})}function p(t,n){const{x:e,y:o,z:i,spatialReference:a}=t,u=[e,o,i??0];return void 0!==n?.geographic&&((0,r.io)(c(),"option: geographic",{replacement:"Use the `vertexSpace` option instead.",version:"4.29",warnOnce:!0}),n.vertexSpace&&c().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")),"local"===(n?.vertexSpace??(f=n?.geographic,null==f?void 0:f?"local":"georeferenced")??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(a))?new s.A({origin:u}):new l.A({origin:u});var f}function d(t,n){return t.type===n.type&&(t.origin===n.origin||null!=t.origin&&null!=n.origin&&(0,i.e)(t.origin,n.origin))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6289],{9775:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(62788),s=n(95488);class i{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._observable=new s.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,r.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach((t=>{e(t)||this._items.delete(t)})),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},75503:(e,t,n)=>{n.d(t,{w:()=>o});var r=n(4576),s=(n(44208),n(3694)),i=n(11006);class o{constructor(e=9,t){this._compareMinX=d,this._compareMinY=h,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),b.prune(),v.prune(),M.prune(),x.prune()}all(e){a(this._data,e)}search(e,t){let n=this._data;const r=this._toBBox;if(_(e,n))for(b.clear();n;){for(let s=0,i=n.children.length;s<i;s++){const i=n.children[s],o=n.leaf?r(i):i;_(e,o)&&(n.leaf?t(i):g(e,o)?a(i,t):b.push(i))}n=b.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!_(e,t))return!1;for(b.clear();t;){for(let r=0,s=t.children.length;r<s;r++){const s=t.children[r],i=t.leaf?n(s):s;if(_(e,i)){if(t.leaf||g(e,i))return!0;b.push(s)}}t=b.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(0,e.length),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,n=this._data,s=null,i=0,o=!1;const a=this._toBBox(e);for(M.clear(),x.clear();n||M.length>0;){if(n||(n=M.pop(),s=M.data[M.length-1],i=x.pop()??0,o=!0),n.leaf&&(t=(0,r.qh)(n.children,e,n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),M.push(n),this._condense(M),this;o||n.leaf||!g(n,a)?s?(i++,n=s.children[i],o=!1):n=null:(M.push(n),x.push(i),i=0,s=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,r){const s=n-t+1;let i=this._maxEntries;if(s<=i){const r=new A(e.slice(t,n+1));return l(r,this._toBBox),r}r||(r=Math.ceil(Math.log(s)/Math.log(i)),i=Math.ceil(s/i**(r-1)));const o=new E([]);o.height=r;const a=Math.ceil(s/i),u=a*Math.ceil(Math.sqrt(i));w(e,t,n,u,this._compareMinX);for(let s=t;s<=n;s+=u){const t=Math.min(s+u-1,n);w(e,s,t,a,this._compareMinY);for(let n=s;n<=t;n+=a){const s=Math.min(n+a-1,t);o.children.push(this._build(e,n,s,r-1))}}return l(o,this._toBBox),o}_insert(e,t,n){const r=this._toBBox,s=n?e:r(e);M.clear();const i=function(e,t,n,r){for(;r.push(t),!0!==t.leaf&&r.length-1!==n;){let n,r=1/0,s=1/0;for(let i=0,o=t.children.length;i<o;i++){const o=t.children[i],a=c(o),l=f(e,o)-a;l<s?(s=l,r=a<r?a:r,n=o):l===s&&a<r&&(r=a,n=o)}t=n||t.children[0]}return t}(s,this._data,t,M);for(i.children.push(e),p(i,s);t>=0&&M.data[t].children.length>this._maxEntries;)this._split(M,t),t--;!function(e,t,n){for(let r=n;r>=0;r--)p(t.data[r],e)}(s,M,t)}_split(e,t){const n=e.data[t],r=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,r);const i=this._chooseSplitIndex(n,s,r);if(!i)return;const o=n.children.splice(i,n.children.length-i),a=n.leaf?new A(o):new E(o);a.height=n.height,l(n,this._toBBox),l(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new E([e,t]),this._data.height=e.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let r,s,i;r=s=1/0;for(let o=t;o<=n-t;o++){const t=u(e,0,o,this._toBBox),a=u(e,o,n,this._toBBox),l=m(t,a),p=c(t)+c(a);l<r?(r=l,i=o,s=p<s?p:s):l===r&&p<s&&(s=p,i=o)}return i}_chooseSplitAxis(e,t,n){const r=e.leaf?this._compareMinX:d,s=e.leaf?this._compareMinY:h;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,s)&&e.children.sort(r)}_allDistMargin(e,t,n,r){e.children.sort(r);const s=this._toBBox,i=u(e,0,t,s),o=u(e,n-t,n,s);let a=y(i)+y(o);for(let r=t;r<n-t;r++){const t=e.children[r];p(i,e.leaf?s(t):t),a+=y(i)}for(let r=n-t-1;r>=t;r--){const t=e.children[r];p(o,e.leaf?s(t):t),a+=y(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const s=e.data[t-1],i=s.children;i.splice((0,r.qh)(i,n,i.length,s.indexHint),1)}else this.clear();else l(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function a(e,t){let n=e;for(v.clear();n;){if(!0===n.leaf)for(const e of n.children)t(e);else v.pushArray(n.children);n=v.pop()??null}}function l(e,t){u(e,0,e.children.length,t,e)}function u(e,t,n,r,s){s||(s=new A([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let i,o=t;o<n;o++)i=e.children[o],p(s,e.leaf?r(i):i);return s}function p(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function h(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function y(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function m(e,t){const n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),i=Math.min(e.maxY,t.maxY);return Math.max(0,s-n)*Math.max(0,i-r)}function g(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function _(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function w(e,t,n,r,s){const o=[t,n];for(;o.length;){const t=o.pop(),n=o.pop();if(t-n<=r)continue;const a=n+Math.ceil((t-n)/r/2)*r;(0,i.q)(e,a,n,t,s),o.push(n,a,a,t)}}const b=new s.A,v=new s.A,M=new s.A,x=new s.A({deallocator:void 0});class I{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class T extends I{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class A extends T{constructor(e){super(),this.children=e,this.leaf=!0}}class E extends T{constructor(e){super(),this.children=e,this.leaf=!1}}},39516:(e,t,n)=>{async function r(e,t){const{WhereClause:r}=await Promise.all([n.e(835),n.e(4800)]).then(n.bind(n,50835));return r.create(e,t)}function s(e,t){return"1=1"===e?t??e:"1=1"===t?e??t:null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}n.d(t,{G:()=>r,m:()=>s})},10382:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(36563),s=(n(44208),n(74887)),i=n(9775),o=n(72457),a=n(52268),l=n(61322);class u{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new i.A}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((n,r)=>{let i=!0;const o=e=>{(0,s.Te)(t.signal),i&&(i=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let i=0;i<e.length;++i){const a=e[i];(0,s.$X)(a)?this._clientPromises[i]=a.then((e=>(this._clients[i]=new l.default(e,t,this._ongoingJobsQueue),o(n),this._clients[i])),(()=>(o(r),null))):(this._clients[i]=new l.default(a,t,this._ongoingJobsQueue),this._clientPromises[i]=Promise.resolve(this._clients[i]),o(n))}}))}broadcast(e,t,n){const r=new Array(this._clientPromises.length);for(let s=0;s<this._clientPromises.length;++s){const i=this._clientPromises[s];r[s]=i.then((r=>r?.invoke(e,t,n)))}return r}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,s.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0,this._inUseClients.length=0,(0,o.h)(this)}invoke(e,t,n){return this.apply(e,[t],n)}apply(e,t,n){const r=(0,s.Tw)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:n,resolver:r});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return r.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,r.vE)(this._clients.map((n=>n.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let n=t.length;for(let r=0;r<this._clientPromises.length;++r)this._clientPromises[r].then((s=>{s&&(t[r]=s.openPort()),0==--n&&e(t)}))}))}get test(){}}},72457:(e,t,n)=>{n.d(t,{h:()=>i,k:()=>s});const r=new FinalizationRegistry((e=>{e.close()}));function s(e,t){r.register(e,t,t)}function i(e){r.unregister(e)}},29953:(e,t,n)=>{n.d(t,{ho:()=>G});var r=n(49186),s=n(44208),i=n(74887),o=n(10382),a=n(72457),l=n(61322),u=n(53966),p=n(97768),d=n(78888),h=n(84952);const c={async request(e,t){const n=e.options,r=n.responseType;n.signal=t?.signal,n.responseType="native"===r||"native-request-init"===r?"native-request-init":r&&["blob","json","text"].includes(r)&&(0,h.sC)(e.url)?.after?r:"array-buffer";const s=await(0,d.A)(e.url,n),i={data:s.data,httpStatus:s.httpStatus,ssl:s.ssl};switch(s.requestOptions?.responseType){case"native-request-init":return delete i.data.signal,i;case"blob":i.data=await i.data.arrayBuffer();break;case"json":i.data=(new TextEncoder).encode(JSON.stringify(i.data)).buffer;break;case"text":i.data=(new TextEncoder).encode(i.data).buffer}return{result:i,transferList:[i.data]}}};var y=n(8341),f=n(2741),m=n(92602),g=(n(47566),n(70333));const _={};var w=n(26390);class b{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...n)=>e[t](...n)}))}}class v{constructor(){this._dispatcher=new b,this._workerPostMessage({type:y.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,w.d)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,n){this._dispatcher.addEventListener(e,t,n)}removeEventListener(e,t,n){this._dispatcher.removeEventListener(e,t,n)}_workerPostMessage(e){(0,w.d)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,y.VI)(e);if(t&&t.type===y.Go.OPEN){const{modulePath:e,jobId:n}=t;let r=await l.default.loadWorker(e);r||(r=await import(e));const s=l.default.connect(r);this._workerPostMessage({type:y.Go.OPENED,jobId:n,data:s})}}}var M=n(73444),x=n(18357);const I=()=>u.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:T}=y.Go;let A,E;const k="Failed to create Worker. Fallback to execute module in main thread";async function S(e){return new Promise((t=>{function n(s){const i=(0,y.VI)(s);i&&i.type===T&&(e.removeEventListener("message",n),e.removeEventListener("error",r),t(e))}function r(t){t.preventDefault(),e.removeEventListener("message",n),e.removeEventListener("error",r),I().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new v).addEventListener("message",n),e.addEventListener("error",r)}e.addEventListener("message",n),e.addEventListener("error",r)}))}let N=0;const{ABORT:R,INVOKE:D,OPEN:j,OPENED:L,RESPONSE:O}=y.Go;class C{static async create(e){const t=await async function(){if(!(0,s.A)("esri-workers"))return S(new v);if(!A&&!E)try{const e='let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;let s=null;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})})).finally((()=>{t&&t.removeEventListener("abort",s)}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if(null!=m.A.default){const t={...m.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(m.A));e.assetsPath=(0,h.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,h.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,M.JK)(),e.has={"esri-csp-restrictions":(0,s.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,s.A)("esri-2d-update-debug"),"esri-2d-log-updating":(0,s.A)("esri-2d-log-updating"),"featurelayer-pbf":(0,s.A)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,s.A)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,s.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,s.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,s.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,s.A)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,s.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,s.A)("featurelayer-snapshot-enabled"),"esri-atomics":(0,s.A)("esri-atomics"),"esri-shared-array-buffer":(0,s.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,s.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,s.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,s.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,h.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,h.s2)(e.workers.workerPath):e.workers.workerPath=(0,h.s2)((0,f.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=m.A.workers.loaderConfig,n=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.concat()||[],paths:{..._.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=_.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,M.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),r={buildDate:x.$,fullVersion:g.ol,revision:x.u};return JSON.stringify({esriConfig:e,loaderConfig:n,kernelInfo:r})}());A=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){E=e||{}}let e;if(A)try{e=new Worker(A,{name:"esri-worker-"+N++})}catch(t){I().warn(k,E),e=new v}else I().warn(k,E),e=new v;return S(e)}();return new C(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),u.A.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:n}=t,r=(0,y.Jc)();return new Promise(((t,s)=>{const o={resolve:t,reject:s,abortHandle:(0,i.NY)(n,(()=>{this._outJobs.delete(r),this._post({type:R,jobId:r})}))};this._outJobs.set(r,o),this._post({type:j,jobId:r,modulePath:e})}))}_onMessage(e){const t=(0,y.VI)(e);if(t)switch(t.type){case L:this._onOpenedMessage(t);break;case O:this._onResponseMessage(t);break;case R:this._onAbortMessage(t);break;case D:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);r&&(r.controller&&r.controller.abort(),t.delete(n))}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:s}=e,o=s?new AbortController:null,a=this._inJobs,l=c[t];let u;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);u=l.call(null,r,{signal:o?o.signal:null})}catch(e){return void this._post({type:O,jobId:n,error:(0,y.mF)(e)})}(0,i.$X)(u)?(a.set(n,{controller:o,promise:u}),u.then((e=>{a.has(n)&&(a.delete(n),this._post({type:O,jobId:n},e))}),(e=>{a.has(n)&&(a.delete(n),e||(e={message:"Error encountered at method"+t}),(0,i.zf)(e)||this._post({type:O,jobId:n,error:(0,y.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:O,jobId:n},u)}_onOpenedMessage(e){const{jobId:t,data:n}=e,r=this._outJobs.get(t);r&&(this._outJobs.delete(t),(0,p.xt)(r.abortHandle),r.resolve(n))}_onResponseMessage(e){const{jobId:t,error:n,data:s}=e,i=this._outJobs.get(t);i&&(this._outJobs.delete(t),(0,p.xt)(i.abortHandle),n?i.reject(r.A.fromJSON(JSON.parse(n))):i.resolve(s))}_post(e,t,n){return(0,y.u1)(this.worker,e,t,n)}}const B=(0,s.A)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,s.A)("workers-pool-size")):0;let P=(0,s.A)("esri-mobile")?Math.min(B,3):B;P||(P=(0,s.A)("safari")&&(0,s.A)("mac")?7:2);let Z=0;const F=[];async function q(e,t){const n=new o.A,{registryTarget:r,...s}=t;return await n.open(e,s),r&&(0,a.k)(r,n),n}async function G(e,t={}){if("string"!=typeof e)throw new r.A("workers:undefined-module","modulePath is missing");let n=t.strategy||"distributed";if((0,s.A)("host-webworker")&&!(0,s.A)("esri-workers")&&(n="local"),"local"===n){let n=await l.default.loadWorker(e);n||(n=await import(e)),(0,i.Te)(t.signal);const r=t.client||n;return q([l.default.connect(n,t.schedule)],{...t,client:r})}if(await async function(){if(J)return J;$=new AbortController;const e=[];for(let t=0;t<P;t++){const n=C.create(t).then((e=>(F[t]=e,e)));e.push(n)}return J=Promise.all(e),J}(),(0,i.Te)(t.signal),"dedicated"===n){const n=Z++%P;return q([await F[n].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const n=Math.min(t.maxNumWorkers,P);if(n<P){const r=new Array(n);for(let s=0;s<n;++s){const n=Z++%P;r[s]=F[n].open(e,t)}return q(r,t)}}return q(F.map((n=>n.open(e,t))),t)}let $,J=null},17136:(e,t,n)=>{n.d(t,{el:()=>M});var r=n(92602),s=n(49186),i=n(53966),o=n(39829),a=n(82799),l=n(80754),u=n(21325),p=n(28735),d=(n(59456),n(78888)),h=n(65864),c=n(2272),y=n(84952),f=n(92300);const m=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function _(e){return"polyline"===e[0].type}function w(e,t,n){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof o.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw m().error(e),new s.A(e)}const n=(0,l.r8)(e),r=[];for(const e of n){const n=[];r.push(n),n.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const s=e[r][0],i=e[r][1],o=e[r+1][0],a=e[r+1][1],l=Math.sqrt((o-s)*(o-s)+(a-i)*(a-i)),u=(a-i)/l,p=(o-s)/l,d=l/t;if(d>1){for(let e=1;e<=d-1;e++){const r=e*t,o=p*r+s,a=u*r+i;n.push([o,a])}const e=(l+Math.floor(d-1)*t)/2,r=p*e+s,o=u*e+i;n.push([r,o])}n.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new o.A({rings:r,spatialReference:e.spatialReference}):new a.A({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,p.ci)(t,!0)}return n&&(e=(0,l.kS)(e,n)),e}function b(e,t,n){if(Array.isArray(e)){const r=e[0];if(r>t){const n=(0,l.kd)(r,t);e[0]=r+n*(-2*t)}else if(r<n){const t=(0,l.kd)(r,n);e[0]=r+t*(-2*n)}}else{const r=e.x;if(r>t){const n=(0,l.kd)(r,t);e=e.clone().offset(n*(-2*t),0)}else if(r<n){const t=(0,l.kd)(r,n);e=e.clone().offset(t*(-2*n),0)}}return e}function v(e,t){let n=-1;for(let r=0;r<t.cutIndexes.length;r++){const s=t.cutIndexes[r],i=t.geometries[r],o=(0,l.r8)(i);for(let e=0;e<o.length;e++){const t=o[e];t.some((n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const r=t[e][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,l.kd)(n,180);for(let n=0;n<t.length;n++){const t=i.getPoint(e,n);i.setPoint(e,n,t.clone().offset(r,0))}return!0}}))}if(s===n){if(g(e))for(const t of(0,l.r8)(i))e[s]=e[s].addRing(t);else if(_(e))for(const t of(0,l.r8)(i))e[s]=e[s].addPath(t)}else n=s,e[s]=i}return e}async function M(e,t,n){if(!Array.isArray(e))return M([e],t);t&&"string"!=typeof t&&m().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??r.A.geometryServiceUrl;let i,g,_,x,I,T,A,E,k=0;const S=[],N=[];for(const t of e)if(null!=t)if(i||(i=t.spatialReference,g=(0,u.Vp)(i),_=i.isWebMercator,T=_?102100:4326,x=l.j7[T].maxX,I=l.j7[T].minX,A=l.j7[T].plus180Line,E=l.j7[T].minus180Line),g)if("mesh"===t.type)N.push(t);else if("point"===t.type)N.push(b(t.clone(),x,I));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>b(e,x,I))),N.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);N.push(e.rings?new o.A(e):e)}else if(t.extent){const e=t.extent,n=(0,l.kd)(e.xmin,I)*(2*x);let r=0===n?t.clone():(0,l.kS)(t.clone(),n);e.offset(n,0);let{xmin:s,xmax:i}=e;s=Number(s.toFixed(9)),i=Number(i.toFixed(9)),e.intersects(A)&&i!==x?(k=i>k?i:k,r=w(r,_),S.push(r),N.push("cut")):e.intersects(E)&&s!==I?(k=i*(2*x)>k?i*(2*x):k,r=w(r,_,360),S.push(r),N.push("cut")):N.push(r)}else N.push(t.clone());else N.push(t);else N.push(t);let R=(0,l.kd)(k,x),D=-90;const j=R,L=new a.A;for(;R>0;){const e=360*R-180;L.addPath([[e,D],[e,-1*D]]),D*=-1,R--}if(S.length>0&&j>0){const t=v(S,await async function(e,t,n,r){const s=(0,c.Dl)(e),i=t[0].spatialReference,o={...r,responseType:"json",query:{...s.query,f:"json",sr:(0,u.YX)(i),target:JSON.stringify({geometryType:(0,h.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},a=await(0,d.A)(s.path+"/cut",o),{cutIndexes:l,geometries:p=[]}=a.data;return{cutIndexes:l,geometries:p.map((e=>{const t=(0,h.rS)(e);return t.spatialReference=i,t}))}}(s,S,L,n)),r=[],i=[];for(let n=0;n<N.length;n++){const s=N[n];if("cut"!==s)i.push(s);else{const s=t.shift(),o=e[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&s.rings.length>=o.rings.length?(r.push(s),i.push("simplify")):i.push(_?(0,p.Gh)(s):s)}}if(!r.length)return i;const o=await async function(e,t,n){const r="string"==typeof e?(0,y.An)(e):e,s=t[0].spatialReference,i=(0,h.$B)(t[0]),o={...n,query:{...r.query,f:"json",sr:(0,u.YX)(s),geometries:JSON.stringify((0,f.X)(t))}},{data:a}=await(0,d.A)(r.path+"/simplify",o);return(0,f.V)(a.geometries,i,s)}(s,r,n),a=[];for(let e=0;e<i.length;e++){const t=i[e];"simplify"!==t?a.push(t):a.push(_?(0,p.Gh)(o.shift()):o.shift())}return a}const O=[];for(let e=0;e<N.length;e++){const t=N[e];if("cut"!==t)O.push(t);else{const e=S.shift();O.push(!0===_?(0,p.Gh)(e):e)}}return O}},80754:(e,t,n)=>{n.d(t,{j7:()=>o,kS:()=>l,kd:()=>a,r8:()=>u});var r=n(82799),s=n(16930),i=n(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const n=u(e);for(const e of n)for(const n of e)n[0]+=t;return e}function u(e){return(0,i.Bi)(e)?e.rings:e.paths}},6518:(e,t,n)=>{n.d(t,{F:()=>a});var r=n(44208),s=n(75503),i=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s.w(9,(0,r.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((n,r)=>{e[t++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,i.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(4576),s=n(49186),i=n(65529),o=n(53966),a=n(70328),l=n(19419),u=n(90708),p=n(6518),d=n(51441),h=n(37730);const c=(0,a.vt)();class y{constructor(e){this.geometryInfo=e,this._boundsStore=new p.F,this._featuresById=new Map,this._markedIds=new Set,this.events=new i.A,this.featureAdapter=h.T}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,r,s]=this.fullBounds;return{xmin:t,ymin:n,xmax:r,ymax:s,spatialReference:(0,d.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map((e=>this._upsert(e)));return this._emitChanged(),t.filter(r.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(c,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,n)=>{this._markedIds.has(n)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let r;if(this._markedIds.add(t),n?(e.displayId=n.displayId,r=this._boundsStore.get(t),this._boundsStore.delete(t)):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);r=(0,u.jQ)(null!=r?r:(0,l.vt)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=r&&this._boundsStore.set(t,r),this._featuresById.set(t,e)}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._markedIds.add(t);const{geometry:r,attributes:i}=e;for(const e in i)n.attributes[e]=i[e];return r&&(n.geometry=r,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),r,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._markedIds.delete(t),this._boundsStore.delete(t),this._featuresById.delete(t),e}}},64714:(e,t,n)=>{n.d(t,{F0:()=>a,Vx:()=>p,e2:()=>h,f:()=>c});var r=n(44208),s=n(4718),i=n(99352),o=n(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function p(e,t){if((0,r.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this${d(t)} = null;`;for(const t in e)n+=`this${d(t)} = ${JSON.stringify(e[t])};`;const r=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new r}catch(n){return()=>({[t]:null,...e})}}function d(e){return l.test(e)?`.${e}`:`["${e}"]`}function h(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.o8)(e)}}]}function c(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},61184:(e,t,n)=>{n.d(t,{PB:()=>k,d4:()=>E,ZL:()=>T,sZ:()=>A,yC:()=>x,Vr:()=>I});var r=n(90237),s=(n(59456),n(69622)),i=n(49186),o=n(53966),a=n(91869),l=n(39516),u=n(10107),p=(n(44208),n(87811),n(40608)),d=n(39829),h=n(57251),c=n(21325),y=n(90708),f=n(43334),m=n(65864);class g{constructor(){this._featureLookup=new Map}static getInstance(){return g.instance||(g.instance=new g),g.instance}static resetInstance(){g.instance&&(g.instance=null)}deleteFromStore(e){e.forEach((e=>{this._featureLookup.delete(e)}))}readFromStoreByList(e){const t=[];return e.forEach((e=>{const n=this.readFromStoreById(e);n&&t.push(n)})),t}readFromStoreById(e){return this._featureLookup.get(e)??null}writeToStore(e,t,n){const r=[];return e.forEach((e=>{if(!e?.id)return;e.properties||(e.properties=[]);let s,i=null;if(n&&e.properties[n]&&(i=(0,y.Ux)(e.properties[n])),"originId"in e&&"destinationId"in e&&(e.properties.ESRI__ORIGIN_ID=e.originId,e.properties.ESRI__DESTINATION_ID=e.destinationId),e.properties[t]=e.id,e.id&&this._featureLookup.has(e.id)&&this._featureLookup.get(e.id).attributes){const r=this._featureLookup.get(e.id),o=JSON.parse(JSON.stringify(Object.assign(r.attributes,e.properties)));n&&e.properties[n]&&(o[n]=(0,m.rS)(e.properties[n])),s=new f.Om(i?JSON.parse(JSON.stringify(i)):r?.geometry?JSON.parse(JSON.stringify(r.geometry)):null,o,null,e.properties[t])}else s=new f.Om(i?JSON.parse(JSON.stringify(i)):null,e.properties,null,e.properties[t]);this._featureLookup.set(e.id,s),r.push(s)})),r}}var _=n(45654),w=n(71932),b=n(42538),v=n(61956),M=n(5443);const x="ESRI__ID",I="ESRI__ORIGIN_ID",T="ESRI__DESTINATION_ID",A="ESRI__LAYOUT_GEOMETRY",E="ESRI__AGGREGATION_COUNT";let k=class extends s.A{constructor(e){super(e),this._processingCacheUpdatesLookup=new Map,this.knowledgeGraph=null,this.inclusionModeDefinition={generateAllSublayers:!0,namedTypeDefinitions:new Map},this.entityTypeNames=new Set,this.relationshipTypeNames=new Set,this.geographicLookup=new Map,this.sublayerCaches=new Map,this.nodeConnectionsLookup=new Map,this.relationshipConnectionsLookup=new Map,this.memberIdTypeLookup=new Map;const t=new Map;e.knowledgeGraph.dataModel.entityTypes?.forEach((n=>{n.name&&(t.set(n.name,"entity"),this._processingCacheUpdatesLookup.set(n.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.entityTypeNames.add(n.name),n.properties?.forEach((e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(n.name,{name:e.name??"",geometryType:e.geometryType})})))})),e.knowledgeGraph.dataModel.relationshipTypes?.forEach((n=>{n.name&&(t.set(n.name,"relationship"),this._processingCacheUpdatesLookup.set(n.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.relationshipTypeNames.add(n.name),n.properties?.forEach((e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(n.name,{name:e.name??"",geometryType:e.geometryType})})))})),e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((n,r)=>{if("entity"===t.get(r))this.entityTypeNames.add(r);else{if("relationship"!==t.get(r))return o.A.getLogger(this).warn(`A named type, ${r}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(r);this.relationshipTypeNames.add(r)}const s=new Map;n.members?.forEach((e=>{(0,a.tE)(this.memberIdTypeLookup,e.id,(()=>new Set)).add(r);const t=this.getById(e.id);t&&s.set(e.id,t)})),this.sublayerCaches.set(r,s)}))}addToLayer(e){e.forEach((({typeName:e,id:t})=>{if(!this.inclusionModeDefinition)throw new i.A("knowledge-graph:layer-data-manager","You cannot add to a layer's exclusion list if it was not created with an exclusion list originally");if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){const n=this.inclusionModeDefinition.namedTypeDefinitions.get(e);n.members||(n.members=new Map),n.members.set(t,{id:t}),(0,a.tE)(this.memberIdTypeLookup,t,(()=>new Set)).add(e)}}else{const n=new Map;n.set(t,{id:t}),this.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:n}),(0,a.tE)(this.memberIdTypeLookup,t,(()=>new Set)).add(e)}}))}getById(e){return g.getInstance().readFromStoreById(e)}async getData(e,t,n){if(t.objectType.name&&this.inclusionModeDefinition?.namedTypeDefinitions&&this.inclusionModeDefinition.namedTypeDefinitions.size>0&&!this.inclusionModeDefinition.namedTypeDefinitions.has(t.objectType.name))return[];let r;if(r=e||new v.A({where:"1=1",outFields:["*"]}),"link-chart"===t.parentCompositeLayer.type){const e=t.parentCompositeLayer,n=this._processingCacheUpdatesLookup.get(t.objectType.name??""),s=r.outFields;s&&1===s.length&&s[0]===x&&"1=1"===r.where||await Promise.all(n??[]);const i=this.sublayerCaches.has(t.objectType.name??"")?Array.from(this.sublayerCaches.get(t.objectType.name)?.values()):[],o=[];return i.forEach((n=>{this.relationshipTypeNames.has(t.objectType.name)?n.geometry=e.relationshipLinkChartDiagramLookup.get(n.attributes[t.objectIdField]):n.geometry=e.entityLinkChartDiagramLookup.get(n.attributes[t.objectIdField]),n.attributes[A]=n.geometry,o.push(n)})),o}return this.retrieveDataFromService(r,t,n)}async getConnectedRecordIds(e,t){const n=[];let r="";const s=[],i=new Map;if(e.forEach((e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e)){if(!this.entityTypeNames.has(t))return;i.has(t)?i.get(t)?.push(e):i.set(t,[e])}})),t&&0!==t?.length){for(const e of t)r=r+e+"|";r=r.slice(0,-1)}return i.forEach(((e,i)=>{let a;a=t&&0!==t?.length?`MATCH (n:${i})-[r:${r}]-(m) WHERE id(n) IN $ids RETURN id(r), type(r), id(m), labels(m)[0]`:`MATCH (n:${i})-[r]-(m) WHERE id(n) IN $ids RETURN id(r), type(r), id(m), labels(m)[0]`;const l=new Promise((t=>{(async()=>{const t=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new b.A({openCypherQuery:a,bindParameters:{ids:e}}))).resultRowsStream.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;for(let e=0;e<r.length;e++){const t=r[e];n.push({id:t[0],typeName:t[1]}),n.push({id:t[2],typeName:t[3]})}}}catch(e){if("AbortError"!==e.name)throw e;o.A.getLogger(this).info("Request aborted as expected")}})().then((()=>{t()}))}));s.push(l)})),this.refreshCacheContent(),await Promise.all(s),n}async getAttachedRelationships(e,t){const n=[],r=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new b.A({openCypherQuery:"MATCH (n)-[r]->(m) WHERE id(n) IN $nodeIds AND id(m) in $nodeIds AND NOT id(r) IN $relationshipExclusionIds return id(r), type(r)",bindParameters:{nodeIds:e,relationshipExclusionIds:t}}))).resultRowsStream.getReader();try{for(;;){const{done:e,value:t}=await r.read();if(e)break;for(let e=0;e<t.length;e++){const r=t[e];n.push({id:r[0],typeName:r[1]})}}}catch(e){if("AbortError"!==e.name)throw e;o.A.getLogger(this).info("Request aborted as expected")}return n}async refreshCacheContent(e,t,n,r=!0){const s=g.getInstance(),o=[],l=new Map,u=new Map;this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&u.set(e.name,e)})),this.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&u.set(e.name,e)})),e||this.inclusionModeDefinition?e?e.forEach((e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e))l.has(t)?l.get(t)?.push(e):l.set(t,[e])})):this.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{e.useAllData?l.set(t,null):e.members&&e.members.forEach((e=>{l.has(t)&&null!==l.get(t)?l.get(t)?.push(e.id):l.set(t,[e.id])}))})):(this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&l.set(e.name,null)})),this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&l.set(e.name,null)})));for(const[e,p]of l){const l=new Promise((o=>{(async()=>{const o=new Set,l=[];let d,h="",c=!1;if(t||u.get(e)?.properties?.forEach((e=>{e.name&&o.add(e.name)})),n&&this.geographicLookup.has(e)){const t=this.geographicLookup.get(e)?.name;t&&o.add(t)}if(this.entityTypeNames.has(e))h=`MATCH (n:${e}) ${p?"WHERE id(n) IN $ids ":""}return ID(n)`,o.forEach((e=>{h+=`, n.${e}`,l.push(e)}));else{if(!this.relationshipTypeNames.has(e))throw new i.A("knowledge-graph:layer-data-manager",`The graph type of ${e} could not be determined. Was this type set in the KG data model and inclusion definition?`);c=!0,h=`MATCH ()-[n:${e}]->() ${p?"WHERE id(n) IN $ids ":""}return ID(n), id(startNode(n)), id(endNode(n))`,o.forEach((e=>{h+=`, n.${e}`,l.push(e)}))}d=new b.A(p?{openCypherQuery:h,bindParameters:{ids:p}}:{openCypherQuery:h});const y=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,d)).resultRowsStream.getReader();for(;;){const{done:t,value:n}=await y.read();if(t)break;const i=[];for(let e=0;e<n.length;e++){const t=n[e];let r=0,s=0;const o={properties:{}};for(o.id=t[r],r++,s++,c&&(o.originId=t[r],r++,s++,o.destinationId=t[r],r++,s++,(0,a.tE)(this.nodeConnectionsLookup,o.originId,(()=>new Set)).add(o.id),(0,a.tE)(this.nodeConnectionsLookup,o.destinationId,(()=>new Set)).add(o.id),(0,a.tE)(this.relationshipConnectionsLookup,o.id,(()=>[o.originId,o.destinationId])));r<t.length;r++)o.properties[l[r-s]]=t[r];i.push(o)}const o=s.writeToStore(i,x,this.geographicLookup.get(e)?.name);this.sublayerCaches.has(e)||this.sublayerCaches.set(e,new Map),r&&!this.inclusionModeDefinition?.namedTypeDefinitions.has(e)&&this.inclusionModeDefinition?.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),r&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members&&(this.inclusionModeDefinition.namedTypeDefinitions.get(e).members=new Map);const u=this.sublayerCaches.get(e);o.forEach((t=>{u?.set(t.attributes[x],t),r&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.has(t.attributes[x])&&(this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.set(t.attributes[x],{id:t.attributes[x]}),(0,a.tE)(this.memberIdTypeLookup,t.attributes[x],(()=>new Set)).add(e))}))}})().then((()=>{o(null)}))}));o.push(l),this._processingCacheUpdatesLookup.get(e)?.push(l)}await Promise.all(o)}removeFromLayer(e){const t=new Set,n=new Set(e.map((e=>e.id)));for(const n of e)t.add(n.typeName),1===this.memberIdTypeLookup.get(n.id)?.size?this.memberIdTypeLookup.delete(n.id):this.memberIdTypeLookup.get(n.id)?.delete(n.typeName),this.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,t)=>{t===n.typeName&&e.members?.has(n.id)&&e.members.delete(n.id)}));t.forEach((e=>{this.sublayerCaches.get(e)?.forEach(((t,r)=>{n.has(r)&&this.sublayerCaches.get(e)?.delete(r)}))}))}async retrieveDataFromService(e,t,n){const r=g.getInstance(),s=new Set,o=[];let a,u="",p=[];const y="relationship"===t.graphType,f=this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData,m=t.parentCompositeLayer.sublayerIdsCache.get(t.objectType.name);let v=!f&&m?Array.from(m).sort():null;if(this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData)this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData&&null!=e.objectIds&&(v=e.objectIds);else if(null!=e.objectIds&&v&&v.length>0){const t=e.objectIds;e.objectIds=v.filter((e=>t.includes(e)))}else if(null!=e.objectIds)v=e.objectIds;else{if(this.inclusionModeDefinition?.namedTypeDefinitions.has(t.objectType.name)&&(!this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members||this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members?.size<1))return e.objectIds=[],[];e.objectIds=v}if(null!=e.outFields){const n=e.outFields;n.includes("*")?t.fields.forEach((e=>{s.add(e.name)})):n.forEach((e=>{e!==x&&e!==t.geometryFieldName&&s.add(e)}))}if(null!=e.geometry){const n=e.geometry;let r;const p=t.parentCompositeLayer.dataManager.knowledgeGraph.serviceDefinition,f=p?.spatialReference,m=p?.serviceCapabilities?.geometryCapabilities;let g=m?.geometryMaxBoundingRectangleSizeX,w=m?.geometryMaxBoundingRectangleSizeY;if(n?.extent?.spatialReference&&!n.spatialReference?.isWGS84?(await(0,h.initializeProjection)(n.extent.spatialReference,c.KK),r=(0,h.project)(n.extent,c.KK)):r=n.extent,g&&w&&f){if(4326!==f.wkid){const e=new M.A({spatialReference:f,xmax:g,ymax:w}),t=(0,h.project)(e,c.KK);g=t.xmax,w=t.ymax}if(r.xmax-r.xmin>g)throw new i.A("knowledge-graph:layer-data-manager",`Extent x bounds should be within ${g}° latitude, limit exceeded`);if(r.ymax-r.ymin>w)throw new i.A("knowledge-graph:layer-data-manager",`Extent y bounds should be within ${w}° longitude, limit exceeded`)}if(null!=e.where&&"1=1"!==e.where){const n=await(0,l.G)(e.where.toUpperCase(),t.fieldsIndex);t.fields.forEach((e=>{n.fieldNames.includes(e.name)&&s.add(e.name)}))}u=y?`Match ()-[n:${t.objectType.name}]->() WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n), id(startNode(r)), id(endNode(r))`:`Match (n:${t.objectType.name}) WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n)`,t.geometryFieldName&&s.add(t.geometryFieldName),s.forEach((e=>{u+=`, n.${e}`,o.push(e)})),a=new b.A({openCypherQuery:u,bindParameters:{param_filter_geom:new d.A({rings:(0,_.DX)(r)})}})}else{let n="";if(null!=e.where&&"1=1"!==e.where){const r=await(0,l.G)(e.where,t.fieldsIndex);t.fields.forEach((e=>{r.fieldNames.includes(e.name)&&s.add(e.name)}));const i=new Set(["column-reference","string","number","binary-expression"]),o=new Set(["=","<","<=","<>",">",">=","AND","OR","LIKE"]);let a=!1;const u=e=>{if("column-reference"===e.type)return`n.${e.column}`;if("string"===e.type)return`'${e.value}'`;if("number"===e.type)return`${e.value}`;if("binary-expression"===e.type&&i.has(e.left.type)&&i.has(e.right.type)&&o.has(e.operator))return`${u(e.left)} ${e.operator} ${u(e.right)}`;if("binary-expression"===e.type&&"LIKE"===e.operator){let t="";if("function"===e.left.type&&"column-reference"===e.left.args.value[0].type)t+=`lower(n.${e.left.args.value[0].column})`;else{if("column-reference"!==e.left.type)return a=!0,"";t+=`lower(n.${e.left.column})`}if(t+=" CONTAINS (","string"!==e.right.type)return a=!0,"";{let n=e.right.value;"%"===n.charAt(0)&&(n=n.slice(1)),"%"===n.charAt(n.length-1)&&(n=n.slice(0,-1)),t+=`'${n.toLowerCase()}')`}return t}return a=!0,""};n=u(r.parseTree),a&&(n="")}let r="";r=y?`Match ()-[n:${t.objectType.name}]->()`:`Match (n:${t.objectType.name})`;let i=!1;v&&(i=!0,r+=" WHERE ID(n) IN $ids"),n&&(r+=i?" AND":" WHERE",r+=` ${n}`),r+=" return ID(n)",y&&(r+=", id(startNode(n)), id(endNode(n))"),e.returnGeometry&&t.geometryFieldName&&s.add(t.geometryFieldName),s.forEach((e=>{r+=`, n.${e}`,o.push(e)})),a=new b.A(v?{openCypherQuery:r,bindParameters:{ids:v}}:{openCypherQuery:r})}const I=(await(0,w.executeQueryStreaming)(t.parentCompositeLayer.dataManager.knowledgeGraph,a,n)).resultRowsStream.getReader();for(;;){const{done:e,value:n}=await I.read();if(e)break;const s=[];for(let e=0;e<n.length;e++){const t=n[e];let r=0,i=0;const a={properties:{}};for(a.id=t[r],r++,i++,y&&(a.originId=t[r],r++,i++,a.destinationId=t[r],r++,i++);r<t.length;r++)a.properties[o[r-i]]=t[r];s.push(a)}p=p.concat(r.writeToStore(s,x,t.parentCompositeLayer.dataManager.geographicLookup.get(t.objectType.name)?.name))}return p}};(0,r._)([(0,u.MZ)()],k.prototype,"knowledgeGraph",void 0),(0,r._)([(0,u.MZ)()],k.prototype,"inclusionModeDefinition",void 0),(0,r._)([(0,u.MZ)()],k.prototype,"entityTypeNames",void 0),(0,r._)([(0,u.MZ)()],k.prototype,"relationshipTypeNames",void 0),(0,r._)([(0,u.MZ)()],k.prototype,"geographicLookup",void 0),(0,r._)([(0,u.MZ)()],k.prototype,"sublayerCaches",void 0),(0,r._)([(0,u.MZ)()],k.prototype,"nodeConnectionsLookup",void 0),(0,r._)([(0,u.MZ)()],k.prototype,"relationshipConnectionsLookup",void 0),(0,r._)([(0,u.MZ)()],k.prototype,"memberIdTypeLookup",void 0),k=(0,r._)([(0,p.$)("esri.layers.knowledgeGraph.KnowledgeGraphLayerDataManager")],k)},70643:(e,t,n)=>{n.d(t,{A:()=>H});var r=n(90237),s=(n(59456),n(13874)),i=(n(86162),n(94409),n(65345),n(42980),n(39290),n(92438),n(96576),n(93618),n(65494)),o=n(15036),a=n(4718),l=n(92071),u=(n(29953),n(10107)),p=(n(44208),n(53966),n(40608)),d=n(43937),h=n(35666),c=n(57251),y=n(16930),f=n(21325),m=n(4146),g=n(83221),_=n(17970),w=n(64714),b=n(61184);n(87811);const v=(0,n(17036).p)(),M=e=>{let t=class extends e{constructor(){super(...arguments),this.fields=[],this.fieldsIndex=null}};return(0,r._)([(0,u.MZ)(v.fields)],t.prototype,"fields",void 0),(0,r._)([(0,u.MZ)(v.fieldsIndex)],t.prototype,"fieldsIndex",void 0),t=(0,r._)([(0,p.$)("esri.layers.knowledgeGraph.KnowledgeGraphSublayerBase")],t),t};var x=n(63074),I=n(87718),T=n(76294),A=n(32756),E=n(54310),k=n(25036),S=n(82935),N=n(10873),R=n(13213),D=n(20437),j=n(30524),L=n(81457),O=n(39383),C=n(22671),B=n(61956),P=n(30291),Z=n(61322),F=n(5443),q=n(39829),G=n(82799),$=n(50498);function J(e){if(!e.json)return e;e.json.write=Y(e.json.write);const t=e.json.origins;if(!t)return e;let n;for(n in t){const e=t[n];e&&(e.write=Y(e.write))}return e}function Y(e){return"object"==typeof e&&e?(!1!==e.enabled&&(e.overridePolicy=function(e){const{target:t,writer:n,overridePolicy:r,...s}=e;return function(e,t){const n=Q.call(this,e,t);return n.enabled?{...s,...n}:n}}(e)),e):!0===e?V():e}function V(){return{overridePolicy:Q}}function Q(e,t){const n=!!this.geometryType;let r={enabled:n};return n&&(r={...r,...X.call(this,e,t)}),r}function X(e,t){return{ignoreOrigin:this.originIdOf(t)>h.Gr.DEFAULTS}}let U=class extends(M((0,T.J)((0,I.F)((0,x.dM)((0,A.f)((0,S.e)((0,k.j)((0,E.J)((0,l.P)(m.A)))))))))){constructor(e){super(e),this.blendMode="normal",this.capabilities=(0,w.f)(!1,!1),this.charts=null,this.definitionExpression=null,this.displayField="",this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.labelingInfo=null,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=b.yC,this.objectType=null,this.opacity=1,this.orderBy=null,this.parentCompositeLayer=null,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then((()=>{const e=new MessageChannel;return new Z.default(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{const n=B.A.fromJSON(e);return this.queryFeaturesJSON(n,t)}}}),[e.port2]}))},this.title=null,this.type="knowledge-graph-sublayer",this.useViewTime=!0,this.visible=!0}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}get fields(){const e=[];return this.objectType?.properties?.forEach((t=>{const n="esriFieldTypeOID"===t.fieldType?"esriFieldTypeInteger":t.fieldType;e.push(D.A.fromJSON({name:t.name,type:n,alias:t.alias,defaultValue:t.defaultValue,editable:t.editable,nullable:t.nullable}))})),e.push(D.A.fromJSON({name:this.objectIdField,type:"esriFieldTypeString",alias:this.objectIdField,editable:!1}),D.A.fromJSON({name:b.d4,type:"esriFieldTypeInteger",alias:b.d4,editable:!1})),e}get geometryType(){if("link-chart"===this.parentCompositeLayer?.type)return"relationship"===this.graphType?"polyline":"point";const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.geometryType;return t&&"esriGeometryNull"!==t?$.g.fromJSON(t):null}get geometryFieldName(){if("link-chart"===this.parentCompositeLayer?.type)return b.sZ;const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name);return e?.name??null}get graphTypeName(){return this.objectType?.name}get hasM(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,n=t?this.objectType?.properties?.[t]:null;return n?.hasM??!1}get hasZ(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,n=t?this.objectType?.properties?.[t]:null;return n?.hasZ??!1}set renderer(e){(0,j.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){return this._isOverridden("renderer")?this._get("renderer"):"link-chart"===this.parentCompositeLayer?.type?"relationship"===this.graphType?(0,i.r)((0,w.F0)($.g.toJSON("polyline")).renderer):(0,i.r)((0,w.F0)($.g.toJSON("point")).renderer):(0,i.r)((0,w.F0)($.g.toJSON(this.geometryType)).renderer)}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??y.A.WGS84}writeTitle(e,t){t.title=e??"Layer"}createPopupTemplate(e){return(0,P.tn)(this,e)}createQuery(){return new B.A({where:"1=1",outFields:["*"]})}getField(e){for(let t=0;t<this.fields.length;t++)if(this.fields[t].name===e)return this.fields[t];return null}getFieldDomain(e,t){return null}async queryFeatures(e,t){const{resolvedQuery:n,queryEngine:r}=await this._setupQueryObjects(e),s=C.A.fromJSON(await r.executeQuery(n.toJSON(),t?.signal));return s.features.forEach((e=>{e.sourceLayer=this})),s}async queryFeaturesJSON(e,t){const{resolvedQuery:n,queryEngine:r}=await this._setupQueryObjects(e);return await r.executeQuery(n.toJSON(),t?.signal)}async queryFeatureCount(e,t){const{resolvedQuery:n,queryEngine:r}=await this._setupQueryObjects(e);return r.executeQueryForCount(n.toJSON(),t?.signal)}async queryExtent(e={},t){const n={...e,returnGeometry:!0},{resolvedQuery:r,queryEngine:s}=await this._setupQueryObjects(n),i=await s.executeQueryForExtent(r.toJSON(),t?.signal);let o;return o=null!=i.extent?.xmin&&null!=i.extent?.xmax&&null!=i.extent?.ymin&&null!=i.extent?.ymax?new F.A(i.extent):new F.A,{count:i.count,extent:o}}async queryObjectIds(e,t){const n=B.A.from(e);let r;if("link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)r=this._cachedQueryEngine;else{const e=await this.parentCompositeLayer.dataManager.getData(n,this,t);r=this.loadQueryEngine(e)}return r.executeQueryForIds(n.toJSON(),t?.signal)}loadQueryEngine(e){const t=new g.A({geometryType:$.g.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),n=new _.d({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:$.g.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,objectIdField:this.objectIdField,spatialReference:this.spatialReference.toJSON(),timeInfo:null,featureStore:t});return n.featureStore.addMany(e),n}async refreshCachedQueryEngine(){const e=await this.parentCompositeLayer.dataManager.getData(new B.A({where:"1=1",outFields:[b.yC]}),this);this._cachedQueryEngine=this.loadQueryEngine(e)}async _setupQueryObjects(e,t){const n=B.A.from(e),r=n.geometry;let s;if(r&&!r.spatialReference?.isWGS84&&(await(0,c.initializeProjection)(r.spatialReference,f.KK),n.geometry=(0,c.project)(r instanceof q.A||r instanceof G.A?r:r.extent,f.KK)),"link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)s=this._cachedQueryEngine;else{const e=await this.parentCompositeLayer.dataManager.getData(n,this,t);s=this.loadQueryEngine(e)}return{resolvedQuery:n,queryEngine:s}}};(0,r._)([(0,u.MZ)(J((0,a.o8)(x.sU)))],U.prototype,"blendMode",void 0),(0,r._)([(0,u.MZ)()],U.prototype,"capabilities",void 0),(0,r._)([(0,u.MZ)({json:{origins:{"web-scene":{write:!1}},write:V()}})],U.prototype,"charts",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],U.prototype,"defaultPopupTemplate",null),(0,r._)([(0,u.MZ)({type:String,json:{origins:{service:{read:!1}},name:"layerDefinition.definitionExpression",write:{ignoreOrigin:!0}}})],U.prototype,"definitionExpression",void 0),(0,r._)([(0,u.MZ)()],U.prototype,"displayField",void 0),(0,r._)([(0,u.MZ)(J((0,a.o8)(x.LF)))],U.prototype,"effect",void 0),(0,r._)([(0,u.MZ)()],U.prototype,"elevationInfo",void 0),(0,r._)([(0,u.MZ)(J((0,a.o8)(I.Y)))],U.prototype,"featureEffect",void 0),(0,r._)([(0,u.MZ)(J((0,a.o8)(R.d)))],U.prototype,"featureReduction",null),(0,r._)([(0,u.MZ)()],U.prototype,"fields",null),(0,r._)([(0,u.MZ)()],U.prototype,"geometryType",null),(0,r._)([(0,u.MZ)()],U.prototype,"geometryFieldName",null),(0,r._)([(0,u.MZ)({type:["entity","relationship"],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],U.prototype,"graphType",void 0),(0,r._)([(0,u.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],U.prototype,"graphTypeName",null),(0,r._)([(0,u.MZ)()],U.prototype,"hasM",null),(0,r._)([(0,u.MZ)()],U.prototype,"hasZ",null),(0,r._)([(0,u.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],U.prototype,"id",void 0),(0,r._)([(0,u.MZ)(J((0,a.o8)(N.kF)))],U.prototype,"labelsVisible",void 0),(0,r._)([(0,u.MZ)({type:[L.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:O.w,write:V()}})],U.prototype,"labelingInfo",void 0),(0,r._)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:{writer(e,t){t.layerType=this.geometryType?"KnowledgeGraphSubLayer":"KnowledgeGraphSubTable"},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],U.prototype,"layerType",void 0),(0,r._)([(0,u.MZ)(J((0,a.o8)(N.fV)))],U.prototype,"legendEnabled",void 0),(0,r._)([(0,u.MZ)(J((0,a.o8)(N.hG)))],U.prototype,"maxScale",void 0),(0,r._)([(0,u.MZ)(J((0,a.o8)(N.hn)))],U.prototype,"minScale",void 0),(0,r._)([(0,u.MZ)()],U.prototype,"objectIdField",void 0),(0,r._)([(0,u.MZ)()],U.prototype,"objectType",void 0),(0,r._)([(0,u.MZ)(J((0,a.o8)(N.ke)))],U.prototype,"opacity",void 0),(0,r._)([(0,u.MZ)(J((0,a.o8)(A.n)))],U.prototype,"orderBy",void 0),(0,r._)([(0,u.MZ)()],U.prototype,"parentCompositeLayer",void 0),(0,r._)([(0,u.MZ)(J((0,a.o8)(N.M6)))],U.prototype,"popupEnabled",void 0),(0,r._)([(0,u.MZ)({type:s.A,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],U.prototype,"popupTemplate",void 0),(0,r._)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:X}}})],U.prototype,"refreshInterval",void 0),(0,r._)([(0,u.MZ)({types:o.H,json:{name:"layerDefinition.drawingInfo.renderer",write:V()}})],U.prototype,"renderer",null),(0,r._)([(0,u.MZ)()],U.prototype,"source",void 0),(0,r._)([(0,u.MZ)()],U.prototype,"spatialReference",null),(0,r._)([(0,u.MZ)({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],U.prototype,"title",void 0),(0,r._)([(0,d.K)("title")],U.prototype,"writeTitle",null),(0,r._)([(0,u.MZ)({json:{read:!1}})],U.prototype,"type",void 0),(0,r._)([(0,u.MZ)(J((0,a.o8)(S.B)))],U.prototype,"useViewTime",void 0),(0,r._)([(0,u.MZ)({type:Boolean,json:{name:"visibility",write:V()}})],U.prototype,"visible",void 0),U=(0,r._)([(0,p.$)("esri.layers.knowledgeGraph.KnowledgeGraphSublayer")],U);const H=U},45654:(e,t,n)=>{n.d(t,{DX:()=>_,_s:()=>b,aq:()=>w,fe:()=>v});var r,s,i,o,a=n(78888),l=n(49186),u=n(91869),p=(n(90708),n(71932)),d=n(42538);n(59456),n(16930),(s=r||(r={})).ELEMENTUID="ELEMENTUID",s.TYPENAME="TYPENAME",r.ELEMENTUID,r.TYPENAME,function(e){e[e.ELEMENTUID=0]="ELEMENTUID",e[e.TYPENAME=1]="TYPENAME"}(i||(i={})),function(e){e[e.ELEMENTUID=0]="ELEMENTUID",e[e.TYPENAME=1]="TYPENAME",e[e.FROMUID=2]="FROMUID",e[e.TOUID=3]="TOUID"}(o||(o={}));var h,c,y,f,m,g=n(45724);function _(e){if(!e.spatialReference.isWGS84)throw new l.A("knowledge-graph:layer-support-utils","The extentToInBoundsRings function only supports WGS84 spatial references.");return e.clone().normalize().map((e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]))}async function w(e,t){const n=[],r=new Map,s=[];if(t.dataModel?.relationshipTypes)for(const e of t.dataModel.relationshipTypes)e.name&&r.set(e.name,[]);for(const t of e)r.has(t.typeName)&&r.get(t.typeName)?.push(t.id);for(const[e,i]of r){if(i.length<1)continue;const r=new d.A({openCypherQuery:`MATCH (n)-[r:${e}]->(m) WHERE id(r) in $ids RETURN id(n), labels(n)[0], id(m), labels(m)[0]`,bindParameters:{ids:i}});s.push((0,p.executeQueryStreaming)(t,r).then((async e=>{const t=e.resultRowsStream.getReader();for(;;){const{done:e,value:r}=await t.read();if(e)break;for(const e of r)n.push({id:e[0],typeName:e[1]}),n.push({id:e[2],typeName:e[3]})}})))}return await Promise.all(s),n}async function b(e,t){t??=!1;const n={generateAllSublayers:t,namedTypeDefinitions:new Map};return await async function(e){const t=await(0,a.A)(e,{responseType:"array-buffer"}),n=await t.data;return async function(e){const t=new((await(0,g.I)()).MapOfObjectIdentifierSetsDecoder),n=t.decode(new Uint8Array(e)),r=new Map;if(0!==n.error_code)throw new l.A("knowledge-graph:layer-support-utils",n.error_message);const s=t.get_map_of_identifier_sets(),i=s.keys,o=i.size();for(let e=0;e<o;e++){const t=i.get(e),n=s.query_identifier_set(t),o=[];if(n.id_array_type.value===f.GLOBALID_ARRAY){const e=n.get_globalid_array(),t=e.count();for(let n=0;n<t;n++)o.push(e.get_globalid_at(n))}else{if(n.id_array_type.value!==f.IDENTIFIER_ARRAY)throw new l.A("knowledge-graph:layer-support-utils","Tried to encode an unexpected ID Array type.");{const e=n.get_identifier_array(),t=e.count();for(let n=0;n<t;n++)o.push(e.get_identifier_at(n).toString())}}r.set(t,o)}return t.delete(),r}(new Uint8Array(n))}(e).then((e=>{!function(e,t){for(const[n,r]of e){const e=(0,u.tE)(t.namedTypeDefinitions,n,(()=>({useAllData:!1,members:new Map})));for(const t of r)e.members.has(t)||e.members.set(t,{id:t})}}(e,n)})),n}async function v(e){const t=await(0,g.I)(),n=new t.MapOfObjectIdentifierSets;!function(e,t,n){for(const[r,s]of n.namedTypeDefinitions){if(!s.members||s.useAllData)continue;const n=s.members.keys(),i=new t.GlobalIdArray,o=new t.ObjectIdentifierSet;for(const e of n)i.add_globalid(e);o.set_globalid_array(i),i.delete(),e.put_identifier_set(r,o),o.delete()}}(n,t,e);const r=new t.MapOfObjectIdentifierSetsEncoder;try{r.set_map_of_identifier_sets(n),r.encode();const e=r.get_encoding_result();if(0!==e.error.error_code)throw new l.A("knowledge-graph:layer-support-utils",e.error.error_message);const t=structuredClone(e.get_byte_buffer());return r.delete(),t}finally{n.delete()}}n(35448),(m=h||(h={}))[m.featureResult=0]="featureResult",m[m.countResult=1]="countResult",m[m.idsResult=2]="idsResult",function(e){e[e.upperLeft=0]="upperLeft",e[e.lowerLeft=1]="lowerLeft"}(c||(c={})),function(e){e[e.sqlTypeBigInt=0]="sqlTypeBigInt",e[e.sqlTypeBinary=1]="sqlTypeBinary",e[e.sqlTypeBit=2]="sqlTypeBit",e[e.sqlTypeChar=3]="sqlTypeChar",e[e.sqlTypeDate=4]="sqlTypeDate",e[e.sqlTypeDecimal=5]="sqlTypeDecimal",e[e.sqlTypeDouble=6]="sqlTypeDouble",e[e.sqlTypeFloat=7]="sqlTypeFloat",e[e.sqlTypeGeometry=8]="sqlTypeGeometry",e[e.sqlTypeGUID=9]="sqlTypeGUID",e[e.sqlTypeInteger=10]="sqlTypeInteger",e[e.sqlTypeLongNVarchar=11]="sqlTypeLongNVarchar",e[e.sqlTypeLongVarbinary=12]="sqlTypeLongVarbinary",e[e.sqlTypeLongVarchar=13]="sqlTypeLongVarchar",e[e.sqlTypeNChar=14]="sqlTypeNChar",e[e.sqlTypeNVarChar=15]="sqlTypeNVarChar",e[e.sqlTypeOther=16]="sqlTypeOther",e[e.sqlTypeReal=17]="sqlTypeReal",e[e.sqlTypeSmallInt=18]="sqlTypeSmallInt",e[e.sqlTypeSqlXml=19]="sqlTypeSqlXml",e[e.sqlTypeTime=20]="sqlTypeTime",e[e.sqlTypeTimestamp=21]="sqlTypeTimestamp",e[e.sqlTypeTimestamp2=22]="sqlTypeTimestamp2",e[e.sqlTypeTinyInt=23]="sqlTypeTinyInt",e[e.sqlTypeVarbinary=24]="sqlTypeVarbinary",e[e.sqlTypeVarchar=25]="sqlTypeVarchar"}(y||(y={})),function(e){e[e.OID_ARRAY=0]="OID_ARRAY",e[e.GLOBALID_ARRAY=1]="GLOBALID_ARRAY",e[e.STRING_ARRAY=2]="STRING_ARRAY",e[e.IDENTIFIER_ARRAY=3]="IDENTIFIER_ARRAY"}(f||(f={}))},32756:(e,t,n)=>{n.d(t,{f:()=>u,n:()=>l});var r=n(90237),s=n(93637),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),a=n(91880);const l={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:function(e,t,n){if(!e)return null;const r=e.find((e=>!!e.field));if(!r)return null;const s=new a.A;return s.read(r,n),[s]}},write:{writer:function(e,t,n,r){const i=e.find((e=>!!e.field));i&&(0,s.sM)(n,[i.toJSON()],t)}}}},u=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,r._)([(0,i.MZ)(l)],t.prototype,"orderBy",void 0),t=(0,r._)([(0,o.$)("esri.layers.mixins.OrderedLayer")],t),t}},54310:(e,t,n)=>{n.d(t,{J:()=>w});var r=n(90237),s=(n(44208),n(53966)),i=n(74887),o=n(10107),a=n(79901),l=(n(87811),n(40608)),u=n(89317),p=n(5503),d=(n(60999),n(49186),n(14012),n(80559));const h=new p.A,c=new WeakMap;function y(e){(function(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e})(e)&&h.push(new WeakRef(e))}function f(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:f(t,e%t):0}let m=0,g=0;function _(){const e=Date.now();let t=!1;for(const n of h){const r=n.deref();r?r.refreshInterval&&e-(c.get(r)??0)+5>=6e4*r.refreshInterval&&(c.set(r,e),r.refresh(e)):t=!0}if(t)for(let e=h.length-1;e>=0;e--)h.at(e).deref()||h.removeAt(e)}(0,d.fm)((()=>{const e=Date.now();let t=0;for(const n of h){const r=n.deref();r&&(t=f(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?c.get(r)||c.set(r,e):c.delete(r))}if(t!==g){if(g=t,clearInterval(m),0===g)return void(m=0);m=setInterval(_,g)}}));const w=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,i.sg)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||y(this)}),(()=>{}))}destroy(){!function(e){const t=h.find((t=>t.deref()===e));t&&h.remove(t)}(this)}castRefreshInterval(e){return e>=.1?e:e<=0?0:.1}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,i.QZ)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{s.A.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}get test(){}};return(0,r._)([(0,o.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:{enabled:!0,layerContainerTypes:u.K}}}}})],t.prototype,"refreshInterval",void 0),(0,r._)([(0,a.w)("refreshInterval")],t.prototype,"castRefreshInterval",null),(0,r._)([(0,o.MZ)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,r._)([(0,o.MZ)({readOnly:!0})],t.prototype,"refreshParameters",null),t=(0,r._)([(0,l.$)("esri.layers.mixins.RefreshableLayer")],t),t}},20437:(e,t,n)=>{n.d(t,{A:()=>m});var r,s=n(90237),i=n(66552),o=n(25482),a=n(10107),l=n(56507),u=(n(87811),n(44208),n(93223)),p=n(36005),d=n(40608),h=n(72088),c=n(98453);const y=new i.J({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 o.oY{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 n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?y.fromJSON(n.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,s._)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,s._)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,s._)([(0,a.MZ)()],f.prototype,"description",void 0),(0,s._)([(0,p.w)("description")],f.prototype,"readDescription",null),(0,s._)([(0,a.MZ)({types:h.gK,json:{read:{reader:h.rS},write:!0}})],f.prototype,"domain",void 0),(0,s._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,s._)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,s._)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,s._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,s._)([(0,u.e)(c.m)],f.prototype,"type",void 0),(0,s._)([(0,a.MZ)()],f.prototype,"valueType",void 0),(0,s._)([(0,p.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,s._)([(0,a.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=r=(0,s._)([(0,d.$)("esri.layers.support.Field")],f);const m=f},91880:(e,t,n)=>{n.d(t,{A:()=>d});var r,s=n(90237),i=n(66552),o=n(25482),a=n(10107),l=(n(44208),n(53966),n(87811),n(40608));const u=new i.J({asc:"ascending",desc:"descending"});let p=r=class extends o.oY{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new r({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s._)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,s._)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,s._)([(0,a.MZ)({type:u.apiValues,json:{type:u.jsonValues,read:u.read,write:u.write}})],p.prototype,"order",void 0),p=r=(0,s._)([(0,l.$)("esri.layers.support.OrderByInfo")],p);const d=p},72088:(e,t,n)=>{n.d(t,{rS:()=>I,gK:()=>x}),n(44208);var r,s=n(90237),i=n(4718),o=n(10107),a=(n(53966),n(93223)),l=n(40608),u=n(25482);n(87811);let p=r=class extends u.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,s._)([(0,o.MZ)({type:[String,Number],json:{write:!0}})],p.prototype,"code",void 0),p=r=(0,s._)([(0,l.$)("esri.layers.support.CodedValue")],p);const d=new(n(66552).J)({inherited:"inherited",codedValue:"coded-value",range:"range"});let h=class extends u.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,s._)([(0,a.e)(d)],h.prototype,"type",void 0),h=(0,s._)([(0,l.$)("esri.layers.support.Domain")],h);const c=h;var y;let f=y=class extends c{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,i.o8)(this.codedValues),name:this.name})}};(0,s._)([(0,o.MZ)({type:[p],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,s._)([(0,a.e)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=y=(0,s._)([(0,l.$)("esri.layers.support.CodedValueDomain")],f);const m=f;var g;n(49186);let _=g=class extends c{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,s._)([(0,a.e)({inherited:"inherited"})],_.prototype,"type",void 0),_=g=(0,s._)([(0,l.$)("esri.layers.support.InheritedDomain")],_);const w=_;var b;let v=b=class extends c{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new b({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,s._)([(0,o.MZ)({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,n){t[n]=[this.minValue||0,e]}}}})],v.prototype,"maxValue",void 0),(0,s._)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],v.prototype,"minValue",void 0),(0,s._)([(0,a.e)({range:"range"})],v.prototype,"type",void 0),v=b=(0,s._)([(0,l.$)("esri.layers.support.RangeDomain")],v);const M=v,x={key:"type",base:c,typeMap:{range:v,"coded-value":m,inherited:w}};function I(e){if(!e?.type)return null;switch(e.type){case"range":return M.fromJSON(e);case"codedValue":return m.fromJSON(e);case"inherited":return w.fromJSON(e)}return null}},32730:(e,t,n)=>{n.d(t,{BI:()=>m,D3:()=>y,XJ:()=>f,lc:()=>c,mX:()=>_,rU:()=>g,tH:()=>x});var r=n(799);const s="__begin__",i="__end__",o=new RegExp(s,"ig"),a=new RegExp(i,"ig"),l=new RegExp("^"+s,"i"),u=new RegExp(i+"$","i"),p='"',d=p+" + ",h=" + "+p;function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(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=c(e.labelExpression),t.type="conventional"),t}function m(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return _(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(w);return t?.[1].trim()||null}(t.expression);case"arcade":return x(t.expression)}return null}function _(e){let t;return e?(t=(0,r.HC)(e,(e=>s+'$feature["'+e+'"]'+i)),t=l.test(t)?t.replace(l,""):p+t,t=u.test(t)?t.replace(u,""):t+p,t=t.replaceAll(o,d).replaceAll(a,h)):t='""',t}const w=/^\s*\{([^}]+)\}\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,v=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function x(e){if(!e)return null;let t=b.exec(e)||v.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}},92300:(e,t,n)=>{n.d(t,{V:()=>i,X:()=>s});var r=n(65864);function s(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function i(e,t,n){const s=(0,r.xD)(t);return e.map((e=>{const t=s.fromJSON(e);return t.spatialReference=n,t}))}},25927:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(90237),s=(n(59456),n(10107)),i=(n(44208),n(53966),n(87811),n(40608)),o=n(54238),a=n(86738);let l=class extends o.A{constructor(e){super(e),this.layoutGeometry=null}};(0,r._)([(0,s.MZ)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],l);const u=l},54238:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(90237),s=n(10107),i=(n(44208),n(53966),n(87811),n(40608)),o=n(77901);let a=class extends o.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],a);const l=a},77901:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(90237),s=n(25482),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608));let a=class extends s.oY{constructor(e){super(e),this.properties=null}};(0,r._)([(0,i.MZ)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,r._)([(0,o.$)("esri.rest.knowledgeGraph.GraphObject")],a);const l=a},42538:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(90237),s=n(10107),i=(n(44208),n(53966),n(87811),n(40608)),o=n(69622);let a=class extends o.A{constructor(e){super(e),this.openCypherQuery=""}};(0,r._)([(0,s.MZ)()],a.prototype,"openCypherQuery",void 0),a=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],a);const l=a;let u=class extends l{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,r._)([(0,s.MZ)()],u.prototype,"bindParameters",void 0),(0,r._)([(0,s.MZ)()],u.prototype,"bindGeometryQuantizationParameters",void 0),(0,r._)([(0,s.MZ)()],u.prototype,"outputQuantizationParameters",void 0),(0,r._)([(0,s.MZ)()],u.prototype,"outputSpatialReference",void 0),(0,r._)([(0,s.MZ)()],u.prototype,"provenanceBehavior",void 0),u=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],u);const p=u},40662:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(90237),s=(n(53966),n(44208),n(87811),n(49186),n(40608)),i=n(77901);let o=class extends i.A{constructor(e){super(e)}};o=(0,r._)([(0,s.$)("esri.rest.knowledgeGraph.ObjectValue")],o);const a=o},42095:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(90237),s=n(25482),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),a=n(77901);let l=class extends s.oY{constructor(e){super(e),this.path=null}};(0,r._)([(0,i.MZ)({type:[a.A],json:{write:!0}})],l.prototype,"path",void 0),l=(0,r._)([(0,o.$)("esri.rest.knowledgeGraph.Path")],l);const u=l},23150:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(90237),s=(n(59456),n(10107)),i=(n(44208),n(53966),n(87811),n(40608)),o=n(54238),a=n(82799);let l=class extends o.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"originId",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"destinationId",void 0),(0,r._)([(0,s.MZ)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,r._)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],l);const u=l},22671:(e,t,n)=>{n.d(t,{A:()=>w});var r,s=n(90237),i=n(59456),o=n(52106),a=n(66552),l=n(25482),u=n(4718),p=n(10107),d=(n(44208),n(53966),n(36005)),h=n(40608),c=n(43937),y=n(16930),f=n(65864),m=n(20437);const g=new a.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let _=r=class extends l.oY{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 n=y.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const s=e[t],i=o.A.fromJSON(s),a=s.geometry?.spatialReference;null==i.geometry||a||(i.geometry.spatialReference=n);const l=s.aggregateGeometries,u=i.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],s=r?.spatialReference;null==t||s||(t.spatialReference=n)}r.push(i)}return r}writeGeometryType(e,t,n,r){if(e)return void g.write(e,t,n,r);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void g.write(e.geometry.type,t,n,r)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,r=(0,f.rS)(e);return r&&!n&&t.spatialReference&&(r.spatialReference=y.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)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,u.o8)({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 n=0;n<t.features.length;n++){const r=t.features[n];if(r.geometry){const t=e?.[n];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,n],translate:[r,s]}=e,i=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-r)/t)),(e=>Math.round((s-e)/n)));for(let e=0,t=i.length;e<t;e++)o?.(i[e].geometry)||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[r,s],scale:[i,o]}=n;let a=null,l=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=n;a=n=>n*t+e}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=n;l=n=>null==n?n:n*t+e}const u=this._getHydrationFunction(e,(e=>e*i+r),(e=>s-e*o),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,n){let r,s;const i=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=n(a[1]);e===r&&o===s||(i.push([e-r,o-s]),r=e,s=o)}else r=t(a[0]),s=n(a[1]),i.push([r,s])}return i.length>0?i:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,f.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,i=r.length;e<i;e++){const i=r[e],o=this._quantizePoints(i,t,n);o&&s.push(o)}return s.length>0?((0,f.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,n);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n,r,s){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const i=(0,f.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,r=i.length;e<r;e++){const r=i[e];for(let e=0,s=r.length;e<s;e++){const s=r[e];e>0?(o+=s[0],a+=s[1]):(o=s[0],a=s[1]),s[0]=t(o),s[1]=n(a)}}if(r&&s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2]),n[3]=s(n[3])}}else if(r)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2])}}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=s(n[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const i=e.points;let o,a;for(let e=0,r=i.length;e<r;e++){const r=i[e];e>0?(o+=r[0],a+=r[1]):(o=r[0],a=r[1]),r[0]=t(o),r[1]=n(a)}if(r&&s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=r(t[2]),t[3]=s(t[3])}else if(r)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=r(t[2])}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2])}}:null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],_.prototype,"displayFieldName",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,p.MZ)({type:[o.A],json:{write:!0}})],_.prototype,"features",void 0),(0,s._)([(0,d.w)("features")],_.prototype,"readFeatures",null),(0,s._)([(0,p.MZ)({type:[m.A],json:{write:!0}})],_.prototype,"fields",void 0),(0,s._)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],_.prototype,"geometryType",void 0),(0,s._)([(0,c.K)("geometryType")],_.prototype,"writeGeometryType",null),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasM",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasZ",void 0),(0,s._)([(0,p.MZ)({types:i.yR,json:{write:!0}})],_.prototype,"queryGeometry",void 0),(0,s._)([(0,d.w)("queryGeometry")],_.prototype,"readQueryGeometry",null),(0,s._)([(0,p.MZ)({type:y.A,json:{write:!0}})],_.prototype,"spatialReference",void 0),(0,s._)([(0,c.K)("spatialReference")],_.prototype,"writeSpatialReference",null),(0,s._)([(0,p.MZ)({json:{write:!0}})],_.prototype,"transform",void 0),_=r=(0,s._)([(0,h.$)("esri.rest.support.FeatureSet")],_),_.prototype.toJSON.isDefaultToJSON=!0;const w=_},2272:(e,t,n)=>{n.d(t,{Dl:()=>o,jV:()=>i,lF:()=>a}),n(92602),n(70333);var r=n(4718),s=n(84952);function i(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function o(e){return"string"==typeof e?(0,s.An)(e):(0,r.o8)(e)}function a(e,t,n){const r={};for(const s in e){if("declaredClass"===s)continue;const i=e[s];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))r[s]=i.map((e=>a(e)));else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n?.[s]);r[s]=t?e:JSON.stringify(e)}else r[s]=t?i:JSON.stringify(i);else r[s]=i}return r}n(926)}}]);