@arcgis/core 4.23.0-next.20220119 → 4.23.0-next.20220123
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/0bf079e752ab79468478.js +1 -0
- package/assets/esri/core/workers/chunks/199670a3a564ebe3bd79.js +1 -0
- package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +1 -0
- package/assets/esri/core/workers/chunks/{99f0d896c17dd09cd285.js → 2629adf79e7fd9f25f07.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a250ec51097f16feb66.js → 40a1e713f63ec77110c0.js} +1 -1
- package/assets/esri/core/workers/chunks/{4b69129c0557852d9b3d.js → 4c9084a04948b6924749.js} +1 -1
- package/assets/esri/core/workers/chunks/{1b28042fdf3f4dbc8ea5.js → 5383a8f3e4ec1a8a4fcd.js} +1 -1
- package/assets/esri/core/workers/chunks/{9d9dffc8884d66a258e4.js → 5538639a49c7cc2eca63.js} +1 -1
- package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +1 -0
- package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +1 -0
- package/assets/esri/core/workers/chunks/68a59ce98177d8513337.js +1 -0
- package/assets/esri/core/workers/chunks/739e579150bf466d43ae.js +1 -0
- package/assets/esri/core/workers/chunks/74df1f3e1e2e524a89d2.js +1 -0
- package/assets/esri/core/workers/chunks/7baf6b1f3f050aa67ae4.js +1 -0
- package/assets/esri/core/workers/chunks/{47395d225229d237f0ac.js → 7bc5cc5dbf1b7b70ddac.js} +1 -1
- package/assets/esri/core/workers/chunks/8fa0a14165d43ffe87a5.js +1 -0
- package/assets/esri/core/workers/chunks/94b8dbf859df71858d1c.js +1 -0
- package/assets/esri/core/workers/chunks/{e2d68bcd2f99a65387bf.js → 9cb2ae42a8e328b1d98d.js} +1 -1
- package/assets/esri/core/workers/chunks/9d3c58a0ef634d95b7bd.js +1 -0
- package/assets/esri/core/workers/chunks/a78757b9c7e8cbea08fa.js +1 -0
- package/assets/esri/core/workers/chunks/a96afc176041f698c7a1.js +1 -0
- package/assets/esri/core/workers/chunks/{b10fcbe1393c812fc219.js → aa861b8eae6c85f3dad4.js} +1 -1
- package/assets/esri/core/workers/chunks/{a960074644c3722be71e.js → afa6912454f2a5ffadce.js} +1 -1
- package/assets/esri/core/workers/chunks/b0b036ad3ad3cd956747.js +1 -0
- package/assets/esri/core/workers/chunks/b2beb6e1fd2ee6503830.js +1 -0
- package/assets/esri/core/workers/chunks/bab1cfd0a901181622af.js +1 -0
- package/assets/esri/core/workers/chunks/bf6dda4a2af14c4b7716.js +1 -0
- package/assets/esri/core/workers/chunks/{ed0297fc61014e848c18.js → c080114a69fa95b88d22.js} +1 -1
- package/assets/esri/core/workers/chunks/{573dc3064e84ca86844d.js → c959e0d1cf7dce0421b9.js} +1 -1
- package/assets/esri/core/workers/chunks/{1fd48459afb58a6cf14f.js → ca2f5faa01d99c21ec14.js} +1 -1
- package/assets/esri/core/workers/chunks/{7aa543a97f055cddea99.js → cc146c57bbdac8029fd8.js} +1 -1
- package/assets/esri/core/workers/chunks/{631c5b514bb73782c570.js → cd7d83d127e085d52584.js} +1 -1
- package/assets/esri/core/workers/chunks/{7e596478507466953e65.js → cef4af64860ebbfc1c47.js} +1 -1
- package/assets/esri/core/workers/chunks/d72488db62fcf39447b6.js +1 -0
- package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +981 -0
- package/assets/esri/core/workers/chunks/e079cb1d53aca15b7df2.js +1 -0
- package/assets/esri/core/workers/chunks/{f7fc4c993536e62f7f3e.js → e97e986120aaadad7d4c.js} +1 -1
- package/assets/esri/core/workers/chunks/f8e7755240a94b499e1f.js +1 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/chunks/CloudsComposition.glsl.js +4 -4
- package/chunks/vxlLayer.js +1 -1
- package/core/has.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/interfaces.d.ts +279 -76
- package/layers/RouteLayer.js +1 -1
- package/layers/VoxelLayer.js +1 -1
- package/layers/VoxelWasmPerScene.js +1 -1
- package/layers/support/RasterWorker.js +1 -1
- package/layers/support/rasterDatasets/BaseRaster.js +1 -1
- package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
- package/libs/vxl/enums.js +1 -1
- package/package.json +1 -1
- package/portal/schemas/buildingSceneLayerItem.js +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/integratedMeshLayerItem.js +1 -1
- package/portal/schemas/pointCloudLayerItem.js +1 -1
- package/portal/schemas/sceneLayerItem.js +1 -1
- package/portal/schemas/webScene.js +1 -1
- package/rest/find.js +1 -1
- package/rest/geometryService/generalize.js +1 -1
- package/rest/geometryService/lengths.js +1 -1
- package/rest/geometryService/offset.js +1 -1
- package/rest/geometryService/relation.js +1 -1
- package/rest/geometryService/trimExtend.js +1 -1
- package/rest/identify.js +1 -1
- package/{tasks → rest}/operations/find.js +0 -0
- package/{tasks → rest}/operations/generalize.js +0 -0
- package/rest/operations/identify.js +5 -0
- package/{tasks → rest}/operations/lengths.js +0 -0
- package/{tasks → rest}/operations/offset.js +0 -0
- package/{tasks → rest}/operations/relation.js +0 -0
- package/{tasks → rest}/operations/trimExtend.js +0 -0
- package/{tasks → rest}/operations/urlUtils.js +0 -0
- package/rest/print.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/rest/query/operations/queryAttachments.js +1 -1
- package/rest/query/operations/queryRelatedRecords.js +1 -1
- package/rest/query/operations/queryTopFeatures.js +1 -1
- package/rest/route/utils.js +1 -1
- package/rest/support/NetworkServiceDescription.js +1 -1
- package/rest/support/RouteInfo.js +1 -1
- package/rest/support/RouteParameters.js +1 -1
- package/rest/support/RouteSettings.js +5 -0
- package/rest/support/Stop.js +1 -1
- package/rest/support/networkEnums.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/Font.js +1 -1
- package/symbols/TextSymbol.js +1 -1
- package/symbols/TextSymbol3DLayer.js +1 -1
- package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
- package/symbols/support/cimSymbolUtils.js +1 -1
- package/symbols/support/textUtils.js +5 -0
- package/views/2d/layers/features/sources/BaseFeatureSource.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/support/engineHelpers.js +1 -1
- package/views/3d/environment/CloudsComposition.glsl.js +1 -1
- package/views/3d/environment/CloudsComposition.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
- package/views/3d/layers/graphics/{Graphics3DFeatureLikeLayerView.js → Graphics3DFeatureProcessor.js} +1 -1
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/{Graphics3DGraphicLikeLayerView.js → GraphicsProcessor.js} +1 -1
- package/views/3d/layers/graphics/IGraphics3DFeatureProcessor.js +4 -0
- package/views/3d/layers/graphics/QueryEngine.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +12 -14
- package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/webgl/ContextState.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/Program.js +1 -1
- package/views/webgl/Renderbuffer.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/Util.js +1 -1
- package/views/webgl/enums.js +1 -1
- package/views/webgl/rasterUtils.js +1 -1
- package/views/webgl/testFloatBufferBlend.js +1 -1
- package/widgets/Feature/FeatureExpression.js +1 -1
- package/widgets/Feature/FeatureMedia/FeatureMediaViewModel.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/support/geolocationUtils.js +1 -1
- package/assets/esri/core/workers/chunks/01ef8de7f76a8c61b464.js +0 -1
- package/assets/esri/core/workers/chunks/05db312a0ca6bd3f014a.js +0 -1
- package/assets/esri/core/workers/chunks/0f254c3e91e8fee55f28.js +0 -1
- package/assets/esri/core/workers/chunks/21a77eed1a4ef5b0ff08.js +0 -1
- package/assets/esri/core/workers/chunks/3564e14010953def6df9.js +0 -1
- package/assets/esri/core/workers/chunks/403c7d64f12f00330d88.js +0 -1
- package/assets/esri/core/workers/chunks/4409d77c9734de4e82a7.js +0 -1
- package/assets/esri/core/workers/chunks/615aa2d3ecafe30c80c0.js +0 -1
- package/assets/esri/core/workers/chunks/618076e6de605873e433.js +0 -1
- package/assets/esri/core/workers/chunks/6c1e92ff4c732dfda756.js +0 -1
- package/assets/esri/core/workers/chunks/722a10c65456844d72b9.js +0 -1
- package/assets/esri/core/workers/chunks/75d53b28afe732c459b2.js +0 -1
- package/assets/esri/core/workers/chunks/8fdd5bca3716816d359b.js +0 -1
- package/assets/esri/core/workers/chunks/a28b53c61bddefb6616e.js +0 -1
- package/assets/esri/core/workers/chunks/b9de831ac379cf1d2969.js +0 -1
- package/assets/esri/core/workers/chunks/c3eca92d02958732e141.js +0 -1
- package/assets/esri/core/workers/chunks/c8f976e53e232e8da9cc.js +0 -981
- package/assets/esri/core/workers/chunks/cb68db7169b9dfd1c3ff.js +0 -1
- package/assets/esri/core/workers/chunks/cc96608b2802fbfe7a08.js +0 -1
- package/assets/esri/core/workers/chunks/cd02fe27eb07681cb366.js +0 -1
- package/assets/esri/core/workers/chunks/dd433c160f7a0c120b82.js +0 -1
- package/assets/esri/core/workers/chunks/ef8b75b92cf549e0507e.js +0 -1
- package/symbols/support/constants.js +0 -5
- package/tasks/operations/identify.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4470],{91460:(e,t,n)=>{function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function i(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const i=o(e,t,(t=>{i.remove(),n.call(e,t)}));return{remove(){i.remove()}}}n.d(t,{vT:()=>r,on:()=>o,IH:()=>i})},95330:(e,t,n)=>{n.d(t,{e4:()=>v,$6:()=>u,Ue:()=>a,zE:()=>c,dD:()=>S,hh:()=>J,vr:()=>C,Ds:()=>A,as:()=>T,WW:()=>I,R8:()=>_,D_:()=>O,Hc:()=>m,y8:()=>w,fu:()=>d,$F:()=>g,d1:()=>R,DB:()=>U,r9:()=>y,k_:()=>f,H9:()=>h,Yn:()=>b,gx:()=>E,Hl:()=>N});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o,i=n(20102),s=n(91460),l=(n(92604),n(70586));function u(e){return Promise.all(e)}function a(e){return new Promise(((t,n)=>{try{e(t,n)}catch(e){Promise.resolve().then((()=>n(e)))}}))}function c(e="Aborted"){return new i.Z("AbortError",e)}function f(e,t="Aborted"){if(m(e))throw c(t)}function p(e){return(0,l.pC)(e)?"aborted"in e?e:e.signal:e}function m(e){const t=p(e);return(0,l.pC)(t)&&t.aborted}function y(e){if(O(e))throw e}function h(e){if(!O(e))throw e}function d(e,t){const n=p(e);if(!(0,l.Wi)(n)){if(!n.aborted)return(0,s.IH)(n,"abort",(()=>t()));t()}}function g(e,t){const n=p(e);if(!(0,l.Wi)(n))return f(n),(0,s.IH)(n,"abort",(()=>t(c())))}function N(e,t){const n=p(t);return(0,l.Wi)(n)?e:new Promise(((n,r)=>{let o=d(t,(()=>r(c())));const i=()=>o=(0,l.hw)(o);e.then(i,i),e.then(n,r)}))}function O(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!O(e))throw e}))}function S(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}function T(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return T(t.map((t=>e[t]))).then((e=>{const n={};return t.forEach(((t,r)=>n[t]=e[r])),n}))}const t=e;return a((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}function I(e){return T(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function R(e){return Promise.reject(e)}function U(e){return Promise.resolve(e)}function v(e,t,n){const r=new AbortController;return d(n,(()=>r.abort())),new Promise(((n,o)=>{let i=setTimeout((()=>{i=0,n(t)}),e);d(r,(()=>{i&&(clearTimeout(i),o(c()))}))}))}function w(e){return e&&"function"==typeof e.then}function E(e){return w(e)?e:Promise.resolve(e)}function A(e,t=-1){let n,r,o,i,s=null;const u=(...a)=>{if(n){r=a,i&&i.reject(c()),i=S();const e=(0,l.j0)(i.promise);if(s){const e=s;s=null,e.abort()}return e}if(o=i||S(),i=null,t>0){const r=new AbortController;n=E(e(...a,r.signal));const o=n;v(t).then((()=>{n===o&&(i?r.abort():s=r)}))}else n=1,n=E(e(...a));const f=()=>{const e=r;r=o=n=s=null,null!=e&&u(...e)},p=n,m=o;return p.then(f,f),p.then(m.resolve,m.reject),(0,l.j0)(m.promise)};return u}function J(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}function C(e,t){let n,r=new AbortController;const o=e(r.signal);let i={promise:o,finished:!1,abort:()=>{r&&(r.abort(),r=null)}};const s=()=>{i&&(i.finished=!0,i=null),(0,l.pC)(n)&&(n.remove(),n=null),r=null};return o.then(s,s),n=d(t,(()=>{(0,l.pC)(i)&&i.abort()})),i}function b(e){return Promise.resolve().then((()=>{f(e)}))}},17452:(e,t,n)=>{n.d(t,{R9:()=>N,qg:()=>A,tD:()=>j,ZN:()=>pe,fl:()=>me,Ie:()=>ae,sJ:()=>X,AH:()=>W,io:()=>V,L:()=>I,TI:()=>T,vt:()=>le,oh:()=>D,P$:()=>F,Ml:()=>ye,ed:()=>x,b7:()=>E,D6:()=>G,tm:()=>q,YP:()=>Y,jc:()=>B,HK:()=>K,$U:()=>ne,oC:()=>ee,kl:()=>M,v_:()=>Z,hF:()=>$,_l:()=>z,PF:()=>k,Fv:()=>H,B7:()=>w,u0:()=>U,Yd:()=>se,Hu:()=>fe,Qj:()=>ue,hO:()=>re,mN:()=>R});var r=n(68773),o=n(20102),i=n(92604),s=n(70586);const l=i.Z.getLogger("esri.core.urlUtils"),u=r.Z.request,a="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,p=/^\s*https:/i,m=/^\s*file:/i,y=/:\d+$/,h=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,d=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class N{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,s.j0)(this.uri.match(d));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,s.j0)(this.authority.match(g)),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 O={};let _=new N(r.Z.applicationUrl);let S=function(){const e=(0,s.j0)(_.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${_.scheme}://${_.host}${null!=_.port?`:${_.port}`:""}${t}`}();const T=()=>_,I=()=>S;function R(e){const t={path:null,query:null},n=new N(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=U(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function U(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let i=n[r];"string"==typeof i&&(i=n[r]=[i]),Array.isArray(i)?i.push(o):n[r]=o}return n}function v(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function w(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",i=t&&t[n];return i?o+encodeURIComponent(i(r)):Array.isArray(r)?r.map((e=>v(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):v(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function E(e=!1){let t,n=u.proxyUrl;if("string"==typeof e){t=ne(e);const r=x(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw l.warn(a),new o.Z("urlutils:proxy-not-set",a);return t&&oe()&&(n=re(n)),R(n)}function A(e){const t=x(e);let n,r;if(t){const e=C(t.proxyUrl);n=e.path,r=e.query?U(e.query):null}if(n){const t=R(e);e=n+"?"+t.path;const o=w({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const J={path:"",query:""};function C(e){const t=e.indexOf("?");return-1!==t?(J.path=e.slice(0,t),J.query=e.slice(t+1)):(J.path=e,J.query=null),J}function b(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=C(e).path),!0)).toLowerCase()}function j(e){const t={proxyUrl:e.proxyUrl,urlPrefix:b(e.urlPrefix)},n=u.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function x(e){const t=u.proxyRules,n=b(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function q(e,t){return e=L(e),t=L(t),ie(e)===ie(t)}function L(e){const t=(e=H(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function D(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=u.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function G(e,t,n=!1){const r=ce(e),o=ce(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function M(e){if("string"==typeof e){if(!Y(e))return!0;e=ce(e)}if(G(e,_))return!0;const t=u.trustedServers||[];for(let n=0;n<t.length;n++){const r=P(t[n]);for(let t=0;t<r.length;t++)if(G(e,r[t]))return!0}return!1}function P(e){return O[e]||(te(e)||ee(e)?O[e]=[new N($(e))]:O[e]=[new N(`http://${e}`),new N(`https://${e}`)]),O[e]}function $(e,t=S,n){return ee(e)?n&&n.preserveProtocolRelative?e:"http"===_.scheme&&_.authority===F(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,s.j0)(Z("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function k(e,t=S,n){if(!Y(e))return e;const r=H(e),o=r.toLowerCase(),i=H(t).toLowerCase().replace(/\/+$/,""),s=n?H(n).toLowerCase().replace(/\/+$/,""):null;if(s&&0!==i.indexOf(s))return e;const l=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let u=l(o,"/",o.indexOf("//")+2),a=-1;for(;o.slice(0,u+1)===i.slice(0,u)+"/"&&(a=u+1,u!==o.length);)u=l(o,"/",u+1);if(-1===a)return e;if(s&&a<s.length)return e;e=r.slice(a);const c=i.slice(a-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function H(e){return function(e){const t=u.httpsDomains;if(!function(e){return f.test(e)||"http"===_.scheme&&ee(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),y.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===_.scheme&&r===_.authority&&!h.test(e)||(oe()&&r===_.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||oe()&&!x(e))&&(e=re(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=C(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=$(e=e.trim()))))}function Z(...e){const t=e.filter(s.pC);if(!t||!t.length)return;const n=[];if(Y(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return m.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function F(e,t=!1){if(B(e)||K(e))return null;let n=e.indexOf("://");if(-1===n&&ee(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ie(e,!0)),e}function Y(e){return ee(e)||te(e)}function B(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return"data:"===e.slice(0,5)}function W(e){const t=X(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const Q=/^data:(.*?)(;base64)?,(.*)$/;function X(e){const t=e.match(Q);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function V(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function ee(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function te(e){return c.test(e)}function ne(e){return p.test(e)||"https"===_.scheme&&ee(e)}function re(e){return ee(e)?`https:${e}`:e.replace(f,"https:")}function oe(){return"https"===_.scheme}function ie(e,t=!1){return ee(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function se(e){let t=0;if(Y(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function le(e,t){if(!e)return"";const n=R(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(null==t||!t.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function ue(e){return e.replace(/\/+$/,"")}function ae(e,t,n){if(!(t&&n&&e&&Y(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),i=e.indexOf(":",r+2),s=Math.min(o<0?e.length:o,i<0?e.length:i);return e.slice(r+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(s)}`}function ce(e){return"string"==typeof e?new N($(e)):(e.scheme||(e.scheme=_.scheme),e)}function fe(e,t){const n=R(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function pe(e,t,n){const r=R(e),o=r.query||{};return o[t]=String(n),`${r.path}?${w(o)}`}function me(e,t){const n=R(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=w(r);return o?`${n.path}?${o}`:n.path}function ye(e){if((0,s.Wi)(e))return null;const t=e.match(he);return t?t[1]:null}const he=/.*?\.([^\/]*)$/},66577:(e,t,n)=>{n.d(t,{qM:()=>c});var r=n(75215),o=n(6570),i=n(9361),s=n(65091),l=n(13473),u=n(17332),a=n(58901);n(82971),n(86973),n(33955);const c={base:i.Z,key:"type",typeMap:{extent:o.Z,multipoint:s.Z,point:l.Z,polyline:a.Z,polygon:u.Z}};(0,r.N7)(c)},33955:(e,t,n)=>{n.d(t,{im:()=>h,q9:()=>N,Ji:()=>d,YX:()=>c,aW:()=>f,wp:()=>p,oU:()=>y,l9:()=>m});var r=n(70586),o=n(6570),i=n(9361),s=n(65091),l=n(13473),u=n(17332),a=n(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function f(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function m(e){return void 0!==e.paths}function y(e){return void 0!==e.rings}function h(e){return(0,r.Wi)(e)?null:e instanceof i.Z?e:p(e)?l.Z.fromJSON(e):m(e)?a.Z.fromJSON(e):y(e)?u.Z.fromJSON(e):f(e)?s.Z.fromJSON(e):c(e)?o.Z.fromJSON(e):null}function d(e){return e?p(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":y(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":f(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:l.Z,esriGeometryPolyline:a.Z,esriGeometryPolygon:u.Z,esriGeometryEnvelope:o.Z,esriGeometryMultipoint:s.Z};function N(e){return e&&g[e]||null}},91040:(e,t,n)=>{n.d(t,{yZ:()=>o});var r=n(67900);function o(e,t){const n=t||e.extent,o=e.width,i=(0,r.c9)(n&&n.spatialReference);return n&&o?n.width/o*i*r.hd*96:0}},86973:(e,t,n)=>{n.d(t,{Mk:()=>o,P$:()=>i});var r=n(35454);const o=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},11282:(e,t,n)=>{n.d(t,{lA:()=>o,cv:()=>s,en:()=>i});var r=n(17452);function o(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,r.mN)(e):e}function s(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){r[o]=[];for(let e=0;e<i.length;e++)r[o][e]=s(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n&&n[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?i:JSON.stringify(i);else r[o]=i}return r}n(91040)},29554:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Y});var r=n(43697),o=n(5600),i=(n(67676),n(80442),n(75215)),s=n(52011),l=n(3172),u=n(11282);n(66577);var a=n(33955);function c(e){return{geometryType:(0,a.Ji)(e[0]),geometries:e.map((e=>e.toJSON()))}}function f(e,t,n){const r=(0,a.q9)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=n,t}))}var p=n(17332);async function m(e,t,n,r){const o=t[0].spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:JSON.stringify(o.toJSON()),polygons:JSON.stringify(c(t).geometries),polylines:JSON.stringify(c(n).geometries)},a=(0,u.lA)(s,r);return(0,l.default)(i.path+"/autoComplete",a).then((({data:e})=>(e.geometries||[]).map((({rings:e})=>new p.Z({spatialReference:o,rings:e})))))}async function y(e,t,n){const r=t[0].spatialReference,o=(0,u.en)(e),i={...o.query,f:"json",sr:JSON.stringify(r.toJSON()),geometries:JSON.stringify(c(t))},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/convexHull",s).then((({data:e})=>(0,a.im)(e.geometry).set({spatialReference:r})))}async function h(e,t,n,r){const o=t[0].spatialReference,i=(0,u.en)(e);let s={query:{...i.query,f:"json",sr:JSON.stringify(o.toJSON()),geometries:JSON.stringify(c(t)),geometry:JSON.stringify({geometryType:(0,a.Ji)(n),geometry:n.toJSON()})}};return r&&(s={...r,...s}),(0,l.default)(i.path+"/difference",s).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:o})))))}var d=n(35454);const g=new d.Xn({MGRS:"mgrs",USNG:"usng",UTM:"utm",GeoRef:"geo-ref",GARS:"gars",DMS:"dms",DDM:"ddm",DD:"dd"});var N=n(96674);let O=class extends N.wq{constructor(e){super(e),this.deviationUnit=null,this.geometries=null,this.maxDeviation=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],O.prototype,"deviationUnit",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries=e.map((e=>e.toJSON()))}}}})],O.prototype,"geometries",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],O.prototype,"maxDeviation",void 0),O=(0,r._)([(0,s.j)("esri.rest.support.GeneralizeParameters")],O),O.from=(0,i.se)(O);const _=O,S=new d.Xn({109006:"centimeters",9102:"decimal-degrees",109005:"decimeters",9002:"feet",109009:"inches",9036:"kilometers",9001:"meters",9035:"miles",109007:"millimeters",109012:"nautical-miles",9096:"yards"});async function T(e,t,n,r){const o=t[0].spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:JSON.stringify(o.toJSON()),geometries:JSON.stringify(c(t)),geometry:JSON.stringify({geometryType:(0,a.Ji)(n),geometry:n.toJSON()})},f=(0,u.lA)(s,r);return(0,l.default)(i.path+"/intersect",f).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:o})))))}var I=n(58901);let R=class extends N.wq{constructor(e){super(e),this.calculationType=null,this.geodesic=null,this.lengthUnit=null,this.polylines=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],R.prototype,"calculationType",void 0),(0,r._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],R.prototype,"geodesic",void 0),(0,r._)([(0,o.Cb)({json:{write:!0}})],R.prototype,"lengthUnit",void 0),(0,r._)([(0,o.Cb)({type:[I.Z],json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.polylines=e.map((e=>e.toJSON()))}}}})],R.prototype,"polylines",void 0),R=(0,r._)([(0,s.j)("esri.rest.support.LengthsParameters")],R),R.from=(0,i.se)(R);const U=R,v=new d.Xn({preserveShape:"preserve-shape"});function w(e){const{polylines:t,lengthUnit:n,geodesic:r,calculationType:o}=e.toJSON(),i={};i.polylines=JSON.stringify(t);const s=e.polylines[0].spatialReference;return i.sr=s.wkid?s.wkid:JSON.stringify(s.toJSON()),n&&(i.lengthUnit=n),r&&(i.geodesic=r),o&&(i.calculationType=v.toJSON(o)),i}let E=class extends N.wq{constructor(e){super(e),this.bevelRatio=null,this.geometries=null,this.offsetDistance=null,this.offsetHow=null,this.offsetUnit=null}};(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],E.prototype,"bevelRatio",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries=e.map((e=>e.toJSON()))}}}})],E.prototype,"geometries",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],E.prototype,"offsetDistance",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],E.prototype,"offsetHow",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],E.prototype,"offsetUnit",void 0),E=(0,r._)([(0,s.j)("esri.rest.support.OffsetParameters")],E),E.from=(0,i.se)(E);const A=E,J=new d.Xn({esriGeometryOffsetBevelled:"bevelled",esriGeometryOffsetMitered:"mitered",esriGeometryOffsetRounded:"rounded"}),C=new d.Xn({9001:"meters",9002:"feet",9036:"kilometers",9093:"miles",109012:"nautical-miles",109001:"yards"});let b=class extends N.wq{constructor(e){super(e),this.geometries=null,this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((function(e){return e.toJSON()})),t=this.geometries[0],n={};return n.outSR=this.outSpatialReference.wkid||JSON.stringify(this.outSpatialReference.toJSON()),n.inSR=t.spatialReference.wkid||JSON.stringify(t.spatialReference.toJSON()),n.geometries=JSON.stringify({geometryType:(0,a.Ji)(t),geometries:e}),this.transformation&&(n.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(n.transformForward=this.transformForward),n}};(0,r._)([(0,o.Cb)()],b.prototype,"geometries",void 0),(0,r._)([(0,o.Cb)({json:{read:{source:"outSR"}}})],b.prototype,"outSpatialReference",void 0),(0,r._)([(0,o.Cb)()],b.prototype,"transformation",void 0),(0,r._)([(0,o.Cb)()],b.prototype,"transformForward",void 0),b=(0,r._)([(0,s.j)("esri.rest.support.ProjectParameters")],b);const j=b,x=(0,i.se)(j);let q=class extends N.wq{constructor(e){super(e),this.geometries1=null,this.geometries2=null,this.relation=null,this.relationParameter=null}};(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries1=e.map((e=>e.toJSON()))}}}})],q.prototype,"geometries1",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries2=e.map((e=>e.toJSON()))}}}})],q.prototype,"geometries2",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],q.prototype,"relation",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],q.prototype,"relationParameter",void 0),q=(0,r._)([(0,s.j)("esri.rest.support.RelationParameters")],q),q.from=(0,i.se)(q);const L=q,D=new d.Xn({esriGeometryRelationCross:"cross",esriGeometryRelationDisjoint:"disjoint",esriGeometryRelationIn:"in",esriGeometryRelationInteriorIntersection:"interior-intersection",esriGeometryRelationIntersection:"intersection",esriGeometryRelationLineCoincidence:"line-coincidence",esriGeometryRelationLineTouch:"line-touch",esriGeometryRelationOverlap:"overlap",esriGeometryRelationPointTouch:"point-touch",esriGeometryRelationTouch:"touch",esriGeometryRelationWithin:"within",esriGeometryRelationRelation:"relation"});var G=n(17452);async function M(e,t,n){const r="string"==typeof e?(0,G.mN)(e):e,o=t[0].spatialReference,i=(0,a.Ji)(t[0]),s={...n,query:{...r.query,f:"json",sr:o.wkid?o.wkid:JSON.stringify(o),geometries:JSON.stringify(c(t))}},{data:u}=await(0,l.default)(r.path+"/simplify",s);return f(u.geometries,i,o)}let P=class extends N.wq{constructor(e){super(e),this.extendHow="default-curve-extension",this.polylines=null,this.trimExtendTo=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],P.prototype,"extendHow",void 0),(0,r._)([(0,o.Cb)({type:[I.Z],json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.polylines=e.map((e=>e.toJSON()))}}}})],P.prototype,"polylines",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?(0,a.im)(e):null},write:{writer:(e,t)=>{t.trimExtendTo=e.toJSON()}}}})],P.prototype,"trimExtendTo",void 0),P=(0,r._)([(0,s.j)("esri.rest.support.TrimExtendParameters")],P),P.from=(0,i.se)(P);const $=P,k=new d.Xn({0:"default-curve-extension",1:"relocate-ends",2:"keep-end-attributes",4:"no-end-attributes",8:"no-extend-at-from",16:"no-extend-at-to"});async function H(e,t,n){const r=t[0].spatialReference,o=(0,u.en)(e),i={...o.query,f:"json",sr:JSON.stringify(r.toJSON()),geometries:JSON.stringify(c(t))},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/union",s).then((({data:e})=>(0,a.im)(e.geometry).set({spatialReference:r})))}var Z=n(59633);let F=class extends Z.Z{constructor(e){super(e),this.url=null}areasAndLengths(e,t){return async function(e,t,n){const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=(0,u.lA)(o,n);return(0,l.default)(r.path+"/areasAndLengths",i).then((e=>e.data))}(this.url,e,t)}autoComplete(e,t,n){return m(this.url,e,t,n)}buffer(e,t){return async function(e,t,n){const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=t.outSpatialReference||t.geometries[0].spatialReference,s=(0,u.lA)(o,n);return(0,l.default)(r.path+"/buffer",s).then((e=>(e.data.geometries||[]).map((({rings:e})=>new p.Z({spatialReference:i,rings:e})))))}(this.url,e,t)}convexHull(e,t){return y(this.url,e,t)}cut(e,t,n){return async function(e,t,n,r){const o=(0,u.en)(e),i=t[0].spatialReference,s={...r,query:{...o.query,f:"json",sr:JSON.stringify(i),target:JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},c=await(0,l.default)(o.path+"/cut",s),{cutIndexes:f,geometries:p=[]}=c.data;return{cutIndexes:f,geometries:p.map((e=>{const t=(0,a.im)(e);return t.spatialReference=i,t}))}}(this.url,e,t,n)}densify(e,t){return async function(e,t,n){const r=t.geometries[0].spatialReference,o=(0,u.en)(e),i={...o.query,f:"json",...t.toJSON()},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/densify",s).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:r})))))}(this.url,e,t)}difference(e,t,n){return h(this.url,e,t,n)}distance(e,t){return async function(e,t,n){const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=(0,u.lA)(o,n);return(0,l.default)(r.path+"/distance",i).then((({data:e})=>e&&e.distance))}(this.url,e,t)}fromGeoCoordinateString(e,t){return async function(e,t,n){const r={};null!=t.sr&&"object"==typeof t.sr?r.sr=t.sr.wkid||JSON.stringify(t.sr):r.sr=t.sr,r.strings=JSON.stringify(t.strings);const o=t.conversionType||"mgrs";r.conversionType=g.toJSON(o),r.conversionMode=t.conversionMode;const i=(0,u.en)(e),s={...i.query,f:"json",...r},a=(0,u.lA)(s,n);return(0,l.default)(i.path+"/fromGeoCoordinateString",a).then((({data:e})=>e.coordinates))}(this.url,e,t)}generalize(e,t){return async function(e,t,n){const r=(t=_.from(t)).toJSON(),o=function(e){const{geometries:t,deviationUnit:n,maxDeviation:r}=e.toJSON(),o={maxDeviation:r};return t&&t.length&&(o.geometries=JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t}),o.sr=JSON.stringify(t[0].spatialReference)),S.write(n,o,"deviationUnit"),o}(t),i=(0,u.en)(e),s={...i.query,f:"json",...o},c=r.geometries[0].spatialReference,f=(0,u.lA)(s,n);return(0,l.default)(i.path+"/generalize",f).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:c})))))}(this.url,e,t)}intersect(e,t,n){return T(this.url,e,t,n)}labelPoints(e,t){return function(e,t,n){const r=t.map((e=>e.toJSON())),o=t[0].spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:o.wkid?o.wkid:JSON.stringify(o.toJSON()),polygons:JSON.stringify(r)},c=(0,u.lA)(s,n);return(0,l.default)(i.path+"/labelPoints",c).then((({data:e})=>(e.labelPoints||[]).map((e=>(0,a.im)(e).set({spatialReference:o})))))}(this.url,e,t)}lengths(e,t){return async function(e,t,n){const r=w(t=U.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/lengths",s).then((({data:e})=>e))}(this.url,e,t)}offset(e,t){return async function(e,t,n){const r=function(e){const{geometries:t,bevelRatio:n,offsetDistance:r,offsetHow:o,offsetUnit:i}=e.toJSON(),s={bevelRatio:n,offsetDistance:r};return t&&t.length&&(s.geometries=JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t}),s.sr=JSON.stringify(t[0].spatialReference)),o&&(s.offsetHow=J.toJSON(o)),i&&(s.offsetUnit=C.toJSON(i)),s}(t=A.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=t.geometries[0].spatialReference,c=(0,u.lA)(i,n);return(0,l.default)(o.path+"/offset",c).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:s})))))}(this.url,e,t)}project(e,t){return async function(e,t,n){t=x(t);const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=t.outSpatialReference,s=(0,a.Ji)(t.geometries[0]),c=(0,u.lA)(o,n);return(0,l.default)(r.path+"/project",c).then((({data:{geometries:e}})=>f(e,s,i)))}(this.url,e,t)}relation(e,t){return async function(e,t,n){const r=function(e){const{geometries1:t,geometries2:n,relation:r,relationParameter:o}=e.toJSON(),i={};if(t&&t.length){i.geometries1=JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t});const e=t[0].spatialReference;i.sr=e.wkid?e.wkid:JSON.stringify(e)}return n&&n.length>0&&(i.geometries2=JSON.stringify({geometryType:(0,a.Ji)(n[0]),geometries:n})),r&&(i.relation=D.toJSON(r)),o&&(i.relationParam=o),i}(t=L.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/relation",s).then((({data:e})=>e.relations))}(this.url,e,t)}reshape(e,t,n){return async function(e,t,n,r){const o=t.spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:JSON.stringify(o.toJSON()),target:JSON.stringify({geometryType:(0,a.Ji)(t),geometry:t.toJSON()}),reshaper:JSON.stringify(n.toJSON())},c=(0,u.lA)(s,r);return(0,l.default)(i.path+"/reshape",c).then((({data:e})=>(0,a.im)(e.geometry).set({spatialReference:o})))}(this.url,e,t,n)}simplify(e,t){return M(this.url,e,t)}toGeoCoordinateString(e,t){return async function(e,t,n){const r={};null!=t.sr&&"object"==typeof t.sr?r.sr=t.sr.wkid||JSON.stringify(t.sr):r.sr=t.sr,r.coordinates=JSON.stringify(t.coordinates);const o=t.conversionType||"mgrs";r.conversionType=g.toJSON(o),r.conversionMode=t.conversionMode,r.numOfDigits=t.numOfDigits,r.rounding=t.rounding,r.addSpaces=t.addSpaces;const i=(0,u.en)(e),s={...i.query,f:"json",...r},a=(0,u.lA)(s,n);return(0,l.default)(i.path+"/toGeoCoordinateString",a).then((({data:e})=>e.strings))}(this.url,e,t)}trimExtend(e,t){return async function(e,t,n){const r=function(e){const{extendHow:t,polylines:n,trimExtendTo:r}=e.toJSON(),o={};return o.extendHow=k.toJSON(t),n&&n.length&&(o.polylines=JSON.stringify(n),o.sr=JSON.stringify(n[0].spatialReference)),r&&(o.trimExtendTo=JSON.stringify(r)),o}(t=$.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=t.sr,a=(0,u.lA)(i,n);return(0,l.default)(o.path+"/trimExtend",a).then((({data:e})=>(e.geometries||[]).map((({paths:e})=>new I.Z({spatialReference:s,paths:e})))))}(this.url,e,t)}union(e,t){return H(this.url,e,t)}};F.UNIT_METER=9001,F.UNIT_GERMAN_METER=9031,F.UNIT_FOOT=9002,F.UNIT_SURVEY_FOOT=9003,F.UNIT_CLARKE_FOOT=9005,F.UNIT_FATHOM=9014,F.UNIT_NAUTICAL_MILE=9030,F.UNIT_SURVEY_CHAIN=9033,F.UNIT_SURVEY_LINK=9034,F.UNIT_SURVEY_MILE=9035,F.UNIT_KILOMETER=9036,F.UNIT_CLARKE_YARD=9037,F.UNIT_CLARKE_CHAIN=9038,F.UNIT_CLARKE_LINK=9039,F.UNIT_SEARS_YARD=9040,F.UNIT_SEARS_FOOT=9041,F.UNIT_SEARS_CHAIN=9042,F.UNIT_SEARS_LINK=9043,F.UNIT_BENOIT_1895A_YARD=9050,F.UNIT_BENOIT_1895A_FOOT=9051,F.UNIT_BENOIT_1895A_CHAIN=9052,F.UNIT_BENOIT_1895A_LINK=9053,F.UNIT_BENOIT_1895B_YARD=9060,F.UNIT_BENOIT_1895B_FOOT=9061,F.UNIT_BENOIT_1895B_CHAIN=9062,F.UNIT_BENOIT_1895B_LINK=9063,F.UNIT_INDIAN_FOOT=9080,F.UNIT_INDIAN_1937_FOOT=9081,F.UNIT_INDIAN_1962_FOOT=9082,F.UNIT_INDIAN_1975_FOOT=9083,F.UNIT_INDIAN_YARD=9084,F.UNIT_INDIAN_1937_YARD=9085,F.UNIT_INDIAN_1962_YARD=9086,F.UNIT_INDIAN_1975_YARD=9087,F.UNIT_FOOT_1865=9070,F.UNIT_RADIAN=9101,F.UNIT_DEGREE=9102,F.UNIT_ARCMINUTE=9103,F.UNIT_ARCSECOND=9104,F.UNIT_GRAD=9105,F.UNIT_GON=9106,F.UNIT_MICRORADIAN=9109,F.UNIT_ARCMINUTE_CENTESIMAL=9112,F.UNIT_ARCSECOND_CENTESIMAL=9113,F.UNIT_MIL6400=9114,F.UNIT_BRITISH_1936_FOOT=9095,F.UNIT_GOLDCOAST_FOOT=9094,F.UNIT_INTERNATIONAL_CHAIN=109003,F.UNIT_INTERNATIONAL_LINK=109004,F.UNIT_INTERNATIONAL_YARD=109001,F.UNIT_STATUTE_MILE=9093,F.UNIT_SURVEY_YARD=109002,F.UNIT_50KILOMETER_LENGTH=109030,F.UNIT_150KILOMETER_LENGTH=109031,F.UNIT_DECIMETER=109005,F.UNIT_CENTIMETER=109006,F.UNIT_MILLIMETER=109007,F.UNIT_INTERNATIONAL_INCH=109008,F.UNIT_US_SURVEY_INCH=109009,F.UNIT_INTERNATIONAL_ROD=109010,F.UNIT_US_SURVEY_ROD=109011,F.UNIT_US_NAUTICAL_MILE=109012,F.UNIT_UK_NAUTICAL_MILE=109013,F.UNIT_SQUARE_INCHES="esriSquareInches",F.UNIT_SQUARE_FEET="esriSquareFeet",F.UNIT_SQUARE_YARDS="esriSquareYards",F.UNIT_ACRES="esriAcres",F.UNIT_SQUARE_MILES="esriSquareMiles",F.UNIT_SQUARE_MILLIMETERS="esriSquareMillimeters",F.UNIT_SQUARE_CENTIMETERS="esriSquareCentimeters",F.UNIT_SQUARE_DECIMETERS="esriSquareDecimeters",F.UNIT_SQUARE_METERS="esriSquareMeters",F.UNIT_ARES="esriAres",F.UNIT_HECTARES="esriHectares",F.UNIT_SQUARE_KILOMETERS="esriSquareKilometers",(0,r._)([(0,o.Cb)()],F.prototype,"url",void 0),F=(0,r._)([(0,s.j)("esri.tasks.GeometryService")],F);const Y=F},59633:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(43697),o=n(15923),i=n(17452),s=n(5600),l=(n(67676),n(80442),n(75215),n(52011));let u=class extends o.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,i.mN)(e):null}_encode(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){r[o]=[];for(let e=0;e<i.length;e++)r[o][e]=this._encode(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n&&n[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?i:JSON.stringify(i);else r[o]=i}return r}};(0,r._)([(0,s.Cb)({readOnly:!0})],u.prototype,"parsedUrl",null),(0,r._)([(0,s.Cb)()],u.prototype,"requestOptions",void 0),(0,r._)([(0,s.Cb)({type:String})],u.prototype,"url",void 0),u=(0,r._)([(0,l.j)("esri.tasks.Task")],u);const a=u}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9164],{91460:(e,t,n)=>{function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function i(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const i=o(e,t,(t=>{i.remove(),n.call(e,t)}));return{remove(){i.remove()}}}n.d(t,{vT:()=>r,on:()=>o,IH:()=>i})},95330:(e,t,n)=>{n.d(t,{e4:()=>v,$6:()=>u,Ue:()=>a,zE:()=>c,dD:()=>S,hh:()=>J,vr:()=>C,Ds:()=>A,as:()=>T,WW:()=>I,R8:()=>_,D_:()=>O,Hc:()=>m,y8:()=>w,fu:()=>d,$F:()=>g,d1:()=>R,DB:()=>U,r9:()=>y,k_:()=>f,H9:()=>h,Yn:()=>b,gx:()=>E,Hl:()=>N});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o,i=n(20102),s=n(91460),l=(n(92604),n(70586));function u(e){return Promise.all(e)}function a(e){return new Promise(((t,n)=>{try{e(t,n)}catch(e){Promise.resolve().then((()=>n(e)))}}))}function c(e="Aborted"){return new i.Z("AbortError",e)}function f(e,t="Aborted"){if(m(e))throw c(t)}function p(e){return(0,l.pC)(e)?"aborted"in e?e:e.signal:e}function m(e){const t=p(e);return(0,l.pC)(t)&&t.aborted}function y(e){if(O(e))throw e}function h(e){if(!O(e))throw e}function d(e,t){const n=p(e);if(!(0,l.Wi)(n)){if(!n.aborted)return(0,s.IH)(n,"abort",(()=>t()));t()}}function g(e,t){const n=p(e);if(!(0,l.Wi)(n))return f(n),(0,s.IH)(n,"abort",(()=>t(c())))}function N(e,t){const n=p(t);return(0,l.Wi)(n)?e:new Promise(((n,r)=>{let o=d(t,(()=>r(c())));const i=()=>o=(0,l.hw)(o);e.then(i,i),e.then(n,r)}))}function O(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!O(e))throw e}))}function S(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}function T(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return T(t.map((t=>e[t]))).then((e=>{const n={};return t.forEach(((t,r)=>n[t]=e[r])),n}))}const t=e;return a((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}function I(e){return T(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function R(e){return Promise.reject(e)}function U(e){return Promise.resolve(e)}function v(e,t,n){const r=new AbortController;return d(n,(()=>r.abort())),new Promise(((n,o)=>{let i=setTimeout((()=>{i=0,n(t)}),e);d(r,(()=>{i&&(clearTimeout(i),o(c()))}))}))}function w(e){return e&&"function"==typeof e.then}function E(e){return w(e)?e:Promise.resolve(e)}function A(e,t=-1){let n,r,o,i,s=null;const u=(...a)=>{if(n){r=a,i&&i.reject(c()),i=S();const e=(0,l.j0)(i.promise);if(s){const e=s;s=null,e.abort()}return e}if(o=i||S(),i=null,t>0){const r=new AbortController;n=E(e(...a,r.signal));const o=n;v(t).then((()=>{n===o&&(i?r.abort():s=r)}))}else n=1,n=E(e(...a));const f=()=>{const e=r;r=o=n=s=null,null!=e&&u(...e)},p=n,m=o;return p.then(f,f),p.then(m.resolve,m.reject),(0,l.j0)(m.promise)};return u}function J(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}function C(e,t){let n,r=new AbortController;const o=e(r.signal);let i={promise:o,finished:!1,abort:()=>{r&&(r.abort(),r=null)}};const s=()=>{i&&(i.finished=!0,i=null),(0,l.pC)(n)&&(n.remove(),n=null),r=null};return o.then(s,s),n=d(t,(()=>{(0,l.pC)(i)&&i.abort()})),i}function b(e){return Promise.resolve().then((()=>{f(e)}))}},17452:(e,t,n)=>{n.d(t,{R9:()=>N,qg:()=>A,tD:()=>j,ZN:()=>pe,fl:()=>me,Ie:()=>ae,sJ:()=>X,AH:()=>W,io:()=>V,L:()=>I,TI:()=>T,vt:()=>le,oh:()=>D,P$:()=>F,Ml:()=>ye,ed:()=>x,b7:()=>E,D6:()=>G,tm:()=>q,YP:()=>Y,jc:()=>B,HK:()=>K,$U:()=>ne,oC:()=>ee,kl:()=>M,v_:()=>Z,hF:()=>$,_l:()=>z,PF:()=>k,Fv:()=>H,B7:()=>w,u0:()=>U,Yd:()=>se,Hu:()=>fe,Qj:()=>ue,hO:()=>re,mN:()=>R});var r=n(68773),o=n(20102),i=n(92604),s=n(70586);const l=i.Z.getLogger("esri.core.urlUtils"),u=r.Z.request,a="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,p=/^\s*https:/i,m=/^\s*file:/i,y=/:\d+$/,h=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,d=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class N{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,s.j0)(this.uri.match(d));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,s.j0)(this.authority.match(g)),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 O={};let _=new N(r.Z.applicationUrl);let S=function(){const e=(0,s.j0)(_.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${_.scheme}://${_.host}${null!=_.port?`:${_.port}`:""}${t}`}();const T=()=>_,I=()=>S;function R(e){const t={path:null,query:null},n=new N(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=U(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function U(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let i=n[r];"string"==typeof i&&(i=n[r]=[i]),Array.isArray(i)?i.push(o):n[r]=o}return n}function v(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function w(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",i=t&&t[n];return i?o+encodeURIComponent(i(r)):Array.isArray(r)?r.map((e=>v(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):v(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function E(e=!1){let t,n=u.proxyUrl;if("string"==typeof e){t=ne(e);const r=x(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw l.warn(a),new o.Z("urlutils:proxy-not-set",a);return t&&oe()&&(n=re(n)),R(n)}function A(e){const t=x(e);let n,r;if(t){const e=C(t.proxyUrl);n=e.path,r=e.query?U(e.query):null}if(n){const t=R(e);e=n+"?"+t.path;const o=w({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const J={path:"",query:""};function C(e){const t=e.indexOf("?");return-1!==t?(J.path=e.slice(0,t),J.query=e.slice(t+1)):(J.path=e,J.query=null),J}function b(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=C(e).path),!0)).toLowerCase()}function j(e){const t={proxyUrl:e.proxyUrl,urlPrefix:b(e.urlPrefix)},n=u.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function x(e){const t=u.proxyRules,n=b(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function q(e,t){return e=L(e),t=L(t),ie(e)===ie(t)}function L(e){const t=(e=H(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function D(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=u.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function G(e,t,n=!1){const r=ce(e),o=ce(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function M(e){if("string"==typeof e){if(!Y(e))return!0;e=ce(e)}if(G(e,_))return!0;const t=u.trustedServers||[];for(let n=0;n<t.length;n++){const r=P(t[n]);for(let t=0;t<r.length;t++)if(G(e,r[t]))return!0}return!1}function P(e){return O[e]||(te(e)||ee(e)?O[e]=[new N($(e))]:O[e]=[new N(`http://${e}`),new N(`https://${e}`)]),O[e]}function $(e,t=S,n){return ee(e)?n&&n.preserveProtocolRelative?e:"http"===_.scheme&&_.authority===F(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,s.j0)(Z("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function k(e,t=S,n){if(!Y(e))return e;const r=H(e),o=r.toLowerCase(),i=H(t).toLowerCase().replace(/\/+$/,""),s=n?H(n).toLowerCase().replace(/\/+$/,""):null;if(s&&0!==i.indexOf(s))return e;const l=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let u=l(o,"/",o.indexOf("//")+2),a=-1;for(;o.slice(0,u+1)===i.slice(0,u)+"/"&&(a=u+1,u!==o.length);)u=l(o,"/",u+1);if(-1===a)return e;if(s&&a<s.length)return e;e=r.slice(a);const c=i.slice(a-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function H(e){return function(e){const t=u.httpsDomains;if(!function(e){return f.test(e)||"http"===_.scheme&&ee(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),y.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===_.scheme&&r===_.authority&&!h.test(e)||(oe()&&r===_.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||oe()&&!x(e))&&(e=re(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=C(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=$(e=e.trim()))))}function Z(...e){const t=e.filter(s.pC);if(!t||!t.length)return;const n=[];if(Y(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return m.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function F(e,t=!1){if(B(e)||K(e))return null;let n=e.indexOf("://");if(-1===n&&ee(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ie(e,!0)),e}function Y(e){return ee(e)||te(e)}function B(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return"data:"===e.slice(0,5)}function W(e){const t=X(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const Q=/^data:(.*?)(;base64)?,(.*)$/;function X(e){const t=e.match(Q);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function V(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function ee(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function te(e){return c.test(e)}function ne(e){return p.test(e)||"https"===_.scheme&&ee(e)}function re(e){return ee(e)?`https:${e}`:e.replace(f,"https:")}function oe(){return"https"===_.scheme}function ie(e,t=!1){return ee(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function se(e){let t=0;if(Y(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function le(e,t){if(!e)return"";const n=R(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(null==t||!t.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function ue(e){return e.replace(/\/+$/,"")}function ae(e,t,n){if(!(t&&n&&e&&Y(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),i=e.indexOf(":",r+2),s=Math.min(o<0?e.length:o,i<0?e.length:i);return e.slice(r+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(s)}`}function ce(e){return"string"==typeof e?new N($(e)):(e.scheme||(e.scheme=_.scheme),e)}function fe(e,t){const n=R(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function pe(e,t,n){const r=R(e),o=r.query||{};return o[t]=String(n),`${r.path}?${w(o)}`}function me(e,t){const n=R(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=w(r);return o?`${n.path}?${o}`:n.path}function ye(e){if((0,s.Wi)(e))return null;const t=e.match(he);return t?t[1]:null}const he=/.*?\.([^\/]*)$/},66577:(e,t,n)=>{n.d(t,{qM:()=>c});var r=n(75215),o=n(6570),i=n(9361),s=n(65091),l=n(13473),u=n(17332),a=n(58901);n(82971),n(86973),n(33955);const c={base:i.Z,key:"type",typeMap:{extent:o.Z,multipoint:s.Z,point:l.Z,polyline:a.Z,polygon:u.Z}};(0,r.N7)(c)},33955:(e,t,n)=>{n.d(t,{im:()=>h,q9:()=>N,Ji:()=>d,YX:()=>c,aW:()=>f,wp:()=>p,oU:()=>y,l9:()=>m});var r=n(70586),o=n(6570),i=n(9361),s=n(65091),l=n(13473),u=n(17332),a=n(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function f(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function m(e){return void 0!==e.paths}function y(e){return void 0!==e.rings}function h(e){return(0,r.Wi)(e)?null:e instanceof i.Z?e:p(e)?l.Z.fromJSON(e):m(e)?a.Z.fromJSON(e):y(e)?u.Z.fromJSON(e):f(e)?s.Z.fromJSON(e):c(e)?o.Z.fromJSON(e):null}function d(e){return e?p(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":y(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":f(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:l.Z,esriGeometryPolyline:a.Z,esriGeometryPolygon:u.Z,esriGeometryEnvelope:o.Z,esriGeometryMultipoint:s.Z};function N(e){return e&&g[e]||null}},91040:(e,t,n)=>{n.d(t,{yZ:()=>o});var r=n(67900);function o(e,t){const n=t||e.extent,o=e.width,i=(0,r.c9)(n&&n.spatialReference);return n&&o?n.width/o*i*r.hd*96:0}},86973:(e,t,n)=>{n.d(t,{Mk:()=>o,P$:()=>i});var r=n(35454);const o=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},11282:(e,t,n)=>{n.d(t,{lA:()=>o,cv:()=>s,en:()=>i});var r=n(17452);function o(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,r.mN)(e):e}function s(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){r[o]=[];for(let e=0;e<i.length;e++)r[o][e]=s(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n&&n[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?i:JSON.stringify(i);else r[o]=i}return r}n(91040)},85313:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Y});var r=n(43697),o=n(5600),i=(n(67676),n(80442),n(75215)),s=n(52011),l=n(3172),u=n(11282);n(66577);var a=n(33955);function c(e){return{geometryType:(0,a.Ji)(e[0]),geometries:e.map((e=>e.toJSON()))}}function f(e,t,n){const r=(0,a.q9)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=n,t}))}var p=n(17332);async function m(e,t,n,r){const o=t[0].spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:JSON.stringify(o.toJSON()),polygons:JSON.stringify(c(t).geometries),polylines:JSON.stringify(c(n).geometries)},a=(0,u.lA)(s,r);return(0,l.default)(i.path+"/autoComplete",a).then((({data:e})=>(e.geometries||[]).map((({rings:e})=>new p.Z({spatialReference:o,rings:e})))))}async function y(e,t,n){const r=t[0].spatialReference,o=(0,u.en)(e),i={...o.query,f:"json",sr:JSON.stringify(r.toJSON()),geometries:JSON.stringify(c(t))},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/convexHull",s).then((({data:e})=>(0,a.im)(e.geometry).set({spatialReference:r})))}async function h(e,t,n,r){const o=t[0].spatialReference,i=(0,u.en)(e);let s={query:{...i.query,f:"json",sr:JSON.stringify(o.toJSON()),geometries:JSON.stringify(c(t)),geometry:JSON.stringify({geometryType:(0,a.Ji)(n),geometry:n.toJSON()})}};return r&&(s={...r,...s}),(0,l.default)(i.path+"/difference",s).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:o})))))}var d=n(35454);const g=new d.Xn({MGRS:"mgrs",USNG:"usng",UTM:"utm",GeoRef:"geo-ref",GARS:"gars",DMS:"dms",DDM:"ddm",DD:"dd"}),N=new d.Xn({109006:"centimeters",9102:"decimal-degrees",109005:"decimeters",9002:"feet",109009:"inches",9036:"kilometers",9001:"meters",9035:"miles",109007:"millimeters",109012:"nautical-miles",9096:"yards"});var O=n(96674);let _=class extends O.wq{constructor(e){super(e),this.deviationUnit=null,this.geometries=null,this.maxDeviation=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],_.prototype,"deviationUnit",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries=e.map((e=>e.toJSON()))}}}})],_.prototype,"geometries",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],_.prototype,"maxDeviation",void 0),_=(0,r._)([(0,s.j)("esri.rest.support.GeneralizeParameters")],_),_.from=(0,i.se)(_);const S=_;async function T(e,t,n,r){const o=t[0].spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:JSON.stringify(o.toJSON()),geometries:JSON.stringify(c(t)),geometry:JSON.stringify({geometryType:(0,a.Ji)(n),geometry:n.toJSON()})},f=(0,u.lA)(s,r);return(0,l.default)(i.path+"/intersect",f).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:o})))))}const I=new d.Xn({preserveShape:"preserve-shape"});function R(e){const{polylines:t,lengthUnit:n,geodesic:r,calculationType:o}=e.toJSON(),i={};i.polylines=JSON.stringify(t);const s=e.polylines[0].spatialReference;return i.sr=s.wkid?s.wkid:JSON.stringify(s.toJSON()),n&&(i.lengthUnit=n),r&&(i.geodesic=r),o&&(i.calculationType=I.toJSON(o)),i}var U=n(58901);let v=class extends O.wq{constructor(e){super(e),this.calculationType=null,this.geodesic=null,this.lengthUnit=null,this.polylines=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],v.prototype,"calculationType",void 0),(0,r._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],v.prototype,"geodesic",void 0),(0,r._)([(0,o.Cb)({json:{write:!0}})],v.prototype,"lengthUnit",void 0),(0,r._)([(0,o.Cb)({type:[U.Z],json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.polylines=e.map((e=>e.toJSON()))}}}})],v.prototype,"polylines",void 0),v=(0,r._)([(0,s.j)("esri.rest.support.LengthsParameters")],v),v.from=(0,i.se)(v);const w=v,E=new d.Xn({esriGeometryOffsetBevelled:"bevelled",esriGeometryOffsetMitered:"mitered",esriGeometryOffsetRounded:"rounded"}),A=new d.Xn({9001:"meters",9002:"feet",9036:"kilometers",9093:"miles",109012:"nautical-miles",109001:"yards"});let J=class extends O.wq{constructor(e){super(e),this.bevelRatio=null,this.geometries=null,this.offsetDistance=null,this.offsetHow=null,this.offsetUnit=null}};(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],J.prototype,"bevelRatio",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries=e.map((e=>e.toJSON()))}}}})],J.prototype,"geometries",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],J.prototype,"offsetDistance",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],J.prototype,"offsetHow",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],J.prototype,"offsetUnit",void 0),J=(0,r._)([(0,s.j)("esri.rest.support.OffsetParameters")],J),J.from=(0,i.se)(J);const C=J;let b=class extends O.wq{constructor(e){super(e),this.geometries=null,this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((function(e){return e.toJSON()})),t=this.geometries[0],n={};return n.outSR=this.outSpatialReference.wkid||JSON.stringify(this.outSpatialReference.toJSON()),n.inSR=t.spatialReference.wkid||JSON.stringify(t.spatialReference.toJSON()),n.geometries=JSON.stringify({geometryType:(0,a.Ji)(t),geometries:e}),this.transformation&&(n.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(n.transformForward=this.transformForward),n}};(0,r._)([(0,o.Cb)()],b.prototype,"geometries",void 0),(0,r._)([(0,o.Cb)({json:{read:{source:"outSR"}}})],b.prototype,"outSpatialReference",void 0),(0,r._)([(0,o.Cb)()],b.prototype,"transformation",void 0),(0,r._)([(0,o.Cb)()],b.prototype,"transformForward",void 0),b=(0,r._)([(0,s.j)("esri.rest.support.ProjectParameters")],b);const j=b,x=(0,i.se)(j),q=new d.Xn({esriGeometryRelationCross:"cross",esriGeometryRelationDisjoint:"disjoint",esriGeometryRelationIn:"in",esriGeometryRelationInteriorIntersection:"interior-intersection",esriGeometryRelationIntersection:"intersection",esriGeometryRelationLineCoincidence:"line-coincidence",esriGeometryRelationLineTouch:"line-touch",esriGeometryRelationOverlap:"overlap",esriGeometryRelationPointTouch:"point-touch",esriGeometryRelationTouch:"touch",esriGeometryRelationWithin:"within",esriGeometryRelationRelation:"relation"});let L=class extends O.wq{constructor(e){super(e),this.geometries1=null,this.geometries2=null,this.relation=null,this.relationParameter=null}};(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries1=e.map((e=>e.toJSON()))}}}})],L.prototype,"geometries1",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries2=e.map((e=>e.toJSON()))}}}})],L.prototype,"geometries2",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],L.prototype,"relation",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],L.prototype,"relationParameter",void 0),L=(0,r._)([(0,s.j)("esri.rest.support.RelationParameters")],L),L.from=(0,i.se)(L);const D=L;var G=n(17452);async function M(e,t,n){const r="string"==typeof e?(0,G.mN)(e):e,o=t[0].spatialReference,i=(0,a.Ji)(t[0]),s={...n,query:{...r.query,f:"json",sr:o.wkid?o.wkid:JSON.stringify(o),geometries:JSON.stringify(c(t))}},{data:u}=await(0,l.default)(r.path+"/simplify",s);return f(u.geometries,i,o)}const P=new d.Xn({0:"default-curve-extension",1:"relocate-ends",2:"keep-end-attributes",4:"no-end-attributes",8:"no-extend-at-from",16:"no-extend-at-to"});let $=class extends O.wq{constructor(e){super(e),this.extendHow="default-curve-extension",this.polylines=null,this.trimExtendTo=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],$.prototype,"extendHow",void 0),(0,r._)([(0,o.Cb)({type:[U.Z],json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.polylines=e.map((e=>e.toJSON()))}}}})],$.prototype,"polylines",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?(0,a.im)(e):null},write:{writer:(e,t)=>{t.trimExtendTo=e.toJSON()}}}})],$.prototype,"trimExtendTo",void 0),$=(0,r._)([(0,s.j)("esri.rest.support.TrimExtendParameters")],$),$.from=(0,i.se)($);const k=$;async function H(e,t,n){const r=t[0].spatialReference,o=(0,u.en)(e),i={...o.query,f:"json",sr:JSON.stringify(r.toJSON()),geometries:JSON.stringify(c(t))},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/union",s).then((({data:e})=>(0,a.im)(e.geometry).set({spatialReference:r})))}var Z=n(59633);let F=class extends Z.Z{constructor(e){super(e),this.url=null}areasAndLengths(e,t){return async function(e,t,n){const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=(0,u.lA)(o,n);return(0,l.default)(r.path+"/areasAndLengths",i).then((e=>e.data))}(this.url,e,t)}autoComplete(e,t,n){return m(this.url,e,t,n)}buffer(e,t){return async function(e,t,n){const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=t.outSpatialReference||t.geometries[0].spatialReference,s=(0,u.lA)(o,n);return(0,l.default)(r.path+"/buffer",s).then((e=>(e.data.geometries||[]).map((({rings:e})=>new p.Z({spatialReference:i,rings:e})))))}(this.url,e,t)}convexHull(e,t){return y(this.url,e,t)}cut(e,t,n){return async function(e,t,n,r){const o=(0,u.en)(e),i=t[0].spatialReference,s={...r,query:{...o.query,f:"json",sr:JSON.stringify(i),target:JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},c=await(0,l.default)(o.path+"/cut",s),{cutIndexes:f,geometries:p=[]}=c.data;return{cutIndexes:f,geometries:p.map((e=>{const t=(0,a.im)(e);return t.spatialReference=i,t}))}}(this.url,e,t,n)}densify(e,t){return async function(e,t,n){const r=t.geometries[0].spatialReference,o=(0,u.en)(e),i={...o.query,f:"json",...t.toJSON()},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/densify",s).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:r})))))}(this.url,e,t)}difference(e,t,n){return h(this.url,e,t,n)}distance(e,t){return async function(e,t,n){const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=(0,u.lA)(o,n);return(0,l.default)(r.path+"/distance",i).then((({data:e})=>e&&e.distance))}(this.url,e,t)}fromGeoCoordinateString(e,t){return async function(e,t,n){const r={};null!=t.sr&&"object"==typeof t.sr?r.sr=t.sr.wkid||JSON.stringify(t.sr):r.sr=t.sr,r.strings=JSON.stringify(t.strings);const o=t.conversionType||"mgrs";r.conversionType=g.toJSON(o),r.conversionMode=t.conversionMode;const i=(0,u.en)(e),s={...i.query,f:"json",...r},a=(0,u.lA)(s,n);return(0,l.default)(i.path+"/fromGeoCoordinateString",a).then((({data:e})=>e.coordinates))}(this.url,e,t)}generalize(e,t){return async function(e,t,n){const r=(t=S.from(t)).toJSON(),o=function(e){const{geometries:t,deviationUnit:n,maxDeviation:r}=e.toJSON(),o={maxDeviation:r};return t&&t.length&&(o.geometries=JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t}),o.sr=JSON.stringify(t[0].spatialReference)),N.write(n,o,"deviationUnit"),o}(t),i=(0,u.en)(e),s={...i.query,f:"json",...o},c=r.geometries[0].spatialReference,f=(0,u.lA)(s,n);return(0,l.default)(i.path+"/generalize",f).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:c})))))}(this.url,e,t)}intersect(e,t,n){return T(this.url,e,t,n)}labelPoints(e,t){return function(e,t,n){const r=t.map((e=>e.toJSON())),o=t[0].spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:o.wkid?o.wkid:JSON.stringify(o.toJSON()),polygons:JSON.stringify(r)},c=(0,u.lA)(s,n);return(0,l.default)(i.path+"/labelPoints",c).then((({data:e})=>(e.labelPoints||[]).map((e=>(0,a.im)(e).set({spatialReference:o})))))}(this.url,e,t)}lengths(e,t){return async function(e,t,n){const r=R(t=w.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/lengths",s).then((({data:e})=>e))}(this.url,e,t)}offset(e,t){return async function(e,t,n){const r=function(e){const{geometries:t,bevelRatio:n,offsetDistance:r,offsetHow:o,offsetUnit:i}=e.toJSON(),s={bevelRatio:n,offsetDistance:r};return t&&t.length&&(s.geometries=JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t}),s.sr=JSON.stringify(t[0].spatialReference)),o&&(s.offsetHow=E.toJSON(o)),i&&(s.offsetUnit=A.toJSON(i)),s}(t=C.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=t.geometries[0].spatialReference,c=(0,u.lA)(i,n);return(0,l.default)(o.path+"/offset",c).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:s})))))}(this.url,e,t)}project(e,t){return async function(e,t,n){t=x(t);const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=t.outSpatialReference,s=(0,a.Ji)(t.geometries[0]),c=(0,u.lA)(o,n);return(0,l.default)(r.path+"/project",c).then((({data:{geometries:e}})=>f(e,s,i)))}(this.url,e,t)}relation(e,t){return async function(e,t,n){const r=function(e){const{geometries1:t,geometries2:n,relation:r,relationParameter:o}=e.toJSON(),i={};if(t&&t.length){i.geometries1=JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t});const e=t[0].spatialReference;i.sr=e.wkid?e.wkid:JSON.stringify(e)}return n&&n.length>0&&(i.geometries2=JSON.stringify({geometryType:(0,a.Ji)(n[0]),geometries:n})),r&&(i.relation=q.toJSON(r)),o&&(i.relationParam=o),i}(t=D.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/relation",s).then((({data:e})=>e.relations))}(this.url,e,t)}reshape(e,t,n){return async function(e,t,n,r){const o=t.spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:JSON.stringify(o.toJSON()),target:JSON.stringify({geometryType:(0,a.Ji)(t),geometry:t.toJSON()}),reshaper:JSON.stringify(n.toJSON())},c=(0,u.lA)(s,r);return(0,l.default)(i.path+"/reshape",c).then((({data:e})=>(0,a.im)(e.geometry).set({spatialReference:o})))}(this.url,e,t,n)}simplify(e,t){return M(this.url,e,t)}toGeoCoordinateString(e,t){return async function(e,t,n){const r={};null!=t.sr&&"object"==typeof t.sr?r.sr=t.sr.wkid||JSON.stringify(t.sr):r.sr=t.sr,r.coordinates=JSON.stringify(t.coordinates);const o=t.conversionType||"mgrs";r.conversionType=g.toJSON(o),r.conversionMode=t.conversionMode,r.numOfDigits=t.numOfDigits,r.rounding=t.rounding,r.addSpaces=t.addSpaces;const i=(0,u.en)(e),s={...i.query,f:"json",...r},a=(0,u.lA)(s,n);return(0,l.default)(i.path+"/toGeoCoordinateString",a).then((({data:e})=>e.strings))}(this.url,e,t)}trimExtend(e,t){return async function(e,t,n){const r=function(e){const{extendHow:t,polylines:n,trimExtendTo:r}=e.toJSON(),o={};return o.extendHow=P.toJSON(t),n&&n.length&&(o.polylines=JSON.stringify(n),o.sr=JSON.stringify(n[0].spatialReference)),r&&(o.trimExtendTo=JSON.stringify(r)),o}(t=k.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=t.sr,a=(0,u.lA)(i,n);return(0,l.default)(o.path+"/trimExtend",a).then((({data:e})=>(e.geometries||[]).map((({paths:e})=>new U.Z({spatialReference:s,paths:e})))))}(this.url,e,t)}union(e,t){return H(this.url,e,t)}};F.UNIT_METER=9001,F.UNIT_GERMAN_METER=9031,F.UNIT_FOOT=9002,F.UNIT_SURVEY_FOOT=9003,F.UNIT_CLARKE_FOOT=9005,F.UNIT_FATHOM=9014,F.UNIT_NAUTICAL_MILE=9030,F.UNIT_SURVEY_CHAIN=9033,F.UNIT_SURVEY_LINK=9034,F.UNIT_SURVEY_MILE=9035,F.UNIT_KILOMETER=9036,F.UNIT_CLARKE_YARD=9037,F.UNIT_CLARKE_CHAIN=9038,F.UNIT_CLARKE_LINK=9039,F.UNIT_SEARS_YARD=9040,F.UNIT_SEARS_FOOT=9041,F.UNIT_SEARS_CHAIN=9042,F.UNIT_SEARS_LINK=9043,F.UNIT_BENOIT_1895A_YARD=9050,F.UNIT_BENOIT_1895A_FOOT=9051,F.UNIT_BENOIT_1895A_CHAIN=9052,F.UNIT_BENOIT_1895A_LINK=9053,F.UNIT_BENOIT_1895B_YARD=9060,F.UNIT_BENOIT_1895B_FOOT=9061,F.UNIT_BENOIT_1895B_CHAIN=9062,F.UNIT_BENOIT_1895B_LINK=9063,F.UNIT_INDIAN_FOOT=9080,F.UNIT_INDIAN_1937_FOOT=9081,F.UNIT_INDIAN_1962_FOOT=9082,F.UNIT_INDIAN_1975_FOOT=9083,F.UNIT_INDIAN_YARD=9084,F.UNIT_INDIAN_1937_YARD=9085,F.UNIT_INDIAN_1962_YARD=9086,F.UNIT_INDIAN_1975_YARD=9087,F.UNIT_FOOT_1865=9070,F.UNIT_RADIAN=9101,F.UNIT_DEGREE=9102,F.UNIT_ARCMINUTE=9103,F.UNIT_ARCSECOND=9104,F.UNIT_GRAD=9105,F.UNIT_GON=9106,F.UNIT_MICRORADIAN=9109,F.UNIT_ARCMINUTE_CENTESIMAL=9112,F.UNIT_ARCSECOND_CENTESIMAL=9113,F.UNIT_MIL6400=9114,F.UNIT_BRITISH_1936_FOOT=9095,F.UNIT_GOLDCOAST_FOOT=9094,F.UNIT_INTERNATIONAL_CHAIN=109003,F.UNIT_INTERNATIONAL_LINK=109004,F.UNIT_INTERNATIONAL_YARD=109001,F.UNIT_STATUTE_MILE=9093,F.UNIT_SURVEY_YARD=109002,F.UNIT_50KILOMETER_LENGTH=109030,F.UNIT_150KILOMETER_LENGTH=109031,F.UNIT_DECIMETER=109005,F.UNIT_CENTIMETER=109006,F.UNIT_MILLIMETER=109007,F.UNIT_INTERNATIONAL_INCH=109008,F.UNIT_US_SURVEY_INCH=109009,F.UNIT_INTERNATIONAL_ROD=109010,F.UNIT_US_SURVEY_ROD=109011,F.UNIT_US_NAUTICAL_MILE=109012,F.UNIT_UK_NAUTICAL_MILE=109013,F.UNIT_SQUARE_INCHES="esriSquareInches",F.UNIT_SQUARE_FEET="esriSquareFeet",F.UNIT_SQUARE_YARDS="esriSquareYards",F.UNIT_ACRES="esriAcres",F.UNIT_SQUARE_MILES="esriSquareMiles",F.UNIT_SQUARE_MILLIMETERS="esriSquareMillimeters",F.UNIT_SQUARE_CENTIMETERS="esriSquareCentimeters",F.UNIT_SQUARE_DECIMETERS="esriSquareDecimeters",F.UNIT_SQUARE_METERS="esriSquareMeters",F.UNIT_ARES="esriAres",F.UNIT_HECTARES="esriHectares",F.UNIT_SQUARE_KILOMETERS="esriSquareKilometers",(0,r._)([(0,o.Cb)()],F.prototype,"url",void 0),F=(0,r._)([(0,s.j)("esri.tasks.GeometryService")],F);const Y=F},59633:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(43697),o=n(15923),i=n(17452),s=n(5600),l=(n(67676),n(80442),n(75215),n(52011));let u=class extends o.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,i.mN)(e):null}_encode(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){r[o]=[];for(let e=0;e<i.length;e++)r[o][e]=this._encode(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n&&n[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?i:JSON.stringify(i);else r[o]=i}return r}};(0,r._)([(0,s.Cb)({readOnly:!0})],u.prototype,"parsedUrl",null),(0,r._)([(0,s.Cb)()],u.prototype,"requestOptions",void 0),(0,r._)([(0,s.Cb)({type:String})],u.prototype,"url",void 0),u=(0,r._)([(0,l.j)("esri.tasks.Task")],u);const a=u}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7277],{7277:(e,t,s)=>{s.r(t),s.d(t,{toBinaryGLTF:()=>Y});var i,n=s(17452),r=s(95330),E=s(13473);!function(e){e[e.JSON=1313821514]="JSON",e[e.BIN=5130562]="BIN"}(i||(i={}));class _{constructor(e,t){if(!e)throw new Error("GLB requires a JSON gltf chunk");this.length=_.HEADER_SIZE,this.length+=_.CHUNK_HEADER_SIZE;const s=this._textToArrayBuffer(e);if(this.length+=this._alignTo(s.byteLength,4),t&&(this.length+=_.CHUNK_HEADER_SIZE,this.length+=t.byteLength,t.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this.length),this.outView=new DataView(this.buffer),this._writeHeader();const n=this._writeChunk(s,12,i.JSON,32);t&&this._writeChunk(t,n,i.BIN)}_writeHeader(){this.outView.setUint32(0,_.MAGIC,!0),this.outView.setUint32(4,_.VERSION,!0),this.outView.setUint32(8,this.length,!0)}_writeChunk(e,t,s,i=0){const n=this._alignTo(e.byteLength,4);for(this.outView.setUint32(t,n,!0),this.outView.setUint32(t+=4,s,!0),this._writeArrayBuffer(this.outView.buffer,e,t+=4,0,e.byteLength),t+=e.byteLength;t%4;)i&&this.outView.setUint8(t,i),t++;return t}_writeArrayBuffer(e,t,s,i,n){new Uint8Array(e,s,n).set(new Uint8Array(t,i,n),0)}_textToArrayBuffer(e){return(new TextEncoder).encode(e).buffer}_alignTo(e,t){return t*Math.ceil(e/t)}}_.HEADER_SIZE=12,_.CHUNK_HEADER_SIZE=8,_.MAGIC=1179937895,_.VERSION=2;var a,T,R,o,A,N,c,h=s(30175),f=s(70586),u=s(51305),S=s(94961),C=s(17896),I=s(65617),O=s(60746),l=s(66459);!function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(a||(a={})),function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(T||(T={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(R||(R={})),function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(o||(o={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(A||(A={})),function(e){e.OPAQUE="OPAQUE",e.MASK="MASK",e.BLEND="BLEND"}(N||(N={})),function(e){e[e.NoColor=0]="NoColor",e[e.FaceColor=1]="FaceColor",e[e.VertexColor=2]="VertexColor"}(c||(c={}));var L=s(35371);class d{constructor(e,t,s,i,n){this.buffer=e,this.componentType=s,this.dataType=i,this.data=[],this.isFinalized=!1,this.accessorIndex=-1,this.accessorAttribute=null,this.accessorMin=null,this.accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this.bufferView={buffer:e.index,byteLength:-1,target:n};const r=this._getElementSize();r>=4&&n!==R.ELEMENT_ARRAY_BUFFER&&(this.bufferView.byteStride=r),t.bufferViews.push(this.bufferView),this.numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this.data.length;if(this.data.push(e),this.accessorIndex>=0){const s=t%this.numComponentsForDataType,i=this.accessorMin[s];this.accessorMin[s]="number"!=typeof i?e:Math.min(i,e);const n=this.accessorMax[s];this.accessorMax[s]="number"!=typeof n?e:Math.max(n,e)}}get dataSize(){return this.data.length*this._sizeComponentType()}get byteSize(){return e=this.dataSize,4*Math.ceil(e/4);var e}getByteOffset(){if(!this.isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this.buffer.getByteOffset(this)}get byteOffset(){if(!this.isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this.buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this.componentType){case L.g.BYTE:return new Int8Array(e,t);case L.g.FLOAT:return new Float32Array(e,t);case L.g.SHORT:return new Int16Array(e,t);case L.g.UNSIGNED_BYTE:return new Uint8Array(e,t);case L.g.UNSIGNED_INT:return new Uint32Array(e,t);case L.g.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this.data)}writeAsync(e){if(this.asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this.asyncWritePromise=e.then((e=>{const t=new Uint8Array(e);for(let e=0;e<t.length;++e)this.data.push(t[e]);delete this.asyncWritePromise})),this.asyncWritePromise}startAccessor(e){if(this.accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this.accessorIndex=this.data.length,this.accessorAttribute=e;const t=this.numComponentsForDataType;this.accessorMin=new Array(t),this.accessorMax=new Array(t)}endAccessor(){if(this.accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this.numComponentsForDataType,s=(this.data.length-this.accessorIndex)/t;if(s%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this.accessorMin.length;++e)"number"!=typeof this.accessorMin[e]&&(this.accessorMin[e]=0),"number"!=typeof this.accessorMax[e]&&(this.accessorMax[e]=0);const i={byteOffset:e*(this.accessorIndex/t),componentType:this.componentType,count:s,type:this.dataType,min:this.accessorMin,max:this.accessorMax,name:this.accessorAttribute};switch(this.accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this.componentType){case L.g.UNSIGNED_BYTE:case L.g.UNSIGNED_SHORT:i.normalized=!0}}return this.accessorIndex=-1,this.accessorAttribute=null,this.accessorMin=null,this.accessorMax=null,i}get finalized(){return this.finalizedPromise?this.finalizedPromise:this.isFinalized?this.finalizedPromise=Promise.resolve():this.finalizedPromise=new Promise((e=>this.finalizedPromiseResolve=e))}finalize(){const e=this.bufferView;return new Promise((e=>{const t=this.buffer.getViewFinalizePromises(this);this.asyncWritePromise&&t.push(this.asyncWritePromise),e((0,r.as)(t))})).then((()=>{this.isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this.finalizedPromiseResolve&&this.finalizedPromiseResolve()}))}_getElementSize(){return this._sizeComponentType()*this.numComponentsForDataType}_sizeComponentType(){switch(this.componentType){case L.g.BYTE:case L.g.UNSIGNED_BYTE:return 1;case L.g.SHORT:case L.g.UNSIGNED_SHORT:return 2;case L.g.UNSIGNED_INT:case L.g.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this.dataType){case o.SCALAR:return 1;case o.VEC2:return 2;case o.VEC3:return 3;case o.VEC4:case o.MAT2:return 4;case o.MAT3:return 9;case o.MAT4:return 16}}}class M{constructor(e){this.gltf=e,this.bufferViews=[],this.isFinalized=!1,e.buffers||(e.buffers=[]),this.index=e.buffers.length;const t={byteLength:-1};e.buffers.push(t),this.buffer=t}addBufferView(e,t,s){if(this.finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const i=new d(this,this.gltf,e,t,s);return this.bufferViews.push(i),i}getByteOffset(e){let t=0;for(const s of this.bufferViews){if(s===e)return t;t+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(e){const t=[];for(const s of this.bufferViews){if(e&&s===e)return t;t.push(s.finalized)}return t}getArrayBuffer(){if(!this.isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const e=this._getTotalSize(),t=new ArrayBuffer(e);let s=0;for(const e of this.bufferViews)e.writeOutToBuffer(t,s),s+=e.byteSize;return t}finalize(){if(this.finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this.finalizePromise=new Promise((e=>{e((0,r.as)(this.getViewFinalizePromises()))})).then((()=>{this.isFinalized=!0;const e=this.getArrayBuffer();this.buffer.byteLength=e.byteLength,this.buffer.uri=e})),this.gltf.extras.promises.push(this.finalizePromise),this.finalizePromise}_getTotalSize(){let e=0;for(const t of this.bufferViews)e+=t.byteSize;return e}}function D(e,t){(0,f.Wi)(t.normal)&&(t.normal=new Float32Array(t.position.length));const s=e.faces,{position:i,normal:n}=t,r=s.length/3;for(let e=0;e<r;++e){const t=3*s[3*e+0],r=3*s[3*e+1],E=3*s[3*e+2],_=(0,C.s)(B,i[t+0],i[t+1],i[t+2]),a=(0,C.s)(P,i[r+0],i[r+1],i[r+2]),T=(0,C.s)(g,i[E+0],i[E+1],i[E+2]),R=(0,C.f)(a,a,_),o=(0,C.f)(T,T,_),A=(0,C.c)(R,R,o);n[t+0]+=A[0],n[t+1]+=A[1],n[t+2]+=A[2],n[r+0]+=A[0],n[r+1]+=A[1],n[r+2]+=A[2],n[E+0]+=A[0],n[E+1]+=A[1],n[E+2]+=A[2]}for(let e=0;e<n.length;e+=3)(0,C.s)(U,n[e],n[e+1],n[e+2]),(0,C.n)(U,U),n[e+0]=U[0],n[e+1]=U[1],n[e+2]=U[2]}s(66577);const B=(0,I.c)(),P=(0,I.c)(),g=(0,I.c)(),U=(0,I.c)();s(80442);var p=s(20102);async function G(e){const t=m(e);if((0,f.Wi)(t))throw new p.Z("imageToArrayBuffer","Unsupported image type");const s=await async function(e){if(!(e instanceof HTMLImageElement))return"image/png";const t=e.src;if((0,n.HK)(t)){const{mediaType:e}=(0,n.sJ)(t);return"image/jpeg"===e?e:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),i=await new Promise((e=>t.toBlob(e,s)));if(!i)throw new p.Z("imageToArrayBuffer","Failed to encode image");return{data:await i.arrayBuffer(),type:s}}function m(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");return e instanceof HTMLImageElement?s.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&s.putImageData(e,e.width,e.height),t}class F{constructor(e,t,s){this.params={},this.materialMap=new Array,this.imageMap=new Map,this.textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{options:t,binChunkBuffer:null,promises:[]}},s&&(this.params=s),this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras.options.bufferOutputType===a.GLB||this.gltf.extras.options.imageOutputType===T.GLB;t&&(this.gltf.extras.binChunkBuffer=new M(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),t&&this.gltf.extras.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]);const s=this._addNode(e);t.nodes.push(s)})),this.gltf.scenes.push(t)}_addNode(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;(0,C.k)(s,I.Z)||(t.translation=(0,I.a)(s));const i=e.rotation;(0,u.j)(i,S.I)||(t.rotation=(0,S.b)(i));const n=e.scale;(0,C.k)(n,I.O)||(t.scale=(0,I.a)(n)),e.mesh&&e.mesh.vertexAttributes.position?t.mesh=this._addMesh(e.mesh):e.forEachNode((e=>{t.children||(t.children=[]);const s=this._addNode(e);t.children.push(s)}));const r=this.gltf.nodes.length;return this.gltf.nodes.push(t),r}_addMesh(e){this.gltf.meshes||(this.gltf.meshes=[]);const t={primitives:[]},s=this.gltf.extras.options.bufferOutputType===a.GLB;let i;i=s?this.gltf.extras.binChunkBuffer:new M(this.gltf),this.params.origin||(this.params.origin=function(e){if((0,f.pC)(e.transform))return e.transform.getOriginPoint(e.spatialReference);const t=e.extent.xmax-e.extent.width/2,s=e.extent.ymax-e.extent.height/2,i=e.extent.zmin;return new E.Z({x:t,y:s,z:i,spatialReference:e.extent.spatialReference})}(e));const n=(0,l.Yq)(e.vertexAttributes,e.transform,this.params.origin,{geographic:this.params.geographic,unit:"meters"});(function(e,t){if(e.components)for(const s of e.components)s.faces&&"smooth"===s.shading&&D(s,t)})(e,n),this._flipYZAxis(n);const r=i.addBufferView(L.g.FLOAT,o.VEC3,R.ARRAY_BUFFER);let _,T,A,N;n.normal&&(_=i.addBufferView(L.g.FLOAT,o.VEC3,R.ARRAY_BUFFER)),e.vertexAttributes.uv&&(T=i.addBufferView(L.g.FLOAT,o.VEC2,R.ARRAY_BUFFER)),n.tangent&&(A=i.addBufferView(L.g.FLOAT,o.VEC4,R.ARRAY_BUFFER)),e.vertexAttributes.color&&(N=i.addBufferView(L.g.UNSIGNED_BYTE,o.VEC4,R.ARRAY_BUFFER)),r.startAccessor("POSITION"),_&&_.startAccessor("NORMAL"),T&&T.startAccessor("TEXCOORD_0"),A&&A.startAccessor("TANGENT"),N&&N.startAccessor("COLOR_0");const c=n.position.length/3,{position:h,normal:u,tangent:S}=n,{color:C,uv:I}=e.vertexAttributes;for(let e=0;e<c;++e)r.push(h[3*e+0]),r.push(h[3*e+1]),r.push(h[3*e+2]),_&&(0,f.pC)(u)&&(_.push(u[3*e+0]),_.push(u[3*e+1]),_.push(u[3*e+2])),T&&(0,f.pC)(I)&&(T.push(I[2*e+0]),T.push(I[2*e+1])),A&&(0,f.pC)(S)&&(A.push(S[4*e+0]),A.push(S[4*e+1]),A.push(S[4*e+2]),A.push(S[4*e+3])),N&&(0,f.pC)(C)&&(N.push(C[4*e+0]),N.push(C[4*e+1]),N.push(C[4*e+2]),N.push(C[4*e+3]));const O=r.endAccessor(),d=this._addAccessor(r.index,O);let B,P,g,U,p;if(_){const e=_.endAccessor();B=this._addAccessor(_.index,e)}if(T){const e=T.endAccessor();P=this._addAccessor(T.index,e)}if(A){const e=A.endAccessor();g=this._addAccessor(A.index,e)}if(N){const e=N.endAccessor();U=this._addAccessor(N.index,e)}e.components&&e.components.length>0&&e.components[0].faces?(p=i.addBufferView(L.g.UNSIGNED_INT,o.SCALAR,R.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(p,e.components,t,d,B,P,g,U)):this._addMeshVertexNonIndexed(e.components,t,d,B,P,g,U),r.finalize(),_&&_.finalize(),T&&T.finalize(),A&&A.finalize(),p&&p.finalize(),N&&N.finalize(),s||i.finalize();const G=this.gltf.meshes.length;return this.gltf.meshes.push(t),G}_flipYZAxis({position:e,normal:t,tangent:s}){this._flipYZBuffer(e,3),this._flipYZBuffer(t,3),this._flipYZBuffer(s,4)}_flipYZBuffer(e,t){if(!(0,f.Wi)(e))for(let s=1,i=2;s<e.length;s+=t,i+=t){const t=e[s],n=e[i];e[s]=n,e[i]=-t}}_addMaterial(e){if(null===e)return;const t=this.materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=N.MASK;break;case"auto":case"blend":s.alphaMode=N.BLEND}.5!==e.alphaCutoff&&(s.alphaCutoff=e.alphaCutoff),e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const i=e=>e**2.1,n=e=>{const t=e.toRgba();return t[0]=i(t[0]/255),t[1]=i(t[1]/255),t[2]=i(t[2]/255),t};if((0,f.pC)(e.color)&&(s.pbrMetallicRoughness.baseColorFactor=n(e.color)),(0,f.pC)(e.colorTexture)&&(s.pbrMetallicRoughness.baseColorTexture={index:this._addTexture(e.colorTexture)}),(0,f.pC)(e.normalTexture)&&(s.normalTexture={index:this._addTexture(e.normalTexture)}),e instanceof O.Z){if((0,f.pC)(e.emissiveTexture)&&(s.emissiveTexture={index:this._addTexture(e.emissiveTexture)}),(0,f.pC)(e.emissiveColor)){const t=n(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}(0,f.pC)(e.occlusionTexture)&&(s.occlusionTexture={index:this._addTexture(e.occlusionTexture)}),(0,f.pC)(e.metallicRoughnessTexture)&&(s.pbrMetallicRoughness.metallicRoughnessTexture={index:this._addTexture(e.metallicRoughnessTexture)}),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1;const r=this.gltf.materials.length;return this.gltf.materials.push(s),this.materialMap.push(e),r}_addTexture(e){return this.gltf.textures||(this.gltf.textures=[]),(0,h.s1)(this.textureMap,e,(()=>{const t={sampler:this._addSampler(e),source:this._addImage(e)},s=this.gltf.textures.length;return this.gltf.textures.push(t),s}))}_addImage(e){const t=this.imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{s.extras=e.data;for(let t=0;t<this.gltf.images.length;++t)if(e.data===this.gltf.images[t].extras)return t;switch(this.gltf.extras.options.imageOutputType){case T.GLB:{const t=this.gltf.extras.binChunkBuffer.addBufferView(L.g.UNSIGNED_BYTE,o.SCALAR),i=G(e.data).then((({data:e,type:t})=>(s.mimeType=t,e)));t.writeAsync(i).then((()=>{t.finalize()})),s.bufferView=t.index;break}case T.DataURI:s.uri=function(e){const t=m(e);return(0,f.pC)(t)?t.toDataURL():""}(e.data);break;default:this.gltf.extras.promises.push(G(e.data).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const i=this.gltf.images.length;return this.gltf.images.push(s),this.imageMap.set(e,i),i}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=L.e8.REPEAT,s=L.e8.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=L.e8.CLAMP_TO_EDGE,s=L.e8.CLAMP_TO_EDGE;break;case"mirror":t=L.e8.MIRRORED_REPEAT,s=L.e8.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=L.e8.CLAMP_TO_EDGE;break;case"mirror":s=L.e8.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=L.e8.CLAMP_TO_EDGE;break;case"mirror":t=L.e8.MIRRORED_REPEAT}}const i={wrapS:t,wrapT:s};for(let e=0;e<this.gltf.samplers.length;++e)if(JSON.stringify(i)===JSON.stringify(this.gltf.samplers[e]))return e;const n=this.gltf.samplers.length;return this.gltf.samplers.push(i),n}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const i=this.gltf.accessors.length;return this.gltf.accessors.push(s),i}_addMeshVertexIndexed(e,t,s,i,n,r,E,_){for(const a of t){e.startAccessor("INDICES");for(let t=0;t<a.faces.length;++t)e.push(a.faces[t]);const t=e.endAccessor(),T={attributes:{POSITION:i},indices:this._addAccessor(e.index,t),material:this._addMaterial(a.material)};n&&"flat"!==a.shading&&(T.attributes.NORMAL=n),r&&(T.attributes.TEXCOORD_0=r),E&&"flat"!==a.shading&&(T.attributes.TANGENT=E),_&&(T.attributes.COLOR_0=_),s.primitives.push(T)}}_addMeshVertexNonIndexed(e,t,s,i,n,r,E){const _={attributes:{POSITION:s}};i&&(_.attributes.NORMAL=i),n&&(_.attributes.TEXCOORD_0=n),r&&(_.attributes.TANGENT=r),E&&(_.attributes.COLOR_0=E),e&&(_.material=this._addMaterial(e[0].material)),t.primitives.push(_)}}var w=s(67676);class H{constructor(){this.copyright="",this.defaultScene=0,this.generator="",this._scenes=[]}addScene(e){if(this._scenes.includes(e))throw new Error("Scene already added");this._scenes.push(e)}removeScene(e){(0,w.Od)(this._scenes,e)}forEachScene(e){this._scenes.forEach(e)}}class b{constructor(e){this.mesh=e,this.name="",this.translation=(0,I.c)(),this.rotation=(0,S.a)(),this.scale=(0,I.a)(I.O),this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}set rotationAngles(e){(0,u.k)(this.rotation,e[0],e[1],e[2])}}const y="model.glb";class x{constructor(){this.name="",this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}}class V{constructor(e,t){this._file={type:"model/gltf-binary",data:e},this.origin=t}buffer(){return Promise.resolve(this._file)}download(e){(0,n.io)(new Blob([this._file.data],{type:this._file.type}),e)}}function Y(e,t){const s=new H,i=new x;return s.addScene(i),i.addNode(new b(e)),function(e,t){return function(e,t,s){const i=new F(e,t=t||{},s);let n=i.params;n?n.origin||(n.origin=new E.Z({x:-1,y:-1,z:-1})):n={origin:new E.Z({x:-1,y:-1,z:-1})};const R=n.origin,o=i.gltf,A=o.extras.promises;let N=1,c=1,h=null;return(0,r.as)(A).then((()=>{const e={origin:R};delete o.extras;const s="number"==typeof t.jsonSpacing?t.jsonSpacing:4,i=JSON.stringify(o,((s,i)=>{if("extras"!==s){if(i instanceof ArrayBuffer){if(function(e){if(e.byteLength<8)return!1;const t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}(i))switch(t.imageOutputType){case T.DataURI:case T.GLB:break;case T.External:default:{const t=`img${c}.png`;return c++,e[t]=i,t}}switch(t.bufferOutputType){case a.DataURI:return function(e){const t=[],s=new Uint8Array(e);for(let e=0;e<s.length;e++)t.push(String.fromCharCode(s[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}(i);case a.GLB:if(h)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(h=i);case a.External:default:{const t=`data${N}.bin`;return N++,e[t]=i,t}}}return i}}),s);return t.bufferOutputType===a.GLB||t.imageOutputType===T.GLB?e[y]=new _(i,h).buffer:e["model.gltf"]=i,e}))}(e,{bufferOutputType:a.GLB,imageOutputType:T.GLB,jsonSpacing:0},t)}(s,t).then((e=>new V(e[y],e.origin)))}},35371:(e,t,s)=>{var i,n,r,E,_,a,T,R,o,A,N,c,h,f,u,S,C,I,O,l,L,d,M,D;s.d(t,{zi:()=>r,db:()=>E,w0:()=>_,VY:()=>D,wb:()=>o,q_:()=>P,Wf:()=>T,g:()=>R,Lu:()=>B,OU:()=>d,LR:()=>a,qi:()=>l,VI:()=>f,Br:()=>S,MX:()=>n,Tg:()=>C,_g:()=>M,lP:()=>u,xS:()=>A,Lm:()=>L,cw:()=>N,No:()=>h,e8:()=>c,l1:()=>I}),function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(i||(i={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(n||(n={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(r||(r={})),function(e){e[e.ADD=32774]="ADD",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(E||(E={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(_||(_={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(a||(a={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(T||(T={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT"}(R||(R={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(o||(o={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(A||(A={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(N||(N={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(c||(c={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(h||(h={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(f||(f={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(u||(u={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(S||(S={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(C||(C={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(I||(I={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(O||(O={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(l||(l={})),function(e){e[e.TEXTURE=0]="TEXTURE",e[e.RENDER_BUFFER=1]="RENDER_BUFFER",e[e.CUBEMAP=2]="CUBEMAP"}(L||(L={})),function(e){e[e.NONE=0]="NONE",e[e.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER",e[e.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"}(d||(d={})),function(e){e[e.Texture=0]="Texture",e[e.Buffer=1]="Buffer",e[e.VAO=2]="VAO",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.Framebuffer=5]="Framebuffer",e[e.Renderbuffer=6]="Renderbuffer",e[e.COUNT=7]="COUNT"}(M||(M={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(D||(D={}));const B=33306;var P,g,U,p,G,m,F;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(P||(P={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(g||(g={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(U||(U={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(p||(p={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(G||(G={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(m||(m={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(F||(F={}))}}]);
|