@arcgis/core 5.2.0-next.81 → 5.2.0-next.82
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/{88d6a7ebded4d359deb0.js → 027af54888befb209aaa.js} +1 -1
- package/assets/esri/core/workers/chunks/{694216224d5fd3a8956d.js → 04f5ff688785a4bd3b03.js} +1 -1
- package/assets/esri/core/workers/chunks/{578904043e873424904c.js → 0d982abff7c9496f7890.js} +1 -1
- package/assets/esri/core/workers/chunks/{3adba34224cba869a39c.js → 10ac92dcd3738ec23dfb.js} +1 -1
- package/assets/esri/core/workers/chunks/{4a537054c99cbc492715.js → 11d911f70bf0ca252c19.js} +1 -1
- package/assets/esri/core/workers/chunks/{2f3525df00fb265661fc.js → 1352b5c6767e5421bc02.js} +1 -1
- package/assets/esri/core/workers/chunks/1354b8442c2c501238f1.js +1 -0
- package/assets/esri/core/workers/chunks/{8cfe817299eb16cb2664.js → 1438f571f738e83b4d1c.js} +1 -1
- package/assets/esri/core/workers/chunks/{efd176c5ac35f313e7a2.js → 14469f664fd5ede469fc.js} +1 -1
- package/assets/esri/core/workers/chunks/{bfd532e33800755b1f48.js → 14511c92cbbc26d80c86.js} +1 -1
- package/assets/esri/core/workers/chunks/{fbb0b2f4ec0ba458ddeb.js → 19dac19122eeeb5e36b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{f71a3fe5f30aa782193a.js → 20db27d9828397d0b37a.js} +1 -1
- package/assets/esri/core/workers/chunks/{b3081c0b037abc49d09b.js → 26c12804a0d801df29bf.js} +1 -1
- package/assets/esri/core/workers/chunks/{8006ffa263fb8016afdb.js → 26c8ed0aef59ed6d5267.js} +1 -1
- package/assets/esri/core/workers/chunks/2d1c0d80a9843567df8d.js +1 -0
- package/assets/esri/core/workers/chunks/{2b79b376b0d60d2f0d5c.js → 2d6e1bf7c1981bed4357.js} +1 -1
- package/assets/esri/core/workers/chunks/{7028671ffdaafe2725bc.js → 33aaa5a49e396a0aca47.js} +1 -1
- package/assets/esri/core/workers/chunks/{d1baf17f3219f70106f7.js → 34f6093d2c00e3584037.js} +1 -1
- package/assets/esri/core/workers/chunks/{bfac0f47e81055585002.js → 3f0625c31dd46b563160.js} +1 -1
- package/assets/esri/core/workers/chunks/{9a5894e8ebdf0e97b98f.js → 43122c435497228a7583.js} +1 -1
- package/assets/esri/core/workers/chunks/{8fff4a41a54d39db470a.js → 44d13f65465646e5f6e9.js} +1 -1
- package/assets/esri/core/workers/chunks/{9c17bfbfc347ac289b6e.js → 463b7952a4825541eb13.js} +1 -1
- package/assets/esri/core/workers/chunks/{540a3685e614bb006744.js → 469e72ab6cd44272f474.js} +1 -1
- package/assets/esri/core/workers/chunks/{1ed6a8bb415999c4e8a6.js → 4cf2c33494cb75942511.js} +1 -1
- package/assets/esri/core/workers/chunks/{6c372d85b5783dd2a793.js → 52042fd36f4a572938f0.js} +1 -1
- package/assets/esri/core/workers/chunks/{d8b38c196b06e801c4e6.js → 563a4d6788ad66b676e4.js} +1 -1
- package/assets/esri/core/workers/chunks/598221c7054415b84904.js +1 -0
- package/assets/esri/core/workers/chunks/{89df303abcbc0167e4d2.js → 5a006ff759fad9fc25cb.js} +1 -1
- package/assets/esri/core/workers/chunks/{40ebe69b08ea54e0e780.js → 5b60fc95757b2a53558a.js} +1 -1
- package/assets/esri/core/workers/chunks/{c336f300fe6100e36592.js → 5c634b3e6dc76299b1df.js} +1 -1
- package/assets/esri/core/workers/chunks/{5a67bd724aa7fcdebe16.js → 5d30accf1dcda0c70f95.js} +1 -1
- package/assets/esri/core/workers/chunks/{8d16d53643dd8d489c25.js → 605da92d28e067f4a4c6.js} +1 -1
- package/assets/esri/core/workers/chunks/{5c9a398e659ecd427fb5.js → 657528eb6a3d3b3cb631.js} +1 -1
- package/assets/esri/core/workers/chunks/{d845f2115848b56c0369.js → 66292e98b4111ea3658d.js} +1 -1
- package/assets/esri/core/workers/chunks/{f57e5e7d0748d9a370f7.js → 680496660b2aaa710099.js} +1 -1
- package/assets/esri/core/workers/chunks/6c389e9646a48c26da20.js +2 -0
- package/assets/esri/core/workers/chunks/{fbcc346fa603d6edac98.js → 6db4a4f9a9ce7cc738d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{a9e944f28bd573c8230d.js → 6eb28086dc28f6d144ec.js} +1 -1
- package/assets/esri/core/workers/chunks/7bd8ebb321ecf1f06496.js +1 -0
- package/assets/esri/core/workers/chunks/{d0aaa4ad7f76f577f117.js → 7d5877eede2f552dea9f.js} +1 -1
- package/assets/esri/core/workers/chunks/{bf5831a7c12b1e42c669.js → 83a77d3f45c8c21cec45.js} +1 -1
- package/assets/esri/core/workers/chunks/{dcec7fc66385c12ecdf0.js → 865f9adc591056458b6b.js} +1 -1
- package/assets/esri/core/workers/chunks/{d62a5a33a24418a3e283.js → 88771a75adcbd54c4fac.js} +1 -1
- package/assets/esri/core/workers/chunks/{37fb38db03cb39e3c342.js → 8c6a60d96c73982febd2.js} +1 -1
- package/assets/esri/core/workers/chunks/{6065caa7981cef255277.js → 911f3a1b8dd4bc5c9782.js} +1 -1
- package/assets/esri/core/workers/chunks/{70c371c9f133ab9f7925.js → 918577ea025f67ebe372.js} +1 -1
- package/assets/esri/core/workers/chunks/99966339b061eb9945b8.js +1 -0
- package/assets/esri/core/workers/chunks/{9bd4cda90daf90189bfc.js → a2fd945659ce052f99d2.js} +1 -1
- package/assets/esri/core/workers/chunks/{74cd17aca5f7e0caac90.js → a9a1061cdf82b372835f.js} +1 -1
- package/assets/esri/core/workers/chunks/ab10388dcc17a665ac3b.js +2 -0
- package/assets/esri/core/workers/chunks/ac9a3dfd02160e43fc8a.js +2 -0
- package/assets/esri/core/workers/chunks/{82da6d98bd4980a3d454.js → af88f8dd1a53e4740aa6.js} +1 -1
- package/assets/esri/core/workers/chunks/{d2448e26e19005ef9ab2.js → b09e9ac5fd928e69b053.js} +1 -1
- package/assets/esri/core/workers/chunks/{61190c833791f0833a39.js → b7bcc2d0b0fa8e703c83.js} +1 -1
- package/assets/esri/core/workers/chunks/{37a121316d114999ac70.js → ba67aaa08e4f11e1140a.js} +1 -1
- package/assets/esri/core/workers/chunks/{5d50a030bf9f4e94f69d.js → bbeb61d9302323bae9fb.js} +1 -1
- package/assets/esri/core/workers/chunks/{dbca32f0e0c2c2e2ccf3.js → bd1c870694edd25bf8aa.js} +1 -1
- package/assets/esri/core/workers/chunks/c1f125594e684c1b4ffc.js +1 -0
- package/assets/esri/core/workers/chunks/{d4b78d11a5ce4320a29a.js → c456abf5ee2a1ad5cc5b.js} +1 -1
- package/assets/esri/core/workers/chunks/{61312d3b5477ed9d87d9.js → c61e94806b37ca3dd549.js} +2 -2
- package/assets/esri/core/workers/chunks/{e72fa08b0bd324514a0e.js → c8d83f71326222b98608.js} +1 -1
- package/assets/esri/core/workers/chunks/{09f0805b32e6cab980e6.js → cc1a00694cc9f7c606d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{e8a9a686a3c23afc9d1f.js → cdd4aeaa3f30bc4ea93a.js} +1 -1
- package/assets/esri/core/workers/chunks/{eca0736953a20cfc64ad.js → d0c8630177d3a4e316f1.js} +2 -2
- package/assets/esri/core/workers/chunks/{bc30c0de6dcb106b24a1.js → da233362b06b6db375f1.js} +1 -1
- package/assets/esri/core/workers/chunks/{ce81f29134ab3971bd54.js → dd91824692bec809909c.js} +1 -1
- package/assets/esri/core/workers/chunks/{f9e9e79f78be32e5d475.js → e706c37b44e98fbcb5f7.js} +1 -1
- package/assets/esri/core/workers/chunks/{856dba96332509fb1d7a.js → ead4143d811aab610e00.js} +2 -2
- package/assets/esri/core/workers/chunks/ef269dd559c1c79957e5.js +1 -0
- package/assets/esri/core/workers/chunks/{4a6158994a8cc8b8664f.js → f0692e10af5983f6ad93.js} +1 -1
- package/assets/esri/core/workers/chunks/{fae32c9ce811934b6a64.js → f248131df4eaa5291623.js} +1 -1
- package/assets/esri/core/workers/chunks/{4c15551e33a3c6cda61d.js → f762f0f6c83748d8e328.js} +1 -1
- package/assets/esri/core/workers/chunks/{4eaa93859ceec1b38530.js → fa29b5064d6626cfc019.js} +1 -1
- package/assets/esri/core/workers/chunks/{a3cbd3e983e21f40b253.js → faf14281a74a06fa1f30.js} +1 -1
- package/assets/esri/core/workers/chunks/fcf7299e2ee904ab9882.js +1 -0
- package/assets/esri/core/workers/chunks/{388b71211a0ad5cbd6b9.js → fe06cc2f90b2d551e4c1.js} +1 -1
- package/assets/esri/core/workers/chunks/{86035e46777ed896c658.js → ffad5fd9c5e98f4fe2c3.js} +1 -1
- package/assets/esri/geometry/support/pe-wasm.wasm +0 -0
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
- package/chunks/EmissionComposite.glsl.js +7 -1
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/GeodeticUtils.js +1 -1
- package/chunks/GeographicTransformation.js +2 -0
- package/chunks/Geometry.js +1 -1
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorCrosses.js +1 -1
- package/chunks/OperatorCut.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
- package/chunks/OperatorGeodeticLength.js +1 -1
- package/chunks/OperatorGraphicBuffer.js +1 -1
- package/chunks/OperatorIntegrate.js +1 -1
- package/chunks/OperatorIntersects.js +1 -1
- package/chunks/OperatorMultiPartToSinglePart.js +1 -1
- package/chunks/OperatorOverlaps.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorProximityGeodesic.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/OperatorSimplifyOGC.js +1 -1
- package/chunks/OperatorTouches.js +1 -1
- package/chunks/OperatorWithin.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/ProjectionTransformation.js +1 -1
- package/chunks/SideCalculator2D-DX0718xq.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/chunks/containsOperator.js +1 -1
- package/chunks/disjointOperator.js +1 -1
- package/chunks/equalsOperator.js +1 -1
- package/chunks/pe-wasm.js +1 -1
- package/chunks/relateOperator.js +1 -1
- package/config.js +1 -1
- package/geometry/operators/gx/operatorAutoComplete.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorDifference.js +1 -1
- package/geometry/operators/gx/operatorIntersection.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/gx/operatorSimplify.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/gx/operatorUnion.js +1 -1
- package/geometry/operators/json/containsOperator.js +1 -1
- package/geometry/operators/json/disjointOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/support/GeographicTransformation.d.ts +7 -0
- package/geometry/operators/support/GeographicTransformation.js +1 -1
- package/geometry/operators/support/GeographicTransformationStep.d.ts +7 -1
- package/geometry/operators/support/GeographicTransformationStep.js +1 -1
- package/geometry/operators/support/geographicTransformationUtils.d.ts +13 -2
- package/geometry/operators/support/geographicTransformationUtils.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/operators/support/projectionTransformation.js +1 -1
- package/kernel.js +1 -1
- package/layers/raster/types.d.ts +1 -1
- package/layers/support/AggregateField.d.ts +9 -3
- package/layers/support/FeatureReductionCluster.d.ts +16 -6
- package/layers/support/I3SExtractChanges.js +2 -0
- package/package.json +3 -3
- package/renderers/support/AuthoringInfo.d.ts +8 -3
- package/support/revision.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightDrawToolRenderer.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightInteractionVisuals.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/support/PBFDecoder.js +1 -1
- package/views/3d/webgl-engine/Stage.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/MapView.d.ts +0 -60
- package/views/View2D.d.ts +59 -1
- package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/Legend/support/utils.js +1 -1
- package/assets/esri/core/workers/chunks/453c69879f4b82ba13a1.js +0 -1
- package/assets/esri/core/workers/chunks/9234a293d61e134f121f.js +0 -1
- package/assets/esri/core/workers/chunks/95b9eaf7a49eeb17e62f.js +0 -1
- package/assets/esri/core/workers/chunks/973440553c9e058b0132.js +0 -1
- package/assets/esri/core/workers/chunks/c5853fbb975e169c44c5.js +0 -1
- package/assets/esri/core/workers/chunks/e2473de49189d93714d3.js +0 -1
- package/assets/esri/core/workers/chunks/e63f94c8097555b266ad.js +0 -2
- package/assets/esri/core/workers/chunks/f2d99f693a590f384315.js +0 -1
- package/assets/esri/core/workers/chunks/fc2234e0d202631f3abf.js +0 -2
- package/assets/esri/core/workers/chunks/fcb943c3b31b1bf62e65.js +0 -2
- /package/assets/esri/core/workers/chunks/{61312d3b5477ed9d87d9.js.LICENSE.txt → 6c389e9646a48c26da20.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{e63f94c8097555b266ad.js.LICENSE.txt → ab10388dcc17a665ac3b.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{fc2234e0d202631f3abf.js.LICENSE.txt → ac9a3dfd02160e43fc8a.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{fcb943c3b31b1bf62e65.js.LICENSE.txt → c61e94806b37ca3dd549.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{eca0736953a20cfc64ad.js.LICENSE.txt → d0c8630177d3a4e316f1.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{856dba96332509fb1d7a.js.LICENSE.txt → ead4143d811aab610e00.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6187],{46187(t,e,o){async function r(t={}){var e,o=t,r="";try{r=new URL(".","").href}catch{}e=async t=>{var e=await fetch(t,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var _,p,n=console.log.bind(console),i=console.error.bind(console),c=!1;function a(t,e){t||s(e)}function y(){if(!p?.buffer?.resizable){var t=mo.buffer;p=new Int8Array(t),E=new Int16Array(t),u=new Uint8Array(t),f=new Int32Array(t),b=new Uint32Array(t),d=new Float32Array(t),T=new Float64Array(t),O=new BigInt64Array(t)}}function s(t){throw i(t=`Aborted(${t})`),c=!0,t+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(t)}function P(){return o.locateFile?function(t){return o.locateFile?o.locateFile(t,r):r+t}("pe-wasm.wasm"):new URL("pe-wasm.wasm","").href}async function g(t){try{var o=await e(t);return new Uint8Array(o)}catch{}return function(){throw"both async and sync fetching of the wasm failed"}()}var u,f,b,E,d,T,O,m,h,S,N,l,v,M,j,D,A,R,C,G,I,L,U,w,F,Y,X,x,H,z,Z,W,q,B,K,k,V,$,J,Q,tt,et,ot,rt,_t,pt,nt,it,ct,at,yt,st,Pt,gt,ut,ft,bt,Et,dt,Tt,Ot,mt,ht,St,Nt,lt,vt,Mt,jt,Dt,At,Rt,Ct,Gt,It,Lt,Ut,wt,Ft,Yt,Xt,xt,Ht,zt,Zt,Wt,qt,Bt,Kt,kt,Vt,$t,Jt,Qt,te,ee,oe,re,_e,pe,ne,ie,ce,ae,ye,se,Pe,ge,ue,fe,be,Ee,de,Te,Oe,me,he,Se,Ne,le,ve,Me,je,De,Ae,Re,Ce,Ge,Ie,Le,Ue,we,Fe,Ye,Xe,xe,He,ze,Ze,We,qe,Be,Ke,ke,Ve,$e,Je,Qe,to,eo,oo,ro,_o,po,no,io,co,ao,yo,so,Po,go,uo,fo,bo,Eo,To,Oo,mo,ho=globalThis.TextDecoder&&new TextDecoder,So=(t,e=0,o,r)=>{var _=((t,e,o,r)=>{var _=e+o;if(r)return _;for(;t[e]&&!(e>=_);)++e;return e})(t,e,o,r);if(_-e>16&&t.buffer&&ho)return ho.decode(t.subarray(e,_));for(var p="";e<_;){var n=t[e++];if(128&n){var i=63&t[e++];if(192!=(224&n)){var c=63&t[e++];if((n=224==(240&n)?(15&n)<<12|i<<6|c:(7&n)<<18|i<<12|c<<6|63&t[e++])<65536)p+=String.fromCharCode(n);else{var a=n-65536;p+=String.fromCharCode(55296|a>>10,56320|1023&a)}}else p+=String.fromCharCode((31&n)<<6|i)}else p+=String.fromCharCode(n)}return p},No=(t,e,o)=>t?So(u,t,e,o):"",lo=[0,31,60,91,121,152,182,213,244,274,305,335],vo=[0,31,59,90,120,151,181,212,243,273,304,334],Mo=(t,e,o,r)=>{if(!(r>0))return 0;for(var _=o,p=o+r-1,n=0;n<t.length;++n){var i=t.codePointAt(n);if(i<=127){if(o>=p)break;e[o++]=i}else if(i<=2047){if(o+1>=p)break;e[o++]=192|i>>6,e[o++]=128|63&i}else if(i<=65535){if(o+2>=p)break;e[o++]=224|i>>12,e[o++]=128|i>>6&63,e[o++]=128|63&i}else{if(o+3>=p)break;e[o++]=240|i>>18,e[o++]=128|i>>12&63,e[o++]=128|i>>6&63,e[o++]=128|63&i,n++}}return e[o]=0,o-_},jo=(t,e,o)=>Mo(t,u,e,o),Do=(t,e)=>Math.ceil(t/e)*e,Ao=t=>{var e=(t-mo.buffer.byteLength+65535)/65536|0;try{return mo.grow(e),y(),1}catch(t){}},Ro={},Co=()=>{if(!Co.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(globalThis.navigator?.language??"C").replace("-","_")+".UTF-8",_:"./this.program"};for(var e in Ro)void 0===Ro[e]?delete t[e]:t[e]=Ro[e];var o=[];for(var e in t)o.push(`${e}=${t[e]}`);Co.strings=o}return Co.strings},Go=t=>{for(var e=0,o=0;o<t.length;++o){var r=t.charCodeAt(o);r<=127?e++:r<=2047?e+=2:r>=55296&&r<=57343?(e+=4,++o):e+=3}return e},Io=[null,[],[]],Lo=(t,e)=>{var o=Io[t];e&&10!==e?o.push(e):((1===t?n:i)(So(o)),o.length=0)},Uo=[];function wo(t){o._webidl_free=t.u,o._webidl_malloc=t.v,m=o._emscripten_bind_PeObject_getCode_0=t.w,h=o._emscripten_bind_PeObject_getName_1=t.x,S=o._emscripten_bind_PeObject_getType_0=t.y,N=o._emscripten_bind_PeCoordsys_isEqual_1=t.z,l=o._emscripten_bind_PeCoordsys_getCode_0=t.A,v=o._emscripten_bind_PeCoordsys_getName_1=t.B,M=o._emscripten_bind_PeCoordsys_getType_0=t.C,j=o._emscripten_bind_PeUnit_getUnitFactor_0=t.D,D=o._emscripten_bind_PeUnit_getCode_0=t.E,A=o._emscripten_bind_PeUnit_getName_1=t.F,R=o._emscripten_bind_PeUnit_getType_0=t.G,C=o._emscripten_bind_VoidPtr___destroy___0=t.H,G=o._emscripten_bind_PeAngunit_getCode_0=t.I,I=o._emscripten_bind_PeAngunit_getName_1=t.J,L=o._emscripten_bind_PeAngunit_getType_0=t.K,U=o._emscripten_bind_PeAngunit_getUnitFactor_0=t.L,w=o._emscripten_bind_PeDatum_getSpheroid_0=t.M,F=o._emscripten_bind_PeDatum_getCode_0=t.N,Y=o._emscripten_bind_PeDatum_getName_1=t.O,X=o._emscripten_bind_PeDatum_getType_0=t.P,x=o._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=t.Q,H=o._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=t.R,z=o._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=t.S,Z=o._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=t.T,W=o._emscripten_bind_PeDefs_get_PE_DD_MAX_0=t.U,q=o._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=t.V,B=o._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=t.W,K=o._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=t.X,k=o._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=t.Y,V=o._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=t.Z,$=o._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=t._,J=o._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=t.$,Q=o._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=t.aa,tt=o._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=t.ba,et=o._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=t.ca,ot=o._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=t.da,rt=o._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=t.ea,_t=o._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=t.fa,pt=o._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=t.ga,nt=o._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=t.ha,it=o._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=t.ia,ct=o._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=t.ja,at=o._emscripten_bind_PeDefs_get_PE_PARM_X0_0=t.ka,yt=o._emscripten_bind_PeDefs_get_PE_PARM_ND_0=t.la,st=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=t.ma,Pt=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=t.na,gt=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=t.oa,ut=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=t.pa,ft=o._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=t.qa,bt=o._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=t.ra,Et=o._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=t.sa,dt=o._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=t.ta,Tt=o._emscripten_bind_PeDouble_PeDouble_1=t.ua,Ot=o._emscripten_bind_PeDouble_get_val_0=t.va,mt=o._emscripten_bind_PeDouble_set_val_1=t.wa,ht=o._emscripten_bind_PeDouble___destroy___0=t.xa,St=o._emscripten_bind_PeFactory_initialize_1=t.ya,Nt=o._emscripten_bind_PeFactory_factoryByType_2=t.za,lt=o._emscripten_bind_PeFactory_fromString_2=t.Aa,vt=o._emscripten_bind_PeFactory_getCode_1=t.Ba,Mt=o._emscripten_bind_PeGCSExtent_PeGCSExtent_6=t.Ca,jt=o._emscripten_bind_PeGCSExtent_getLLon_0=t.Da,Dt=o._emscripten_bind_PeGCSExtent_getSLat_0=t.Ea,At=o._emscripten_bind_PeGCSExtent_getRLon_0=t.Fa,Rt=o._emscripten_bind_PeGCSExtent_getNLat_0=t.Ga,Ct=o._emscripten_bind_PeGCSExtent___destroy___0=t.Ha,Gt=o._emscripten_bind_PeGeogcs_Delete_0=t.Ia,It=o._emscripten_bind_PeGeogcs_cloneAlterUnits_1=t.Ja,Lt=o._emscripten_bind_PeGeogcs_getDatum_0=t.Ka,Ut=o._emscripten_bind_PeGeogcs_getPrimem_0=t.La,wt=o._emscripten_bind_PeGeogcs_getUnit_0=t.Ma,Ft=o._emscripten_bind_PeGeogcs_isEqual_1=t.Na,Yt=o._emscripten_bind_PeGeogcs_getCode_0=t.Oa,Xt=o._emscripten_bind_PeGeogcs_getName_1=t.Pa,xt=o._emscripten_bind_PeGeogcs_getType_0=t.Qa,Ht=o._emscripten_bind_PeGeogtran_isEqual_1=t.Ra,zt=o._emscripten_bind_PeGeogtran_getGeogcs1_0=t.Sa,Zt=o._emscripten_bind_PeGeogtran_getGeogcs2_0=t.Ta,Wt=o._emscripten_bind_PeGeogtran_getParameters_0=t.Ua,qt=o._emscripten_bind_PeGeogtran_loadConstants_0=t.Va,Bt=o._emscripten_bind_PeGeogtran_usable_0=t.Wa,Kt=o._emscripten_bind_PeGeogtran_getCode_0=t.Xa,kt=o._emscripten_bind_PeGeogtran_getName_1=t.Ya,Vt=o._emscripten_bind_PeGeogtran_getType_0=t.Za,$t=o._emscripten_bind_PeGTlistExtended_getGTlist_6=t._a,Jt=o._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=t.$a,Qt=o._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=t.ab,te=o._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=t.bb,ee=o._emscripten_bind_PeGTlistExtendedEntry_Delete_1=t.cb,oe=o._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=t.db,re=o._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=t.eb,_e=o._emscripten_bind_PeHorizon_getNump_0=t.fb,pe=o._emscripten_bind_PeHorizon_getKind_0=t.gb,ne=o._emscripten_bind_PeHorizon_getInclusive_0=t.hb,ie=o._emscripten_bind_PeHorizon_getSize_0=t.ib,ce=o._emscripten_bind_PeHorizon_getCoord_0=t.jb,ae=o._emscripten_bind_PeInteger_PeInteger_1=t.kb,ye=o._emscripten_bind_PeInteger_get_val_0=t.lb,se=o._emscripten_bind_PeInteger_set_val_1=t.mb,Pe=o._emscripten_bind_PeInteger___destroy___0=t.nb,ge=o._emscripten_bind_PeLineType_geodetic_distance_10=t.ob,ue=o._emscripten_bind_PeLineType_geodetic_coordinate_9=t.pb,fe=o._emscripten_bind_PeLineType_geodesic_coordinate_8=t.qb,be=o._emscripten_bind_PeLineType_great_elliptic_distance_9=t.rb,Ee=o._emscripten_bind_PeMath_phi_to_eta_2=t.sb,de=o._emscripten_bind_PeMath_eta_to_phi_2=t.tb,Te=o._emscripten_bind_PeMath_phi_to_phig_2=t.ub,Oe=o._emscripten_bind_PeMath_q_3=t.vb,me=o._emscripten_bind_PeMath_q90_2=t.wb,he=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=t.xb,Se=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=t.yb,Ne=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=t.zb,le=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=t.Ab,ve=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=t.Bb,Me=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=t.Cb,je=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=t.Db,De=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=t.Eb,Ae=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=t.Fb,Re=o._emscripten_bind_PeParameter_getValue_0=t.Gb,Ce=o._emscripten_bind_PeParameter_getCode_0=t.Hb,Ge=o._emscripten_bind_PeParameter_getName_1=t.Ib,Ie=o._emscripten_bind_PeParameter_getType_0=t.Jb,Le=o._emscripten_bind_PePCSInfo_getCentralMeridian_0=t.Kb,Ue=o._emscripten_bind_PePCSInfo_getDomainMinx_0=t.Lb,we=o._emscripten_bind_PePCSInfo_getDomainMiny_0=t.Mb,Fe=o._emscripten_bind_PePCSInfo_getDomainMaxx_0=t.Nb,Ye=o._emscripten_bind_PePCSInfo_getDomainMaxy_0=t.Ob,Xe=o._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=t.Pb,xe=o._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=t.Qb,He=o._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=t.Rb,ze=o._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=t.Sb,Ze=o._emscripten_bind_PePCSInfo_isDensificationNeeded_0=t.Tb,We=o._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=t.Ub,qe=o._emscripten_bind_PePCSInfo_isPannableRectangle_0=t.Vb,Be=o._emscripten_bind_PePCSInfo_generate_2=t.Wb,Ke=o._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=t.Xb,ke=o._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=t.Yb,Ve=o._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=t.Zb,$e=o._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=t._b,Je=o._emscripten_bind_PePrimem_getLongitude_0=t.$b,Qe=o._emscripten_bind_PePrimem_getCode_0=t.ac,to=o._emscripten_bind_PePrimem_getName_1=t.bc,eo=o._emscripten_bind_PePrimem_getType_0=t.cc,oo=o._emscripten_bind_PeProjcs_Delete_0=t.dc,ro=o._emscripten_bind_PeProjcs_getGeogcs_0=t.ec,_o=o._emscripten_bind_PeProjcs_getProjection_0=t.fc,po=o._emscripten_bind_PeProjcs_getParameters_0=t.gc,no=o._emscripten_bind_PeProjcs_getUnit_0=t.hc,io=o._emscripten_bind_PeProjcs_loadConstants_0=t.ic,co=o._emscripten_bind_PeProjcs_horizonGcsGenerate_0=t.jc,ao=o._emscripten_bind_PeProjcs_horizonPcsGenerate_0=t.kc,yo=o._emscripten_bind_PeProjcs_isEqual_1=t.lc,so=o._emscripten_bind_PeProjcs_getCode_0=t.mc,Po=o._emscripten_bind_PeProjcs_getName_1=t.nc,go=o._emscripten_bind_PeProjcs_getType_0=t.oc,uo=o._emscripten_bind_PeSpheroid_getAxis_0=t.pc,fo=o._emscripten_bind_PeSpheroid_getFlattening_0=t.qc,bo=o._emscripten_bind_PeSpheroid_getCode_0=t.rc,Eo=o._emscripten_bind_PeSpheroid_getName_1=t.sc,To=o._emscripten_bind_PeSpheroid_getType_0=t.tc,Oo=o._emscripten_bind_PeVersion_version_string_0=t.uc,o._pe_getPeGTlistExtendedEntrySize=t.vc,o._pe_getPeGTlistExtendedGTsSize=t.wc,o._pe_getPeHorizonSize=t.xc,o._pe_geog_to_geog=t.yc,o._pe_geog_to_proj=t.zc,o._pe_geog_to_dd=t.Ac,o._pe_dd_to_geog=t.Bc,o._pe_geog_to_ddm=t.Cc,o._pe_ddm_to_geog=t.Dc,o._pe_geog_to_dms=t.Ec,o._pe_dms_to_geog=t.Fc,o._pe_geog_to_mgrs_extended=t.Gc,o._pe_mgrs_to_geog_extended=t.Hc,o._pe_geog_to_usng=t.Ic,o._pe_usng_to_geog=t.Jc,o._pe_geog_to_utm=t.Kc,o._pe_utm_to_geog=t.Lc,o._pe_object_to_string_ext=t.Mc,o._pe_object_is_wkt2_needed=t.Nc,o._pe_proj_to_geog_center=t.Oc,mo=t.s,t.__indirect_function_table}o.getValue=function(t,e="i8"){switch(e.endsWith("*")&&(e="*"),e){case"i1":case"i8":return p[t];case"i16":return E[t>>1];case"i32":return f[t>>2];case"i64":return O[t>>3];case"float":return d[t>>2];case"double":return T[t>>3];case"*":return b[t>>2];default:s(`invalid type for getValue: ${e}`)}},o.UTF8ToString=No;var Fo,Yo={c:function(t,e,o){return 0},n:(t,e,o)=>{},i:function(t,e,o){return 0},d:function(t,e,o,r){},l:t=>{},k:(t,e)=>{},m:(t,e,o)=>{},o:()=>s(""),p:function(t,e){t=(t=>t<-9007199254740992||t>9007199254740992?NaN:Number(t))(t);var o=new Date(1e3*t);if(isNaN(o.getTime()))return 1;f[e>>2]=o.getSeconds(),f[e+4>>2]=o.getMinutes(),f[e+8>>2]=o.getHours(),f[e+12>>2]=o.getDate(),f[e+16>>2]=o.getMonth(),f[e+20>>2]=o.getFullYear()-1900,f[e+24>>2]=o.getDay();var r=0|(t=>((t=>t%4==0&&(t%100!=0||t%400==0))(t.getFullYear())?lo:vo)[t.getMonth()]+t.getDate()-1)(o);f[e+28>>2]=r,f[e+36>>2]=-60*o.getTimezoneOffset();var _=new Date(o.getFullYear(),0,1),p=new Date(o.getFullYear(),6,1).getTimezoneOffset(),n=_.getTimezoneOffset(),i=0|(p!=n&&o.getTimezoneOffset()==Math.min(n,p));return f[e+32>>2]=i,0},q:(t,e,o,r)=>{var _=(new Date).getFullYear(),p=new Date(_,0,1),n=new Date(_,6,1),i=p.getTimezoneOffset(),c=n.getTimezoneOffset(),a=Math.max(i,c);b[t>>2]=60*a,f[e>>2]=Number(i!=c);var y=t=>{var e=t>=0?"-":"+",o=Math.abs(t);return`UTC${e}${String(Math.floor(o/60)).padStart(2,"0")}${String(o%60).padStart(2,"0")}`},s=y(i),P=y(c);c<i?(jo(s,o,17),jo(P,r,17)):(jo(s,r,17),jo(P,o,17))},r:()=>Date.now(),j:t=>{var e=u.length,o=2147483648;if((t>>>=0)>o)return!1;for(var r=1;r<=4;r*=2){var _=e*(1+.2/r);_=Math.min(_,t+100663296);var p=Math.min(o,Do(Math.max(t,_),65536));if(Ao(p))return!0}return!1},f:(t,e)=>{var o=0,r=0;for(var _ of Co()){var p=e+o;b[t+r>>2]=p,o+=jo(_,p,1/0)+1,r+=4}return 0},g:(t,e)=>{var o=Co();b[t>>2]=o.length;var r=0;for(var _ of o)r+=Go(_)+1;return b[e>>2]=r,0},a:t=>52,h:(t,e,o,r)=>52,e:function(t,e,o,r){return 70},b:(t,e,o,r)=>{for(var _=0,p=0;p<o;p++){var n=b[e>>2],i=b[e+4>>2];e+=8;for(var c=0;c<i;c++)Lo(t,u[n+c]);_+=i}return b[r>>2]=_,0}};function Xo(){}function xo(t){return(t||Xo).__cache__}function Ho(t,e){var o=xo(e),r=o[t];return r||((r=Object.create((e||Xo).prototype)).ptr=t,o[t]=r)}Fo=await async function(){var t={a:Yo};return _??=P(),function(t){return function(t){return wo(Fo=t.exports),y(),Fo}(t.instance)}(await async function(t,e,o){try{var r=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(r,o)}catch(t){i(`wasm streaming compile failed: ${t}`),i("falling back to ArrayBuffer instantiation")}return async function(t,e){try{var o=await g(t);return await WebAssembly.instantiate(o,e)}catch(t){i(`failed to asynchronously prepare wasm: ${t}`),s(t)}}(e,o)}(0,_,t))}(),await async function(){c||((t=>{for(;t.length>0;)t.shift()(o)})(Uo),Fo.t())}(),Xo.prototype=Object.create(Xo.prototype),Xo.prototype.constructor=Xo,Xo.prototype.__class__=Xo,Xo.__cache__={},o.WrapperObject=Xo,o.getCache=xo,o.wrapPointer=Ho,o.castObject=function(t,e){return Ho(t.ptr,e)},o.NULL=Ho(0),o.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete xo(t.__class__)[t.ptr]},o.compare=function(t,e){return t.ptr===e.ptr},o.getPointer=function(t){return t.ptr},o.getClass=function(t){return t.__class__};var zo={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(zo.needed){for(var t=0;t<zo.temps.length;t++)o._webidl_free(zo.temps[t]);zo.temps.length=0,o._webidl_free(zo.buffer),zo.buffer=0,zo.size+=zo.needed,zo.needed=0}zo.buffer||(zo.size+=128,zo.buffer=o._webidl_malloc(zo.size),a(zo.buffer)),zo.pos=0},alloc(t,e){a(zo.buffer);var r,_=e.BYTES_PER_ELEMENT,p=t.length*_;return p=Do(p,8),zo.pos+p>=zo.size?(a(p>0),zo.needed+=p,r=o._webidl_malloc(p),zo.temps.push(r)):(r=zo.buffer+zo.pos,zo.pos+=p),r}};function Zo(t){if("string"==typeof t){for(var e=(t=>{var e=Go(t)+1,o=new Array(e);return Mo(t,o,0,o.length),o})(t),o=zo.alloc(e,p),r=0;r<e.length;r++)p[o+r]=e[r];return o}return t}function Wo(t){if("object"==typeof t){for(var e=zo.alloc(t,p),o=0;o<t.length;o++)p[e+o]=t[o];return e}return t}function qo(){throw"cannot construct a PeObject, no constructor in IDL"}function Bo(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function Ko(){throw"cannot construct a PeUnit, no constructor in IDL"}function ko(){throw"cannot construct a VoidPtr, no constructor in IDL"}function Vo(){throw"cannot construct a PeAngunit, no constructor in IDL"}function $o(){throw"cannot construct a PeDatum, no constructor in IDL"}function Jo(){throw"cannot construct a PeDefs, no constructor in IDL"}function Qo(t){t&&"object"==typeof t&&(t=t.ptr),this.ptr=Tt(t),xo(Qo)[this.ptr]=this}function tr(){throw"cannot construct a PeFactory, no constructor in IDL"}function er(t,e,o,r,_,p){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),this.ptr=Mt(t,e,o,r,_,p),xo(er)[this.ptr]=this}function or(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function rr(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function _r(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function pr(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function nr(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function ir(){throw"cannot construct a PeHorizon, no constructor in IDL"}function cr(t){t&&"object"==typeof t&&(t=t.ptr),this.ptr=ae(t),xo(cr)[this.ptr]=this}function ar(){throw"cannot construct a PeLineType, no constructor in IDL"}function yr(){throw"cannot construct a PeMath, no constructor in IDL"}function sr(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function Pr(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function gr(){throw"cannot construct a PeParameter, no constructor in IDL"}function ur(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function fr(){throw"cannot construct a PePrimem, no constructor in IDL"}function br(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Er(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function dr(){throw"cannot construct a PeVersion, no constructor in IDL"}return qo.prototype=Object.create(Xo.prototype),qo.prototype.constructor=qo,qo.prototype.__class__=qo,qo.__cache__={},o.PeObject=qo,qo.prototype.getCode=qo.prototype.getCode=function(){var t=this.ptr;return m(t)},qo.prototype.getName=qo.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(h(e,t))},qo.prototype.getType=qo.prototype.getType=function(){var t=this.ptr;return S(t)},Bo.prototype=Object.create(qo.prototype),Bo.prototype.constructor=Bo,Bo.prototype.__class__=Bo,Bo.__cache__={},o.PeCoordsys=Bo,Bo.prototype.isEqual=Bo.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!N(e,t)},Bo.prototype.getCode=Bo.prototype.getCode=function(){var t=this.ptr;return l(t)},Bo.prototype.getName=Bo.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(v(e,t))},Bo.prototype.getType=Bo.prototype.getType=function(){var t=this.ptr;return M(t)},Ko.prototype=Object.create(qo.prototype),Ko.prototype.constructor=Ko,Ko.prototype.__class__=Ko,Ko.__cache__={},o.PeUnit=Ko,Ko.prototype.getUnitFactor=Ko.prototype.getUnitFactor=function(){var t=this.ptr;return j(t)},Ko.prototype.getCode=Ko.prototype.getCode=function(){var t=this.ptr;return D(t)},Ko.prototype.getName=Ko.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(A(e,t))},Ko.prototype.getType=Ko.prototype.getType=function(){var t=this.ptr;return R(t)},ko.prototype=Object.create(Xo.prototype),ko.prototype.constructor=ko,ko.prototype.__class__=ko,ko.__cache__={},o.VoidPtr=ko,ko.prototype.__destroy__=ko.prototype.__destroy__=function(){var t=this.ptr;C(t)},Vo.prototype=Object.create(Ko.prototype),Vo.prototype.constructor=Vo,Vo.prototype.__class__=Vo,Vo.__cache__={},o.PeAngunit=Vo,Vo.prototype.getCode=Vo.prototype.getCode=function(){var t=this.ptr;return G(t)},Vo.prototype.getName=Vo.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(I(e,t))},Vo.prototype.getType=Vo.prototype.getType=function(){var t=this.ptr;return L(t)},Vo.prototype.getUnitFactor=Vo.prototype.getUnitFactor=function(){var t=this.ptr;return U(t)},$o.prototype=Object.create(qo.prototype),$o.prototype.constructor=$o,$o.prototype.__class__=$o,$o.__cache__={},o.PeDatum=$o,$o.prototype.getSpheroid=$o.prototype.getSpheroid=function(){var t=this.ptr;return Ho(w(t),Er)},$o.prototype.getCode=$o.prototype.getCode=function(){var t=this.ptr;return F(t)},$o.prototype.getName=$o.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(Y(e,t))},$o.prototype.getType=$o.prototype.getType=function(){var t=this.ptr;return X(t)},Jo.prototype=Object.create(Xo.prototype),Jo.prototype.constructor=Jo,Jo.prototype.__class__=Jo,Jo.__cache__={},o.PeDefs=Jo,Jo.prototype.get_PE_BUFFER_MAX=Jo.prototype.get_PE_BUFFER_MAX=function(){var t=this.ptr;return x(t)},Object.defineProperty(Jo.prototype,"PE_BUFFER_MAX",{get:Jo.prototype.get_PE_BUFFER_MAX}),Jo.prototype.get_PE_NAME_MAX=Jo.prototype.get_PE_NAME_MAX=function(){var t=this.ptr;return H(t)},Object.defineProperty(Jo.prototype,"PE_NAME_MAX",{get:Jo.prototype.get_PE_NAME_MAX}),Jo.prototype.get_PE_MGRS_MAX=Jo.prototype.get_PE_MGRS_MAX=function(){var t=this.ptr;return z(t)},Object.defineProperty(Jo.prototype,"PE_MGRS_MAX",{get:Jo.prototype.get_PE_MGRS_MAX}),Jo.prototype.get_PE_USNG_MAX=Jo.prototype.get_PE_USNG_MAX=function(){var t=this.ptr;return Z(t)},Object.defineProperty(Jo.prototype,"PE_USNG_MAX",{get:Jo.prototype.get_PE_USNG_MAX}),Jo.prototype.get_PE_DD_MAX=Jo.prototype.get_PE_DD_MAX=function(){var t=this.ptr;return W(t)},Object.defineProperty(Jo.prototype,"PE_DD_MAX",{get:Jo.prototype.get_PE_DD_MAX}),Jo.prototype.get_PE_DMS_MAX=Jo.prototype.get_PE_DMS_MAX=function(){var t=this.ptr;return q(t)},Object.defineProperty(Jo.prototype,"PE_DMS_MAX",{get:Jo.prototype.get_PE_DMS_MAX}),Jo.prototype.get_PE_DDM_MAX=Jo.prototype.get_PE_DDM_MAX=function(){var t=this.ptr;return B(t)},Object.defineProperty(Jo.prototype,"PE_DDM_MAX",{get:Jo.prototype.get_PE_DDM_MAX}),Jo.prototype.get_PE_UTM_MAX=Jo.prototype.get_PE_UTM_MAX=function(){var t=this.ptr;return K(t)},Object.defineProperty(Jo.prototype,"PE_UTM_MAX",{get:Jo.prototype.get_PE_UTM_MAX}),Jo.prototype.get_PE_PARM_MAX=Jo.prototype.get_PE_PARM_MAX=function(){var t=this.ptr;return k(t)},Object.defineProperty(Jo.prototype,"PE_PARM_MAX",{get:Jo.prototype.get_PE_PARM_MAX}),Jo.prototype.get_PE_TYPE_NONE=Jo.prototype.get_PE_TYPE_NONE=function(){var t=this.ptr;return V(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_NONE",{get:Jo.prototype.get_PE_TYPE_NONE}),Jo.prototype.get_PE_TYPE_GEOGCS=Jo.prototype.get_PE_TYPE_GEOGCS=function(){var t=this.ptr;return $(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_GEOGCS",{get:Jo.prototype.get_PE_TYPE_GEOGCS}),Jo.prototype.get_PE_TYPE_PROJCS=Jo.prototype.get_PE_TYPE_PROJCS=function(){var t=this.ptr;return J(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_PROJCS",{get:Jo.prototype.get_PE_TYPE_PROJCS}),Jo.prototype.get_PE_TYPE_GEOGTRAN=Jo.prototype.get_PE_TYPE_GEOGTRAN=function(){var t=this.ptr;return Q(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_GEOGTRAN",{get:Jo.prototype.get_PE_TYPE_GEOGTRAN}),Jo.prototype.get_PE_TYPE_COORDSYS=Jo.prototype.get_PE_TYPE_COORDSYS=function(){var t=this.ptr;return tt(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_COORDSYS",{get:Jo.prototype.get_PE_TYPE_COORDSYS}),Jo.prototype.get_PE_TYPE_UNIT=Jo.prototype.get_PE_TYPE_UNIT=function(){var t=this.ptr;return et(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_UNIT",{get:Jo.prototype.get_PE_TYPE_UNIT}),Jo.prototype.get_PE_TYPE_LINUNIT=Jo.prototype.get_PE_TYPE_LINUNIT=function(){var t=this.ptr;return ot(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_LINUNIT",{get:Jo.prototype.get_PE_TYPE_LINUNIT}),Jo.prototype.get_PE_STR_OPTS_NONE=Jo.prototype.get_PE_STR_OPTS_NONE=function(){var t=this.ptr;return rt(t)},Object.defineProperty(Jo.prototype,"PE_STR_OPTS_NONE",{get:Jo.prototype.get_PE_STR_OPTS_NONE}),Jo.prototype.get_PE_STR_AUTH_NONE=Jo.prototype.get_PE_STR_AUTH_NONE=function(){var t=this.ptr;return _t(t)},Object.defineProperty(Jo.prototype,"PE_STR_AUTH_NONE",{get:Jo.prototype.get_PE_STR_AUTH_NONE}),Jo.prototype.get_PE_STR_AUTH_TOP=Jo.prototype.get_PE_STR_AUTH_TOP=function(){var t=this.ptr;return pt(t)},Object.defineProperty(Jo.prototype,"PE_STR_AUTH_TOP",{get:Jo.prototype.get_PE_STR_AUTH_TOP}),Jo.prototype.get_PE_STR_NAME_CANON=Jo.prototype.get_PE_STR_NAME_CANON=function(){var t=this.ptr;return nt(t)},Object.defineProperty(Jo.prototype,"PE_STR_NAME_CANON",{get:Jo.prototype.get_PE_STR_NAME_CANON}),Jo.prototype.get_PE_STR_FMT_WKT=Jo.prototype.get_PE_STR_FMT_WKT=function(){var t=this.ptr;return it(t)},Object.defineProperty(Jo.prototype,"PE_STR_FMT_WKT",{get:Jo.prototype.get_PE_STR_FMT_WKT}),Jo.prototype.get_PE_STR_FMT_WKT2=Jo.prototype.get_PE_STR_FMT_WKT2=function(){var t=this.ptr;return ct(t)},Object.defineProperty(Jo.prototype,"PE_STR_FMT_WKT2",{get:Jo.prototype.get_PE_STR_FMT_WKT2}),Jo.prototype.get_PE_PARM_X0=Jo.prototype.get_PE_PARM_X0=function(){var t=this.ptr;return at(t)},Object.defineProperty(Jo.prototype,"PE_PARM_X0",{get:Jo.prototype.get_PE_PARM_X0}),Jo.prototype.get_PE_PARM_ND=Jo.prototype.get_PE_PARM_ND=function(){var t=this.ptr;return yt(t)},Object.defineProperty(Jo.prototype,"PE_PARM_ND",{get:Jo.prototype.get_PE_PARM_ND}),Jo.prototype.get_PE_TRANSFORM_1_TO_2=Jo.prototype.get_PE_TRANSFORM_1_TO_2=function(){var t=this.ptr;return st(t)},Object.defineProperty(Jo.prototype,"PE_TRANSFORM_1_TO_2",{get:Jo.prototype.get_PE_TRANSFORM_1_TO_2}),Jo.prototype.get_PE_TRANSFORM_2_TO_1=Jo.prototype.get_PE_TRANSFORM_2_TO_1=function(){var t=this.ptr;return Pt(t)},Object.defineProperty(Jo.prototype,"PE_TRANSFORM_2_TO_1",{get:Jo.prototype.get_PE_TRANSFORM_2_TO_1}),Jo.prototype.get_PE_TRANSFORM_P_TO_G=Jo.prototype.get_PE_TRANSFORM_P_TO_G=function(){var t=this.ptr;return gt(t)},Object.defineProperty(Jo.prototype,"PE_TRANSFORM_P_TO_G",{get:Jo.prototype.get_PE_TRANSFORM_P_TO_G}),Jo.prototype.get_PE_TRANSFORM_G_TO_P=Jo.prototype.get_PE_TRANSFORM_G_TO_P=function(){var t=this.ptr;return ut(t)},Object.defineProperty(Jo.prototype,"PE_TRANSFORM_G_TO_P",{get:Jo.prototype.get_PE_TRANSFORM_G_TO_P}),Jo.prototype.get_PE_HORIZON_RECT=Jo.prototype.get_PE_HORIZON_RECT=function(){var t=this.ptr;return ft(t)},Object.defineProperty(Jo.prototype,"PE_HORIZON_RECT",{get:Jo.prototype.get_PE_HORIZON_RECT}),Jo.prototype.get_PE_HORIZON_POLY=Jo.prototype.get_PE_HORIZON_POLY=function(){var t=this.ptr;return bt(t)},Object.defineProperty(Jo.prototype,"PE_HORIZON_POLY",{get:Jo.prototype.get_PE_HORIZON_POLY}),Jo.prototype.get_PE_HORIZON_LINE=Jo.prototype.get_PE_HORIZON_LINE=function(){var t=this.ptr;return Et(t)},Object.defineProperty(Jo.prototype,"PE_HORIZON_LINE",{get:Jo.prototype.get_PE_HORIZON_LINE}),Jo.prototype.get_PE_HORIZON_DELTA=Jo.prototype.get_PE_HORIZON_DELTA=function(){var t=this.ptr;return dt(t)},Object.defineProperty(Jo.prototype,"PE_HORIZON_DELTA",{get:Jo.prototype.get_PE_HORIZON_DELTA}),Qo.prototype=Object.create(Xo.prototype),Qo.prototype.constructor=Qo,Qo.prototype.__class__=Qo,Qo.__cache__={},o.PeDouble=Qo,Qo.prototype.get_val=Qo.prototype.get_val=function(){var t=this.ptr;return Ot(t)},Qo.prototype.set_val=Qo.prototype.set_val=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),mt(e,t)},Object.defineProperty(Qo.prototype,"val",{get:Qo.prototype.get_val,set:Qo.prototype.set_val}),Qo.prototype.__destroy__=Qo.prototype.__destroy__=function(){var t=this.ptr;ht(t)},tr.prototype=Object.create(Xo.prototype),tr.prototype.constructor=tr,tr.prototype.__class__=tr,tr.__cache__={},o.PeFactory=tr,tr.prototype.initialize=tr.prototype.initialize=function(t){zo.prepare(),t=t&&"object"==typeof t?t.ptr:Zo(t),St(t)},tr.prototype.factoryByType=tr.prototype.factoryByType=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Ho(Nt(t,e),qo)},tr.prototype.fromString=tr.prototype.fromString=function(t,e){return zo.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:Zo(e),Ho(lt(t,e),qo)},tr.prototype.getCode=tr.prototype.getCode=function(t){return t&&"object"==typeof t&&(t=t.ptr),vt(t)},er.prototype=Object.create(Xo.prototype),er.prototype.constructor=er,er.prototype.__class__=er,er.__cache__={},o.PeGCSExtent=er,er.prototype.getLLon=er.prototype.getLLon=function(){var t=this.ptr;return jt(t)},er.prototype.getSLat=er.prototype.getSLat=function(){var t=this.ptr;return Dt(t)},er.prototype.getRLon=er.prototype.getRLon=function(){var t=this.ptr;return At(t)},er.prototype.getNLat=er.prototype.getNLat=function(){var t=this.ptr;return Rt(t)},er.prototype.__destroy__=er.prototype.__destroy__=function(){var t=this.ptr;Ct(t)},or.prototype=Object.create(Bo.prototype),or.prototype.constructor=or,or.prototype.__class__=or,or.__cache__={},o.PeGeogcs=or,or.prototype.Delete=or.prototype.Delete=function(){var t=this.ptr;Gt(t)},or.prototype.cloneAlterUnits=or.prototype.cloneAlterUnits=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Ho(It(e,t),or)},or.prototype.getDatum=or.prototype.getDatum=function(){var t=this.ptr;return Ho(Lt(t),$o)},or.prototype.getPrimem=or.prototype.getPrimem=function(){var t=this.ptr;return Ho(Ut(t),fr)},or.prototype.getUnit=or.prototype.getUnit=function(){var t=this.ptr;return Ho(wt(t),Vo)},or.prototype.isEqual=or.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!Ft(e,t)},or.prototype.getCode=or.prototype.getCode=function(){var t=this.ptr;return Yt(t)},or.prototype.getName=or.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(Xt(e,t))},or.prototype.getType=or.prototype.getType=function(){var t=this.ptr;return xt(t)},rr.prototype=Object.create(qo.prototype),rr.prototype.constructor=rr,rr.prototype.__class__=rr,rr.__cache__={},o.PeGeogtran=rr,rr.prototype.isEqual=rr.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!Ht(e,t)},rr.prototype.getGeogcs1=rr.prototype.getGeogcs1=function(){var t=this.ptr;return Ho(zt(t),or)},rr.prototype.getGeogcs2=rr.prototype.getGeogcs2=function(){var t=this.ptr;return Ho(Zt(t),or)},rr.prototype.getParameters=rr.prototype.getParameters=function(){var t=this.ptr;return Wt(t)},rr.prototype.loadConstants=rr.prototype.loadConstants=function(){var t=this.ptr;return!!qt(t)},rr.prototype.usable=rr.prototype.usable=function(){var t=this.ptr;return!!Bt(t)},rr.prototype.getCode=rr.prototype.getCode=function(){var t=this.ptr;return Kt(t)},rr.prototype.getName=rr.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(kt(e,t))},rr.prototype.getType=rr.prototype.getType=function(){var t=this.ptr;return Vt(t)},_r.prototype=Object.create(Xo.prototype),_r.prototype.constructor=_r,_r.prototype.__class__=_r,_r.__cache__={},o.PeGTlistExtended=_r,_r.prototype.getGTlist=_r.prototype.getGTlist=function(t,e,o,r,_,p){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),Ho($t(t,e,o,r,_,p),pr)},_r.prototype.get_PE_GTLIST_OPTS_COMMON=_r.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var t=this.ptr;return Jt(t)},Object.defineProperty(_r.prototype,"PE_GTLIST_OPTS_COMMON",{get:_r.prototype.get_PE_GTLIST_OPTS_COMMON}),pr.prototype=Object.create(Xo.prototype),pr.prototype.constructor=pr,pr.prototype.__class__=pr,pr.__cache__={},o.PeGTlistExtendedEntry=pr,pr.prototype.getEntries=pr.prototype.getEntries=function(){var t=this.ptr;return Ho(Qt(t),nr)},pr.prototype.getSteps=pr.prototype.getSteps=function(){var t=this.ptr;return te(t)},pr.prototype.Delete=pr.prototype.Delete=function(t){t&&"object"==typeof t&&(t=t.ptr),ee(t)},nr.prototype=Object.create(Xo.prototype),nr.prototype.constructor=nr,nr.prototype.__class__=nr,nr.__cache__={},o.PeGTlistExtendedGTs=nr,nr.prototype.getDirection=nr.prototype.getDirection=function(){var t=this.ptr;return oe(t)},nr.prototype.getGeogtran=nr.prototype.getGeogtran=function(){var t=this.ptr;return Ho(re(t),rr)},ir.prototype=Object.create(Xo.prototype),ir.prototype.constructor=ir,ir.prototype.__class__=ir,ir.__cache__={},o.PeHorizon=ir,ir.prototype.getNump=ir.prototype.getNump=function(){var t=this.ptr;return _e(t)},ir.prototype.getKind=ir.prototype.getKind=function(){var t=this.ptr;return pe(t)},ir.prototype.getInclusive=ir.prototype.getInclusive=function(){var t=this.ptr;return ne(t)},ir.prototype.getSize=ir.prototype.getSize=function(){var t=this.ptr;return ie(t)},ir.prototype.getCoord=ir.prototype.getCoord=function(){var t=this.ptr;return ce(t)},cr.prototype=Object.create(Xo.prototype),cr.prototype.constructor=cr,cr.prototype.__class__=cr,cr.__cache__={},o.PeInteger=cr,cr.prototype.get_val=cr.prototype.get_val=function(){var t=this.ptr;return ye(t)},cr.prototype.set_val=cr.prototype.set_val=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),se(e,t)},Object.defineProperty(cr.prototype,"val",{get:cr.prototype.get_val,set:cr.prototype.set_val}),cr.prototype.__destroy__=cr.prototype.__destroy__=function(){var t=this.ptr;Pe(t)},ar.prototype=Object.create(Xo.prototype),ar.prototype.constructor=ar,ar.prototype.__class__=ar,ar.__cache__={},o.PeLineType=ar,ar.prototype.geodetic_distance=ar.prototype.geodetic_distance=function(t,e,o,r,_,p,n,i,c,a){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),a&&"object"==typeof a&&(a=a.ptr),ge(t,e,o,r,_,p,n,i,c,a)},ar.prototype.geodetic_coordinate=ar.prototype.geodetic_coordinate=function(t,e,o,r,_,p,n,i,c){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),ue(t,e,o,r,_,p,n,i,c)},ar.prototype.geodesic_coordinate=ar.prototype.geodesic_coordinate=function(t,e,o,r,_,p,n,i){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),fe(t,e,o,r,_,p,n,i)},ar.prototype.great_elliptic_distance=ar.prototype.great_elliptic_distance=function(t,e,o,r,_,p,n,i,c){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),be(t,e,o,r,_,p,n,i,c)},yr.prototype=Object.create(Xo.prototype),yr.prototype.constructor=yr,yr.prototype.__class__=yr,yr.__cache__={},o.PeMath=yr,yr.prototype.phi_to_eta=yr.prototype.phi_to_eta=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Ee(t,e)},yr.prototype.eta_to_phi=yr.prototype.eta_to_phi=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),de(t,e)},yr.prototype.phi_to_phig=yr.prototype.phi_to_phig=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Te(t,e)},yr.prototype.q=yr.prototype.q=function(t,e,o){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),Oe(t,e,o)},yr.prototype.q90=yr.prototype.q90=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),me(t,e)},sr.prototype=Object.create(Xo.prototype),sr.prototype.constructor=sr,sr.prototype.__class__=sr,sr.__cache__={},o.PeNotationMgrs=sr,sr.prototype.get_PE_MGRS_STYLE_NEW=sr.prototype.get_PE_MGRS_STYLE_NEW=function(){var t=this.ptr;return he(t)},Object.defineProperty(sr.prototype,"PE_MGRS_STYLE_NEW",{get:sr.prototype.get_PE_MGRS_STYLE_NEW}),sr.prototype.get_PE_MGRS_STYLE_OLD=sr.prototype.get_PE_MGRS_STYLE_OLD=function(){var t=this.ptr;return Se(t)},Object.defineProperty(sr.prototype,"PE_MGRS_STYLE_OLD",{get:sr.prototype.get_PE_MGRS_STYLE_OLD}),sr.prototype.get_PE_MGRS_STYLE_AUTO=sr.prototype.get_PE_MGRS_STYLE_AUTO=function(){var t=this.ptr;return Ne(t)},Object.defineProperty(sr.prototype,"PE_MGRS_STYLE_AUTO",{get:sr.prototype.get_PE_MGRS_STYLE_AUTO}),sr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=sr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var t=this.ptr;return le(t)},Object.defineProperty(sr.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:sr.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),sr.prototype.get_PE_MGRS_ADD_SPACES=sr.prototype.get_PE_MGRS_ADD_SPACES=function(){var t=this.ptr;return ve(t)},Object.defineProperty(sr.prototype,"PE_MGRS_ADD_SPACES",{get:sr.prototype.get_PE_MGRS_ADD_SPACES}),Pr.prototype=Object.create(Xo.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},o.PeNotationUtm=Pr,Pr.prototype.get_PE_UTM_OPTS_NONE=Pr.prototype.get_PE_UTM_OPTS_NONE=function(){var t=this.ptr;return Me(t)},Object.defineProperty(Pr.prototype,"PE_UTM_OPTS_NONE",{get:Pr.prototype.get_PE_UTM_OPTS_NONE}),Pr.prototype.get_PE_UTM_OPTS_NS=Pr.prototype.get_PE_UTM_OPTS_NS=function(){var t=this.ptr;return je(t)},Object.defineProperty(Pr.prototype,"PE_UTM_OPTS_NS",{get:Pr.prototype.get_PE_UTM_OPTS_NS}),Pr.prototype.get_PE_UTM_OPTS_NS_STRICT=Pr.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var t=this.ptr;return De(t)},Object.defineProperty(Pr.prototype,"PE_UTM_OPTS_NS_STRICT",{get:Pr.prototype.get_PE_UTM_OPTS_NS_STRICT}),Pr.prototype.get_PE_UTM_OPTS_ADD_SPACES=Pr.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var t=this.ptr;return Ae(t)},Object.defineProperty(Pr.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:Pr.prototype.get_PE_UTM_OPTS_ADD_SPACES}),gr.prototype=Object.create(qo.prototype),gr.prototype.constructor=gr,gr.prototype.__class__=gr,gr.__cache__={},o.PeParameter=gr,gr.prototype.getValue=gr.prototype.getValue=function(){var t=this.ptr;return Re(t)},gr.prototype.getCode=gr.prototype.getCode=function(){var t=this.ptr;return Ce(t)},gr.prototype.getName=gr.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(Ge(e,t))},gr.prototype.getType=gr.prototype.getType=function(){var t=this.ptr;return Ie(t)},ur.prototype=Object.create(Xo.prototype),ur.prototype.constructor=ur,ur.prototype.__class__=ur,ur.__cache__={},o.PePCSInfo=ur,ur.prototype.getCentralMeridian=ur.prototype.getCentralMeridian=function(){var t=this.ptr;return Le(t)},ur.prototype.getDomainMinx=ur.prototype.getDomainMinx=function(){var t=this.ptr;return Ue(t)},ur.prototype.getDomainMiny=ur.prototype.getDomainMiny=function(){var t=this.ptr;return we(t)},ur.prototype.getDomainMaxx=ur.prototype.getDomainMaxx=function(){var t=this.ptr;return Fe(t)},ur.prototype.getDomainMaxy=ur.prototype.getDomainMaxy=function(){var t=this.ptr;return Ye(t)},ur.prototype.getNorthPoleLocation=ur.prototype.getNorthPoleLocation=function(){var t=this.ptr;return Xe(t)},ur.prototype.getNorthPoleGeometry=ur.prototype.getNorthPoleGeometry=function(){var t=this.ptr;return xe(t)},ur.prototype.getSouthPoleLocation=ur.prototype.getSouthPoleLocation=function(){var t=this.ptr;return He(t)},ur.prototype.getSouthPoleGeometry=ur.prototype.getSouthPoleGeometry=function(){var t=this.ptr;return ze(t)},ur.prototype.isDensificationNeeded=ur.prototype.isDensificationNeeded=function(){var t=this.ptr;return!!Ze(t)},ur.prototype.isGcsHorizonMultiOverlap=ur.prototype.isGcsHorizonMultiOverlap=function(){var t=this.ptr;return!!We(t)},ur.prototype.isPannableRectangle=ur.prototype.isPannableRectangle=function(){var t=this.ptr;return!!qe(t)},ur.prototype.generate=ur.prototype.generate=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Ho(Be(t,e),ur)},ur.prototype.get_PE_PCSINFO_OPTION_NONE=ur.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var t=this.ptr;return Ke(t)},Object.defineProperty(ur.prototype,"PE_PCSINFO_OPTION_NONE",{get:ur.prototype.get_PE_PCSINFO_OPTION_NONE}),ur.prototype.get_PE_PCSINFO_OPTION_DOMAIN=ur.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var t=this.ptr;return ke(t)},Object.defineProperty(ur.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:ur.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),ur.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=ur.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var t=this.ptr;return Ve(t)},Object.defineProperty(ur.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:ur.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),ur.prototype.get_PE_POLE_POINT=ur.prototype.get_PE_POLE_POINT=function(){var t=this.ptr;return $e(t)},Object.defineProperty(ur.prototype,"PE_POLE_POINT",{get:ur.prototype.get_PE_POLE_POINT}),fr.prototype=Object.create(qo.prototype),fr.prototype.constructor=fr,fr.prototype.__class__=fr,fr.__cache__={},o.PePrimem=fr,fr.prototype.getLongitude=fr.prototype.getLongitude=function(){var t=this.ptr;return Je(t)},fr.prototype.getCode=fr.prototype.getCode=function(){var t=this.ptr;return Qe(t)},fr.prototype.getName=fr.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(to(e,t))},fr.prototype.getType=fr.prototype.getType=function(){var t=this.ptr;return eo(t)},br.prototype=Object.create(Bo.prototype),br.prototype.constructor=br,br.prototype.__class__=br,br.__cache__={},o.PeProjcs=br,br.prototype.Delete=br.prototype.Delete=function(){var t=this.ptr;oo(t)},br.prototype.getGeogcs=br.prototype.getGeogcs=function(){var t=this.ptr;return Ho(ro(t),or)},br.prototype.getProjection=br.prototype.getProjection=function(){var t=this.ptr;return Ho(_o(t),qo)},br.prototype.getParameters=br.prototype.getParameters=function(){var t=this.ptr;return po(t)},br.prototype.getUnit=br.prototype.getUnit=function(){var t=this.ptr;return Ho(no(t),Ko)},br.prototype.loadConstants=br.prototype.loadConstants=function(){var t=this.ptr;return!!io(t)},br.prototype.horizonGcsGenerate=br.prototype.horizonGcsGenerate=function(){var t=this.ptr;return Ho(co(t),ir)},br.prototype.horizonPcsGenerate=br.prototype.horizonPcsGenerate=function(){var t=this.ptr;return Ho(ao(t),ir)},br.prototype.isEqual=br.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!yo(e,t)},br.prototype.getCode=br.prototype.getCode=function(){var t=this.ptr;return so(t)},br.prototype.getName=br.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(Po(e,t))},br.prototype.getType=br.prototype.getType=function(){var t=this.ptr;return go(t)},Er.prototype=Object.create(qo.prototype),Er.prototype.constructor=Er,Er.prototype.__class__=Er,Er.__cache__={},o.PeSpheroid=Er,Er.prototype.getAxis=Er.prototype.getAxis=function(){var t=this.ptr;return uo(t)},Er.prototype.getFlattening=Er.prototype.getFlattening=function(){var t=this.ptr;return fo(t)},Er.prototype.getCode=Er.prototype.getCode=function(){var t=this.ptr;return bo(t)},Er.prototype.getName=Er.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(Eo(e,t))},Er.prototype.getType=Er.prototype.getType=function(){var t=this.ptr;return To(t)},dr.prototype=Object.create(Xo.prototype),dr.prototype.constructor=dr,dr.prototype.__class__=dr,dr.__cache__={},o.PeVersion=dr,dr.prototype.version_string=dr.prototype.version_string=function(){var t=this.ptr;return No(Oo(t))},o.ensureCache=zo,o.ensureString=Zo,o.ensureInt8=Wo,o.ensureInt16=function(t){if("object"==typeof t){for(var e=zo.alloc(t,E),o=e/2,r=0;r<t.length;r++)E[o+r]=t[r];return e}return t},o.ensureInt32=function(t){if("object"==typeof t){for(var e=zo.alloc(t,f),o=e/4,r=0;r<t.length;r++)f[o+r]=t[r];return e}return t},o.ensureFloat32=function(t){if("object"==typeof t){for(var e=zo.alloc(t,d),o=e/4,r=0;r<t.length;r++)d[o+r]=t[r];return e}return t},o.ensureFloat64=function(t){if("object"==typeof t){for(var e=zo.alloc(t,T),o=e/8,r=0;r<t.length;r++)T[o+r]=t[r];return e}return t},o}o.d(e,{default:()=>r})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6558],{6558(e,t,n){n.r(t),n.d(t,{OperatorGeodeticArea:()=>q});var s=n(55537),i=n(88885),a=n(5247),_=n(39117),r=n(83661),h=n(79187),o=n(95213),m=n(31139),l=n(47591),u=n(5482),p=n(11878),c=n(22024);class g{m_startPt;m_endPt;m_cE2;m_cE;m_c1By2e;m_cRpu;isPcs;PEProjcs;m_points;constructor(e,t,n,s,i=100){this.m_startPt=e.clone(),this.m_endPt=t.clone(),this.m_cE2=s,this.m_cE=Math.sqrt(this.m_cE2),this.m_c1By2e=1/(2*this.m_cE),this.m_cRpu=n.getGCS().getUnit().getUnitToBaseFactor(),this.isPcs=2===n.getCoordinateSystemType(),this.PEProjcs=n.getPECoordSys(),this.m_points=(0,r.d)(2*i,Number.NaN)}setSegmentEndPoints(e,t){this.m_startPt.assign(e),this.m_endPt.assign(t)}makeFunctor(){return e=>{const t=[0,0];t[0]=this.m_startPt.x*(1-e)+this.m_endPt.x*e,t[1]=this.m_startPt.y*(1-e)+this.m_endPt.y*e,this.isPcs&&_.aw.projToGeogCenter(this.PEProjcs,1,t,0);const n=Math.sin(t[1]*this.m_cRpu);return 0===this.m_cE2?n:-Math.log((1-this.m_cE*n)/(1+this.m_cE*n))*this.m_c1By2e+n/(1-this.m_cE2*n*n)}}}function d(e,t,n,s,i){const r=(new a.O).execute(e,t,0,0,i);let o;o=s?(new _.O).execute(r,s,i):r;const m=1===n.getUnit().getUnitToBaseFactor()?Math.PI/180:1,l=new h.Envelope2D;o.queryEnvelope(l);const u=new h.Envelope2D,p=new h.Envelope2D,c=new h.Envelope2D;u.setCoords({xmin:l.xmin,ymin:75*m,xmax:l.xmax,ymax:90*m}),p.setCoords({xmin:l.xmin,ymin:-60*m,xmax:l.xmax,ymax:75*m}),c.setCoords({xmin:l.xmin,ymin:-90*m,xmax:l.xmax,ymax:-60*m}),u.inflateCoords(.01*u.width(),0),p.inflateCoords(.01*p.width(),0),c.inflateCoords(.01*c.width(),0);let g=0;return g+=P(o,u,n,i),g+=P(o,p,n,i),g+=P(o,c,n,i),g}function P(e,t,n,i){const a=(new m.O).execute(e,t,n,i);if(null!==a&&!a.isEmpty()){const e=new h.Envelope2D;a.queryEnvelope(e);const{first:t,second:o}=function(e,t){const n=function(e,t){const n=e.getUnit().getUnitToBaseFactor(),i=t.getCenter();i.scale(180*n/Math.PI);const a=new r.P;a.x=0,a.y=0;let h=0;if(0===h){i.y>45?(a.y=r.l,h=0):i.y<-45?(a.y=-r.l,h=1):i.x>=45&&i.x<135?(a.x=r.l,h=2):i.x>=135||i.x<-135?(a.x=r.l,h=3):i.x<-45&&i.x>=-135?(a.x=-r.l,h=4):(a.x=0,h=5);const e=n*Math.sqrt((0,r.a)(t.xmin-t.xmax)+(0,r.a)(t.ymin-t.ymax)),s=a.clone(),_=t.getCenter();if(_.scale(n),h<2&&(s.x=_.x),r.P.distance(s,_)+.5*e>r.l)return null}const o=E[h];if(null!==o&&o.getGCS().equalHorizontal(e))return o;const m=e.getText(),l=a.x,u=a.y;let p=0,c=-1;6!==h?c=_.aG.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:((0,s.g)(false),p=0,c=_.aG.PE_PRJ_CYLINDRICAL_EQAREA);const g=(0,_.j)("EqualAreaPCS");let d;c===_.aG.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?d=`PROJCS["${g}",${m},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${l}],PARAMETER["Latitude_of_Origin",${u}],UNIT["Meter",1.0]]`:c===_.aG.PE_PRJ_CYLINDRICAL_EQAREA?d=`PROJCS["${g}",${m},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${l}],PARAMETER["Standard_Parallel_1",${p}],PARAMETER["Latitude_of_Origin",${u}],UNIT["Meter",1.0]]`:(0,s.d)("getEqualAreaPcsFixed");const P=(0,_.b)(d);return E[h]&&E[h].destroy(),E[h]=P,P}(e,t);if(null!==n)return(0,r.o)(n,!1);const i=e.getText(),a=e.getUnit().getUnitToBaseFactor(),h=(t.xmin+t.width()/2)*a,o=(t.ymin+t.height()/2)*a;let m=0,l=0,u=-1;t.ymin*a>=75*Math.PI/180||t.ymax*a<=-60*Math.PI/180?u=_.aG.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:t.ymin>0||t.ymax<0?(m=(t.ymin+1/3*t.height())*a,l=(t.ymin+2/3*t.height())*a,u=_.aG.PE_PRJ_ALBERS):(m=(t.ymin+2/3*t.height())*a,u=_.aG.PE_PRJ_CYLINDRICAL_EQAREA);const p=(0,_.j)("EqualAreaPCS");let c;return u===_.aG.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?c=`PROJCS["${p}",${i},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${h}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:u===_.aG.PE_PRJ_ALBERS?c=`PROJCS["${p}",${i},PROJECTION["Albers"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${h}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Standard_Parallel_2",${l}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:u===_.aG.PE_PRJ_CYLINDRICAL_EQAREA?c=`PROJCS["${p}",${i},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${h}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:(0,s.d)("getEqualAreaPCSInstance"),(0,r.o)((0,_.b)(c),!0)}(n,e),m=(0,_.y)(n,t,null),l=(new _.O).execute(a,m,i).calculateArea2D();return o&&t.destroy(),l}return 0}const E=[null,null,null,null,null,null,null];class f{getOperatorType(){return 10314}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){if(0===t.getCoordinateSystemType()&&(0,s.a)(""),e.isEmpty()||e.getDimension()<2)return 0;if((0,s.c)(e),e.getGeometryType()===s.G.enumEnvelope){const s=new i.P;return s.addEnvelope(e,!1),this.execute(s,t,n)}let u=e;e.getDescription().getAttributeCount()>1&&(u=e.clone(),u.dropAllAttributes());const p=(new a.O).execute(u,0,t.getTolerance(0),0,n);let c=null;const P=t.getGCS();P!==t&&(c=(0,_.y)(t,P));let E=(new _.D).execute(p,t,!1,n);return E.isEmpty()?0:(E===e&&(E=e.clone()),t.isPannable()?function(e,t,n){const s=new h.Envelope2D;e.queryEnvelope(s);const a=(0,o.c)(t,s,!0).total(),l=t.getPannableExtent();l.xmin=s.xmin-10*a,l.xmax=s.xmax+10*a;const u=(new m.O).execute(e,l,t,n).getImpl().querySegmentIterator();u.stripAttributes();const p=(0,_.r)();t.querySpheroidData(p);const c=p.e2,d=0===c?2:1,P=new r.P(0,0),E=new r.P(0,0),f=new r.K(0),S=new g(P,E,t,c,100);for(;u.nextPath();)for(;u.hasNextSegment();){const e=u.nextSegment();P.assign(e.getStartXY()),E.assign(e.getEndXY()),S.setSegmentEndPoints(P,E);const t=(0,i.x)(6,0,1,1e-12,1e-15,S.makeFunctor());f.pe((E.x-P.x)*t)}const y=p.majorSemiAxis;return d*y*y*(1-c)*Math.PI*f.getResult()/t.getPannableExtent().width()}(E,t,n):function(e,t,n,s,i){const a=function(e,t,n){const s=e.calculateLength2D(),i=(new l.O).execute(e,t,n)/25e3,a=s/e.getSegmentCount()*2;let _=Math.min(a,s/i);return 0===_&&(_=1),(0,r.o)(_,s/_)}(e,t,i);let _=d(e,a.first,n,s,i),h=1,o=0,m=0;do{if(h++,a.first*=.5,a.first<50*t.getTolerance(0))return _;a.second*=2,m=d(e,a.first,n,s,i),o=Math.abs(m-_),_=m}while(Math.abs(_)>1&&o>1e-8*Math.abs(_)&&(a.second<65e3&&h<8||h<4));return m}(E,t,P,c,n))}}function S(){return{m_p_PCS:new r.P,m_factor:Number.NaN,setValues:y,assign:x}}function y(e,t){this.m_factor=e,this.m_p_PCS.assign(t)}function x(e){this.m_factor=e.m_factor,this.m_p_PCS.assign(e.m_p_PCS)}class A{m_ptStart=new o.k;m_ptEnd=new o.k;m_deltaX;m_deltaY;m_e;m_e2;m_c1MinusE2;m_baseA;constructor(e,t,n,s){this.m_ptStart.assign(t),this.m_ptEnd.assign(n),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y,this.m_e=Math.sqrt(e),this.m_e2=e,this.m_c1MinusE2=1-e;const i=Math.sin(s);let a;a=0===this.m_e2?2*i:i*((0,r.z)(this.m_e*i)+1/(1-this.m_e2*i*i)),this.m_baseA=a}setSegmentEndPoints(e,t){this.m_ptStart.assign(e),this.m_ptEnd.assign(t),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y}makeFunctor(){return e=>{const t=1-e,n=t*this.m_ptStart.x+e*this.m_ptEnd.x,s=t*this.m_ptStart.y+e*this.m_ptEnd.y,i=t*this.m_ptStart.z+e*this.m_ptEnd.z,a=n*n+s*s,_=i/Math.sqrt(i*i+this.m_c1MinusE2*this.m_c1MinusE2*a);let h;return h=0===this.m_e2?2*_:_*((0,r.z)(this.m_e*_)+1/(1-this.m_e2*_*_)),(this.m_deltaY*n-this.m_deltaX*s)/a*(h-this.m_baseA)}}}function R(){return{sin_phi:Number.NaN,one_p_sin_phi:Number.NaN,one_m_sin_phi:Number.NaN,one_m_e_2_sin_2_phi:Number.NaN,sin_half_phi_pf:Number.NaN,sin_half_phi_pz:Number.NaN,sin_half_asin_e_sin_phi_pf:Number.NaN,sin_half_asin_e_sin_phi_pz:Number.NaN,atanh_sin_phi:Number.NaN,atanh_esin_phi:Number.NaN,make_negative:!1,initialize:C,changeSign:M,assign:T,clone:w}}function C(e,t,n,s){const i=.5*e;this.sin_phi=Math.sin(e);const a=t*this.sin_phi,_=.5*Math.asin(a);this.one_p_sin_phi=1+this.sin_phi,this.one_m_sin_phi=1-this.sin_phi,this.one_m_e_2_sin_2_phi=(1+a)*(1-a),this.sin_half_phi_pf=Math.sin(i+n),this.sin_half_phi_pz=Math.sin(i+s),this.sin_half_asin_e_sin_phi_pf=Math.sin(_+n),this.sin_half_asin_e_sin_phi_pz=Math.sin(_+s),this.atanh_sin_phi=Math.log(this.sin_half_phi_pf/this.sin_half_phi_pz),this.atanh_esin_phi=Math.log(this.sin_half_asin_e_sin_phi_pf/this.sin_half_asin_e_sin_phi_pz)}function M(){this.sin_phi=-this.sin_phi;let e=this.one_p_sin_phi;this.one_p_sin_phi=this.one_m_sin_phi,this.one_m_sin_phi=e,e=this.sin_half_phi_pf,this.sin_half_phi_pf=this.sin_half_phi_pz,this.sin_half_phi_pz=e,e=this.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pf=this.sin_half_asin_e_sin_phi_pz,this.sin_half_asin_e_sin_phi_pz=e,this.atanh_sin_phi=-this.atanh_sin_phi,this.atanh_esin_phi=-this.atanh_esin_phi}function T(e){this.sin_phi=e.sin_phi,this.one_p_sin_phi=e.one_p_sin_phi,this.one_m_sin_phi=e.one_m_sin_phi,this.one_m_e_2_sin_2_phi=e.one_m_e_2_sin_2_phi,this.sin_half_phi_pf=e.sin_half_phi_pf,this.sin_half_phi_pz=e.sin_half_phi_pz,this.sin_half_asin_e_sin_phi_pf=e.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pz=e.sin_half_asin_e_sin_phi_pz,this.atanh_sin_phi=e.atanh_sin_phi,this.atanh_esin_phi=e.atanh_esin_phi,this.make_negative=e.make_negative}function w(){return{...this}}class N{m_a;m_b;m_eSquared;m_inputSR;m_inputGCS;m_transformPCS2GCS=null;m_curveType;m_progressTracker;m_scaleToRadians=new p.T;m_scaleToDegrees=new p.T;m_rpu;constructor(e,t,n){this.m_progressTracker=n,(0,s.g)(4!==t),this.m_curveType=t,this.m_inputSR=e,e&&0!==e.getCoordinateSystemType()||(0,s.a)(""),this.m_inputGCS=e.getGCS(),this.m_a=0,this.m_eSquared=0,this.m_b=0,this.m_rpu=0}executePolygonGeodeticArea(e){let t,n=e.clone();if(n.dropAllAttributes(),e.hasNonLinearSegments()&&(n=(new a.O).execute(n,0,this.m_inputSR.getTolerance(0),0,this.m_progressTracker)),this.m_inputSR.isPannable()){const e=new h.Envelope2D;n.queryEnvelope(e);const t=this.m_inputSR.getPannableExtent();if(!t.containsEnvelope(e)){const s=t.getCenterX()-e.getCenterX(),i=new p.T;i.setShiftCoords(s,0),n.applyTransformation(i),e.move(s,0);const a=new r.E;t.queryIntervalX(a);const h=new r.E;e.queryIntervalX(h),n=a.contains(h)?(0,_.a9)(n,this.m_inputSR):(new _.O).foldInto360RangeGeodetic(n,this.m_inputSR,this.m_curveType)}}if(this.m_transformPCS2GCS?(n=(new _.D).execute(n,this.m_inputSR,!1,this.m_progressTracker),t=n.createInstance(),(0,_.ay)(this.m_transformPCS2GCS,n,t,this.m_progressTracker)||(t=(new _.O).execute(n,this.m_transformPCS2GCS,this.m_progressTracker))):t=(new _.D).execute(n,this.m_inputGCS,!1,this.m_progressTracker),t.isEmpty())return 0;if(1===this.m_curveType){const e=(0,_.r)();return this.m_inputGCS.querySpheroidData(e),this.m_a=e.majorSemiAxis,this.m_eSquared=e.e2,this.loxodromeArea(t)}const s=t.getImpl();this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_scaleToRadians.setScale(this.m_rpu),s.applyTransformation(this.m_scaleToRadians),this.m_scaleToDegrees=this.m_scaleToRadians,this.m_scaleToDegrees.invertThis();const i=(0,_.r)();if(this.m_inputGCS.querySpheroidData(i),this.m_a=i.majorSemiAxis,this.m_b=i.minorSemiAxis,this.m_eSquared=i.e2,2===this.m_curveType)return this.executeClippedPolygonGreatEllipticArea(t);{const e={stack:[],error:void 0,hasError:!1};try{const n=_.aU.unit(9101),s=this.m_inputGCS.getPECoordSys(),i=(0,u.mS)(e,s.cloneAlterUnits(n),!1);let a,r,h=this.executeClippedPolygonGeodeticArea(t,i,0),o=0;do{o++,a=this.executeClippedPolygonGeodeticArea(t,i,o),r=Math.abs(a-h),h=a}while(Math.abs(a)>1&&r>1e-8*Math.abs(a)&&o<7);return a}catch(t){e.error=t,e.hasError=!0}finally{(0,u.hk)(e)}}}executeClippedPolygonGeodeticArea(e,t,n){const s={stack:[],error:void 0,hasError:!1};try{const i=new h.Envelope2D;e.queryEnvelope(i);const a=(0,u.mS)(s,this.getEqualAreaPCSInstance(t,i),!1),o=e.clone();(0,_.aV)(a,o);const m=50,l=o.getImpl().getAttributeStreamRef(0),p=e.getImpl().getAttributeStreamRef(0),c=(0,u.mS)(s,new _.ag,!1),g=(0,u.mS)(s,new _.ag,!1),d=40,P=[0,0],E=(0,r.q)(S,d),f=(0,r.d)(d,-1),y=S(),x=S();let A,R;const C=a;let M=o.calculateArea2D();const T=new r.K(0),w=.5*Math.PI,N=1e-10*Math.abs(M)+1e-6,q=e.getPathCount();let b,v,I,k;const G=new r.P,L=new r.P,z=new r.P,D=new r.P,O=new r.P,$=new r.P;let F,U;for(v=e.getPathStart(0),b=0;b<q;b++,v=I)for(I=e.getPathEnd(b),l.queryPoint2D(I-1<<1,z),p.queryPoint2D(I-1<<1,G),Math.abs(G.y)>w&&(G.y=(0,r.f)(w,G.y)),k=v;k<I;k++,z.assign(D),G.assign(L)){if(l.queryPoint2D(k<<1,D),p.queryPoint2D(k<<1,L),Math.abs(L.y)>w&&(L.y=(0,r.f)(w,L.y)),F=r.P.distance(z,D),F<m||0===G.y&&0===L.y)continue;_.ah.geodeticDistance(this.m_a,this.m_eSquared,G.x,G.y,L.x,L.y,c,g,null,this.m_curveType);const e=c.val,t=g.val;for(y.setValues(0,z),x.setValues(1,D),R=n,E[0].assign(x),f[0]=n,A=0;A>=0;){U=.5*(y.m_factor+x.m_factor),_.ah.geodeticCoordinate(this.m_a,this.m_eSquared,G.x,G.y,e*U,t,c,g,this.m_curveType),O.x=c.val,O.y=g.val,P[0]=O.x,P[1]=O.y,_.aw.geogToProj(C,1,P),$.x=P[0],$.y=P[1];const n=.5*-$.offset(y.m_p_PCS,x.m_p_PCS)*r.P.distance(y.m_p_PCS,x.m_p_PCS);if(T.pe(n),Math.abs(n)>N||Math.abs(n)>0&&R>0)x.setValues(U,$),A++,E[A].assign(x),Math.abs(n)<=N?(R--,f[A-1]=R,f[A]=R):(R=f[A-1],f[A]=R);else{if(A<=0)break;y.assign(x),A--,x.assign(E[A]),R=f[A]}}}return M+=T.getResult(),Math.abs(M)}catch(e){s.error=e,s.hasError=!0}finally{(0,u.hk)(s)}}executeClippedPolygonGreatEllipticArea(e){const t=[],n=[],s=new r.P,i=new r.P,a=(0,_.ao)(1,this.m_eSquared,new r.P(0,.5*Math.PI)),m=new r.K(0),l=new r.K(0),u=new r.K(0),p=new o.k,c=new o.k,g=new h.Envelope2D;e.queryLooseEnvelope(g);let d=0;g.containsCoords(g.xmin,0)||(d=Math.abs(g.ymin)<Math.abs(g.ymax)?g.ymin:g.ymax);const P=new A(this.m_eSquared,p,c,d),E=this.m_a*this.m_a,f=e.getImpl().querySegmentIterator();for(f.stripAttributes();f.nextPath();)for(;f.hasNextSegment();){const e=f.nextSegment();s.assign(e.getStartXY()),i.assign(e.getEndXY()),i.x-s.x>Math.PI?s.x+=2*Math.PI:i.x-s.x<-Math.PI&&(i.x+=2*Math.PI),this.splitSegmentCrossingItegralThreshold(e,t,n);for(let e of t)p.assign((0,_.ao)(this.m_a,this.m_eSquared,e.getStartXY())),c.assign((0,_.ao)(this.m_a,this.m_eSquared,e.getEndXY())),P.setSegmentEndPoints(p,c),this.adaptiveIntegrationWithRomberg(P,m);for(let e of n){let t=e.getStartXY(),n=e.getEndXY(),s=d;t.y<0&&(n=(0,r.c)(t,t=n),t.y=-t.y,n.y=-n.y,s=-s);const i=(0,_.ao)(1,this.m_eSquared,t),h=(0,_.ao)(1,this.m_eSquared,n),m=Math.min(t.y,n.y),p=(0,_.aW)(this.m_eSquared,t.x,n.x,s,m);l.pe(p);const c=Math.abs((0,_.aW)(this.m_eSquared,t.x,n.x,m,r.l)),g=new o.k;g.setSub(i,a);const P=new o.k;P.setSub(h,a);const f=new o.k;f.setCrossProductVector(g,P);let S=E*(c-.5*f.length());S=(0,r.f)(S,n.x-t.x),u.pe(S)}t.length=0,n.length=0}return u.getResult()+E*(.5*(1-this.m_eSquared)*m.getResult()+l.getResult())}getEqualAreaPCSInstance(e,t){const n=t.getCenterX();let s,i;const a=t.height();let h,o;(h=t.ymin>45*Math.PI/180||t.ymax<45*-Math.PI/180)?s=(0,r.f)(.5*Math.PI,t.getCenterY()):(s=t.getCenterY(),i=t.ymin+a*(2/3));const m=(0,_.j)("EqualAreaPCS"),l=e.toString();return o=h?_.aU.fromString(_.aG.PE_TYPE_PROJCS,`PROJCS["${m}", ${l}, PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}], PARAMETER["Latitude_of_Origin", ${s}], UNIT["Meter",1.0]]`,!0):_.aU.fromString(_.aG.PE_TYPE_PROJCS,`PROJCS["${m}", ${l}, PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting", 0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}],PARAMETER["Standard_Parallel_1", ${i}],PARAMETER["Latitude_of_Origin", ${s}],UNIT["Meter",1.0]]`,!0),o}splitSegmentCrossingItegralThreshold(e,t,n){const s=100,a=400,h=(0,_.ao)(this.m_a,this.m_eSquared,new r.P(0,r.l)),m=(0,_.ao)(this.m_a,this.m_eSquared,new r.P(0,-r.l)),l=this.splitSegmentPassingThroughPole(e);for(let e of l){const l=e.getStartXY(),u=e.getEndXY(),p=(0,_.ao)(this.m_a,this.m_eSquared,l),c=(0,_.ao)(this.m_a,this.m_eSquared,u),g=new r.P,d=new o.k;let P=o.k.sqrDistance(h,p),E=o.k.sqrDistance(p,c);if(P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(p.add(d.mul(20))),g.assign((0,_.av)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:l,end:g})),l.assign(g)}if(p.assign((0,_.ao)(this.m_a,this.m_eSquared,l)),P=o.k.sqrDistance(h,c),E=o.k.sqrDistance(p,c),P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(c.sub(d.mul(20))),g.assign((0,_.av)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:g,end:u})),u.assign(g)}if(p.assign((0,_.ao)(this.m_a,this.m_eSquared,l)),c.assign((0,_.ao)(this.m_a,this.m_eSquared,u)),P=o.k.sqrDistance(m,p),E=o.k.sqrDistance(p,c),P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(p.add(d.mul(20))),g.assign((0,_.av)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:l,end:g})),l.assign(g)}if(p.assign((0,_.ao)(this.m_a,this.m_eSquared,l)),c.assign((0,_.ao)(this.m_a,this.m_eSquared,u)),P=o.k.sqrDistance(m,c),E=o.k.sqrDistance(p,c),P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(c.sub(d.mul(20))),g.assign((0,_.av)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:g,end:u})),u.assign(g)}t.push(new i.L({start:l,end:u}))}}splitSegmentPassingThroughPole(e){const t={stack:[],error:void 0,hasError:!1};try{const n=[],s=new o.k,a=new o.k,h=new o.k,m=new r.P,l=20,p=3.124139361,g=10,d=e.getStartXY(),P=e.getEndXY(),E=(0,u.mS)(t,new _.ag,!1);if(_.ah.geodeticDistance(this.m_a,this.m_eSquared,d.x,d.y,P.x,P.y,E,null,null,2),Math.abs(P.x-d.x)>p&&E.val>l){const e=new c.a(new r.P(0,90),d.divide(this.m_rpu),P.divide(this.m_rpu),this.m_inputGCS,2,2);let t=(0,_.ar)(e.makeFunctor(),0,1,1e-10);if(t.second<=g&&t.first>0&&t.first<1)return s.assign((0,_.ao)(this.m_a,this.m_eSquared,d)),a.assign((0,_.ao)(this.m_a,this.m_eSquared,P)),(0,r.y)(s,a,t.first,h),m.assign((0,_.av)(this.m_a,this.m_eSquared,h)),n.push(new i.L({start:d,end:m})),n.push(new i.L({start:m,end:P})),n;if(e.setPointDistFrom(new r.P(0,-90)),t=(0,_.ar)(e.makeFunctor(),0,1,1e-10),t.second<=g&&t.first>0&&t.first<1)return s.assign((0,_.ao)(this.m_a,this.m_eSquared,d)),a.assign((0,_.ao)(this.m_a,this.m_eSquared,P)),(0,r.y)(s,a,t.first,h),m.assign((0,_.av)(this.m_a,this.m_eSquared,h)),n.push(new i.L({start:d,end:m})),n.push(new i.L({start:m,end:P})),n}return n.push(new i.L({start:d,end:P})),n}catch(e){t.error=e,t.hasError=!0}finally{(0,u.hk)(t)}}adaptiveIntegrationWithRomberg(e,t){const n=e.makeFunctor();let s=0,a=1,_=n(s),r=n(a);const h=1e-17,o=1e-14;let m=(s+a)/2,l=n(m),u=Math.abs(l-_),p=Math.abs(r-l),c=0;for(;c++<32&&(u/p<.1||p/u<.1);)u<p?(t.pe((0,i.x)(5,s,m,o,h,n)),s=m,_=l):(t.pe((0,i.x)(5,m,a,o,h,n)),a=m,r=l),m=(s+a)/2,l=Math.abs(n(m)),u=Math.abs(l-_),p=Math.abs(r-l);t.pe((0,i.x)(5,s,a,o,h,n))}loxodromeAreaHemi(e,t,n,s,i){const a=n.clone(),_=i.clone();let h,o,m,l,u,p,c,g,d,P,E,f,S,y,x,A;return a.make_negative&&a.changeSign(),_.make_negative&&_.changeSign(),E=s-t,1===Math.abs(a.sin_phi)||1===Math.abs(_.sin_phi)?e.half_qp*E:a.sin_phi===_.sin_phi?(P=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,r.z)(e.e*a.sin_phi))*E,P):(x=Math.log(_.sin_half_phi_pf*a.sin_half_phi_pz/(_.sin_half_phi_pz*a.sin_half_phi_pf)),A=Math.log(_.sin_half_asin_e_sin_phi_pf*a.sin_half_asin_e_sin_phi_pz/(_.sin_half_asin_e_sin_phi_pz*a.sin_half_asin_e_sin_phi_pf)),1===this.m_eSquared?(u=0,h=.5*(x+_.sin_phi/_.one_m_e_2_sin_2_phi-a.sin_phi/a.one_m_e_2_sin_2_phi),o=0):(u=-2*e.atanh_e_over_e*(Math.log(_.one_p_sin_phi/a.one_p_sin_phi)-e.e*A),h=(x-e.e*A)/e.one_m_e_2,o=(Math.log(_.one_m_e_2_sin_2_phi/a.one_m_e_2_sin_2_phi)+u/e.atanh_e_over_e)/e.one_m_e_2),m=-A*(a.atanh_esin_phi+_.atanh_esin_phi),l=1/a.one_m_e_2_sin_2_phi-1/_.one_m_e_2_sin_2_phi,p=(0,r.A)(_.one_m_sin_phi/e.one_p_e,e.e)-(0,r.A)(a.one_m_sin_phi/e.one_p_e,e.e),c=(0,r.A)(_.one_p_sin_phi/e.one_p_e,e.e)-(0,r.A)(a.one_p_sin_phi/e.one_p_e,e.e),g=(0,r.A)(a.one_m_sin_phi/-e.one_m_e,e.e)-(0,r.A)(_.one_m_sin_phi/-e.one_m_e,e.e),d=(0,r.A)(a.one_p_sin_phi/-e.one_m_e,e.e)-(0,r.A)(_.one_p_sin_phi/-e.one_m_e,e.e),P=.25/h*(o+m+l+u+.5*(p+c+g+d)),P+=e.half_qp,f=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,r.z)(e.e*a.sin_phi)),S=.5*e.one_m_e_2*_.sin_phi*(1/_.one_m_e_2_sin_2_phi+(0,r.z)(e.e*_.sin_phi)),S<f&&(y=f,f=S,S=y),P<f&&(P=f),P>S&&(P=S),P*=E,P)}loxodromeArea(e){const t=Math.PI/180;let n=0;const s={e:Number.NaN,one_p_e:Number.NaN,one_m_e:Number.NaN,one_m_e_2:Number.NaN,atanh_e_over_e:Number.NaN,half_qp:Number.NaN,f:Number.NaN,z:Number.NaN},i=R(),a=R();s.e=Math.sqrt(this.m_eSquared),s.one_p_e=1+s.e,s.one_m_e=1-s.e,s.one_m_e_2=1-this.m_eSquared,s.atanh_e_over_e=(0,r.z)(s.e),this.m_eSquared>=1?s.half_qp=1:s.half_qp=.5*(1+s.atanh_e_over_e*s.one_m_e_2),s.f=.25*Math.PI,s.z=.75*Math.PI,a.initialize(0,s.e,s.f,s.z);const _=e.getPathCount(),h=new r.P,o=new r.P,m=e.getImpl().getAttributeStreamRef(0);for(let r=0;r<_;r++){const _=e.getPathStart(r),l=e.getPathEnd(r);if(!(l-_<=1)){m.queryPoint2D(2*(l-1),h);for(let e=_;e<l;e++){m.queryPoint2D(2*e,o);const r=h.y*t,l=o.y*t;if(e===_?(i.initialize(r,s.e,s.f,s.z),i.make_negative=!1):i.assign(a),a.initialize(l,s.e,s.f,s.z),a.make_negative=!1,h.y*o.y<0){if(h.y>=90&&o.y<=-90||o.y>=90&&h.y<=-90)return Number.NaN;const e=R();e.initialize(0,s.e,s.f,s.z),e.make_negative=!1;const _=i.atanh_sin_phi-s.e*i.atanh_esin_phi,m=a.atanh_sin_phi-s.e*a.atanh_esin_phi,l=(m*h.x-_*o.x)/(m-_);r<0?(i.make_negative=!0,n-=this.loxodromeAreaHemi(s,h.x*t,i,l*t,e),i.make_negative=!1,n+=this.loxodromeAreaHemi(s,l*t,e,o.x*t,a)):(n+=this.loxodromeAreaHemi(s,h.x*t,i,l*t,e),a.make_negative=!0,n-=this.loxodromeAreaHemi(s,l*t,e,o.x*t,a),a.make_negative=!1)}else h.y>=0?n+=this.loxodromeAreaHemi(s,h.x*t,i,o.x*t,a):(i.make_negative=!0,a.make_negative=!0,n-=this.loxodromeAreaHemi(s,h.x*t,i,o.x*t,a),i.make_negative=!1,a.make_negative=!1);h.assign(o)}}}return this.m_a*n*this.m_a}calculate(e){if(e.isEmpty()||e.getDimension()<2)return 0;if(e.getGeometryType()===s.G.enumEnvelope){const t=new i.P;return t.addEnvelope(e,!1),this.calculate(t)}return this.m_inputSR!==this.m_inputGCS&&null===this.m_transformPCS2GCS&&(this.m_transformPCS2GCS=(0,_.y)(this.m_inputSR,this.m_inputGCS,null)),this.executePolygonGeodeticArea(e)}}class q{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,i){return(0,s.c)(e),4===n?(new f).execute(e,t,i):new N(t,n,i).calculate(e)}}},47591(e,t,n){n.d(t,{O:()=>g});var s=n(55537),i=n(39117),a=n(88885),_=n(83661),r=n(95213),h=n(79187),o=n(5247),m=n(31139);function l(){return{m_pGcs:new _.P,m_xyz:new r.k,m_factor:Number.NaN,m_geoLength:Number.NaN,setValues:u,setLength:p,assign:c}}function u(e,t,n,s){this.m_factor=e,this.m_pGcs.assign(t),this.m_xyz.assign(s),this.m_geoLength=n}function p(e){this.m_geoLength=e}function c(e){this.m_pGcs.assign(e.m_pGcs),this.m_xyz.assign(e.m_xyz),this.m_factor=e.m_factor,this.m_geoLength=e.m_geoLength}class g{getOperatorType(){return 10315}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}_ExecuteShapePreservingLength(e,t,n,s,a){if(e.hasNonLinearSegments()&&(e=(new o.O).execute(e,0,t.getTolerance(0),0,a)),t.isPannable()){let s=90,_=-90;if(1===n.getUnit().getUnitToBaseFactor()&&(s*=Math.PI/180,_*=Math.PI/180),2===t.getCoordinateSystemType()){let e=null;const n=[0,0,0,0];e=t.getPECoordSys(),n[0]=0,n[1]=s,n[2]=0,n[3]=_,i.aw.geogToProj(e,2,n),s=n[1],_=n[3]}const r=new h.Envelope2D;e.queryEnvelope(r),r.ymin=_,r.ymax=s,e=(new m.O).execute(e,r,t,a)}else{const n=t.getPCSHorizon();if((e=(new i.V).execute(e,n,t,a))===n){const t=e.clone();e=t}}return e.isEmpty()?0:this._ExecuteIterativeApproach(e,t,n,s,1,a)}_ExecuteIterativeApproach(e,t,n,a,h,o){const m=(0,i.r)();n.querySpheroidData(m);const u=m.majorSemiAxis,p=m.e2,c=n.getUnit().getUnitToBaseFactor(),g=(0,_.q)(l,40),E=(0,_.d)(40,Number.NaN),f=l(),S=l();let y;const x=[0,0,0,0],A=t.getPECoordSys(),R=new _.P,C=new _.P,M=new _.P,T=new _.P,w=new _.P;let N=0;const q=e.querySegmentIterator();for(;q.nextPath();)for(;q.hasNextSegment();){const e=q.nextSegment();R.assign(e.getStartXY()),C.assign(e.getEndXY()),2===t.getCoordinateSystemType()?(x[0]=R.x,x[1]=R.y,x[2]=C.x,x[3]=C.y,i.aw.projToGeog(A,2,x),M.x=x[0]*c,M.y=x[1]*c,T.x=x[2]*c,T.y=x[3]*c):(M.setCoordsPoint2D(R),T.setCoordsPoint2D(C),M.scale(c),T.scale(c));const n=new r.k,a=new r.k;d(u,p,M,n),d(u,p,T,a);let _=P(u,n,a);f.setValues(0,M,Number.NaN,n),S.setValues(1,T,_,a),y=h,g[0].assign(S),E[0]=h;let o=0;for(;;){o>128&&(0,s.d)("iterations exceeded");const n=.5*(f.m_factor+S.m_factor),a=e.getCoord2D(n);2===t.getCoordinateSystemType()?(x[0]=a.x,x[1]=a.y,i.aw.projToGeog(A,1,x),w.x=x[0]*c,w.y=x[1]*c):(w.setCoordsPoint2D(a),w.scale(c)),M.setCoordsPoint2D(f.m_pGcs),T.setCoordsPoint2D(S.m_pGcs);const m=new r.k;d(u,p,w,m);const l=P(u,f.m_xyz,m),R=P(u,S.m_xyz,m);_=S.m_geoLength,Number.isNaN(_)&&(_=P(u,f.m_xyz,S.m_xyz));const C=l+R,q=y===h&&C>=20&&Math.abs(C-_)>1e-8*(_+C);if(o+2<40&&(q||Math.abs(C-_)>0&&y>0))S.setLength(R),g[o].assign(S),S.setValues(n,w,l,m),g[++o].assign(S),q?(y=h,E[o]=h):(y--,E[o-1]=y,E[o]=y);else{if(N+=C,0===o)break;f.assign(S),S.assign(g[--o]),y=E[o]}}}return N}execute(e,t,n){if(t&&0!==t.getCoordinateSystemType()||(0,s.a)(""),e.isEmpty()||e.getDimension()<1)return 0;let _=null;const r=t.getGCS();r!==t&&(_=(0,i.y)(t,r,null));const h=e.getGeometryType();if(h===s.G.enumEnvelope){const s=new a.P;return s.addEnvelope(e,!1),this._ExecuteShapePreservingLength(s,t,r,_,n)}if((0,s.h)(h)){const s=new a.a;return s.addSegment(e,!0),this._ExecuteShapePreservingLength(s,t,r,_,n)}return this._ExecuteShapePreservingLength(e,t,r,_,n)}}function d(e,t,n,s){s.assign((0,i.ao)(e,t,n))}function P(e,t,n){const s=e,i=new r.k;i.setSub(t,n);const a=i.length();return 2*s*Math.asin(a/(2*s))}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6558],{6558(e,t,n){n.r(t),n.d(t,{OperatorGeodeticArea:()=>N});var s=n(55537),i=n(88885),a=n(5247),_=n(39117),r=n(83661),h=n(79187),o=n(95213),m=n(31139),l=n(47591),u=n(5482),p=n(11878),c=n(22024);class g{m_startPt;m_endPt;m_cE2;m_cE;m_c1By2e;m_cRpu;isPcs;PEProjcs;m_points;constructor(e,t,n,s,i=100){this.m_startPt=e.clone(),this.m_endPt=t.clone(),this.m_cE2=s,this.m_cE=Math.sqrt(this.m_cE2),this.m_c1By2e=1/(2*this.m_cE),this.m_cRpu=n.getGCS().getUnit().getUnitToBaseFactor(),this.isPcs=2===n.getCoordinateSystemType(),this.PEProjcs=n.getPECoordSys(),this.m_points=(0,r.d)(2*i,Number.NaN)}setSegmentEndPoints(e,t){this.m_startPt.assign(e),this.m_endPt.assign(t)}makeFunctor(){return e=>{const t=[0,0];t[0]=this.m_startPt.x*(1-e)+this.m_endPt.x*e,t[1]=this.m_startPt.y*(1-e)+this.m_endPt.y*e,this.isPcs&&_.ay.projToGeogCenter(this.PEProjcs,1,t,0);const n=Math.sin(t[1]*this.m_cRpu);return 0===this.m_cE2?n:-Math.log((1-this.m_cE*n)/(1+this.m_cE*n))*this.m_c1By2e+n/(1-this.m_cE2*n*n)}}}function d(e,t,n,s,i){const r=(new a.O).execute(e,t,0,0,i);let o;o=s?(new _.O).execute(r,s,i):r;const m=1===n.getUnit().getUnitToBaseFactor()?Math.PI/180:1,l=new h.Envelope2D;o.queryEnvelope(l);const u=new h.Envelope2D,p=new h.Envelope2D,c=new h.Envelope2D;u.setCoords({xmin:l.xmin,ymin:75*m,xmax:l.xmax,ymax:90*m}),p.setCoords({xmin:l.xmin,ymin:-60*m,xmax:l.xmax,ymax:75*m}),c.setCoords({xmin:l.xmin,ymin:-90*m,xmax:l.xmax,ymax:-60*m}),u.inflateCoords(.01*u.width(),0),p.inflateCoords(.01*p.width(),0),c.inflateCoords(.01*c.width(),0);let g=0;return g+=P(o,u,n,i),g+=P(o,p,n,i),g+=P(o,c,n,i),g}function P(e,t,n,i){const a=(new m.O).execute(e,t,n,i);if(null!==a&&!a.isEmpty()){const e=new h.Envelope2D;a.queryEnvelope(e);const{first:t,second:o}=function(e,t){const n=function(e,t){const n=e.getUnit().getUnitToBaseFactor(),i=t.getCenter();i.scale(180*n/Math.PI);const a=new r.P;a.x=0,a.y=0;let h=0;if(0===h){i.y>45?(a.y=r.l,h=0):i.y<-45?(a.y=-r.l,h=1):i.x>=45&&i.x<135?(a.x=r.l,h=2):i.x>=135||i.x<-135?(a.x=r.l,h=3):i.x<-45&&i.x>=-135?(a.x=-r.l,h=4):(a.x=0,h=5);const e=n*Math.sqrt((0,r.a)(t.xmin-t.xmax)+(0,r.a)(t.ymin-t.ymax)),s=a.clone(),_=t.getCenter();if(_.scale(n),h<2&&(s.x=_.x),r.P.distance(s,_)+.5*e>r.l)return null}const o=E[h];if(null!==o&&o.getGCS().equalHorizontal(e))return o;const m=e.getText(),l=a.x,u=a.y;let p=0,c=-1;6!==h?c=_.aI.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:((0,s.g)(false),p=0,c=_.aI.PE_PRJ_CYLINDRICAL_EQAREA);const g=(0,_.j)("EqualAreaPCS");let d;c===_.aI.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?d=`PROJCS["${g}",${m},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${l}],PARAMETER["Latitude_of_Origin",${u}],UNIT["Meter",1.0]]`:c===_.aI.PE_PRJ_CYLINDRICAL_EQAREA?d=`PROJCS["${g}",${m},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${l}],PARAMETER["Standard_Parallel_1",${p}],PARAMETER["Latitude_of_Origin",${u}],UNIT["Meter",1.0]]`:(0,s.d)("getEqualAreaPcsFixed");const P=(0,_.b)(d);return E[h]&&E[h].destroy(),E[h]=P,P}(e,t);if(null!==n)return(0,r.o)(n,!1);const i=e.getText(),a=e.getUnit().getUnitToBaseFactor(),h=(t.xmin+t.width()/2)*a,o=(t.ymin+t.height()/2)*a;let m=0,l=0,u=-1;t.ymin*a>=75*Math.PI/180||t.ymax*a<=-60*Math.PI/180?u=_.aI.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:t.ymin>0||t.ymax<0?(m=(t.ymin+1/3*t.height())*a,l=(t.ymin+2/3*t.height())*a,u=_.aI.PE_PRJ_ALBERS):(m=(t.ymin+2/3*t.height())*a,u=_.aI.PE_PRJ_CYLINDRICAL_EQAREA);const p=(0,_.j)("EqualAreaPCS");let c;return u===_.aI.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?c=`PROJCS["${p}",${i},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${h}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:u===_.aI.PE_PRJ_ALBERS?c=`PROJCS["${p}",${i},PROJECTION["Albers"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${h}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Standard_Parallel_2",${l}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:u===_.aI.PE_PRJ_CYLINDRICAL_EQAREA?c=`PROJCS["${p}",${i},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${h}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:(0,s.d)("getEqualAreaPCSInstance"),(0,r.o)((0,_.b)(c),!0)}(n,e),m=(0,_.B)(n,t,null),l=(new _.O).execute(a,m,i).calculateArea2D();return o&&t.destroy(),l}return 0}const E=[null,null,null,null,null,null,null];class f{getOperatorType(){return 10314}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){if(0===t.getCoordinateSystemType()&&(0,s.a)(""),e.isEmpty()||e.getDimension()<2)return 0;if((0,s.c)(e),e.getGeometryType()===s.G.enumEnvelope){const s=new i.P;return s.addEnvelope(e,!1),this.execute(s,t,n)}let u=e;e.getDescription().getAttributeCount()>1&&(u=e.clone(),u.dropAllAttributes());const p=(new a.O).execute(u,0,t.getTolerance(0),0,n);let c=null;const P=t.getGCS();P!==t&&(c=(0,_.B)(t,P));let E=(new _.H).execute(p,t,!1,n);return E.isEmpty()?0:(E===e&&(E=e.clone()),t.isPannable()?function(e,t,n){const s=new h.Envelope2D;e.queryEnvelope(s);const a=(0,o.c)(t,s,!0).total(),l=t.getPannableExtent();l.xmin=s.xmin-10*a,l.xmax=s.xmax+10*a;const u=(new m.O).execute(e,l,t,n).getImpl().querySegmentIterator();u.stripAttributes();const p=(0,_.r)();t.querySpheroidData(p);const c=p.e2,d=0===c?2:1,P=new r.P(0,0),E=new r.P(0,0),f=new r.K(0),S=new g(P,E,t,c,100);for(;u.nextPath();)for(;u.hasNextSegment();){const e=u.nextSegment();P.assign(e.getStartXY()),E.assign(e.getEndXY()),S.setSegmentEndPoints(P,E);const t=(0,i.x)(6,0,1,1e-12,1e-15,S.makeFunctor());f.pe((E.x-P.x)*t)}const y=p.majorSemiAxis;return d*y*y*(1-c)*Math.PI*f.getResult()/t.getPannableExtent().width()}(E,t,n):function(e,t,n,s,i){const a=function(e,t,n){const s=e.calculateLength2D(),i=(new l.O).execute(e,t,n)/25e3,a=s/e.getSegmentCount()*2;let _=Math.min(a,s/i);return 0===_&&(_=1),(0,r.o)(_,s/_)}(e,t,i);let _=d(e,a.first,n,s,i),h=1,o=0,m=0;do{if(h++,a.first*=.5,a.first<50*t.getTolerance(0))return _;a.second*=2,m=d(e,a.first,n,s,i),o=Math.abs(m-_),_=m}while(Math.abs(_)>1&&o>1e-8*Math.abs(_)&&(a.second<65e3&&h<8||h<4));return m}(E,t,P,c,n))}}function S(){return{m_p_PCS:new r.P,m_factor:Number.NaN,setValues:y,assign:x}}function y(e,t){this.m_factor=e,this.m_p_PCS.assign(t)}function x(e){this.m_factor=e.m_factor,this.m_p_PCS.assign(e.m_p_PCS)}class A{m_ptStart=new o.k;m_ptEnd=new o.k;m_deltaX;m_deltaY;m_e;m_e2;m_c1MinusE2;m_baseA;constructor(e,t,n,s){this.m_ptStart.assign(t),this.m_ptEnd.assign(n),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y,this.m_e=Math.sqrt(e),this.m_e2=e,this.m_c1MinusE2=1-e;const i=Math.sin(s);let a;a=0===this.m_e2?2*i:i*((0,r.z)(this.m_e*i)+1/(1-this.m_e2*i*i)),this.m_baseA=a}setSegmentEndPoints(e,t){this.m_ptStart.assign(e),this.m_ptEnd.assign(t),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y}makeFunctor(){return e=>{const t=1-e,n=t*this.m_ptStart.x+e*this.m_ptEnd.x,s=t*this.m_ptStart.y+e*this.m_ptEnd.y,i=t*this.m_ptStart.z+e*this.m_ptEnd.z,a=n*n+s*s,_=i/Math.sqrt(i*i+this.m_c1MinusE2*this.m_c1MinusE2*a);let h;return h=0===this.m_e2?2*_:_*((0,r.z)(this.m_e*_)+1/(1-this.m_e2*_*_)),(this.m_deltaY*n-this.m_deltaX*s)/a*(h-this.m_baseA)}}}function R(){return{sin_phi:Number.NaN,one_p_sin_phi:Number.NaN,one_m_sin_phi:Number.NaN,one_m_e_2_sin_2_phi:Number.NaN,sin_half_phi_pf:Number.NaN,sin_half_phi_pz:Number.NaN,sin_half_asin_e_sin_phi_pf:Number.NaN,sin_half_asin_e_sin_phi_pz:Number.NaN,atanh_sin_phi:Number.NaN,atanh_esin_phi:Number.NaN,make_negative:!1,initialize:C,changeSign:M,assign:T,clone:q}}function C(e,t,n,s){const i=.5*e;this.sin_phi=Math.sin(e);const a=t*this.sin_phi,_=.5*Math.asin(a);this.one_p_sin_phi=1+this.sin_phi,this.one_m_sin_phi=1-this.sin_phi,this.one_m_e_2_sin_2_phi=(1+a)*(1-a),this.sin_half_phi_pf=Math.sin(i+n),this.sin_half_phi_pz=Math.sin(i+s),this.sin_half_asin_e_sin_phi_pf=Math.sin(_+n),this.sin_half_asin_e_sin_phi_pz=Math.sin(_+s),this.atanh_sin_phi=Math.log(this.sin_half_phi_pf/this.sin_half_phi_pz),this.atanh_esin_phi=Math.log(this.sin_half_asin_e_sin_phi_pf/this.sin_half_asin_e_sin_phi_pz)}function M(){this.sin_phi=-this.sin_phi;let e=this.one_p_sin_phi;this.one_p_sin_phi=this.one_m_sin_phi,this.one_m_sin_phi=e,e=this.sin_half_phi_pf,this.sin_half_phi_pf=this.sin_half_phi_pz,this.sin_half_phi_pz=e,e=this.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pf=this.sin_half_asin_e_sin_phi_pz,this.sin_half_asin_e_sin_phi_pz=e,this.atanh_sin_phi=-this.atanh_sin_phi,this.atanh_esin_phi=-this.atanh_esin_phi}function T(e){this.sin_phi=e.sin_phi,this.one_p_sin_phi=e.one_p_sin_phi,this.one_m_sin_phi=e.one_m_sin_phi,this.one_m_e_2_sin_2_phi=e.one_m_e_2_sin_2_phi,this.sin_half_phi_pf=e.sin_half_phi_pf,this.sin_half_phi_pz=e.sin_half_phi_pz,this.sin_half_asin_e_sin_phi_pf=e.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pz=e.sin_half_asin_e_sin_phi_pz,this.atanh_sin_phi=e.atanh_sin_phi,this.atanh_esin_phi=e.atanh_esin_phi,this.make_negative=e.make_negative}function q(){return{...this}}class w{m_a;m_b;m_eSquared;m_inputSR;m_inputGCS;m_transformPCS2GCS=null;m_curveType;m_progressTracker;m_scaleToRadians=new p.T;m_scaleToDegrees=new p.T;m_rpu;constructor(e,t,n){this.m_progressTracker=n,(0,s.g)(4!==t),this.m_curveType=t,this.m_inputSR=e,e&&0!==e.getCoordinateSystemType()||(0,s.a)(""),this.m_inputGCS=e.getGCS(),this.m_a=0,this.m_eSquared=0,this.m_b=0,this.m_rpu=0}executePolygonGeodeticArea(e){let t,n=e.clone();if(n.dropAllAttributes(),e.hasNonLinearSegments()&&(n=(new a.O).execute(n,0,this.m_inputSR.getTolerance(0),0,this.m_progressTracker)),this.m_inputSR.isPannable()){const e=new h.Envelope2D;n.queryEnvelope(e);const t=this.m_inputSR.getPannableExtent();if(!t.containsEnvelope(e)){const s=t.getCenterX()-e.getCenterX(),i=new p.T;i.setShiftCoords(s,0),n.applyTransformation(i),e.move(s,0);const a=new r.E;t.queryIntervalX(a);const h=new r.E;e.queryIntervalX(h),n=a.contains(h)?(0,_.ab)(n,this.m_inputSR):(new _.O).foldInto360RangeGeodetic(n,this.m_inputSR,this.m_curveType)}}if(this.m_transformPCS2GCS?(n=(new _.H).execute(n,this.m_inputSR,!1,this.m_progressTracker),t=n.createInstance(),(0,_.aA)(this.m_transformPCS2GCS,n,t,this.m_progressTracker)||(t=(new _.O).execute(n,this.m_transformPCS2GCS,this.m_progressTracker))):t=(new _.H).execute(n,this.m_inputGCS,!1,this.m_progressTracker),t.isEmpty())return 0;if(1===this.m_curveType){const e=(0,_.r)();return this.m_inputGCS.querySpheroidData(e),this.m_a=e.majorSemiAxis,this.m_eSquared=e.e2,this.loxodromeArea(t)}const s=t.getImpl();this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_scaleToRadians.setScale(this.m_rpu),s.applyTransformation(this.m_scaleToRadians),this.m_scaleToDegrees=this.m_scaleToRadians,this.m_scaleToDegrees.invertThis();const i=(0,_.r)();if(this.m_inputGCS.querySpheroidData(i),this.m_a=i.majorSemiAxis,this.m_b=i.minorSemiAxis,this.m_eSquared=i.e2,2===this.m_curveType)return this.executeClippedPolygonGreatEllipticArea(t);{const e={stack:[],error:void 0,hasError:!1};try{const n=_.aW.unit(9101),s=this.m_inputGCS.getPECoordSys(),i=(0,u.mS)(e,s.cloneAlterUnits(n),!1);let a,r,h=this.executeClippedPolygonGeodeticArea(t,i,0),o=0;do{o++,a=this.executeClippedPolygonGeodeticArea(t,i,o),r=Math.abs(a-h),h=a}while(Math.abs(a)>1&&r>1e-8*Math.abs(a)&&o<7);return a}catch(t){e.error=t,e.hasError=!0}finally{(0,u.hk)(e)}}}executeClippedPolygonGeodeticArea(e,t,n){const s={stack:[],error:void 0,hasError:!1};try{const i=new h.Envelope2D;e.queryEnvelope(i);const a=(0,u.mS)(s,this.getEqualAreaPCSInstance(t,i),!1),o=e.clone();(0,_.aX)(a,o);const m=50,l=o.getImpl().getAttributeStreamRef(0),p=e.getImpl().getAttributeStreamRef(0),c=(0,u.mS)(s,new _.ai,!1),g=(0,u.mS)(s,new _.ai,!1),d=40,P=[0,0],E=(0,r.q)(S,d),f=(0,r.d)(d,-1),y=S(),x=S();let A,R;const C=a;let M=o.calculateArea2D();const T=new r.K(0),q=.5*Math.PI,w=1e-10*Math.abs(M)+1e-6,N=e.getPathCount();let b,v,I,k;const L=new r.P,z=new r.P,D=new r.P,G=new r.P,O=new r.P,$=new r.P;let F,Y;for(v=e.getPathStart(0),b=0;b<N;b++,v=I)for(I=e.getPathEnd(b),l.queryPoint2D(I-1<<1,D),p.queryPoint2D(I-1<<1,L),Math.abs(L.y)>q&&(L.y=(0,r.f)(q,L.y)),k=v;k<I;k++,D.assign(G),L.assign(z)){if(l.queryPoint2D(k<<1,G),p.queryPoint2D(k<<1,z),Math.abs(z.y)>q&&(z.y=(0,r.f)(q,z.y)),F=r.P.distance(D,G),F<m||0===L.y&&0===z.y)continue;_.aj.geodeticDistance(this.m_a,this.m_eSquared,L.x,L.y,z.x,z.y,c,g,null,this.m_curveType);const e=c.val,t=g.val;for(y.setValues(0,D),x.setValues(1,G),R=n,E[0].assign(x),f[0]=n,A=0;A>=0;){Y=.5*(y.m_factor+x.m_factor),_.aj.geodeticCoordinate(this.m_a,this.m_eSquared,L.x,L.y,e*Y,t,c,g,this.m_curveType),O.x=c.val,O.y=g.val,P[0]=O.x,P[1]=O.y,_.ay.geogToProj(C,1,P),$.x=P[0],$.y=P[1];const n=.5*-$.offset(y.m_p_PCS,x.m_p_PCS)*r.P.distance(y.m_p_PCS,x.m_p_PCS);if(T.pe(n),Math.abs(n)>w||Math.abs(n)>0&&R>0)x.setValues(Y,$),A++,E[A].assign(x),Math.abs(n)<=w?(R--,f[A-1]=R,f[A]=R):(R=f[A-1],f[A]=R);else{if(A<=0)break;y.assign(x),A--,x.assign(E[A]),R=f[A]}}}return M+=T.getResult(),Math.abs(M)}catch(e){s.error=e,s.hasError=!0}finally{(0,u.hk)(s)}}executeClippedPolygonGreatEllipticArea(e){const t=[],n=[],s=new r.P,i=new r.P,a=(0,_.aq)(1,this.m_eSquared,new r.P(0,.5*Math.PI)),m=new r.K(0),l=new r.K(0),u=new r.K(0),p=new o.k,c=new o.k,g=new h.Envelope2D;e.queryLooseEnvelope(g);let d=0;g.containsCoords(g.xmin,0)||(d=Math.abs(g.ymin)<Math.abs(g.ymax)?g.ymin:g.ymax);const P=new A(this.m_eSquared,p,c,d),E=this.m_a*this.m_a,f=e.getImpl().querySegmentIterator();for(f.stripAttributes();f.nextPath();)for(;f.hasNextSegment();){const e=f.nextSegment();s.assign(e.getStartXY()),i.assign(e.getEndXY()),i.x-s.x>Math.PI?s.x+=2*Math.PI:i.x-s.x<-Math.PI&&(i.x+=2*Math.PI),this.splitSegmentCrossingItegralThreshold(e,t,n);for(let e of t)p.assign((0,_.aq)(this.m_a,this.m_eSquared,e.getStartXY())),c.assign((0,_.aq)(this.m_a,this.m_eSquared,e.getEndXY())),P.setSegmentEndPoints(p,c),this.adaptiveIntegrationWithRomberg(P,m);for(let e of n){let t=e.getStartXY(),n=e.getEndXY(),s=d;t.y<0&&(n=(0,r.c)(t,t=n),t.y=-t.y,n.y=-n.y,s=-s);const i=(0,_.aq)(1,this.m_eSquared,t),h=(0,_.aq)(1,this.m_eSquared,n),m=Math.min(t.y,n.y),p=(0,_.aY)(this.m_eSquared,t.x,n.x,s,m);l.pe(p);const c=Math.abs((0,_.aY)(this.m_eSquared,t.x,n.x,m,r.l)),g=new o.k;g.setSub(i,a);const P=new o.k;P.setSub(h,a);const f=new o.k;f.setCrossProductVector(g,P);let S=E*(c-.5*f.length());S=(0,r.f)(S,n.x-t.x),u.pe(S)}t.length=0,n.length=0}return u.getResult()+E*(.5*(1-this.m_eSquared)*m.getResult()+l.getResult())}getEqualAreaPCSInstance(e,t){const n=t.getCenterX();let s,i;const a=t.height();let h,o;(h=t.ymin>45*Math.PI/180||t.ymax<45*-Math.PI/180)?s=(0,r.f)(.5*Math.PI,t.getCenterY()):(s=t.getCenterY(),i=t.ymin+a*(2/3));const m=(0,_.j)("EqualAreaPCS"),l=e.toString();return o=h?_.aW.fromString(_.aI.PE_TYPE_PROJCS,`PROJCS["${m}", ${l}, PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}], PARAMETER["Latitude_of_Origin", ${s}], UNIT["Meter",1.0]]`,!0):_.aW.fromString(_.aI.PE_TYPE_PROJCS,`PROJCS["${m}", ${l}, PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting", 0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}],PARAMETER["Standard_Parallel_1", ${i}],PARAMETER["Latitude_of_Origin", ${s}],UNIT["Meter",1.0]]`,!0),o}splitSegmentCrossingItegralThreshold(e,t,n){const s=100,a=400,h=(0,_.aq)(this.m_a,this.m_eSquared,new r.P(0,r.l)),m=(0,_.aq)(this.m_a,this.m_eSquared,new r.P(0,-r.l)),l=this.splitSegmentPassingThroughPole(e);for(let e of l){const l=e.getStartXY(),u=e.getEndXY(),p=(0,_.aq)(this.m_a,this.m_eSquared,l),c=(0,_.aq)(this.m_a,this.m_eSquared,u),g=new r.P,d=new o.k;let P=o.k.sqrDistance(h,p),E=o.k.sqrDistance(p,c);if(P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(p.add(d.mul(20))),g.assign((0,_.ax)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:l,end:g})),l.assign(g)}if(p.assign((0,_.aq)(this.m_a,this.m_eSquared,l)),P=o.k.sqrDistance(h,c),E=o.k.sqrDistance(p,c),P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(c.sub(d.mul(20))),g.assign((0,_.ax)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:g,end:u})),u.assign(g)}if(p.assign((0,_.aq)(this.m_a,this.m_eSquared,l)),c.assign((0,_.aq)(this.m_a,this.m_eSquared,u)),P=o.k.sqrDistance(m,p),E=o.k.sqrDistance(p,c),P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(p.add(d.mul(20))),g.assign((0,_.ax)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:l,end:g})),l.assign(g)}if(p.assign((0,_.aq)(this.m_a,this.m_eSquared,l)),c.assign((0,_.aq)(this.m_a,this.m_eSquared,u)),P=o.k.sqrDistance(m,c),E=o.k.sqrDistance(p,c),P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(c.sub(d.mul(20))),g.assign((0,_.ax)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:g,end:u})),u.assign(g)}t.push(new i.L({start:l,end:u}))}}splitSegmentPassingThroughPole(e){const t={stack:[],error:void 0,hasError:!1};try{const n=[],s=new o.k,a=new o.k,h=new o.k,m=new r.P,l=20,p=3.124139361,g=10,d=e.getStartXY(),P=e.getEndXY(),E=(0,u.mS)(t,new _.ai,!1);if(_.aj.geodeticDistance(this.m_a,this.m_eSquared,d.x,d.y,P.x,P.y,E,null,null,2),Math.abs(P.x-d.x)>p&&E.val>l){const e=new c.a(new r.P(0,90),d.divide(this.m_rpu),P.divide(this.m_rpu),this.m_inputGCS,2,2);let t=(0,_.at)(e.makeFunctor(),0,1,1e-10);if(t.second<=g&&t.first>0&&t.first<1)return s.assign((0,_.aq)(this.m_a,this.m_eSquared,d)),a.assign((0,_.aq)(this.m_a,this.m_eSquared,P)),(0,r.y)(s,a,t.first,h),m.assign((0,_.ax)(this.m_a,this.m_eSquared,h)),n.push(new i.L({start:d,end:m})),n.push(new i.L({start:m,end:P})),n;if(e.setPointDistFrom(new r.P(0,-90)),t=(0,_.at)(e.makeFunctor(),0,1,1e-10),t.second<=g&&t.first>0&&t.first<1)return s.assign((0,_.aq)(this.m_a,this.m_eSquared,d)),a.assign((0,_.aq)(this.m_a,this.m_eSquared,P)),(0,r.y)(s,a,t.first,h),m.assign((0,_.ax)(this.m_a,this.m_eSquared,h)),n.push(new i.L({start:d,end:m})),n.push(new i.L({start:m,end:P})),n}return n.push(new i.L({start:d,end:P})),n}catch(e){t.error=e,t.hasError=!0}finally{(0,u.hk)(t)}}adaptiveIntegrationWithRomberg(e,t){const n=e.makeFunctor();let s=0,a=1,_=n(s),r=n(a);const h=1e-17,o=1e-14;let m=(s+a)/2,l=n(m),u=Math.abs(l-_),p=Math.abs(r-l),c=0;for(;c++<32&&(u/p<.1||p/u<.1);)u<p?(t.pe((0,i.x)(5,s,m,o,h,n)),s=m,_=l):(t.pe((0,i.x)(5,m,a,o,h,n)),a=m,r=l),m=(s+a)/2,l=Math.abs(n(m)),u=Math.abs(l-_),p=Math.abs(r-l);t.pe((0,i.x)(5,s,a,o,h,n))}loxodromeAreaHemi(e,t,n,s,i){const a=n.clone(),_=i.clone();let h,o,m,l,u,p,c,g,d,P,E,f,S,y,x,A;return a.make_negative&&a.changeSign(),_.make_negative&&_.changeSign(),E=s-t,1===Math.abs(a.sin_phi)||1===Math.abs(_.sin_phi)?e.half_qp*E:a.sin_phi===_.sin_phi?(P=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,r.z)(e.e*a.sin_phi))*E,P):(x=Math.log(_.sin_half_phi_pf*a.sin_half_phi_pz/(_.sin_half_phi_pz*a.sin_half_phi_pf)),A=Math.log(_.sin_half_asin_e_sin_phi_pf*a.sin_half_asin_e_sin_phi_pz/(_.sin_half_asin_e_sin_phi_pz*a.sin_half_asin_e_sin_phi_pf)),1===this.m_eSquared?(u=0,h=.5*(x+_.sin_phi/_.one_m_e_2_sin_2_phi-a.sin_phi/a.one_m_e_2_sin_2_phi),o=0):(u=-2*e.atanh_e_over_e*(Math.log(_.one_p_sin_phi/a.one_p_sin_phi)-e.e*A),h=(x-e.e*A)/e.one_m_e_2,o=(Math.log(_.one_m_e_2_sin_2_phi/a.one_m_e_2_sin_2_phi)+u/e.atanh_e_over_e)/e.one_m_e_2),m=-A*(a.atanh_esin_phi+_.atanh_esin_phi),l=1/a.one_m_e_2_sin_2_phi-1/_.one_m_e_2_sin_2_phi,p=(0,r.A)(_.one_m_sin_phi/e.one_p_e,e.e)-(0,r.A)(a.one_m_sin_phi/e.one_p_e,e.e),c=(0,r.A)(_.one_p_sin_phi/e.one_p_e,e.e)-(0,r.A)(a.one_p_sin_phi/e.one_p_e,e.e),g=(0,r.A)(a.one_m_sin_phi/-e.one_m_e,e.e)-(0,r.A)(_.one_m_sin_phi/-e.one_m_e,e.e),d=(0,r.A)(a.one_p_sin_phi/-e.one_m_e,e.e)-(0,r.A)(_.one_p_sin_phi/-e.one_m_e,e.e),P=.25/h*(o+m+l+u+.5*(p+c+g+d)),P+=e.half_qp,f=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,r.z)(e.e*a.sin_phi)),S=.5*e.one_m_e_2*_.sin_phi*(1/_.one_m_e_2_sin_2_phi+(0,r.z)(e.e*_.sin_phi)),S<f&&(y=f,f=S,S=y),P<f&&(P=f),P>S&&(P=S),P*=E,P)}loxodromeArea(e){const t=Math.PI/180;let n=0;const s={e:Number.NaN,one_p_e:Number.NaN,one_m_e:Number.NaN,one_m_e_2:Number.NaN,atanh_e_over_e:Number.NaN,half_qp:Number.NaN,f:Number.NaN,z:Number.NaN},i=R(),a=R();s.e=Math.sqrt(this.m_eSquared),s.one_p_e=1+s.e,s.one_m_e=1-s.e,s.one_m_e_2=1-this.m_eSquared,s.atanh_e_over_e=(0,r.z)(s.e),this.m_eSquared>=1?s.half_qp=1:s.half_qp=.5*(1+s.atanh_e_over_e*s.one_m_e_2),s.f=.25*Math.PI,s.z=.75*Math.PI,a.initialize(0,s.e,s.f,s.z);const _=e.getPathCount(),h=new r.P,o=new r.P,m=e.getImpl().getAttributeStreamRef(0);for(let r=0;r<_;r++){const _=e.getPathStart(r),l=e.getPathEnd(r);if(!(l-_<=1)){m.queryPoint2D(2*(l-1),h);for(let e=_;e<l;e++){m.queryPoint2D(2*e,o);const r=h.y*t,l=o.y*t;if(e===_?(i.initialize(r,s.e,s.f,s.z),i.make_negative=!1):i.assign(a),a.initialize(l,s.e,s.f,s.z),a.make_negative=!1,h.y*o.y<0){if(h.y>=90&&o.y<=-90||o.y>=90&&h.y<=-90)return Number.NaN;const e=R();e.initialize(0,s.e,s.f,s.z),e.make_negative=!1;const _=i.atanh_sin_phi-s.e*i.atanh_esin_phi,m=a.atanh_sin_phi-s.e*a.atanh_esin_phi,l=(m*h.x-_*o.x)/(m-_);r<0?(i.make_negative=!0,n-=this.loxodromeAreaHemi(s,h.x*t,i,l*t,e),i.make_negative=!1,n+=this.loxodromeAreaHemi(s,l*t,e,o.x*t,a)):(n+=this.loxodromeAreaHemi(s,h.x*t,i,l*t,e),a.make_negative=!0,n-=this.loxodromeAreaHemi(s,l*t,e,o.x*t,a),a.make_negative=!1)}else h.y>=0?n+=this.loxodromeAreaHemi(s,h.x*t,i,o.x*t,a):(i.make_negative=!0,a.make_negative=!0,n-=this.loxodromeAreaHemi(s,h.x*t,i,o.x*t,a),i.make_negative=!1,a.make_negative=!1);h.assign(o)}}}return this.m_a*n*this.m_a}calculate(e){if(e.isEmpty()||e.getDimension()<2)return 0;if(e.getGeometryType()===s.G.enumEnvelope){const t=new i.P;return t.addEnvelope(e,!1),this.calculate(t)}return this.m_inputSR!==this.m_inputGCS&&null===this.m_transformPCS2GCS&&(this.m_transformPCS2GCS=(0,_.B)(this.m_inputSR,this.m_inputGCS,null)),this.executePolygonGeodeticArea(e)}}class N{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,i){return(0,s.c)(e),4===n?(new f).execute(e,t,i):new w(t,n,i).calculate(e)}}},47591(e,t,n){n.d(t,{O:()=>g});var s=n(55537),i=n(39117),a=n(88885),_=n(83661),r=n(95213),h=n(79187),o=n(5247),m=n(31139);function l(){return{m_pGcs:new _.P,m_xyz:new r.k,m_factor:Number.NaN,m_geoLength:Number.NaN,setValues:u,setLength:p,assign:c}}function u(e,t,n,s){this.m_factor=e,this.m_pGcs.assign(t),this.m_xyz.assign(s),this.m_geoLength=n}function p(e){this.m_geoLength=e}function c(e){this.m_pGcs.assign(e.m_pGcs),this.m_xyz.assign(e.m_xyz),this.m_factor=e.m_factor,this.m_geoLength=e.m_geoLength}class g{getOperatorType(){return 10315}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}_ExecuteShapePreservingLength(e,t,n,s,a){if(e.hasNonLinearSegments()&&(e=(new o.O).execute(e,0,t.getTolerance(0),0,a)),t.isPannable()){let s=90,_=-90;if(1===n.getUnit().getUnitToBaseFactor()&&(s*=Math.PI/180,_*=Math.PI/180),2===t.getCoordinateSystemType()){let e=null;const n=[0,0,0,0];e=t.getPECoordSys(),n[0]=0,n[1]=s,n[2]=0,n[3]=_,i.ay.geogToProj(e,2,n),s=n[1],_=n[3]}const r=new h.Envelope2D;e.queryEnvelope(r),r.ymin=_,r.ymax=s,e=(new m.O).execute(e,r,t,a)}else{const n=t.getPCSHorizon();if((e=(new i.Z).execute(e,n,t,a))===n){const t=e.clone();e=t}}return e.isEmpty()?0:this._ExecuteIterativeApproach(e,t,n,s,1,a)}_ExecuteIterativeApproach(e,t,n,a,h,o){const m=(0,i.r)();n.querySpheroidData(m);const u=m.majorSemiAxis,p=m.e2,c=n.getUnit().getUnitToBaseFactor(),g=(0,_.q)(l,40),E=(0,_.d)(40,Number.NaN),f=l(),S=l();let y;const x=[0,0,0,0],A=t.getPECoordSys(),R=new _.P,C=new _.P,M=new _.P,T=new _.P,q=new _.P;let w=0;const N=e.querySegmentIterator();for(;N.nextPath();)for(;N.hasNextSegment();){const e=N.nextSegment();R.assign(e.getStartXY()),C.assign(e.getEndXY()),2===t.getCoordinateSystemType()?(x[0]=R.x,x[1]=R.y,x[2]=C.x,x[3]=C.y,i.ay.projToGeog(A,2,x),M.x=x[0]*c,M.y=x[1]*c,T.x=x[2]*c,T.y=x[3]*c):(M.setCoordsPoint2D(R),T.setCoordsPoint2D(C),M.scale(c),T.scale(c));const n=new r.k,a=new r.k;d(u,p,M,n),d(u,p,T,a);let _=P(u,n,a);f.setValues(0,M,Number.NaN,n),S.setValues(1,T,_,a),y=h,g[0].assign(S),E[0]=h;let o=0;for(;;){o>128&&(0,s.d)("iterations exceeded");const n=.5*(f.m_factor+S.m_factor),a=e.getCoord2D(n);2===t.getCoordinateSystemType()?(x[0]=a.x,x[1]=a.y,i.ay.projToGeog(A,1,x),q.x=x[0]*c,q.y=x[1]*c):(q.setCoordsPoint2D(a),q.scale(c)),M.setCoordsPoint2D(f.m_pGcs),T.setCoordsPoint2D(S.m_pGcs);const m=new r.k;d(u,p,q,m);const l=P(u,f.m_xyz,m),R=P(u,S.m_xyz,m);_=S.m_geoLength,Number.isNaN(_)&&(_=P(u,f.m_xyz,S.m_xyz));const C=l+R,N=y===h&&C>=20&&Math.abs(C-_)>1e-8*(_+C);if(o+2<40&&(N||Math.abs(C-_)>0&&y>0))S.setLength(R),g[o].assign(S),S.setValues(n,q,l,m),g[++o].assign(S),N?(y=h,E[o]=h):(y--,E[o-1]=y,E[o]=y);else{if(w+=C,0===o)break;f.assign(S),S.assign(g[--o]),y=E[o]}}}return w}execute(e,t,n){if(t&&0!==t.getCoordinateSystemType()||(0,s.a)(""),e.isEmpty()||e.getDimension()<1)return 0;let _=null;const r=t.getGCS();r!==t&&(_=(0,i.B)(t,r,null));const h=e.getGeometryType();if(h===s.G.enumEnvelope){const s=new a.P;return s.addEnvelope(e,!1),this._ExecuteShapePreservingLength(s,t,r,_,n)}if((0,s.h)(h)){const s=new a.a;return s.addSegment(e,!0),this._ExecuteShapePreservingLength(s,t,r,_,n)}return this._ExecuteShapePreservingLength(e,t,r,_,n)}}function d(e,t,n,s){s.assign((0,i.aq)(e,t,n))}function P(e,t,n){const s=e,i=new r.k;i.setSub(t,n);const a=i.length();return 2*s*Math.asin(a/(2*s))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2186],{2272(e,t,n){n.d(t,{Dl:()=>f,gf:()=>l,jV:()=>a,lF:()=>c});var i=n(92602),r=n(70333),s=n(4718),o=n(84952),u=n(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function f(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,n){const i={};for(const r in e){if("declaredClass"===r)continue;const s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[r]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[r]);i[r]=t?e:JSON.stringify(e)}else i[r]=t?s:JSON.stringify(s);else i[r]=s}return i}async function l(e,t,s){const o=function(e,t){return e?t&&(0,u.Qc)(e)?t:(0,u.getApiKey)(e)??r.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!r.id&&i.A.request.useIdentity&&await Promise.all([n.e(7632),n.e(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2186],{2272(e,t,n){n.d(t,{Dl:()=>f,gf:()=>l,jV:()=>a,lF:()=>c});var i=n(92602),r=n(70333),s=n(4718),o=n(84952),u=n(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function f(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,n){const i={};for(const r in e){if("declaredClass"===r)continue;const s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[r]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[r]);i[r]=t?e:JSON.stringify(e)}else i[r]=t?s:JSON.stringify(s);else i[r]=s}return i}async function l(e,t,s){const o=function(e,t){return e?t&&(0,u.Qc)(e)?t:(0,u.getApiKey)(e)??r.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!r.id&&i.A.request.useIdentity&&await Promise.all([n.e(7632),n.e(2584),n.e(148)]).then(n.bind(n,50148));const a=await r.id.getCredential(e,s);return a?.token}},32186(e,t,n){n.r(t),n.d(t,{deleteForwardEdits:()=>o});var i=n(11254),r=n(49186),s=n(2272);async function o(e,t,n,o){if(!t)throw new r.A("post:missing-guid","guid for version is missing");const u=(0,s.Dl)(e),a=n.toJSON(),f=(0,s.jV)(u.query,{query:(0,s.lF)({...a,f:"json"}),...o,method:"post"});t.startsWith("{")&&(t=t.slice(1,-1));const c=`${u.path}/versions/${t}/deleteForwardEdits`,{data:l}=await(0,i.A)(c,f);return l}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[353],{61691(e,t,s){s.d(t,{G:()=>m});class m{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},12189(e,t,s){s.d(t,{queryTransformationList:()=>m.
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[353],{61691(e,t,s){s.d(t,{G:()=>m});class m{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},12189(e,t,s){s.d(t,{queryTransformationList:()=>m.z}),s(55537),s(83661);var m=s(39117)},76061(e,t,s){s.d(t,{S:()=>i});var m=s(61691);class i extends m.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5605],{68375(t,s,e){e.d(s,{O:()=>h});var i=e(61691),n=e(55537),o=e(39117),r=e(79187),m=e(86870);class h{getOperatorType(){return 10111}supportsCurves(){return!0}accelerateGeometry(t,s,e){return!1}canAccelerateGeometry(t){return!1}executeMany(t,s,e,i,n,r,m,h,_,c,f){if(_){const _=new a(t,s,e,i,n,r,m,h,f);return(new o.W).executeMany(_,s,f,2)}return new a(t,s,e,i,n,r,m,h,f)}}class a extends i.G{m_inputGeoms;m_spatialReference;m_progressTracker;m_bufferer;m_distances;m_maxDeviation;m_miterLimit;m_maxVerticesInFullCircle;m_joins;m_caps;m_currentUnionEnvelope2D=new r.Envelope2D;m_index=-1;m_dindex=-1;constructor(t,s,e,i,n,o,r,h,a){super(),this.m_progressTracker=a,this.m_bufferer=new m.B(a),this.m_inputGeoms=t,this.m_spatialReference=s,this.m_distances=e,this.m_maxDeviation=r,this.m_maxVerticesInFullCircle=h,this.m_joins=i,this.m_caps=n,this.m_miterLimit=o}tock(){return!0}getRank(){return 1}next(){{let t;for(;t=this.m_inputGeoms.next();)return(0,n.c)(t),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(t,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(t,s){return this.m_bufferer.buffer(t,s,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}},66070(t,s,e){e.d(s,{fz:()=>g,g7:()=>x,zo:()=>b});var i=e(76061),n=e(61691),o=e(95213),r=e(55537),m=e(88885),h=e(83661),a=e(86870),_=e(68375);const c=1.4142135623730951,f=.017453292519943295,u=256,l=1024;class d{x;y;m_next;m_prev;z;m;type;static construct(t,s,e){const i=new d;return i.x=t.x,i.y=t.y,i.m_next=-1,i.m_prev=-1,i.z=s,i.m=e,i.type=0,i}clone(){const t=new d;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new h.P(this.x,this.y)}}class P{m_progressTracker;m_inputGeometry;m_distance=-1;m_tolerance=-1;m_miterLimit=10;m_joins=0;m_progressCounter=0;m_options=0;m_bUseZ=!1;m_bUseM=!1;m_srcPts=[];m_srcPtCount=0;m_offsetPts=[];m_offsetPtCount=0;m_resultPath;m_a1=0;m_a2=0;constructor(t){this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===r.G.enumLine)return this.offsetLine();if(t===r.G.enumEnvelope)return this.offsetEnvelope();if((0,r.h)(t)){const t=new m.a;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===r.G.enumPolyline){const t=new m.a;return this.offsetMultiPath(t),t}if(t===r.G.enumPolygon){if(1===this.m_options){let t;switch(this.m_joins){case 1:case 3:t=2;break;case 2:t=1;break;case 0:t=0;break;default:(0,r.g)(!1,"Invalid join type")}const s=1,e=[-1];return(new _.O).executeMany(new i.S([this.m_inputGeometry]),null,e,t,s,this.m_miterLimit,this.m_tolerance,360,!1,0,null).next()}const t=new m.P;return this.offsetMultiPath(t),t}(0,r.t)("")}offsetLine(){const t=this.m_inputGeometry,s=t.getStartXY(),e=t.getEndXY(),i=new h.P;i.setSub(e,s),i.normalize(),i.leftPerpendicularThis(),i.scale(this.m_distance),s.addThis(i),e.addThis(i);const n=t.clone();return n.setStartXY(s),n.setEndXY(e),n}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const s=new m.P;return s.addEnvelope(t,!1),this.m_inputGeometry=s,this.constructOffset()}const s=t.clone();return s.inflateCoords(this.m_distance,this.m_distance),s}progress(){}static buildPoint(t,s,e,i){i.x=t.x+s*Math.cos(e),i.y=t.y+s*Math.sin(e),i.type=t.type,i.z=t.z,i.m=t.m,i.m_next=-1,i.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,s){if(0===this.m_offsetPtCount)return void this.addPoint(t);const e=this.m_srcPtCount,i=this.m_srcPts[0===s?e-1:s-1],n=this.m_srcPts[s],o=P.dotSign(i,n,this.m_offsetPts[this.m_offsetPtCount-1],t);if(o>0)this.addPoint(t);else if(o<0)if(P.dotSign(i,n,n,this.m_offsetPts[this.m_offsetPtCount-1])>0){const n=new d;let o;o=0===s?e-2:1===s?e-1:s-2;const r=this.m_srcPts[o],m=Math.atan2(i.y-r.y,i.x-r.x);if(P.buildPoint(i,this.m_distance,m-h.l,n),this.m_offsetPts[this.m_offsetPtCount-1]=n.clone(),1===this.m_joins||2===this.m_joins){n.x=.5*(n.x+i.x),n.y=.5*(n.y+i.y),this.addPoint(n),P.buildPoint(i,this.m_distance,this.m_a1+h.l,n);const t=n.clone();t.x=.5*(t.x+i.x),t.y=.5*(t.y+i.y),t.type|=u,this.addPoint(t),this.addPoint(n)}else P.buildPoint(i,this.m_distance,this.m_a1+h.l,n),n.type|=u,this.addPoint(n);this.addPointEx(t,s)}else{const t=new d;if(P.buildPoint(n,this.m_distance,this.m_a1+h.l,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),this.addPoint(t),P.buildPoint(n,this.m_distance,this.m_a2-h.l,t);const s=t.clone();s.x=.5*(s.x+n.x),s.y=.5*(s.y+n.y),s.type|=u,this.addPoint(s),this.addPoint(t)}else P.buildPoint(n,this.m_distance,this.m_a2-h.l,t),t.type|=u,this.addPoint(t)}}buildOffset(){const t=new d,s=this.m_srcPtCount;this.m_offsetPtCount=0;const e=.5*this.m_tolerance;let i=0,n=0;for(let o=0;o<s;o++){const r=this.m_srcPts[o],m=0===o?this.m_srcPts[s-1]:this.m_srcPts[o-1],a=o===s-1?this.m_srcPts[0]:this.m_srcPts[o+1];let _,d,y=0;{const t=m.x-r.x,s=m.y-r.y,e=a.x-r.x,c=a.y-r.y;_=Math.atan2(s,t),d=Math.atan2(c,e),this.m_a1=_,this.m_a2=d,0===o&&(i=_,n=d),y=h.P.orientationRobust(r.asPoint2D(),m.asPoint2D(),a.asPoint2D())}const p=d;d<_&&(d+=h.n);const x=Math.abs(Math.abs(_-d)-Math.PI)<1e-8;if(x||y*this.m_distance>0)if(x||1!==this.m_joins&&2!==this.m_joins){const s=.5*(d-_),e=0===s?this.m_distance:this.m_distance/Math.abs(Math.sin(s));P.buildPoint(r,e,.5*(_+d),t),this.addPointEx(t,o)}else{P.buildPoint(r,this.m_distance,_+h.l,t),this.addPoint(t);const s=.001;t.x=r.x+(t.x-r.x)*s,t.y=r.y+(t.y-r.y)*s,this.addPoint(t),P.buildPoint(r,this.m_distance,d-h.l,t);const e=t.clone();e.x=r.x+(e.x-r.x)*s,e.y=r.y+(e.y-r.y)*s,e.type|=u,this.addPoint(e),this.addPoint(t)}else{if(512&r.type){const s=1-e/Math.abs(this.m_distance);let i=1,n=this.m_distance<0?-Math.PI:Math.PI;if(s>-1&&s<1){let t=2*Math.acos(s);t<f&&(t=f),i=Math.trunc(Math.PI/t+1.5),i>1&&(n/=i)}i<=1&&(i=2,n/=2);let m=_+h.l;P.buildPoint(r,this.m_distance,m,t),0===o&&(t.type|=l),this.addPointEx(t,o);const a=this.m_distance/Math.cos(n/2);for(m+=n/2,P.buildPoint(r,a,m,t),t.type|=l,this.addPoint(t);--i>0;)m+=n,P.buildPoint(r,a,m,t),t.type|=l,this.addPoint(t);P.buildPoint(r,this.m_distance,d-h.l,t),t.type|=l,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const s=1-e/Math.abs(this.m_distance);let i=1,n=d-h.l-(_+h.l);if(s>-1&&s<1){let t=2*Math.acos(s);t<f&&(t=f),i=Math.trunc(Math.abs(n)/t+1.5),i>1&&(n/=i)}const m=this.m_distance/Math.cos(.5*n);let a=_+h.l+.5*n;for(P.buildPoint(r,m,a,t),this.addPointEx(t,o);--i>0;)a+=n,P.buildPoint(r,m,a,t),this.addPoint(t);continue}if(2===this.m_joins){const s=m.x-r.x,e=m.y-r.y,i=a.x-r.x,n=a.y-r.y;let f=(s*i+e*n)/Math.sqrt(s*s+e*e)/Math.sqrt(i*i+n*n);if(f=Math.max(f,-1),f>1-1e-8){P.buildPoint(r,c*this.m_distance,d-.25*Math.PI,t),this.addPointEx(t,o),P.buildPoint(r,c*this.m_distance,d+.25*Math.PI,t),this.addPoint(t);continue}const u=Math.abs(this.m_distance/Math.sin(.5*Math.acos(f))),l=Math.abs(this.m_miterLimit*this.m_distance);if(u>l){const s=.5*(d-_),e=this.m_distance/Math.abs(Math.sin(s));P.buildPoint(r,e,.5*(_+d),t);const i=h.P.construct(t.x,t.y),n=h.P.construct(r.x,r.y),m=new h.P;m.setSub(i,n);const a=new h.P;a.setScaleAdd(l/m.length(),m,n);const c=Math.sqrt(u*u-this.m_distance*this.m_distance),f=(u-l)*Math.abs(this.m_distance)/c;this.m_distance>0?m.rightPerpendicularThis():m.leftPerpendicularThis(),m.scale(f/m.length());const y=new h.P;y.setAdd(a,m);const p=new h.P;p.setSub(a,m),t.x=y.x,t.y=y.y,this.addPointEx(t,o),t.x=p.x,t.y=p.y,this.addPoint(t);continue}const y=.5*(d-_),p=this.m_distance/Math.abs(Math.sin(y));P.buildPoint(r,p,.5*(_+d),t),this.addPointEx(t,o);continue}{let s;if(d=p,this.m_distance>0?(d>_&&(d-=h.n),s=_-d<h.l):(d<_&&(d+=h.n),s=d-_<h.l),s){const s=this.m_distance*c;let e;e=s<0?_+.25*Math.PI:_+3*Math.PI*.25,P.buildPoint(r,s,e,t),this.addPointEx(t,o),e=s<0?d-.25*Math.PI:d-3*Math.PI*.25,P.buildPoint(r,s,e,t),this.addPoint(t)}else{const s=.5*(d-_),e=this.m_distance/Math.abs(Math.sin(s));d<_&&(d+=h.n),P.buildPoint(r,e,(_+d)/2,t),this.addPointEx(t,o)}}}else P.buildPoint(r,this.m_distance,_+h.l,t),this.addPointEx(t,o),P.buildPoint(r,this.m_distance,d-h.l,t),this.addPoint(t)}}return this.m_a1=i,this.m_a2=n,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){for(let t=0;t<this.m_offsetPtCount;t++){const s=this.m_offsetPts[t];s.m_next=t+1,s.m_prev=t-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let t=this.m_offsetPtCount,s=0;for(let e=0;e<t;e++)if(this.m_offsetPts[s].type&u){const e=this.m_offsetPts[s].m_next,i=this.deleteClosedSeg(s);if(-1===i){(0,r.g)(this.m_offsetPts[s].m_next===e);break}if(s>i){s=i,t=0;do{t++,s=this.m_offsetPts[s].m_next}while(s!==i)}s=i}else s=this.m_offsetPts[s].m_next;return this.compressOffsetArray(s),!0}deleteClosedSeg(t){const s=this.m_offsetPtCount-1;let e=t;for(let i=1;i<=s-2&&(e=this.m_offsetPts[e].m_next,t!==e);i++){let s=e,n=t;for(let o=1;o<=i&&(n=this.m_offsetPts[n].m_prev,n!==t);o++){if(0===(this.m_offsetPts[n].type&u)&&0===(this.m_offsetPts[s].type&u)){const t=this.handleClosedIntersection(n,s);if(-1!==t)return t}if(s=this.m_offsetPts[s].m_prev,s===e)break}}return-1}handleClosedIntersection(t,s){const e=this.m_offsetPts[this.m_offsetPts[t].m_prev],i=this.m_offsetPts[t],n=this.m_offsetPts[this.m_offsetPts[s].m_prev],o=this.m_offsetPts[s];if(!this.sectGraphicRect(e,i,n,o))return-1;if(h.P.orientationRobustEx(e.asPoint2D(),i.asPoint2D(),n.asPoint2D(),o.asPoint2D())*this.m_distance<0){const r=this.findIntersection(e,i,n,o);let m=!1;if(r[0]>=0){const a={pt:new d,bAtExistingPt:!1};if(r[0]>=0&&r[0]<=1&&(a.pt.x=(0,h.r)(e.x,i.x,r[0]),a.pt.y=(0,h.r)(e.y,i.y,r[0]),this.m_bUseZ&&(a.pt.z=(0,h.r)(n.z,o.z,r[1])),this.m_bUseM&&(a.pt.m=(0,h.r)(n.m,o.m,r[1])),0!==r[1]&&1!==r[1]||0!==r[0]&&1!==r[0]||(a.bAtExistingPt=!0),m=!((0===r[1]||1===r[1])&&r[0]>0&&r[0]<1||(0===r[0]||1===r[0])&&r[1]>0&&r[1]<1)),m&&!a.bAtExistingPt){let e=!1;const o=a.pt.asPoint2D(),r=n.asPoint2D(),m=a.pt.asPoint2D();let _=this.m_offsetPts[t].m_prev;for(;;){if(h.P.getClosestCoordinate(r,m,o,!1)<1e-8){e=!1;break}if((m.y>o.y&&r.y<=o.y||m.y<o.y&&m.y<=o.y)&&h.P.orientationRobustEx(m,o,m,r)<0&&(e=!e),r.x=m.x,r.y=m.y,_=this.m_offsetPts[_].m_next,_===s)break;m.x=this.m_offsetPts[_].x,m.y=this.m_offsetPts[_].y}if(e)return-1;const c=this.m_offsetPts[t].m_prev;return a.pt.type=i.type,a.pt.m_next=s,a.pt.m_prev=c,this.m_offsetPts[t]=a.pt,this.m_offsetPts[s].m_prev=t,s}}}return-1}sectGraphicRect(t,s,e,i){return Math.max(t.x,s.x)>=Math.min(e.x,i.x)&&Math.max(e.x,i.x)>=Math.min(t.x,s.x)&&Math.max(t.y,s.y)>=Math.min(e.y,i.y)&&Math.max(e.y,i.y)>=Math.min(t.y,s.y)}findIntersection(t,s,e,i){const[n,o,r,h]=[t,s,e,i].map(t=>t.asPoint2D());if(n.equals(r))return[0,0];if(n.equals(h))return[0,1];if(o.equals(r))return[1,0];if(o.equals(h))return[1,1];const a=[];return 1===m.L.segmentIntersectRobust(n,o,r,h,1e-15,a)?a:[-1,-1]}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let s=0,e=t;do{const t=this.m_offsetPts[e].clone();this.m_offsetPts[s]=t,e=t.m_next,s++}while(e!==t);this.m_offsetPts[s]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=s+1}addPart(t,s,e){if(!(s<2)){for(let e=0;e<s;e++){const s=this.m_offsetPts[t+e];if(e?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(s.x,s.y,s.z):this.m_resultPath.lineToCoords(s.x,s.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(s.x,s.y,s.z):this.m_resultPath.startPathCoords(s.x,s.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,s.m)}}e&&this.m_resultPath.closePathWithLine()}}offsetMultiPath(t){const s=(0,m.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),e=s.querySegmentIterator();e.resetToFirstPath();let i=-1;for(;e.nextPath();)i++,this.offsetPath(s,i,t)}offsetPath(t,s,e){let i=t.getPathStart(s),n=t.getPathEnd(s);if(this.m_resultPath=e,t.isClosedPath(s)){const s=t.getXY(i);for(;n>i&&t.getXY(n-1).equals(s);)n--;if(n-i>=2){this.m_srcPtCount=n-i,this.m_srcPts.length=this.m_srcPtCount;for(let s=i;s<n;s++)this.progress(),this.m_srcPts[s-i]=d.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1,!0)}}else{const s=t.getXY(i);for(;i<n-1&&t.getXY(i+1).equals(s);)i++;const e=t.getXY(n-1);for(;i<n-1&&t.getXY(n-2).equals(e);)n--;if(n-i>=2){this.m_srcPtCount=2*(n-i)-2,this.m_srcPts.length=this.m_srcPtCount;let e=d.construct(s,this.m_bUseZ?t.getAttributeAsDbl(1,i,0):0,this.m_bUseM?t.getAttributeAsDbl(2,i,0):0);e.type|=1536,this.m_srcPts[0]=e;let o=1,r=this.m_srcPtCount-1;for(let s=i+1;s<n-1;s++,o++,r--)this.progress(),e=d.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0),this.m_srcPts[o]=e.clone(),e.type|=l,this.m_srcPts[r]=e.clone();if(e=d.construct(t.getXY(n-1),this.m_bUseZ?t.getAttributeAsDbl(1,n-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n-1,0):0),e.type|=512,this.m_srcPts[o]=e.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,s=-1,e=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&l);e||(t=0);for(let i=1;i<this.m_offsetPtCount;i++){this.progress();const n=0!==(this.m_offsetPts[i].type&l);n?e||(s=i-1,s-t+1>1&&this.addPart(t,s-t+1,!1)):e&&(t=i-1),e=n}e||(s=this.m_offsetPtCount-1,s-t+1>1&&this.addPart(t,s-t+1,!1))}else{const t=0,s=this.m_offsetPtCount-1;s-t>=1&&this.addPart(t,s-t+1,!1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,s,e,i){const n=s.x-t.x,o=s.y-t.y,r=i.x-e.x,m=i.y-e.y,a=(0,h.u)(n,o,r,m);return(0,h.e)(a)}}class y extends n.G{m_inputGeoms;m_spatialReference;m_progressTracker;m_distance;m_miterLimit;m_joins;m_flattenError;m_index;m_options;constructor(t,s,e,i,n,o,r,m){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=s,this.m_distance=e,this.m_joins=i,this.m_miterLimit=n,this.m_flattenError=o,this.m_options=m}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let s;return(0,r.c)(t),s=this.m_flattenError<=0?(0,o.e)(this.m_spatialReference,t,!0).total():this.m_flattenError,function(t,s,e,i,n,o,m){if(null===t&&(0,r.a)(""),t.getDimension()<1&&(0,r.a)(""),n>0||(0,r.a)(""),(0,r.c)(t),0===s||t.isEmpty())return t;const h=new P(m);return h.m_bUseZ=t.hasAttribute(1),h.m_bUseM=t.hasAttribute(2),h.m_inputGeometry=t,h.m_distance=s,h.m_tolerance=n,h.m_joins=e,h.m_miterLimit=i>1?i:1,h.m_miterLimit=(0,a.s)(h.m_miterLimit),h.m_progressCounter=0,h.m_options=o,h.constructOffset()}(t,this.m_distance,this.m_joins,this.m_miterLimit,s,this.m_options,this.m_progressTracker)}}const p=new class{getOperatorType(){return 10108}accelerateGeometry(t,s,e){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,s,e,i,n,o,r,m=0){return new y(t,s,e,i,n,o,r,m)}execute(t,s,e,i,n,o,r,m=0){return new y(null,s,e,i,n,o,r,m).offset(t)}};function x(t,s,e,i,n,o){return p.execute(t,s,e,i,n,o,null)}function b(t,s,e,n,o,r){const m=p.executeMany(new i.S(t),s,e,n,o,r,null);return Array.from(m)}function g(){return p.supportsCurves()}},15605(t,s,e){e.r(s),e.d(s,{execute:()=>h,executeMany:()=>a});var i=e(4576),n=e(86211),o=e(66070),r=e(83299);const m={round:0,bevel:1,miter:2,square:3};function h(t,s,e={}){const{miterLimit:i=10,flattenError:h=0,joins:a="round",unit:_}=e,c=(0,r.getSpatialReference)(t);_&&c&&(s=(0,n.UW)(s,_,c));const f=(0,r.fromGeometry)(t),u=f.getSpatialReference();return(0,r.toGeometry)((0,o.g7)(f.getGeometry(),u,s,m[a],i,h),u)}function a(t,s,e={}){const{miterLimit:h=10,flattenError:a=0,joins:_="round",unit:c}=e,f=(0,r.getSpatialReference)(t);c&&f&&(s=(0,n.UW)(s,c,f));const[u,l]=(0,r.fromGeometries)(t);return(0,o.zo)(u,l,s,m[_],h,a).map(t=>(0,r.toGeometry)(t,l)).filter(i.Ru)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5605],{68375(t,s,e){e.d(s,{O:()=>h});var i=e(61691),n=e(55537),o=e(39117),r=e(79187),m=e(86870);class h{getOperatorType(){return 10111}supportsCurves(){return!0}accelerateGeometry(t,s,e){return!1}canAccelerateGeometry(t){return!1}executeMany(t,s,e,i,n,r,m,h,_,c,f){if(_){const _=new a(t,s,e,i,n,r,m,h,f);return(new o._).executeMany(_,s,f,2)}return new a(t,s,e,i,n,r,m,h,f)}}class a extends i.G{m_inputGeoms;m_spatialReference;m_progressTracker;m_bufferer;m_distances;m_maxDeviation;m_miterLimit;m_maxVerticesInFullCircle;m_joins;m_caps;m_currentUnionEnvelope2D=new r.Envelope2D;m_index=-1;m_dindex=-1;constructor(t,s,e,i,n,o,r,h,a){super(),this.m_progressTracker=a,this.m_bufferer=new m.B(a),this.m_inputGeoms=t,this.m_spatialReference=s,this.m_distances=e,this.m_maxDeviation=r,this.m_maxVerticesInFullCircle=h,this.m_joins=i,this.m_caps=n,this.m_miterLimit=o}tock(){return!0}getRank(){return 1}next(){{let t;for(;t=this.m_inputGeoms.next();)return(0,n.c)(t),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(t,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(t,s){return this.m_bufferer.buffer(t,s,this.m_spatialReference,this.m_joins,this.m_caps,this.m_miterLimit,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}},66070(t,s,e){e.d(s,{fz:()=>g,g7:()=>x,zo:()=>b});var i=e(76061),n=e(61691),o=e(95213),r=e(55537),m=e(88885),h=e(83661),a=e(86870),_=e(68375);const c=1.4142135623730951,f=.017453292519943295,u=256,l=1024;class d{x;y;m_next;m_prev;z;m;type;static construct(t,s,e){const i=new d;return i.x=t.x,i.y=t.y,i.m_next=-1,i.m_prev=-1,i.z=s,i.m=e,i.type=0,i}clone(){const t=new d;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new h.P(this.x,this.y)}}class P{m_progressTracker;m_inputGeometry;m_distance=-1;m_tolerance=-1;m_miterLimit=10;m_joins=0;m_progressCounter=0;m_options=0;m_bUseZ=!1;m_bUseM=!1;m_srcPts=[];m_srcPtCount=0;m_offsetPts=[];m_offsetPtCount=0;m_resultPath;m_a1=0;m_a2=0;constructor(t){this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===r.G.enumLine)return this.offsetLine();if(t===r.G.enumEnvelope)return this.offsetEnvelope();if((0,r.h)(t)){const t=new m.a;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===r.G.enumPolyline){const t=new m.a;return this.offsetMultiPath(t),t}if(t===r.G.enumPolygon){if(1===this.m_options){let t;switch(this.m_joins){case 1:case 3:t=2;break;case 2:t=1;break;case 0:t=0;break;default:(0,r.g)(!1,"Invalid join type")}const s=1,e=[-1];return(new _.O).executeMany(new i.S([this.m_inputGeometry]),null,e,t,s,this.m_miterLimit,this.m_tolerance,360,!1,0,null).next()}const t=new m.P;return this.offsetMultiPath(t),t}(0,r.t)("")}offsetLine(){const t=this.m_inputGeometry,s=t.getStartXY(),e=t.getEndXY(),i=new h.P;i.setSub(e,s),i.normalize(),i.leftPerpendicularThis(),i.scale(this.m_distance),s.addThis(i),e.addThis(i);const n=t.clone();return n.setStartXY(s),n.setEndXY(e),n}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const s=new m.P;return s.addEnvelope(t,!1),this.m_inputGeometry=s,this.constructOffset()}const s=t.clone();return s.inflateCoords(this.m_distance,this.m_distance),s}progress(){}static buildPoint(t,s,e,i){i.x=t.x+s*Math.cos(e),i.y=t.y+s*Math.sin(e),i.type=t.type,i.z=t.z,i.m=t.m,i.m_next=-1,i.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,s){if(0===this.m_offsetPtCount)return void this.addPoint(t);const e=this.m_srcPtCount,i=this.m_srcPts[0===s?e-1:s-1],n=this.m_srcPts[s],o=P.dotSign(i,n,this.m_offsetPts[this.m_offsetPtCount-1],t);if(o>0)this.addPoint(t);else if(o<0)if(P.dotSign(i,n,n,this.m_offsetPts[this.m_offsetPtCount-1])>0){const n=new d;let o;o=0===s?e-2:1===s?e-1:s-2;const r=this.m_srcPts[o],m=Math.atan2(i.y-r.y,i.x-r.x);if(P.buildPoint(i,this.m_distance,m-h.l,n),this.m_offsetPts[this.m_offsetPtCount-1]=n.clone(),1===this.m_joins||2===this.m_joins){n.x=.5*(n.x+i.x),n.y=.5*(n.y+i.y),this.addPoint(n),P.buildPoint(i,this.m_distance,this.m_a1+h.l,n);const t=n.clone();t.x=.5*(t.x+i.x),t.y=.5*(t.y+i.y),t.type|=u,this.addPoint(t),this.addPoint(n)}else P.buildPoint(i,this.m_distance,this.m_a1+h.l,n),n.type|=u,this.addPoint(n);this.addPointEx(t,s)}else{const t=new d;if(P.buildPoint(n,this.m_distance,this.m_a1+h.l,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),this.addPoint(t),P.buildPoint(n,this.m_distance,this.m_a2-h.l,t);const s=t.clone();s.x=.5*(s.x+n.x),s.y=.5*(s.y+n.y),s.type|=u,this.addPoint(s),this.addPoint(t)}else P.buildPoint(n,this.m_distance,this.m_a2-h.l,t),t.type|=u,this.addPoint(t)}}buildOffset(){const t=new d,s=this.m_srcPtCount;this.m_offsetPtCount=0;const e=.5*this.m_tolerance;let i=0,n=0;for(let o=0;o<s;o++){const r=this.m_srcPts[o],m=0===o?this.m_srcPts[s-1]:this.m_srcPts[o-1],a=o===s-1?this.m_srcPts[0]:this.m_srcPts[o+1];let _,d,y=0;{const t=m.x-r.x,s=m.y-r.y,e=a.x-r.x,c=a.y-r.y;_=Math.atan2(s,t),d=Math.atan2(c,e),this.m_a1=_,this.m_a2=d,0===o&&(i=_,n=d),y=h.P.orientationRobust(r.asPoint2D(),m.asPoint2D(),a.asPoint2D())}const p=d;d<_&&(d+=h.n);const x=Math.abs(Math.abs(_-d)-Math.PI)<1e-8;if(x||y*this.m_distance>0)if(x||1!==this.m_joins&&2!==this.m_joins){const s=.5*(d-_),e=0===s?this.m_distance:this.m_distance/Math.abs(Math.sin(s));P.buildPoint(r,e,.5*(_+d),t),this.addPointEx(t,o)}else{P.buildPoint(r,this.m_distance,_+h.l,t),this.addPoint(t);const s=.001;t.x=r.x+(t.x-r.x)*s,t.y=r.y+(t.y-r.y)*s,this.addPoint(t),P.buildPoint(r,this.m_distance,d-h.l,t);const e=t.clone();e.x=r.x+(e.x-r.x)*s,e.y=r.y+(e.y-r.y)*s,e.type|=u,this.addPoint(e),this.addPoint(t)}else{if(512&r.type){const s=1-e/Math.abs(this.m_distance);let i=1,n=this.m_distance<0?-Math.PI:Math.PI;if(s>-1&&s<1){let t=2*Math.acos(s);t<f&&(t=f),i=Math.trunc(Math.PI/t+1.5),i>1&&(n/=i)}i<=1&&(i=2,n/=2);let m=_+h.l;P.buildPoint(r,this.m_distance,m,t),0===o&&(t.type|=l),this.addPointEx(t,o);const a=this.m_distance/Math.cos(n/2);for(m+=n/2,P.buildPoint(r,a,m,t),t.type|=l,this.addPoint(t);--i>0;)m+=n,P.buildPoint(r,a,m,t),t.type|=l,this.addPoint(t);P.buildPoint(r,this.m_distance,d-h.l,t),t.type|=l,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const s=1-e/Math.abs(this.m_distance);let i=1,n=d-h.l-(_+h.l);if(s>-1&&s<1){let t=2*Math.acos(s);t<f&&(t=f),i=Math.trunc(Math.abs(n)/t+1.5),i>1&&(n/=i)}const m=this.m_distance/Math.cos(.5*n);let a=_+h.l+.5*n;for(P.buildPoint(r,m,a,t),this.addPointEx(t,o);--i>0;)a+=n,P.buildPoint(r,m,a,t),this.addPoint(t);continue}if(2===this.m_joins){const s=m.x-r.x,e=m.y-r.y,i=a.x-r.x,n=a.y-r.y;let f=(s*i+e*n)/Math.sqrt(s*s+e*e)/Math.sqrt(i*i+n*n);if(f=Math.max(f,-1),f>1-1e-8){P.buildPoint(r,c*this.m_distance,d-.25*Math.PI,t),this.addPointEx(t,o),P.buildPoint(r,c*this.m_distance,d+.25*Math.PI,t),this.addPoint(t);continue}const u=Math.abs(this.m_distance/Math.sin(.5*Math.acos(f))),l=Math.abs(this.m_miterLimit*this.m_distance);if(u>l){const s=.5*(d-_),e=this.m_distance/Math.abs(Math.sin(s));P.buildPoint(r,e,.5*(_+d),t);const i=h.P.construct(t.x,t.y),n=h.P.construct(r.x,r.y),m=new h.P;m.setSub(i,n);const a=new h.P;a.setScaleAdd(l/m.length(),m,n);const c=Math.sqrt(u*u-this.m_distance*this.m_distance),f=(u-l)*Math.abs(this.m_distance)/c;this.m_distance>0?m.rightPerpendicularThis():m.leftPerpendicularThis(),m.scale(f/m.length());const y=new h.P;y.setAdd(a,m);const p=new h.P;p.setSub(a,m),t.x=y.x,t.y=y.y,this.addPointEx(t,o),t.x=p.x,t.y=p.y,this.addPoint(t);continue}const y=.5*(d-_),p=this.m_distance/Math.abs(Math.sin(y));P.buildPoint(r,p,.5*(_+d),t),this.addPointEx(t,o);continue}{let s;if(d=p,this.m_distance>0?(d>_&&(d-=h.n),s=_-d<h.l):(d<_&&(d+=h.n),s=d-_<h.l),s){const s=this.m_distance*c;let e;e=s<0?_+.25*Math.PI:_+3*Math.PI*.25,P.buildPoint(r,s,e,t),this.addPointEx(t,o),e=s<0?d-.25*Math.PI:d-3*Math.PI*.25,P.buildPoint(r,s,e,t),this.addPoint(t)}else{const s=.5*(d-_),e=this.m_distance/Math.abs(Math.sin(s));d<_&&(d+=h.n),P.buildPoint(r,e,(_+d)/2,t),this.addPointEx(t,o)}}}else P.buildPoint(r,this.m_distance,_+h.l,t),this.addPointEx(t,o),P.buildPoint(r,this.m_distance,d-h.l,t),this.addPoint(t)}}return this.m_a1=i,this.m_a2=n,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){for(let t=0;t<this.m_offsetPtCount;t++){const s=this.m_offsetPts[t];s.m_next=t+1,s.m_prev=t-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let t=this.m_offsetPtCount,s=0;for(let e=0;e<t;e++)if(this.m_offsetPts[s].type&u){const e=this.m_offsetPts[s].m_next,i=this.deleteClosedSeg(s);if(-1===i){(0,r.g)(this.m_offsetPts[s].m_next===e);break}if(s>i){s=i,t=0;do{t++,s=this.m_offsetPts[s].m_next}while(s!==i)}s=i}else s=this.m_offsetPts[s].m_next;return this.compressOffsetArray(s),!0}deleteClosedSeg(t){const s=this.m_offsetPtCount-1;let e=t;for(let i=1;i<=s-2&&(e=this.m_offsetPts[e].m_next,t!==e);i++){let s=e,n=t;for(let o=1;o<=i&&(n=this.m_offsetPts[n].m_prev,n!==t);o++){if(0===(this.m_offsetPts[n].type&u)&&0===(this.m_offsetPts[s].type&u)){const t=this.handleClosedIntersection(n,s);if(-1!==t)return t}if(s=this.m_offsetPts[s].m_prev,s===e)break}}return-1}handleClosedIntersection(t,s){const e=this.m_offsetPts[this.m_offsetPts[t].m_prev],i=this.m_offsetPts[t],n=this.m_offsetPts[this.m_offsetPts[s].m_prev],o=this.m_offsetPts[s];if(!this.sectGraphicRect(e,i,n,o))return-1;if(h.P.orientationRobustEx(e.asPoint2D(),i.asPoint2D(),n.asPoint2D(),o.asPoint2D())*this.m_distance<0){const r=this.findIntersection(e,i,n,o);let m=!1;if(r[0]>=0){const a={pt:new d,bAtExistingPt:!1};if(r[0]>=0&&r[0]<=1&&(a.pt.x=(0,h.r)(e.x,i.x,r[0]),a.pt.y=(0,h.r)(e.y,i.y,r[0]),this.m_bUseZ&&(a.pt.z=(0,h.r)(n.z,o.z,r[1])),this.m_bUseM&&(a.pt.m=(0,h.r)(n.m,o.m,r[1])),0!==r[1]&&1!==r[1]||0!==r[0]&&1!==r[0]||(a.bAtExistingPt=!0),m=!((0===r[1]||1===r[1])&&r[0]>0&&r[0]<1||(0===r[0]||1===r[0])&&r[1]>0&&r[1]<1)),m&&!a.bAtExistingPt){let e=!1;const o=a.pt.asPoint2D(),r=n.asPoint2D(),m=a.pt.asPoint2D();let _=this.m_offsetPts[t].m_prev;for(;;){if(h.P.getClosestCoordinate(r,m,o,!1)<1e-8){e=!1;break}if((m.y>o.y&&r.y<=o.y||m.y<o.y&&m.y<=o.y)&&h.P.orientationRobustEx(m,o,m,r)<0&&(e=!e),r.x=m.x,r.y=m.y,_=this.m_offsetPts[_].m_next,_===s)break;m.x=this.m_offsetPts[_].x,m.y=this.m_offsetPts[_].y}if(e)return-1;const c=this.m_offsetPts[t].m_prev;return a.pt.type=i.type,a.pt.m_next=s,a.pt.m_prev=c,this.m_offsetPts[t]=a.pt,this.m_offsetPts[s].m_prev=t,s}}}return-1}sectGraphicRect(t,s,e,i){return Math.max(t.x,s.x)>=Math.min(e.x,i.x)&&Math.max(e.x,i.x)>=Math.min(t.x,s.x)&&Math.max(t.y,s.y)>=Math.min(e.y,i.y)&&Math.max(e.y,i.y)>=Math.min(t.y,s.y)}findIntersection(t,s,e,i){const[n,o,r,h]=[t,s,e,i].map(t=>t.asPoint2D());if(n.equals(r))return[0,0];if(n.equals(h))return[0,1];if(o.equals(r))return[1,0];if(o.equals(h))return[1,1];const a=[];return 1===m.L.segmentIntersectRobust(n,o,r,h,1e-15,a)?a:[-1,-1]}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let s=0,e=t;do{const t=this.m_offsetPts[e].clone();this.m_offsetPts[s]=t,e=t.m_next,s++}while(e!==t);this.m_offsetPts[s]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=s+1}addPart(t,s,e){if(!(s<2)){for(let e=0;e<s;e++){const s=this.m_offsetPts[t+e];if(e?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(s.x,s.y,s.z):this.m_resultPath.lineToCoords(s.x,s.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(s.x,s.y,s.z):this.m_resultPath.startPathCoords(s.x,s.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,s.m)}}e&&this.m_resultPath.closePathWithLine()}}offsetMultiPath(t){const s=(0,m.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),e=s.querySegmentIterator();e.resetToFirstPath();let i=-1;for(;e.nextPath();)i++,this.offsetPath(s,i,t)}offsetPath(t,s,e){let i=t.getPathStart(s),n=t.getPathEnd(s);if(this.m_resultPath=e,t.isClosedPath(s)){const s=t.getXY(i);for(;n>i&&t.getXY(n-1).equals(s);)n--;if(n-i>=2){this.m_srcPtCount=n-i,this.m_srcPts.length=this.m_srcPtCount;for(let s=i;s<n;s++)this.progress(),this.m_srcPts[s-i]=d.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1,!0)}}else{const s=t.getXY(i);for(;i<n-1&&t.getXY(i+1).equals(s);)i++;const e=t.getXY(n-1);for(;i<n-1&&t.getXY(n-2).equals(e);)n--;if(n-i>=2){this.m_srcPtCount=2*(n-i)-2,this.m_srcPts.length=this.m_srcPtCount;let e=d.construct(s,this.m_bUseZ?t.getAttributeAsDbl(1,i,0):0,this.m_bUseM?t.getAttributeAsDbl(2,i,0):0);e.type|=1536,this.m_srcPts[0]=e;let o=1,r=this.m_srcPtCount-1;for(let s=i+1;s<n-1;s++,o++,r--)this.progress(),e=d.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0),this.m_srcPts[o]=e.clone(),e.type|=l,this.m_srcPts[r]=e.clone();if(e=d.construct(t.getXY(n-1),this.m_bUseZ?t.getAttributeAsDbl(1,n-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n-1,0):0),e.type|=512,this.m_srcPts[o]=e.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,s=-1,e=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&l);e||(t=0);for(let i=1;i<this.m_offsetPtCount;i++){this.progress();const n=0!==(this.m_offsetPts[i].type&l);n?e||(s=i-1,s-t+1>1&&this.addPart(t,s-t+1,!1)):e&&(t=i-1),e=n}e||(s=this.m_offsetPtCount-1,s-t+1>1&&this.addPart(t,s-t+1,!1))}else{const t=0,s=this.m_offsetPtCount-1;s-t>=1&&this.addPart(t,s-t+1,!1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,s,e,i){const n=s.x-t.x,o=s.y-t.y,r=i.x-e.x,m=i.y-e.y,a=(0,h.u)(n,o,r,m);return(0,h.e)(a)}}class y extends n.G{m_inputGeoms;m_spatialReference;m_progressTracker;m_distance;m_miterLimit;m_joins;m_flattenError;m_index;m_options;constructor(t,s,e,i,n,o,r,m){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=s,this.m_distance=e,this.m_joins=i,this.m_miterLimit=n,this.m_flattenError=o,this.m_options=m}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let s;return(0,r.c)(t),s=this.m_flattenError<=0?(0,o.e)(this.m_spatialReference,t,!0).total():this.m_flattenError,function(t,s,e,i,n,o,m){if(null===t&&(0,r.a)(""),t.getDimension()<1&&(0,r.a)(""),n>0||(0,r.a)(""),(0,r.c)(t),0===s||t.isEmpty())return t;const h=new P(m);return h.m_bUseZ=t.hasAttribute(1),h.m_bUseM=t.hasAttribute(2),h.m_inputGeometry=t,h.m_distance=s,h.m_tolerance=n,h.m_joins=e,h.m_miterLimit=i>1?i:1,h.m_miterLimit=(0,a.s)(h.m_miterLimit),h.m_progressCounter=0,h.m_options=o,h.constructOffset()}(t,this.m_distance,this.m_joins,this.m_miterLimit,s,this.m_options,this.m_progressTracker)}}const p=new class{getOperatorType(){return 10108}accelerateGeometry(t,s,e){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,s,e,i,n,o,r,m=0){return new y(t,s,e,i,n,o,r,m)}execute(t,s,e,i,n,o,r,m=0){return new y(null,s,e,i,n,o,r,m).offset(t)}};function x(t,s,e,i,n,o){return p.execute(t,s,e,i,n,o,null)}function b(t,s,e,n,o,r){const m=p.executeMany(new i.S(t),s,e,n,o,r,null);return Array.from(m)}function g(){return p.supportsCurves()}},15605(t,s,e){e.r(s),e.d(s,{execute:()=>h,executeMany:()=>a});var i=e(4576),n=e(86211),o=e(66070),r=e(83299);const m={round:0,bevel:1,miter:2,square:3};function h(t,s,e={}){const{miterLimit:i=10,flattenError:h=0,joins:a="round",unit:_}=e,c=(0,r.getSpatialReference)(t);_&&c&&(s=(0,n.UW)(s,_,c));const f=(0,r.fromGeometry)(t),u=f.getSpatialReference();return(0,r.toGeometry)((0,o.g7)(f.getGeometry(),u,s,m[a],i,h),u)}function a(t,s,e={}){const{miterLimit:h=10,flattenError:a=0,joins:_="round",unit:c}=e,f=(0,r.getSpatialReference)(t);c&&f&&(s=(0,n.UW)(s,c,f));const[u,l]=(0,r.fromGeometries)(t);return(0,o.zo)(u,l,s,m[_],h,a).map(t=>(0,r.toGeometry)(t,l)).filter(i.Ru)}}}]);
|