@arcgis/core 4.27.0-next.20230508 → 4.27.0-next.20230509
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{607281a575446be538ef.js → 1895c6fb8bccfd51a797.js} +1 -1
- package/assets/esri/core/workers/chunks/1fc3b526e881ada30420.js +1 -0
- package/assets/esri/core/workers/chunks/447ef2a18cf851438783.js +1 -0
- package/assets/esri/core/workers/chunks/4bf63a1c08fd87947777.js +1 -0
- package/assets/esri/core/workers/chunks/630b3fca46208caf4190.js +1 -0
- package/assets/esri/core/workers/chunks/{f833e547b8d038ffa677.js → 7acef6bf6878fe4246c8.js} +1 -1
- package/assets/esri/core/workers/chunks/{a4b38c652cd1c7877469.js → 892ffe40c098d023962f.js} +1 -1
- package/assets/esri/core/workers/chunks/{588c660bfe2b51eecaeb.js → a45586a103dbfaa8b76d.js} +1 -1
- package/assets/esri/core/workers/chunks/bc1bfa8bac15eccd4a4a.js +1 -0
- package/assets/esri/core/workers/chunks/{89ea5c385f2dd916387d.js → d9060d6d1e9448e2dfd8.js} +1 -1
- package/assets/esri/core/workers/chunks/{1055848fd62f8eb4bd67.js → e0b07bc0772e48f37a48.js} +1 -1
- package/assets/esri/core/workers/chunks/{2e6b4ba63ebc9046ea3f.js → ee88fbf99ea9d4eb1554.js} +1 -1
- package/assets/esri/libs/i3s/i3s.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/chunks/i3s.js +1 -1
- package/interfaces.d.ts +70 -0
- package/layers/LinkChartLayer.js +1 -1
- package/layers/graphics/sources/support/uploadAssets.js +1 -1
- package/layers/graphics/sources/support/uploads.js +5 -0
- package/layers/support/fieldUtils.js +1 -1
- package/package.json +1 -1
- package/portal/support/layersLoader.js +1 -1
- package/rest/knowledgeGraph/GraphSearchStreaming.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.js +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/symbols/cim/TextRasterizer.js +1 -1
- package/symbols/cim/utils.js +1 -1
- package/symbols/support/previewSymbol2D.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/symbols/support/textUtils.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLBaseTextTemplate.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/3db373fb471c1e09e63b.js +0 -1
- package/assets/esri/core/workers/chunks/6053a78aef54b4a5b172.js +0 -1
- package/assets/esri/core/workers/chunks/771fe141356463061c50.js +0 -1
- package/assets/esri/core/workers/chunks/7c09aa9e5de660c4c37c.js +0 -1
- package/assets/esri/core/workers/chunks/f5ec28d0754b2fccd1e5.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var RemoteClient;(()=>{var e={88277:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,r)=>{"use strict";r.d(t,{default:()=>s}),r(80442);var n=r(78286),o=r(17202);const s={analysisTheme:{accentColor:[255,127,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",userPrivilegesApplied:!1,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,n.RH)(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.27.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${o.r}/assets`}s.defaultAssetsPath=s.assetsPath}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22974),o=r(92604),s=r(58896);class i extends s.Z{constructor(e,t,r){super(e,t,r)}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,n.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,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(68773),o=(r(80442),r(19153));const s={info:0,warn:1,error:2,none:3};class i{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,i._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=i.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=i._loggers;return i._loggers=e,t},set throttlingDisabled(e){i._throttlingDisabled=e}}}static getLogger(e){let t=i._loggers[e];return t||(t=new i({module:e})),t}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!i._throttlingDisabled){const n=this._argsToKey(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=i._tickCounter)return;this._loggedMessages[e].set(n,i._tickCounter),i._scheduleTickCounterIncrement()}for(const t of n.default.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...r){console[e](`[${t}]`,...r)}_matchLevel(e){const t=n.default.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}_argsToKey(...e){return(0,o.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){i._tickCounterScheduled||(i._tickCounterScheduled=!0,Promise.resolve().then((()=>{i._tickCounter++,i._tickCounterScheduled=!1})))}}i._loggers={},i._tickCounter=0,i._tickCounterScheduled=!1,i._throttlingDisabled=!1},58896:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(78286);class o{constructor(e,t,r){this.name=e,this.details=r,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,r)=>""===r?"$":((0,n.hS)(r,t)??"").toString()))}(t,r))??""}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67676:(e,t,r)=>{"use strict";r.d(t,{FY:()=>g,Od:()=>m,SO:()=>f,Vx:()=>s,a9:()=>l,cq:()=>h,e$:()=>p,e5:()=>i,fS:()=>o,pC:()=>y,w6:()=>u,zG:()=>a});var n=r(77734);function o(e,t,r){if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function s(e,t){let r=e.length!==t.length;r&&(e.length=t.length);for(let n=0;n<t.length;++n)e[n]!==t[n]&&(e[n]=t[n],r=!0);return r}function i(e,t,r){let n,o;return r?(n=t.filter((t=>!e.some((e=>r(e,t))))),o=e.filter((e=>!t.some((t=>r(t,e)))))):(n=t.filter((t=>!e.includes(t))),o=e.filter((e=>!t.includes(e)))),{added:n,removed:o}}function a(e){return e&&"number"==typeof e.length}const c=!!Array.prototype.fill;function l(e,t){if(c)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}function u(e,t){void 0===t&&(t=e,e=0);const r=new Array(t-e);for(let n=e;n<t;n++)r[n-e]=n;return r}class f{constructor(){this.last=0}}const d=new f;function h(e,t,r,n){n=n||d;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function p(e,t,r,n){const o=r??e.length,s=h(e,t,o,n);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const b=new Set;function g(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;b.clear();for(let e=0;e<n;++e)b.add(t[e]);o=o||d;const i=Math.max(0,o.last-10);for(let t=i;t<r;++t)if(b.has(e[t])&&(s&&s.push(e[t]),b.delete(e[t]),e[t]=e[r-1],--r,--t,0===b.size||0===r))return b.clear(),r;for(let t=0;t<i;++t)if(b.has(e[t])&&(s&&s.push(e[t]),b.delete(e[t]),e[t]=e[r-1],--r,--t,0===b.size||0===r))return b.clear(),r;return b.clear(),r}function m(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function y(e,t){return null!=e}new n.Z},91460:(e,t,r)=>{"use strict";function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{IH:()=>s,on:()=>o,vT:()=>n})},80442:(e,t,r)=>{"use strict";let n;function o(e){return"function"==typeof n[e]?n[e]=n[e](globalThis):n[e]}r.d(t,{Z:()=>o}),n=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,r,s)=>((s||void 0===n[e])&&(n[e]=t),r&&o(e)),o.cache=n,o.add("esri-deprecation-warnings",!0),o.add("esri-force-fullscreen-debug",!1),(()=>{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,r=e.appVersion,n=parseFloat(r);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",r.includes("Konqueror")?n: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",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("edge")||o.add("mozilla",n),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),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}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("workers-pool-size",8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),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-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("heatmap-allow-raster-fallback",!1),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,r)=>{"use strict";r.d(t,{Vo:()=>a,d9:()=>i,fS:()=>h,tZ:()=>c,y7:()=>p,yd:()=>s});var n=r(67676),o=r(1533);function s(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&s(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=d(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(u(e))return e.clone();const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function a(e){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const t=d(e);if(null!=t)return t;if(l(e)){let t=!0;const r=e.map((e=>{const r=a(e);return null!=e&&null==r&&(t=!1),r}));return t?r:null}if(c(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(!u(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const r of Object.getOwnPropertyNames(e)){const n=e[r],o=a(n);if(null!=n&&null==o)return null;t[r]=o}return t}return null}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function u(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function f(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){if((0,o.W0)(e)||(0,o.lq)(e)||(0,o.KZ)(e)||(0,o.z3)(e)||(0,o.Uc)(e)||(0,o.Hx)(e)||(0,o.ZY)(e)||(0,o.xZ)(e)||(0,o.fS)(e))return e.slice();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[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(i(r));return t}return null}function h(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 p(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,n.fS)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!f(e)&&f(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},70586:(e,t,r)=>{"use strict";function n(e,t){return null!=e?t(e):null}function o(e,t){return s(e,t),e}function s(e,t){if(null==e)throw new Error(t??"value is None")}function i(e){return e?.destroy(),null}function a(e){return e?.dispose(),null}function c(e){return e?.remove(),null}function l(e){return e?.abort(),null}function u(e){return e?.release(),null}function f(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function d(e){return null}function h(e,t){const r=new Array;for(const n of e)r.push(null!=n?t(n):null);return r}function p(e,t){for(const r of e)n(r,t)}function b(e){return e}r.d(t,{Fd:()=>h,IM:()=>l,JR:()=>p,M2:()=>a,O3:()=>s,RY:()=>u,SC:()=>i,_W:()=>f,hw:()=>c,j0:()=>b,s3:()=>o,wN:()=>d,yw:()=>n})},78286:(e,t,r)=>{"use strict";r.d(t,{RB:()=>i,RH:()=>o,hS:()=>s});var n=r(22974);function o(e,t,r=!1){return c(e,t,r)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),o=n.pop(),s=a(n,!0,r);s&&o&&(s[o]=t)}function a(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function c(e,t,r){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,n.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]),r?i.forEach((e=>{s.includes(e)||s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>_,zE:()=>c,hh:()=>P,Ds:()=>S,as:()=>w,WW:()=>v,R8:()=>y,D_:()=>m,Hc:()=>f,y8:()=>O,fu:()=>p,$F:()=>b,r9:()=>d,k_:()=>l,H9:()=>h,Yn:()=>x,gx:()=>k,Hl:()=>g});const n=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(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 null!=e?"aborted"in e?e:e.signal:e}function f(e){const t=u(e);return null!=t&&t.aborted}function d(e){if(m(e))throw e}function h(e){if(!m(e))throw e}function p(e,t){const r=u(e);if(null!=r){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function b(e,t){const r=u(e);if(null!=r)return l(r),(0,i.IH)(r,"abort",(()=>t(c())))}function g(e,t){return null==u(t)?e:new Promise(((r,n)=>{let o=p(t,(()=>n(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function m(e){return"AbortError"===e?.name}async function y(e){try{return await e}catch(e){if(!m(e))throw e;return}}async function w(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map((t=>e[t])),n=await w(r),o={};return t.map(((e,t)=>o[e]=n[t])),o}const t=e;return Promise.allSettled(t).then((e=>Array.from(t,((t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))))}async function v(e){return(await w(e)).filter((e=>!!e.value)).map((e=>e.value))}function _(e,t=void 0,r){const n=new AbortController;return p(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);p(n,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function O(e){return e&&"function"==typeof e.then}function k(e){return O(e)?e:Promise.resolve(e)}function S(e,t=-1){let r,n,o,s,i=null;const l=(...u)=>{if(r){n=u,s&&s.reject(c()),s=P();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||P(),s=null,t>0){const n=new AbortController;r=k(e(...u,n.signal));const o=r;_(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=k(e(...u));const f=()=>{const e=n;n=o=r=i=null,null!=e&&l(...e)},d=r,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function P(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}async function x(e){await Promise.resolve(),l(e)}},19153:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>l,Qs:()=>a,gx:()=>i,hP:()=>c});var n=r(78286);const o=/\{([^\}]+)\}/g;function s(e){return e??""}function i(e,t){return e.replaceAll(o,"object"==typeof t?(e,r)=>s((0,n.hS)(r,t)):(e,r)=>s(t(r)))}function a(e,t){return e.replaceAll(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,r)=>{"use strict";function n(e){return e instanceof ArrayBuffer}function o(e){return"Int8Array"===e?.constructor?.name}function s(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function a(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function u(e){return"Uint32Array"===e?.constructor?.name}function f(e){return"Float32Array"===e?.constructor?.name}function d(e){return"Float64Array"===e?.constructor?.name}function h(e){return!("buffer"in e)}function p(e){return null!=e?h(e)?8*e.length+12:e.byteLength+b:0}r.d(t,{B3:()=>m,DB:()=>g,Hx:()=>l,KZ:()=>i,Op:()=>w,Q7:()=>y,Uc:()=>c,W0:()=>o,Xw:()=>p,ZY:()=>u,eP:()=>n,fS:()=>d,kJ:()=>h,lq:()=>s,xZ:()=>f,z3:()=>a}),r(80442);const b=145,g=1024;function m(e){return d(e)||f(e)||l(e)||a(e)||o(e)}function y(e){return d(e)||f(e)}function w(e){return d(e)?179769e303:f(e)?3402823e32:u(e)?4294967295:c(e)?65535:s(e)||i(e)?255:l(e)?2147483647:a(e)?32767:o(e)?127:256}},81271:(e,t,r)=>{"use strict";r.d(t,{R9:()=>v,qg:()=>M,tD:()=>R,ZN:()=>me,fl:()=>ye,rS:()=>X,Ie:()=>pe,sJ:()=>te,AH:()=>Y,fw:()=>ne,io:()=>oe,L:()=>P,TI:()=>S,vt:()=>de,oh:()=>J,P$:()=>K,Ml:()=>we,ed:()=>I,b7:()=>C,Zo:()=>U,D6:()=>q,tm:()=>L,YP:()=>Q,jc:()=>V,HK:()=>G,$U:()=>ae,oC:()=>se,kl:()=>B,v_:()=>z,hF:()=>F,_l:()=>re,PF:()=>Z,Fv:()=>D,B7:()=>j,IR:()=>_e,u0:()=>A,Yd:()=>fe,Hu:()=>ge,Qj:()=>he,fZ:()=>ve,hO:()=>ce,mN:()=>x});var n=r(68773),o=r(67676),s=r(20102),i=r(92604),a=r(70586),c=r(19745);const l=i.Z.getLogger("esri.core.urlUtils"),u=n.default.request,f="esri/config: esriConfig.request.proxyUrl is not set.",d=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,h=/^\s*http:/i,p=/^\s*https:/i,b=/^\s*file:/i,g=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class v{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,a.j0)(this.uri.match(y));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,a.j0)(this.authority.match(w)),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 _={};let O=new v(n.default.applicationUrl);let k=function(){const e=(0,a.j0)(O.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${O.scheme}://${O.host}${null!=O.port?`:${O.port}`:""}${t}`}();const S=()=>O,P=()=>k;function x(e){if(!e)return null;const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=A(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function A(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function T(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function j(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>T(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):T(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function C(e=!1){let t,r=u.proxyUrl;if("string"==typeof e){t=ae(e);const n=I(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw l.warn(f),new s.Z("urlutils:proxy-not-set",f);return t&&le()&&(r=ce(r)),x(r)}function M(e){const t=I(e);let r,n;if(t){const e=N(t.proxyUrl);r=e.path,n=e.query?A(e.query):null}if(r){const t=x(e);e=r+"?"+t.path;const o=j({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const E={path:"",query:""};function N(e){const t=e.indexOf("?");return-1!==t?(E.path=e.slice(0,t),E.query=e.slice(t+1)):(E.path=e,E.query=null),E}function $(e){return(e=ue(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=N(e).path),!0)).toLowerCase()}function R(e){const t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=u.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function I(e){const t=u.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function U(e,t){if(!e||!t)return!1;e=W(e),t=W(t);const r=(0,c.a)(e),n=(0,c.a)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&q(e,t,!0)}function L(e,t){return e=W(e),t=W(t),ue(e)===ue(t)}function W(e){const t=(e=D(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function J(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=u.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function q(e,t,r=!1){if(!e||!t)return!1;const n=be(e),o=be(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function B(e){if("string"==typeof e){if(!Q(e))return!0;e=be(e)}if(q(e,O))return!0;const t=u.trustedServers||[];for(let r=0;r<t.length;r++){const n=H(t[r]);for(let t=0;t<n.length;t++)if(q(e,n[t]))return!0}return!1}function H(e){return _[e]||(ie(e)||se(e)?_[e]=[new v(F(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function F(e,t=k,r){return se(e)?r&&r.preserveProtocolRelative?e:"http"===O.scheme&&O.authority===K(e).slice(2)?`http:${e}`:`https:${e}`:ie(e)?e:(0,a.j0)(z("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function Z(e,t=k,r){if(null==e||!Q(e))return e;const n=D(e),o=n.toLowerCase(),s=D(t).toLowerCase().replace(/\/+$/,""),i=r?D(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;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=n.slice(l);const u=s.slice(l-1).replaceAll(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function D(e){return function(e){const t=u.httpsDomains;if(!function(e){return null!=e&&h.test(e)||"http"===O.scheme&&se(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),g.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===O.scheme&&n===O.authority&&!m.test(e)||(le()&&n===O.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||le()&&!I(e))&&(e=ce(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=N(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=F(e=e.trim()))))}function z(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(Q(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&b.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function K(e,t=!1){if(null==e||V(e)||G(e))return null;let r=e.indexOf("://");if(-1===r&&se(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=ue(e,!0)),e}function Q(e){return se(e)||ie(e)}function V(e){return null!=e&&"blob:"===e.slice(0,5)}function G(e){return null!=e&&"data:"===e.slice(0,5)}function Y(e){const t=te(e);return t&&t.isBase64?function(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}(t.data):null}function X(e){return btoa(String.fromCharCode.apply(null,e)).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const ee=/^data:(.*?)(;base64)?,(.*)$/;function te(e){const t=e.match(ee);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function re(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ne(e){const t=Y(e);if(!t)return null;const r=te(e);return new Blob([t],{type:r.mediaType})}function oe(e,t){!function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}(e,t)}function se(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ie(e){return null!=e&&d.test(e)}function ae(e){return null!=e&&p.test(e)||"https"===O.scheme&&se(e)}function ce(e){return se(e)?`https:${e}`:e.replace(h,"https:")}function le(){return"https"===O.scheme}function ue(e,t=!1){return se(e)?e.slice(2):(e=e.replace(d,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function fe(e){let t=0;if(Q(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function de(e,t){if(!e)return"";const r=x(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(!t?.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function he(e){return e.replace(/\/+$/,"")}function pe(e,t,r){if(!(t&&r&&e&&Q(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function be(e){return"string"==typeof e?new v(F(e)):(e.scheme||(e.scheme=O.scheme),e)}function ge(e,t){const r=x(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function me(e,t,r){const n=x(e),o=n.query||{};return o[t]=String(r),`${n.path}?${j(o)}`}function ye(e,t){const r=x(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=j(n);return o?`${r.path}?${o}`:r.path}function we(e){if(null==e)return null;const t=e.match(Oe);return t?t[2]:null}function ve(e){if(null==e)return null;const t=e.match(Oe);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?te(e)??{data:e}:new Promise(((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(te(n.result)),n.onerror=e=>r(e)}))}const Oe=/([^.]*)\.([^\/]*)$/},728:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(40330),o=r(20102),s=r(91460),i=r(70586),a=r(95330);const c={statsWorker:()=>Promise.all([r.e(9255),r.e(1400),r.e(3215),r.e(3847),r.e(6841)]).then(r.bind(r,36841)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8228)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(7126),r.e(4547),r.e(9255),r.e(1534),r.e(1400),r.e(3215),r.e(8732),r.e(3847),r.e(1965),r.e(9372),r.e(586),r.e(5171)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(7681),r.e(6314),r.e(9594)]).then(r.bind(r,49594)),ElevationSamplerWorker:()=>Promise.all([r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(6481),r.e(6459),r.e(7628)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7126),r.e(4165),r.e(4547),r.e(9255),r.e(1534),r.e(1400),r.e(3215),r.e(4599),r.e(8732),r.e(3847),r.e(1965),r.e(9372),r.e(586),r.e(2379)]).then(r.bind(r,65967)),GeoJSONSourceWorker:()=>Promise.all([r.e(7126),r.e(4547),r.e(9255),r.e(1534),r.e(1400),r.e(3215),r.e(8732),r.e(3847),r.e(1965),r.e(9372),r.e(586),r.e(8346)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(7126),r.e(4547),r.e(9255),r.e(1534),r.e(1400),r.e(3215),r.e(8732),r.e(3847),r.e(1965),r.e(9372),r.e(586),r.e(4995)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(9255),r.e(1400),r.e(3215),r.e(8732),r.e(1916)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(7126),r.e(6082),r.e(4165),r.e(4547),r.e(9255),r.e(1534),r.e(1400),r.e(3215),r.e(4599),r.e(8732),r.e(3847),r.e(1965),r.e(9372),r.e(4325),r.e(1482),r.e(7303)]).then(r.bind(r,16142)),PointCloudWorker:()=>Promise.all([r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(4266),r.e(7519)]).then(r.bind(r,90447)),RasterWorker:()=>Promise.all([r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(6610),r.e(5604),r.e(2038)]).then(r.bind(r,61576)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9255),r.e(6481),r.e(7681),r.e(6314),r.e(3248)]).then(r.bind(r,73248)),SceneLayerWorker:()=>r.e(1412).then(r.bind(r,31412)),WFSSourceWorker:()=>Promise.all([r.e(7126),r.e(4547),r.e(9255),r.e(1534),r.e(1400),r.e(3215),r.e(8732),r.e(3847),r.e(1965),r.e(9372),r.e(586),r.e(1157)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(4325),r.e(9805),r.e(4982),r.e(6188)]).then(r.bind(r,56456))};var l=r(94362),u=r(17202);const{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=l.MessageType;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===l.MessageType.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{static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new y(t.port1,{channel:t,client:r},(()=>null));return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),y.clients.set(n,r),t.port2}static loadWorker(e){const t=c[e];return t?t():Promise.resolve(null)}constructor(e,t,r){this._port=e,this._getNextJob=r,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()}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r?.signal,s=r?.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 c=(0,l.jt)();return new Promise(((r,o)=>{if((0,a.Hc)(n))return this._processWork(),void o((0,a.zE)());const l=(0,a.fu)(n,(()=>{const e=this._outJobs.get(c);e&&(this._outJobs.delete(c),this._processWork(),(0,i.hw)(e.abortHandle),this._post({type:d,jobId:c}),o((0,a.zE)()))})),u={resolve:r,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(c,u),this._post({type:h,jobId:c,methodName:e,abortable:null!=n},t,s)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:l.MessageType.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:l.MessageType.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}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:r,invokeOptions:n,resolver:o}=e;this.invoke(t,r,n).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=null,this._client=null,this._schedule=null}_onMessage(e){null!=this._schedule?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,l.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,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let c,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`);c=f.call(u,n,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:r,error:(0,l.AB)(e)})}(0,a.y8)(c)?(i.set(r,{controller:s,promise:c}),c.then((e=>{i.has(r)&&(i.delete(r),this._post({type:p,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:p,jobId:r,error:(0,l.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:r},c)}_onOpenPortMessage(e){new y(e.port,{client:this._client},(()=>null))}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,s.on)(e.port,"message",(e=>{const o=(0,l.QM)(e);o?.type===l.MessageType.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.hw)(a.abortHandle),r?a.reject(o.Z.fromJSON(JSON.parse(r))):a.resolve(n)}_post(e,t,r){return(0,l.oi)(this._port,e,t,r)}}y.kernelInfo={buildDate:u.r,fullVersion:n.bR,revision:u.$},y.clients=new Map},94362:(e,t,r)=>{"use strict";r.d(t,{AB:()=>a,MessageType:()=>n,QM:()=>l,jt:()=>i,oi:()=>c});var n,o=r(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"}(n||(n={}));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,r,s){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let i;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(i=u(r.transferList),t.data=r.result):(i=u(s),t.data=r),i){if((0,o.Z)("ff"))for(const r of i)if("byteLength"in r&&r.byteLength>267386880){const r="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case n.INVOKE:throw r;case n.RESPONSE:return void c(e,{type:n.RESPONSE,jobId:t.jobId,error:a(r)})}}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||"ArrayBuffer"===e?.constructor?.name}(e)));return t.length?t:null}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>f,Nv:()=>c,bR:()=>a,i8:()=>i,id:()=>l,qh:()=>u});var n=r(80442),o=r(81271),s=r(17202);const i="4.27";let a=i;a=`4.27.0-next.${s.r}`;const c={async request(e,t){const{default:n}=await r.e(3172).then(r.bind(r,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 n(e.url,s),c={data:a.data,httpStatus:a.httpStatus,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 l;function u(e){l=e}function f(e){const t=l?.findCredential(e);return t?.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")},19745:(e,t,r)=>{"use strict";r.d(t,{P:()=>i,a:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,o={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function s(e){const t=e?.match(n);if(!t)return null;const[,r,s,i]=t;if(!r)return null;let a=null,c=null,l=null;const{devext:u,qaext:f,www:d}=o;if(s)if(a=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qa":({customBaseUrl:c,portalHostname:l}=f);break;default:return null}else({customBaseUrl:c,portalHostname:l}=d);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qaext":({customBaseUrl:c,portalHostname:l}=f);break;case"www":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:a}}function i(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}},17202:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,r:()=>n});const n="20230508",o="590ed45cb27cf08a2aa26865688012a45a20aef8"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{24:"1055848fd62f8eb4bd67",81:"f556490dae3c69419052",163:"13901c05ae18fc14a549",223:"17fcfafff87719e470f7",237:"8728087db9cb148e7b41",247:"a9f83bbccf3b5f229262",450:"ba0d5d7402d8bb5f85b6",540:"74eb5ba98f30d5fd4c47",565:"f5b6d2b8c8a333bbebdc",576:"c5c56b6d99db96a6755a",586:"b793f003760442dca9d5",632:"93b6769ac508c266ad5e",723:"fb6c1837830634f5f2ef",739:"0c1c173180d5cfb104df",819:"d1ead6e8aa7e8e21fbc6",837:"7c09aa9e5de660c4c37c",908:"fac717c2952d7a8ebd4c",1073:"d0d9dcf9a06762087f08",1074:"fa059d94d5051ded85b3",1157:"5564d87735a888aad626",1158:"b09dea098bd9ebdd2422",1194:"7fee1f710a74f5c84b1a",1227:"5e9e7c5dd7d7505b1d44",1400:"ef663860abdbfbb1f030",1408:"d9c9bccdd8c116b401a8",1412:"607281a575446be538ef",1421:"93e17ab3bc56ceea928d",1423:"46238d4a0a8e2338232c",1433:"4d5bdf18feeb9c8cb6ff",1444:"785a6c925f29bc962992",1482:"ee2950e2504ef249632a",1534:"3bbaa78c68a4bf159722",1537:"9c6967caa4a10bfc197c",1790:"175f09ef4ae6b68eca75",1916:"2640204c4655aa535ccb",1965:"a1978bf3fec80c07798d",2038:"9bb12f9ff458f1fd8ff3",2134:"3c5a64a545272f148e93",2156:"6a988f714a710a3c3656",2379:"56e85620a173e608a478",2462:"e3e286884cfb03a2c450",2594:"3c3f65913006b84b2289",2651:"8b8468dc657ff1e9ecf1",2664:"f1ebc68f46261bd642c2",2763:"5b11c0edebb1ef0e629b",2855:"5ff30154a319e3286ef5",2947:"c6dc595a89b454d9b20b",3027:"293315442f5afe8069dc",3172:"a3801cc18d0134205c33",3215:"17268cffc901b38838e2",3248:"3a3c10cce4be0c57951b",3529:"8d1e9630f86ab3dab4a6",3668:"4e759fefaf095fb15d76",3847:"771fe141356463061c50",3852:"f0c62bb406bb93b1408a",3974:"0ace9c0c0008ea8f9260",3992:"73515dc23b3cde16071b",4165:"a6ece91e6b3343f133a0",4166:"960404b939493682de26",4266:"88fdd288ef799a7ac48a",4286:"9fe362d9452f0c744e49",4325:"e7e7f6046cf1286365ca",4358:"4a2a0091cd830b6a1729",4371:"da6945e0f8731b5b247e",4475:"f61b577428a26a58ae23",4499:"1117cc2a9bedad08c620",4547:"69242c66492717c7388c",4599:"c6e28ec3395916c10248",4609:"308f3811dfa71f619279",4695:"48b85d28960de4f99deb",4720:"39714837f9d3708e3806",4828:"656320fa38c252390e03",4982:"740dc67038f554431f1b",4995:"110160591e5bc5b876aa",5115:"63bfd2c57a15e4b8f0aa",5159:"bf1c92bd7b541db2e7f8",5171:"52f340cf381ecb40c177",5235:"49e6e805c8c7cb71561c",5329:"0e21e5b4d065567a6a91",5334:"80bf6cf1bef17215bca4",5428:"3db373fb471c1e09e63b",5481:"4530327132b992cd5bfc",5546:"3125061c8dfd69e1ae3b",5590:"50f929d9453fb058cf47",5604:"395ef46b635f9e9a5643",5642:"d6b6bb8aecc85d2a3f6b",5653:"2bf63257cd4d0f37ef5d",5660:"2eb46a774013141cd453",5732:"83f7e22a12d90ef93e62",5837:"277a477446d6644aada6",5913:"05aedc7af19c252ddf9d",5935:"60a08ce29d09cb07ef06",6082:"593915087f5ea649e7fa",6188:"cd088294601739a5b879",6233:"766f397dfdfbc0eb72d1",6237:"8a7fa4e8b0d14da7c9eb",6261:"ef141014ed21a7fd1ff3",6314:"e8db7303b2f63c0ec0c9",6368:"2c57d16d4aa0462150cf",6459:"52d02021e858820bc4fa",6481:"f6c39edd04cb96d98240",6502:"588c660bfe2b51eecaeb",6565:"ca3be824c256b5b47091",6584:"ac1064ace8ede6ff8c2e",6610:"e8cb46da09853804b5e8",6695:"0d805fd9cd9ff3a636ca",6710:"6053a78aef54b4a5b172",6748:"47633db928084082a4c8",6774:"0f04978e8342d9a35e59",6841:"8f027f5a1f4438cb2b3c",6935:"e3eb1ccf5fde499cbfbf",7126:"e0499f45b098450b80b4",7202:"3027e02a0e8e333acd14",7277:"5bd470ff65d44840349e",7303:"3488af6cb628b9476beb",7316:"7fe49c75681787c7f30f",7374:"17ebe76d4419fe69e13c",7476:"e8b944020675385ae064",7483:"29add41db6fe8def4217",7519:"259d3d890f634fb0aba6",7628:"37fa5a939e69bf3bab8d",7681:"808206f87b9f0ab13bf7",7697:"670e49f9f320cd7fa212",7873:"67f008f858783805ea96",8008:"2e6b4ba63ebc9046ea3f",8024:"19c1b6655a368504a468",8062:"a4b38c652cd1c7877469",8079:"90598e3774e6638b1a01",8092:"f1b26b73101210b8f29c",8096:"0eb26c0191d624b9a128",8153:"d5c8119d6d34628d3126",8228:"e5352dc8983d06d4ee0f",8346:"6b817ea3de7e29197bb6",8510:"f5ec28d0754b2fccd1e5",8522:"b3c5066acb06e54fcede",8598:"1fd7e2d91d0d76ba1802",8636:"431d54867bc3bb848fbb",8732:"eb3cbfe51627f89c347f",8758:"9e22a90115de672e7bb8",8828:"d244e50c981146f018d2",8865:"ca0c5c945a374fdbd000",9016:"3a0d1e09414794ec58ec",9037:"5c64fd3bf057a1a5527f",9097:"777d71da60873a6cb76f",9169:"cfad34c949cbe8a31ef8",9238:"5bf51ad3b910ab7f8889",9243:"6c519c5a474f51f37af0",9255:"9db6306f32e9adae6e71",9291:"514346a7831c08ec7c1e",9296:"2f71d74162a2c08b8a0c",9372:"1a43f20703f0c692cb6b",9393:"c5ad289e8c52f3f42893",9469:"7459f911d139aab26288",9594:"1535423349f7eee694bc",9675:"05dd706a9f7a022da7b1",9771:"f833e547b8d038ffa677",9790:"89ea5c385f2dd916387d",9805:"d0ff496834686dbfe29f",9880:"468c79e532c32fdd2cc7",9884:"8cc8d88e5dd1e586eb04",9904:"e8df43c1af128522b2e0",9942:"46ed1a1b3b98959ad7d6",9971:"fd64f62a9bbf9e4341d4"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&!e;)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={134:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)r.o(s,a)&&(r.m[a]=s[a]);for(i&&i(r);o.length;)e[o.pop()]=1;n(t)}})(),r(88277);var n=r(728);RemoteClient=n})();
|
|
1
|
+
var RemoteClient;(()=>{var e={88277:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,r)=>{"use strict";r.d(t,{default:()=>s}),r(80442);var n=r(78286),o=r(17202);const s={analysisTheme:{accentColor:[255,127,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",userPrivilegesApplied:!1,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,n.RH)(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.27.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${o.r}/assets`}s.defaultAssetsPath=s.assetsPath}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22974),o=r(92604),s=r(58896);class i extends s.Z{constructor(e,t,r){super(e,t,r)}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,n.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,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(68773),o=(r(80442),r(19153));const s={info:0,warn:1,error:2,none:3};class i{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,i._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=i.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=i._loggers;return i._loggers=e,t},set throttlingDisabled(e){i._throttlingDisabled=e}}}static getLogger(e){let t=i._loggers[e];return t||(t=new i({module:e})),t}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!i._throttlingDisabled){const n=this._argsToKey(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=i._tickCounter)return;this._loggedMessages[e].set(n,i._tickCounter),i._scheduleTickCounterIncrement()}for(const t of n.default.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...r){console[e](`[${t}]`,...r)}_matchLevel(e){const t=n.default.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}_argsToKey(...e){return(0,o.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){i._tickCounterScheduled||(i._tickCounterScheduled=!0,Promise.resolve().then((()=>{i._tickCounter++,i._tickCounterScheduled=!1})))}}i._loggers={},i._tickCounter=0,i._tickCounterScheduled=!1,i._throttlingDisabled=!1},58896:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(78286);class o{constructor(e,t,r){this.name=e,this.details=r,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,r)=>""===r?"$":((0,n.hS)(r,t)??"").toString()))}(t,r))??""}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67676:(e,t,r)=>{"use strict";r.d(t,{FY:()=>g,Od:()=>m,SO:()=>f,Vx:()=>s,a9:()=>l,cq:()=>h,e$:()=>p,e5:()=>i,fS:()=>o,pC:()=>y,w6:()=>u,zG:()=>a});var n=r(77734);function o(e,t,r){if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function s(e,t){let r=e.length!==t.length;r&&(e.length=t.length);for(let n=0;n<t.length;++n)e[n]!==t[n]&&(e[n]=t[n],r=!0);return r}function i(e,t,r){let n,o;return r?(n=t.filter((t=>!e.some((e=>r(e,t))))),o=e.filter((e=>!t.some((t=>r(t,e)))))):(n=t.filter((t=>!e.includes(t))),o=e.filter((e=>!t.includes(e)))),{added:n,removed:o}}function a(e){return e&&"number"==typeof e.length}const c=!!Array.prototype.fill;function l(e,t){if(c)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}function u(e,t){void 0===t&&(t=e,e=0);const r=new Array(t-e);for(let n=e;n<t;n++)r[n-e]=n;return r}class f{constructor(){this.last=0}}const d=new f;function h(e,t,r,n){n=n||d;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function p(e,t,r,n){const o=r??e.length,s=h(e,t,o,n);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const b=new Set;function g(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;b.clear();for(let e=0;e<n;++e)b.add(t[e]);o=o||d;const i=Math.max(0,o.last-10);for(let t=i;t<r;++t)if(b.has(e[t])&&(s&&s.push(e[t]),b.delete(e[t]),e[t]=e[r-1],--r,--t,0===b.size||0===r))return b.clear(),r;for(let t=0;t<i;++t)if(b.has(e[t])&&(s&&s.push(e[t]),b.delete(e[t]),e[t]=e[r-1],--r,--t,0===b.size||0===r))return b.clear(),r;return b.clear(),r}function m(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function y(e,t){return null!=e}new n.Z},91460:(e,t,r)=>{"use strict";function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{IH:()=>s,on:()=>o,vT:()=>n})},80442:(e,t,r)=>{"use strict";let n;function o(e){return"function"==typeof n[e]?n[e]=n[e](globalThis):n[e]}r.d(t,{Z:()=>o}),n=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,r,s)=>((s||void 0===n[e])&&(n[e]=t),r&&o(e)),o.cache=n,o.add("esri-deprecation-warnings",!0),o.add("esri-force-fullscreen-debug",!1),(()=>{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,r=e.appVersion,n=parseFloat(r);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",r.includes("Konqueror")?n: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",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("edge")||o.add("mozilla",n),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),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}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("workers-pool-size",8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),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-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("heatmap-allow-raster-fallback",!1),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,r)=>{"use strict";r.d(t,{Vo:()=>a,d9:()=>i,fS:()=>h,tZ:()=>c,y7:()=>p,yd:()=>s});var n=r(67676),o=r(1533);function s(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&s(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=d(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(u(e))return e.clone();const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function a(e){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const t=d(e);if(null!=t)return t;if(l(e)){let t=!0;const r=e.map((e=>{const r=a(e);return null!=e&&null==r&&(t=!1),r}));return t?r:null}if(c(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(!u(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const r of Object.getOwnPropertyNames(e)){const n=e[r],o=a(n);if(null!=n&&null==o)return null;t[r]=o}return t}return null}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function u(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function f(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){if((0,o.W0)(e)||(0,o.lq)(e)||(0,o.KZ)(e)||(0,o.z3)(e)||(0,o.Uc)(e)||(0,o.Hx)(e)||(0,o.ZY)(e)||(0,o.xZ)(e)||(0,o.fS)(e))return e.slice();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[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(i(r));return t}return null}function h(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 p(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,n.fS)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!f(e)&&f(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},70586:(e,t,r)=>{"use strict";function n(e,t){return null!=e?t(e):null}function o(e,t){return s(e,t),e}function s(e,t){if(null==e)throw new Error(t??"value is None")}function i(e){return e?.destroy(),null}function a(e){return e?.dispose(),null}function c(e){return e?.remove(),null}function l(e){return e?.abort(),null}function u(e){return e?.release(),null}function f(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function d(e){return null}function h(e,t){const r=new Array;for(const n of e)r.push(null!=n?t(n):null);return r}function p(e,t){for(const r of e)n(r,t)}function b(e){return e}r.d(t,{Fd:()=>h,IM:()=>l,JR:()=>p,M2:()=>a,O3:()=>s,RY:()=>u,SC:()=>i,_W:()=>f,hw:()=>c,j0:()=>b,s3:()=>o,wN:()=>d,yw:()=>n})},78286:(e,t,r)=>{"use strict";r.d(t,{RB:()=>i,RH:()=>o,hS:()=>s});var n=r(22974);function o(e,t,r=!1){return c(e,t,r)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),o=n.pop(),s=a(n,!0,r);s&&o&&(s[o]=t)}function a(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function c(e,t,r){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,n.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]),r?i.forEach((e=>{s.includes(e)||s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>_,zE:()=>c,hh:()=>P,Ds:()=>S,as:()=>w,WW:()=>v,R8:()=>y,D_:()=>m,Hc:()=>f,y8:()=>O,fu:()=>p,$F:()=>b,r9:()=>d,k_:()=>l,H9:()=>h,Yn:()=>x,gx:()=>k,Hl:()=>g});const n=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(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 null!=e?"aborted"in e?e:e.signal:e}function f(e){const t=u(e);return null!=t&&t.aborted}function d(e){if(m(e))throw e}function h(e){if(!m(e))throw e}function p(e,t){const r=u(e);if(null!=r){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function b(e,t){const r=u(e);if(null!=r)return l(r),(0,i.IH)(r,"abort",(()=>t(c())))}function g(e,t){return null==u(t)?e:new Promise(((r,n)=>{let o=p(t,(()=>n(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function m(e){return"AbortError"===e?.name}async function y(e){try{return await e}catch(e){if(!m(e))throw e;return}}async function w(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map((t=>e[t])),n=await w(r),o={};return t.map(((e,t)=>o[e]=n[t])),o}const t=e;return Promise.allSettled(t).then((e=>Array.from(t,((t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))))}async function v(e){return(await w(e)).filter((e=>!!e.value)).map((e=>e.value))}function _(e,t=void 0,r){const n=new AbortController;return p(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);p(n,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function O(e){return e&&"function"==typeof e.then}function k(e){return O(e)?e:Promise.resolve(e)}function S(e,t=-1){let r,n,o,s,i=null;const l=(...u)=>{if(r){n=u,s&&s.reject(c()),s=P();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||P(),s=null,t>0){const n=new AbortController;r=k(e(...u,n.signal));const o=r;_(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=k(e(...u));const f=()=>{const e=n;n=o=r=i=null,null!=e&&l(...e)},d=r,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function P(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}async function x(e){await Promise.resolve(),l(e)}},19153:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>l,Qs:()=>a,gx:()=>i,hP:()=>c});var n=r(78286);const o=/\{([^\}]+)\}/g;function s(e){return e??""}function i(e,t){return e.replaceAll(o,"object"==typeof t?(e,r)=>s((0,n.hS)(r,t)):(e,r)=>s(t(r)))}function a(e,t){return e.replaceAll(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,r)=>{"use strict";function n(e){return e instanceof ArrayBuffer}function o(e){return"Int8Array"===e?.constructor?.name}function s(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function a(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function u(e){return"Uint32Array"===e?.constructor?.name}function f(e){return"Float32Array"===e?.constructor?.name}function d(e){return"Float64Array"===e?.constructor?.name}function h(e){return!("buffer"in e)}function p(e){return null!=e?h(e)?8*e.length+12:e.byteLength+b:0}r.d(t,{B3:()=>m,DB:()=>g,Hx:()=>l,KZ:()=>i,Op:()=>w,Q7:()=>y,Uc:()=>c,W0:()=>o,Xw:()=>p,ZY:()=>u,eP:()=>n,fS:()=>d,kJ:()=>h,lq:()=>s,xZ:()=>f,z3:()=>a}),r(80442);const b=145,g=1024;function m(e){return d(e)||f(e)||l(e)||a(e)||o(e)}function y(e){return d(e)||f(e)}function w(e){return d(e)?179769e303:f(e)?3402823e32:u(e)?4294967295:c(e)?65535:s(e)||i(e)?255:l(e)?2147483647:a(e)?32767:o(e)?127:256}},81271:(e,t,r)=>{"use strict";r.d(t,{R9:()=>v,qg:()=>M,tD:()=>R,ZN:()=>me,fl:()=>ye,rS:()=>X,Ie:()=>pe,sJ:()=>te,AH:()=>Y,fw:()=>ne,io:()=>oe,L:()=>P,TI:()=>S,vt:()=>de,oh:()=>J,P$:()=>K,Ml:()=>we,ed:()=>I,b7:()=>C,Zo:()=>U,D6:()=>q,tm:()=>L,YP:()=>Q,jc:()=>V,HK:()=>G,$U:()=>ae,oC:()=>se,kl:()=>B,v_:()=>z,hF:()=>F,_l:()=>re,PF:()=>Z,Fv:()=>D,B7:()=>j,IR:()=>_e,u0:()=>A,Yd:()=>fe,Hu:()=>ge,Qj:()=>he,fZ:()=>ve,hO:()=>ce,mN:()=>x});var n=r(68773),o=r(67676),s=r(20102),i=r(92604),a=r(70586),c=r(19745);const l=i.Z.getLogger("esri.core.urlUtils"),u=n.default.request,f="esri/config: esriConfig.request.proxyUrl is not set.",d=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,h=/^\s*http:/i,p=/^\s*https:/i,b=/^\s*file:/i,g=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class v{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,a.j0)(this.uri.match(y));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,a.j0)(this.authority.match(w)),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 _={};let O=new v(n.default.applicationUrl);let k=function(){const e=(0,a.j0)(O.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${O.scheme}://${O.host}${null!=O.port?`:${O.port}`:""}${t}`}();const S=()=>O,P=()=>k;function x(e){if(!e)return null;const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=A(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function A(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function T(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function j(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>T(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):T(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function C(e=!1){let t,r=u.proxyUrl;if("string"==typeof e){t=ae(e);const n=I(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw l.warn(f),new s.Z("urlutils:proxy-not-set",f);return t&&le()&&(r=ce(r)),x(r)}function M(e){const t=I(e);let r,n;if(t){const e=N(t.proxyUrl);r=e.path,n=e.query?A(e.query):null}if(r){const t=x(e);e=r+"?"+t.path;const o=j({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const E={path:"",query:""};function N(e){const t=e.indexOf("?");return-1!==t?(E.path=e.slice(0,t),E.query=e.slice(t+1)):(E.path=e,E.query=null),E}function $(e){return(e=ue(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=N(e).path),!0)).toLowerCase()}function R(e){const t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=u.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function I(e){const t=u.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function U(e,t){if(!e||!t)return!1;e=W(e),t=W(t);const r=(0,c.a)(e),n=(0,c.a)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&q(e,t,!0)}function L(e,t){return e=W(e),t=W(t),ue(e)===ue(t)}function W(e){const t=(e=D(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function J(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=u.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function q(e,t,r=!1){if(!e||!t)return!1;const n=be(e),o=be(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function B(e){if("string"==typeof e){if(!Q(e))return!0;e=be(e)}if(q(e,O))return!0;const t=u.trustedServers||[];for(let r=0;r<t.length;r++){const n=H(t[r]);for(let t=0;t<n.length;t++)if(q(e,n[t]))return!0}return!1}function H(e){return _[e]||(ie(e)||se(e)?_[e]=[new v(F(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function F(e,t=k,r){return se(e)?r&&r.preserveProtocolRelative?e:"http"===O.scheme&&O.authority===K(e).slice(2)?`http:${e}`:`https:${e}`:ie(e)?e:(0,a.j0)(z("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function Z(e,t=k,r){if(null==e||!Q(e))return e;const n=D(e),o=n.toLowerCase(),s=D(t).toLowerCase().replace(/\/+$/,""),i=r?D(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;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=n.slice(l);const u=s.slice(l-1).replaceAll(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function D(e){return function(e){const t=u.httpsDomains;if(!function(e){return null!=e&&h.test(e)||"http"===O.scheme&&se(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),g.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===O.scheme&&n===O.authority&&!m.test(e)||(le()&&n===O.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||le()&&!I(e))&&(e=ce(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=N(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=F(e=e.trim()))))}function z(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(Q(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&b.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function K(e,t=!1){if(null==e||V(e)||G(e))return null;let r=e.indexOf("://");if(-1===r&&se(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=ue(e,!0)),e}function Q(e){return se(e)||ie(e)}function V(e){return null!=e&&"blob:"===e.slice(0,5)}function G(e){return null!=e&&"data:"===e.slice(0,5)}function Y(e){const t=te(e);return t&&t.isBase64?function(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}(t.data):null}function X(e){return btoa(String.fromCharCode.apply(null,e)).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const ee=/^data:(.*?)(;base64)?,(.*)$/;function te(e){const t=e.match(ee);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function re(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ne(e){const t=Y(e);if(!t)return null;const r=te(e);return new Blob([t],{type:r.mediaType})}function oe(e,t){!function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}(e,t)}function se(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ie(e){return null!=e&&d.test(e)}function ae(e){return null!=e&&p.test(e)||"https"===O.scheme&&se(e)}function ce(e){return se(e)?`https:${e}`:e.replace(h,"https:")}function le(){return"https"===O.scheme}function ue(e,t=!1){return se(e)?e.slice(2):(e=e.replace(d,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function fe(e){let t=0;if(Q(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function de(e,t){if(!e)return"";const r=x(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(!t?.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function he(e){return e.replace(/\/+$/,"")}function pe(e,t,r){if(!(t&&r&&e&&Q(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function be(e){return"string"==typeof e?new v(F(e)):(e.scheme||(e.scheme=O.scheme),e)}function ge(e,t){const r=x(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function me(e,t,r){const n=x(e),o=n.query||{};return o[t]=String(r),`${n.path}?${j(o)}`}function ye(e,t){const r=x(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=j(n);return o?`${r.path}?${o}`:r.path}function we(e){if(null==e)return null;const t=e.match(Oe);return t?t[2]:null}function ve(e){if(null==e)return null;const t=e.match(Oe);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?te(e)??{data:e}:new Promise(((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(te(n.result)),n.onerror=e=>r(e)}))}const Oe=/([^.]*)\.([^\/]*)$/},728:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(40330),o=r(20102),s=r(91460),i=r(70586),a=r(95330);const c={statsWorker:()=>Promise.all([r.e(9255),r.e(1400),r.e(3215),r.e(3847),r.e(6841)]).then(r.bind(r,36841)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8228)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(7126),r.e(4547),r.e(9255),r.e(1534),r.e(1400),r.e(3215),r.e(8732),r.e(3847),r.e(1965),r.e(9372),r.e(586),r.e(5171)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(7681),r.e(6314),r.e(9594)]).then(r.bind(r,49594)),ElevationSamplerWorker:()=>Promise.all([r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(6481),r.e(6459),r.e(7628)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7126),r.e(4165),r.e(4547),r.e(9255),r.e(1534),r.e(1400),r.e(3215),r.e(4599),r.e(8732),r.e(3847),r.e(1965),r.e(9372),r.e(586),r.e(2379)]).then(r.bind(r,65967)),GeoJSONSourceWorker:()=>Promise.all([r.e(7126),r.e(4547),r.e(9255),r.e(1534),r.e(1400),r.e(3215),r.e(8732),r.e(3847),r.e(1965),r.e(9372),r.e(586),r.e(8346)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(7126),r.e(4547),r.e(9255),r.e(1534),r.e(1400),r.e(3215),r.e(8732),r.e(3847),r.e(1965),r.e(9372),r.e(586),r.e(4995)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(9255),r.e(1400),r.e(3215),r.e(8732),r.e(1916)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(7126),r.e(6082),r.e(4165),r.e(4547),r.e(9255),r.e(1534),r.e(1400),r.e(3215),r.e(4599),r.e(8732),r.e(3847),r.e(1965),r.e(9372),r.e(4325),r.e(1482),r.e(7303)]).then(r.bind(r,16142)),PointCloudWorker:()=>Promise.all([r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(4266),r.e(7519)]).then(r.bind(r,90447)),RasterWorker:()=>Promise.all([r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(6610),r.e(5604),r.e(2038)]).then(r.bind(r,61576)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9255),r.e(6481),r.e(7681),r.e(6314),r.e(3248)]).then(r.bind(r,73248)),SceneLayerWorker:()=>r.e(1412).then(r.bind(r,31412)),WFSSourceWorker:()=>Promise.all([r.e(7126),r.e(4547),r.e(9255),r.e(1534),r.e(1400),r.e(3215),r.e(8732),r.e(3847),r.e(1965),r.e(9372),r.e(586),r.e(1157)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(4325),r.e(9805),r.e(4982),r.e(6188)]).then(r.bind(r,56456))};var l=r(94362),u=r(17202);const{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=l.MessageType;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===l.MessageType.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{static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new y(t.port1,{channel:t,client:r},(()=>null));return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),y.clients.set(n,r),t.port2}static loadWorker(e){const t=c[e];return t?t():Promise.resolve(null)}constructor(e,t,r){this._port=e,this._getNextJob=r,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()}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r?.signal,s=r?.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 c=(0,l.jt)();return new Promise(((r,o)=>{if((0,a.Hc)(n))return this._processWork(),void o((0,a.zE)());const l=(0,a.fu)(n,(()=>{const e=this._outJobs.get(c);e&&(this._outJobs.delete(c),this._processWork(),(0,i.hw)(e.abortHandle),this._post({type:d,jobId:c}),o((0,a.zE)()))})),u={resolve:r,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(c,u),this._post({type:h,jobId:c,methodName:e,abortable:null!=n},t,s)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:l.MessageType.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:l.MessageType.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}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:r,invokeOptions:n,resolver:o}=e;this.invoke(t,r,n).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=null,this._client=null,this._schedule=null}_onMessage(e){null!=this._schedule?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,l.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,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let c,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`);c=f.call(u,n,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:r,error:(0,l.AB)(e)})}(0,a.y8)(c)?(i.set(r,{controller:s,promise:c}),c.then((e=>{i.has(r)&&(i.delete(r),this._post({type:p,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:p,jobId:r,error:(0,l.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:r},c)}_onOpenPortMessage(e){new y(e.port,{client:this._client},(()=>null))}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,s.on)(e.port,"message",(e=>{const o=(0,l.QM)(e);o?.type===l.MessageType.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.hw)(a.abortHandle),r?a.reject(o.Z.fromJSON(JSON.parse(r))):a.resolve(n)}_post(e,t,r){return(0,l.oi)(this._port,e,t,r)}}y.kernelInfo={buildDate:u.r,fullVersion:n.bR,revision:u.$},y.clients=new Map},94362:(e,t,r)=>{"use strict";r.d(t,{AB:()=>a,MessageType:()=>n,QM:()=>l,jt:()=>i,oi:()=>c});var n,o=r(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"}(n||(n={}));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,r,s){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let i;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(i=u(r.transferList),t.data=r.result):(i=u(s),t.data=r),i){if((0,o.Z)("ff"))for(const r of i)if("byteLength"in r&&r.byteLength>267386880){const r="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case n.INVOKE:throw r;case n.RESPONSE:return void c(e,{type:n.RESPONSE,jobId:t.jobId,error:a(r)})}}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||"ArrayBuffer"===e?.constructor?.name}(e)));return t.length?t:null}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>f,Nv:()=>c,bR:()=>a,i8:()=>i,id:()=>l,qh:()=>u});var n=r(80442),o=r(81271),s=r(17202);const i="4.27";let a=i;a=`4.27.0-next.${s.r}`;const c={async request(e,t){const{default:n}=await r.e(3172).then(r.bind(r,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 n(e.url,s),c={data:a.data,httpStatus:a.httpStatus,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 l;function u(e){l=e}function f(e){const t=l?.findCredential(e);return t?.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")},19745:(e,t,r)=>{"use strict";r.d(t,{P:()=>i,a:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,o={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function s(e){const t=e?.match(n);if(!t)return null;const[,r,s,i]=t;if(!r)return null;let a=null,c=null,l=null;const{devext:u,qaext:f,www:d}=o;if(s)if(a=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qa":({customBaseUrl:c,portalHostname:l}=f);break;default:return null}else({customBaseUrl:c,portalHostname:l}=d);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qaext":({customBaseUrl:c,portalHostname:l}=f);break;case"www":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:a}}function i(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}},17202:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,r:()=>n});const n="20230509",o="a82385e46d91845956f1824337fd031ef0226358"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{24:"e0b07bc0772e48f37a48",81:"f556490dae3c69419052",163:"13901c05ae18fc14a549",223:"17fcfafff87719e470f7",237:"8728087db9cb148e7b41",247:"a9f83bbccf3b5f229262",450:"ba0d5d7402d8bb5f85b6",540:"74eb5ba98f30d5fd4c47",565:"f5b6d2b8c8a333bbebdc",576:"c5c56b6d99db96a6755a",586:"b793f003760442dca9d5",632:"93b6769ac508c266ad5e",723:"fb6c1837830634f5f2ef",739:"0c1c173180d5cfb104df",819:"d1ead6e8aa7e8e21fbc6",837:"bc1bfa8bac15eccd4a4a",908:"fac717c2952d7a8ebd4c",1073:"d0d9dcf9a06762087f08",1074:"fa059d94d5051ded85b3",1157:"5564d87735a888aad626",1158:"b09dea098bd9ebdd2422",1194:"7fee1f710a74f5c84b1a",1227:"5e9e7c5dd7d7505b1d44",1400:"ef663860abdbfbb1f030",1408:"d9c9bccdd8c116b401a8",1412:"1895c6fb8bccfd51a797",1421:"93e17ab3bc56ceea928d",1423:"46238d4a0a8e2338232c",1433:"4d5bdf18feeb9c8cb6ff",1444:"785a6c925f29bc962992",1482:"ee2950e2504ef249632a",1534:"3bbaa78c68a4bf159722",1537:"9c6967caa4a10bfc197c",1790:"175f09ef4ae6b68eca75",1916:"2640204c4655aa535ccb",1965:"a1978bf3fec80c07798d",2038:"9bb12f9ff458f1fd8ff3",2134:"3c5a64a545272f148e93",2156:"6a988f714a710a3c3656",2379:"56e85620a173e608a478",2462:"e3e286884cfb03a2c450",2594:"3c3f65913006b84b2289",2651:"8b8468dc657ff1e9ecf1",2664:"f1ebc68f46261bd642c2",2763:"5b11c0edebb1ef0e629b",2855:"5ff30154a319e3286ef5",2947:"c6dc595a89b454d9b20b",3027:"293315442f5afe8069dc",3172:"a3801cc18d0134205c33",3215:"17268cffc901b38838e2",3248:"3a3c10cce4be0c57951b",3529:"8d1e9630f86ab3dab4a6",3668:"4e759fefaf095fb15d76",3847:"447ef2a18cf851438783",3852:"f0c62bb406bb93b1408a",3974:"0ace9c0c0008ea8f9260",3992:"73515dc23b3cde16071b",4165:"a6ece91e6b3343f133a0",4166:"960404b939493682de26",4266:"88fdd288ef799a7ac48a",4286:"9fe362d9452f0c744e49",4325:"e7e7f6046cf1286365ca",4358:"4a2a0091cd830b6a1729",4371:"da6945e0f8731b5b247e",4475:"f61b577428a26a58ae23",4499:"1117cc2a9bedad08c620",4547:"69242c66492717c7388c",4599:"c6e28ec3395916c10248",4609:"308f3811dfa71f619279",4695:"48b85d28960de4f99deb",4720:"39714837f9d3708e3806",4828:"656320fa38c252390e03",4982:"740dc67038f554431f1b",4995:"110160591e5bc5b876aa",5115:"63bfd2c57a15e4b8f0aa",5159:"bf1c92bd7b541db2e7f8",5171:"52f340cf381ecb40c177",5235:"49e6e805c8c7cb71561c",5329:"0e21e5b4d065567a6a91",5334:"80bf6cf1bef17215bca4",5428:"4bf63a1c08fd87947777",5481:"4530327132b992cd5bfc",5546:"3125061c8dfd69e1ae3b",5590:"50f929d9453fb058cf47",5604:"395ef46b635f9e9a5643",5642:"d6b6bb8aecc85d2a3f6b",5653:"2bf63257cd4d0f37ef5d",5660:"2eb46a774013141cd453",5732:"83f7e22a12d90ef93e62",5837:"277a477446d6644aada6",5913:"05aedc7af19c252ddf9d",5935:"60a08ce29d09cb07ef06",6082:"593915087f5ea649e7fa",6188:"cd088294601739a5b879",6233:"766f397dfdfbc0eb72d1",6237:"8a7fa4e8b0d14da7c9eb",6261:"ef141014ed21a7fd1ff3",6314:"e8db7303b2f63c0ec0c9",6368:"2c57d16d4aa0462150cf",6459:"52d02021e858820bc4fa",6481:"f6c39edd04cb96d98240",6502:"a45586a103dbfaa8b76d",6565:"ca3be824c256b5b47091",6584:"ac1064ace8ede6ff8c2e",6610:"e8cb46da09853804b5e8",6695:"0d805fd9cd9ff3a636ca",6710:"1fc3b526e881ada30420",6748:"47633db928084082a4c8",6774:"0f04978e8342d9a35e59",6841:"8f027f5a1f4438cb2b3c",6935:"e3eb1ccf5fde499cbfbf",6946:"630b3fca46208caf4190",7126:"e0499f45b098450b80b4",7202:"3027e02a0e8e333acd14",7277:"5bd470ff65d44840349e",7303:"3488af6cb628b9476beb",7316:"7fe49c75681787c7f30f",7374:"17ebe76d4419fe69e13c",7476:"e8b944020675385ae064",7483:"29add41db6fe8def4217",7519:"259d3d890f634fb0aba6",7628:"37fa5a939e69bf3bab8d",7681:"808206f87b9f0ab13bf7",7697:"670e49f9f320cd7fa212",7873:"67f008f858783805ea96",8008:"ee88fbf99ea9d4eb1554",8024:"19c1b6655a368504a468",8062:"892ffe40c098d023962f",8079:"90598e3774e6638b1a01",8092:"f1b26b73101210b8f29c",8096:"0eb26c0191d624b9a128",8153:"d5c8119d6d34628d3126",8228:"e5352dc8983d06d4ee0f",8346:"6b817ea3de7e29197bb6",8522:"b3c5066acb06e54fcede",8598:"1fd7e2d91d0d76ba1802",8636:"431d54867bc3bb848fbb",8732:"eb3cbfe51627f89c347f",8758:"9e22a90115de672e7bb8",8828:"d244e50c981146f018d2",8865:"ca0c5c945a374fdbd000",9016:"3a0d1e09414794ec58ec",9037:"5c64fd3bf057a1a5527f",9097:"777d71da60873a6cb76f",9169:"cfad34c949cbe8a31ef8",9238:"5bf51ad3b910ab7f8889",9243:"6c519c5a474f51f37af0",9255:"9db6306f32e9adae6e71",9291:"514346a7831c08ec7c1e",9296:"2f71d74162a2c08b8a0c",9372:"1a43f20703f0c692cb6b",9393:"c5ad289e8c52f3f42893",9469:"7459f911d139aab26288",9594:"1535423349f7eee694bc",9675:"05dd706a9f7a022da7b1",9771:"7acef6bf6878fe4246c8",9790:"d9060d6d1e9448e2dfd8",9805:"d0ff496834686dbfe29f",9880:"468c79e532c32fdd2cc7",9884:"8cc8d88e5dd1e586eb04",9904:"e8df43c1af128522b2e0",9942:"46ed1a1b3b98959ad7d6",9971:"fd64f62a9bbf9e4341d4"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&!e;)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={134:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)r.o(s,a)&&(r.m[a]=s[a]);for(i&&i(r);o.length;)e[o.pop()]=1;n(t)}})(),r(88277);var n=r(728);RemoteClient=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1412,3172,9880],{99880:(t,e,n)=>{n.d(e,{V:()=>u});var r=n(68773),o=(n(3172),n(20102)),a=n(92604),s=n(81271);const i=a.Z.getLogger("esri.assets");function u(t){if(!r.default.assetsPath)throw i.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,s.v_)(r.default.assetsPath,t)}},46851:(t,e,n)=>{n.d(e,{R:()=>a,a:()=>c,g:()=>o,t:()=>u});let r=1e-6;function o(){return r}const a=Math.random,s=Math.PI/180,i=180/Math.PI;function u(t){return t*s}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"}))},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,a,s,i,u){return[t,e,n,r,o,a,s,i,u]}function a(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>a,c:()=>r,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:a,fromValues:o},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{A:()=>M,a:()=>u,d:()=>m,e:()=>h,f:()=>d,g:()=>p,h:()=>_,i:()=>s,j:()=>w,k:()=>l,m:()=>c,s:()=>a,t:()=>i,w:()=>f,y:()=>T,z:()=>E});var r=n(65617),o=n(46851);function a(t,e,n,r,o,a,s,i,u,c,f,l,h,d,m,M,b){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=s,t[6]=i,t[7]=u,t[8]=c,t[9]=f,t[10]=l,t[11]=h,t[12]=d,t[13]=m,t[14]=M,t[15]=b,t}function s(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 i(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],a=e[6],s=e[7],i=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]=r,t[9]=a,t[11]=e[14],t[12]=o,t[13]=s,t[14]=i}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 u(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],i=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15],p=n*i-r*s,y=n*u-o*s,w=n*c-a*s,_=r*u-o*i,E=r*c-a*i,T=o*c-a*u,S=f*M-l*m,P=f*b-h*m,v=f*g-d*m,O=l*b-h*M,q=l*g-d*M,x=h*g-d*b;let I=p*x-y*q+w*O+_*v-E*P+T*S;return I?(I=1/I,t[0]=(i*x-u*q+c*O)*I,t[1]=(o*q-r*x-a*O)*I,t[2]=(M*T-b*E+g*_)*I,t[3]=(h*E-l*T-d*_)*I,t[4]=(u*v-s*x-c*P)*I,t[5]=(n*x-o*v+a*P)*I,t[6]=(b*w-m*T-g*y)*I,t[7]=(f*T-h*w+d*y)*I,t[8]=(s*q-i*v+c*S)*I,t[9]=(r*v-n*q-a*S)*I,t[10]=(m*E-M*w+g*p)*I,t[11]=(l*w-f*E-d*p)*I,t[12]=(i*P-s*O-u*S)*I,t[13]=(n*O-r*P+o*S)*I,t[14]=(M*y-m*_-b*p)*I,t[15]=(f*_-l*y+h*p)*I,t):null}function c(t,e,n){const r=e[0],o=e[1],a=e[2],s=e[3],i=e[4],u=e[5],c=e[6],f=e[7],l=e[8],h=e[9],d=e[10],m=e[11],M=e[12],b=e[13],g=e[14],p=e[15];let y=n[0],w=n[1],_=n[2],E=n[3];return t[0]=y*r+w*i+_*l+E*M,t[1]=y*o+w*u+_*h+E*b,t[2]=y*a+w*c+_*d+E*g,t[3]=y*s+w*f+_*m+E*p,y=n[4],w=n[5],_=n[6],E=n[7],t[4]=y*r+w*i+_*l+E*M,t[5]=y*o+w*u+_*h+E*b,t[6]=y*a+w*c+_*d+E*g,t[7]=y*s+w*f+_*m+E*p,y=n[8],w=n[9],_=n[10],E=n[11],t[8]=y*r+w*i+_*l+E*M,t[9]=y*o+w*u+_*h+E*b,t[10]=y*a+w*c+_*d+E*g,t[11]=y*s+w*f+_*m+E*p,y=n[12],w=n[13],_=n[14],E=n[15],t[12]=y*r+w*i+_*l+E*M,t[13]=y*o+w*u+_*h+E*b,t[14]=y*a+w*c+_*d+E*g,t[15]=y*s+w*f+_*m+E*p,t}function f(t,e,n){const r=n[0],o=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*a+e[12],t[13]=e[1]*r+e[5]*o+e[9]*a+e[13],t[14]=e[2]*r+e[6]*o+e[10]*a+e[14],t[15]=e[3]*r+e[7]*o+e[11]*a+e[15];else{const n=e[0],s=e[1],i=e[2],u=e[3],c=e[4],f=e[5],l=e[6],h=e[7],d=e[8],m=e[9],M=e[10],b=e[11];t[0]=n,t[1]=s,t[2]=i,t[3]=u,t[4]=c,t[5]=f,t[6]=l,t[7]=h,t[8]=d,t[9]=m,t[10]=M,t[11]=b,t[12]=n*r+c*o+d*a+e[12],t[13]=s*r+f*o+m*a+e[13],t[14]=i*r+l*o+M*a+e[14],t[15]=u*r+h*o+b*a+e[15]}return t}function l(t,e,n){const r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function h(t,e,n,r){let a,s,i,u,c,f,l,h,d,m,M,b,g,p,y,w,_,E,T,S,P,v,O,q,x=r[0],I=r[1],A=r[2],L=Math.sqrt(x*x+I*I+A*A);return L<(0,o.g)()?null:(L=1/L,x*=L,I*=L,A*=L,a=Math.sin(n),s=Math.cos(n),i=1-s,u=e[0],c=e[1],f=e[2],l=e[3],h=e[4],d=e[5],m=e[6],M=e[7],b=e[8],g=e[9],p=e[10],y=e[11],w=x*x*i+s,_=I*x*i+A*a,E=A*x*i-I*a,T=x*I*i-A*a,S=I*I*i+s,P=A*I*i+x*a,v=x*A*i+I*a,O=I*A*i-x*a,q=A*A*i+s,t[0]=u*w+h*_+b*E,t[1]=c*w+d*_+g*E,t[2]=f*w+m*_+p*E,t[3]=l*w+M*_+y*E,t[4]=u*T+h*S+b*P,t[5]=c*T+d*S+g*P,t[6]=f*T+m*S+p*P,t[7]=l*T+M*S+y*P,t[8]=u*v+h*O+b*q,t[9]=c*v+d*O+g*q,t[10]=f*v+m*O+p*q,t[11]=l*v+M*O+y*q,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function m(t,e,n){if(0===e)return s(t);let r,a,i,u=n[0],c=n[1],f=n[2],l=Math.sqrt(u*u+c*c+f*f);return l<(0,o.g)()?null:(l=1/l,u*=l,c*=l,f*=l,r=Math.sin(e),a=Math.cos(e),i=1-a,t[0]=u*u*i+a,t[1]=c*u*i+f*r,t[2]=f*u*i-c*r,t[3]=0,t[4]=u*c*i-f*r,t[5]=c*c*i+a,t[6]=f*c*i+u*r,t[7]=0,t[8]=u*f*i+c*r,t[9]=c*f*i-u*r,t[10]=f*f*i+a,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),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e,n){const r=e[0],o=e[1],a=e[2],s=e[3],i=r+r,u=o+o,c=a+a,f=r*i,l=r*u,h=r*c,d=o*u,m=o*c,M=a*c,b=s*i,g=s*u,p=s*c;return t[0]=1-(d+M),t[1]=l+p,t[2]=h-g,t[3]=0,t[4]=l-p,t[5]=1-(f+M),t[6]=m+b,t[7]=0,t[8]=h+g,t[9]=m-b,t[10]=1-(f+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const g=(0,r.c)();function p(t,e,n,r){const o=e[0],a=e[1],s=e[2],i=e[3],u=o+o,c=a+a,f=s+s,l=o*u,h=o*c,d=o*f,m=a*c,M=a*f,b=s*f,g=i*u,p=i*c,y=i*f,w=r[0],_=r[1],E=r[2];return t[0]=(1-(m+b))*w,t[1]=(h+y)*w,t[2]=(d-p)*w,t[3]=0,t[4]=(h-y)*_,t[5]=(1-(l+b))*_,t[6]=(M+g)*_,t[7]=0,t[8]=(d+p)*E,t[9]=(M-g)*E,t[10]=(1-(l+m))*E,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function y(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 w(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 _(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],s=t[3],i=t[4],u=t[5],c=t[6],f=t[7],l=t[8],h=t[9],d=t[10],m=t[11],M=t[12],b=t[13],g=t[14],p=t[15],y=e[0],w=e[1],_=e[2],E=e[3],T=e[4],S=e[5],P=e[6],v=e[7],O=e[8],q=e[9],x=e[10],I=e[11],A=e[12],L=e[13],C=e[14],k=e[15],R=(0,o.g)();return Math.abs(n-y)<=R*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-w)<=R*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-_)<=R*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(s-E)<=R*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(i-T)<=R*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(u-S)<=R*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(c-P)<=R*Math.max(1,Math.abs(c),Math.abs(P))&&Math.abs(f-v)<=R*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(l-O)<=R*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(h-q)<=R*Math.max(1,Math.abs(h),Math.abs(q))&&Math.abs(d-x)<=R*Math.max(1,Math.abs(d),Math.abs(x))&&Math.abs(m-I)<=R*Math.max(1,Math.abs(m),Math.abs(I))&&Math.abs(M-A)<=R*Math.max(1,Math.abs(M),Math.abs(A))&&Math.abs(b-L)<=R*Math.max(1,Math.abs(b),Math.abs(L))&&Math.abs(g-C)<=R*Math.max(1,Math.abs(g),Math.abs(C))&&Math.abs(p-k)<=R*Math.max(1,Math.abs(p),Math.abs(k))}function E(t){const e=(0,o.g)(),n=t[0],r=t[1],a=t[2],s=t[4],i=t[5],u=t[6],c=t[8],f=t[9],l=t[10];return Math.abs(1-(n*n+s*s+c*c))<=e&&Math.abs(1-(r*r+i*i+f*f))<=e&&Math.abs(1-(a*a+u*u+l*l))<=e}function T(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const S=c,P=y;Object.freeze(Object.defineProperty({__proto__:null,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},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],i=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15];return t[0]=i*(h*g-d*b)-l*(u*g-c*b)+M*(u*d-c*h),t[1]=-(r*(h*g-d*b)-l*(o*g-a*b)+M*(o*d-a*h)),t[2]=r*(u*g-c*b)-i*(o*g-a*b)+M*(o*c-a*u),t[3]=-(r*(u*d-c*h)-i*(o*d-a*h)+l*(o*c-a*u)),t[4]=-(s*(h*g-d*b)-f*(u*g-c*b)+m*(u*d-c*h)),t[5]=n*(h*g-d*b)-f*(o*g-a*b)+m*(o*d-a*h),t[6]=-(n*(u*g-c*b)-s*(o*g-a*b)+m*(o*c-a*u)),t[7]=n*(u*d-c*h)-s*(o*d-a*h)+f*(o*c-a*u),t[8]=s*(l*g-d*M)-f*(i*g-c*M)+m*(i*d-c*l),t[9]=-(n*(l*g-d*M)-f*(r*g-a*M)+m*(r*d-a*l)),t[10]=n*(i*g-c*M)-s*(r*g-a*M)+m*(r*c-a*i),t[11]=-(n*(i*d-c*l)-s*(r*d-a*l)+f*(r*c-a*i)),t[12]=-(s*(l*b-h*M)-f*(i*b-u*M)+m*(i*h-u*l)),t[13]=n*(l*b-h*M)-f*(r*b-o*M)+m*(r*h-o*l),t[14]=-(n*(i*b-u*M)-s*(r*b-o*M)+m*(r*u-o*i)),t[15]=n*(i*h-u*l)-s*(r*h-o*l)+f*(r*u-o*i),t},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},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],s=t[5],i=t[6],u=t[7],c=t[8],f=t[9],l=t[10],h=t[11],d=t[12],m=t[13],M=t[14],b=t[15];return(e*s-n*a)*(l*b-h*M)-(e*i-r*a)*(f*b-h*m)+(e*u-o*a)*(f*M-l*m)+(n*i-r*s)*(c*b-h*d)-(n*u-o*s)*(c*M-l*d)+(r*u-o*i)*(c*m-f*d)},equals:_,exactEquals:w,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],s=n+n,i=r+r,u=o+o,c=n*s,f=r*s,l=r*i,h=o*s,d=o*i,m=o*u,M=a*s,b=a*i,g=a*u;return t[0]=1-l-m,t[1]=f+g,t[2]=h-b,t[3]=0,t[4]=f-g,t[5]=1-c-m,t[6]=d+M,t[7]=0,t[8]=h+b,t[9]=d-M,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=g,r=-e[0],o=-e[1],a=-e[2],s=e[3],i=e[4],u=e[5],c=e[6],f=e[7],l=r*r+o*o+a*a+s*s;return l>0?(n[0]=2*(i*s+f*r+u*a-c*o)/l,n[1]=2*(u*s+f*o+c*r-i*a)/l,n[2]=2*(c*s+f*a+i*o-u*r)/l):(n[0]=2*(i*s+f*r+u*a-c*o),n[1]=2*(u*s+f*o+c*r-i*a),n[2]=2*(c*s+f*a+i*o-u*r)),b(t,e,n),t},fromRotation:m,fromRotationTranslation:b,fromRotationTranslationScale:p,fromRotationTranslationScaleOrigin:function(t,e,n,r,o){const a=e[0],s=e[1],i=e[2],u=e[3],c=a+a,f=s+s,l=i+i,h=a*c,d=a*f,m=a*l,M=s*f,b=s*l,g=i*l,p=u*c,y=u*f,w=u*l,_=r[0],E=r[1],T=r[2],S=o[0],P=o[1],v=o[2],O=(1-(M+g))*_,q=(d+w)*_,x=(m-y)*_,I=(d-w)*E,A=(1-(h+g))*E,L=(b+p)*E,C=(m+y)*T,k=(b-p)*T,R=(1-(h+M))*T;return t[0]=O,t[1]=q,t[2]=x,t[3]=0,t[4]=I,t[5]=A,t[6]=L,t[7]=0,t[8]=C,t[9]=k,t[10]=R,t[11]=0,t[12]=n[0]+S-(O*S+I*P+C*v),t[13]=n[1]+P-(q*S+A*P+k*v),t[14]=n[2]+v-(x*S+L*P+R*v),t[15]=1,t},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},fromTranslation:d,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,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]=r,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),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,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},frustum:function(t,e,n,r,o,a,s){const i=1/(n-e),u=1/(o-r),c=1/(a-s);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*u,t[6]=0,t[7]=0,t[8]=(n+e)*i,t[9]=(o+r)*u,t[10]=(s+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*a*2*c,t[15]=0,t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},getScaling:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[4],s=e[5],i=e[6],u=e[8],c=e[9],f=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(a*a+s*s+i*i),t[2]=Math.sqrt(u*u+c*c+f*f),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:T,identity:s,invert:u,invertOrIdentity:function(t,e){return u(t,e)||s(t),t},isOrthoNormal:E,lookAt:function(t,e,n,r){const a=e[0],i=e[1],u=e[2];let c=a-n[0],f=i-n[1],l=u-n[2];const h=(0,o.g)();if(Math.abs(c)<h&&Math.abs(f)<h&&Math.abs(l)<h)return void s(t);let d=1/Math.sqrt(c*c+f*f+l*l);c*=d,f*=d,l*=d;const m=r[0],M=r[1],b=r[2];let g=M*l-b*f,p=b*c-m*l,y=m*f-M*c;d=Math.sqrt(g*g+p*p+y*y),d?(d=1/d,g*=d,p*=d,y*=d):(g=0,p=0,y=0);let w=f*y-l*p,_=l*g-c*y,E=c*p-f*g;d=Math.sqrt(w*w+_*_+E*E),d?(d=1/d,w*=d,_*=d,E*=d):(w=0,_=0,E=0),t[0]=g,t[1]=w,t[2]=c,t[3]=0,t[4]=p,t[5]=_,t[6]=f,t[7]=0,t[8]=y,t[9]=E,t[10]=l,t[11]=0,t[12]=-(g*a+p*i+y*u),t[13]=-(w*a+_*i+E*u),t[14]=-(c*a+f*i+l*u),t[15]=1},mul:S,multiply:c,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,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,a,s){const i=1/(e-n),u=1/(r-o),c=1/(a-s);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*i,t[13]=(o+r)*u,t[14]=(s+a)*c,t[15]=1,t},perspective:function(t,e,n,r,o){const a=1/Math.tan(e/2);let s;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,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!=o&&o!==1/0?(s=1/(r-o),t[10]=(o+r)*s,t[14]=2*o*r*s):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),u=2/(s+i),c=2/(o+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(s-i)*u*.5,t[9]=(o-a)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:h,rotateX:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),a=e[4],s=e[5],i=e[6],u=e[7],c=e[8],f=e[9],l=e[10],h=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]=a*o+c*r,t[5]=s*o+f*r,t[6]=i*o+l*r,t[7]=u*o+h*r,t[8]=c*o-a*r,t[9]=f*o-s*r,t[10]=l*o-i*r,t[11]=h*o-u*r,t},rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),a=e[0],s=e[1],i=e[2],u=e[3],c=e[8],f=e[9],l=e[10],h=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]=a*o-c*r,t[1]=s*o-f*r,t[2]=i*o-l*r,t[3]=u*o-h*r,t[8]=a*r+c*o,t[9]=s*r+f*o,t[10]=i*r+l*o,t[11]=u*r+h*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),a=e[0],s=e[1],i=e[2],u=e[3],c=e[4],f=e[5],l=e[6],h=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]=a*o+c*r,t[1]=s*o+f*r,t[2]=i*o+l*r,t[3]=u*o+h*r,t[4]=c*o-a*r,t[5]=f*o-s*r,t[6]=l*o-i*r,t[7]=h*o-u*r,t},scale:l,set:a,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:P,subtract:y,targetTo:function(t,e,n,r){const o=e[0],a=e[1],s=e[2],i=r[0],u=r[1],c=r[2];let f=o-n[0],l=a-n[1],h=s-n[2],d=f*f+l*l+h*h;d>0&&(d=1/Math.sqrt(d),f*=d,l*=d,h*=d);let m=u*h-c*l,M=c*f-i*h,b=i*l-u*f;return d=m*m+M*M+b*b,d>0&&(d=1/Math.sqrt(d),m*=d,M*=d,b*=d),t[0]=m,t[1]=M,t[2]=b,t[3]=0,t[4]=l*b-h*M,t[5]=h*m-f*b,t[6]=f*M-l*m,t[7]=0,t[8]=f,t[9]=l,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=s,t[15]=1,t},translate:f,transpose:i},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}function a(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>s,a:()=>a,b:()=>o,c:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,createView:a,fromValues:function(t,e,n,r,o,a,s,i,u,c,f,l,h,d,m,M){return[t,e,n,r,o,a,s,i,u,c,f,l,h,d,m,M]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}function a(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>s,a:()=>r,b:()=>o,c:()=>a});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,createView:a,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},29268:(t,e,n)=>{n.d(e,{a:()=>p,c:()=>b,g:()=>y,h:()=>g,j:()=>E,l:()=>x}),n(80442);var r,o,a=n(92604),s=n(22021),i=n(52138),u=n(17896),c=n(65617),f=n(98766),l=n(88669);(o=r||(r={}))[o.X=0]="X",o[o.Y=1]="Y",o[o.Z=2]="Z";var h=n(78341),d=n(61277),m=n(12981);const M=b();function b(){return(0,l.c)()}function g(t,e=b()){return(0,f.c)(e,t)}function p(t){return t[3]}function y(t){return t}function w(t,e,n){if(null==e)return!1;const{origin:r,direction:o}=e,a=_;a[0]=r[0]-t[0],a[1]=r[1]-t[1],a[2]=r[2]-t[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===s)return!1;const i=2*(o[0]*a[0]+o[1]*a[1]+o[2]*a[2]),u=i*i-4*s*(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]-t[3]*t[3]);if(u<0)return!1;const c=Math.sqrt(u);let f=(-i-c)/(2*s);const l=(-i+c)/(2*s);return(f<0||l<f&&l>0)&&(f=l),!(f<0||(n&&(n[0]=r[0]+o[0]*f,n[1]=r[1]+o[1]*f,n[2]=r[2]+o[2]*f),0))}const _=(0,c.c)();function E(t,e){return w(t,e,null)}function T(t,e,n){const r=m.WM.get(),o=m.MP.get();(0,u.f)(r,e.origin,e.direction);const a=p(t);(0,u.f)(n,r,e.origin),(0,u.g)(n,n,1/(0,u.l)(n)*a);const s=P(t,e.origin),c=(0,d.EU)(e.origin,n);return(0,i.d)(o,c+s,r),(0,u.m)(n,n,o),n}function S(t,e,n){const r=(0,u.b)(m.WM.get(),e,t),o=(0,u.g)(m.WM.get(),r,t[3]/(0,u.l)(r));return(0,u.a)(n,o,t)}function P(t,e){const n=(0,u.b)(m.WM.get(),e,t),r=(0,u.l)(n),o=p(t),a=o+Math.abs(o-r);return(0,s.ZF)(o/a)}const v=(0,c.c)();function O(t,e,n,o){const a=(0,u.b)(v,e,t);switch(n){case r.X:{const t=(0,s.jE)(a,v)[2];return(0,u.s)(o,-Math.sin(t),Math.cos(t),0)}case r.Y:{const t=(0,s.jE)(a,v),e=t[1],n=t[2],r=Math.sin(e);return(0,u.s)(o,-r*Math.cos(n),-r*Math.sin(n),Math.cos(e))}case r.Z:return(0,u.n)(o,a);default:return}}function q(t,e){const n=(0,u.b)(I,e,t);return(0,u.l)(n)-t[3]}function x(t,e){const n=(0,u.d)(t,e),r=p(t);return n<=r*r}const I=(0,c.c)(),A=b();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:M,altitudeAt:q,angleToSilhouette:P,axisAt:O,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return w(t,e,n)?n:((0,h.JI)(e,t,n),S(t,n,n))},closestPointOnSilhouette:T,containsPoint:x,copy:g,create:b,distanceToSilhouette:function(t,e){const n=(0,u.b)(m.WM.get(),e,t),r=(0,u.p)(n),o=t[3]*t[3];return Math.sqrt(Math.abs(r-o))},elevate:function(t,e,n){return t!==n&&(0,u.c)(n,t),n[3]=t[3]+e,n},fromCenterAndRadius:function(t,e){return(0,l.f)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:function(t,e,n,r){return(0,l.f)(t,e,n,r)},getCenter:y,getRadius:p,intersectRay:w,intersectRayClosestSilhouette:function(t,e,n){if(w(t,e,n))return n;const r=T(t,e,m.WM.get());return(0,u.a)(n,e.origin,(0,u.g)(m.WM.get(),e.direction,(0,u.i)(e.origin,r)/(0,u.l)(e.direction))),n},intersectsRay:E,projectPoint:S,setAltitudeAt:function(t,e,n,o){const a=q(t,e),s=O(t,e,r.Z,I),i=(0,u.g)(I,s,n-a);return(0,u.a)(o,e,i)},setExtent:function(t,e,n){return a.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:g(t,n)},tmpSphere:A,union:function(t,e,n=b()){const r=(0,u.i)(t,e),o=t[3],a=e[3];return r+a<o?((0,f.c)(n,t),n):r+o<a?((0,f.c)(n,e),n):((0,u.h)(n,t,e,(r+a-o)/(2*r)),n[3]=(r+o+a)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function r(){return[0,0]}function o(t,e){return[t,e]}function a(t,e){return new Float64Array(t,e,2)}function s(){return o(1,1)}function i(){return o(1,0)}function u(){return o(0,1)}n.d(e,{a:()=>r,c:()=>a,f:()=>o});const c=s(),f=i(),l=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:l,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:a,fromArray:function(t){const e=[0,0],n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:s,unitX:i,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},17896:(t,e,n)=>{n.d(e,{A:()=>d,C:()=>f,D:()=>l,a:()=>u,b:()=>c,c:()=>s,d:()=>M,e:()=>p,f:()=>y,g:()=>h,h:()=>w,i:()=>m,j:()=>A,k:()=>v,l:()=>a,m:()=>_,n:()=>g,p:()=>b,q:()=>T,r:()=>O,s:()=>i,t:()=>E,u:()=>C});var r=n(65617),o=n(46851);function a(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function d(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function m(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function g(t,e){const n=e[0],r=e[1],o=e[2];let a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function y(t,e,n){const r=e[0],o=e[1],a=e[2],s=n[0],i=n[1],u=n[2];return t[0]=o*u-a*i,t[1]=a*s-r*u,t[2]=r*i-o*s,t}function w(t,e,n,r){const o=e[0],a=e[1],s=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=s+r*(n[2]-s),t}function _(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function E(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function T(t,e,n){const r=n[0],o=n[1],a=n[2],s=n[3],i=e[0],u=e[1],c=e[2];let f=o*c-a*u,l=a*i-r*c,h=r*u-o*i,d=o*h-a*l,m=a*f-r*h,M=r*l-o*f;const b=2*s;return f*=b,l*=b,h*=b,d*=2,m*=2,M*=2,t[0]=i+f+d,t[1]=u+l+m,t[2]=c+h+M,t}const S=(0,r.c)(),P=(0,r.c)();function v(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function O(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2];let s=r*r+o*o+a*a;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=o*s,t[2]=a*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const q=c,x=f,I=l,A=m,L=M,C=a,k=b;Object.freeze(Object.defineProperty({__proto__:null,abs:function(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t},add:u,angle:function(t,e){s(S,t),s(P,e),g(S,S),g(P,P);const n=p(S,P);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,a){const s=1-a,i=s*s,u=a*a,c=i*s,f=3*a*i,l=3*u*s,h=u*a;return t[0]=e[0]*c+n[0]*f+r[0]*l+o[0]*h,t[1]=e[1]*c+n[1]*f+r[1]*l+o[1]*h,t[2]=e[2]*c+n[2]*f+r[2]*l+o[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},copy:s,cross:y,direction:O,dist:A,distance:m,div:I,divide:l,dot:p,equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],s=e[0],i=e[1],u=e[2],c=(0,o.g)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-u)<=c*Math.max(1,Math.abs(a),Math.abs(u))},exactEquals:v,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,a){const s=a*a,i=s*(2*a-3)+1,u=s*(a-2)+a,c=s*(a-1),f=s*(3-2*a);return t[0]=e[0]*i+n[0]*u+r[0]*c+o[0]*f,t[1]=e[1]*i+n[1]*u+r[1]*c+o[1]*f,t[2]=e[2]*i+n[2]*u+r[2]*c+o[2]*f,t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},len:C,length:a,lerp:w,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},mul:x,multiply:f,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},normalize:g,random:function(t,e){e=e||1;const n=o.R,r=2*n()*Math.PI,a=2*n()-1,s=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=a*e,t},rotateX:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:h,scaleAndAdd:d,set:i,sign:function(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t},sqrDist:L,sqrLen:k,squaredDistance:M,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:q,subtract:c,transformMat3:E,transformMat4:_,transformQuat:T},Symbol.toStringTag,{value:"Module"}))},65617:(t,e,n)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function s(t){const e=[0,0,0],n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function i(t,e){return new Float64Array(t,e,3)}function u(){return a(1,1,1)}function c(){return a(1,0,0)}function f(){return a(0,1,0)}function l(){return a(0,0,1)}n.d(e,{O:()=>d,U:()=>b,Z:()=>h,a:()=>o,b:()=>i,c:()=>r,d:()=>m,e:()=>M,f:()=>a,g:()=>s});const h=[0,0,0],d=u(),m=c(),M=f(),b=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:m,UNIT_Y:M,UNIT_Z:b,ZEROS:h,clone:o,create:r,createView:i,fromArray:s,fromValues:a,ones:u,unitX:c,unitY:f,unitZ:l,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},98766:(t,e,n)=>{n.d(e,{a:()=>s,b:()=>f,c:()=>o,d:()=>b,e:()=>d,f:()=>m,g:()=>p,h:()=>y,l:()=>g,n:()=>M,s:()=>a});var r=n(46851);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function s(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}function i(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}function u(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}function c(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}function f(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}function l(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+o*o+a*a)}function h(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+o*o+a*a}function d(t){const e=t[0],n=t[1],r=t[2],o=t[3];return Math.sqrt(e*e+n*n+r*r+o*o)}function m(t){const e=t[0],n=t[1],r=t[2],o=t[3];return e*e+n*n+r*r+o*o}function M(t,e){const n=e[0],r=e[1],o=e[2],a=e[3];let s=n*n+r*r+o*o+a*a;return s>0&&(s=1/Math.sqrt(s),t[0]=n*s,t[1]=r*s,t[2]=o*s,t[3]=a*s),t}function b(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function g(t,e,n,r){const o=e[0],a=e[1],s=e[2],i=e[3];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=s+r*(n[2]-s),t[3]=i+r*(n[3]-i),t}function p(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function y(t,e){const n=t[0],o=t[1],a=t[2],s=t[3],i=e[0],u=e[1],c=e[2],f=e[3],l=(0,r.g)();return Math.abs(n-i)<=l*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-u)<=l*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(a-c)<=l*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(s-f)<=l*Math.max(1,Math.abs(s),Math.abs(f))}const w=i,_=u,E=c,T=l,S=h,P=d,v=m;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:o,dist:T,distance:l,div:E,divide:c,dot:b,equals:y,exactEquals:p,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:P,length:d,lerp:g,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},mul:_,multiply:u,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:M,random:function(t,e){const n=r.R;let o,a,s,i,u,c;e=e||1;do{o=2*n()-1,a=2*n()-1,u=o*o+a*a}while(u>=1);do{s=2*n()-1,i=2*n()-1,c=s*s+i*i}while(c>=1);const f=Math.sqrt((1-u)/c);return t[0]=e*o,t[1]=e*a,t[2]=e*s*f,t[3]=e*i*f,t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},scale:f,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},set:a,sqrDist:S,sqrLen:v,squaredDistance:h,squaredLength:m,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:w,subtract:i,transformMat4:function(t,e,n){const r=e[0],o=e[1],a=e[2],s=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12]*s,t[1]=n[1]*r+n[5]*o+n[9]*a+n[13]*s,t[2]=n[2]*r+n[6]*o+n[10]*a+n[14]*s,t[3]=n[3]*r+n[7]*o+n[11]*a+n[15]*s,t},transformQuat:function(t,e,n){const r=e[0],o=e[1],a=e[2],s=n[0],i=n[1],u=n[2],c=n[3],f=c*r+i*a-u*o,l=c*o+u*r-s*a,h=c*a+s*o-i*r,d=-s*r-i*o-u*a;return t[0]=f*c+d*-s+l*-u-h*-i,t[1]=l*c+d*-i+h*-s-f*-u,t[2]=h*c+d*-u+f*-i-l*-s,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},88669:(t,e,n)=>{function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function a(t,e){return new Float64Array(t,e,4)}function s(){return o(1,1,1,1)}function i(){return o(1,0,0,0)}function u(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}n.d(e,{a:()=>a,c:()=>r,f:()=>o});const l=s(),h=i(),d=u(),m=c(),M=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_W:M,UNIT_X:h,UNIT_Y:d,UNIT_Z:m,ZEROS:[0,0,0,0],clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,createView:a,fromArray:function(t){const e=[0,0,0,0],n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:s,unitW:f,unitX:i,unitY:u,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},91303:(t,e,n)=>{var r;n.d(e,{Y:()=>r}),function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(r||(r={}))},22807:(t,e,n)=>{n.d(e,{x:()=>o});var r=n(41213);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.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*a);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,a));t++)this._items.push(this._allocator())}}const a=1024},22021:(t,e,n)=>{n.d(e,{BV:()=>f,Kt:()=>h,Sf:()=>a,Vl:()=>c,ZF:()=>l,_3:()=>w,jE:()=>p,oK:()=>b,oc:()=>y,t7:()=>u,uZ:()=>s,wt:()=>i});var r=n(17896);n(98766);const o=new Float32Array(1);function a(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function s(t,e,n){return Math.min(Math.max(t,e),n)}function i(t){return 0==(t&t-1)}function u(t,e,n){return t+(e-t)*n}function c(t){return t*Math.PI/180}function f(t){return 180*t/Math.PI}function l(t){return Math.acos(s(t,-1,1))}function h(t){return Math.asin(s(t,-1,1))}function d(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}const m=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const M=BigInt("1000000");function b(t){return g(Math.max(-w,Math.min(t,w)))}function g(t){return o[0]=t,o[0]}function p(t,e){const n=(0,r.l)(t),o=h(t[2]/n),a=Math.atan2(t[1]/n,t[0]/n);return(0,r.s)(e,n,o,a),e}function y(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(d(e,1)&&d(n,1)&&d(r,1))}!function(t){const e=function(t){return m.setFloat64(0,t),m.getBigInt64(0)}(t=Math.abs(t)),n=function(t){return m.setBigInt64(0,t),m.getFloat64(0)}(e<=M?M:e-M);Math.abs(t-n)}(1);const w=g(34028234663852886e22)},41213:(t,e,n)=>{n.d(e,{Y:()=>o});const r=[];function o(t){r.push(t),1===r.length&&queueMicrotask((()=>{const t=r.slice();r.length=0;for(const e of t)e()}))}},78341:(t,e,n)=>{n.d(e,{JI:()=>c,Ue:()=>s,re:()=>u}),n(67676);var r=n(22807),o=n(17896),a=n(65617);function s(t){return t?i((0,a.a)(t.origin),(0,a.a)(t.direction)):i((0,a.c)(),(0,a.c)())}function i(t,e){return{origin:t,direction:e}}function u(t,e){const n=f.get();return n.origin=t,n.direction=e,n}function c(t,e,n){const r=(0,o.e)(t.direction,(0,o.b)(n,e,t.origin));return(0,o.a)(n,t.origin,(0,o.g)(n,t.direction,r)),n}n(12981);const f=new r.x((()=>s()))},61277:(t,e,n)=>{n.d(e,{EU:()=>s});var r=n(22021),o=n(17896),a=n(65617);function s(t,e){const n=(0,o.e)(t,e)/((0,o.l)(t)*(0,o.l)(e));return-(0,r.ZF)(n)}(0,a.c)(),(0,a.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>m,WM:()=>d});var r=n(91303),o=n(41213),a=n(46521),s=n(13598),i=n(94961),u=n(97323),c=n(65617),f=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,o.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=h){return new l(16,u.c,t)}static createVec3f64(t=h){return new l(24,c.b,t)}static createVec4f64(t=h){return new l(32,f.a,t)}static createMat3f64(t=h){return new l(72,a.a,t)}static createMat4f64(t=h){return new l(128,s.a,t)}static createQuatf64(t=h){return new l(32,i.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const h=4*r.Y.KILOBYTES,d=(l.createVec2f64(),l.createVec3f64()),m=(l.createVec4f64(),l.createMat3f64(),l.createMat4f64());l.createQuatf64()},3172:(t,e,n)=>{n.r(e),n.d(e,{default:()=>d});var r=n(68773),o=n(40330),a=n(20102),s=n(80442),i=n(22974),u=n(95330),c=n(81271),f=n(19745),l=n(71058),h=n(85958);async function d(t,e){const i=(0,c.HK)(t),f=(0,c.jc)(t);f||i||(t=(0,c.Fv)(t));const g={url:t,requestOptions:{...e}};let p=(0,c.oh)(t);if(p){const t=await async function(t,e){if(null!=t.responseData)return t.responseData;if(t.headers&&(e.requestOptions.headers={...e.requestOptions.headers,...t.headers}),t.query&&(e.requestOptions.query={...e.requestOptions.query,...t.query}),t.before){let n,r;try{r=await t.before(e)}catch(t){n=T("request:interceptor",t,e)}if((r instanceof Error||r instanceof a.Z)&&(n=T("request:interceptor",r,e)),n)throw t.error&&t.error(n),n;return r}}(p,g);if(null!=t)return{data:t,getHeader:w,httpStatus:200,requestOptions:g.requestOptions,url:g.url};p.after||p.error||(p=null)}if(t=g.url,"image"===(e=g.requestOptions).responseType&&((0,s.Z)("host-webworker")||(0,s.Z)("host-node")))throw T("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),g);if("head"===e.method){if(e.body)throw T("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),g);if(i||f)throw T("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),g)}if(await async function(){(0,s.Z)("host-webworker")?m||(m=await n.e(9884).then(n.bind(n,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(t,e);const y=new AbortController;(0,u.fu)(e,(()=>y.abort()));const _={controller:y,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:p,params:g,redoRequest:!1,useIdentity:M.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},E=await async function(t){let e,n;await async function(t){const e=t.params.url,n=t.params.requestOptions,a=t.controller.signal,s=n.body;let i=null,c=null;if(b&&"HTMLFormElement"in globalThis&&(s instanceof FormData?i=s:s instanceof HTMLFormElement&&(i=new FormData(s))),"string"==typeof s&&(c=s),t.fetchOptions={cache:n.cacheBust&&!("polyfill"in d._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",priority:M.priority,redirect:"follow",signal:a},(i||c)&&(t.fetchOptions.body=i||c),"anonymous"===n.authMode&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(e)||n.query?.token||i?.get("token")),!t.hasToken&&r.default.apiKey&&(0,l.r)(e)&&(n.query||(n.query={}),n.query.token=r.default.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!P(e)&&!(0,u.Hc)(a)){let r;"immediate"===n.authMode?(await S(),r=await o.id.getCredential(e,{signal:a}),t.credential=r):"no-prompt"===n.authMode?(await S(),r=await o.id.getCredential(e,{prompt:!1,signal:a}).catch((()=>{})),t.credential=r):o.id&&(r=o.id.findCredential(e)),r&&(t.credentialToken=r.token,t.useSSL=!!r.ssl)}}(t);try{do{[e,n]=await v(t)}while(!await q(t,e,n))}catch(n){const r=T("request:server",n,t.params,e);throw r.details.ssl=t.useSSL,t.interceptor?.error&&t.interceptor.error(r),r}const a=t.params.url;if(n&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!t.hasToken&&!t.credentialToken&&n.user?.username&&!(0,c.kl)(a)){const t=(0,c.P$)(a,!0);t&&M.trustedServers.push(t)}Array.isArray(n.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(n.authorizedCrossOriginNoCorsDomains)}const s=t.credential;if(s&&o.id){const t=o.id.findServerInfo(s.server);let e=t?.owningSystemUrl;if(e){e=e.replace(/\/?$/,"/sharing");const t=o.id.findCredential(e,s.userId);t&&-1===o.id._getIdenticalSvcIdx(e,t)&&t.resources.unshift(e)}}return{data:n,getHeader:e?t=>e?.headers.get(t):w,httpStatus:e?.status??200,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}(_);return p?.after?.(E),E}let m;const M=r.default.request,b="FormData"in globalThis,g=[499,498,403,401],p=["COM_0056","COM_0057","SB_0008"],y=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],w=()=>null,_=Symbol();function E(t){const e=(0,c.P$)(t);return!e||e.endsWith(".arcgis.com")||d._corsServers.includes(e)||(0,c.kl)(e)}function T(t,e,n,r){let o="Error";const s={url:n.url,requestOptions:n.requestOptions,getHeader:w,ssl:!1};if(e instanceof a.Z)return e.details?(e.details=(0,i.d9)(e.details),e.details.url=n.url,e.details.requestOptions=n.requestOptions):e.details=s,e;if(e){const t=r&&(t=>r.headers.get(t)),n=r?.status,a=e.message;a&&(o=a),t&&(s.getHeader=t),s.httpStatus=(null!=e.httpCode?e.httpCode:e.code)||n||0,s.subCode=e.subcode,s.messageCode=e.messageCode,"string"==typeof e.details?s.messages=[e.details]:s.messages=e.details,s.raw=_ in e?e[_]:e}return(0,u.D_)(e)?(0,u.zE)():new a.Z(t,o,s)}async function S(){o.id||await Promise.all([n.e(7126),n.e(6261),n.e(9255),n.e(1400),n.e(450)]).then(n.bind(n,73660))}function P(t){return y.some((e=>e.test(t)))}async function v(t){let e=t.params.url;const n=t.params.requestOptions,r=t.fetchOptions??{},a=(0,c.jc)(e)||(0,c.HK)(e),i=n.responseType||"json",l=a?0:null!=n.timeout?n.timeout:M.timeout;let m=!1;if(!a){t.useSSL&&(e=(0,c.hO)(e)),n.cacheBust&&"default"===r.cache&&(e=(0,c.ZN)(e,"request.preventCache",Date.now()));let a={...n.query};t.credentialToken&&(a.token=t.credentialToken);let i=(0,c.B7)(a);(0,s.Z)("esri-url-encodes-apostrophe")&&(i=i.replaceAll("'","%27"));const u=e.length+1+i.length;let l;m="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||u>M.maxUrlLength;const d=n.useProxy||!!(0,c.ed)(e);if(d){const t=(0,c.b7)(e);l=t.path,!m&&l.length+1+u>M.maxUrlLength&&(m=!0),t.query&&(a={...t.query,...a})}if("HEAD"===r.method&&(m||d)){if(m){if(u>M.maxUrlLength)throw T("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params);throw T("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params)}if(d)throw T("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),t.params)}if(m?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?e=(0,c.fl)(e,a):(r.body=(0,c.B7)(a),r.headers||(r.headers={}),r.headers["Content-Type"]="application/x-www-form-urlencoded")):e=(0,c.fl)(e,a),d&&(t.useProxy=!0,e=`${l}?${e}`),a.token&&b&&r.body instanceof FormData&&!(0,f.P)(e)&&r.body.set("token",a.token),n.hasOwnProperty("withCredentials"))t.withCredentials=n.withCredentials;else if(!(0,c.D6)(e,(0,c.TI)()))if((0,c.kl)(e))t.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(e);n?.webTierAuth&&(t.withCredentials=!0)}t.withCredentials&&(r.credentials="include",(0,h.jH)(e)&&await(0,h.jz)(m?(0,c.fl)(e,a):e))}let g,p,y=0,w=!1;l>0&&(y=setTimeout((()=>{w=!0,t.controller.abort()}),l));try{if("native-request-init"===n.responseType)p=r,p.url=e;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||m||function(t){if(t)for(const e of Object.getOwnPropertyNames(t))if(t[e])return!0;return!1}(n.headers)||!a&&!t.useProxy&&M.proxyUrl&&!E(e)){if(g=await d._abortableFetch(e,r),t.useProxy||function(t){const e=(0,c.P$)(t);e&&!d._corsServers.includes(e)&&d._corsServers.push(e)}(e),"native"===n.responseType)p=g;else if("HEAD"!==r.method)if(g.ok){switch(i){case"array-buffer":p=await g.arrayBuffer();break;case"blob":case"image":p=await g.blob();break;default:p=await g.text()}if(y&&(clearTimeout(y),y=0),"json"===i||"xml"===i||"document"===i)if(p)switch(i){case"json":p=JSON.parse(p);break;case"xml":p=O(p,"application/xml");break;case"document":p=O(p,"text/html")}else p=null;if(p){if("array-buffer"===i||"blob"===i){const t=g.headers.get("Content-Type");if(t&&/application\/json|text\/plain/i.test(t)&&p["blob"===i?"size":"byteLength"]<=750)try{const t=await new Response(p).json();t.error&&(p=t)}catch{}}"image"===i&&p instanceof Blob&&(p=await x(URL.createObjectURL(p),t,!0))}}else{p=await g.text();try{p=JSON.parse(p)}catch{}}}else p=await x(e,t)}catch(r){if("AbortError"===r.name){if(w)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!g&&r instanceof TypeError&&M.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||t.useProxy||E(e))throw r;t.redoRequest=!0,(0,c.tD)({proxyUrl:M.proxyUrl,urlPrefix:(0,c.P$)(e)??""})}finally{y&&clearTimeout(y)}return[g,p]}function O(t,e){let n;try{n=(new DOMParser).parseFromString(t,e)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function q(t,e,n){if(t.redoRequest)return t.redoRequest=!1,!1;const r=t.params.requestOptions;if(!e||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let a,s;if(n&&(n.error?a=n.error:"error"===n.status&&Array.isArray(n.messages)&&(a={...n},a[_]=n,a.details=n.messages)),!a&&!e.ok)throw a=new Error(`Unable to load ${e.url} status: ${e.status}`),a[_]=n,a;let i,u=null;a&&(s=Number(a.code),u=a.hasOwnProperty("subcode")?Number(a.subcode):null,i=a.messageCode,i=i?.toUpperCase());const c=r.authMode;if(403===s&&(4===u||a.message?.toLowerCase().includes("ssl")&&!a.message.toLowerCase().includes("permission"))){if(!t.useSSL)return t.useSSL=!0,!1}else if(!t.hasToken&&t.useIdentity&&("no-prompt"!==c||498===s)&&void 0!==s&&g.includes(s)&&!P(t.params.url)&&(403!==s||i&&!p.includes(i)&&(null==u||2===u&&t.credentialToken))){await S();try{const e=await o.id.getCredential(t.params.url,{error:T("request:server",a,t.params),prompt:"no-prompt"!==c,signal:t.controller.signal,token:t.credentialToken});return t.credential=e,t.credentialToken=e.token,t.useSSL=t.useSSL||e.ssl,!1}catch(e){if("no-prompt"===c)return t.credential=void 0,t.credentialToken=void 0,!1;a=e}}if(a)throw a;return!0}function x(t,e,n=!1){const r=e.controller.signal,o=new Image;return e.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=M.priority,o.src=t,(0,h.fY)(o,t,n,r)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(t,e,n)=>{n.d(e,{r:()=>a});var r=n(81271);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function a(t){const e=(0,r.P$)(t,!0);return!!e&&e.endsWith(".arcgis.com")&&!o.includes(e)&&!t.endsWith("/sharing/rest/generateToken")}},85958:(t,e,n)=>{n.d(e,{Hu:()=>c,fY:()=>i,jH:()=>f,jz:()=>l});var r=n(68773),o=n(80442),a=n(95330),s=n(81271);function i(t,e,n=!1,r){return new Promise(((s,i)=>{if((0,a.Hc)(r))return void i(u());let c=()=>{h(),i(new Error(`Unable to load ${e}`))},f=()=>{const e=t;h(),s(e)},l=()=>{if(!t)return;const e=t;h(),e.src="",i(u())};const h=()=>{(0,o.Z)("esri-image-decode")||(t.removeEventListener("error",c),t.removeEventListener("load",f)),c=null,f=null,t=null,null!=r&&r.removeEventListener("abort",l),l=null,n&&URL.revokeObjectURL(e)};null!=r&&r.addEventListener("abort",l),(0,o.Z)("esri-image-decode")?t.decode().then(f,c):(t.addEventListener("error",c),t.addEventListener("load",f))}))}function u(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error;return t.name="AbortError",t}}function c(t){r.default.request.crossOriginNoCorsDomains||(r.default.request.crossOriginNoCorsDomains={});const e=r.default.request.crossOriginNoCorsDomains;for(let n of t)n=n.toLowerCase(),/^https?:\/\//.test(n)?e[(0,s.P$)(n)??""]=0:(e[(0,s.P$)("http://"+n)??""]=0,e[(0,s.P$)("https://"+n)??""]=0)}function f(t){const e=r.default.request.crossOriginNoCorsDomains;if(e){let n=(0,s.P$)(t);if(n)return n=n.toLowerCase(),!(0,s.D6)(n,(0,s.TI)())&&e[n]<Date.now()-36e5}return!1}async function l(t){const e=r.default.request.crossOriginNoCorsDomains,n=(0,s.P$)(t);e&&n&&(e[n.toLowerCase()]=Date.now());const o=(0,s.mN)(t);t=o.path,"json"===o.query?.f&&(t+="?f=json");try{await fetch(t,{mode:"no-cors",credentials:"include"})}catch{}}},31412:(t,e,n)=>{var r,o;n.r(e),n.d(e,{destroyContext:()=>y,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>P,initialize:()=>q,interpretObbModificationResults:()=>S,process:()=>m,setLegacySchema:()=>p,setModifications:()=>g,setModificationsSync:()=>E,test:()=>x}),function(t){t[t.None=0]="None",t[t.Int16=1]="Int16",t[t.Int32=2]="Int32"}(r||(r={})),function(t){t[t.Replace=0]="Replace",t[t.Outside=1]="Outside",t[t.Inside=2]="Inside",t[t.Finished=3]="Finished"}(o||(o={}));var a=n(99880);function s(t){return(0,a.V)(`esri/libs/i3s/${t}`)}let i;var u,c,f,l,h,d;async function m(t){await q();const e=[t.geometryBuffer];return{result:T(t,e),transferList:e}}async function M(t){await q();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,o=_._malloc(r),a=new Uint8Array(_.HEAPU8.buffer,o,r);a.set(new Uint8Array(n));const s=_.dracoDecompressPointCloudData(o,a.byteLength);if(_._free(o),s.error.length>0)throw new Error(`i3s.wasm: ${s.error}`);const i=s.featureIds?.length>0?s.featureIds.slice():null,u=s.positions.slice();return i&&e.push(i.buffer),e.push(u.buffer),{result:{positions:u,featureIds:i},transferList:e}}async function b(t){await q(),P(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function g(t){await q(),E(t)}async function p(t){await q(),_.setLegacySchema(t.context,t.jsonSchema)}function y(t){v(t)}let w,_;function E(t){const e=t.modifications,n=_._malloc(8*e.length),r=new Float64Array(_.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];_.setModifications(t.context,n,e.length,t.isGeodetic),_._free(n)}function T(t,e){if(!_)return null;const{context:n,localOrigin:o,globalTrafo:a,mbs:s,obb:i,elevationOffset:u,geometryBuffer:c,geometryDescriptor:f,indexToVertexProjector:l,vertexToRenderProjector:h}=t,d=_._malloc(c.byteLength),m=_._malloc(33*Float64Array.BYTES_PER_ELEMENT),M=new Uint8Array(_.HEAPU8.buffer,d,c.byteLength);M.set(new Uint8Array(c));const b=new Float64Array(_.HEAPU8.buffer,m,33);O(b,o);let g=b.byteOffset+3*b.BYTES_PER_ELEMENT,p=new Float64Array(b.buffer,g);O(p,a),g+=16*b.BYTES_PER_ELEMENT,p=new Float64Array(b.buffer,g),O(p,s),g+=4*b.BYTES_PER_ELEMENT,null!=i&&(p=new Float64Array(b.buffer,g),O(p,i.center),g+=3*b.BYTES_PER_ELEMENT,p=new Float64Array(b.buffer,g),O(p,i.halfSize),g+=3*b.BYTES_PER_ELEMENT,p=new Float64Array(b.buffer,g),O(p,i.quaternion));const y=f,w={isDraco:!1,isLegacy:!1,color:t.layouts.some((t=>t.some((t=>"color"===t.name)))),normal:t.needNormals&&t.layouts.some((t=>t.some((t=>"normalCompressed"===t.name)))),uv0:t.layouts.some((t=>t.some((t=>"uv0"===t.name)))),uvRegion:t.layouts.some((t=>t.some((t=>"uvRegion"===t.name)))),featureIndex:y.featureIndex},E=_.process(n,!!t.obb,d,M.byteLength,y,w,m,u,l,h,t.normalReferenceFrame);if(_._free(m),_._free(d),E.error.length>0)throw new Error(`i3s.wasm: ${E.error}`);if(E.discarded)return null;const T=E.componentOffsets.length>0?E.componentOffsets.slice():null,S=E.featureIds.length>0?E.featureIds.slice():null,P=E.interleavedVertedData.slice().buffer,v=E.indicesType===r.Int16?new Uint16Array(E.indices.buffer,E.indices.byteOffset,E.indices.byteLength/2).slice():new Uint32Array(E.indices.buffer,E.indices.byteOffset,E.indices.byteLength/4).slice(),q=E.positions.slice(),x=E.positionIndicesType===r.Int16?new Uint16Array(E.positionIndices.buffer,E.positionIndices.byteOffset,E.positionIndices.byteLength/2).slice():new Uint32Array(E.positionIndices.buffer,E.positionIndices.byteOffset,E.positionIndices.byteLength/4).slice(),I={layout:t.layouts[0],interleavedVertexData:P,indices:v,hasColors:E.hasColors,hasModifications:E.hasModifications,positionData:{data:q,indices:x}};return S&&e.push(S.buffer),T&&e.push(T.buffer),e.push(P),e.push(v.buffer),e.push(q.buffer),e.push(x.buffer),{componentOffsets:T,featureIds:S,transformedGeometry:I,obb:E.obb}}function S(t){return 0===t?c.Unmodified:1===t?c.PotentiallyModified:2===t?c.Culled:c.Unknown}function P(t){const{context:e,buffer:n}=t,r=_._malloc(n.byteLength),o=n.byteLength/Float64Array.BYTES_PER_ELEMENT,a=new Float64Array(_.HEAPU8.buffer,r,o),s=new Float64Array(n);a.set(s),_.filterOBBs(e,r,o),s.set(a),_._free(r)}function v(t){_&&(_.destroy(t),_=null)}function O(t,e){for(let n=0;n<e.length;++n)t[n]=e[n]}function q(){return _?Promise.resolve():(w||(w=(i||(i=new Promise((t=>n.e(6710).then(n.bind(n,26710)).then((t=>t.i)).then((({default:e})=>{const n=e({locateFile:s,onRuntimeInitialized:()=>t(n)});delete n.then})))).catch((t=>{throw t}))),i).then((t=>{_=t,w=null}))),w)}n(29268),(d=u||(u={}))[d.Unmodified=0]="Unmodified",d[d.Culled=1]="Culled",d[d.NotChecked=2]="NotChecked",function(t){t[t.Unmodified=0]="Unmodified",t[t.PotentiallyModified=1]="PotentiallyModified",t[t.Culled=2]="Culled",t[t.Unknown=3]="Unknown",t[t.NotChecked=4]="NotChecked"}(c||(c={})),function(t){t[t.Unknown=0]="Unknown",t[t.Uncached=1]="Uncached",t[t.Cached=2]="Cached"}(f||(f={})),function(t){t[t.None=0]="None",t[t.MaxScreenThreshold=1]="MaxScreenThreshold",t[t.ScreenSpaceRelative=2]="ScreenSpaceRelative",t[t.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",t[t.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(l||(l={})),function(t){t[t.Hole=0]="Hole",t[t.Leaf=1]="Leaf"}(h||(h={}));const x={transform:T,destroy:v}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1412,3172,9880],{99880:(t,e,n)=>{n.d(e,{V:()=>u});var r=n(68773),o=(n(3172),n(20102)),a=n(92604),s=n(81271);const i=a.Z.getLogger("esri.assets");function u(t){if(!r.default.assetsPath)throw i.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,s.v_)(r.default.assetsPath,t)}},46851:(t,e,n)=>{n.d(e,{R:()=>a,a:()=>c,g:()=>o,t:()=>u});let r=1e-6;function o(){return r}const a=Math.random,s=Math.PI/180,i=180/Math.PI;function u(t){return t*s}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"}))},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,a,s,i,u){return[t,e,n,r,o,a,s,i,u]}function a(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>a,c:()=>r,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:a,fromValues:o},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{A:()=>M,a:()=>u,d:()=>m,e:()=>h,f:()=>d,g:()=>p,h:()=>_,i:()=>s,j:()=>w,k:()=>l,m:()=>c,s:()=>a,t:()=>i,w:()=>f,y:()=>T,z:()=>E});var r=n(65617),o=n(46851);function a(t,e,n,r,o,a,s,i,u,c,f,l,h,d,m,M,b){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=s,t[6]=i,t[7]=u,t[8]=c,t[9]=f,t[10]=l,t[11]=h,t[12]=d,t[13]=m,t[14]=M,t[15]=b,t}function s(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 i(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],a=e[6],s=e[7],i=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]=r,t[9]=a,t[11]=e[14],t[12]=o,t[13]=s,t[14]=i}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 u(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],i=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15],p=n*i-r*s,y=n*u-o*s,w=n*c-a*s,_=r*u-o*i,E=r*c-a*i,T=o*c-a*u,S=f*M-l*m,P=f*b-h*m,v=f*g-d*m,O=l*b-h*M,q=l*g-d*M,x=h*g-d*b;let I=p*x-y*q+w*O+_*v-E*P+T*S;return I?(I=1/I,t[0]=(i*x-u*q+c*O)*I,t[1]=(o*q-r*x-a*O)*I,t[2]=(M*T-b*E+g*_)*I,t[3]=(h*E-l*T-d*_)*I,t[4]=(u*v-s*x-c*P)*I,t[5]=(n*x-o*v+a*P)*I,t[6]=(b*w-m*T-g*y)*I,t[7]=(f*T-h*w+d*y)*I,t[8]=(s*q-i*v+c*S)*I,t[9]=(r*v-n*q-a*S)*I,t[10]=(m*E-M*w+g*p)*I,t[11]=(l*w-f*E-d*p)*I,t[12]=(i*P-s*O-u*S)*I,t[13]=(n*O-r*P+o*S)*I,t[14]=(M*y-m*_-b*p)*I,t[15]=(f*_-l*y+h*p)*I,t):null}function c(t,e,n){const r=e[0],o=e[1],a=e[2],s=e[3],i=e[4],u=e[5],c=e[6],f=e[7],l=e[8],h=e[9],d=e[10],m=e[11],M=e[12],b=e[13],g=e[14],p=e[15];let y=n[0],w=n[1],_=n[2],E=n[3];return t[0]=y*r+w*i+_*l+E*M,t[1]=y*o+w*u+_*h+E*b,t[2]=y*a+w*c+_*d+E*g,t[3]=y*s+w*f+_*m+E*p,y=n[4],w=n[5],_=n[6],E=n[7],t[4]=y*r+w*i+_*l+E*M,t[5]=y*o+w*u+_*h+E*b,t[6]=y*a+w*c+_*d+E*g,t[7]=y*s+w*f+_*m+E*p,y=n[8],w=n[9],_=n[10],E=n[11],t[8]=y*r+w*i+_*l+E*M,t[9]=y*o+w*u+_*h+E*b,t[10]=y*a+w*c+_*d+E*g,t[11]=y*s+w*f+_*m+E*p,y=n[12],w=n[13],_=n[14],E=n[15],t[12]=y*r+w*i+_*l+E*M,t[13]=y*o+w*u+_*h+E*b,t[14]=y*a+w*c+_*d+E*g,t[15]=y*s+w*f+_*m+E*p,t}function f(t,e,n){const r=n[0],o=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*a+e[12],t[13]=e[1]*r+e[5]*o+e[9]*a+e[13],t[14]=e[2]*r+e[6]*o+e[10]*a+e[14],t[15]=e[3]*r+e[7]*o+e[11]*a+e[15];else{const n=e[0],s=e[1],i=e[2],u=e[3],c=e[4],f=e[5],l=e[6],h=e[7],d=e[8],m=e[9],M=e[10],b=e[11];t[0]=n,t[1]=s,t[2]=i,t[3]=u,t[4]=c,t[5]=f,t[6]=l,t[7]=h,t[8]=d,t[9]=m,t[10]=M,t[11]=b,t[12]=n*r+c*o+d*a+e[12],t[13]=s*r+f*o+m*a+e[13],t[14]=i*r+l*o+M*a+e[14],t[15]=u*r+h*o+b*a+e[15]}return t}function l(t,e,n){const r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function h(t,e,n,r){let a,s,i,u,c,f,l,h,d,m,M,b,g,p,y,w,_,E,T,S,P,v,O,q,x=r[0],I=r[1],A=r[2],L=Math.sqrt(x*x+I*I+A*A);return L<(0,o.g)()?null:(L=1/L,x*=L,I*=L,A*=L,a=Math.sin(n),s=Math.cos(n),i=1-s,u=e[0],c=e[1],f=e[2],l=e[3],h=e[4],d=e[5],m=e[6],M=e[7],b=e[8],g=e[9],p=e[10],y=e[11],w=x*x*i+s,_=I*x*i+A*a,E=A*x*i-I*a,T=x*I*i-A*a,S=I*I*i+s,P=A*I*i+x*a,v=x*A*i+I*a,O=I*A*i-x*a,q=A*A*i+s,t[0]=u*w+h*_+b*E,t[1]=c*w+d*_+g*E,t[2]=f*w+m*_+p*E,t[3]=l*w+M*_+y*E,t[4]=u*T+h*S+b*P,t[5]=c*T+d*S+g*P,t[6]=f*T+m*S+p*P,t[7]=l*T+M*S+y*P,t[8]=u*v+h*O+b*q,t[9]=c*v+d*O+g*q,t[10]=f*v+m*O+p*q,t[11]=l*v+M*O+y*q,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function m(t,e,n){if(0===e)return s(t);let r,a,i,u=n[0],c=n[1],f=n[2],l=Math.sqrt(u*u+c*c+f*f);return l<(0,o.g)()?null:(l=1/l,u*=l,c*=l,f*=l,r=Math.sin(e),a=Math.cos(e),i=1-a,t[0]=u*u*i+a,t[1]=c*u*i+f*r,t[2]=f*u*i-c*r,t[3]=0,t[4]=u*c*i-f*r,t[5]=c*c*i+a,t[6]=f*c*i+u*r,t[7]=0,t[8]=u*f*i+c*r,t[9]=c*f*i-u*r,t[10]=f*f*i+a,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),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e,n){const r=e[0],o=e[1],a=e[2],s=e[3],i=r+r,u=o+o,c=a+a,f=r*i,l=r*u,h=r*c,d=o*u,m=o*c,M=a*c,b=s*i,g=s*u,p=s*c;return t[0]=1-(d+M),t[1]=l+p,t[2]=h-g,t[3]=0,t[4]=l-p,t[5]=1-(f+M),t[6]=m+b,t[7]=0,t[8]=h+g,t[9]=m-b,t[10]=1-(f+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const g=(0,r.c)();function p(t,e,n,r){const o=e[0],a=e[1],s=e[2],i=e[3],u=o+o,c=a+a,f=s+s,l=o*u,h=o*c,d=o*f,m=a*c,M=a*f,b=s*f,g=i*u,p=i*c,y=i*f,w=r[0],_=r[1],E=r[2];return t[0]=(1-(m+b))*w,t[1]=(h+y)*w,t[2]=(d-p)*w,t[3]=0,t[4]=(h-y)*_,t[5]=(1-(l+b))*_,t[6]=(M+g)*_,t[7]=0,t[8]=(d+p)*E,t[9]=(M-g)*E,t[10]=(1-(l+m))*E,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function y(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 w(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 _(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],s=t[3],i=t[4],u=t[5],c=t[6],f=t[7],l=t[8],h=t[9],d=t[10],m=t[11],M=t[12],b=t[13],g=t[14],p=t[15],y=e[0],w=e[1],_=e[2],E=e[3],T=e[4],S=e[5],P=e[6],v=e[7],O=e[8],q=e[9],x=e[10],I=e[11],A=e[12],L=e[13],C=e[14],k=e[15],R=(0,o.g)();return Math.abs(n-y)<=R*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-w)<=R*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-_)<=R*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(s-E)<=R*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(i-T)<=R*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(u-S)<=R*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(c-P)<=R*Math.max(1,Math.abs(c),Math.abs(P))&&Math.abs(f-v)<=R*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(l-O)<=R*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(h-q)<=R*Math.max(1,Math.abs(h),Math.abs(q))&&Math.abs(d-x)<=R*Math.max(1,Math.abs(d),Math.abs(x))&&Math.abs(m-I)<=R*Math.max(1,Math.abs(m),Math.abs(I))&&Math.abs(M-A)<=R*Math.max(1,Math.abs(M),Math.abs(A))&&Math.abs(b-L)<=R*Math.max(1,Math.abs(b),Math.abs(L))&&Math.abs(g-C)<=R*Math.max(1,Math.abs(g),Math.abs(C))&&Math.abs(p-k)<=R*Math.max(1,Math.abs(p),Math.abs(k))}function E(t){const e=(0,o.g)(),n=t[0],r=t[1],a=t[2],s=t[4],i=t[5],u=t[6],c=t[8],f=t[9],l=t[10];return Math.abs(1-(n*n+s*s+c*c))<=e&&Math.abs(1-(r*r+i*i+f*f))<=e&&Math.abs(1-(a*a+u*u+l*l))<=e}function T(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const S=c,P=y;Object.freeze(Object.defineProperty({__proto__:null,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},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],i=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15];return t[0]=i*(h*g-d*b)-l*(u*g-c*b)+M*(u*d-c*h),t[1]=-(r*(h*g-d*b)-l*(o*g-a*b)+M*(o*d-a*h)),t[2]=r*(u*g-c*b)-i*(o*g-a*b)+M*(o*c-a*u),t[3]=-(r*(u*d-c*h)-i*(o*d-a*h)+l*(o*c-a*u)),t[4]=-(s*(h*g-d*b)-f*(u*g-c*b)+m*(u*d-c*h)),t[5]=n*(h*g-d*b)-f*(o*g-a*b)+m*(o*d-a*h),t[6]=-(n*(u*g-c*b)-s*(o*g-a*b)+m*(o*c-a*u)),t[7]=n*(u*d-c*h)-s*(o*d-a*h)+f*(o*c-a*u),t[8]=s*(l*g-d*M)-f*(i*g-c*M)+m*(i*d-c*l),t[9]=-(n*(l*g-d*M)-f*(r*g-a*M)+m*(r*d-a*l)),t[10]=n*(i*g-c*M)-s*(r*g-a*M)+m*(r*c-a*i),t[11]=-(n*(i*d-c*l)-s*(r*d-a*l)+f*(r*c-a*i)),t[12]=-(s*(l*b-h*M)-f*(i*b-u*M)+m*(i*h-u*l)),t[13]=n*(l*b-h*M)-f*(r*b-o*M)+m*(r*h-o*l),t[14]=-(n*(i*b-u*M)-s*(r*b-o*M)+m*(r*u-o*i)),t[15]=n*(i*h-u*l)-s*(r*h-o*l)+f*(r*u-o*i),t},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},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],s=t[5],i=t[6],u=t[7],c=t[8],f=t[9],l=t[10],h=t[11],d=t[12],m=t[13],M=t[14],b=t[15];return(e*s-n*a)*(l*b-h*M)-(e*i-r*a)*(f*b-h*m)+(e*u-o*a)*(f*M-l*m)+(n*i-r*s)*(c*b-h*d)-(n*u-o*s)*(c*M-l*d)+(r*u-o*i)*(c*m-f*d)},equals:_,exactEquals:w,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],s=n+n,i=r+r,u=o+o,c=n*s,f=r*s,l=r*i,h=o*s,d=o*i,m=o*u,M=a*s,b=a*i,g=a*u;return t[0]=1-l-m,t[1]=f+g,t[2]=h-b,t[3]=0,t[4]=f-g,t[5]=1-c-m,t[6]=d+M,t[7]=0,t[8]=h+b,t[9]=d-M,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=g,r=-e[0],o=-e[1],a=-e[2],s=e[3],i=e[4],u=e[5],c=e[6],f=e[7],l=r*r+o*o+a*a+s*s;return l>0?(n[0]=2*(i*s+f*r+u*a-c*o)/l,n[1]=2*(u*s+f*o+c*r-i*a)/l,n[2]=2*(c*s+f*a+i*o-u*r)/l):(n[0]=2*(i*s+f*r+u*a-c*o),n[1]=2*(u*s+f*o+c*r-i*a),n[2]=2*(c*s+f*a+i*o-u*r)),b(t,e,n),t},fromRotation:m,fromRotationTranslation:b,fromRotationTranslationScale:p,fromRotationTranslationScaleOrigin:function(t,e,n,r,o){const a=e[0],s=e[1],i=e[2],u=e[3],c=a+a,f=s+s,l=i+i,h=a*c,d=a*f,m=a*l,M=s*f,b=s*l,g=i*l,p=u*c,y=u*f,w=u*l,_=r[0],E=r[1],T=r[2],S=o[0],P=o[1],v=o[2],O=(1-(M+g))*_,q=(d+w)*_,x=(m-y)*_,I=(d-w)*E,A=(1-(h+g))*E,L=(b+p)*E,C=(m+y)*T,k=(b-p)*T,R=(1-(h+M))*T;return t[0]=O,t[1]=q,t[2]=x,t[3]=0,t[4]=I,t[5]=A,t[6]=L,t[7]=0,t[8]=C,t[9]=k,t[10]=R,t[11]=0,t[12]=n[0]+S-(O*S+I*P+C*v),t[13]=n[1]+P-(q*S+A*P+k*v),t[14]=n[2]+v-(x*S+L*P+R*v),t[15]=1,t},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},fromTranslation:d,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,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]=r,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),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,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},frustum:function(t,e,n,r,o,a,s){const i=1/(n-e),u=1/(o-r),c=1/(a-s);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*u,t[6]=0,t[7]=0,t[8]=(n+e)*i,t[9]=(o+r)*u,t[10]=(s+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*a*2*c,t[15]=0,t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},getScaling:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[4],s=e[5],i=e[6],u=e[8],c=e[9],f=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(a*a+s*s+i*i),t[2]=Math.sqrt(u*u+c*c+f*f),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:T,identity:s,invert:u,invertOrIdentity:function(t,e){return u(t,e)||s(t),t},isOrthoNormal:E,lookAt:function(t,e,n,r){const a=e[0],i=e[1],u=e[2];let c=a-n[0],f=i-n[1],l=u-n[2];const h=(0,o.g)();if(Math.abs(c)<h&&Math.abs(f)<h&&Math.abs(l)<h)return void s(t);let d=1/Math.sqrt(c*c+f*f+l*l);c*=d,f*=d,l*=d;const m=r[0],M=r[1],b=r[2];let g=M*l-b*f,p=b*c-m*l,y=m*f-M*c;d=Math.sqrt(g*g+p*p+y*y),d?(d=1/d,g*=d,p*=d,y*=d):(g=0,p=0,y=0);let w=f*y-l*p,_=l*g-c*y,E=c*p-f*g;d=Math.sqrt(w*w+_*_+E*E),d?(d=1/d,w*=d,_*=d,E*=d):(w=0,_=0,E=0),t[0]=g,t[1]=w,t[2]=c,t[3]=0,t[4]=p,t[5]=_,t[6]=f,t[7]=0,t[8]=y,t[9]=E,t[10]=l,t[11]=0,t[12]=-(g*a+p*i+y*u),t[13]=-(w*a+_*i+E*u),t[14]=-(c*a+f*i+l*u),t[15]=1},mul:S,multiply:c,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,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,a,s){const i=1/(e-n),u=1/(r-o),c=1/(a-s);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*i,t[13]=(o+r)*u,t[14]=(s+a)*c,t[15]=1,t},perspective:function(t,e,n,r,o){const a=1/Math.tan(e/2);let s;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,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!=o&&o!==1/0?(s=1/(r-o),t[10]=(o+r)*s,t[14]=2*o*r*s):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),u=2/(s+i),c=2/(o+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(s-i)*u*.5,t[9]=(o-a)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:h,rotateX:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),a=e[4],s=e[5],i=e[6],u=e[7],c=e[8],f=e[9],l=e[10],h=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]=a*o+c*r,t[5]=s*o+f*r,t[6]=i*o+l*r,t[7]=u*o+h*r,t[8]=c*o-a*r,t[9]=f*o-s*r,t[10]=l*o-i*r,t[11]=h*o-u*r,t},rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),a=e[0],s=e[1],i=e[2],u=e[3],c=e[8],f=e[9],l=e[10],h=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]=a*o-c*r,t[1]=s*o-f*r,t[2]=i*o-l*r,t[3]=u*o-h*r,t[8]=a*r+c*o,t[9]=s*r+f*o,t[10]=i*r+l*o,t[11]=u*r+h*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),a=e[0],s=e[1],i=e[2],u=e[3],c=e[4],f=e[5],l=e[6],h=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]=a*o+c*r,t[1]=s*o+f*r,t[2]=i*o+l*r,t[3]=u*o+h*r,t[4]=c*o-a*r,t[5]=f*o-s*r,t[6]=l*o-i*r,t[7]=h*o-u*r,t},scale:l,set:a,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:P,subtract:y,targetTo:function(t,e,n,r){const o=e[0],a=e[1],s=e[2],i=r[0],u=r[1],c=r[2];let f=o-n[0],l=a-n[1],h=s-n[2],d=f*f+l*l+h*h;d>0&&(d=1/Math.sqrt(d),f*=d,l*=d,h*=d);let m=u*h-c*l,M=c*f-i*h,b=i*l-u*f;return d=m*m+M*M+b*b,d>0&&(d=1/Math.sqrt(d),m*=d,M*=d,b*=d),t[0]=m,t[1]=M,t[2]=b,t[3]=0,t[4]=l*b-h*M,t[5]=h*m-f*b,t[6]=f*M-l*m,t[7]=0,t[8]=f,t[9]=l,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=s,t[15]=1,t},translate:f,transpose:i},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}function a(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>s,a:()=>a,b:()=>o,c:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,createView:a,fromValues:function(t,e,n,r,o,a,s,i,u,c,f,l,h,d,m,M){return[t,e,n,r,o,a,s,i,u,c,f,l,h,d,m,M]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}function a(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>s,a:()=>r,b:()=>o,c:()=>a});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,createView:a,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},29268:(t,e,n)=>{n.d(e,{a:()=>p,c:()=>b,g:()=>y,h:()=>g,j:()=>E,l:()=>x}),n(80442);var r,o,a=n(92604),s=n(22021),i=n(52138),u=n(17896),c=n(65617),f=n(98766),l=n(88669);(o=r||(r={}))[o.X=0]="X",o[o.Y=1]="Y",o[o.Z=2]="Z";var h=n(78341),d=n(61277),m=n(12981);const M=b();function b(){return(0,l.c)()}function g(t,e=b()){return(0,f.c)(e,t)}function p(t){return t[3]}function y(t){return t}function w(t,e,n){if(null==e)return!1;const{origin:r,direction:o}=e,a=_;a[0]=r[0]-t[0],a[1]=r[1]-t[1],a[2]=r[2]-t[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===s)return!1;const i=2*(o[0]*a[0]+o[1]*a[1]+o[2]*a[2]),u=i*i-4*s*(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]-t[3]*t[3]);if(u<0)return!1;const c=Math.sqrt(u);let f=(-i-c)/(2*s);const l=(-i+c)/(2*s);return(f<0||l<f&&l>0)&&(f=l),!(f<0||(n&&(n[0]=r[0]+o[0]*f,n[1]=r[1]+o[1]*f,n[2]=r[2]+o[2]*f),0))}const _=(0,c.c)();function E(t,e){return w(t,e,null)}function T(t,e,n){const r=m.WM.get(),o=m.MP.get();(0,u.f)(r,e.origin,e.direction);const a=p(t);(0,u.f)(n,r,e.origin),(0,u.g)(n,n,1/(0,u.l)(n)*a);const s=P(t,e.origin),c=(0,d.EU)(e.origin,n);return(0,i.d)(o,c+s,r),(0,u.m)(n,n,o),n}function S(t,e,n){const r=(0,u.b)(m.WM.get(),e,t),o=(0,u.g)(m.WM.get(),r,t[3]/(0,u.l)(r));return(0,u.a)(n,o,t)}function P(t,e){const n=(0,u.b)(m.WM.get(),e,t),r=(0,u.l)(n),o=p(t),a=o+Math.abs(o-r);return(0,s.ZF)(o/a)}const v=(0,c.c)();function O(t,e,n,o){const a=(0,u.b)(v,e,t);switch(n){case r.X:{const t=(0,s.jE)(a,v)[2];return(0,u.s)(o,-Math.sin(t),Math.cos(t),0)}case r.Y:{const t=(0,s.jE)(a,v),e=t[1],n=t[2],r=Math.sin(e);return(0,u.s)(o,-r*Math.cos(n),-r*Math.sin(n),Math.cos(e))}case r.Z:return(0,u.n)(o,a);default:return}}function q(t,e){const n=(0,u.b)(I,e,t);return(0,u.l)(n)-t[3]}function x(t,e){const n=(0,u.d)(t,e),r=p(t);return n<=r*r}const I=(0,c.c)(),A=b();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:M,altitudeAt:q,angleToSilhouette:P,axisAt:O,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return w(t,e,n)?n:((0,h.JI)(e,t,n),S(t,n,n))},closestPointOnSilhouette:T,containsPoint:x,copy:g,create:b,distanceToSilhouette:function(t,e){const n=(0,u.b)(m.WM.get(),e,t),r=(0,u.p)(n),o=t[3]*t[3];return Math.sqrt(Math.abs(r-o))},elevate:function(t,e,n){return t!==n&&(0,u.c)(n,t),n[3]=t[3]+e,n},fromCenterAndRadius:function(t,e){return(0,l.f)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:function(t,e,n,r){return(0,l.f)(t,e,n,r)},getCenter:y,getRadius:p,intersectRay:w,intersectRayClosestSilhouette:function(t,e,n){if(w(t,e,n))return n;const r=T(t,e,m.WM.get());return(0,u.a)(n,e.origin,(0,u.g)(m.WM.get(),e.direction,(0,u.i)(e.origin,r)/(0,u.l)(e.direction))),n},intersectsRay:E,projectPoint:S,setAltitudeAt:function(t,e,n,o){const a=q(t,e),s=O(t,e,r.Z,I),i=(0,u.g)(I,s,n-a);return(0,u.a)(o,e,i)},setExtent:function(t,e,n){return a.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:g(t,n)},tmpSphere:A,union:function(t,e,n=b()){const r=(0,u.i)(t,e),o=t[3],a=e[3];return r+a<o?((0,f.c)(n,t),n):r+o<a?((0,f.c)(n,e),n):((0,u.h)(n,t,e,(r+a-o)/(2*r)),n[3]=(r+o+a)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function r(){return[0,0]}function o(t,e){return[t,e]}function a(t,e){return new Float64Array(t,e,2)}function s(){return o(1,1)}function i(){return o(1,0)}function u(){return o(0,1)}n.d(e,{a:()=>r,c:()=>a,f:()=>o});const c=s(),f=i(),l=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:l,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:a,fromArray:function(t){const e=[0,0],n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:s,unitX:i,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},17896:(t,e,n)=>{n.d(e,{A:()=>d,C:()=>f,D:()=>l,a:()=>u,b:()=>c,c:()=>s,d:()=>M,e:()=>p,f:()=>y,g:()=>h,h:()=>w,i:()=>m,j:()=>A,k:()=>v,l:()=>a,m:()=>_,n:()=>g,p:()=>b,q:()=>T,r:()=>O,s:()=>i,t:()=>E,u:()=>C});var r=n(65617),o=n(46851);function a(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function d(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function m(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function g(t,e){const n=e[0],r=e[1],o=e[2];let a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function y(t,e,n){const r=e[0],o=e[1],a=e[2],s=n[0],i=n[1],u=n[2];return t[0]=o*u-a*i,t[1]=a*s-r*u,t[2]=r*i-o*s,t}function w(t,e,n,r){const o=e[0],a=e[1],s=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=s+r*(n[2]-s),t}function _(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function E(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function T(t,e,n){const r=n[0],o=n[1],a=n[2],s=n[3],i=e[0],u=e[1],c=e[2];let f=o*c-a*u,l=a*i-r*c,h=r*u-o*i,d=o*h-a*l,m=a*f-r*h,M=r*l-o*f;const b=2*s;return f*=b,l*=b,h*=b,d*=2,m*=2,M*=2,t[0]=i+f+d,t[1]=u+l+m,t[2]=c+h+M,t}const S=(0,r.c)(),P=(0,r.c)();function v(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function O(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2];let s=r*r+o*o+a*a;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=o*s,t[2]=a*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const q=c,x=f,I=l,A=m,L=M,C=a,k=b;Object.freeze(Object.defineProperty({__proto__:null,abs:function(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t},add:u,angle:function(t,e){s(S,t),s(P,e),g(S,S),g(P,P);const n=p(S,P);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,a){const s=1-a,i=s*s,u=a*a,c=i*s,f=3*a*i,l=3*u*s,h=u*a;return t[0]=e[0]*c+n[0]*f+r[0]*l+o[0]*h,t[1]=e[1]*c+n[1]*f+r[1]*l+o[1]*h,t[2]=e[2]*c+n[2]*f+r[2]*l+o[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},copy:s,cross:y,direction:O,dist:A,distance:m,div:I,divide:l,dot:p,equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],s=e[0],i=e[1],u=e[2],c=(0,o.g)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-u)<=c*Math.max(1,Math.abs(a),Math.abs(u))},exactEquals:v,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,a){const s=a*a,i=s*(2*a-3)+1,u=s*(a-2)+a,c=s*(a-1),f=s*(3-2*a);return t[0]=e[0]*i+n[0]*u+r[0]*c+o[0]*f,t[1]=e[1]*i+n[1]*u+r[1]*c+o[1]*f,t[2]=e[2]*i+n[2]*u+r[2]*c+o[2]*f,t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},len:C,length:a,lerp:w,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},mul:x,multiply:f,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},normalize:g,random:function(t,e){e=e||1;const n=o.R,r=2*n()*Math.PI,a=2*n()-1,s=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=a*e,t},rotateX:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:h,scaleAndAdd:d,set:i,sign:function(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t},sqrDist:L,sqrLen:k,squaredDistance:M,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:q,subtract:c,transformMat3:E,transformMat4:_,transformQuat:T},Symbol.toStringTag,{value:"Module"}))},65617:(t,e,n)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function s(t){const e=[0,0,0],n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function i(t,e){return new Float64Array(t,e,3)}function u(){return a(1,1,1)}function c(){return a(1,0,0)}function f(){return a(0,1,0)}function l(){return a(0,0,1)}n.d(e,{O:()=>d,U:()=>b,Z:()=>h,a:()=>o,b:()=>i,c:()=>r,d:()=>m,e:()=>M,f:()=>a,g:()=>s});const h=[0,0,0],d=u(),m=c(),M=f(),b=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:m,UNIT_Y:M,UNIT_Z:b,ZEROS:h,clone:o,create:r,createView:i,fromArray:s,fromValues:a,ones:u,unitX:c,unitY:f,unitZ:l,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},98766:(t,e,n)=>{n.d(e,{a:()=>s,b:()=>f,c:()=>o,d:()=>b,e:()=>d,f:()=>m,g:()=>p,h:()=>y,l:()=>g,n:()=>M,s:()=>a});var r=n(46851);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function s(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}function i(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}function u(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}function c(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}function f(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}function l(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+o*o+a*a)}function h(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+o*o+a*a}function d(t){const e=t[0],n=t[1],r=t[2],o=t[3];return Math.sqrt(e*e+n*n+r*r+o*o)}function m(t){const e=t[0],n=t[1],r=t[2],o=t[3];return e*e+n*n+r*r+o*o}function M(t,e){const n=e[0],r=e[1],o=e[2],a=e[3];let s=n*n+r*r+o*o+a*a;return s>0&&(s=1/Math.sqrt(s),t[0]=n*s,t[1]=r*s,t[2]=o*s,t[3]=a*s),t}function b(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function g(t,e,n,r){const o=e[0],a=e[1],s=e[2],i=e[3];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=s+r*(n[2]-s),t[3]=i+r*(n[3]-i),t}function p(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function y(t,e){const n=t[0],o=t[1],a=t[2],s=t[3],i=e[0],u=e[1],c=e[2],f=e[3],l=(0,r.g)();return Math.abs(n-i)<=l*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-u)<=l*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(a-c)<=l*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(s-f)<=l*Math.max(1,Math.abs(s),Math.abs(f))}const w=i,_=u,E=c,T=l,S=h,P=d,v=m;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:o,dist:T,distance:l,div:E,divide:c,dot:b,equals:y,exactEquals:p,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:P,length:d,lerp:g,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},mul:_,multiply:u,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:M,random:function(t,e){const n=r.R;let o,a,s,i,u,c;e=e||1;do{o=2*n()-1,a=2*n()-1,u=o*o+a*a}while(u>=1);do{s=2*n()-1,i=2*n()-1,c=s*s+i*i}while(c>=1);const f=Math.sqrt((1-u)/c);return t[0]=e*o,t[1]=e*a,t[2]=e*s*f,t[3]=e*i*f,t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},scale:f,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},set:a,sqrDist:S,sqrLen:v,squaredDistance:h,squaredLength:m,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:w,subtract:i,transformMat4:function(t,e,n){const r=e[0],o=e[1],a=e[2],s=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12]*s,t[1]=n[1]*r+n[5]*o+n[9]*a+n[13]*s,t[2]=n[2]*r+n[6]*o+n[10]*a+n[14]*s,t[3]=n[3]*r+n[7]*o+n[11]*a+n[15]*s,t},transformQuat:function(t,e,n){const r=e[0],o=e[1],a=e[2],s=n[0],i=n[1],u=n[2],c=n[3],f=c*r+i*a-u*o,l=c*o+u*r-s*a,h=c*a+s*o-i*r,d=-s*r-i*o-u*a;return t[0]=f*c+d*-s+l*-u-h*-i,t[1]=l*c+d*-i+h*-s-f*-u,t[2]=h*c+d*-u+f*-i-l*-s,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},88669:(t,e,n)=>{function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function a(t,e){return new Float64Array(t,e,4)}function s(){return o(1,1,1,1)}function i(){return o(1,0,0,0)}function u(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}n.d(e,{a:()=>a,c:()=>r,f:()=>o});const l=s(),h=i(),d=u(),m=c(),M=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_W:M,UNIT_X:h,UNIT_Y:d,UNIT_Z:m,ZEROS:[0,0,0,0],clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,createView:a,fromArray:function(t){const e=[0,0,0,0],n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:s,unitW:f,unitX:i,unitY:u,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},91303:(t,e,n)=>{var r;n.d(e,{Y:()=>r}),function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(r||(r={}))},22807:(t,e,n)=>{n.d(e,{x:()=>o});var r=n(41213);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.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*a);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,a));t++)this._items.push(this._allocator())}}const a=1024},22021:(t,e,n)=>{n.d(e,{BV:()=>f,Kt:()=>h,Sf:()=>a,Vl:()=>c,ZF:()=>l,_3:()=>w,jE:()=>p,oK:()=>b,oc:()=>y,t7:()=>u,uZ:()=>s,wt:()=>i});var r=n(17896);n(98766);const o=new Float32Array(1);function a(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function s(t,e,n){return Math.min(Math.max(t,e),n)}function i(t){return 0==(t&t-1)}function u(t,e,n){return t+(e-t)*n}function c(t){return t*Math.PI/180}function f(t){return 180*t/Math.PI}function l(t){return Math.acos(s(t,-1,1))}function h(t){return Math.asin(s(t,-1,1))}function d(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}const m=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const M=BigInt("1000000");function b(t){return g(Math.max(-w,Math.min(t,w)))}function g(t){return o[0]=t,o[0]}function p(t,e){const n=(0,r.l)(t),o=h(t[2]/n),a=Math.atan2(t[1]/n,t[0]/n);return(0,r.s)(e,n,o,a),e}function y(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(d(e,1)&&d(n,1)&&d(r,1))}!function(t){const e=function(t){return m.setFloat64(0,t),m.getBigInt64(0)}(t=Math.abs(t)),n=function(t){return m.setBigInt64(0,t),m.getFloat64(0)}(e<=M?M:e-M);Math.abs(t-n)}(1);const w=g(34028234663852886e22)},41213:(t,e,n)=>{n.d(e,{Y:()=>o});const r=[];function o(t){r.push(t),1===r.length&&queueMicrotask((()=>{const t=r.slice();r.length=0;for(const e of t)e()}))}},78341:(t,e,n)=>{n.d(e,{JI:()=>c,Ue:()=>s,re:()=>u}),n(67676);var r=n(22807),o=n(17896),a=n(65617);function s(t){return t?i((0,a.a)(t.origin),(0,a.a)(t.direction)):i((0,a.c)(),(0,a.c)())}function i(t,e){return{origin:t,direction:e}}function u(t,e){const n=f.get();return n.origin=t,n.direction=e,n}function c(t,e,n){const r=(0,o.e)(t.direction,(0,o.b)(n,e,t.origin));return(0,o.a)(n,t.origin,(0,o.g)(n,t.direction,r)),n}n(12981);const f=new r.x((()=>s()))},61277:(t,e,n)=>{n.d(e,{EU:()=>s});var r=n(22021),o=n(17896),a=n(65617);function s(t,e){const n=(0,o.e)(t,e)/((0,o.l)(t)*(0,o.l)(e));return-(0,r.ZF)(n)}(0,a.c)(),(0,a.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>m,WM:()=>d});var r=n(91303),o=n(41213),a=n(46521),s=n(13598),i=n(94961),u=n(97323),c=n(65617),f=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,o.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=h){return new l(16,u.c,t)}static createVec3f64(t=h){return new l(24,c.b,t)}static createVec4f64(t=h){return new l(32,f.a,t)}static createMat3f64(t=h){return new l(72,a.a,t)}static createMat4f64(t=h){return new l(128,s.a,t)}static createQuatf64(t=h){return new l(32,i.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const h=4*r.Y.KILOBYTES,d=(l.createVec2f64(),l.createVec3f64()),m=(l.createVec4f64(),l.createMat3f64(),l.createMat4f64());l.createQuatf64()},3172:(t,e,n)=>{n.r(e),n.d(e,{default:()=>d});var r=n(68773),o=n(40330),a=n(20102),s=n(80442),i=n(22974),u=n(95330),c=n(81271),f=n(19745),l=n(71058),h=n(85958);async function d(t,e){const i=(0,c.HK)(t),f=(0,c.jc)(t);f||i||(t=(0,c.Fv)(t));const g={url:t,requestOptions:{...e}};let p=(0,c.oh)(t);if(p){const t=await async function(t,e){if(null!=t.responseData)return t.responseData;if(t.headers&&(e.requestOptions.headers={...e.requestOptions.headers,...t.headers}),t.query&&(e.requestOptions.query={...e.requestOptions.query,...t.query}),t.before){let n,r;try{r=await t.before(e)}catch(t){n=T("request:interceptor",t,e)}if((r instanceof Error||r instanceof a.Z)&&(n=T("request:interceptor",r,e)),n)throw t.error&&t.error(n),n;return r}}(p,g);if(null!=t)return{data:t,getHeader:w,httpStatus:200,requestOptions:g.requestOptions,url:g.url};p.after||p.error||(p=null)}if(t=g.url,"image"===(e=g.requestOptions).responseType&&((0,s.Z)("host-webworker")||(0,s.Z)("host-node")))throw T("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),g);if("head"===e.method){if(e.body)throw T("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),g);if(i||f)throw T("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),g)}if(await async function(){(0,s.Z)("host-webworker")?m||(m=await n.e(9884).then(n.bind(n,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(t,e);const y=new AbortController;(0,u.fu)(e,(()=>y.abort()));const _={controller:y,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:p,params:g,redoRequest:!1,useIdentity:M.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},E=await async function(t){let e,n;await async function(t){const e=t.params.url,n=t.params.requestOptions,a=t.controller.signal,s=n.body;let i=null,c=null;if(b&&"HTMLFormElement"in globalThis&&(s instanceof FormData?i=s:s instanceof HTMLFormElement&&(i=new FormData(s))),"string"==typeof s&&(c=s),t.fetchOptions={cache:n.cacheBust&&!("polyfill"in d._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",priority:M.priority,redirect:"follow",signal:a},(i||c)&&(t.fetchOptions.body=i||c),"anonymous"===n.authMode&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(e)||n.query?.token||i?.get("token")),!t.hasToken&&r.default.apiKey&&(0,l.r)(e)&&(n.query||(n.query={}),n.query.token=r.default.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!P(e)&&!(0,u.Hc)(a)){let r;"immediate"===n.authMode?(await S(),r=await o.id.getCredential(e,{signal:a}),t.credential=r):"no-prompt"===n.authMode?(await S(),r=await o.id.getCredential(e,{prompt:!1,signal:a}).catch((()=>{})),t.credential=r):o.id&&(r=o.id.findCredential(e)),r&&(t.credentialToken=r.token,t.useSSL=!!r.ssl)}}(t);try{do{[e,n]=await v(t)}while(!await q(t,e,n))}catch(n){const r=T("request:server",n,t.params,e);throw r.details.ssl=t.useSSL,t.interceptor?.error&&t.interceptor.error(r),r}const a=t.params.url;if(n&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!t.hasToken&&!t.credentialToken&&n.user?.username&&!(0,c.kl)(a)){const t=(0,c.P$)(a,!0);t&&M.trustedServers.push(t)}Array.isArray(n.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(n.authorizedCrossOriginNoCorsDomains)}const s=t.credential;if(s&&o.id){const t=o.id.findServerInfo(s.server);let e=t?.owningSystemUrl;if(e){e=e.replace(/\/?$/,"/sharing");const t=o.id.findCredential(e,s.userId);t&&-1===o.id._getIdenticalSvcIdx(e,t)&&t.resources.unshift(e)}}return{data:n,getHeader:e?t=>e?.headers.get(t):w,httpStatus:e?.status??200,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}(_);return p?.after?.(E),E}let m;const M=r.default.request,b="FormData"in globalThis,g=[499,498,403,401],p=["COM_0056","COM_0057","SB_0008"],y=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],w=()=>null,_=Symbol();function E(t){const e=(0,c.P$)(t);return!e||e.endsWith(".arcgis.com")||d._corsServers.includes(e)||(0,c.kl)(e)}function T(t,e,n,r){let o="Error";const s={url:n.url,requestOptions:n.requestOptions,getHeader:w,ssl:!1};if(e instanceof a.Z)return e.details?(e.details=(0,i.d9)(e.details),e.details.url=n.url,e.details.requestOptions=n.requestOptions):e.details=s,e;if(e){const t=r&&(t=>r.headers.get(t)),n=r?.status,a=e.message;a&&(o=a),t&&(s.getHeader=t),s.httpStatus=(null!=e.httpCode?e.httpCode:e.code)||n||0,s.subCode=e.subcode,s.messageCode=e.messageCode,"string"==typeof e.details?s.messages=[e.details]:s.messages=e.details,s.raw=_ in e?e[_]:e}return(0,u.D_)(e)?(0,u.zE)():new a.Z(t,o,s)}async function S(){o.id||await Promise.all([n.e(7126),n.e(6261),n.e(9255),n.e(1400),n.e(450)]).then(n.bind(n,73660))}function P(t){return y.some((e=>e.test(t)))}async function v(t){let e=t.params.url;const n=t.params.requestOptions,r=t.fetchOptions??{},a=(0,c.jc)(e)||(0,c.HK)(e),i=n.responseType||"json",l=a?0:null!=n.timeout?n.timeout:M.timeout;let m=!1;if(!a){t.useSSL&&(e=(0,c.hO)(e)),n.cacheBust&&"default"===r.cache&&(e=(0,c.ZN)(e,"request.preventCache",Date.now()));let a={...n.query};t.credentialToken&&(a.token=t.credentialToken);let i=(0,c.B7)(a);(0,s.Z)("esri-url-encodes-apostrophe")&&(i=i.replaceAll("'","%27"));const u=e.length+1+i.length;let l;m="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||u>M.maxUrlLength;const d=n.useProxy||!!(0,c.ed)(e);if(d){const t=(0,c.b7)(e);l=t.path,!m&&l.length+1+u>M.maxUrlLength&&(m=!0),t.query&&(a={...t.query,...a})}if("HEAD"===r.method&&(m||d)){if(m){if(u>M.maxUrlLength)throw T("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params);throw T("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params)}if(d)throw T("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),t.params)}if(m?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?e=(0,c.fl)(e,a):(r.body=(0,c.B7)(a),r.headers||(r.headers={}),r.headers["Content-Type"]="application/x-www-form-urlencoded")):e=(0,c.fl)(e,a),d&&(t.useProxy=!0,e=`${l}?${e}`),a.token&&b&&r.body instanceof FormData&&!(0,f.P)(e)&&r.body.set("token",a.token),n.hasOwnProperty("withCredentials"))t.withCredentials=n.withCredentials;else if(!(0,c.D6)(e,(0,c.TI)()))if((0,c.kl)(e))t.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(e);n?.webTierAuth&&(t.withCredentials=!0)}t.withCredentials&&(r.credentials="include",(0,h.jH)(e)&&await(0,h.jz)(m?(0,c.fl)(e,a):e))}let g,p,y=0,w=!1;l>0&&(y=setTimeout((()=>{w=!0,t.controller.abort()}),l));try{if("native-request-init"===n.responseType)p=r,p.url=e;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||m||function(t){if(t)for(const e of Object.getOwnPropertyNames(t))if(t[e])return!0;return!1}(n.headers)||!a&&!t.useProxy&&M.proxyUrl&&!E(e)){if(g=await d._abortableFetch(e,r),t.useProxy||function(t){const e=(0,c.P$)(t);e&&!d._corsServers.includes(e)&&d._corsServers.push(e)}(e),"native"===n.responseType)p=g;else if("HEAD"!==r.method)if(g.ok){switch(i){case"array-buffer":p=await g.arrayBuffer();break;case"blob":case"image":p=await g.blob();break;default:p=await g.text()}if(y&&(clearTimeout(y),y=0),"json"===i||"xml"===i||"document"===i)if(p)switch(i){case"json":p=JSON.parse(p);break;case"xml":p=O(p,"application/xml");break;case"document":p=O(p,"text/html")}else p=null;if(p){if("array-buffer"===i||"blob"===i){const t=g.headers.get("Content-Type");if(t&&/application\/json|text\/plain/i.test(t)&&p["blob"===i?"size":"byteLength"]<=750)try{const t=await new Response(p).json();t.error&&(p=t)}catch{}}"image"===i&&p instanceof Blob&&(p=await x(URL.createObjectURL(p),t,!0))}}else{p=await g.text();try{p=JSON.parse(p)}catch{}}}else p=await x(e,t)}catch(r){if("AbortError"===r.name){if(w)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!g&&r instanceof TypeError&&M.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||t.useProxy||E(e))throw r;t.redoRequest=!0,(0,c.tD)({proxyUrl:M.proxyUrl,urlPrefix:(0,c.P$)(e)??""})}finally{y&&clearTimeout(y)}return[g,p]}function O(t,e){let n;try{n=(new DOMParser).parseFromString(t,e)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function q(t,e,n){if(t.redoRequest)return t.redoRequest=!1,!1;const r=t.params.requestOptions;if(!e||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let a,s;if(n&&(n.error?a=n.error:"error"===n.status&&Array.isArray(n.messages)&&(a={...n},a[_]=n,a.details=n.messages)),!a&&!e.ok)throw a=new Error(`Unable to load ${e.url} status: ${e.status}`),a[_]=n,a;let i,u=null;a&&(s=Number(a.code),u=a.hasOwnProperty("subcode")?Number(a.subcode):null,i=a.messageCode,i=i?.toUpperCase());const c=r.authMode;if(403===s&&(4===u||a.message?.toLowerCase().includes("ssl")&&!a.message.toLowerCase().includes("permission"))){if(!t.useSSL)return t.useSSL=!0,!1}else if(!t.hasToken&&t.useIdentity&&("no-prompt"!==c||498===s)&&void 0!==s&&g.includes(s)&&!P(t.params.url)&&(403!==s||i&&!p.includes(i)&&(null==u||2===u&&t.credentialToken))){await S();try{const e=await o.id.getCredential(t.params.url,{error:T("request:server",a,t.params),prompt:"no-prompt"!==c,signal:t.controller.signal,token:t.credentialToken});return t.credential=e,t.credentialToken=e.token,t.useSSL=t.useSSL||e.ssl,!1}catch(e){if("no-prompt"===c)return t.credential=void 0,t.credentialToken=void 0,!1;a=e}}if(a)throw a;return!0}function x(t,e,n=!1){const r=e.controller.signal,o=new Image;return e.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=M.priority,o.src=t,(0,h.fY)(o,t,n,r)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(t,e,n)=>{n.d(e,{r:()=>a});var r=n(81271);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function a(t){const e=(0,r.P$)(t,!0);return!!e&&e.endsWith(".arcgis.com")&&!o.includes(e)&&!t.endsWith("/sharing/rest/generateToken")}},85958:(t,e,n)=>{n.d(e,{Hu:()=>c,fY:()=>i,jH:()=>f,jz:()=>l});var r=n(68773),o=n(80442),a=n(95330),s=n(81271);function i(t,e,n=!1,r){return new Promise(((s,i)=>{if((0,a.Hc)(r))return void i(u());let c=()=>{h(),i(new Error(`Unable to load ${e}`))},f=()=>{const e=t;h(),s(e)},l=()=>{if(!t)return;const e=t;h(),e.src="",i(u())};const h=()=>{(0,o.Z)("esri-image-decode")||(t.removeEventListener("error",c),t.removeEventListener("load",f)),c=null,f=null,t=null,null!=r&&r.removeEventListener("abort",l),l=null,n&&URL.revokeObjectURL(e)};null!=r&&r.addEventListener("abort",l),(0,o.Z)("esri-image-decode")?t.decode().then(f,c):(t.addEventListener("error",c),t.addEventListener("load",f))}))}function u(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error;return t.name="AbortError",t}}function c(t){r.default.request.crossOriginNoCorsDomains||(r.default.request.crossOriginNoCorsDomains={});const e=r.default.request.crossOriginNoCorsDomains;for(let n of t)n=n.toLowerCase(),/^https?:\/\//.test(n)?e[(0,s.P$)(n)??""]=0:(e[(0,s.P$)("http://"+n)??""]=0,e[(0,s.P$)("https://"+n)??""]=0)}function f(t){const e=r.default.request.crossOriginNoCorsDomains;if(e){let n=(0,s.P$)(t);if(n)return n=n.toLowerCase(),!(0,s.D6)(n,(0,s.TI)())&&e[n]<Date.now()-36e5}return!1}async function l(t){const e=r.default.request.crossOriginNoCorsDomains,n=(0,s.P$)(t);e&&n&&(e[n.toLowerCase()]=Date.now());const o=(0,s.mN)(t);t=o.path,"json"===o.query?.f&&(t+="?f=json");try{await fetch(t,{mode:"no-cors",credentials:"include"})}catch{}}},31412:(t,e,n)=>{var r,o;n.r(e),n.d(e,{destroyContext:()=>y,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>P,initialize:()=>q,interpretObbModificationResults:()=>S,process:()=>m,setLegacySchema:()=>p,setModifications:()=>g,setModificationsSync:()=>E,test:()=>x}),function(t){t[t.None=0]="None",t[t.Int16=1]="Int16",t[t.Int32=2]="Int32"}(r||(r={})),function(t){t[t.Replace=0]="Replace",t[t.Outside=1]="Outside",t[t.Inside=2]="Inside",t[t.Finished=3]="Finished"}(o||(o={}));var a=n(99880);function s(t){return(0,a.V)(`esri/libs/i3s/${t}`)}let i;var u,c,f,l,h,d;async function m(t){await q();const e=[t.geometryBuffer];return{result:T(t,e),transferList:e}}async function M(t){await q();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,o=_._malloc(r),a=new Uint8Array(_.HEAPU8.buffer,o,r);a.set(new Uint8Array(n));const s=_.dracoDecompressPointCloudData(o,a.byteLength);if(_._free(o),s.error.length>0)throw new Error(`i3s.wasm: ${s.error}`);const i=s.featureIds?.length>0?s.featureIds.slice():null,u=s.positions.slice();return i&&e.push(i.buffer),e.push(u.buffer),{result:{positions:u,featureIds:i},transferList:e}}async function b(t){await q(),P(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function g(t){await q(),E(t)}async function p(t){await q(),_.setLegacySchema(t.context,t.jsonSchema)}function y(t){v(t)}let w,_;function E(t){const e=t.modifications,n=_._malloc(8*e.length),r=new Float64Array(_.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];_.setModifications(t.context,n,e.length,t.isGeodetic),_._free(n)}function T(t,e){if(!_)return null;const{context:n,localOrigin:o,globalTrafo:a,mbs:s,obb:i,elevationOffset:u,geometryBuffer:c,geometryDescriptor:f,indexToVertexProjector:l,vertexToRenderProjector:h}=t,d=_._malloc(c.byteLength),m=_._malloc(33*Float64Array.BYTES_PER_ELEMENT),M=new Uint8Array(_.HEAPU8.buffer,d,c.byteLength);M.set(new Uint8Array(c));const b=new Float64Array(_.HEAPU8.buffer,m,33);O(b,o);let g=b.byteOffset+3*b.BYTES_PER_ELEMENT,p=new Float64Array(b.buffer,g);O(p,a),g+=16*b.BYTES_PER_ELEMENT,p=new Float64Array(b.buffer,g),O(p,s),g+=4*b.BYTES_PER_ELEMENT,null!=i&&(p=new Float64Array(b.buffer,g),O(p,i.center),g+=3*b.BYTES_PER_ELEMENT,p=new Float64Array(b.buffer,g),O(p,i.halfSize),g+=3*b.BYTES_PER_ELEMENT,p=new Float64Array(b.buffer,g),O(p,i.quaternion));const y=f,w={isDraco:!1,isLegacy:!1,color:t.layouts.some((t=>t.some((t=>"color"===t.name)))),normal:t.needNormals&&t.layouts.some((t=>t.some((t=>"normalCompressed"===t.name)))),uv0:t.layouts.some((t=>t.some((t=>"uv0"===t.name)))),uvRegion:t.layouts.some((t=>t.some((t=>"uvRegion"===t.name)))),featureIndex:y.featureIndex},E=_.process(n,!!t.obb,d,M.byteLength,y,w,m,u,l,h,t.normalReferenceFrame);if(_._free(m),_._free(d),E.error.length>0)throw new Error(`i3s.wasm: ${E.error}`);if(E.discarded)return null;const T=E.componentOffsets.length>0?E.componentOffsets.slice():null,S=E.featureIds.length>0?E.featureIds.slice():null,P=E.anchorIds.length>0?Array.from(E.anchorIds):null,v=E.anchors.length>0?Array.from(E.anchors):null,q=E.interleavedVertedData.slice().buffer,x=E.indicesType===r.Int16?new Uint16Array(E.indices.buffer,E.indices.byteOffset,E.indices.byteLength/2).slice():new Uint32Array(E.indices.buffer,E.indices.byteOffset,E.indices.byteLength/4).slice(),I=E.positions.slice(),A=E.positionIndicesType===r.Int16?new Uint16Array(E.positionIndices.buffer,E.positionIndices.byteOffset,E.positionIndices.byteLength/2).slice():new Uint32Array(E.positionIndices.buffer,E.positionIndices.byteOffset,E.positionIndices.byteLength/4).slice(),L={layout:t.layouts[0],interleavedVertexData:q,indices:x,hasColors:E.hasColors,hasModifications:E.hasModifications,positionData:{data:I,indices:A}};return S&&e.push(S.buffer),T&&e.push(T.buffer),e.push(q),e.push(x.buffer),e.push(I.buffer),e.push(A.buffer),{componentOffsets:T,featureIds:S,anchorIds:P,anchors:v,transformedGeometry:L,obb:E.obb}}function S(t){return 0===t?c.Unmodified:1===t?c.PotentiallyModified:2===t?c.Culled:c.Unknown}function P(t){const{context:e,buffer:n}=t,r=_._malloc(n.byteLength),o=n.byteLength/Float64Array.BYTES_PER_ELEMENT,a=new Float64Array(_.HEAPU8.buffer,r,o),s=new Float64Array(n);a.set(s),_.filterOBBs(e,r,o),s.set(a),_._free(r)}function v(t){_&&(_.destroy(t),_=null)}function O(t,e){for(let n=0;n<e.length;++n)t[n]=e[n]}function q(){return _?Promise.resolve():(w||(w=(i||(i=new Promise((t=>n.e(6710).then(n.bind(n,26710)).then((t=>t.i)).then((({default:e})=>{const n=e({locateFile:s,onRuntimeInitialized:()=>t(n)});delete n.then})))).catch((t=>{throw t}))),i).then((t=>{_=t,w=null}))),w)}n(29268),(d=u||(u={}))[d.Unmodified=0]="Unmodified",d[d.Culled=1]="Culled",d[d.NotChecked=2]="NotChecked",function(t){t[t.Unmodified=0]="Unmodified",t[t.PotentiallyModified=1]="PotentiallyModified",t[t.Culled=2]="Culled",t[t.Unknown=3]="Unknown",t[t.NotChecked=4]="NotChecked"}(c||(c={})),function(t){t[t.Unknown=0]="Unknown",t[t.Uncached=1]="Uncached",t[t.Cached=2]="Cached"}(f||(f={})),function(t){t[t.None=0]="None",t[t.MaxScreenThreshold=1]="MaxScreenThreshold",t[t.ScreenSpaceRelative=2]="ScreenSpaceRelative",t[t.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",t[t.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(l||(l={})),function(t){t[t.Hole=0]="Hole",t[t.Leaf=1]="Leaf"}(h||(h={}));const x={transform:T,destroy:v}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6710,5732],{5732:(e,n,r)=>{r.d(n,{c:()=>t,g:()=>i});var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},26710:(e,n,r)=>{r.r(n),r.d(n,{i:()=>f});var t,i,o,a=r(5732),u={exports:{}};t=u,i="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,o=function(e={}){var n,r,t=void 0!==e?e:{};t.ready=new Promise(((e,t)=>{n=e,r=t}));var o=Object.assign({},t),a="object"==typeof window,u="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var c,f="";(a||u)&&(u?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),i&&(f=i),f=0!==f.indexOf("blob:")?f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1):"",u&&(c=e=>{var n=new XMLHttpRequest;return n.open("GET",e,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}));var s,l,d=t.print||console.log.bind(console),p=t.printErr||console.warn.bind(console);Object.assign(t,o),o=null,t.arguments&&t.arguments,t.thisProgram&&t.thisProgram,t.quit&&t.quit,t.wasmBinary&&(s=t.wasmBinary),t.noExitRuntime,"object"!=typeof WebAssembly&&S("no native wasm support detected");var h,v,g,m,y,_,w,b,A,T=!1;function C(){var e=l.buffer;t.HEAP8=h=new Int8Array(e),t.HEAP16=g=new Int16Array(e),t.HEAP32=y=new Int32Array(e),t.HEAPU8=v=new Uint8Array(e),t.HEAPU16=m=new Uint16Array(e),t.HEAPU32=_=new Uint32Array(e),t.HEAPF32=w=new Float32Array(e),t.HEAPF64=b=new Float64Array(e)}var P=[],k=[],E=[];function W(e){P.unshift(e)}function j(e){E.unshift(e)}var R=0,F=null;function S(e){t.onAbort&&t.onAbort(e),p(e="Aborted("+e+")"),T=!0,e+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(e);throw r(n),n}var x;function O(e){return e.startsWith("data:application/octet-stream;base64,")}function U(e){try{if(e==x&&s)return new Uint8Array(s);if(c)return c(e);throw"both async and sync fetching of the wasm failed"}catch(e){S(e)}}function I(e,n,r){return function(e){return s||!a&&!u||"function"!=typeof fetch?Promise.resolve().then((()=>U(e))):fetch(e,{credentials:"same-origin"}).then((n=>{if(!n.ok)throw"failed to load wasm binary file at '"+e+"'";return n.arrayBuffer()})).catch((()=>U(e)))}(e).then((e=>WebAssembly.instantiate(e,n))).then((e=>e)).then(r,(e=>{p("failed to asynchronously prepare wasm: "+e),S(e)}))}function D(e){for(;e.length>0;)e.shift()(t)}O(x="i3s.wasm")||(x=function(e){return t.locateFile?t.locateFile(e,f):f+e}(x));var z=[];function M(e){var n=z[e];return n||(e>=z.length&&(z.length=e+1),z[e]=n=A.get(e)),n}function V(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){_[this.ptr+4>>2]=e},this.get_type=function(){return _[this.ptr+4>>2]},this.set_destructor=function(e){_[this.ptr+8>>2]=e},this.get_destructor=function(){return _[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,h[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=h[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,h[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=h[this.ptr+13>>0]},this.init=function(e,n){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(n)},this.set_adjusted_ptr=function(e){_[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return _[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Ue(this.get_type()))return _[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var H={};function B(e){for(;e.length;){var n=e.pop();e.pop()(n)}}function q(e){return this.fromWireType(y[e>>2])}var N={},L={},G={},X=48,Z=57;function $(e){if(void 0===e)return"_unknown";var n=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return n>=X&&n<=Z?"_"+e:e}function J(e,n){var r=function(e,n){return{[e=$(e)]:function(){return n.apply(this,arguments)}}[e]}(n,(function(e){this.name=n,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var K=void 0;function Q(e){throw new K(e)}function Y(e,n,r){function t(n){var t=r(n);t.length!==e.length&&Q("Mismatched type converter count");for(var i=0;i<e.length;++i)oe(e[i],t[i])}e.forEach((function(e){G[e]=n}));var i=new Array(n.length),o=[],a=0;n.forEach(((e,n)=>{L.hasOwnProperty(e)?i[n]=L[e]:(o.push(e),N.hasOwnProperty(e)||(N[e]=[]),N[e].push((()=>{i[n]=L[e],++a===o.length&&t(i)})))})),0===o.length&&t(i)}function ee(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}var ne=void 0;function re(e){for(var n="",r=e;v[r];)n+=ne[v[r++]];return n}var te=void 0;function ie(e){throw new te(e)}function oe(e,n,r={}){if(!("argPackAdvance"in n))throw new TypeError("registerType registeredInstance requires argPackAdvance");var t=n.name;if(e||ie('type "'+t+'" must have a positive integer typeid pointer'),L.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;ie("Cannot register type '"+t+"' twice")}if(L[e]=n,delete G[e],N.hasOwnProperty(e)){var i=N[e];delete N[e],i.forEach((e=>e()))}}var ae=new function(){this.allocated=[void 0],this.freelist=[],this.get=function(e){return this.allocated[e]},this.allocate=function(e){let n=this.freelist.pop()||this.allocated.length;return this.allocated[n]=e,n},this.free=function(e){this.allocated[e]=void 0,this.freelist.push(e)}};function ue(e){e>=ae.reserved&&0==--ae.get(e).refcount&&ae.free(e)}var ce=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return ae.allocate({refcount:1,value:e})}};function fe(e,n){switch(n){case 2:return function(e){return this.fromWireType(w[e>>2])};case 3:return function(e){return this.fromWireType(b[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function se(e,n,r){t.hasOwnProperty(e)?((void 0===r||void 0!==t[e].overloadTable&&void 0!==t[e].overloadTable[r])&&ie("Cannot register public name '"+e+"' twice"),function(e,n,r){if(void 0===e[n].overloadTable){var t=e[n];e[n]=function(){return e[n].overloadTable.hasOwnProperty(arguments.length)||ie("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[n].overloadTable+")!"),e[n].overloadTable[arguments.length].apply(this,arguments)},e[n].overloadTable=[],e[n].overloadTable[t.argCount]=t}}(t,e,e),t.hasOwnProperty(r)&&ie("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),t[e].overloadTable[r]=n):(t[e]=n,void 0!==r&&(t[e].numArguments=r))}function le(e,n,r){t.hasOwnProperty(e)||Q("Replacing nonexistant public symbol"),void 0!==t[e].overloadTable&&void 0!==r?t[e].overloadTable[r]=n:(t[e]=n,t[e].argCount=r)}function de(e,n){var r=(e=re(e)).includes("j")?function(e,n){var r=[];return function(){return r.length=0,Object.assign(r,arguments),function(e,n,r){return e.includes("j")?function(e,n,r){var i=t["dynCall_"+e];return r&&r.length?i.apply(null,[n].concat(r)):i.call(null,n)}(e,n,r):M(n).apply(null,r)}(e,n,r)}}(e,n):M(n);return"function"!=typeof r&&ie("unknown function pointer with signature "+e+": "+n),r}var pe=void 0;function he(e){var n=xe(e),r=re(n);return Se(n),r}function ve(e,n,r){switch(n){case 0:return r?function(e){return h[e]}:function(e){return v[e]};case 1:return r?function(e){return g[e>>1]}:function(e){return m[e>>1]};case 2:return r?function(e){return y[e>>2]}:function(e){return _[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var ge="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function me(e,n,r){for(var t=n+r,i=n;e[i]&&!(i>=t);)++i;if(i-n>16&&e.buffer&&ge)return ge.decode(e.subarray(n,i));for(var o="";n<i;){var a=e[n++];if(128&a){var u=63&e[n++];if(192!=(224&a)){var c=63&e[n++];if((a=224==(240&a)?(15&a)<<12|u<<6|c:(7&a)<<18|u<<12|c<<6|63&e[n++])<65536)o+=String.fromCharCode(a);else{var f=a-65536;o+=String.fromCharCode(55296|f>>10,56320|1023&f)}}else o+=String.fromCharCode((31&a)<<6|u)}else o+=String.fromCharCode(a)}return o}function ye(e,n){return e?me(v,e,n):""}var _e="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function we(e,n){for(var r=e,t=r>>1,i=t+n/2;!(t>=i)&&m[t];)++t;if((r=t<<1)-e>32&&_e)return _e.decode(v.subarray(e,r));for(var o="",a=0;!(a>=n/2);++a){var u=g[e+2*a>>1];if(0==u)break;o+=String.fromCharCode(u)}return o}function be(e,n,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var t=n,i=(r-=2)<2*e.length?r/2:e.length,o=0;o<i;++o){var a=e.charCodeAt(o);g[n>>1]=a,n+=2}return g[n>>1]=0,n-t}function Ae(e){return 2*e.length}function Te(e,n){for(var r=0,t="";!(r>=n/4);){var i=y[e+4*r>>2];if(0==i)break;if(++r,i>=65536){var o=i-65536;t+=String.fromCharCode(55296|o>>10,56320|1023&o)}else t+=String.fromCharCode(i)}return t}function Ce(e,n,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var t=n,i=t+r-4,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),y[n>>2]=a,(n+=4)+4>i)break}return y[n>>2]=0,n-t}function Pe(e){for(var n=0,r=0;r<e.length;++r){var t=e.charCodeAt(r);t>=55296&&t<=57343&&++r,n+=4}return n}var ke={};function Ee(e){var n=l.buffer;try{return l.grow(e-n.byteLength+65535>>>16),C(),1}catch(e){}}var We=[null,[],[]];function je(e,n){var r=We[e];0===n||10===n?((1===e?d:p)(me(r,0)),r.length=0):r.push(n)}K=t.InternalError=J(Error,"InternalError"),function(){for(var e=new Array(256),n=0;n<256;++n)e[n]=String.fromCharCode(n);ne=e}(),te=t.BindingError=J(Error,"BindingError"),ae.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),ae.reserved=ae.allocated.length,t.count_emval_handles=function(){for(var e=0,n=ae.reserved;n<ae.allocated.length;++n)void 0!==ae.allocated[n]&&++e;return e},pe=t.UnboundTypeError=J(Error,"UnboundTypeError");var Re={__call_sighandler:function(e,n){M(e)(n)},__cxa_throw:function(e,n,r){throw new V(e).init(n,r),e},_embind_finalize_value_object:function(e){var n=H[e];delete H[e];var r=n.rawConstructor,t=n.rawDestructor,i=n.fields;Y([e],i.map((e=>e.getterReturnType)).concat(i.map((e=>e.setterArgumentType))),(e=>{var o={};return i.forEach(((n,r)=>{var t=n.fieldName,a=e[r],u=n.getter,c=n.getterContext,f=e[r+i.length],s=n.setter,l=n.setterContext;o[t]={read:e=>a.fromWireType(u(c,e)),write:(e,n)=>{var r=[];s(l,e,f.toWireType(r,n)),B(r)}}})),[{name:n.name,fromWireType:function(e){var n={};for(var r in o)n[r]=o[r].read(e);return t(e),n},toWireType:function(e,n){for(var i in o)if(!(i in n))throw new TypeError('Missing field: "'+i+'"');var a=r();for(i in o)o[i].write(a,n[i]);return null!==e&&e.push(t,a),a},argPackAdvance:8,readValueFromPointer:q,destructorFunction:t}]}))},_embind_register_bigint:function(e,n,r,t,i){},_embind_register_bool:function(e,n,r,t,i){var o=ee(r);oe(e,{name:n=re(n),fromWireType:function(e){return!!e},toWireType:function(e,n){return n?t:i},argPackAdvance:8,readValueFromPointer:function(e){var t;if(1===r)t=h;else if(2===r)t=g;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+n);t=y}return this.fromWireType(t[e>>o])},destructorFunction:null})},_embind_register_emval:function(e,n){oe(e,{name:n=re(n),fromWireType:function(e){var n=(e=>(e||ie("Cannot use deleted val. handle = "+e),ae.get(e).value))(e);return ue(e),n},toWireType:function(e,n){return ce(n)},argPackAdvance:8,readValueFromPointer:q,destructorFunction:null})},_embind_register_float:function(e,n,r){var t=ee(r);oe(e,{name:n=re(n),fromWireType:function(e){return e},toWireType:function(e,n){return n},argPackAdvance:8,readValueFromPointer:fe(n,t),destructorFunction:null})},_embind_register_function:function(e,n,r,t,i,o,a){var u=function(e,n){for(var r=[],t=0;t<e;t++)r.push(_[n+4*t>>2]);return r}(n,r);e=re(e),i=de(t,i),se(e,(function(){!function(e,n){var r=[],t={};throw n.forEach((function e(n){t[n]||L[n]||(G[n]?G[n].forEach(e):(r.push(n),t[n]=!0))})),new pe(e+": "+r.map(he).join([", "]))}("Cannot call "+e+" due to unbound types",u)}),n-1),Y([],u,(function(r){var t=[r[0],null].concat(r.slice(1));return le(e,function(e,n,r,t,i,o){var a=n.length;a<2&&ie("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var u=null!==n[1]&&!1,c=!1,f=1;f<n.length;++f)if(null!==n[f]&&void 0===n[f].destructorFunction){c=!0;break}var s="void"!==n[0].name,l=a-2,d=new Array(l),p=[],h=[];return function(){var r;arguments.length!==l&&ie("function "+e+" called with "+arguments.length+" arguments, expected "+l+" args!"),h.length=0,p.length=u?2:1,p[0]=i,u&&(r=n[1].toWireType(h,this),p[1]=r);for(var o=0;o<l;++o)d[o]=n[o+2].toWireType(h,arguments[o]),p.push(d[o]);return function(e){if(c)B(h);else for(var t=u?1:2;t<n.length;t++){var i=1===t?r:d[t-2];null!==n[t].destructorFunction&&n[t].destructorFunction(i)}if(s)return n[0].fromWireType(e)}(t.apply(null,p))}}(e,t,0,i,o),n-1),[]}))},_embind_register_integer:function(e,n,r,t,i){n=re(n);var o=ee(r),a=e=>e;if(0===t){var u=32-8*r;a=e=>e<<u>>>u}var c=n.includes("unsigned");oe(e,{name:n,fromWireType:a,toWireType:c?function(e,n){return this.name,n>>>0}:function(e,n){return this.name,n},argPackAdvance:8,readValueFromPointer:ve(n,o,0!==t),destructorFunction:null})},_embind_register_memory_view:function(e,n,r){var t=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][n];function i(e){var n=_,r=n[e>>=2],i=n[e+1];return new t(n.buffer,i,r)}oe(e,{name:r=re(r),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},_embind_register_std_string:function(e,n){var r="std::string"===(n=re(n));oe(e,{name:n,fromWireType:function(e){var n,t=_[e>>2],i=e+4;if(r)for(var o=i,a=0;a<=t;++a){var u=i+a;if(a==t||0==v[u]){var c=ye(o,u-o);void 0===n?n=c:(n+=String.fromCharCode(0),n+=c),o=u+1}}else{var f=new Array(t);for(a=0;a<t;++a)f[a]=String.fromCharCode(v[i+a]);n=f.join("")}return Se(e),n},toWireType:function(e,n){var t;n instanceof ArrayBuffer&&(n=new Uint8Array(n));var i="string"==typeof n;i||n instanceof Uint8Array||n instanceof Uint8ClampedArray||n instanceof Int8Array||ie("Cannot pass non-string to std::string"),t=r&&i?function(e){for(var n=0,r=0;r<e.length;++r){var t=e.charCodeAt(r);t<=127?n++:t<=2047?n+=2:t>=55296&&t<=57343?(n+=4,++r):n+=3}return n}(n):n.length;var o=Fe(4+t+1),a=o+4;if(_[o>>2]=t,r&&i)!function(e,n,r){!function(e,n,r,t){if(!(t>0))return 0;for(var i=r+t-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(r>=i)break;n[r++]=a}else if(a<=2047){if(r+1>=i)break;n[r++]=192|a>>6,n[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;n[r++]=224|a>>12,n[r++]=128|a>>6&63,n[r++]=128|63&a}else{if(r+3>=i)break;n[r++]=240|a>>18,n[r++]=128|a>>12&63,n[r++]=128|a>>6&63,n[r++]=128|63&a}}n[r]=0}(e,v,n,r)}(n,a,t+1);else if(i)for(var u=0;u<t;++u){var c=n.charCodeAt(u);c>255&&(Se(a),ie("String has UTF-16 code units that do not fit in 8 bits")),v[a+u]=c}else for(u=0;u<t;++u)v[a+u]=n[u];return null!==e&&e.push(Se,o),o},argPackAdvance:8,readValueFromPointer:q,destructorFunction:function(e){Se(e)}})},_embind_register_std_wstring:function(e,n,r){var t,i,o,a,u;r=re(r),2===n?(t=we,i=be,a=Ae,o=()=>m,u=1):4===n&&(t=Te,i=Ce,a=Pe,o=()=>_,u=2),oe(e,{name:r,fromWireType:function(e){for(var r,i=_[e>>2],a=o(),c=e+4,f=0;f<=i;++f){var s=e+4+f*n;if(f==i||0==a[s>>u]){var l=t(c,s-c);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),c=s+n}}return Se(e),r},toWireType:function(e,t){"string"!=typeof t&&ie("Cannot pass non-string to C++ string type "+r);var o=a(t),c=Fe(4+o+n);return _[c>>2]=o>>u,i(t,c+4,o+n),null!==e&&e.push(Se,c),c},argPackAdvance:8,readValueFromPointer:q,destructorFunction:function(e){Se(e)}})},_embind_register_value_object:function(e,n,r,t,i,o){H[e]={name:re(n),rawConstructor:de(r,t),rawDestructor:de(i,o),fields:[]}},_embind_register_value_object_field:function(e,n,r,t,i,o,a,u,c,f){H[e].fields.push({fieldName:re(n),getterReturnType:r,getter:de(t,i),getterContext:o,setterArgumentType:a,setter:de(u,c),setterContext:f})},_embind_register_void:function(e,n){oe(e,{isVoid:!0,name:n=re(n),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,n){}})},_emval_decref:ue,_emval_incref:function(e){e>4&&(ae.get(e).refcount+=1)},_emval_new_cstring:function(e){return ce(function(e){var n=ke[e];return void 0===n?re(e):n}(e))},_emval_take_value:function(e,n){var r=(e=function(e,n){var r=L[e];return void 0===r&&ie("_emval_take_value has unknown type "+he(e)),r}(e)).readValueFromPointer(n);return ce(r)},abort:function(){S("")},emscripten_memcpy_big:function(e,n,r){v.copyWithin(e,n,n+r)},emscripten_resize_heap:function(e){var n=v.length,r=2147483648;if((e>>>=0)>r)return!1;let t=(e,n)=>e+(n-e%n)%n;for(var i=1;i<=4;i*=2){var o=n*(1+.2/i);if(o=Math.min(o,e+100663296),Ee(Math.min(r,t(Math.max(e,o),65536))))return!0}return!1},fd_close:function(e){return 52},fd_seek:function(e,n,r,t,i){return 70},fd_write:function(e,n,r,t){for(var i=0,o=0;o<r;o++){var a=_[n>>2],u=_[n+4>>2];n+=8;for(var c=0;c<u;c++)je(e,v[a+c]);i+=u}return _[t>>2]=i,0}};!function(){var e={env:Re,wasi_snapshot_preview1:Re};function n(e,n){var r=e.exports;return t.asm=r,l=t.asm.memory,C(),A=t.asm.__indirect_function_table,function(e){k.unshift(e)}(t.asm.__wasm_call_ctors),function(e){if(R--,t.monitorRunDependencies&&t.monitorRunDependencies(R),0==R&&F){var n=F;F=null,n()}}(),r}if(R++,t.monitorRunDependencies&&t.monitorRunDependencies(R),t.instantiateWasm)try{return t.instantiateWasm(e,n)}catch(e){p("Module.instantiateWasm callback failed with error: "+e),r(e)}(function(e,n,r,t){return e||"function"!=typeof WebAssembly.instantiateStreaming||O(n)||"function"!=typeof fetch?I(n,r,t):fetch(n,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(t,(function(e){return p("wasm streaming compile failed: "+e),p("falling back to ArrayBuffer instantiation"),I(n,r,t)}))))})(s,x,e,(function(e){n(e.instance)})).catch(r)}();var Fe=function(){return(Fe=t.asm.malloc).apply(null,arguments)},Se=function(){return(Se=t.asm.free).apply(null,arguments)},xe=function(){return(xe=t.asm.__getTypeName).apply(null,arguments)};t.__embind_initialize_bindings=function(){return(t.__embind_initialize_bindings=t.asm._embind_initialize_bindings).apply(null,arguments)};var Oe,Ue=function(){return(Ue=t.asm.__cxa_is_pointer_type).apply(null,arguments)};function Ie(){function e(){Oe||(Oe=!0,t.calledRun=!0,T||(D(k),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),function(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)j(t.postRun.shift());D(E)}()))}R>0||(function(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)W(t.preRun.shift());D(P)}(),R>0||(t.setStatus?(t.setStatus("Running..."),setTimeout((function(){setTimeout((function(){t.setStatus("")}),1),e()}),1)):e()))}if(t.dynCall_vij=function(){return(t.dynCall_vij=t.asm.dynCall_vij).apply(null,arguments)},t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.dynCall_jiji).apply(null,arguments)},F=function e(){Oe||Ie(),Oe||(F=e)},t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return Ie(),e.ready},t.exports=o;var c=u.exports;const f=function(e,n){for(var r=0;r<n.length;r++){const t=n[r];if("string"!=typeof t&&!Array.isArray(t))for(const n in t)if("default"!==n&&!(n in e)){const r=Object.getOwnPropertyDescriptor(t,n);r&&Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,a.g)(c)},[c])}}]);
|