@arcgis/core 4.25.0-next.20221026 → 4.25.0-next.20221027

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 (42) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{3981b2ec84b79767f967.js → 0407b64ba238bbe78f31.js} +1 -1
  3. package/assets/esri/core/workers/chunks/337aa6e34a02b4b41abf.js +1 -0
  4. package/assets/esri/core/workers/chunks/{6bcd1c5c75bcaf387419.js → a4b430aa765a8c78e3f6.js} +1 -1
  5. package/assets/esri/core/workers/chunks/bf28a9adb9d86d6a14ad.js +1 -0
  6. package/assets/esri/core/workers/chunks/{3ecedd43560f6a8a77e9.js → d8e953362eeaa1391ad7.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{9d9f4865a4cd8f1cbe22.js → da4d5d9555a7a9ae2622.js} +1 -1
  8. package/assets/esri/themes/base/widgets/_BasemapGallery.scss +4 -0
  9. package/assets/esri/themes/base/widgets/_Popup.scss +12 -18
  10. package/assets/esri/themes/dark/main.css +1 -1
  11. package/assets/esri/themes/light/main.css +1 -1
  12. package/assets/esri/themes/light/view.css +1 -1
  13. package/interfaces.d.ts +64 -0
  14. package/layers/SceneLayer.js +1 -1
  15. package/layers/mixins/FeatureReductionLayer.js +1 -1
  16. package/layers/support/SubtypeSublayer.js +1 -1
  17. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  18. package/package.json +1 -1
  19. package/portal/schemas/definitions.js +1 -1
  20. package/smartMapping/heuristics/binLevel.js +5 -0
  21. package/support/revision.js +1 -1
  22. package/views/2d/engine/FeatureContainer.js +1 -1
  23. package/views/2d/engine/Stage.js +1 -1
  24. package/views/2d/engine/webgl/BufferPool.js +1 -1
  25. package/views/2d/engine/webgl/FeatureTile.js +1 -1
  26. package/views/2d/engine/webgl/Painter.js +1 -1
  27. package/views/2d/engine/webgl/TextureUploadManager.js +1 -1
  28. package/views/2d/engine/webgl/cpuMapped/Buffer.js +1 -1
  29. package/views/2d/engine/webgl/cpuMapped/Geometry.js +1 -1
  30. package/views/2d/layers/support/clusterUtils.js +1 -1
  31. package/views/3d/analysis/Dimension/settings.js +1 -1
  32. package/views/3d/terrain/OverlayRenderer.js +1 -1
  33. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  34. package/views/interactive/snapping/SnappingManager.js +1 -1
  35. package/views/interactive/snapping/featureSources/I3SSnappingSource.js +1 -1
  36. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  37. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorkerHandle.js +1 -1
  38. package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +5 -0
  39. package/widgets/Editor.js +1 -1
  40. package/widgets/Popup.js +1 -1
  41. package/assets/esri/core/workers/chunks/16a6b4d8c4928c97ef56.js +0 -1
  42. package/assets/esri/core/workers/chunks/ca329a33297b99b357ff.js +0 -1
@@ -1 +1 @@
1
- var RemoteClient;(()=>{var e={88277:(e,t,n)=>{n.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(80442);var r=n(78286),o=n(17202);const s={analysisTheme:{accentColor:[255,128,0],textColor:"white"},apiKey:void 0,applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,r.RH)(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.25.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${o.r}/assets`}s.defaultAssetsPath=s.assetsPath}},20102:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(22974),o=n(92604),s=n(58896);class i extends s.Z{constructor(e,t,n){if(super(e,t,n),!(this instanceof i))return new i(e,t,n)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,r.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(68773),o=(n(80442),n(70586)),s=n(19153);const i={info:0,warn:1,error:2,none:3};class a{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...n){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const r=this._argsToKey(n),o=this._loggedMessages[e].get(r);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(r,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of r.Z.log.interceptors)if(t(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,t){let n=this;for(;(0,o.pC)(n);){const t=n[e];if((0,o.pC)(t))return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...n){console[e](`[${t}]`,...n)}_matchLevel(e){const t=r.Z.log.level?r.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78286);class o{constructor(e,t,n){this.name=e,this.details=n,this instanceof o&&(this.message=(t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,n)=>{if(""===n)return"$";const o=(0,r.hS)(n,t)??"";if(void 0===o)throw new Error(`could not find key "${n}" in template`);return o.toString()}))}(t,n))??"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*r._m}getInt(){return this._seed=(r._a*this._seed+r._c)%r._m,this._seed}getFloat(){return this.getInt()/(r._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const n=t-e;return e+this.getInt()/r._m*n}}r._m=2147483647,r._a=48271,r._c=0},67676:(e,t,n)=>{"use strict";n.d(t,{FY:()=>m,Od:()=>y,SO:()=>d,Vx:()=>i,a9:()=>u,cq:()=>p,e$:()=>b,e5:()=>a,fS:()=>s,w6:()=>f,zG:()=>c});var r=n(70586),o=n(77734);function s(e,t,n){if((0,r.Wi)(e)&&(0,r.Wi)(t))return!0;if((0,r.Wi)(e)||(0,r.Wi)(t)||e.length!==t.length)return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function i(e,t){let n=e.length!==t.length;n&&(e.length=t.length);for(let r=0;r<t.length;++r)e[r]!==t[r]&&(e[r]=t[r],n=!0);return n}function a(e,t,n){let r,o;return n?(r=t.filter((t=>!e.some((e=>n(e,t))))),o=e.filter((e=>!t.some((t=>n(t,e)))))):(r=t.filter((t=>!e.includes(t))),o=e.filter((e=>!t.includes(e)))),{added:r,removed:o}}function c(e){return e&&"number"==typeof e.length}const l=!!Array.prototype.fill;function u(e,t){if(l)return new Array(e).fill(t);const n=new Array(e);for(let r=0;r<e;r++)n[r]=t;return n}function f(e,t){void 0===t&&(t=e,e=0);const n=new Array(t-e);for(let r=e;r<t;r++)n[r-e]=r;return n}class d{constructor(){this.last=0}}const h=new d;function p(e,t,n,r){r=r||h;const o=Math.max(0,r.last-10);for(let s=o;s<n;++s)if(e[s]===t)return r.last=s,s;const s=Math.min(o,n);for(let n=0;n<s;++n)if(e[n]===t)return r.last=n,n;return-1}function b(e,t,n,r){const o=n??e.length,s=p(e,t,o,r);if(-1!==s)return e[s]=e[o-1],null==n&&e.pop(),t}const g=new Set;function m(e,t,n=e.length,r=t.length,o,s){if(0===r||0===n)return n;g.clear();for(let e=0;e<r;++e)g.add(t[e]);o=o||h;const i=Math.max(0,o.last-10);for(let t=i;t<n;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;for(let t=0;t<i;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;return g.clear(),n}function y(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}new o.Z},60235:(e,t,n)=>{"use strict";n.d(t,{Mr:()=>i,x9:()=>a});var r=n(80442);const o=new Set;function s(e,t,n=!1){n&&o.has(t)||(n&&o.add(t),e.warn(`🛑 DEPRECATED - ${t}`))}function i(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{moduleName:r}=n;a(e,"Property: "+(r?r+"::":"")+t,n)}}function a(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{replacement:r,version:o,see:i,warnOnce:a}=n;let c=t;r&&(c+=`\n\t🛠️ Replacement: ${r}`),o&&(c+=`\n\t⚙️ Version: ${o}`),i&&(c+=`\n\t🔗 See ${i} for more details.`),s(e,c,a)}}},91460:(e,t,n)=>{"use strict";function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function s(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const s=o(e,t,(t=>{s.remove(),n.call(e,t)}));return{remove(){s.remove()}}}n.d(t,{IH:()=>s,on:()=>o,vT:()=>r})},80442:(e,t,n)=>{"use strict";let r;function o(e){return"function"==typeof r[e]?r[e]=r[e](globalThis):r[e]}n.d(t,{Z:()=>o}),r=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,n,s)=>((s||void 0===r[e])&&(r[e]=t),n&&o(e)),o.cache=r,o.add("esri-deprecation-warnings",!0),(()=>{o.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,n=e.appVersion,r=parseFloat(n);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",n.includes("Konqueror")?r:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!n.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(n.split("Version/")[1])),o.add("mac",n.includes("Macintosh")),!o("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),n=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",r=parseFloat(n.replace(/_/,".").replace(/_/g,""));o.add(e,r),o.add("ios",r)}o.add("trident",parseFloat(n.split("Trident/")[1])||void 0),o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("trident")||o("edge")||o.add("mozilla",r),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),n=/iPhone/i.test(e);t&&o.add("esri-mobile",t),n&&o.add("esri-iPhone",n),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-canvas-svg-support",!o("trident")),o.add("esri-wasm","WebAssembly"in globalThis),o.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),o.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),o.add("esri-atomics","Atomics"in globalThis),o.add("esri-workers","Worker"in globalThis),o.add("web-feat:cache","caches"in globalThis),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-point-coverage",.1),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("mapview-transitions-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-enabled",!1),o.add("mapimagelayer-popup-identify-max-tolerance",20),o.add("heatmap-allow-raster-fallback",!0),o.add("heatmap-force-raster",!1),o("host-webworker")||o("host-browser")&&(o.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),o.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{o.add("esri-image-decode",!0,!0,!0)})).catch((()=>{o.add("esri-image-decode",!1,!0,!0)}))}return!1})),o.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},22974:(e,t,n)=>{"use strict";n.d(t,{Vo:()=>c,d9:()=>a,fS:()=>p,y7:()=>b,yd:()=>i});var r=n(67676),o=n(70586),s=n(1533);function i(e,t){let n;if(t)for(n in e)e.hasOwnProperty(n)&&(void 0===e[n]?delete e[n]:e[n]instanceof Object&&i(e[n],!0));else for(n in e)e.hasOwnProperty(n)&&void 0===e[n]&&delete e[n];return e}function a(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=h(e);if((0,o.pC)(t))return t;if(l(e))return e.clone();if(u(e))return e.map(a);if(f(e))return e.clone();const n={};for(const t of Object.getOwnPropertyNames(e))n[t]=a(e[t]);return n}function c(e){if(!e||"object"!=typeof e||"function"==typeof e||e instanceof HTMLElement)return e;const t=h(e);if((0,o.pC)(t))return t;if(u(e)){let t=!0;const n=e.map((e=>{const n=c(e);return null!=e&&null==n&&(t=!1),n}));return t?n:null}if(l(e))return e.clone();if(!f(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const n of Object.getOwnPropertyNames(e)){const r=e[n],o=c(r);if(null!=r&&null==o)return null;t[n]=o}return t}return null}function l(e){return"function"==typeof e.clone}function u(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){if((0,s.W0)(e)||(0,s.lq)(e)||(0,s.KZ)(e)||(0,s.z3)(e)||(0,s.Uc)(e)||(0,s.Hx)(e)||(0,s.ZY)(e)||(0,s.xZ)(e)||(0,s.fS)(e))return(0,s.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[n,r]of e)t.set(n,a(r));return t}if(e instanceof Set){const t=new Set;for(const n of e)t.add(a(n));return t}return null}function p(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}function b(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,r.fS)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e){const e=t.get(n);if(e!==r||void 0===e&&!t.has(n))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const n=Object.keys(e);if(null===t||Object.keys(t).length!==n.length)return!1;for(const r of n)if(e[r]!==t[r]||!Object.prototype.hasOwnProperty.call(t,r))return!1;return!0}(e,t))}},70586:(e,t,n)=>{"use strict";function r(e){return null!=e}function o(e){return null==e}function s(e,t){return r(e)?t(e):null}function i(e){return e}function a(e,t){return c(e,t),e}function c(e,t){if(o(e))throw new Error(t??"value is None")}function l(e,t){return r(e)?e:"function"==typeof t?t():t}function u(e,t){return r(e)?e:t}function f(e){return r(e)&&e.destroy(),null}function d(e){return r(e)&&e.dispose(),null}function h(e){return r(e)&&e.remove(),null}function p(e){return r(e)&&e.abort(),null}function b(e){return r(e)&&e.release(),null}function g(e,t,n){return r(e)&&r(t)?r(n)?n(e,t):e.equals(t):e===t}function m(e){return null}function y(e,t){const n=new Array;for(const r of e)n.push(v(r,null,t));return n}function w(e,t){for(const n of e)s(n,t)}function v(e,t,n){return r(e)?n(e):t}function _(e){return e.filter((e=>r(e)))}function O(e,...t){let n=e;for(let e=0;e<t.length&&n;++e)n=n[t[e]];return n}function k(e){return e}n.d(t,{Fd:()=>y,IM:()=>p,JR:()=>w,M2:()=>d,O3:()=>c,Pt:()=>l,R2:()=>v,RY:()=>b,SC:()=>f,U2:()=>O,Wg:()=>i,Wi:()=>o,_W:()=>g,hw:()=>h,j0:()=>k,lV:()=>_,pC:()=>r,s3:()=>a,wN:()=>m,yl:()=>u,yw:()=>s})},78286:(e,t,n)=>{"use strict";n.d(t,{RB:()=>i,RH:()=>o,hS:()=>s});var r=n(22974);function o(e,t,n=!1){return c(e,t,n)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,n){const r=e.split("."),o=r.pop(),s=a(r,!0,n);s&&o&&(s[o]=t)}function a(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function c(e,t,n){return t?Object.keys(t).reduce(((e,o)=>{let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,r.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),n?i.forEach((e=>{s.includes(e)||s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,n)=>{"use strict";n.d(t,{e4:()=>O,zE:()=>c,dD:()=>w,hh:()=>C,Ds:()=>P,as:()=>v,WW:()=>_,R8:()=>y,D_:()=>m,Hc:()=>f,y8:()=>k,fu:()=>p,$F:()=>b,r9:()=>d,k_:()=>l,H9:()=>h,Yn:()=>A,gx:()=>S,Hl:()=>g});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o;n(60235);var s=n(20102),i=n(91460),a=(n(92604),n(70586));function c(e="Aborted"){return new s.Z("AbortError",e)}function l(e,t="Aborted"){if(f(e))throw c(t)}function u(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function f(e){const t=u(e);return(0,a.pC)(t)&&t.aborted}function d(e){if(m(e))throw e}function h(e){if(!m(e))throw e}function p(e,t){const n=u(e);if(!(0,a.Wi)(n)){if(!n.aborted)return(0,i.IH)(n,"abort",(()=>t()));t()}}function b(e,t){const n=u(e);if(!(0,a.Wi)(n))return l(n),(0,i.IH)(n,"abort",(()=>t(c())))}function g(e,t){const n=u(t);return(0,a.Wi)(n)?e:new Promise(((n,r)=>{let o=p(t,(()=>r(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(n,r)}))}function m(e){return"AbortError"===e?.name}async function y(e){try{return await e}catch(e){if(!m(e))throw e;return}}function w(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),n=t.map((t=>e[t])),r=await v(n),o={};return t.map(((e,t)=>o[e]=r[t])),o}const t=e;return new Promise((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}async function _(e){return(await v(e)).filter((e=>!!e.value)).map((e=>e.value))}function O(e,t,n){const r=new AbortController;return p(n,(()=>r.abort())),new Promise(((n,o)=>{let s=setTimeout((()=>{s=0,n(t)}),e);p(r,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function k(e){return e&&"function"==typeof e.then}function S(e){return k(e)?e:Promise.resolve(e)}function P(e,t=-1){let n,r,o,s,i=null;const l=(...u)=>{if(n){r=u,s&&s.reject(c()),s=w();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||w(),s=null,t>0){const r=new AbortController;n=S(e(...u,r.signal));const o=n;O(t).then((()=>{n===o&&(s?r.abort():i=r)}))}else n=1,n=S(e(...u));const f=()=>{const e=r;r=o=n=i=null,null!=e&&l(...e)},d=n,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function C(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}async function A(e){await Promise.resolve(),l(e)}},19153:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>l,Qs:()=>a,gx:()=>i,hP:()=>c});var r=n(78286);const o=/\{([^\}]+)\}/g;function s(e){return e??""}function i(e,t){return e.replace(o,"object"==typeof t?(e,n)=>s((0,r.hS)(n,t)):(e,n)=>s(t(n)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,n)=>{"use strict";function r(e,t){if(e.forEach)e.forEach(t);else for(let n=0;n<e.length;n++)t(e[n],n,e)}function o(e,t,n){if(e.slice)return e.slice(t,n);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===n?n=e.length:(n<0&&(n+=e.length),n=Math.min(e.length,Math.max(0,n)));const r=Math.max(0,n-t),o=new(0,e.constructor)(r);for(let n=0;n<r;n++)o[n]=e[t+n];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}n.d(t,{Ed:()=>r,Hx:()=>f,KZ:()=>c,Uc:()=>u,W0:()=>i,ZY:()=>d,eP:()=>s,fS:()=>p,lq:()=>a,tP:()=>o,xZ:()=>h,z3:()=>l})},17452:(e,t,n)=>{"use strict";n.d(t,{$U:()=>re,AH:()=>V,B7:()=>A,D6:()=>L,Fv:()=>Z,HK:()=>K,Hu:()=>de,Ie:()=>ue,L:()=>k,Ml:()=>be,P$:()=>D,PF:()=>F,Qj:()=>le,R9:()=>y,TI:()=>O,YP:()=>H,Yd:()=>ae,ZN:()=>he,_l:()=>X,b7:()=>j,ed:()=>N,fZ:()=>ge,fl:()=>pe,hF:()=>q,hO:()=>oe,io:()=>ee,jc:()=>z,kl:()=>U,mN:()=>S,oC:()=>te,oh:()=>W,qg:()=>E,rS:()=>Q,sJ:()=>Y,tD:()=>$,tm:()=>I,u0:()=>P,v_:()=>B,vt:()=>ce});var r=n(68773),o=n(20102),s=n(92604),i=n(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=r.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(m)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const w={};let v=new y(r.Z.applicationUrl);let _=function(){const e=(0,i.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`}();const O=()=>v,k=()=>_;function S(e){if(!e)return null;const t={path:null,query:null},n=new y(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=P(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function P(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=n[r];"string"==typeof s&&(s=n[r]=[s]),Array.isArray(s)?s.push(o):n[r]=o}return n}function C(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function A(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",s=t&&t[n];return s?o+encodeURIComponent(s(r)):Array.isArray(r)?r.map((e=>C(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):C(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function j(e=!1){let t,n=c.proxyUrl;if("string"==typeof e){t=re(e);const r=N(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&se()&&(n=oe(n)),S(n)}function E(e){const t=N(e);let n,r;if(t){const e=T(t.proxyUrl);n=e.path,r=e.query?P(e.query):null}if(n){const t=S(e);e=n+"?"+t.path;const o=A({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const x={path:"",query:""};function T(e){const t=e.indexOf("?");return-1!==t?(x.path=e.slice(0,t),x.query=e.slice(t+1)):(x.path=e,x.query=null),x}function M(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=T(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:M(e.urlPrefix)},n=c.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function N(e){const t=c.proxyRules,n=M(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=R(e),t=R(t),ie(e)===ie(t)}function R(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function W(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=c.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function L(e,t,n=!1){if(!e||!t)return!1;const r=fe(e),o=fe(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function U(e){if("string"==typeof e){if(!H(e))return!0;e=fe(e)}if(L(e,v))return!0;const t=c.trustedServers||[];for(let n=0;n<t.length;n++){const r=J(t[n]);for(let t=0;t<r.length;t++)if(L(e,r[t]))return!0}return!1}function J(e){return w[e]||(ne(e)||te(e)?w[e]=[new y(q(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function q(e,t=_,n){return te(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===D(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:(0,i.j0)(B("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function F(e,t=_,n){if(null==e||!H(e))return e;const r=Z(e),o=r.toLowerCase(),s=Z(t).toLowerCase().replace(/\/+$/,""),i=n?Z(n).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=r.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function Z(e){return function(e){const t=c.httpsDomains;if(!function(e){return null!=e&&f.test(e)||"http"===v.scheme&&te(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),p.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&r===v.authority&&!b.test(e)||(se()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||se()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=T(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function B(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const n=[];if(H(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return null!=e&&h.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function D(e,t=!1){if(null==e||z(e)||K(e))return null;let n=e.indexOf("://");if(-1===n&&te(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ie(e,!0)),e}function H(e){return te(e)||ne(e)}function z(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return null!=e&&"data:"===e.slice(0,5)}function V(e){const t=Y(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function Q(e){return btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const G=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(G);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function X(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ee(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function te(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function re(e){return null!=e&&d.test(e)||"https"===v.scheme&&te(e)}function oe(e){return te(e)?`https:${e}`:e.replace(f,"https:")}function se(){return"https"===v.scheme}function ie(e,t=!1){return te(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ae(e){let t=0;if(H(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function ce(e,t){if(!e)return"";const n=S(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(!t?.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,n){if(!(t&&n&&e&&H(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),s=e.indexOf(":",r+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(r+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(i)}`}function fe(e){return"string"==typeof e?new y(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function de(e,t){const n=S(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function he(e,t,n){const r=S(e),o=r.query||{};return o[t]=String(n),`${r.path}?${A(o)}`}function pe(e,t){const n=S(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=A(r);return o?`${n.path}?${o}`:n.path}function be(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?t[2]:null}function ge(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}const me=/([^.]*)\.([^\/]*)$/},25045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(40330),o=n(20102),s=n(91460),i=n(70586),a=n(95330),c=n(94362),l=n(17202);const u={statsWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(3847),n.e(6841)]).then(n.bind(n,36841)),geometryEngineWorker:()=>Promise.all([n.e(5837),n.e(8227)]).then(n.bind(n,48227)),CSVSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(2370)]).then(n.bind(n,14478)),EdgeProcessingWorker:()=>Promise.all([n.e(6481),n.e(212),n.e(2062)]).then(n.bind(n,49594)),ElevationSamplerWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(4807),n.e(6481),n.e(6459),n.e(98)]).then(n.bind(n,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(4599),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(2508)]).then(n.bind(n,65967)),GeoJSONSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(30),n.e(7845)]).then(n.bind(n,97845)),LercWorker:()=>n.e(3027).then(n.bind(n,23027)),MemorySourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(30),n.e(639)]).then(n.bind(n,30639)),PBFDecoderWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(5886),n.e(1916)]).then(n.bind(n,61916)),Pipeline:()=>Promise.all([n.e(4547),n.e(8476),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(4599),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4325),n.e(7483)]).then(n.bind(n,37138)),PointCloudWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(9324)]).then(n.bind(n,90447)),RasterWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(8363),n.e(3645),n.e(4370)]).then(n.bind(n,61576)),SceneLayerSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(6481),n.e(212),n.e(3523)]).then(n.bind(n,65381)),SceneLayerWorker:()=>n.e(1412).then(n.bind(n,31412)),WFSSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(30),n.e(3230)]).then(n.bind(n,43230)),WorkerTileHandler:()=>Promise.all([n.e(4325),n.e(1785),n.e(6810),n.e(3388)]).then(n.bind(n,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t,n){this._port=e,this._getNextJob=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const r=new y(t.port1,{channel:t,client:n},(()=>null));return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=r),y.clients.set(r,n),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,n){const r=n&&n.signal,s=n&&n.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const l=(0,c.jt)();return new Promise(((n,o)=>{if((0,a.Hc)(r))return this._processWork(),void o((0,a.zE)());const c=(0,a.fu)(r,(()=>{const e=this._outJobs.get(l);e&&(this._outJobs.delete(l),this._processWork(),(0,i.hw)(e.abortHandle),this._post({type:d,jobId:l}),o((0,a.zE)()))})),u={resolve:n,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(l,u),this._post({type:h,jobId:l,methodName:e,abortable:null!=r},t,s)}))}on(e,t){const n=new MessageChannel;function r(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:n.port2},[n.port2]),n.port1.addEventListener("message",r),n.port1.start(),{remove(){n.port1.postMessage({type:c.Cs.CLOSE}),n.port1.close(),n.port1.removeEventListener("message",r)}}}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._getNextJob();if(!e)return;const{methodName:t,data:n,invokeOptions:r,deferred:o}=e;this.invoke(t,n,r).then((e=>o.resolve(e))).catch((e=>o.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,i.hw)(e.abortHandle),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);this._invokeQueue.push(e),r&&(r.controller&&r.controller.abort(),t.delete(n))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,r,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:n,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(n,{controller:s,promise:l}),l.then((e=>{i.has(n)&&(i.delete(n),this._post({type:p,jobId:n},e))}),(e=>{i.has(n)&&(i.delete(n),(0,a.D_)(e)||this._post({type:p,jobId:n,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:n},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client},(()=>null))}_onOnMessage(e){const{port:t}=e,n=this._client.on(e.eventType,(e=>{t.postMessage(e)})),r=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e)?.type===c.Cs.CLOSE&&(r.remove(),n.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:n,data:r}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.hw)(a.abortHandle),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(r)}_post(e,t,n){return(0,c.oi)(this._port,e,t,n)}}y.kernelInfo={revision:l.$,version:r.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,n)=>{"use strict";n.d(t,{AB:()=>a,Cs:()=>r,QM:()=>l,jt:()=>i,oi:()=>c});var r,o=n(80442);!function(e){e[e.HANDSHAKE=0]="HANDSHAKE",e[e.OPEN=1]="OPEN",e[e.OPENED=2]="OPENED",e[e.RESPONSE=3]="RESPONSE",e[e.INVOKE=4]="INVOKE",e[e.ABORT=5]="ABORT",e[e.CLOSE=6]="CLOSE",e[e.OPEN_PORT=7]="OPEN_PORT",e[e.ON=8]="ON"}(r||(r={}));let s=0;function i(){return s++}function a(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function c(e,t,n,s){if(t.type===r.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==r.INVOKE&&t.type!==r.RESPONSE)return void e.postMessage(t);let i;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(n)?(i=u(n.transferList),t.data=n.result):(i=u(s),t.data=n),i){if((0,o.Z)("ff"))for(const n of i)if("byteLength"in n&&n.byteLength>267386880){const n="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case r.INVOKE:throw n;case r.RESPONSE:return void c(e,{type:r.RESPONSE,jobId:t.jobId,error:a(n)})}}e.postMessage(t,i)}else e.postMessage(t)}function l(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e||!e.length)return null;if((0,o.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,n)=>{"use strict";n.d(t,{Dp:()=>l,Nv:()=>i,i8:()=>s,id:()=>a,qh:()=>c});var r=n(80442),o=n(17452);const s="4.25",i={async request(e,t){const{default:r}=await n.e(3172).then(n.bind(n,3172)),s=e.options,i=s.responseType;s.signal=t?.signal,s.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,o.oh)(e.url)?.after?i:"array-buffer";const a=await r(e.url,s),c={data:a.data,ssl:a.ssl};switch(a.requestOptions?.responseType){case"native-request-init":return delete c.data.signal,c;case"blob":c.data=await c.data.arrayBuffer();break;case"json":c.data=(new TextEncoder).encode(JSON.stringify(c.data)).buffer;break;case"text":c.data=(new TextEncoder).encode(c.data).buffer}return{result:c,transferList:[c.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,r.Z)("host-webworker")},17202:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,r:()=>r});const r="20221026",o="4772238ba5bd43580f178e04768d4027dfce1bc5"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.m=e,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"chunks/"+{9:"606f2dddcded4bee26be",30:"de83b062359c0459585f",81:"40874257b1ad3d0e8a5d",98:"b5e6a868256c5aae6d5e",212:"f436c86f86236ea7ea04",223:"c57586700901cf8cb397",247:"9d9e3a38c54c41f7764c",402:"5be314edd66cddf6c67c",565:"e967ffca641947212992",576:"7fdd029a76a7ab1c3d83",639:"f607bb297787cc5987f5",661:"bee19483591ff9994495",690:"ae08f7801caa2d1854f0",719:"ed118f6e28e15d651e9e",739:"3154f2bf565d3d3f6269",819:"d1ead6e8aa7e8e21fbc6",837:"5e8e393f05d4cad79adf",911:"8b8954f3db825b90fddf",1070:"2296ef6d8d67ec2be2c6",1074:"1dcdde67304e8fe11fc0",1293:"878121d485dde56dbe2c",1387:"0e340a2a6b8bb5055d6b",1400:"073fdfd01d940c7b1da1",1412:"4726c869d80257488a38",1421:"6196cfdeb91ceba52af3",1423:"b58badb11e610024ce4c",1433:"4d5bdf18feeb9c8cb6ff",1534:"933f9b62a3a20e768927",1545:"c2c288d42129354dc218",1562:"71bc42d18a9e5c356c2a",1612:"5a4ba7155dd858690bcf",1761:"c2a8813b618f98d0016d",1773:"a0d7a7b63cc76af0773b",1785:"ca92022f53080fda75fe",1916:"7e7c2e91a646edb32605",2062:"9d1faf9358df056be8e7",2133:"2f22105099a3ece58d1d",2134:"63ed004a15ccd6bb4491",2370:"f704ed07c514a0f436ec",2374:"ca329a33297b99b357ff",2508:"3f1c77c23dcc5a3ee0da",2592:"8435ae4fe5a5332b1076",2664:"3cbaa8de2817c2560288",2710:"07270f2c07d995f005cd",2855:"490b989ceb9239888af4",3027:"f5b4a8b2bad9b0899954",3172:"878bc2b24cc45418e819",3230:"7125c94ba8ef5efd63b0",3388:"cdbfce12153723d7c808",3492:"1596b8a7b9c6533684d3",3523:"3981b2ec84b79767f967",3529:"d041c0a126eca3c473e3",3645:"6bcd1c5c75bcaf387419",3668:"1734c8a19d221a0b5562",3743:"54e13f0048f54c75223e",3810:"0dccdffecb7b1a43f4f3",3847:"95ee476d101968ff4925",3852:"b71a0a8a2f446c671161",3929:"07e13ba31ea201f33b97",4028:"b6d9750b16bbf8ce5307",4046:"1b78307ec285ff7f80ee",4166:"5d5c43d44b690bc377ab",4202:"5582554081ba422d680e",4242:"5f46751fa500a9dfacf9",4268:"a39a51e8a8369f6489bb",4325:"d91140bc583925e4faf6",4358:"71a4618d959a09302c51",4370:"d573ec98401fbae26383",4436:"179e85051bc0e0ec789f",4475:"d0411fe75475c00bd04c",4499:"0551df1118be002289ad",4547:"b728e77d1fa4b8439b14",4588:"e196937fc3589e050009",4599:"a17d20ffaa47d430d98c",4695:"cfd83bad25be40fe14e9",4807:"cacdb5a9d31d0aaadbe3",4889:"16e9bd57f774944d0bf8",5004:"3bdbcf98c174a54299b3",5179:"342b91fd7b4de1e9efaf",5207:"12e5b4c6cffae6c3018b",5235:"cbd6b62943ba311de230",5329:"0e21e5b4d065567a6a91",5468:"6ec223bcd2c3bd40ffee",5546:"3ecedd43560f6a8a77e9",5587:"fee09699c63dff4c7ba2",5732:"469ba1b24cdeea0758ec",5837:"ed59ec7a8688437ebdbc",5853:"5de864843c0d3f4d291d",5886:"7e599e62d5c3e20474df",6015:"7c54c20993e3d33dd64d",6233:"4cb64ccb5fba126f9a66",6237:"794676ee030d605d7f47",6261:"64c503c9246e651af975",6418:"977c8be7c90833f888f3",6459:"fa3117bb2e11daac000e",6481:"2e3a4fc59789013185f4",6584:"4c0d7a074083aa9614bb",6636:"44675b4a2a68d69fe172",6710:"d828a0656e7351a74fc4",6748:"77cc27d60c79df45dbc2",6774:"c8402e32307a7b7eaaeb",6794:"c2c1489e005d59c39440",6810:"9bbcf17003f5650c4d96",6841:"31de71018575457155e5",6913:"30f167258a3a29a902b1",6925:"d7668e81467833a5a53d",7035:"deda5578ede020ea2d72",7062:"9d911ea24da940f09000",7126:"1475f89d86cfd422fd18",7202:"02485c243eba85358b53",7269:"aa7a0372edaa88774b36",7272:"16c2f1c2029989e66e5b",7275:"074516d441bc117397e4",7277:"8ba83fee56dd4f306d87",7374:"c1f3355cbd99b6e85192",7476:"9d9f4865a4cd8f1cbe22",7483:"67f770ea4b90b276b59d",7541:"03c82baa5155a195fa06",7572:"16a6b4d8c4928c97ef56",7698:"aa3909ffe65b42c61b52",7827:"7edbf88eff358d84fc7e",7845:"aaf6a9d2c66f2edd3a50",7873:"4c989506b46bfec9c5ed",8092:"236cc6c02c45051e8ea9",8096:"22a990a8d4d4587866a5",8227:"ee04b1c0c42cb1b18b24",8244:"a6f34e6f2fe1ec242db6",8325:"85690fabbfe60681f5e7",8363:"f3f8c9179accde36f6a8",8383:"8027f05ed76342ec908b",8476:"99ad446f35d891e8e207",8636:"f54fcb9359c1da702231",8694:"2d70499eacbd1d2a33a7",8758:"803492088780e18de801",8794:"d122771bf30317ff64c8",8828:"2eb2d49c549e53934b8b",8833:"353c4a51be72c4a77e1f",8882:"2ebba71cbbfa62ddf46a",8899:"6391c40a3da1cd7e64f5",9070:"038dc3f9ef06ef3c960c",9169:"76b75ac18c8239687321",9238:"086693ed00e858dc9ebd",9243:"47f88f15bae6918d46af",9268:"ed6860ab02d0c848ada5",9291:"179efcf889111d2576c5",9296:"fdf1551b17369fc24905",9300:"f96674f2083018ceadf2",9324:"6dfb2ddfd72009564a34",9356:"752b8c8a5a8687bc2d91",9513:"f7e91552b8f643a4d81a",9777:"464e695ffd36d598617b",9880:"1b5bdd80db9a1a410ff8",9884:"356db8b8297282c77291",9903:"423ea34526a14fc39171",9904:"3376fbcbd92261d45169",9956:"c7de993c0a85594a1969"}[e]+".js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={134:1};n.f.i=(t,r)=>{e[t]||importScripts(n.p+n.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],r=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)n.o(s,a)&&(n.m[a]=s[a]);for(i&&i(n);o.length;)e[o.pop()]=1;r(t)}})(),n(88277);var r=n(25045);RemoteClient=r})();
1
+ var RemoteClient;(()=>{var e={88277:(e,t,n)=>{n.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(80442);var r=n(78286),o=n(17202);const s={analysisTheme:{accentColor:[255,128,0],textColor:"white"},apiKey:void 0,applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,r.RH)(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.25.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${o.r}/assets`}s.defaultAssetsPath=s.assetsPath}},20102:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(22974),o=n(92604),s=n(58896);class i extends s.Z{constructor(e,t,n){if(super(e,t,n),!(this instanceof i))return new i(e,t,n)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,r.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(68773),o=(n(80442),n(70586)),s=n(19153);const i={info:0,warn:1,error:2,none:3};class a{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...n){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const r=this._argsToKey(n),o=this._loggedMessages[e].get(r);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(r,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of r.Z.log.interceptors)if(t(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,t){let n=this;for(;(0,o.pC)(n);){const t=n[e];if((0,o.pC)(t))return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...n){console[e](`[${t}]`,...n)}_matchLevel(e){const t=r.Z.log.level?r.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78286);class o{constructor(e,t,n){this.name=e,this.details=n,this instanceof o&&(this.message=(t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,n)=>{if(""===n)return"$";const o=(0,r.hS)(n,t)??"";if(void 0===o)throw new Error(`could not find key "${n}" in template`);return o.toString()}))}(t,n))??"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*r._m}getInt(){return this._seed=(r._a*this._seed+r._c)%r._m,this._seed}getFloat(){return this.getInt()/(r._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const n=t-e;return e+this.getInt()/r._m*n}}r._m=2147483647,r._a=48271,r._c=0},67676:(e,t,n)=>{"use strict";n.d(t,{FY:()=>m,Od:()=>y,SO:()=>d,Vx:()=>i,a9:()=>u,cq:()=>p,e$:()=>b,e5:()=>a,fS:()=>s,w6:()=>f,zG:()=>c});var r=n(70586),o=n(77734);function s(e,t,n){if((0,r.Wi)(e)&&(0,r.Wi)(t))return!0;if((0,r.Wi)(e)||(0,r.Wi)(t)||e.length!==t.length)return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function i(e,t){let n=e.length!==t.length;n&&(e.length=t.length);for(let r=0;r<t.length;++r)e[r]!==t[r]&&(e[r]=t[r],n=!0);return n}function a(e,t,n){let r,o;return n?(r=t.filter((t=>!e.some((e=>n(e,t))))),o=e.filter((e=>!t.some((t=>n(t,e)))))):(r=t.filter((t=>!e.includes(t))),o=e.filter((e=>!t.includes(e)))),{added:r,removed:o}}function c(e){return e&&"number"==typeof e.length}const l=!!Array.prototype.fill;function u(e,t){if(l)return new Array(e).fill(t);const n=new Array(e);for(let r=0;r<e;r++)n[r]=t;return n}function f(e,t){void 0===t&&(t=e,e=0);const n=new Array(t-e);for(let r=e;r<t;r++)n[r-e]=r;return n}class d{constructor(){this.last=0}}const h=new d;function p(e,t,n,r){r=r||h;const o=Math.max(0,r.last-10);for(let s=o;s<n;++s)if(e[s]===t)return r.last=s,s;const s=Math.min(o,n);for(let n=0;n<s;++n)if(e[n]===t)return r.last=n,n;return-1}function b(e,t,n,r){const o=n??e.length,s=p(e,t,o,r);if(-1!==s)return e[s]=e[o-1],null==n&&e.pop(),t}const g=new Set;function m(e,t,n=e.length,r=t.length,o,s){if(0===r||0===n)return n;g.clear();for(let e=0;e<r;++e)g.add(t[e]);o=o||h;const i=Math.max(0,o.last-10);for(let t=i;t<n;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;for(let t=0;t<i;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;return g.clear(),n}function y(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}new o.Z},60235:(e,t,n)=>{"use strict";n.d(t,{Mr:()=>i,x9:()=>a});var r=n(80442);const o=new Set;function s(e,t,n=!1){n&&o.has(t)||(n&&o.add(t),e.warn(`🛑 DEPRECATED - ${t}`))}function i(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{moduleName:r}=n;a(e,"Property: "+(r?r+"::":"")+t,n)}}function a(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{replacement:r,version:o,see:i,warnOnce:a}=n;let c=t;r&&(c+=`\n\t🛠️ Replacement: ${r}`),o&&(c+=`\n\t⚙️ Version: ${o}`),i&&(c+=`\n\t🔗 See ${i} for more details.`),s(e,c,a)}}},91460:(e,t,n)=>{"use strict";function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function s(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const s=o(e,t,(t=>{s.remove(),n.call(e,t)}));return{remove(){s.remove()}}}n.d(t,{IH:()=>s,on:()=>o,vT:()=>r})},80442:(e,t,n)=>{"use strict";let r;function o(e){return"function"==typeof r[e]?r[e]=r[e](globalThis):r[e]}n.d(t,{Z:()=>o}),r=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,n,s)=>((s||void 0===r[e])&&(r[e]=t),n&&o(e)),o.cache=r,o.add("esri-deprecation-warnings",!0),(()=>{o.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,n=e.appVersion,r=parseFloat(n);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",n.includes("Konqueror")?r:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!n.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(n.split("Version/")[1])),o.add("mac",n.includes("Macintosh")),!o("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),n=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",r=parseFloat(n.replace(/_/,".").replace(/_/g,""));o.add(e,r),o.add("ios",r)}o.add("trident",parseFloat(n.split("Trident/")[1])||void 0),o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("trident")||o("edge")||o.add("mozilla",r),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),n=/iPhone/i.test(e);t&&o.add("esri-mobile",t),n&&o.add("esri-iPhone",n),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-canvas-svg-support",!o("trident")),o.add("esri-wasm","WebAssembly"in globalThis),o.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),o.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),o.add("esri-atomics","Atomics"in globalThis),o.add("esri-workers","Worker"in globalThis),o.add("web-feat:cache","caches"in globalThis),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-point-coverage",.1),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("mapview-transitions-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-enabled",!1),o.add("mapimagelayer-popup-identify-max-tolerance",20),o.add("heatmap-allow-raster-fallback",!0),o.add("heatmap-force-raster",!1),o("host-webworker")||o("host-browser")&&(o.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),o.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{o.add("esri-image-decode",!0,!0,!0)})).catch((()=>{o.add("esri-image-decode",!1,!0,!0)}))}return!1})),o.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},22974:(e,t,n)=>{"use strict";n.d(t,{Vo:()=>c,d9:()=>a,fS:()=>p,y7:()=>b,yd:()=>i});var r=n(67676),o=n(70586),s=n(1533);function i(e,t){let n;if(t)for(n in e)e.hasOwnProperty(n)&&(void 0===e[n]?delete e[n]:e[n]instanceof Object&&i(e[n],!0));else for(n in e)e.hasOwnProperty(n)&&void 0===e[n]&&delete e[n];return e}function a(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=h(e);if((0,o.pC)(t))return t;if(l(e))return e.clone();if(u(e))return e.map(a);if(f(e))return e.clone();const n={};for(const t of Object.getOwnPropertyNames(e))n[t]=a(e[t]);return n}function c(e){if(!e||"object"!=typeof e||"function"==typeof e||e instanceof HTMLElement)return e;const t=h(e);if((0,o.pC)(t))return t;if(u(e)){let t=!0;const n=e.map((e=>{const n=c(e);return null!=e&&null==n&&(t=!1),n}));return t?n:null}if(l(e))return e.clone();if(!f(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const n of Object.getOwnPropertyNames(e)){const r=e[n],o=c(r);if(null!=r&&null==o)return null;t[n]=o}return t}return null}function l(e){return"function"==typeof e.clone}function u(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){if((0,s.W0)(e)||(0,s.lq)(e)||(0,s.KZ)(e)||(0,s.z3)(e)||(0,s.Uc)(e)||(0,s.Hx)(e)||(0,s.ZY)(e)||(0,s.xZ)(e)||(0,s.fS)(e))return(0,s.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[n,r]of e)t.set(n,a(r));return t}if(e instanceof Set){const t=new Set;for(const n of e)t.add(a(n));return t}return null}function p(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}function b(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,r.fS)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e){const e=t.get(n);if(e!==r||void 0===e&&!t.has(n))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const n=Object.keys(e);if(null===t||Object.keys(t).length!==n.length)return!1;for(const r of n)if(e[r]!==t[r]||!Object.prototype.hasOwnProperty.call(t,r))return!1;return!0}(e,t))}},70586:(e,t,n)=>{"use strict";function r(e){return null!=e}function o(e){return null==e}function s(e,t){return r(e)?t(e):null}function i(e){return e}function a(e,t){return c(e,t),e}function c(e,t){if(o(e))throw new Error(t??"value is None")}function l(e,t){return r(e)?e:"function"==typeof t?t():t}function u(e,t){return r(e)?e:t}function f(e){return r(e)&&e.destroy(),null}function d(e){return r(e)&&e.dispose(),null}function h(e){return r(e)&&e.remove(),null}function p(e){return r(e)&&e.abort(),null}function b(e){return r(e)&&e.release(),null}function g(e,t,n){return r(e)&&r(t)?r(n)?n(e,t):e.equals(t):e===t}function m(e){return null}function y(e,t){const n=new Array;for(const r of e)n.push(v(r,null,t));return n}function w(e,t){for(const n of e)s(n,t)}function v(e,t,n){return r(e)?n(e):t}function _(e){return e.filter((e=>r(e)))}function O(e,...t){let n=e;for(let e=0;e<t.length&&n;++e)n=n[t[e]];return n}function k(e){return e}n.d(t,{Fd:()=>y,IM:()=>p,JR:()=>w,M2:()=>d,O3:()=>c,Pt:()=>l,R2:()=>v,RY:()=>b,SC:()=>f,U2:()=>O,Wg:()=>i,Wi:()=>o,_W:()=>g,hw:()=>h,j0:()=>k,lV:()=>_,pC:()=>r,s3:()=>a,wN:()=>m,yl:()=>u,yw:()=>s})},78286:(e,t,n)=>{"use strict";n.d(t,{RB:()=>i,RH:()=>o,hS:()=>s});var r=n(22974);function o(e,t,n=!1){return c(e,t,n)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,n){const r=e.split("."),o=r.pop(),s=a(r,!0,n);s&&o&&(s[o]=t)}function a(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function c(e,t,n){return t?Object.keys(t).reduce(((e,o)=>{let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,r.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),n?i.forEach((e=>{s.includes(e)||s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,n)=>{"use strict";n.d(t,{e4:()=>O,zE:()=>c,dD:()=>w,hh:()=>C,Ds:()=>P,as:()=>v,WW:()=>_,R8:()=>y,D_:()=>m,Hc:()=>f,y8:()=>k,fu:()=>p,$F:()=>b,r9:()=>d,k_:()=>l,H9:()=>h,Yn:()=>A,gx:()=>S,Hl:()=>g});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o;n(60235);var s=n(20102),i=n(91460),a=(n(92604),n(70586));function c(e="Aborted"){return new s.Z("AbortError",e)}function l(e,t="Aborted"){if(f(e))throw c(t)}function u(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function f(e){const t=u(e);return(0,a.pC)(t)&&t.aborted}function d(e){if(m(e))throw e}function h(e){if(!m(e))throw e}function p(e,t){const n=u(e);if(!(0,a.Wi)(n)){if(!n.aborted)return(0,i.IH)(n,"abort",(()=>t()));t()}}function b(e,t){const n=u(e);if(!(0,a.Wi)(n))return l(n),(0,i.IH)(n,"abort",(()=>t(c())))}function g(e,t){const n=u(t);return(0,a.Wi)(n)?e:new Promise(((n,r)=>{let o=p(t,(()=>r(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(n,r)}))}function m(e){return"AbortError"===e?.name}async function y(e){try{return await e}catch(e){if(!m(e))throw e;return}}function w(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),n=t.map((t=>e[t])),r=await v(n),o={};return t.map(((e,t)=>o[e]=r[t])),o}const t=e;return new Promise((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}async function _(e){return(await v(e)).filter((e=>!!e.value)).map((e=>e.value))}function O(e,t,n){const r=new AbortController;return p(n,(()=>r.abort())),new Promise(((n,o)=>{let s=setTimeout((()=>{s=0,n(t)}),e);p(r,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function k(e){return e&&"function"==typeof e.then}function S(e){return k(e)?e:Promise.resolve(e)}function P(e,t=-1){let n,r,o,s,i=null;const l=(...u)=>{if(n){r=u,s&&s.reject(c()),s=w();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||w(),s=null,t>0){const r=new AbortController;n=S(e(...u,r.signal));const o=n;O(t).then((()=>{n===o&&(s?r.abort():i=r)}))}else n=1,n=S(e(...u));const f=()=>{const e=r;r=o=n=i=null,null!=e&&l(...e)},d=n,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function C(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}async function A(e){await Promise.resolve(),l(e)}},19153:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>l,Qs:()=>a,gx:()=>i,hP:()=>c});var r=n(78286);const o=/\{([^\}]+)\}/g;function s(e){return e??""}function i(e,t){return e.replace(o,"object"==typeof t?(e,n)=>s((0,r.hS)(n,t)):(e,n)=>s(t(n)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,n)=>{"use strict";function r(e,t){if(e.forEach)e.forEach(t);else for(let n=0;n<e.length;n++)t(e[n],n,e)}function o(e,t,n){if(e.slice)return e.slice(t,n);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===n?n=e.length:(n<0&&(n+=e.length),n=Math.min(e.length,Math.max(0,n)));const r=Math.max(0,n-t),o=new(0,e.constructor)(r);for(let n=0;n<r;n++)o[n]=e[t+n];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}n.d(t,{Ed:()=>r,Hx:()=>f,KZ:()=>c,Uc:()=>u,W0:()=>i,ZY:()=>d,eP:()=>s,fS:()=>p,lq:()=>a,tP:()=>o,xZ:()=>h,z3:()=>l})},17452:(e,t,n)=>{"use strict";n.d(t,{$U:()=>re,AH:()=>V,B7:()=>A,D6:()=>L,Fv:()=>Z,HK:()=>K,Hu:()=>de,Ie:()=>ue,L:()=>k,Ml:()=>be,P$:()=>D,PF:()=>F,Qj:()=>le,R9:()=>y,TI:()=>O,YP:()=>H,Yd:()=>ae,ZN:()=>he,_l:()=>X,b7:()=>j,ed:()=>N,fZ:()=>ge,fl:()=>pe,hF:()=>q,hO:()=>oe,io:()=>ee,jc:()=>z,kl:()=>U,mN:()=>S,oC:()=>te,oh:()=>W,qg:()=>E,rS:()=>Q,sJ:()=>Y,tD:()=>$,tm:()=>I,u0:()=>P,v_:()=>B,vt:()=>ce});var r=n(68773),o=n(20102),s=n(92604),i=n(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=r.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(m)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const w={};let v=new y(r.Z.applicationUrl);let _=function(){const e=(0,i.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`}();const O=()=>v,k=()=>_;function S(e){if(!e)return null;const t={path:null,query:null},n=new y(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=P(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function P(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=n[r];"string"==typeof s&&(s=n[r]=[s]),Array.isArray(s)?s.push(o):n[r]=o}return n}function C(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function A(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",s=t&&t[n];return s?o+encodeURIComponent(s(r)):Array.isArray(r)?r.map((e=>C(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):C(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function j(e=!1){let t,n=c.proxyUrl;if("string"==typeof e){t=re(e);const r=N(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&se()&&(n=oe(n)),S(n)}function E(e){const t=N(e);let n,r;if(t){const e=T(t.proxyUrl);n=e.path,r=e.query?P(e.query):null}if(n){const t=S(e);e=n+"?"+t.path;const o=A({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const x={path:"",query:""};function T(e){const t=e.indexOf("?");return-1!==t?(x.path=e.slice(0,t),x.query=e.slice(t+1)):(x.path=e,x.query=null),x}function M(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=T(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:M(e.urlPrefix)},n=c.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function N(e){const t=c.proxyRules,n=M(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=R(e),t=R(t),ie(e)===ie(t)}function R(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function W(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=c.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function L(e,t,n=!1){if(!e||!t)return!1;const r=fe(e),o=fe(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function U(e){if("string"==typeof e){if(!H(e))return!0;e=fe(e)}if(L(e,v))return!0;const t=c.trustedServers||[];for(let n=0;n<t.length;n++){const r=J(t[n]);for(let t=0;t<r.length;t++)if(L(e,r[t]))return!0}return!1}function J(e){return w[e]||(ne(e)||te(e)?w[e]=[new y(q(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function q(e,t=_,n){return te(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===D(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:(0,i.j0)(B("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function F(e,t=_,n){if(null==e||!H(e))return e;const r=Z(e),o=r.toLowerCase(),s=Z(t).toLowerCase().replace(/\/+$/,""),i=n?Z(n).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=r.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function Z(e){return function(e){const t=c.httpsDomains;if(!function(e){return null!=e&&f.test(e)||"http"===v.scheme&&te(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),p.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&r===v.authority&&!b.test(e)||(se()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||se()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=T(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function B(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const n=[];if(H(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return null!=e&&h.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function D(e,t=!1){if(null==e||z(e)||K(e))return null;let n=e.indexOf("://");if(-1===n&&te(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ie(e,!0)),e}function H(e){return te(e)||ne(e)}function z(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return null!=e&&"data:"===e.slice(0,5)}function V(e){const t=Y(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function Q(e){return btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const G=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(G);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function X(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ee(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function te(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function re(e){return null!=e&&d.test(e)||"https"===v.scheme&&te(e)}function oe(e){return te(e)?`https:${e}`:e.replace(f,"https:")}function se(){return"https"===v.scheme}function ie(e,t=!1){return te(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ae(e){let t=0;if(H(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function ce(e,t){if(!e)return"";const n=S(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(!t?.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,n){if(!(t&&n&&e&&H(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),s=e.indexOf(":",r+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(r+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(i)}`}function fe(e){return"string"==typeof e?new y(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function de(e,t){const n=S(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function he(e,t,n){const r=S(e),o=r.query||{};return o[t]=String(n),`${r.path}?${A(o)}`}function pe(e,t){const n=S(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=A(r);return o?`${n.path}?${o}`:n.path}function be(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?t[2]:null}function ge(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}const me=/([^.]*)\.([^\/]*)$/},25045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(40330),o=n(20102),s=n(91460),i=n(70586),a=n(95330),c=n(94362),l=n(17202);const u={statsWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(3847),n.e(6841)]).then(n.bind(n,36841)),geometryEngineWorker:()=>Promise.all([n.e(5837),n.e(8227)]).then(n.bind(n,48227)),CSVSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(2370)]).then(n.bind(n,14478)),EdgeProcessingWorker:()=>Promise.all([n.e(6481),n.e(212),n.e(2062)]).then(n.bind(n,49594)),ElevationSamplerWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(4807),n.e(6481),n.e(6459),n.e(98)]).then(n.bind(n,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(4599),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(2508)]).then(n.bind(n,65967)),GeoJSONSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(30),n.e(7845)]).then(n.bind(n,97845)),LercWorker:()=>n.e(3027).then(n.bind(n,23027)),MemorySourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(30),n.e(639)]).then(n.bind(n,30639)),PBFDecoderWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(5886),n.e(1916)]).then(n.bind(n,61916)),Pipeline:()=>Promise.all([n.e(4547),n.e(8476),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(4599),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4325),n.e(7483)]).then(n.bind(n,37138)),PointCloudWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(9324)]).then(n.bind(n,90447)),RasterWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(8363),n.e(3645),n.e(4370)]).then(n.bind(n,61576)),SceneLayerSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(6481),n.e(212),n.e(1391)]).then(n.bind(n,73248)),SceneLayerWorker:()=>n.e(1412).then(n.bind(n,31412)),WFSSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(30),n.e(3230)]).then(n.bind(n,43230)),WorkerTileHandler:()=>Promise.all([n.e(4325),n.e(1785),n.e(6810),n.e(3388)]).then(n.bind(n,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t,n){this._port=e,this._getNextJob=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const r=new y(t.port1,{channel:t,client:n},(()=>null));return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=r),y.clients.set(r,n),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,n){const r=n&&n.signal,s=n&&n.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const l=(0,c.jt)();return new Promise(((n,o)=>{if((0,a.Hc)(r))return this._processWork(),void o((0,a.zE)());const c=(0,a.fu)(r,(()=>{const e=this._outJobs.get(l);e&&(this._outJobs.delete(l),this._processWork(),(0,i.hw)(e.abortHandle),this._post({type:d,jobId:l}),o((0,a.zE)()))})),u={resolve:n,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(l,u),this._post({type:h,jobId:l,methodName:e,abortable:null!=r},t,s)}))}on(e,t){const n=new MessageChannel;function r(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:n.port2},[n.port2]),n.port1.addEventListener("message",r),n.port1.start(),{remove(){n.port1.postMessage({type:c.Cs.CLOSE}),n.port1.close(),n.port1.removeEventListener("message",r)}}}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._getNextJob();if(!e)return;const{methodName:t,data:n,invokeOptions:r,deferred:o}=e;this.invoke(t,n,r).then((e=>o.resolve(e))).catch((e=>o.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,i.hw)(e.abortHandle),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);this._invokeQueue.push(e),r&&(r.controller&&r.controller.abort(),t.delete(n))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,r,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:n,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(n,{controller:s,promise:l}),l.then((e=>{i.has(n)&&(i.delete(n),this._post({type:p,jobId:n},e))}),(e=>{i.has(n)&&(i.delete(n),(0,a.D_)(e)||this._post({type:p,jobId:n,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:n},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client},(()=>null))}_onOnMessage(e){const{port:t}=e,n=this._client.on(e.eventType,(e=>{t.postMessage(e)})),r=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e)?.type===c.Cs.CLOSE&&(r.remove(),n.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:n,data:r}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.hw)(a.abortHandle),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(r)}_post(e,t,n){return(0,c.oi)(this._port,e,t,n)}}y.kernelInfo={revision:l.$,version:r.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,n)=>{"use strict";n.d(t,{AB:()=>a,Cs:()=>r,QM:()=>l,jt:()=>i,oi:()=>c});var r,o=n(80442);!function(e){e[e.HANDSHAKE=0]="HANDSHAKE",e[e.OPEN=1]="OPEN",e[e.OPENED=2]="OPENED",e[e.RESPONSE=3]="RESPONSE",e[e.INVOKE=4]="INVOKE",e[e.ABORT=5]="ABORT",e[e.CLOSE=6]="CLOSE",e[e.OPEN_PORT=7]="OPEN_PORT",e[e.ON=8]="ON"}(r||(r={}));let s=0;function i(){return s++}function a(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function c(e,t,n,s){if(t.type===r.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==r.INVOKE&&t.type!==r.RESPONSE)return void e.postMessage(t);let i;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(n)?(i=u(n.transferList),t.data=n.result):(i=u(s),t.data=n),i){if((0,o.Z)("ff"))for(const n of i)if("byteLength"in n&&n.byteLength>267386880){const n="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case r.INVOKE:throw n;case r.RESPONSE:return void c(e,{type:r.RESPONSE,jobId:t.jobId,error:a(n)})}}e.postMessage(t,i)}else e.postMessage(t)}function l(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e||!e.length)return null;if((0,o.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,n)=>{"use strict";n.d(t,{Dp:()=>l,Nv:()=>i,i8:()=>s,id:()=>a,qh:()=>c});var r=n(80442),o=n(17452);const s="4.25",i={async request(e,t){const{default:r}=await n.e(3172).then(n.bind(n,3172)),s=e.options,i=s.responseType;s.signal=t?.signal,s.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,o.oh)(e.url)?.after?i:"array-buffer";const a=await r(e.url,s),c={data:a.data,ssl:a.ssl};switch(a.requestOptions?.responseType){case"native-request-init":return delete c.data.signal,c;case"blob":c.data=await c.data.arrayBuffer();break;case"json":c.data=(new TextEncoder).encode(JSON.stringify(c.data)).buffer;break;case"text":c.data=(new TextEncoder).encode(c.data).buffer}return{result:c,transferList:[c.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,r.Z)("host-webworker")},17202:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,r:()=>r});const r="20221027",o="f5a0e5430ffd6f0e1c0c34c8b745dafce68aac0a"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.m=e,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"chunks/"+{9:"606f2dddcded4bee26be",30:"de83b062359c0459585f",81:"40874257b1ad3d0e8a5d",98:"b5e6a868256c5aae6d5e",212:"f436c86f86236ea7ea04",223:"c57586700901cf8cb397",247:"9d9e3a38c54c41f7764c",402:"5be314edd66cddf6c67c",565:"e967ffca641947212992",576:"7fdd029a76a7ab1c3d83",639:"f607bb297787cc5987f5",661:"bee19483591ff9994495",690:"ae08f7801caa2d1854f0",719:"ed118f6e28e15d651e9e",739:"3154f2bf565d3d3f6269",819:"d1ead6e8aa7e8e21fbc6",837:"5e8e393f05d4cad79adf",911:"8b8954f3db825b90fddf",1070:"2296ef6d8d67ec2be2c6",1074:"1dcdde67304e8fe11fc0",1293:"878121d485dde56dbe2c",1387:"0e340a2a6b8bb5055d6b",1391:"0407b64ba238bbe78f31",1400:"073fdfd01d940c7b1da1",1412:"4726c869d80257488a38",1421:"6196cfdeb91ceba52af3",1423:"b58badb11e610024ce4c",1433:"4d5bdf18feeb9c8cb6ff",1534:"933f9b62a3a20e768927",1545:"c2c288d42129354dc218",1562:"71bc42d18a9e5c356c2a",1612:"5a4ba7155dd858690bcf",1761:"c2a8813b618f98d0016d",1773:"a0d7a7b63cc76af0773b",1785:"ca92022f53080fda75fe",1916:"7e7c2e91a646edb32605",2062:"9d1faf9358df056be8e7",2133:"2f22105099a3ece58d1d",2134:"63ed004a15ccd6bb4491",2370:"f704ed07c514a0f436ec",2374:"337aa6e34a02b4b41abf",2508:"3f1c77c23dcc5a3ee0da",2592:"8435ae4fe5a5332b1076",2664:"3cbaa8de2817c2560288",2710:"07270f2c07d995f005cd",2855:"490b989ceb9239888af4",3027:"f5b4a8b2bad9b0899954",3172:"878bc2b24cc45418e819",3230:"7125c94ba8ef5efd63b0",3388:"cdbfce12153723d7c808",3492:"1596b8a7b9c6533684d3",3529:"d041c0a126eca3c473e3",3645:"a4b430aa765a8c78e3f6",3668:"1734c8a19d221a0b5562",3743:"54e13f0048f54c75223e",3810:"0dccdffecb7b1a43f4f3",3847:"95ee476d101968ff4925",3852:"b71a0a8a2f446c671161",3929:"07e13ba31ea201f33b97",4028:"b6d9750b16bbf8ce5307",4046:"1b78307ec285ff7f80ee",4166:"5d5c43d44b690bc377ab",4202:"5582554081ba422d680e",4242:"5f46751fa500a9dfacf9",4268:"a39a51e8a8369f6489bb",4325:"d91140bc583925e4faf6",4358:"71a4618d959a09302c51",4370:"d573ec98401fbae26383",4436:"179e85051bc0e0ec789f",4475:"d0411fe75475c00bd04c",4499:"0551df1118be002289ad",4547:"b728e77d1fa4b8439b14",4588:"e196937fc3589e050009",4599:"a17d20ffaa47d430d98c",4695:"cfd83bad25be40fe14e9",4807:"cacdb5a9d31d0aaadbe3",4889:"16e9bd57f774944d0bf8",5004:"3bdbcf98c174a54299b3",5179:"342b91fd7b4de1e9efaf",5207:"12e5b4c6cffae6c3018b",5235:"cbd6b62943ba311de230",5329:"0e21e5b4d065567a6a91",5468:"6ec223bcd2c3bd40ffee",5546:"d8e953362eeaa1391ad7",5587:"fee09699c63dff4c7ba2",5732:"469ba1b24cdeea0758ec",5837:"ed59ec7a8688437ebdbc",5853:"5de864843c0d3f4d291d",5886:"7e599e62d5c3e20474df",6015:"7c54c20993e3d33dd64d",6233:"4cb64ccb5fba126f9a66",6237:"794676ee030d605d7f47",6261:"64c503c9246e651af975",6418:"977c8be7c90833f888f3",6459:"fa3117bb2e11daac000e",6481:"2e3a4fc59789013185f4",6584:"4c0d7a074083aa9614bb",6636:"44675b4a2a68d69fe172",6710:"d828a0656e7351a74fc4",6748:"77cc27d60c79df45dbc2",6774:"c8402e32307a7b7eaaeb",6794:"c2c1489e005d59c39440",6810:"9bbcf17003f5650c4d96",6841:"31de71018575457155e5",6913:"30f167258a3a29a902b1",6925:"d7668e81467833a5a53d",7035:"deda5578ede020ea2d72",7062:"9d911ea24da940f09000",7126:"1475f89d86cfd422fd18",7202:"02485c243eba85358b53",7269:"aa7a0372edaa88774b36",7272:"16c2f1c2029989e66e5b",7275:"074516d441bc117397e4",7277:"8ba83fee56dd4f306d87",7374:"c1f3355cbd99b6e85192",7476:"da4d5d9555a7a9ae2622",7483:"67f770ea4b90b276b59d",7541:"03c82baa5155a195fa06",7572:"bf28a9adb9d86d6a14ad",7698:"aa3909ffe65b42c61b52",7827:"7edbf88eff358d84fc7e",7845:"aaf6a9d2c66f2edd3a50",7873:"4c989506b46bfec9c5ed",8092:"236cc6c02c45051e8ea9",8096:"22a990a8d4d4587866a5",8227:"ee04b1c0c42cb1b18b24",8244:"a6f34e6f2fe1ec242db6",8325:"85690fabbfe60681f5e7",8363:"f3f8c9179accde36f6a8",8383:"8027f05ed76342ec908b",8476:"99ad446f35d891e8e207",8636:"f54fcb9359c1da702231",8694:"2d70499eacbd1d2a33a7",8758:"803492088780e18de801",8794:"d122771bf30317ff64c8",8828:"2eb2d49c549e53934b8b",8833:"353c4a51be72c4a77e1f",8882:"2ebba71cbbfa62ddf46a",8899:"6391c40a3da1cd7e64f5",9070:"038dc3f9ef06ef3c960c",9169:"76b75ac18c8239687321",9238:"086693ed00e858dc9ebd",9243:"47f88f15bae6918d46af",9268:"ed6860ab02d0c848ada5",9291:"179efcf889111d2576c5",9296:"fdf1551b17369fc24905",9300:"f96674f2083018ceadf2",9324:"6dfb2ddfd72009564a34",9356:"752b8c8a5a8687bc2d91",9513:"f7e91552b8f643a4d81a",9777:"464e695ffd36d598617b",9880:"1b5bdd80db9a1a410ff8",9884:"356db8b8297282c77291",9903:"423ea34526a14fc39171",9904:"3376fbcbd92261d45169",9956:"c7de993c0a85594a1969"}[e]+".js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={134:1};n.f.i=(t,r)=>{e[t]||importScripts(n.p+n.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],r=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)n.o(s,a)&&(n.m[a]=s[a]);for(i&&i(n);o.length;)e[o.pop()]=1;r(t)}})(),n(88277);var r=n(25045);RemoteClient=r})();
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3523,5732,661],{5732:(t,e,n)=>{n.d(e,{a:()=>i,c:()=>s,g:()=>r});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function i(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},46521:(t,e,n)=>{function s(){return[1,0,0,0,1,0,0,0,1]}function r(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,create:s,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},fromValues:function(t,e,n,s,r,i,o,a,c){return[t,e,n,s,r,i,o,a,c]},createView:r},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{a:()=>c,d:()=>_,e:()=>l,f:()=>d,g:()=>M,h:()=>y,i:()=>o,j:()=>T,k:()=>f,m:()=>h,s:()=>i,t:()=>a,v:()=>u,x:()=>O,y:()=>m});var s=n(65617),r=n(46851);function i(t,e,n,s,r,i,o,a,c,h,u,f,l,d,_,m,g){return t[0]=e,t[1]=n,t[2]=s,t[3]=r,t[4]=i,t[5]=o,t[6]=a,t[7]=c,t[8]=h,t[9]=u,t[10]=f,t[11]=l,t[12]=d,t[13]=_,t[14]=m,t[15]=g,t}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function a(t,e){if(t===e){const n=e[1],s=e[2],r=e[3],i=e[6],o=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=s,t[9]=i,t[11]=e[14],t[12]=r,t[13]=o,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){const n=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],h=e[7],u=e[8],f=e[9],l=e[10],d=e[11],_=e[12],m=e[13],g=e[14],p=e[15],M=n*a-s*o,b=n*c-r*o,T=n*h-i*o,y=s*c-r*a,O=s*h-i*a,R=r*h-i*c,S=u*m-f*_,E=u*g-l*_,A=u*p-d*_,x=f*g-l*m,N=f*p-d*m,v=l*p-d*g;let z=M*v-b*N+T*x+y*A-O*E+R*S;return z?(z=1/z,t[0]=(a*v-c*N+h*x)*z,t[1]=(r*N-s*v-i*x)*z,t[2]=(m*R-g*O+p*y)*z,t[3]=(l*O-f*R-d*y)*z,t[4]=(c*A-o*v-h*E)*z,t[5]=(n*v-r*A+i*E)*z,t[6]=(g*T-_*R-p*b)*z,t[7]=(u*R-l*T+d*b)*z,t[8]=(o*N-a*A+h*S)*z,t[9]=(s*A-n*N-i*S)*z,t[10]=(_*O-m*T+p*M)*z,t[11]=(f*T-u*O-d*M)*z,t[12]=(a*E-o*x-c*S)*z,t[13]=(n*x-s*E+r*S)*z,t[14]=(m*b-_*y-g*M)*z,t[15]=(u*y-f*b+l*M)*z,t):null}function h(t,e,n){const s=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],h=e[6],u=e[7],f=e[8],l=e[9],d=e[10],_=e[11],m=e[12],g=e[13],p=e[14],M=e[15];let b=n[0],T=n[1],y=n[2],O=n[3];return t[0]=b*s+T*a+y*f+O*m,t[1]=b*r+T*c+y*l+O*g,t[2]=b*i+T*h+y*d+O*p,t[3]=b*o+T*u+y*_+O*M,b=n[4],T=n[5],y=n[6],O=n[7],t[4]=b*s+T*a+y*f+O*m,t[5]=b*r+T*c+y*l+O*g,t[6]=b*i+T*h+y*d+O*p,t[7]=b*o+T*u+y*_+O*M,b=n[8],T=n[9],y=n[10],O=n[11],t[8]=b*s+T*a+y*f+O*m,t[9]=b*r+T*c+y*l+O*g,t[10]=b*i+T*h+y*d+O*p,t[11]=b*o+T*u+y*_+O*M,b=n[12],T=n[13],y=n[14],O=n[15],t[12]=b*s+T*a+y*f+O*m,t[13]=b*r+T*c+y*l+O*g,t[14]=b*i+T*h+y*d+O*p,t[15]=b*o+T*u+y*_+O*M,t}function u(t,e,n){const s=n[0],r=n[1],i=n[2];if(e===t)t[12]=e[0]*s+e[4]*r+e[8]*i+e[12],t[13]=e[1]*s+e[5]*r+e[9]*i+e[13],t[14]=e[2]*s+e[6]*r+e[10]*i+e[14],t[15]=e[3]*s+e[7]*r+e[11]*i+e[15];else{const n=e[0],o=e[1],a=e[2],c=e[3],h=e[4],u=e[5],f=e[6],l=e[7],d=e[8],_=e[9],m=e[10],g=e[11];t[0]=n,t[1]=o,t[2]=a,t[3]=c,t[4]=h,t[5]=u,t[6]=f,t[7]=l,t[8]=d,t[9]=_,t[10]=m,t[11]=g,t[12]=n*s+h*r+d*i+e[12],t[13]=o*s+u*r+_*i+e[13],t[14]=a*s+f*r+m*i+e[14],t[15]=c*s+l*r+g*i+e[15]}return t}function f(t,e,n){const s=n[0],r=n[1],i=n[2];return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function l(t,e,n,s){let i,o,a,c,h,u,f,l,d,_,m,g,p,M,b,T,y,O,R,S,E,A,x,N,v=s[0],z=s[1],w=s[2],F=Math.sqrt(v*v+z*z+w*w);return F<(0,r.g)()?null:(F=1/F,v*=F,z*=F,w*=F,i=Math.sin(n),o=Math.cos(n),a=1-o,c=e[0],h=e[1],u=e[2],f=e[3],l=e[4],d=e[5],_=e[6],m=e[7],g=e[8],p=e[9],M=e[10],b=e[11],T=v*v*a+o,y=z*v*a+w*i,O=w*v*a-z*i,R=v*z*a-w*i,S=z*z*a+o,E=w*z*a+v*i,A=v*w*a+z*i,x=z*w*a-v*i,N=w*w*a+o,t[0]=c*T+l*y+g*O,t[1]=h*T+d*y+p*O,t[2]=u*T+_*y+M*O,t[3]=f*T+m*y+b*O,t[4]=c*R+l*S+g*E,t[5]=h*R+d*S+p*E,t[6]=u*R+_*S+M*E,t[7]=f*R+m*S+b*E,t[8]=c*A+l*x+g*N,t[9]=h*A+d*x+p*N,t[10]=u*A+_*x+M*N,t[11]=f*A+m*x+b*N,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function _(t,e,n){if(0===e)return o(t);let s,i,a,c=n[0],h=n[1],u=n[2],f=Math.sqrt(c*c+h*h+u*u);return f<(0,r.g)()?null:(f=1/f,c*=f,h*=f,u*=f,s=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=c*c*a+i,t[1]=h*c*a+u*s,t[2]=u*c*a-h*s,t[3]=0,t[4]=c*h*a-u*s,t[5]=h*h*a+i,t[6]=u*h*a+c*s,t[7]=0,t[8]=c*u*a+h*s,t[9]=h*u*a-c*s,t[10]=u*u*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function m(t,e){const n=Math.sin(e),s=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e,n){const s=e[0],r=e[1],i=e[2],o=e[3],a=s+s,c=r+r,h=i+i,u=s*a,f=s*c,l=s*h,d=r*c,_=r*h,m=i*h,g=o*a,p=o*c,M=o*h;return t[0]=1-(d+m),t[1]=f+M,t[2]=l-p,t[3]=0,t[4]=f-M,t[5]=1-(u+m),t[6]=_+g,t[7]=0,t[8]=l+p,t[9]=_-g,t[10]=1-(u+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const p=(0,s.c)();function M(t,e,n,s){const r=e[0],i=e[1],o=e[2],a=e[3],c=r+r,h=i+i,u=o+o,f=r*c,l=r*h,d=r*u,_=i*h,m=i*u,g=o*u,p=a*c,M=a*h,b=a*u,T=s[0],y=s[1],O=s[2];return t[0]=(1-(_+g))*T,t[1]=(l+b)*T,t[2]=(d-M)*T,t[3]=0,t[4]=(l-b)*y,t[5]=(1-(f+g))*y,t[6]=(m+p)*y,t[7]=0,t[8]=(d+M)*O,t[9]=(m-p)*O,t[10]=(1-(f+_))*O,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function b(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function y(t,e){if(t===e)return!0;const n=t[0],s=t[1],i=t[2],o=t[3],a=t[4],c=t[5],h=t[6],u=t[7],f=t[8],l=t[9],d=t[10],_=t[11],m=t[12],g=t[13],p=t[14],M=t[15],b=e[0],T=e[1],y=e[2],O=e[3],R=e[4],S=e[5],E=e[6],A=e[7],x=e[8],N=e[9],v=e[10],z=e[11],w=e[12],F=e[13],I=e[14],P=e[15],j=(0,r.g)();return Math.abs(n-b)<=j*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(s-T)<=j*Math.max(1,Math.abs(s),Math.abs(T))&&Math.abs(i-y)<=j*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(o-O)<=j*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(a-R)<=j*Math.max(1,Math.abs(a),Math.abs(R))&&Math.abs(c-S)<=j*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(h-E)<=j*Math.max(1,Math.abs(h),Math.abs(E))&&Math.abs(u-A)<=j*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(f-x)<=j*Math.max(1,Math.abs(f),Math.abs(x))&&Math.abs(l-N)<=j*Math.max(1,Math.abs(l),Math.abs(N))&&Math.abs(d-v)<=j*Math.max(1,Math.abs(d),Math.abs(v))&&Math.abs(_-z)<=j*Math.max(1,Math.abs(_),Math.abs(z))&&Math.abs(m-w)<=j*Math.max(1,Math.abs(m),Math.abs(w))&&Math.abs(g-F)<=j*Math.max(1,Math.abs(g),Math.abs(F))&&Math.abs(p-I)<=j*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(M-P)<=j*Math.max(1,Math.abs(M),Math.abs(P))}function O(t){const e=(0,r.g)(),n=t[0],s=t[1],i=t[2],o=t[4],a=t[5],c=t[6],h=t[8],u=t[9],f=t[10];return Math.abs(1-(n*n+o*o+h*h))<=e&&Math.abs(1-(s*s+a*a+u*u))<=e&&Math.abs(1-(i*i+c*c+f*f))<=e}const R=h,S=b;Object.freeze(Object.defineProperty({__proto__:null,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},set:i,identity:o,transpose:a,invert:c,adjoint:function(t,e){const n=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],h=e[7],u=e[8],f=e[9],l=e[10],d=e[11],_=e[12],m=e[13],g=e[14],p=e[15];return t[0]=a*(l*p-d*g)-f*(c*p-h*g)+m*(c*d-h*l),t[1]=-(s*(l*p-d*g)-f*(r*p-i*g)+m*(r*d-i*l)),t[2]=s*(c*p-h*g)-a*(r*p-i*g)+m*(r*h-i*c),t[3]=-(s*(c*d-h*l)-a*(r*d-i*l)+f*(r*h-i*c)),t[4]=-(o*(l*p-d*g)-u*(c*p-h*g)+_*(c*d-h*l)),t[5]=n*(l*p-d*g)-u*(r*p-i*g)+_*(r*d-i*l),t[6]=-(n*(c*p-h*g)-o*(r*p-i*g)+_*(r*h-i*c)),t[7]=n*(c*d-h*l)-o*(r*d-i*l)+u*(r*h-i*c),t[8]=o*(f*p-d*m)-u*(a*p-h*m)+_*(a*d-h*f),t[9]=-(n*(f*p-d*m)-u*(s*p-i*m)+_*(s*d-i*f)),t[10]=n*(a*p-h*m)-o*(s*p-i*m)+_*(s*h-i*a),t[11]=-(n*(a*d-h*f)-o*(s*d-i*f)+u*(s*h-i*a)),t[12]=-(o*(f*g-l*m)-u*(a*g-c*m)+_*(a*l-c*f)),t[13]=n*(f*g-l*m)-u*(s*g-r*m)+_*(s*l-r*f),t[14]=-(n*(a*g-c*m)-o*(s*g-r*m)+_*(s*c-r*a)),t[15]=n*(a*l-c*f)-o*(s*l-r*f)+u*(s*c-r*a),t},determinant:function(t){const e=t[0],n=t[1],s=t[2],r=t[3],i=t[4],o=t[5],a=t[6],c=t[7],h=t[8],u=t[9],f=t[10],l=t[11],d=t[12],_=t[13],m=t[14],g=t[15];return(e*o-n*i)*(f*g-l*m)-(e*a-s*i)*(u*g-l*_)+(e*c-r*i)*(u*m-f*_)+(n*a-s*o)*(h*g-l*d)-(n*c-r*o)*(h*m-f*d)+(s*c-r*a)*(h*_-u*d)},multiply:h,translate:u,scale:f,rotate:l,rotateX:function(t,e,n){const s=Math.sin(n),r=Math.cos(n),i=e[4],o=e[5],a=e[6],c=e[7],h=e[8],u=e[9],f=e[10],l=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*r+h*s,t[5]=o*r+u*s,t[6]=a*r+f*s,t[7]=c*r+l*s,t[8]=h*r-i*s,t[9]=u*r-o*s,t[10]=f*r-a*s,t[11]=l*r-c*s,t},rotateY:function(t,e,n){const s=Math.sin(n),r=Math.cos(n),i=e[0],o=e[1],a=e[2],c=e[3],h=e[8],u=e[9],f=e[10],l=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*r-h*s,t[1]=o*r-u*s,t[2]=a*r-f*s,t[3]=c*r-l*s,t[8]=i*s+h*r,t[9]=o*s+u*r,t[10]=a*s+f*r,t[11]=c*s+l*r,t},rotateZ:function(t,e,n){const s=Math.sin(n),r=Math.cos(n),i=e[0],o=e[1],a=e[2],c=e[3],h=e[4],u=e[5],f=e[6],l=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*r+h*s,t[1]=o*r+u*s,t[2]=a*r+f*s,t[3]=c*r+l*s,t[4]=h*r-i*s,t[5]=u*r-o*s,t[6]=f*r-a*s,t[7]=l*r-c*s,t},fromTranslation:d,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotation:_,fromXRotation:m,fromYRotation:function(t,e){const n=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotationTranslation:g,fromQuat2:function(t,e){const n=p,s=-e[0],r=-e[1],i=-e[2],o=e[3],a=e[4],c=e[5],h=e[6],u=e[7],f=s*s+r*r+i*i+o*o;return f>0?(n[0]=2*(a*o+u*s+c*i-h*r)/f,n[1]=2*(c*o+u*r+h*s-a*i)/f,n[2]=2*(h*o+u*i+a*r-c*s)/f):(n[0]=2*(a*o+u*s+c*i-h*r),n[1]=2*(c*o+u*r+h*s-a*i),n[2]=2*(h*o+u*i+a*r-c*s)),g(t,e,n),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},getScaling:function(t,e){const n=e[0],s=e[1],r=e[2],i=e[4],o=e[5],a=e[6],c=e[8],h=e[9],u=e[10];return t[0]=Math.sqrt(n*n+s*s+r*r),t[1]=Math.sqrt(i*i+o*o+a*a),t[2]=Math.sqrt(c*c+h*h+u*u),t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let s=0;return n>0?(s=2*Math.sqrt(n+1),t[3]=.25*s,t[0]=(e[6]-e[9])/s,t[1]=(e[8]-e[2])/s,t[2]=(e[1]-e[4])/s):e[0]>e[5]&&e[0]>e[10]?(s=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/s,t[0]=.25*s,t[1]=(e[1]+e[4])/s,t[2]=(e[8]+e[2])/s):e[5]>e[10]?(s=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/s,t[0]=(e[1]+e[4])/s,t[1]=.25*s,t[2]=(e[6]+e[9])/s):(s=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/s,t[0]=(e[8]+e[2])/s,t[1]=(e[6]+e[9])/s,t[2]=.25*s),t},fromRotationTranslationScale:M,fromRotationTranslationScaleOrigin:function(t,e,n,s,r){const i=e[0],o=e[1],a=e[2],c=e[3],h=i+i,u=o+o,f=a+a,l=i*h,d=i*u,_=i*f,m=o*u,g=o*f,p=a*f,M=c*h,b=c*u,T=c*f,y=s[0],O=s[1],R=s[2],S=r[0],E=r[1],A=r[2],x=(1-(m+p))*y,N=(d+T)*y,v=(_-b)*y,z=(d-T)*O,w=(1-(l+p))*O,F=(g+M)*O,I=(_+b)*R,P=(g-M)*R,j=(1-(l+m))*R;return t[0]=x,t[1]=N,t[2]=v,t[3]=0,t[4]=z,t[5]=w,t[6]=F,t[7]=0,t[8]=I,t[9]=P,t[10]=j,t[11]=0,t[12]=n[0]+S-(x*S+z*E+I*A),t[13]=n[1]+E-(N*S+w*E+P*A),t[14]=n[2]+A-(v*S+F*E+j*A),t[15]=1,t},fromQuat:function(t,e){const n=e[0],s=e[1],r=e[2],i=e[3],o=n+n,a=s+s,c=r+r,h=n*o,u=s*o,f=s*a,l=r*o,d=r*a,_=r*c,m=i*o,g=i*a,p=i*c;return t[0]=1-f-_,t[1]=u+p,t[2]=l-g,t[3]=0,t[4]=u-p,t[5]=1-h-_,t[6]=d+m,t[7]=0,t[8]=l+g,t[9]=d-m,t[10]=1-h-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,s,r,i,o){const a=1/(n-e),c=1/(r-s),h=1/(i-o);return t[0]=2*i*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*c,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(r+s)*c,t[10]=(o+i)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*h,t[15]=0,t},perspective:function(t,e,n,s,r){const i=1/Math.tan(e/2);let o;return t[0]=i/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=r&&r!==1/0?(o=1/(s-r),t[10]=(r+s)*o,t[14]=2*r*s*o):(t[10]=-1,t[14]=-2*s),t},perspectiveFromFieldOfView:function(t,e,n,s){const r=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),c=2/(o+a),h=2/(r+i);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(o-a)*c*.5,t[9]=(r-i)*h*.5,t[10]=s/(n-s),t[11]=-1,t[12]=0,t[13]=0,t[14]=s*n/(n-s),t[15]=0,t},ortho:function(t,e,n,s,r,i,o){const a=1/(e-n),c=1/(s-r),h=1/(i-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*a,t[13]=(r+s)*c,t[14]=(o+i)*h,t[15]=1,t},lookAt:function(t,e,n,s){let i,a,c,h,u,f,l,d,_,m;const g=e[0],p=e[1],M=e[2],b=s[0],T=s[1],y=s[2],O=n[0],R=n[1],S=n[2],E=(0,r.g)();return Math.abs(g-O)<E&&Math.abs(p-R)<E&&Math.abs(M-S)<E?o(t):(l=g-O,d=p-R,_=M-S,m=1/Math.sqrt(l*l+d*d+_*_),l*=m,d*=m,_*=m,i=T*_-y*d,a=y*l-b*_,c=b*d-T*l,m=Math.sqrt(i*i+a*a+c*c),m?(m=1/m,i*=m,a*=m,c*=m):(i=0,a=0,c=0),h=d*c-_*a,u=_*i-l*c,f=l*a-d*i,m=Math.sqrt(h*h+u*u+f*f),m?(m=1/m,h*=m,u*=m,f*=m):(h=0,u=0,f=0),t[0]=i,t[1]=h,t[2]=l,t[3]=0,t[4]=a,t[5]=u,t[6]=d,t[7]=0,t[8]=c,t[9]=f,t[10]=_,t[11]=0,t[12]=-(i*g+a*p+c*M),t[13]=-(h*g+u*p+f*M),t[14]=-(l*g+d*p+_*M),t[15]=1,t)},targetTo:function(t,e,n,s){const r=e[0],i=e[1],o=e[2],a=s[0],c=s[1],h=s[2];let u=r-n[0],f=i-n[1],l=o-n[2],d=u*u+f*f+l*l;d>0&&(d=1/Math.sqrt(d),u*=d,f*=d,l*=d);let _=c*l-h*f,m=h*u-a*l,g=a*f-c*u;return d=_*_+m*m+g*g,d>0&&(d=1/Math.sqrt(d),_*=d,m*=d,g*=d),t[0]=_,t[1]=m,t[2]=g,t[3]=0,t[4]=f*g-l*m,t[5]=l*_-u*g,t[6]=u*m-f*_,t[7]=0,t[8]=u,t[9]=f,t[10]=l,t[11]=0,t[12]=r,t[13]=i,t[14]=o,t[15]=1,t},str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},subtract:b,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,s){return t[0]=e[0]+n[0]*s,t[1]=e[1]+n[1]*s,t[2]=e[2]+n[2]*s,t[3]=e[3]+n[3]*s,t[4]=e[4]+n[4]*s,t[5]=e[5]+n[5]*s,t[6]=e[6]+n[6]*s,t[7]=e[7]+n[7]*s,t[8]=e[8]+n[8]*s,t[9]=e[9]+n[9]*s,t[10]=e[10]+n[10]*s,t[11]=e[11]+n[11]*s,t[12]=e[12]+n[12]*s,t[13]=e[13]+n[13]*s,t[14]=e[14]+n[14]*s,t[15]=e[15]+n[15]*s,t},exactEquals:T,equals:y,isOrthoNormal:O,mul:R,sub:S},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function s(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(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]]}function i(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>o,a:()=>i,b:()=>r,c:()=>s});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,create:s,clone:r,fromValues:function(t,e,n,s,r,i,o,a,c,h,u,f,l,d,_,m){return[t,e,n,s,r,i,o,a,c,h,u,f,l,d,_,m]},createView:i,IDENTITY:o},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function s(){return[0,0,0,1]}function r(t){return[t[0],t[1],t[2],t[3]]}function i(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>o,a:()=>s,b:()=>r,c:()=>i});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,create:s,clone:r,fromValues:function(t,e,n,s){return[t,e,n,s]},createView:i,IDENTITY:o},Symbol.toStringTag,{value:"Module"}))},29268:(t,e,n)=>{n.d(e,{a:()=>M,c:()=>g,g:()=>b,h:()=>p,j:()=>O,m:()=>v}),n(80442);var s,r,i=n(92604),o=n(22021),a=n(70586),c=n(52138),h=n(17896),u=n(65617),f=n(98766),l=n(88669);(r=s||(s={}))[r.X=0]="X",r[r.Y=1]="Y",r[r.Z=2]="Z";var d=n(78341),_=n(61277),m=n(12981);function g(){return(0,l.c)()}function p(t,e=g()){return(0,f.c)(e,t)}function M(t){return t[3]}function b(t){return t}function T(t,e,n){if((0,a.Wi)(e))return!1;const{origin:s,direction:r}=e,i=y;i[0]=s[0]-t[0],i[1]=s[1]-t[1],i[2]=s[2]-t[2];const o=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===o)return!1;const c=2*(r[0]*i[0]+r[1]*i[1]+r[2]*i[2]),h=c*c-4*o*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-t[3]*t[3]);if(h<0)return!1;const u=Math.sqrt(h);let f=(-c-u)/(2*o);const l=(-c+u)/(2*o);return(f<0||l<f&&l>0)&&(f=l),!(f<0||(n&&(n[0]=s[0]+r[0]*f,n[1]=s[1]+r[1]*f,n[2]=s[2]+r[2]*f),0))}const y=(0,u.c)();function O(t,e){return T(t,e,null)}function R(t,e,n){const s=m.WM.get(),r=m.MP.get();(0,h.f)(s,e.origin,e.direction);const i=M(t);(0,h.f)(n,s,e.origin),(0,h.g)(n,n,1/(0,h.l)(n)*i);const o=E(t,e.origin),a=(0,_.EU)(e.origin,n);return(0,c.d)(r,a+o,s),(0,h.m)(n,n,r),n}function S(t,e,n){const s=(0,h.b)(m.WM.get(),e,t),r=(0,h.g)(m.WM.get(),s,t[3]/(0,h.l)(s));return(0,h.a)(n,r,t)}function E(t,e){const n=(0,h.b)(m.WM.get(),e,t),s=(0,h.l)(n),r=M(t),i=r+Math.abs(r-s);return(0,o.ZF)(r/i)}const A=(0,u.c)();function x(t,e,n,r){const i=(0,h.b)(A,e,t);switch(n){case s.X:{const t=(0,o.jE)(i,A)[2];return(0,h.s)(r,-Math.sin(t),Math.cos(t),0)}case s.Y:{const t=(0,o.jE)(i,A),e=t[1],n=t[2],s=Math.sin(e);return(0,h.s)(r,-s*Math.cos(n),-s*Math.sin(n),Math.cos(e))}case s.Z:return(0,h.n)(r,i);default:return}}function N(t,e){const n=(0,h.b)(z,e,t);return(0,h.l)(n)-t[3]}function v(t,e){const n=(0,h.d)(t,e),s=M(t);return n<=s*s}const z=(0,u.c)(),w=g();Object.freeze(Object.defineProperty({__proto__:null,create:g,copy:p,fromCenterAndRadius:function(t,e){return(0,l.f)(t[0],t[1],t[2],e)},wrap:function(t){return t},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},getRadius:M,getCenter:b,fromValues:function(t,e,n,s){return(0,l.f)(t,e,n,s)},elevate:function(t,e,n){return t!==n&&(0,h.c)(n,t),n[3]=t[3]+e,n},setExtent:function(t,e,n){return i.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:p(t,n)},intersectRay:T,intersectsRay:O,intersectRayClosestSilhouette:function(t,e,n){if(T(t,e,n))return n;const s=R(t,e,m.WM.get());return(0,h.a)(n,e.origin,(0,h.g)(m.WM.get(),e.direction,(0,h.i)(e.origin,s)/(0,h.l)(e.direction))),n},closestPointOnSilhouette:R,closestPoint:function(t,e,n){return T(t,e,n)?n:((0,d.JI)(e,t,n),S(t,n,n))},projectPoint:S,distanceToSilhouette:function(t,e){const n=(0,h.b)(m.WM.get(),e,t),s=(0,h.p)(n),r=t[3]*t[3];return Math.sqrt(Math.abs(s-r))},angleToSilhouette:E,axisAt:x,altitudeAt:N,setAltitudeAt:function(t,e,n,r){const i=N(t,e),o=x(t,e,s.Z,z),a=(0,h.g)(z,o,n-i);return(0,h.a)(r,e,a)},containsPoint:v,tmpSphere:w},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function s(){return[0,0]}function r(t,e){return[t,e]}function i(t,e){return new Float64Array(t,e,2)}function o(){return r(1,1)}function a(){return r(1,0)}function c(){return r(0,1)}n.d(e,{Z:()=>h,a:()=>s,c:()=>i});const h=[0,0],u=o(),f=a(),l=c();Object.freeze(Object.defineProperty({__proto__:null,create:s,clone:function(t){return[t[0],t[1]]},fromValues:r,fromArray:function(t){const e=[0,0],n=Math.min(2,t.length);for(let s=0;s<n;++s)e[s]=t[s];return e},createView:i,zeros:function(){return[0,0]},ones:o,unitX:a,unitY:c,ZEROS:h,ONES:u,UNIT_X:f,UNIT_Y:l},Symbol.toStringTag,{value:"Module"}))},88669:(t,e,n)=>{function s(){return[0,0,0,0]}function r(t,e,n,s){return[t,e,n,s]}function i(t,e){return new Float64Array(t,e,4)}function o(){return r(1,1,1,1)}function a(){return r(1,0,0,0)}function c(){return r(0,1,0,0)}function h(){return r(0,0,1,0)}function u(){return r(0,0,0,1)}n.d(e,{a:()=>i,c:()=>s,f:()=>r});const f=o(),l=a(),d=c(),_=h(),m=u();Object.freeze(Object.defineProperty({__proto__:null,create:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},fromValues:r,fromArray:function(t){const e=[0,0,0,0],n=Math.min(4,t.length);for(let s=0;s<n;++s)e[s]=t[s];return e},createView:i,zeros:function(){return[0,0,0,0]},ones:o,unitX:a,unitY:c,unitZ:h,unitW:u,ZEROS:[0,0,0,0],ONES:f,UNIT_X:l,UNIT_Y:d,UNIT_Z:_,UNIT_W:m},Symbol.toStringTag,{value:"Module"}))},69801:(t,e,n)=>{n.d(e,{WJ:()=>c,Xq:()=>a});var s,r,i=n(70586),o=n(44553);(r=s||(s={}))[r.ALL=0]="ALL",r[r.SOME=1]="SOME";class a{constructor(t,e,n){this._namespace=t,this._storage=e,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",n&&(this._storage.registerRemoveFunc(this._namespace,n),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(t,e,n,s=0){this._storage.put(this._namespace+t,e,n,s)}get(t){const e=this._storage.get(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}pop(t){const e=this._storage.pop(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,n){this._storage.updateSize(this._namespace+t,e,n)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class c{constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new o.Z,this._users=new o.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get size(){return this._size}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimit()}put(t,e,n,r){const i=this._db.get(t);if(i&&(this._size-=i.size,this._db.delete(t),i.entry!==e&&this._notifyRemove(t,i.entry,s.ALL)),n>this._maxSize)return void this._notifyRemove(t,e,s.ALL);if(void 0===e)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return void console.warn("Refusing to cache entry with invalid size "+n);const o=1+Math.max(r,-3)- -3;this._db.set(t,{entry:e,size:n,lifetime:o,lives:o}),this._size+=n,this._checkSizeLimit()}updateSize(t,e,n){const r=this._db.get(t);if(r&&r.entry===e){for(this._size-=r.size;n>this._maxSize;){const r=this._notifyRemove(t,e,s.SOME);if(!((0,i.pC)(r)&&r>0))return void this._db.delete(t);n=r}r.size=n,this._size+=n,this._checkSizeLimit()}}pop(t){const e=this._db.get(t);if(e)return this._size-=e.size,this._db.delete(t),++this._hit,e.entry;++this._miss}get(t){const e=this._db.get(t);if(void 0!==e)return this._db.delete(t),e.lives=e.lifetime,this._db.set(t,e),++this._hit,e.entry;++this._miss}getStats(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},n=new Array;this._db.forEach(((t,s)=>{const r=t.lifetime;n[r]=(n[r]||0)+t.size,this._users.forAll((n=>{const r=n.namespace;if(s.startsWith(r)){const n=e[r]||0;e[r]=n+t.size}}))}));const s={};this._users.forAll((t=>{const n=t.namespace;if(!isNaN(t.hitRate)&&t.hitRate>0){const r=e[n]||0;e[n]=r,s[n]=Math.round(100*t.hitRate)+"%"}else s[n]="0%"}));const r=Object.keys(e);r.sort(((t,n)=>e[n]-e[t])),r.forEach((n=>t[n]=Math.round(e[n]/2**20)+"MB / "+s[n]));for(let e=n.length-1;e>=0;--e){const s=n[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this.size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){this._db.forEach(((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,s.ALL))}))}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,s.ALL))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,n){let s;return this._removeFuncs.some((r=>{if(t.startsWith(r[0])){const t=r[1](e,n);return"number"==typeof t&&(s=t),!0}return!1})),s}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[t,e]of this._db){if(this._db.delete(t),e.lives<=1){this._size-=e.size;const n=this._notifyRemove(t,e.entry,s.SOME);(0,i.pC)(n)&&n>0&&(this._size+=n,e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e);if(this._size<=.9*this.maxSize)return}}}},22807:(t,e,n)=>{n.d(e,{x:()=>r});var s=n(41213);class r{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,s.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},10661:(t,e,n)=>{n.d(e,{s:()=>r});var s=n(39020);class r{constructor(){this._observers=[]}observe(t){return this._observers.includes(t)||this._observers.push(t),new s.X(this._observers,t)}notify(){const t=this._observers.slice();for(let e=0;e<t.length;++e){const n=t[e];n.onInvalidated(),n.onCommitted()}}}},43090:(t,e,n)=>{function s(t){return 32+t.length}function r(t){if(!t)return 0;let e=c;for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];switch(typeof r){case"string":e+=s(r);break;case"number":e+=16;break;case"boolean":e+=4}}return e}function i(t){if(!t)return 0;if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return 32+8*e;let n=h;for(let s=0;s<e;s++)n+=o(t[s]);return n}(t);let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=o(t[n]));return e}function o(t){switch(typeof t){case"object":return i(t);case"string":return s(t);case"number":return 16;case"boolean":return 4;default:return 8}}function a(t,e){return h+t.length*e}n.d(e,{Ul:()=>i,Y8:()=>u,do:()=>a,f2:()=>r});const c=32,h=32;var u;!function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(u||(u={}))},16996:(t,e,n)=>{n.d(e,{Ue:()=>c,nF:()=>u,zk:()=>h});var s=n(22021),r=n(22807),i=n(17896),o=n(65617),a=n(12981);function c(t){return t?{origin:(0,o.a)(t.origin),vector:(0,o.a)(t.vector)}:{origin:(0,o.c)(),vector:(0,o.c)()}}function h(t,e,n=c()){return(0,i.c)(n.origin,t),(0,i.b)(n.vector,e,t),n}function u(t,e,n){return function(t,e,n,r,o){const{vector:c,origin:h}=t,u=(0,i.b)(a.WM.get(),e,h),f=(0,i.e)(c,u)/(0,i.p)(c);return(0,i.g)(o,c,(0,s.uZ)(f,0,1)),(0,i.a)(o,o,t.origin)}(t,e,0,0,n)}(0,o.c)(),(0,o.c)(),new r.x((()=>c()))},51806:(t,e,n)=>{n.d(e,{aX:()=>A});var s=n(68773),r=n(20102),i=n(92604),o=n(70586),a=n(38913),c=n(58901),h=n(82971),u=n(33955);const f={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new c.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:h.Z.WebMercator}),minus180Line:new c.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:h.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new c.Z({paths:[[[180,-180],[180,180]]],spatialReference:h.Z.WGS84}),minus180Line:new c.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:h.Z.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function d(t,e){const n=_(t);for(const t of n)for(const n of t)n[0]+=e;return t}function _(t){return(0,u.oU)(t)?t.rings:t.paths}var m=n(8744),g=n(40488),p=(n(66577),n(3172)),M=n(11282),b=n(17452);const T=i.Z.getLogger("esri.geometry.support.normalizeUtils");function y(t){return"polygon"===t[0].type}function O(t){return"polyline"===t[0].type}function R(t,e,n){if(e){const e=function(t,e){if(!(t instanceof c.Z||t instanceof a.Z)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw T.error(t),new r.Z(t)}const n=_(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const r=t[s][0],i=t[s][1],o=t[s+1][0],a=t[s+1][1],c=Math.sqrt((o-r)*(o-r)+(a-i)*(a-i)),h=(a-i)/c,u=(o-r)/c,f=c/e;if(f>1){for(let t=1;t<=f-1;t++){const s=t*e,o=u*s+r,a=h*s+i;n.push([o,a])}const t=(c+Math.floor(f-1)*e)/2,s=u*t+r,o=h*t+i;n.push([s,o])}n.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.Z({rings:s,spatialReference:t.spatialReference}):new c.Z({paths:s,spatialReference:t.spatialReference})}(t,1e6);t=(0,g.Sx)(e,!0)}return n&&(t=d(t,n)),t}function S(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=l(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=l(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=l(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=l(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function E(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const r=e.cutIndexes[s],i=e.geometries[s],o=_(i);for(let t=0;t<o.length;t++){const e=o[t];e.some((n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*l(n,180);for(let n=0;n<e.length;n++){const e=i.getPoint(t,n);i.setPoint(t,n,e.clone().offset(s,0))}return!0}}))}if(r===n){if(y(t))for(const e of _(i))t[r]=t[r].addRing(e);else if(O(t))for(const e of _(i))t[r]=t[r].addPath(e)}else n=r,t[r]=i}return t}async function A(t,e,n){if(!Array.isArray(t))return A([t],e);e&&"string"!=typeof e&&T.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof e?e:e?.url??s.Z.geometryServiceUrl;let i,h,_,y,O,x,N,v,z=0;const w=[],F=[];for(const e of t)if((0,o.Wi)(e))F.push(e);else if(i||(i=e.spatialReference,h=(0,m.C5)(i),_=i.isWebMercator,x=_?102100:4326,y=f[x].maxX,O=f[x].minX,N=f[x].plus180Line,v=f[x].minus180Line),h)if("mesh"===e.type)F.push(e);else if("point"===e.type)F.push(S(e.clone(),y,O));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map((t=>S(t,y,O))),F.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,h);F.push(t.rings?new a.Z(t):t)}else if(e.extent){const t=e.extent,n=l(t.xmin,O)*(2*y);let s=0===n?e.clone():d(e.clone(),n);t.offset(n,0),t.intersects(N)&&t.xmax!==y?(z=t.xmax>z?t.xmax:z,s=R(s,_),w.push(s),F.push("cut")):t.intersects(v)&&t.xmin!==O?(z=t.xmax*(2*y)>z?t.xmax*(2*y):z,s=R(s,_,360),w.push(s),F.push("cut")):F.push(s)}else F.push(e.clone());else F.push(e);let I=l(z,y),P=-90;const j=I,L=new c.Z;for(;I>0;){const t=360*I-180;L.addPath([[t,P],[t,-1*P]]),P*=-1,I--}if(w.length>0&&j>0){const e=E(w,await async function(t,e,n,s){const r=(0,M.en)(t),i=e[0].spatialReference,o={...s,query:{...r.query,f:"json",sr:JSON.stringify(i),target:JSON.stringify({geometryType:(0,u.Ji)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,p.default)(r.path+"/cut",o),{cutIndexes:c,geometries:h=[]}=a.data;return{cutIndexes:c,geometries:h.map((t=>{const e=(0,u.im)(t);return e.spatialReference=i,e}))}}(r,w,L,n)),s=[],i=[];for(let n=0;n<F.length;n++){const r=F[n];if("cut"!==r)i.push(r);else{const r=e.shift(),a=t[n];(0,o.pC)(a)&&"polygon"===a.type&&a.rings&&a.rings.length>1&&r.rings.length>=a.rings.length?(s.push(r),i.push("simplify")):i.push(_?(0,g.$)(r):r)}}if(!s.length)return i;const a=await async function(t,e,n){const s="string"==typeof t?(0,b.mN)(t):t,r=e[0].spatialReference,i=(0,u.Ji)(e[0]),o={...n,query:{...s.query,f:"json",sr:r.wkid?r.wkid:JSON.stringify(r),geometries:JSON.stringify((c=e,{geometryType:(0,u.Ji)(c[0]),geometries:c.map((t=>t.toJSON()))}))}},{data:a}=await(0,p.default)(s.path+"/simplify",o);var c;return function(t,e,n){const s=(0,u.q9)(e);return t.map((t=>{const e=s.fromJSON(t);return e.spatialReference=n,e}))}(a.geometries,i,r)}(r,s,n),c=[];for(let t=0;t<i.length;t++){const e=i[t];"simplify"!==e?c.push(e):c.push(_?(0,g.$)(a.shift()):a.shift())}return c}const B=[];for(let t=0;t<F.length;t++){const e=F[t];if("cut"!==e)B.push(e);else{const t=w.shift();B.push(!0===_?(0,g.$)(t):t)}}return B}},62073:(t,e,n)=>{n(22021),n(17896);var s,r,i=n(65617);n(29268),n(61277),n(12981),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(r=s||(s={}))[r.NONE=0]="NONE",r[r.CLAMP=1]="CLAMP",r[r.INFINITE_MIN=4]="INFINITE_MIN",r[r.INFINITE_MAX=8]="INFINITE_MAX",s.INFINITE_MIN,s.INFINITE_MAX,s.INFINITE_MAX},78341:(t,e,n)=>{n.d(e,{JI:()=>h,Ue:()=>o,re:()=>c}),n(67676);var s=n(22807),r=n(17896),i=n(65617);function o(t){return t?a((0,i.a)(t.origin),(0,i.a)(t.direction)):a((0,i.c)(),(0,i.c)())}function a(t,e){return{origin:t,direction:e}}function c(t,e){const n=u.get();return n.origin=t,n.direction=e,n}function h(t,e,n){const s=(0,r.e)(t.direction,(0,r.b)(n,e,t.origin));return(0,r.a)(n,t.origin,(0,r.g)(n,t.direction,s)),n}n(12981);const u=new s.x((()=>o()))},61277:(t,e,n)=>{n.d(e,{EU:()=>o});var s=n(22021),r=n(17896),i=n(65617);function o(t,e){const n=(0,r.e)(t,e)/((0,r.l)(t)*(0,r.l)(e));return-(0,s.ZF)(n)}(0,i.c)(),(0,i.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>_,WM:()=>d});var s=n(43090),r=n(41213),i=n(46521),o=n(13598),a=n(94961),c=n(97323),h=n(65617),u=n(88669);class f{constructor(t,e,n){this._itemByteSize=t,this._itemCreate=e,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(n/this._itemByteSize)}get(){0===this._itemsPtr&&(0,r.Y)((()=>this._reset()));const t=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=t;){const t=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let e=0;e<this._itemsPerBuffer;++e)this._items.push(this._itemCreate(t,e*this._itemByteSize));this._buffers.push(t)}return this._items[this._itemsPtr++]}_reset(){const t=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>t;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(t=l){return new f(16,c.c,t)}static createVec3f64(t=l){return new f(24,h.b,t)}static createVec4f64(t=l){return new f(32,u.a,t)}static createMat3f64(t=l){return new f(72,i.a,t)}static createMat4f64(t=l){return new f(128,o.a,t)}static createQuatf64(t=l){return new f(32,a.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const l=4*s.Y8.KILOBYTES,d=(f.createVec2f64(),f.createVec3f64()),_=(f.createVec4f64(),f.createMat3f64(),f.createMat4f64());f.createQuatf64()},11282:(t,e,n)=>{n.d(e,{cv:()=>a,en:()=>o,lA:()=>i});var s=n(22974),r=n(17452);function i(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function o(t){return"string"==typeof t?(0,r.mN)(t):(0,s.d9)(t)}function a(t,e,n){const s={};for(const r in t){if("declaredClass"===r)continue;const i=t[r];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){s[r]=[];for(let t=0;t<i.length;t++)s[r][t]=a(i[t])}else if("object"==typeof i)if(i.toJSON){const t=i.toJSON(n&&n[r]);s[r]=e?t:JSON.stringify(t)}else s[r]=e?i:JSON.stringify(i);else s[r]=i}return s}},11726:(t,e,n)=>{n.d(e,{hu:()=>r,yK:()=>i}),n(97323),n(98766),(0,n(88669).c)();class s{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function r(t,e){if(!t)throw e=e||"assert",console.log(new Error(e).stack),new s(e)}function i(t,e,n,s){let r,i=(n[0]-t[0])/e[0],o=(s[0]-t[0])/e[0];i>o&&(r=i,i=o,o=r);let a=(n[1]-t[1])/e[1],c=(s[1]-t[1])/e[1];if(a>c&&(r=a,a=c,c=r),i>c||a>o)return!1;a>i&&(i=a),c<o&&(o=c);let h=(n[2]-t[2])/e[2],u=(s[2]-t[2])/e[2];return h>u&&(r=h,h=u,u=r),!(i>u||h>o||(u<o&&(o=u),o<0))}},65381:(t,e,n)=>{n.r(e),n.d(e,{default:()=>et});var s,r,i,o,a,c=n(43697),h=n(70586),u=n(95330),f=(n(92604),n(75215),n(67676),n(20102),n(80442),n(52011)),l=n(17896),d=n(65617),_=n(16996),m=n(29268),g=n(26993),p=n(71143),M=n(44553),b=n(22807),T=(n(52138),n(98766),n(88669)),y=n(78341);function O(t){return t?{ray:(0,y.Ue)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,y.Ue)(),c0:0,c1:Number.MAX_VALUE}}function R(t,e){for(let n=0;n<o.NUM;n++){const s=t[n];if(s[0]*e[0]+s[1]*e[1]+s[2]*e[2]+s[3]>=e[3])return!1}return!0}n(12981),new b.x((()=>O())),n(62073),(i=s||(s={}))[i.LEFT=0]="LEFT",i[i.RIGHT=1]="RIGHT",i[i.BOTTOM=2]="BOTTOM",i[i.TOP=3]="TOP",i[i.NEAR=4]="NEAR",i[i.FAR=5]="FAR",function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(r||(r={})),r.FAR_BOTTOM_RIGHT,r.NEAR_BOTTOM_RIGHT,r.NEAR_BOTTOM_LEFT,r.FAR_BOTTOM_LEFT,r.NEAR_BOTTOM_LEFT,r.NEAR_BOTTOM_RIGHT,r.NEAR_TOP_RIGHT,r.NEAR_TOP_LEFT,r.FAR_BOTTOM_RIGHT,r.FAR_BOTTOM_LEFT,r.FAR_TOP_LEFT,r.FAR_TOP_RIGHT,r.NEAR_BOTTOM_RIGHT,r.FAR_BOTTOM_RIGHT,r.FAR_TOP_RIGHT,r.NEAR_TOP_RIGHT,r.FAR_BOTTOM_LEFT,r.NEAR_BOTTOM_LEFT,r.NEAR_TOP_LEFT,r.FAR_TOP_LEFT,r.FAR_TOP_LEFT,r.NEAR_TOP_LEFT,r.NEAR_TOP_RIGHT,r.FAR_TOP_RIGHT,function(t){t[t.NUM=6]="NUM"}(o||(o={})),function(t){t[t.NUM=8]="NUM"}(a||(a={})),(0,T.f)(-1,-1,-1,1),(0,T.f)(1,-1,-1,1),(0,T.f)(1,1,-1,1),(0,T.f)(-1,1,-1,1),(0,T.f)(-1,-1,1,1),(0,T.f)(1,-1,1,1),(0,T.f)(1,1,1,1),(0,T.f)(-1,1,1,1),new b.x(O),(0,d.c)(),(0,d.c)(),(0,d.c)(),(0,d.c)(),(0,d.c)(),(0,d.c)(),(0,d.c)(),(0,d.c)();var S,E,A=n(11726);class x{constructor(t,e){this._objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new N,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}destroy(){this._degenerateObjects.clear(),N.clearPool(),q[0]=null,V.prune(),J.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=N.acquire();for(let s=0;s<e;s++){const e=t[s];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}N.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=N.acquire();for(const s of t){const t=(0,h.pC)(e)?e:(0,m.h)(this._objectToBoundingSphere(s),W);j(t[3])?(n.init(this._root),this._remove(s,t,n)):this._degenerateObjects.delete(s)}N.release(n),this._shrink()}update(t,e){if(!j(e[3])&&this._isDegenerate(t))return;const n=function(t){return q[0]=t,q}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const s=(0,y.re)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNode(s,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(s,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(s,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,s){const r=(0,y.re)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNodeWithOffset(r,t,s))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(r,t,s)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(r,t,s)&&n(t)})),!0}))}forEach(t){this._forEachNode(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,s=(()=>!0),r=1/0){let i=1/0,o=1/0,a=null;const c=I(t,e),h=c=>{if(--r,!s(c))return;const h=this._objectToBoundingSphere(c);if(!R(n,h))return;const u=P(t,e,(0,m.g)(h)),f=u-h[3],l=u+h[3];f<i&&(i=f,o=l,a=c)};return this._forEachNodeDepthOrdered(this._root,(s=>{if(r<=0||!R(n,s.bounds))return!1;if((0,l.g)(D,c,s.halfSize),(0,l.a)(D,D,s.bounds),P(t,e,D)>o)return!1;const i=s.node;return i.terminals.forAll((t=>h(t))),null!==i.residents&&i.residents.forAll((t=>h(t))),!0}),t,e),a}forEachInDepthRange(t,e,n,s,r,i,o){let a=-1/0,c=1/0;const h={setRange:t=>{n===x.DepthOrder.FRONT_TO_BACK?(a=Math.max(a,t.near),c=Math.min(c,t.far)):(a=Math.max(a,-t.far),c=Math.min(c,-t.near))}};h.setRange(s);const u=P(e,n,t),f=I(e,n),d=I(e,-n),_=t=>{if(!o(t))return;const s=this._objectToBoundingSphere(t),f=(0,m.g)(s),l=P(e,n,f)-u,d=l-s[3],_=l+s[3];d>c||_<a||!R(i,s)||r(t,h)};this._forEachNodeDepthOrdered(this._root,(t=>{if(!R(i,t.bounds))return!1;if((0,l.g)(D,f,t.halfSize),(0,l.a)(D,D,t.bounds),P(e,n,D)-u>c)return!1;if((0,l.g)(D,d,t.halfSize),(0,l.a)(D,D,t.bounds),P(e,n,D)-u<a)return!1;const s=t.node;return s.terminals.forAll((t=>_(t))),null!==s.residents&&s.residents.forAll((t=>_(t))),!0}),e,n)}forEachNode(t){this._forEachNode(this._root,(e=>t(e.node,e.bounds,e.halfSize)))}forEachNeighbor(t,e){const n=(0,m.a)(e),s=(0,m.g)(e),r=e=>{const r=this._objectToBoundingSphere(e),i=(0,m.a)(r),o=n+i;(0,l.d)((0,m.g)(r),s)-o*o<=0&&t(e)};this._forEachNode(this._root,(t=>{const e=(0,m.a)(t.bounds),i=n+e;if((0,l.d)((0,m.g)(t.bounds),s)-i*i>0)return!1;const o=t.node;return o.terminals.forAll((t=>r(t))),null!==o.residents&&o.residents.forAll((t=>r(t))),!0})),this.forEachDegenerateObject(r)}_intersectsNode(t,e){return w(e.bounds,2*-e.halfSize,G),w(e.bounds,2*e.halfSize,k),(0,A.yK)(t.origin,t.direction,G,k)}_intersectsNodeWithOffset(t,e,n){return w(e.bounds,2*-e.halfSize,G),w(e.bounds,2*e.halfSize,k),n.applyToMinMax(G,k),(0,A.yK)(t.origin,t.direction,G,k)}_intersectsObject(t,e){const n=this._objectToBoundingSphere(e);return!(n[3]>0)||(0,m.j)(n,t)}_intersectsObjectWithOffset(t,e,n){const s=this._objectToBoundingSphere(e);return!(s[3]>0)||(0,m.j)(n.applyToBoundingSphere(s),t)}_forEachNode(t,e){let n=N.acquire().init(t);const s=[n];for(;0!==s.length;){if(n=s.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&s.push(N.acquire().init(n).advance(t));N.release(n)}}_forEachNodeDepthOrdered(t,e,n,s=x.DepthOrder.FRONT_TO_BACK){let r=N.acquire().init(t);const i=[r];for(function(t,e,n){if(!J.length)for(let t=0;t<8;++t)J.push({index:0,distance:0});for(let n=0;n<8;++n){const s=L[n];J.data[n].index=n,J.data[n].distance=P(t,e,s)}J.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=J.data[t].index}(n,s,K);0!==i.length;){if(r=i.pop(),e(r)&&!r.isLeaf())for(let t=7;t>=0;--t){const e=K[t];r.node.children[e]&&i.push(N.acquire().init(r).advance(e))}N.release(r)}}_remove(t,e,n){V.clear();const s=n.advanceTo(e,((t,e)=>{V.push(t.node),V.push(e)}))?n.node.terminals:n.node.residents;if(s.removeUnordered(t),0===s.length)for(let t=V.length-2;t>=0;t-=2){const e=V.data[t],n=V.data[t+1];if(!this._purge(e,n))break}}_nodeIsEmpty(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}_purge(t,e){return e>=0&&(t.children[e]=null),!!this._nodeIsEmpty(t)&&(null===t.residents&&(t.residents=new M.Z({shrink:!0})),!0)}_add(t,e){e.advanceTo(this._objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const s=N.acquire().init(t);this._add(e.getItemAt(n),s),N.release(s)}}_grow(t,e){if(0!==e&&(F(t,e,(t=>this._objectToBoundingSphere(t)),H),j(H[3])&&!this._fitsInsideTree(H)))if(this._nodeIsEmpty(this._root.node))(0,m.h)(H,this._root.bounds),this._root.halfSize=1.25*H[3];else{const t=this._rootBoundsForRootAsSubNode(H);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(H,t):this._growRootAsSubNode(t),N.release(t)}}_rebuildTree(t,e){(0,l.c)(U,e.bounds),U[3]=e.halfSize,F([t,U],2,(t=>t),X);const n=N.acquire().init(this._root);this._root.initFrom(null,X,1.25*X[3]),this._forEachNode(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),N.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return this._forEachNode(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let s=-1/0;const r=this._root.bounds,i=this._root.halfSize;for(let t=0;t<3;t++){const o=r[t]-i-(n[t]-e),a=n[t]+e-(r[t]+i),c=Math.max(0,Math.ceil(o/(2*i))),h=Math.max(0,Math.ceil(a/(2*i)))+1,u=2**Math.ceil(Math.log(c+h)*Math.LOG2E);s=Math.max(s,u),Y[t].min=c,Y[t].max=h}for(let t=0;t<3;t++){let e=Y[t].min,n=Y[t].max;const o=(s-(e+n))/2;e+=Math.ceil(o),n+=Math.floor(o);const a=r[t]-i-e*i*2;Z[t]=a+(n+e)*i}return Z[3]=s*i*C,N.acquire().initFrom(null,Z,s*i,0)}_growRootAsSubNode(t){const e=this._root.node;(0,l.c)(H,this._root.bounds),H[3]=this._root.halfSize,this._root.init(t),t.advanceTo(H,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,s=0;for(;s<e.length&&null==t;)n=s++,t=e[n];for(;s<e.length;)if(e[s++])return-1;return n}_isDegenerate(t){return!j(this._objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}}class N{constructor(){this.bounds=(0,m.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,s=this.depth){return this.node=(0,h.pC)(t)?t:N.createEmptyNode(),(0,h.pC)(e)&&(0,m.h)(e,this.bounds),this.halfSize=n,this.depth=s,this}advance(t){let e=this.node.children[t];e||(e=N.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=L[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.bounds[3]=this.halfSize*C,this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const s=this._childIndex(t);e&&e(this,s),this.advance(s)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new M.Z({shrink:!0}),residents:new M.Z({shrink:!0})}}static acquire(){return N._pool.acquire()}static release(t){N._pool.release(t)}static clearPool(){N._pool.prune()}}function v(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function z(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function w(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function F(t,e,n,s){if(1===e){const e=n(t[0]);(0,m.h)(e,s)}else{G[0]=1/0,G[1]=1/0,G[2]=1/0,k[0]=-1/0,k[1]=-1/0,k[2]=-1/0;for(let s=0;s<e;s++){const e=n(t[s]);j(e[3])&&(v(G,e),z(k,e))}(0,l.h)(s,G,k,.5),s[3]=Math.max(k[0]-G[0],k[1]-G[1],k[2]-G[2])/2}}function I(t,e){let n,s=1/0;for(let r=0;r<8;++r){const i=P(t,e,B[r]);i<s&&(s=i,n=B[r])}return n}function P(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function j(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}N._pool=new p.Z(N),S=x||(x={}),(E=S.DepthOrder||(S.DepthOrder={}))[E.FRONT_TO_BACK=1]="FRONT_TO_BACK",E[E.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const L=[(0,d.f)(-1,-1,-1),(0,d.f)(1,-1,-1),(0,d.f)(-1,1,-1),(0,d.f)(1,1,-1),(0,d.f)(-1,-1,1),(0,d.f)(1,-1,1),(0,d.f)(-1,1,1),(0,d.f)(1,1,1)],B=[(0,d.f)(-1,-1,-1),(0,d.f)(-1,-1,1),(0,d.f)(-1,1,-1),(0,d.f)(-1,1,1),(0,d.f)(1,-1,-1),(0,d.f)(1,-1,1),(0,d.f)(1,1,-1),(0,d.f)(1,1,1)],C=Math.sqrt(3),q=[null],Z=(0,m.c)(),D=(0,d.c)(),G=(0,d.c)(),k=(0,d.c)(),V=new M.Z,W=(0,m.c)(),H=(0,m.c)(),U=(0,m.c)(),X=(0,m.c)(),Y=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],J=new M.Z,K=[0,0,0,0,0,0,0,0],Q=x;var $=n(212);let tt=class{constructor(){this._idToComponent=new Map,this._components=new Q((t=>t.bounds)),this._edges=new Q((t=>t.bounds)),this._tmpLineSegment=(0,_.Ue)(),this._tmpP1=(0,d.c)(),this._tmpP2=(0,d.c)(),this._tmpP3=(0,d.c)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,u.k_)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>this._addCandidates(t,e,n)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if((0,h.Wi)(t.info)){const{id:e,uid:s}=t;n.push({id:e,uid:s})}}),t.bounds),!n.length)return;const s={components:n},r=await this.remoteClient.invoke("fetchAllEdgeLocations",s,(0,h.Pt)(e,{}));for(const t of r.components)this._setFetchEdgeLocations(t)}async add(t){const e=new nt(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>{n.component===e&&t.push(n)}),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if((0,h.Wi)(e)||t.uid!==e.uid)return;const n=$.n_.createView(t.locations),s=new Array(n.count),r=(0,d.c)(),i=(0,d.c)();for(let o=0;o<n.count;o++){const a=(0,m.c)(),c=(0,m.g)(a);n.position0.getVec(o,r),n.position1.getVec(o,i),(0,l.z)(c,c,r,.5),(0,l.z)(c,c,i,.5),(0,l.a)(c,c,t.origin),a[3]=(0,l.i)(c,r);const h=new st(e,o,a);s[o]=h}this._edges.add(s);const{objectIds:o,origin:a}=t;e.info={locations:n,objectIds:o,origin:a}}_addCandidates(t,e,n){const{locations:s,origin:r,objectIds:i}=e.component.info,o=s.position0.getVec(e.index,this._tmpP1),a=s.position1.getVec(e.index,this._tmpP2);(0,l.a)(o,o,r),(0,l.a)(a,a,r);const c=i[s.componentIndex.get(e.index)];this._addEdgeCandidate(t,c,o,a,n),this._addVertexCandidate(t,c,o,n),this._addVertexCandidate(t,c,a,n)}_addEdgeCandidate(t,e,n,s,r){if(!(t.types&g.r.EDGE))return;const i=(0,m.g)(t.bounds),o=(0,_.zk)(n,s,this._tmpLineSegment),a=(0,_.nF)(o,i,this._tmpP3);if(!(0,m.m)(t.bounds,a))return null;r.push({type:"edge",objectId:e,target:(0,d.a)(a),distance:(0,l.i)(i,a),start:(0,d.a)(n),end:(0,d.a)(s)})}_addVertexCandidate(t,e,n,s){if(!(t.types&g.r.VERTEX))return;const r=(0,m.g)(t.bounds);if(!(0,m.m)(t.bounds,n))return null;s.push({type:"vertex",objectId:e,target:(0,d.a)(n),distance:(0,l.i)(r,n)})}};tt=(0,c._)([(0,f.j)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],tt);const et=tt;class nt{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++nt.uid}}nt.uid=0;class st{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1391,5732,661],{5732:(t,e,n)=>{n.d(e,{a:()=>i,c:()=>s,g:()=>r});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function i(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},46521:(t,e,n)=>{function s(){return[1,0,0,0,1,0,0,0,1]}function r(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,create:s,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},fromValues:function(t,e,n,s,r,i,o,a,c){return[t,e,n,s,r,i,o,a,c]},createView:r},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{a:()=>c,d:()=>_,e:()=>f,f:()=>d,g:()=>M,h:()=>y,i:()=>o,j:()=>T,k:()=>l,m:()=>h,s:()=>i,t:()=>a,v:()=>u,x:()=>O,y:()=>m});var s=n(65617),r=n(46851);function i(t,e,n,s,r,i,o,a,c,h,u,l,f,d,_,m,g){return t[0]=e,t[1]=n,t[2]=s,t[3]=r,t[4]=i,t[5]=o,t[6]=a,t[7]=c,t[8]=h,t[9]=u,t[10]=l,t[11]=f,t[12]=d,t[13]=_,t[14]=m,t[15]=g,t}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function a(t,e){if(t===e){const n=e[1],s=e[2],r=e[3],i=e[6],o=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=s,t[9]=i,t[11]=e[14],t[12]=r,t[13]=o,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){const n=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],h=e[7],u=e[8],l=e[9],f=e[10],d=e[11],_=e[12],m=e[13],g=e[14],p=e[15],M=n*a-s*o,b=n*c-r*o,T=n*h-i*o,y=s*c-r*a,O=s*h-i*a,R=r*h-i*c,S=u*m-l*_,E=u*g-f*_,A=u*p-d*_,x=l*g-f*m,N=l*p-d*m,v=f*p-d*g;let z=M*v-b*N+T*x+y*A-O*E+R*S;return z?(z=1/z,t[0]=(a*v-c*N+h*x)*z,t[1]=(r*N-s*v-i*x)*z,t[2]=(m*R-g*O+p*y)*z,t[3]=(f*O-l*R-d*y)*z,t[4]=(c*A-o*v-h*E)*z,t[5]=(n*v-r*A+i*E)*z,t[6]=(g*T-_*R-p*b)*z,t[7]=(u*R-f*T+d*b)*z,t[8]=(o*N-a*A+h*S)*z,t[9]=(s*A-n*N-i*S)*z,t[10]=(_*O-m*T+p*M)*z,t[11]=(l*T-u*O-d*M)*z,t[12]=(a*E-o*x-c*S)*z,t[13]=(n*x-s*E+r*S)*z,t[14]=(m*b-_*y-g*M)*z,t[15]=(u*y-l*b+f*M)*z,t):null}function h(t,e,n){const s=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],h=e[6],u=e[7],l=e[8],f=e[9],d=e[10],_=e[11],m=e[12],g=e[13],p=e[14],M=e[15];let b=n[0],T=n[1],y=n[2],O=n[3];return t[0]=b*s+T*a+y*l+O*m,t[1]=b*r+T*c+y*f+O*g,t[2]=b*i+T*h+y*d+O*p,t[3]=b*o+T*u+y*_+O*M,b=n[4],T=n[5],y=n[6],O=n[7],t[4]=b*s+T*a+y*l+O*m,t[5]=b*r+T*c+y*f+O*g,t[6]=b*i+T*h+y*d+O*p,t[7]=b*o+T*u+y*_+O*M,b=n[8],T=n[9],y=n[10],O=n[11],t[8]=b*s+T*a+y*l+O*m,t[9]=b*r+T*c+y*f+O*g,t[10]=b*i+T*h+y*d+O*p,t[11]=b*o+T*u+y*_+O*M,b=n[12],T=n[13],y=n[14],O=n[15],t[12]=b*s+T*a+y*l+O*m,t[13]=b*r+T*c+y*f+O*g,t[14]=b*i+T*h+y*d+O*p,t[15]=b*o+T*u+y*_+O*M,t}function u(t,e,n){const s=n[0],r=n[1],i=n[2];if(e===t)t[12]=e[0]*s+e[4]*r+e[8]*i+e[12],t[13]=e[1]*s+e[5]*r+e[9]*i+e[13],t[14]=e[2]*s+e[6]*r+e[10]*i+e[14],t[15]=e[3]*s+e[7]*r+e[11]*i+e[15];else{const n=e[0],o=e[1],a=e[2],c=e[3],h=e[4],u=e[5],l=e[6],f=e[7],d=e[8],_=e[9],m=e[10],g=e[11];t[0]=n,t[1]=o,t[2]=a,t[3]=c,t[4]=h,t[5]=u,t[6]=l,t[7]=f,t[8]=d,t[9]=_,t[10]=m,t[11]=g,t[12]=n*s+h*r+d*i+e[12],t[13]=o*s+u*r+_*i+e[13],t[14]=a*s+l*r+m*i+e[14],t[15]=c*s+f*r+g*i+e[15]}return t}function l(t,e,n){const s=n[0],r=n[1],i=n[2];return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function f(t,e,n,s){let i,o,a,c,h,u,l,f,d,_,m,g,p,M,b,T,y,O,R,S,E,A,x,N,v=s[0],z=s[1],w=s[2],F=Math.sqrt(v*v+z*z+w*w);return F<(0,r.g)()?null:(F=1/F,v*=F,z*=F,w*=F,i=Math.sin(n),o=Math.cos(n),a=1-o,c=e[0],h=e[1],u=e[2],l=e[3],f=e[4],d=e[5],_=e[6],m=e[7],g=e[8],p=e[9],M=e[10],b=e[11],T=v*v*a+o,y=z*v*a+w*i,O=w*v*a-z*i,R=v*z*a-w*i,S=z*z*a+o,E=w*z*a+v*i,A=v*w*a+z*i,x=z*w*a-v*i,N=w*w*a+o,t[0]=c*T+f*y+g*O,t[1]=h*T+d*y+p*O,t[2]=u*T+_*y+M*O,t[3]=l*T+m*y+b*O,t[4]=c*R+f*S+g*E,t[5]=h*R+d*S+p*E,t[6]=u*R+_*S+M*E,t[7]=l*R+m*S+b*E,t[8]=c*A+f*x+g*N,t[9]=h*A+d*x+p*N,t[10]=u*A+_*x+M*N,t[11]=l*A+m*x+b*N,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function _(t,e,n){if(0===e)return o(t);let s,i,a,c=n[0],h=n[1],u=n[2],l=Math.sqrt(c*c+h*h+u*u);return l<(0,r.g)()?null:(l=1/l,c*=l,h*=l,u*=l,s=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=c*c*a+i,t[1]=h*c*a+u*s,t[2]=u*c*a-h*s,t[3]=0,t[4]=c*h*a-u*s,t[5]=h*h*a+i,t[6]=u*h*a+c*s,t[7]=0,t[8]=c*u*a+h*s,t[9]=h*u*a-c*s,t[10]=u*u*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function m(t,e){const n=Math.sin(e),s=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e,n){const s=e[0],r=e[1],i=e[2],o=e[3],a=s+s,c=r+r,h=i+i,u=s*a,l=s*c,f=s*h,d=r*c,_=r*h,m=i*h,g=o*a,p=o*c,M=o*h;return t[0]=1-(d+m),t[1]=l+M,t[2]=f-p,t[3]=0,t[4]=l-M,t[5]=1-(u+m),t[6]=_+g,t[7]=0,t[8]=f+p,t[9]=_-g,t[10]=1-(u+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const p=(0,s.c)();function M(t,e,n,s){const r=e[0],i=e[1],o=e[2],a=e[3],c=r+r,h=i+i,u=o+o,l=r*c,f=r*h,d=r*u,_=i*h,m=i*u,g=o*u,p=a*c,M=a*h,b=a*u,T=s[0],y=s[1],O=s[2];return t[0]=(1-(_+g))*T,t[1]=(f+b)*T,t[2]=(d-M)*T,t[3]=0,t[4]=(f-b)*y,t[5]=(1-(l+g))*y,t[6]=(m+p)*y,t[7]=0,t[8]=(d+M)*O,t[9]=(m-p)*O,t[10]=(1-(l+_))*O,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function b(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function y(t,e){if(t===e)return!0;const n=t[0],s=t[1],i=t[2],o=t[3],a=t[4],c=t[5],h=t[6],u=t[7],l=t[8],f=t[9],d=t[10],_=t[11],m=t[12],g=t[13],p=t[14],M=t[15],b=e[0],T=e[1],y=e[2],O=e[3],R=e[4],S=e[5],E=e[6],A=e[7],x=e[8],N=e[9],v=e[10],z=e[11],w=e[12],F=e[13],I=e[14],P=e[15],j=(0,r.g)();return Math.abs(n-b)<=j*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(s-T)<=j*Math.max(1,Math.abs(s),Math.abs(T))&&Math.abs(i-y)<=j*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(o-O)<=j*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(a-R)<=j*Math.max(1,Math.abs(a),Math.abs(R))&&Math.abs(c-S)<=j*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(h-E)<=j*Math.max(1,Math.abs(h),Math.abs(E))&&Math.abs(u-A)<=j*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(l-x)<=j*Math.max(1,Math.abs(l),Math.abs(x))&&Math.abs(f-N)<=j*Math.max(1,Math.abs(f),Math.abs(N))&&Math.abs(d-v)<=j*Math.max(1,Math.abs(d),Math.abs(v))&&Math.abs(_-z)<=j*Math.max(1,Math.abs(_),Math.abs(z))&&Math.abs(m-w)<=j*Math.max(1,Math.abs(m),Math.abs(w))&&Math.abs(g-F)<=j*Math.max(1,Math.abs(g),Math.abs(F))&&Math.abs(p-I)<=j*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(M-P)<=j*Math.max(1,Math.abs(M),Math.abs(P))}function O(t){const e=(0,r.g)(),n=t[0],s=t[1],i=t[2],o=t[4],a=t[5],c=t[6],h=t[8],u=t[9],l=t[10];return Math.abs(1-(n*n+o*o+h*h))<=e&&Math.abs(1-(s*s+a*a+u*u))<=e&&Math.abs(1-(i*i+c*c+l*l))<=e}const R=h,S=b;Object.freeze(Object.defineProperty({__proto__:null,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},set:i,identity:o,transpose:a,invert:c,adjoint:function(t,e){const n=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],c=e[6],h=e[7],u=e[8],l=e[9],f=e[10],d=e[11],_=e[12],m=e[13],g=e[14],p=e[15];return t[0]=a*(f*p-d*g)-l*(c*p-h*g)+m*(c*d-h*f),t[1]=-(s*(f*p-d*g)-l*(r*p-i*g)+m*(r*d-i*f)),t[2]=s*(c*p-h*g)-a*(r*p-i*g)+m*(r*h-i*c),t[3]=-(s*(c*d-h*f)-a*(r*d-i*f)+l*(r*h-i*c)),t[4]=-(o*(f*p-d*g)-u*(c*p-h*g)+_*(c*d-h*f)),t[5]=n*(f*p-d*g)-u*(r*p-i*g)+_*(r*d-i*f),t[6]=-(n*(c*p-h*g)-o*(r*p-i*g)+_*(r*h-i*c)),t[7]=n*(c*d-h*f)-o*(r*d-i*f)+u*(r*h-i*c),t[8]=o*(l*p-d*m)-u*(a*p-h*m)+_*(a*d-h*l),t[9]=-(n*(l*p-d*m)-u*(s*p-i*m)+_*(s*d-i*l)),t[10]=n*(a*p-h*m)-o*(s*p-i*m)+_*(s*h-i*a),t[11]=-(n*(a*d-h*l)-o*(s*d-i*l)+u*(s*h-i*a)),t[12]=-(o*(l*g-f*m)-u*(a*g-c*m)+_*(a*f-c*l)),t[13]=n*(l*g-f*m)-u*(s*g-r*m)+_*(s*f-r*l),t[14]=-(n*(a*g-c*m)-o*(s*g-r*m)+_*(s*c-r*a)),t[15]=n*(a*f-c*l)-o*(s*f-r*l)+u*(s*c-r*a),t},determinant:function(t){const e=t[0],n=t[1],s=t[2],r=t[3],i=t[4],o=t[5],a=t[6],c=t[7],h=t[8],u=t[9],l=t[10],f=t[11],d=t[12],_=t[13],m=t[14],g=t[15];return(e*o-n*i)*(l*g-f*m)-(e*a-s*i)*(u*g-f*_)+(e*c-r*i)*(u*m-l*_)+(n*a-s*o)*(h*g-f*d)-(n*c-r*o)*(h*m-l*d)+(s*c-r*a)*(h*_-u*d)},multiply:h,translate:u,scale:l,rotate:f,rotateX:function(t,e,n){const s=Math.sin(n),r=Math.cos(n),i=e[4],o=e[5],a=e[6],c=e[7],h=e[8],u=e[9],l=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*r+h*s,t[5]=o*r+u*s,t[6]=a*r+l*s,t[7]=c*r+f*s,t[8]=h*r-i*s,t[9]=u*r-o*s,t[10]=l*r-a*s,t[11]=f*r-c*s,t},rotateY:function(t,e,n){const s=Math.sin(n),r=Math.cos(n),i=e[0],o=e[1],a=e[2],c=e[3],h=e[8],u=e[9],l=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*r-h*s,t[1]=o*r-u*s,t[2]=a*r-l*s,t[3]=c*r-f*s,t[8]=i*s+h*r,t[9]=o*s+u*r,t[10]=a*s+l*r,t[11]=c*s+f*r,t},rotateZ:function(t,e,n){const s=Math.sin(n),r=Math.cos(n),i=e[0],o=e[1],a=e[2],c=e[3],h=e[4],u=e[5],l=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*r+h*s,t[1]=o*r+u*s,t[2]=a*r+l*s,t[3]=c*r+f*s,t[4]=h*r-i*s,t[5]=u*r-o*s,t[6]=l*r-a*s,t[7]=f*r-c*s,t},fromTranslation:d,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotation:_,fromXRotation:m,fromYRotation:function(t,e){const n=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotationTranslation:g,fromQuat2:function(t,e){const n=p,s=-e[0],r=-e[1],i=-e[2],o=e[3],a=e[4],c=e[5],h=e[6],u=e[7],l=s*s+r*r+i*i+o*o;return l>0?(n[0]=2*(a*o+u*s+c*i-h*r)/l,n[1]=2*(c*o+u*r+h*s-a*i)/l,n[2]=2*(h*o+u*i+a*r-c*s)/l):(n[0]=2*(a*o+u*s+c*i-h*r),n[1]=2*(c*o+u*r+h*s-a*i),n[2]=2*(h*o+u*i+a*r-c*s)),g(t,e,n),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},getScaling:function(t,e){const n=e[0],s=e[1],r=e[2],i=e[4],o=e[5],a=e[6],c=e[8],h=e[9],u=e[10];return t[0]=Math.sqrt(n*n+s*s+r*r),t[1]=Math.sqrt(i*i+o*o+a*a),t[2]=Math.sqrt(c*c+h*h+u*u),t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let s=0;return n>0?(s=2*Math.sqrt(n+1),t[3]=.25*s,t[0]=(e[6]-e[9])/s,t[1]=(e[8]-e[2])/s,t[2]=(e[1]-e[4])/s):e[0]>e[5]&&e[0]>e[10]?(s=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/s,t[0]=.25*s,t[1]=(e[1]+e[4])/s,t[2]=(e[8]+e[2])/s):e[5]>e[10]?(s=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/s,t[0]=(e[1]+e[4])/s,t[1]=.25*s,t[2]=(e[6]+e[9])/s):(s=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/s,t[0]=(e[8]+e[2])/s,t[1]=(e[6]+e[9])/s,t[2]=.25*s),t},fromRotationTranslationScale:M,fromRotationTranslationScaleOrigin:function(t,e,n,s,r){const i=e[0],o=e[1],a=e[2],c=e[3],h=i+i,u=o+o,l=a+a,f=i*h,d=i*u,_=i*l,m=o*u,g=o*l,p=a*l,M=c*h,b=c*u,T=c*l,y=s[0],O=s[1],R=s[2],S=r[0],E=r[1],A=r[2],x=(1-(m+p))*y,N=(d+T)*y,v=(_-b)*y,z=(d-T)*O,w=(1-(f+p))*O,F=(g+M)*O,I=(_+b)*R,P=(g-M)*R,j=(1-(f+m))*R;return t[0]=x,t[1]=N,t[2]=v,t[3]=0,t[4]=z,t[5]=w,t[6]=F,t[7]=0,t[8]=I,t[9]=P,t[10]=j,t[11]=0,t[12]=n[0]+S-(x*S+z*E+I*A),t[13]=n[1]+E-(N*S+w*E+P*A),t[14]=n[2]+A-(v*S+F*E+j*A),t[15]=1,t},fromQuat:function(t,e){const n=e[0],s=e[1],r=e[2],i=e[3],o=n+n,a=s+s,c=r+r,h=n*o,u=s*o,l=s*a,f=r*o,d=r*a,_=r*c,m=i*o,g=i*a,p=i*c;return t[0]=1-l-_,t[1]=u+p,t[2]=f-g,t[3]=0,t[4]=u-p,t[5]=1-h-_,t[6]=d+m,t[7]=0,t[8]=f+g,t[9]=d-m,t[10]=1-h-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,s,r,i,o){const a=1/(n-e),c=1/(r-s),h=1/(i-o);return t[0]=2*i*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*c,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(r+s)*c,t[10]=(o+i)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*h,t[15]=0,t},perspective:function(t,e,n,s,r){const i=1/Math.tan(e/2);let o;return t[0]=i/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=r&&r!==1/0?(o=1/(s-r),t[10]=(r+s)*o,t[14]=2*r*s*o):(t[10]=-1,t[14]=-2*s),t},perspectiveFromFieldOfView:function(t,e,n,s){const r=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),c=2/(o+a),h=2/(r+i);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(o-a)*c*.5,t[9]=(r-i)*h*.5,t[10]=s/(n-s),t[11]=-1,t[12]=0,t[13]=0,t[14]=s*n/(n-s),t[15]=0,t},ortho:function(t,e,n,s,r,i,o){const a=1/(e-n),c=1/(s-r),h=1/(i-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*a,t[13]=(r+s)*c,t[14]=(o+i)*h,t[15]=1,t},lookAt:function(t,e,n,s){let i,a,c,h,u,l,f,d,_,m;const g=e[0],p=e[1],M=e[2],b=s[0],T=s[1],y=s[2],O=n[0],R=n[1],S=n[2],E=(0,r.g)();return Math.abs(g-O)<E&&Math.abs(p-R)<E&&Math.abs(M-S)<E?o(t):(f=g-O,d=p-R,_=M-S,m=1/Math.sqrt(f*f+d*d+_*_),f*=m,d*=m,_*=m,i=T*_-y*d,a=y*f-b*_,c=b*d-T*f,m=Math.sqrt(i*i+a*a+c*c),m?(m=1/m,i*=m,a*=m,c*=m):(i=0,a=0,c=0),h=d*c-_*a,u=_*i-f*c,l=f*a-d*i,m=Math.sqrt(h*h+u*u+l*l),m?(m=1/m,h*=m,u*=m,l*=m):(h=0,u=0,l=0),t[0]=i,t[1]=h,t[2]=f,t[3]=0,t[4]=a,t[5]=u,t[6]=d,t[7]=0,t[8]=c,t[9]=l,t[10]=_,t[11]=0,t[12]=-(i*g+a*p+c*M),t[13]=-(h*g+u*p+l*M),t[14]=-(f*g+d*p+_*M),t[15]=1,t)},targetTo:function(t,e,n,s){const r=e[0],i=e[1],o=e[2],a=s[0],c=s[1],h=s[2];let u=r-n[0],l=i-n[1],f=o-n[2],d=u*u+l*l+f*f;d>0&&(d=1/Math.sqrt(d),u*=d,l*=d,f*=d);let _=c*f-h*l,m=h*u-a*f,g=a*l-c*u;return d=_*_+m*m+g*g,d>0&&(d=1/Math.sqrt(d),_*=d,m*=d,g*=d),t[0]=_,t[1]=m,t[2]=g,t[3]=0,t[4]=l*g-f*m,t[5]=f*_-u*g,t[6]=u*m-l*_,t[7]=0,t[8]=u,t[9]=l,t[10]=f,t[11]=0,t[12]=r,t[13]=i,t[14]=o,t[15]=1,t},str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},subtract:b,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,s){return t[0]=e[0]+n[0]*s,t[1]=e[1]+n[1]*s,t[2]=e[2]+n[2]*s,t[3]=e[3]+n[3]*s,t[4]=e[4]+n[4]*s,t[5]=e[5]+n[5]*s,t[6]=e[6]+n[6]*s,t[7]=e[7]+n[7]*s,t[8]=e[8]+n[8]*s,t[9]=e[9]+n[9]*s,t[10]=e[10]+n[10]*s,t[11]=e[11]+n[11]*s,t[12]=e[12]+n[12]*s,t[13]=e[13]+n[13]*s,t[14]=e[14]+n[14]*s,t[15]=e[15]+n[15]*s,t},exactEquals:T,equals:y,isOrthoNormal:O,mul:R,sub:S},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function s(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(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]]}function i(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>o,a:()=>i,b:()=>r,c:()=>s});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,create:s,clone:r,fromValues:function(t,e,n,s,r,i,o,a,c,h,u,l,f,d,_,m){return[t,e,n,s,r,i,o,a,c,h,u,l,f,d,_,m]},createView:i,IDENTITY:o},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function s(){return[0,0,0,1]}function r(t){return[t[0],t[1],t[2],t[3]]}function i(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>o,a:()=>s,b:()=>r,c:()=>i});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,create:s,clone:r,fromValues:function(t,e,n,s){return[t,e,n,s]},createView:i,IDENTITY:o},Symbol.toStringTag,{value:"Module"}))},29268:(t,e,n)=>{n.d(e,{a:()=>M,c:()=>g,g:()=>b,h:()=>p,j:()=>O,m:()=>v}),n(80442);var s,r,i=n(92604),o=n(22021),a=n(70586),c=n(52138),h=n(17896),u=n(65617),l=n(98766),f=n(88669);(r=s||(s={}))[r.X=0]="X",r[r.Y=1]="Y",r[r.Z=2]="Z";var d=n(78341),_=n(61277),m=n(12981);function g(){return(0,f.c)()}function p(t,e=g()){return(0,l.c)(e,t)}function M(t){return t[3]}function b(t){return t}function T(t,e,n){if((0,a.Wi)(e))return!1;const{origin:s,direction:r}=e,i=y;i[0]=s[0]-t[0],i[1]=s[1]-t[1],i[2]=s[2]-t[2];const o=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===o)return!1;const c=2*(r[0]*i[0]+r[1]*i[1]+r[2]*i[2]),h=c*c-4*o*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-t[3]*t[3]);if(h<0)return!1;const u=Math.sqrt(h);let l=(-c-u)/(2*o);const f=(-c+u)/(2*o);return(l<0||f<l&&f>0)&&(l=f),!(l<0||(n&&(n[0]=s[0]+r[0]*l,n[1]=s[1]+r[1]*l,n[2]=s[2]+r[2]*l),0))}const y=(0,u.c)();function O(t,e){return T(t,e,null)}function R(t,e,n){const s=m.WM.get(),r=m.MP.get();(0,h.f)(s,e.origin,e.direction);const i=M(t);(0,h.f)(n,s,e.origin),(0,h.g)(n,n,1/(0,h.l)(n)*i);const o=E(t,e.origin),a=(0,_.EU)(e.origin,n);return(0,c.d)(r,a+o,s),(0,h.m)(n,n,r),n}function S(t,e,n){const s=(0,h.b)(m.WM.get(),e,t),r=(0,h.g)(m.WM.get(),s,t[3]/(0,h.l)(s));return(0,h.a)(n,r,t)}function E(t,e){const n=(0,h.b)(m.WM.get(),e,t),s=(0,h.l)(n),r=M(t),i=r+Math.abs(r-s);return(0,o.ZF)(r/i)}const A=(0,u.c)();function x(t,e,n,r){const i=(0,h.b)(A,e,t);switch(n){case s.X:{const t=(0,o.jE)(i,A)[2];return(0,h.s)(r,-Math.sin(t),Math.cos(t),0)}case s.Y:{const t=(0,o.jE)(i,A),e=t[1],n=t[2],s=Math.sin(e);return(0,h.s)(r,-s*Math.cos(n),-s*Math.sin(n),Math.cos(e))}case s.Z:return(0,h.n)(r,i);default:return}}function N(t,e){const n=(0,h.b)(z,e,t);return(0,h.l)(n)-t[3]}function v(t,e){const n=(0,h.d)(t,e),s=M(t);return n<=s*s}const z=(0,u.c)(),w=g();Object.freeze(Object.defineProperty({__proto__:null,create:g,copy:p,fromCenterAndRadius:function(t,e){return(0,f.f)(t[0],t[1],t[2],e)},wrap:function(t){return t},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},getRadius:M,getCenter:b,fromValues:function(t,e,n,s){return(0,f.f)(t,e,n,s)},elevate:function(t,e,n){return t!==n&&(0,h.c)(n,t),n[3]=t[3]+e,n},setExtent:function(t,e,n){return i.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:p(t,n)},intersectRay:T,intersectsRay:O,intersectRayClosestSilhouette:function(t,e,n){if(T(t,e,n))return n;const s=R(t,e,m.WM.get());return(0,h.a)(n,e.origin,(0,h.g)(m.WM.get(),e.direction,(0,h.i)(e.origin,s)/(0,h.l)(e.direction))),n},closestPointOnSilhouette:R,closestPoint:function(t,e,n){return T(t,e,n)?n:((0,d.JI)(e,t,n),S(t,n,n))},projectPoint:S,distanceToSilhouette:function(t,e){const n=(0,h.b)(m.WM.get(),e,t),s=(0,h.p)(n),r=t[3]*t[3];return Math.sqrt(Math.abs(s-r))},angleToSilhouette:E,axisAt:x,altitudeAt:N,setAltitudeAt:function(t,e,n,r){const i=N(t,e),o=x(t,e,s.Z,z),a=(0,h.g)(z,o,n-i);return(0,h.a)(r,e,a)},containsPoint:v,tmpSphere:w},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function s(){return[0,0]}function r(t,e){return[t,e]}function i(t,e){return new Float64Array(t,e,2)}function o(){return r(1,1)}function a(){return r(1,0)}function c(){return r(0,1)}n.d(e,{Z:()=>h,a:()=>s,c:()=>i});const h=[0,0],u=o(),l=a(),f=c();Object.freeze(Object.defineProperty({__proto__:null,create:s,clone:function(t){return[t[0],t[1]]},fromValues:r,fromArray:function(t){const e=[0,0],n=Math.min(2,t.length);for(let s=0;s<n;++s)e[s]=t[s];return e},createView:i,zeros:function(){return[0,0]},ones:o,unitX:a,unitY:c,ZEROS:h,ONES:u,UNIT_X:l,UNIT_Y:f},Symbol.toStringTag,{value:"Module"}))},88669:(t,e,n)=>{function s(){return[0,0,0,0]}function r(t,e,n,s){return[t,e,n,s]}function i(t,e){return new Float64Array(t,e,4)}function o(){return r(1,1,1,1)}function a(){return r(1,0,0,0)}function c(){return r(0,1,0,0)}function h(){return r(0,0,1,0)}function u(){return r(0,0,0,1)}n.d(e,{a:()=>i,c:()=>s,f:()=>r});const l=o(),f=a(),d=c(),_=h(),m=u();Object.freeze(Object.defineProperty({__proto__:null,create:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},fromValues:r,fromArray:function(t){const e=[0,0,0,0],n=Math.min(4,t.length);for(let s=0;s<n;++s)e[s]=t[s];return e},createView:i,zeros:function(){return[0,0,0,0]},ones:o,unitX:a,unitY:c,unitZ:h,unitW:u,ZEROS:[0,0,0,0],ONES:l,UNIT_X:f,UNIT_Y:d,UNIT_Z:_,UNIT_W:m},Symbol.toStringTag,{value:"Module"}))},69801:(t,e,n)=>{n.d(e,{WJ:()=>c,Xq:()=>a});var s,r,i=n(70586),o=n(44553);(r=s||(s={}))[r.ALL=0]="ALL",r[r.SOME=1]="SOME";class a{constructor(t,e,n){this._namespace=t,this._storage=e,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",n&&(this._storage.registerRemoveFunc(this._namespace,n),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(t,e,n,s=0){this._storage.put(this._namespace+t,e,n,s)}get(t){const e=this._storage.get(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}pop(t){const e=this._storage.pop(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,n){this._storage.updateSize(this._namespace+t,e,n)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class c{constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new o.Z,this._users=new o.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get size(){return this._size}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimit()}put(t,e,n,r){const i=this._db.get(t);if(i&&(this._size-=i.size,this._db.delete(t),i.entry!==e&&this._notifyRemove(t,i.entry,s.ALL)),n>this._maxSize)return void this._notifyRemove(t,e,s.ALL);if(void 0===e)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return void console.warn("Refusing to cache entry with invalid size "+n);const o=1+Math.max(r,-3)- -3;this._db.set(t,{entry:e,size:n,lifetime:o,lives:o}),this._size+=n,this._checkSizeLimit()}updateSize(t,e,n){const r=this._db.get(t);if(r&&r.entry===e){for(this._size-=r.size;n>this._maxSize;){const r=this._notifyRemove(t,e,s.SOME);if(!((0,i.pC)(r)&&r>0))return void this._db.delete(t);n=r}r.size=n,this._size+=n,this._checkSizeLimit()}}pop(t){const e=this._db.get(t);if(e)return this._size-=e.size,this._db.delete(t),++this._hit,e.entry;++this._miss}get(t){const e=this._db.get(t);if(void 0!==e)return this._db.delete(t),e.lives=e.lifetime,this._db.set(t,e),++this._hit,e.entry;++this._miss}getStats(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},n=new Array;this._db.forEach(((t,s)=>{const r=t.lifetime;n[r]=(n[r]||0)+t.size,this._users.forAll((n=>{const r=n.namespace;if(s.startsWith(r)){const n=e[r]||0;e[r]=n+t.size}}))}));const s={};this._users.forAll((t=>{const n=t.namespace;if(!isNaN(t.hitRate)&&t.hitRate>0){const r=e[n]||0;e[n]=r,s[n]=Math.round(100*t.hitRate)+"%"}else s[n]="0%"}));const r=Object.keys(e);r.sort(((t,n)=>e[n]-e[t])),r.forEach((n=>t[n]=Math.round(e[n]/2**20)+"MB / "+s[n]));for(let e=n.length-1;e>=0;--e){const s=n[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this.size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){this._db.forEach(((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,s.ALL))}))}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,s.ALL))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,n){let s;return this._removeFuncs.some((r=>{if(t.startsWith(r[0])){const t=r[1](e,n);return"number"==typeof t&&(s=t),!0}return!1})),s}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[t,e]of this._db){if(this._db.delete(t),e.lives<=1){this._size-=e.size;const n=this._notifyRemove(t,e.entry,s.SOME);(0,i.pC)(n)&&n>0&&(this._size+=n,e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e);if(this._size<=.9*this.maxSize)return}}}},22807:(t,e,n)=>{n.d(e,{x:()=>r});var s=n(41213);class r{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,s.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},10661:(t,e,n)=>{n.d(e,{s:()=>r});var s=n(39020);class r{constructor(){this._observers=[]}observe(t){return this._observers.includes(t)||this._observers.push(t),new s.X(this._observers,t)}notify(){const t=this._observers.slice();for(let e=0;e<t.length;++e){const n=t[e];n.onInvalidated(),n.onCommitted()}}}},43090:(t,e,n)=>{function s(t){return 32+t.length}function r(t){if(!t)return 0;let e=c;for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];switch(typeof r){case"string":e+=s(r);break;case"number":e+=16;break;case"boolean":e+=4}}return e}function i(t){if(!t)return 0;if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return 32+8*e;let n=h;for(let s=0;s<e;s++)n+=o(t[s]);return n}(t);let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=o(t[n]));return e}function o(t){switch(typeof t){case"object":return i(t);case"string":return s(t);case"number":return 16;case"boolean":return 4;default:return 8}}function a(t,e){return h+t.length*e}n.d(e,{Ul:()=>i,Y8:()=>u,do:()=>a,f2:()=>r});const c=32,h=32;var u;!function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(u||(u={}))},16996:(t,e,n)=>{n.d(e,{Ue:()=>c,nF:()=>u,zk:()=>h});var s=n(22021),r=n(22807),i=n(17896),o=n(65617),a=n(12981);function c(t){return t?{origin:(0,o.a)(t.origin),vector:(0,o.a)(t.vector)}:{origin:(0,o.c)(),vector:(0,o.c)()}}function h(t,e,n=c()){return(0,i.c)(n.origin,t),(0,i.b)(n.vector,e,t),n}function u(t,e,n){return function(t,e,n,r,o){const{vector:c,origin:h}=t,u=(0,i.b)(a.WM.get(),e,h),l=(0,i.e)(c,u)/(0,i.p)(c);return(0,i.g)(o,c,(0,s.uZ)(l,0,1)),(0,i.a)(o,o,t.origin)}(t,e,0,0,n)}(0,o.c)(),(0,o.c)(),new r.x((()=>c()))},51806:(t,e,n)=>{n.d(e,{aX:()=>A});var s=n(68773),r=n(20102),i=n(92604),o=n(70586),a=n(38913),c=n(58901),h=n(82971),u=n(33955);const l={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new c.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:h.Z.WebMercator}),minus180Line:new c.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:h.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new c.Z({paths:[[[180,-180],[180,180]]],spatialReference:h.Z.WGS84}),minus180Line:new c.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:h.Z.WGS84})}};function f(t,e){return Math.ceil((t-e)/(2*e))}function d(t,e){const n=_(t);for(const t of n)for(const n of t)n[0]+=e;return t}function _(t){return(0,u.oU)(t)?t.rings:t.paths}var m=n(8744),g=n(40488),p=(n(66577),n(3172)),M=n(11282),b=n(17452);const T=i.Z.getLogger("esri.geometry.support.normalizeUtils");function y(t){return"polygon"===t[0].type}function O(t){return"polyline"===t[0].type}function R(t,e,n){if(e){const e=function(t,e){if(!(t instanceof c.Z||t instanceof a.Z)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw T.error(t),new r.Z(t)}const n=_(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const r=t[s][0],i=t[s][1],o=t[s+1][0],a=t[s+1][1],c=Math.sqrt((o-r)*(o-r)+(a-i)*(a-i)),h=(a-i)/c,u=(o-r)/c,l=c/e;if(l>1){for(let t=1;t<=l-1;t++){const s=t*e,o=u*s+r,a=h*s+i;n.push([o,a])}const t=(c+Math.floor(l-1)*e)/2,s=u*t+r,o=h*t+i;n.push([s,o])}n.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.Z({rings:s,spatialReference:t.spatialReference}):new c.Z({paths:s,spatialReference:t.spatialReference})}(t,1e6);t=(0,g.Sx)(e,!0)}return n&&(t=d(t,n)),t}function S(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=f(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=f(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=f(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=f(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function E(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const r=e.cutIndexes[s],i=e.geometries[s],o=_(i);for(let t=0;t<o.length;t++){const e=o[t];e.some((n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*f(n,180);for(let n=0;n<e.length;n++){const e=i.getPoint(t,n);i.setPoint(t,n,e.clone().offset(s,0))}return!0}}))}if(r===n){if(y(t))for(const e of _(i))t[r]=t[r].addRing(e);else if(O(t))for(const e of _(i))t[r]=t[r].addPath(e)}else n=r,t[r]=i}return t}async function A(t,e,n){if(!Array.isArray(t))return A([t],e);e&&"string"!=typeof e&&T.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof e?e:e?.url??s.Z.geometryServiceUrl;let i,h,_,y,O,x,N,v,z=0;const w=[],F=[];for(const e of t)if((0,o.Wi)(e))F.push(e);else if(i||(i=e.spatialReference,h=(0,m.C5)(i),_=i.isWebMercator,x=_?102100:4326,y=l[x].maxX,O=l[x].minX,N=l[x].plus180Line,v=l[x].minus180Line),h)if("mesh"===e.type)F.push(e);else if("point"===e.type)F.push(S(e.clone(),y,O));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map((t=>S(t,y,O))),F.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,h);F.push(t.rings?new a.Z(t):t)}else if(e.extent){const t=e.extent,n=f(t.xmin,O)*(2*y);let s=0===n?e.clone():d(e.clone(),n);t.offset(n,0),t.intersects(N)&&t.xmax!==y?(z=t.xmax>z?t.xmax:z,s=R(s,_),w.push(s),F.push("cut")):t.intersects(v)&&t.xmin!==O?(z=t.xmax*(2*y)>z?t.xmax*(2*y):z,s=R(s,_,360),w.push(s),F.push("cut")):F.push(s)}else F.push(e.clone());else F.push(e);let I=f(z,y),P=-90;const j=I,L=new c.Z;for(;I>0;){const t=360*I-180;L.addPath([[t,P],[t,-1*P]]),P*=-1,I--}if(w.length>0&&j>0){const e=E(w,await async function(t,e,n,s){const r=(0,M.en)(t),i=e[0].spatialReference,o={...s,query:{...r.query,f:"json",sr:JSON.stringify(i),target:JSON.stringify({geometryType:(0,u.Ji)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,p.default)(r.path+"/cut",o),{cutIndexes:c,geometries:h=[]}=a.data;return{cutIndexes:c,geometries:h.map((t=>{const e=(0,u.im)(t);return e.spatialReference=i,e}))}}(r,w,L,n)),s=[],i=[];for(let n=0;n<F.length;n++){const r=F[n];if("cut"!==r)i.push(r);else{const r=e.shift(),a=t[n];(0,o.pC)(a)&&"polygon"===a.type&&a.rings&&a.rings.length>1&&r.rings.length>=a.rings.length?(s.push(r),i.push("simplify")):i.push(_?(0,g.$)(r):r)}}if(!s.length)return i;const a=await async function(t,e,n){const s="string"==typeof t?(0,b.mN)(t):t,r=e[0].spatialReference,i=(0,u.Ji)(e[0]),o={...n,query:{...s.query,f:"json",sr:r.wkid?r.wkid:JSON.stringify(r),geometries:JSON.stringify((c=e,{geometryType:(0,u.Ji)(c[0]),geometries:c.map((t=>t.toJSON()))}))}},{data:a}=await(0,p.default)(s.path+"/simplify",o);var c;return function(t,e,n){const s=(0,u.q9)(e);return t.map((t=>{const e=s.fromJSON(t);return e.spatialReference=n,e}))}(a.geometries,i,r)}(r,s,n),c=[];for(let t=0;t<i.length;t++){const e=i[t];"simplify"!==e?c.push(e):c.push(_?(0,g.$)(a.shift()):a.shift())}return c}const B=[];for(let t=0;t<F.length;t++){const e=F[t];if("cut"!==e)B.push(e);else{const t=w.shift();B.push(!0===_?(0,g.$)(t):t)}}return B}},62073:(t,e,n)=>{n(22021),n(17896);var s,r,i=n(65617);n(29268),n(61277),n(12981),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(r=s||(s={}))[r.NONE=0]="NONE",r[r.CLAMP=1]="CLAMP",r[r.INFINITE_MIN=4]="INFINITE_MIN",r[r.INFINITE_MAX=8]="INFINITE_MAX",s.INFINITE_MIN,s.INFINITE_MAX,s.INFINITE_MAX},78341:(t,e,n)=>{n.d(e,{JI:()=>h,Ue:()=>o,re:()=>c}),n(67676);var s=n(22807),r=n(17896),i=n(65617);function o(t){return t?a((0,i.a)(t.origin),(0,i.a)(t.direction)):a((0,i.c)(),(0,i.c)())}function a(t,e){return{origin:t,direction:e}}function c(t,e){const n=u.get();return n.origin=t,n.direction=e,n}function h(t,e,n){const s=(0,r.e)(t.direction,(0,r.b)(n,e,t.origin));return(0,r.a)(n,t.origin,(0,r.g)(n,t.direction,s)),n}n(12981);const u=new s.x((()=>o()))},61277:(t,e,n)=>{n.d(e,{EU:()=>o});var s=n(22021),r=n(17896),i=n(65617);function o(t,e){const n=(0,r.e)(t,e)/((0,r.l)(t)*(0,r.l)(e));return-(0,s.ZF)(n)}(0,i.c)(),(0,i.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>_,WM:()=>d});var s=n(43090),r=n(41213),i=n(46521),o=n(13598),a=n(94961),c=n(97323),h=n(65617),u=n(88669);class l{constructor(t,e,n){this._itemByteSize=t,this._itemCreate=e,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(n/this._itemByteSize)}get(){0===this._itemsPtr&&(0,r.Y)((()=>this._reset()));const t=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=t;){const t=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let e=0;e<this._itemsPerBuffer;++e)this._items.push(this._itemCreate(t,e*this._itemByteSize));this._buffers.push(t)}return this._items[this._itemsPtr++]}_reset(){const t=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>t;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(t=f){return new l(16,c.c,t)}static createVec3f64(t=f){return new l(24,h.b,t)}static createVec4f64(t=f){return new l(32,u.a,t)}static createMat3f64(t=f){return new l(72,i.a,t)}static createMat4f64(t=f){return new l(128,o.a,t)}static createQuatf64(t=f){return new l(32,a.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const f=4*s.Y8.KILOBYTES,d=(l.createVec2f64(),l.createVec3f64()),_=(l.createVec4f64(),l.createMat3f64(),l.createMat4f64());l.createQuatf64()},11282:(t,e,n)=>{n.d(e,{cv:()=>a,en:()=>o,lA:()=>i});var s=n(22974),r=n(17452);function i(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function o(t){return"string"==typeof t?(0,r.mN)(t):(0,s.d9)(t)}function a(t,e,n){const s={};for(const r in t){if("declaredClass"===r)continue;const i=t[r];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){s[r]=[];for(let t=0;t<i.length;t++)s[r][t]=a(i[t])}else if("object"==typeof i)if(i.toJSON){const t=i.toJSON(n&&n[r]);s[r]=e?t:JSON.stringify(t)}else s[r]=e?i:JSON.stringify(i);else s[r]=i}return s}},11726:(t,e,n)=>{n.d(e,{hu:()=>r,yK:()=>i}),n(97323),n(98766),(0,n(88669).c)();class s{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function r(t,e){if(!t)throw e=e||"assert",console.log(new Error(e).stack),new s(e)}function i(t,e,n,s){let r,i=(n[0]-t[0])/e[0],o=(s[0]-t[0])/e[0];i>o&&(r=i,i=o,o=r);let a=(n[1]-t[1])/e[1],c=(s[1]-t[1])/e[1];if(a>c&&(r=a,a=c,c=r),i>c||a>o)return!1;a>i&&(i=a),c<o&&(o=c);let h=(n[2]-t[2])/e[2],u=(s[2]-t[2])/e[2];return h>u&&(r=h,h=u,u=r),!(i>u||h>o||(u<o&&(o=u),o<0))}},73248:(t,e,n)=>{n.r(e),n.d(e,{default:()=>nt});var s,r,i,o,a,c=n(43697),h=n(70586),u=n(95330),l=(n(92604),n(75215),n(67676),n(20102),n(80442),n(52011)),f=n(17896),d=n(65617),_=n(16996),m=n(29268),g=n(26993),p=n(71143),M=n(44553),b=n(22807),T=(n(52138),n(98766),n(88669)),y=n(78341);function O(t){return t?{ray:(0,y.Ue)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,y.Ue)(),c0:0,c1:Number.MAX_VALUE}}function R(t,e){for(let n=0;n<o.NUM;n++){const s=t[n];if(s[0]*e[0]+s[1]*e[1]+s[2]*e[2]+s[3]>=e[3])return!1}return!0}n(12981),new b.x((()=>O())),n(62073),(i=s||(s={}))[i.LEFT=0]="LEFT",i[i.RIGHT=1]="RIGHT",i[i.BOTTOM=2]="BOTTOM",i[i.TOP=3]="TOP",i[i.NEAR=4]="NEAR",i[i.FAR=5]="FAR",function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(r||(r={})),r.FAR_BOTTOM_RIGHT,r.NEAR_BOTTOM_RIGHT,r.NEAR_BOTTOM_LEFT,r.FAR_BOTTOM_LEFT,r.NEAR_BOTTOM_LEFT,r.NEAR_BOTTOM_RIGHT,r.NEAR_TOP_RIGHT,r.NEAR_TOP_LEFT,r.FAR_BOTTOM_RIGHT,r.FAR_BOTTOM_LEFT,r.FAR_TOP_LEFT,r.FAR_TOP_RIGHT,r.NEAR_BOTTOM_RIGHT,r.FAR_BOTTOM_RIGHT,r.FAR_TOP_RIGHT,r.NEAR_TOP_RIGHT,r.FAR_BOTTOM_LEFT,r.NEAR_BOTTOM_LEFT,r.NEAR_TOP_LEFT,r.FAR_TOP_LEFT,r.FAR_TOP_LEFT,r.NEAR_TOP_LEFT,r.NEAR_TOP_RIGHT,r.FAR_TOP_RIGHT,function(t){t[t.NUM=6]="NUM"}(o||(o={})),function(t){t[t.NUM=8]="NUM"}(a||(a={})),(0,T.f)(-1,-1,-1,1),(0,T.f)(1,-1,-1,1),(0,T.f)(1,1,-1,1),(0,T.f)(-1,1,-1,1),(0,T.f)(-1,-1,1,1),(0,T.f)(1,-1,1,1),(0,T.f)(1,1,1,1),(0,T.f)(-1,1,1,1),new b.x(O),(0,d.c)(),(0,d.c)(),(0,d.c)(),(0,d.c)(),(0,d.c)(),(0,d.c)(),(0,d.c)(),(0,d.c)();var S,E,A=n(11726);class x{constructor(t,e){this._objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new N,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}destroy(){this._degenerateObjects.clear(),N.clearPool(),q[0]=null,V.prune(),J.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=N.acquire();for(let s=0;s<e;s++){const e=t[s];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}N.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=N.acquire();for(const s of t){const t=(0,h.pC)(e)?e:(0,m.h)(this._objectToBoundingSphere(s),W);j(t[3])?(n.init(this._root),this._remove(s,t,n)):this._degenerateObjects.delete(s)}N.release(n),this._shrink()}update(t,e){if(!j(e[3])&&this._isDegenerate(t))return;const n=function(t){return q[0]=t,q}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const s=(0,y.re)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNode(s,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(s,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(s,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,s){const r=(0,y.re)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNodeWithOffset(r,t,s))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(r,t,s)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(r,t,s)&&n(t)})),!0}))}forEach(t){this._forEachNode(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,s=(()=>!0),r=1/0){let i=1/0,o=1/0,a=null;const c=I(t,e),h=c=>{if(--r,!s(c))return;const h=this._objectToBoundingSphere(c);if(!R(n,h))return;const u=P(t,e,(0,m.g)(h)),l=u-h[3],f=u+h[3];l<i&&(i=l,o=f,a=c)};return this._forEachNodeDepthOrdered(this._root,(s=>{if(r<=0||!R(n,s.bounds))return!1;if((0,f.g)(D,c,s.halfSize),(0,f.a)(D,D,s.bounds),P(t,e,D)>o)return!1;const i=s.node;return i.terminals.forAll((t=>h(t))),null!==i.residents&&i.residents.forAll((t=>h(t))),!0}),t,e),a}forEachInDepthRange(t,e,n,s,r,i,o){let a=-1/0,c=1/0;const h={setRange:t=>{n===x.DepthOrder.FRONT_TO_BACK?(a=Math.max(a,t.near),c=Math.min(c,t.far)):(a=Math.max(a,-t.far),c=Math.min(c,-t.near))}};h.setRange(s);const u=P(e,n,t),l=I(e,n),d=I(e,-n),_=t=>{if(!o(t))return;const s=this._objectToBoundingSphere(t),l=(0,m.g)(s),f=P(e,n,l)-u,d=f-s[3],_=f+s[3];d>c||_<a||!R(i,s)||r(t,h)};this._forEachNodeDepthOrdered(this._root,(t=>{if(!R(i,t.bounds))return!1;if((0,f.g)(D,l,t.halfSize),(0,f.a)(D,D,t.bounds),P(e,n,D)-u>c)return!1;if((0,f.g)(D,d,t.halfSize),(0,f.a)(D,D,t.bounds),P(e,n,D)-u<a)return!1;const s=t.node;return s.terminals.forAll((t=>_(t))),null!==s.residents&&s.residents.forAll((t=>_(t))),!0}),e,n)}forEachNode(t){this._forEachNode(this._root,(e=>t(e.node,e.bounds,e.halfSize)))}forEachNeighbor(t,e){const n=(0,m.a)(e),s=(0,m.g)(e),r=e=>{const r=this._objectToBoundingSphere(e),i=(0,m.a)(r),o=n+i;return!((0,f.d)((0,m.g)(r),s)-o*o<=0)||t(e)};let i=!0;const o=t=>{i&&(i=r(t))};this._forEachNode(this._root,(t=>{const e=(0,m.a)(t.bounds),r=n+e;if((0,f.d)((0,m.g)(t.bounds),s)-r*r>0)return!1;const a=t.node;return a.terminals.forAll(o),i&&null!==a.residents&&a.residents.forAll(o),i})),i&&this.forEachDegenerateObject(o)}_intersectsNode(t,e){return w(e.bounds,2*-e.halfSize,G),w(e.bounds,2*e.halfSize,k),(0,A.yK)(t.origin,t.direction,G,k)}_intersectsNodeWithOffset(t,e,n){return w(e.bounds,2*-e.halfSize,G),w(e.bounds,2*e.halfSize,k),n.applyToMinMax(G,k),(0,A.yK)(t.origin,t.direction,G,k)}_intersectsObject(t,e){const n=this._objectToBoundingSphere(e);return!(n[3]>0)||(0,m.j)(n,t)}_intersectsObjectWithOffset(t,e,n){const s=this._objectToBoundingSphere(e);return!(s[3]>0)||(0,m.j)(n.applyToBoundingSphere(s),t)}_forEachNode(t,e){let n=N.acquire().init(t);const s=[n];for(;0!==s.length;){if(n=s.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&s.push(N.acquire().init(n).advance(t));N.release(n)}}_forEachNodeDepthOrdered(t,e,n,s=x.DepthOrder.FRONT_TO_BACK){let r=N.acquire().init(t);const i=[r];for(function(t,e,n){if(!J.length)for(let t=0;t<8;++t)J.push({index:0,distance:0});for(let n=0;n<8;++n){const s=L[n];J.data[n].index=n,J.data[n].distance=P(t,e,s)}J.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=J.data[t].index}(n,s,K);0!==i.length;){if(r=i.pop(),e(r)&&!r.isLeaf())for(let t=7;t>=0;--t){const e=K[t];r.node.children[e]&&i.push(N.acquire().init(r).advance(e))}N.release(r)}}_remove(t,e,n){V.clear();const s=n.advanceTo(e,((t,e)=>{V.push(t.node),V.push(e)}))?n.node.terminals:n.node.residents;if(s.removeUnordered(t),0===s.length)for(let t=V.length-2;t>=0;t-=2){const e=V.data[t],n=V.data[t+1];if(!this._purge(e,n))break}}_nodeIsEmpty(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}_purge(t,e){return e>=0&&(t.children[e]=null),!!this._nodeIsEmpty(t)&&(null===t.residents&&(t.residents=new M.Z({shrink:!0})),!0)}_add(t,e){e.advanceTo(this._objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const s=N.acquire().init(t);this._add(e.getItemAt(n),s),N.release(s)}}_grow(t,e){if(0!==e&&(F(t,e,(t=>this._objectToBoundingSphere(t)),H),j(H[3])&&!this._fitsInsideTree(H)))if(this._nodeIsEmpty(this._root.node))(0,m.h)(H,this._root.bounds),this._root.halfSize=1.25*H[3];else{const t=this._rootBoundsForRootAsSubNode(H);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(H,t):this._growRootAsSubNode(t),N.release(t)}}_rebuildTree(t,e){(0,f.c)(U,e.bounds),U[3]=e.halfSize,F([t,U],2,(t=>t),X);const n=N.acquire().init(this._root);this._root.initFrom(null,X,1.25*X[3]),this._forEachNode(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),N.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return this._forEachNode(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let s=-1/0;const r=this._root.bounds,i=this._root.halfSize;for(let t=0;t<3;t++){const o=r[t]-i-(n[t]-e),a=n[t]+e-(r[t]+i),c=Math.max(0,Math.ceil(o/(2*i))),h=Math.max(0,Math.ceil(a/(2*i)))+1,u=2**Math.ceil(Math.log(c+h)*Math.LOG2E);s=Math.max(s,u),Y[t].min=c,Y[t].max=h}for(let t=0;t<3;t++){let e=Y[t].min,n=Y[t].max;const o=(s-(e+n))/2;e+=Math.ceil(o),n+=Math.floor(o);const a=r[t]-i-e*i*2;Z[t]=a+(n+e)*i}return Z[3]=s*i*C,N.acquire().initFrom(null,Z,s*i,0)}_growRootAsSubNode(t){const e=this._root.node;(0,f.c)(H,this._root.bounds),H[3]=this._root.halfSize,this._root.init(t),t.advanceTo(H,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,s=0;for(;s<e.length&&null==t;)n=s++,t=e[n];for(;s<e.length;)if(e[s++])return-1;return n}_isDegenerate(t){return!j(this._objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}}class N{constructor(){this.bounds=(0,m.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,s=this.depth){return this.node=(0,h.pC)(t)?t:N.createEmptyNode(),(0,h.pC)(e)&&(0,m.h)(e,this.bounds),this.halfSize=n,this.depth=s,this}advance(t){let e=this.node.children[t];e||(e=N.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=L[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.bounds[3]=this.halfSize*C,this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const s=this._childIndex(t);e&&e(this,s),this.advance(s)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new M.Z({shrink:!0}),residents:new M.Z({shrink:!0})}}static acquire(){return N._pool.acquire()}static release(t){N._pool.release(t)}static clearPool(){N._pool.prune()}}function v(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function z(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function w(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function F(t,e,n,s){if(1===e){const e=n(t[0]);(0,m.h)(e,s)}else{G[0]=1/0,G[1]=1/0,G[2]=1/0,k[0]=-1/0,k[1]=-1/0,k[2]=-1/0;for(let s=0;s<e;s++){const e=n(t[s]);j(e[3])&&(v(G,e),z(k,e))}(0,f.h)(s,G,k,.5),s[3]=Math.max(k[0]-G[0],k[1]-G[1],k[2]-G[2])/2}}function I(t,e){let n,s=1/0;for(let r=0;r<8;++r){const i=P(t,e,B[r]);i<s&&(s=i,n=B[r])}return n}function P(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function j(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}N._pool=new p.Z(N),S=x||(x={}),(E=S.DepthOrder||(S.DepthOrder={}))[E.FRONT_TO_BACK=1]="FRONT_TO_BACK",E[E.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const L=[(0,d.f)(-1,-1,-1),(0,d.f)(1,-1,-1),(0,d.f)(-1,1,-1),(0,d.f)(1,1,-1),(0,d.f)(-1,-1,1),(0,d.f)(1,-1,1),(0,d.f)(-1,1,1),(0,d.f)(1,1,1)],B=[(0,d.f)(-1,-1,-1),(0,d.f)(-1,-1,1),(0,d.f)(-1,1,-1),(0,d.f)(-1,1,1),(0,d.f)(1,-1,-1),(0,d.f)(1,-1,1),(0,d.f)(1,1,-1),(0,d.f)(1,1,1)],C=Math.sqrt(3),q=[null],Z=(0,m.c)(),D=(0,d.c)(),G=(0,d.c)(),k=(0,d.c)(),V=new M.Z,W=(0,m.c)(),H=(0,m.c)(),U=(0,m.c)(),X=(0,m.c)(),Y=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],J=new M.Z,K=[0,0,0,0,0,0,0,0],Q=x;var $=n(212);function tt(t,e,n){const s=(0,m.c)(),r=(0,m.g)(s);return(0,f.z)(r,r,t,.5),(0,f.z)(r,r,e,.5),s[3]=(0,f.i)(r,t),(0,f.a)(r,r,n),s}let et=class{constructor(){this._idToComponent=new Map,this._components=new Q((t=>t.bounds)),this._edges=new Q((t=>t.bounds)),this._tmpLineSegment=(0,_.Ue)(),this._tmpP1=(0,d.c)(),this._tmpP2=(0,d.c)(),this._tmpP3=(0,d.c)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,u.k_)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if((0,h.Wi)(t.info)){const{id:e,uid:s}=t;n.push({id:e,uid:s})}return!0}),t.bounds),!n.length)return;const s={components:n},r=await this.remoteClient.invoke("fetchAllEdgeLocations",s,(0,h.Pt)(e,{}));for(const t of r.components)this._setFetchEdgeLocations(t)}async add(t){const e=new st(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if((0,h.Wi)(e)||t.uid!==e.uid)return;const n=$.n_.createView(t.locations),s=new Array(n.count),r=(0,d.c)(),i=(0,d.c)();for(let o=0;o<n.count;o++){n.position0.getVec(o,r),n.position1.getVec(o,i);const a=tt(r,i,t.origin),c=new rt(e,o,a);s[o]=c}this._edges.add(s);const{objectIds:o,origin:a}=t;e.info={locations:n,objectIds:o,origin:a}}_addCandidates(t,e,n){const{locations:s,origin:r,objectIds:i}=e.component.info,o=s.position0.getVec(e.index,this._tmpP1),a=s.position1.getVec(e.index,this._tmpP2);(0,f.a)(o,o,r),(0,f.a)(a,a,r);const c=i[s.componentIndex.get(e.index)];this._addEdgeCandidate(t,c,o,a,n),this._addVertexCandidate(t,c,o,n),this._addVertexCandidate(t,c,a,n)}_addEdgeCandidate(t,e,n,s,r){if(!(t.types&g.r.EDGE))return;const i=(0,m.g)(t.bounds),o=(0,_.zk)(n,s,this._tmpLineSegment),a=(0,_.nF)(o,i,this._tmpP3);if(!(0,m.m)(t.bounds,a))return null;r.push({type:"edge",objectId:e,target:(0,d.a)(a),distance:(0,f.i)(i,a),start:(0,d.a)(n),end:(0,d.a)(s)})}_addVertexCandidate(t,e,n,s){if(!(t.types&g.r.VERTEX))return;const r=(0,m.g)(t.bounds);if(!(0,m.m)(t.bounds,n))return null;s.push({type:"vertex",objectId:e,target:(0,d.a)(n),distance:(0,f.i)(r,n)})}};et=(0,c._)([(0,l.j)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],et);const nt=et;class st{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++st.uid}}st.uid=0;class rt{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);