ym-gis-2d 1.0.14 → 1.0.15
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/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/LegendControl.js +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Select.js +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.d.ts.map +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/GeometryUtil.js.map +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
package/utils/StyleUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a81_0x17ca(_0x5347fd,_0x1880c0){const _0x135423=a81_0x1354();return a81_0x17ca=function(_0x17cace,_0x29ae2e){_0x17cace=_0x17cace-0x114;let _0x53ed8d=_0x135423[_0x17cace];return _0x53ed8d;},a81_0x17ca(_0x5347fd,_0x1880c0);}(function(_0x433211,_0x330f10){const _0x5511ad=a81_0x17ca,_0x3e258e=_0x433211();while(!![]){try{const _0x229796=parseInt(_0x5511ad(0x114))/0x1+parseInt(_0x5511ad(0x123))/0x2+-parseInt(_0x5511ad(0x122))/0x3+parseInt(_0x5511ad(0x126))/0x4+parseInt(_0x5511ad(0x11e))/0x5+-parseInt(_0x5511ad(0x121))/0x6+-parseInt(_0x5511ad(0x127))/0x7;if(_0x229796===_0x330f10)break;else _0x3e258e['push'](_0x3e258e['shift']());}catch(_0xf2756c){_0x3e258e['push'](_0x3e258e['shift']());}}}(a81_0x1354,0xd8766));import{Style,Fill,Circle,Stroke}from'ol/style';export function transformedEsriStyle(_0x58afa0){const _0x5afd1a=a81_0x17ca;let _0x1cbae2=new Style();switch(_0x58afa0['style']){case _0x5afd1a(0x118):_0x1cbae2=new Style({'image':new Circle({'fill':new Fill({'color':_0x5afd1a(0x125)+_0x58afa0[_0x5afd1a(0x117)][0x0]+',\x20'+_0x58afa0[_0x5afd1a(0x117)][0x1]+',\x20'+_0x58afa0[_0x5afd1a(0x117)][0x2]+',\x20'+_0x58afa0['color'][0x3]+')'}),'stroke':new Stroke({'color':'rgba('+_0x58afa0[_0x5afd1a(0x11b)][_0x5afd1a(0x117)][0x0]+',\x20'+_0x58afa0['outline'][_0x5afd1a(0x117)][0x1]+',\x20'+_0x58afa0[_0x5afd1a(0x11b)][_0x5afd1a(0x117)][0x2]+',\x20'+_0x58afa0[_0x5afd1a(0x11b)][_0x5afd1a(0x117)][0x3]+')','width':_0x58afa0['outline'][_0x5afd1a(0x124)]}),'radius':_0x58afa0[_0x5afd1a(0x115)]/0x2+0x1})});break;case _0x5afd1a(0x11f):_0x1cbae2=new Style({'stroke':new Stroke({'color':_0x5afd1a(0x125)+_0x58afa0[_0x5afd1a(0x117)][0x0]+',\x20'+_0x58afa0[_0x5afd1a(0x117)][0x1]+',\x20'+_0x58afa0[_0x5afd1a(0x117)][0x2]+',\x20'+_0x58afa0[_0x5afd1a(0x117)][0x3]+')','width':_0x58afa0['width']})});break;case _0x5afd1a(0x11d):_0x1cbae2=new Style({'fill':new Fill({'color':_0x5afd1a(0x125)+_0x58afa0['color'][0x0]+',\x20'+_0x58afa0[_0x5afd1a(0x117)][0x1]+',\x20'+_0x58afa0[_0x5afd1a(0x117)][0x2]+',\x20'+_0x58afa0[_0x5afd1a(0x117)][0x3]+')'}),'stroke':new Stroke({'color':_0x5afd1a(0x125)+_0x58afa0[_0x5afd1a(0x11b)][_0x5afd1a(0x117)][0x0]+',\x20'+_0x58afa0[_0x5afd1a(0x11b)][_0x5afd1a(0x117)][0x1]+',\x20'+_0x58afa0['outline'][_0x5afd1a(0x117)][0x2]+',\x20'+_0x58afa0[_0x5afd1a(0x11b)][_0x5afd1a(0x117)][0x3]+')','width':_0x58afa0[_0x5afd1a(0x11b)][_0x5afd1a(0x124)]})});break;default:break;}return _0x1cbae2;}function a81_0x1354(){const _0x22c3f2=['esriSFSSolid','7952915vqENNi','esriSLSSolid','#3399CC','8248692LzsGYQ','4439928hZhdWB','3267474PDRxBS','width','rgba(','4623836inPolO','5989585CTuULE','216764uduzII','size','rgba(214,28,28,0.4)','color','esriSMSCircle','Polygon','LineString','outline','Point'];a81_0x1354=function(){return _0x22c3f2;};return a81_0x1354();}export function highLightSymbol(_0x1a1413){const _0x4ff613=a81_0x17ca;let _0x7d6457;if(_0x1a1413==_0x4ff613(0x119))_0x7d6457=new Style({'fill':new Fill({'color':'rgba(214,28,28,0.4)'}),'stroke':new Stroke({'color':_0x4ff613(0x120),'width':2.5})});else{if(_0x1a1413==_0x4ff613(0x11a))_0x7d6457=new Style({'stroke':new Stroke({'color':_0x4ff613(0x120),'width':2.5})});else _0x1a1413==_0x4ff613(0x11c)&&(_0x7d6457=new Style({'image':new Circle({'radius':0x5,'fill':new Fill({'color':_0x4ff613(0x116)}),'stroke':new Stroke({'color':'#3399CC','width':2.5})})}));}return _0x7d6457;}
|
package/utils/UrlUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a88_0xecf3(_0x485c6d,_0x5ade13){const _0x1ce070=a88_0x1ce0();return a88_0xecf3=function(_0xecf313,_0x1f0dc7){_0xecf313=_0xecf313-0xbb;let _0x472bdb=_0x1ce070[_0xecf313];return _0x472bdb;},a88_0xecf3(_0x485c6d,_0x5ade13);}(function(_0x4a63cf,_0x5a6642){const _0x2fb3d9=a88_0xecf3,_0x527165=_0x4a63cf();while(!![]){try{const _0x13fd89=parseInt(_0x2fb3d9(0xd5))/0x1*(parseInt(_0x2fb3d9(0xc8))/0x2)+parseInt(_0x2fb3d9(0xd4))/0x3*(-parseInt(_0x2fb3d9(0xcd))/0x4)+-parseInt(_0x2fb3d9(0xc9))/0x5*(parseInt(_0x2fb3d9(0xc1))/0x6)+-parseInt(_0x2fb3d9(0xbf))/0x7*(parseInt(_0x2fb3d9(0xbc))/0x8)+parseInt(_0x2fb3d9(0xcf))/0x9+-parseInt(_0x2fb3d9(0xc5))/0xa*(parseInt(_0x2fb3d9(0xd0))/0xb)+parseInt(_0x2fb3d9(0xd1))/0xc;if(_0x13fd89===_0x5a6642)break;else _0x527165['push'](_0x527165['shift']());}catch(_0x2ff1d2){_0x527165['push'](_0x527165['shift']());}}}(a88_0x1ce0,0xef340));export function addArgument(_0x276b2e,_0x1996ff,_0x2c4bf1){const _0x8f9cde=a88_0xecf3,_0x8250b3=new RegExp(_0x8f9cde(0xc7)+_0x1996ff+_0x8f9cde(0xbd),'gi');if(_0x276b2e['match'](_0x8250b3))_0x276b2e=_0x276b2e[_0x8f9cde(0xc3)](_0x8250b3,_0x15a089=>_0x15a089[0x0]+_0x1996ff+'='+_0x2c4bf1);else{var _0x5e8b2c=_0x1996ff+'='+_0x2c4bf1,_0x122fb3=_0x276b2e['indexOf']('?');let _0x25dafb=_0x276b2e;_0x122fb3>-0x1&&_0x276b2e[_0x8f9cde(0xce)](_0x8f9cde(0xcb))>-0x1&&(_0x25dafb=_0x276b2e[_0x8f9cde(0xd3)](_0x122fb3+0x1),_0x122fb3=_0x25dafb[_0x8f9cde(0xce)]('?'));if(_0x122fb3<0x0)_0x276b2e+='?';else _0x122fb3>=0x0&&_0x122fb3!==_0x25dafb[_0x8f9cde(0xcc)]-0x1&&(_0x276b2e+='&');_0x276b2e=_0x276b2e+_0x5e8b2c;}return _0x276b2e;}export function appendParam(_0xf94c91,_0x22a083){const _0x4a2a0c=a88_0xecf3;var _0x311bb6=_0xf94c91['indexOf']('?');let _0x155fc1=_0xf94c91;if(_0x311bb6>-0x1&&_0xf94c91[_0x4a2a0c(0xce)]('?http')>-0x1){let _0x4bddfe=_0x311bb6+0x1;_0x155fc1=_0xf94c91[_0x4a2a0c(0xd3)](_0x311bb6+0x1),_0x311bb6=_0x155fc1['indexOf']('?');}return _0x311bb6>-0x1?_0xf94c91+'&'+_0x22a083:_0xf94c91+'?'+_0x22a083;}export function appendPath(_0x3c8ad1,_0x3df027){const _0x2a03d8=a88_0xecf3;var _0x59815f=_0x3c8ad1[_0x2a03d8(0xce)]('?');let _0x5a7328=_0x3c8ad1;if(_0x59815f>-0x1&&_0x3c8ad1[_0x2a03d8(0xce)]('?http')>-0x1){let _0x39a982=_0x59815f+0x1;_0x5a7328=_0x3c8ad1[_0x2a03d8(0xd3)](_0x59815f+0x1),_0x59815f=_0x5a7328[_0x2a03d8(0xce)]('?'),_0x59815f>-0x1&&(_0x59815f+=_0x39a982);}return _0x59815f>-0x1?_0x3c8ad1[_0x2a03d8(0xd3)](0x0,_0x59815f)+'/'+_0x3df027+_0x3c8ad1[_0x2a03d8(0xd3)](_0x59815f):_0x3c8ad1+'/'+_0x3df027;}export function getUrlParams(_0x5841e4){const _0x193463=a88_0xecf3;var _0x23ec7f,_0x5ebf75;let _0x7e6fb4=_0x5841e4[_0x193463(0xce)](_0x193463(0xcb)),_0x50b3c6;_0x7e6fb4>-0x1?_0x5841e4[_0x193463(0xce)]('?',_0x7e6fb4+0x3)>-0x1&&(_0x50b3c6=(_0x23ec7f=_0x5841e4['split']('?'))===null||_0x23ec7f===void 0x0?void 0x0:_0x23ec7f[0x2]):_0x5841e4[_0x193463(0xce)]('?')>-0x1&&(_0x50b3c6=(_0x5ebf75=_0x5841e4['split']('?'))===null||_0x5ebf75===void 0x0?void 0x0:_0x5ebf75[0x1]);if(_0x50b3c6)return createParamByQuery(_0x50b3c6);return[];}function a88_0x1ce0(){const _0x2a1d00=['click','substring','2015193ySmEqA','3YBWrQu','setAttribute','removeChild','body','createObjectURL','83832KtUMQF','=)([^&]*)','download','525auywhe','createElement','552822wYOEKa','map','replace','match','53270iKoqBt','appendChild','[\x5c?&](','1242242oWvbVN','10AIykaH','_blank','?http','length','4cJGhzb','indexOf','7405443JfrRtB','2959qGeeht','16421748TBROaZ'];a88_0x1ce0=function(){return _0x2a1d00;};return a88_0x1ce0();}function createParamByQuery(_0x49fffd){const _0x30c873=a88_0xecf3;let _0x227317=_0x49fffd['split']('&');return _0x227317[_0x30c873(0xc2)](_0x4e6e3e=>{var _0x329202=_0x4e6e3e['split']('=');return{'name':_0x329202[0x0],'value':_0x329202[0x1]};});}export function parseImage(_0x124cfc,_0x3077d1){const _0x559306=a88_0xecf3;let _0x36a1c5='';if(_0x124cfc){if(_0x124cfc[_0x559306(0xc4)](/^(data|http|https)/))_0x36a1c5=_0x124cfc;else{if(_0x124cfc[_0x559306(0xc4)](/Assets/))_0x36a1c5=_0x124cfc;else{}}}return _0x36a1c5;}export function downloadBlob(_0x40e889,_0x2697fb){const _0x14d318=a88_0xecf3,_0x907464=URL[_0x14d318(0xbb)](_0x40e889);var _0x190ed3=document[_0x14d318(0xc0)]('a');_0x190ed3[_0x14d318(0xd6)]('href',_0x907464),_0x190ed3[_0x14d318(0xd6)]('target',_0x14d318(0xca)),_0x190ed3[_0x14d318(0xd6)](_0x14d318(0xbe),_0x2697fb),document[_0x14d318(0xd8)][_0x14d318(0xc6)](_0x190ed3),_0x190ed3[_0x14d318(0xd2)](),document[_0x14d318(0xd8)][_0x14d318(0xd7)](_0x190ed3),URL['revokeObjectURL'](_0x907464);}
|
package/utils/XmlUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a89_0x239c(){const _0x13f87f=['async','DOMParser','20hufsaK','Microsoft.XMLDOM','77jNHJyQ','1394496ErRAdj','parseFromString','13057253xoeNLf','text/xml','2qKxfzs','1246360zSXqvK','685676mitGUk','401504oqQfng','1352913BmzcAf','31842HHjRdk','8Qczaej','false'];a89_0x239c=function(){return _0x13f87f;};return a89_0x239c();}(function(_0x12eee2,_0x1f3604){const _0x18b605=a89_0x53ca,_0x3cba00=_0x12eee2();while(!![]){try{const _0x57405e=parseInt(_0x18b605(0x17c))/0x1+-parseInt(_0x18b605(0x18b))/0x2*(-parseInt(_0x18b605(0x17e))/0x3)+-parseInt(_0x18b605(0x17d))/0x4*(-parseInt(_0x18b605(0x184))/0x5)+parseInt(_0x18b605(0x17f))/0x6*(parseInt(_0x18b605(0x186))/0x7)+-parseInt(_0x18b605(0x180))/0x8*(parseInt(_0x18b605(0x187))/0x9)+parseInt(_0x18b605(0x17b))/0xa+-parseInt(_0x18b605(0x189))/0xb;if(_0x57405e===_0x1f3604)break;else _0x3cba00['push'](_0x3cba00['shift']());}catch(_0x12f8dd){_0x3cba00['push'](_0x3cba00['shift']());}}}(a89_0x239c,0x5c93d));function a89_0x53ca(_0x313c84,_0x1053dd){const _0x239c8a=a89_0x239c();return a89_0x53ca=function(_0x53cac9,_0x3c3308){_0x53cac9=_0x53cac9-0x17b;let _0x26316b=_0x239c8a[_0x53cac9];return _0x26316b;},a89_0x53ca(_0x313c84,_0x1053dd);}export function readXml(_0x1eff7d){const _0x3993f2=a89_0x53ca;let _0x2f6897;return window[_0x3993f2(0x183)]?_0x2f6897=new DOMParser()[_0x3993f2(0x188)](_0x1eff7d,_0x3993f2(0x18a)):(_0x2f6897=new ActiveXObject(_0x3993f2(0x185)),_0x2f6897[_0x3993f2(0x182)]=_0x3993f2(0x181),_0x2f6897['loadXML'](_0x1eff7d)),_0x2f6897;}
|
package/utils/format/CQL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a70_0x556e05=a70_0x61cb;(function(_0x23673d,_0x480d32){const _0x203aa2=a70_0x61cb,_0x54bba0=_0x23673d();while(!![]){try{const _0x33ede8=-parseInt(_0x203aa2(0xdd))/0x1+parseInt(_0x203aa2(0x125))/0x2*(parseInt(_0x203aa2(0xe5))/0x3)+parseInt(_0x203aa2(0x120))/0x4+-parseInt(_0x203aa2(0xf4))/0x5*(-parseInt(_0x203aa2(0x11c))/0x6)+-parseInt(_0x203aa2(0xe9))/0x7*(-parseInt(_0x203aa2(0xd9))/0x8)+-parseInt(_0x203aa2(0xfb))/0x9*(parseInt(_0x203aa2(0xee))/0xa)+-parseInt(_0x203aa2(0x10a))/0xb*(parseInt(_0x203aa2(0x131))/0xc);if(_0x33ede8===_0x480d32)break;else _0x54bba0['push'](_0x54bba0['shift']());}catch(_0x16cb23){_0x54bba0['push'](_0x54bba0['shift']());}}}(a70_0x3a5a,0xda6ea));import*as a70_0xaed186 from'ol/format/filter';function a70_0x61cb(_0x3d0e9d,_0x59e7f9){const _0x3a5a73=a70_0x3a5a();return a70_0x61cb=function(_0x61cb5,_0x47a450){_0x61cb5=_0x61cb5-0xd1;let _0x4210fe=_0x3a5a73[_0x61cb5];return _0x4210fe;},a70_0x61cb(_0x3d0e9d,_0x59e7f9);}import{WKT}from'ol/format';import a70_0xb64116 from'ol/geom/Geometry';function a70_0x3a5a(){const _0x831473=['lessThanOrEqualTo','RPAREN','280HUcezX','shift','tokenize','PropertyIsGreaterThan','742563xlrtzC','剩余的节点无法解析:\x20\x0a','like','],\x20expected\x20one\x20of:\x20','LOGICAL','nextToken','\x0a\x20\x20\x20\x20','expression','3949647jpehsC','INTERSECTS','IS\x20NULL','replaceAll','72786BwxmEH','PropertyIsLessThan','LPAREN','split','\x20AND\x20','47330gExtkB','tokens','GEOMETRY','contains','string','text','1030mcFDEv','CONTAINS','property','PropertyIsBetween','NOT','conditions','parseInToOr','513YWExwF','tagName_','writeGeometry','replace','lessThan','charAt','propertyName','tryToken','lastIndexOf','Contains','upperBoundary','type','bbox','CLASS_NAME','warn','22BtUaQC','VALUE','pop','remainder','isNull','srsName','buildAst','equalTo','NOT\x20(','\x20or\x20','index','length','COMPARISON','PropertyIsGreaterThanOrEqualTo','readGeometry','extent','toUpperCase','exec','49758RrZisK','Unknown\x20token\x20type\x20','condition','substring','2215772ZqXVGt','PropertyIsEqualTo','match','intersects','operators','2FiKIUM','geometryName','toLowerCase','logicals','between','patterns','operatorReverse','push','write','IS_NULL','Can\x27t\x20encode:\x20','Within','12214428bVNspR','END','WITHIN','LIKE','notEqualTo','precedence','follows','BBOX','COMMA','BETWEEN','lowerBoundary','PropertyIsLessThanOrEqualTo','within','PROPERTY','SPATIAL','indexOf','inPatterns','geometry','not'];a70_0x3a5a=function(){return _0x831473;};return a70_0x3a5a();}export default class CQL{constructor(){const _0x1e6d4f=a70_0x61cb;this['inPatterns']=/ (IN) /i,this[_0x1e6d4f(0xef)]=[_0x1e6d4f(0xd1),'COMPARISON',_0x1e6d4f(0x10b),'LOGICAL'],this[_0x1e6d4f(0x12a)]={'PROPERTY':/^[_a-zA-Z]\w*/,'COMPARISON':/^(=|<>|<=|<|>=|>|LIKE)/i,'IS_NULL':/^IS NULL/i,'COMMA':/^,/,'LOGICAL':/^(AND|OR)/i,'VALUE':/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,'LPAREN':/^\(/,'RPAREN':/^\)/,'SPATIAL':/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,'NOT':/^NOT/i,'BETWEEN':/^BETWEEN/i,'GEOMETRY':function(_0x5d3a4f){const _0x22cd19=_0x1e6d4f;let _0x1f762a=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/[_0x22cd19(0x11b)](_0x5d3a4f);if(_0x1f762a){let _0x43cba3=_0x5d3a4f[_0x22cd19(0x115)],_0x20e675=_0x5d3a4f[_0x22cd19(0xd3)]('(',_0x1f762a[0x0][_0x22cd19(0x115)]);if(_0x20e675>-0x1){let _0x3d30cf=0x1;while(_0x20e675<_0x43cba3&&_0x3d30cf>0x0){_0x20e675++;switch(_0x5d3a4f[_0x22cd19(0x100)](_0x20e675)){case'(':_0x3d30cf++;break;case')':_0x3d30cf--;break;default:}}}return[_0x5d3a4f[_0x22cd19(0x11f)](0x0,_0x20e675+0x1)];}},'END':/^$/},this[_0x1e6d4f(0x137)]={'LPAREN':[_0x1e6d4f(0xf0),'SPATIAL','PROPERTY',_0x1e6d4f(0x10b),_0x1e6d4f(0xeb)],'RPAREN':[_0x1e6d4f(0xf8),_0x1e6d4f(0xe1),_0x1e6d4f(0x132),_0x1e6d4f(0xd8)],'PROPERTY':[_0x1e6d4f(0x116),_0x1e6d4f(0x13a),'COMMA','IS_NULL'],'BETWEEN':[_0x1e6d4f(0x10b)],'IS_NULL':['END'],'COMPARISON':['VALUE'],'COMMA':[_0x1e6d4f(0xf0),_0x1e6d4f(0x10b),'PROPERTY'],'VALUE':[_0x1e6d4f(0xe1),_0x1e6d4f(0x139),_0x1e6d4f(0xd8),_0x1e6d4f(0x132)],'SPATIAL':[_0x1e6d4f(0xeb)],'LOGICAL':[_0x1e6d4f(0xf8),_0x1e6d4f(0x10b),_0x1e6d4f(0xd2),_0x1e6d4f(0xd1),_0x1e6d4f(0xeb)],'NOT':[_0x1e6d4f(0xd1),'LPAREN'],'GEOMETRY':[_0x1e6d4f(0x139),_0x1e6d4f(0xd8)]},this[_0x1e6d4f(0x124)]={'=':a70_0xaed186[_0x1e6d4f(0x111)],'<>':a70_0xaed186[_0x1e6d4f(0x135)],'<':a70_0xaed186[_0x1e6d4f(0xff)],'<=':a70_0xaed186[_0x1e6d4f(0xd7)],'>':a70_0xaed186['greaterThan'],'>=':a70_0xaed186['greaterThanOrEqualTo'],'LIKE':a70_0xaed186[_0x1e6d4f(0xdf)],'BETWEEN':a70_0xaed186[_0x1e6d4f(0x129)],'IS\x20NULL':a70_0xaed186[_0x1e6d4f(0x10e)]},this[_0x1e6d4f(0x12b)]={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':_0x1e6d4f(0x134),'PropertyIsNull':_0x1e6d4f(0xe7),'PropertyIsBetween':'BETWEEN'},this[_0x1e6d4f(0x128)]={'AND':a70_0xaed186['and'],'OR':a70_0xaed186['or']},this[_0x1e6d4f(0x136)]={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}[a70_0x556e05(0x102)](_0x3c23dc,_0x5e6625){return _0x5e6625 instanceof RegExp?_0x5e6625['exec'](_0x3c23dc):_0x5e6625(_0x3c23dc);}[a70_0x556e05(0xe2)](_0x1ac5a5,_0x2135a8){const _0x47a4de=a70_0x556e05;let _0x299682,_0x4b0e0a,_0x2d1ae7=_0x2135a8[_0x47a4de(0x115)];for(_0x299682=0x0;_0x299682<_0x2d1ae7;_0x299682++){_0x4b0e0a=_0x2135a8[_0x299682];let _0x42b202=this['patterns'][_0x4b0e0a],_0x4586c5=this[_0x47a4de(0x102)](_0x1ac5a5,_0x42b202);if(_0x4586c5){let _0x4d63f5=_0x4586c5[0x0],_0x3a5a01=_0x1ac5a5['substring'](_0x4d63f5[_0x47a4de(0x115)])[_0x47a4de(0xfe)](/^\s*/,'');return{'type':_0x4b0e0a,'text':_0x4d63f5,'remainder':_0x3a5a01};}}let _0x50760b='ERROR:\x20In\x20parsing:\x20['+_0x1ac5a5+_0x47a4de(0xe0);for(_0x299682=0x0;_0x299682<_0x2d1ae7;_0x299682++){_0x4b0e0a=_0x2135a8[_0x299682],_0x50760b+=_0x47a4de(0xe3)+_0x4b0e0a+':\x20'+this[_0x47a4de(0x12a)][_0x4b0e0a];}throw new Error(_0x50760b);}['tokenize'](_0x2ca345){const _0x3c7235=a70_0x556e05;_0x2ca345=_0x2ca345['replaceAll']('[','')[_0x3c7235(0xe8)](']','');let _0x154c87=this[_0x3c7235(0x102)](_0x2ca345,this[_0x3c7235(0xd4)]);_0x154c87&&(_0x2ca345=this[_0x3c7235(0xfa)](_0x2ca345,_0x154c87));let _0xdcc8f3=[],_0x4d893d,_0x331393=['NOT','GEOMETRY','SPATIAL',_0x3c7235(0xd1),_0x3c7235(0xeb)];do{_0x4d893d=this[_0x3c7235(0xe2)](_0x2ca345,_0x331393),_0x2ca345=_0x4d893d[_0x3c7235(0x10d)],_0x331393=this['follows'][_0x4d893d[_0x3c7235(0x106)]];if(_0x4d893d[_0x3c7235(0x106)]!==_0x3c7235(0x132)&&!_0x331393)throw new Error('No\x20follows\x20list\x20for\x20'+_0x4d893d[_0x3c7235(0x106)]);_0xdcc8f3[_0x3c7235(0x12c)](_0x4d893d);}while(_0x4d893d[_0x3c7235(0x106)]!==_0x3c7235(0x132));return _0xdcc8f3;}[a70_0x556e05(0xfa)](_0x3d4ed6,_0x143c9d){const _0x40f3ee=a70_0x556e05;let _0x4306a4=this[_0x40f3ee(0x102)](_0x3d4ed6,/\((.+?)\)/g);if(_0x4306a4){let _0x466891=_0x3d4ed6['substring'](0x0,_0x143c9d[_0x40f3ee(0x114)]),_0x2b9fca=_0x4306a4[0x1],_0xcf9257=_0x2b9fca[_0x40f3ee(0xe8)]('\x20','')[_0x40f3ee(0xec)](','),_0x488bd0='',_0x3959c8='';if(_0x466891[_0x40f3ee(0xd3)]('\x20')>-0x1){let _0x5d5bbf=_0x466891[_0x40f3ee(0x103)]('\x20');_0x3959c8=_0x466891[_0x40f3ee(0x11f)](0x0,_0x5d5bbf+0x1),_0x488bd0=_0x466891['substring'](_0x5d5bbf+0x1,_0x466891[_0x40f3ee(0x115)]);}else _0x488bd0=_0x466891;let _0x45bd50=_0x3959c8;for(let _0x397add=0x0;_0x397add<_0xcf9257[_0x40f3ee(0x115)];_0x397add++){let _0x577c95=_0xcf9257[_0x397add];_0x45bd50+=_0x488bd0+'='+_0x577c95,_0x397add<_0xcf9257[_0x40f3ee(0x115)]-0x1&&(_0x45bd50+=_0x40f3ee(0x113));}return _0x45bd50;}return _0x3d4ed6;}[a70_0x556e05(0x110)](_0x6fce46){const _0x33a667=a70_0x556e05;let _0x96228f=this,_0x552def=[],_0x551294=[];while(_0x6fce46[_0x33a667(0x115)]){let _0xedcb5c=_0x6fce46[_0x33a667(0xda)]();switch(_0xedcb5c[_0x33a667(0x106)]){case'PROPERTY':case _0x33a667(0xf0):case _0x33a667(0x10b):_0x551294[_0x33a667(0x12c)](_0xedcb5c);break;case _0x33a667(0x116):case _0x33a667(0x13a):case _0x33a667(0x12e):case _0x33a667(0xe1):{let _0x1abf02=this[_0x33a667(0x136)][_0xedcb5c[_0x33a667(0x106)]];while(_0x552def[_0x33a667(0x115)]>0x0&&this['precedence'][_0x552def[_0x552def['length']-0x1][_0x33a667(0x106)]]<=_0x1abf02){_0x551294[_0x33a667(0x12c)](_0x552def['pop']());}_0x552def['push'](_0xedcb5c);break;}case _0x33a667(0xd2):case _0x33a667(0xf8):case _0x33a667(0xeb):_0x552def[_0x33a667(0x12c)](_0xedcb5c);break;case _0x33a667(0xd8):while(_0x552def[_0x33a667(0x115)]>0x0&&_0x552def[_0x552def[_0x33a667(0x115)]-0x1][_0x33a667(0x106)]!=='LPAREN'){_0x551294['push'](_0x552def[_0x33a667(0x10c)]());}_0x552def['pop']();_0x552def[_0x33a667(0x115)]>0x0&&(_0x552def[_0x552def['length']-0x1][_0x33a667(0x106)]===_0x33a667(0xd2)||_0x552def[_0x552def[_0x33a667(0x115)]-0x1][_0x33a667(0x106)]===_0x33a667(0xf8))&&_0x551294[_0x33a667(0x12c)](_0x552def['pop']());break;case _0x33a667(0x139):case _0x33a667(0x132):break;default:throw new Error(_0x33a667(0x11d)+_0xedcb5c[_0x33a667(0x106)]);}}while(_0x552def[_0x33a667(0x115)]>0x0){_0x551294[_0x33a667(0x12c)](_0x552def[_0x33a667(0x10c)]());}function _0x195bb6(){const _0x4e794d=_0x33a667;let _0x5529d6,_0xe6d31,_0x22e21d=_0x551294[_0x4e794d(0x10c)]();switch(_0x22e21d['type']){case _0x4e794d(0xe1):{let _0x5515fc=_0x195bb6(),_0x3c1570=_0x195bb6();return new _0x96228f[(_0x4e794d(0x128))][(_0x22e21d[_0x4e794d(0xf3)][_0x4e794d(0x11a)]())](_0x3c1570,_0x5515fc);}case _0x4e794d(0xf8):{let _0x9b5dda=_0x195bb6();return a70_0xaed186[_0x4e794d(0xd6)](_0x9b5dda);}case _0x4e794d(0x13a):{let _0x5afd6f,_0x4edef1;return _0x551294[_0x4e794d(0x10c)](),_0x4edef1=_0x195bb6(),_0x5afd6f=_0x195bb6(),_0xe6d31=_0x195bb6(),a70_0xaed186[_0x4e794d(0x129)](_0xe6d31,_0x5afd6f,_0x4edef1);}case'COMPARISON':{return _0x5529d6=_0x195bb6(),_0xe6d31=_0x195bb6(),new _0x96228f['operators'][(_0x22e21d[_0x4e794d(0xf3)]['toUpperCase']())](_0xe6d31,_0x5529d6);}case _0x4e794d(0x12e):_0xe6d31=_0x195bb6();return new _0x96228f[(_0x4e794d(0x124))][(_0x22e21d['text'][_0x4e794d(0x11a)]())](_0xe6d31);case _0x4e794d(0x10b):{let _0x3de7fb=_0x22e21d[_0x4e794d(0xf3)][_0x4e794d(0x122)](/^'(.*)'$/);return _0x3de7fb?_0x3de7fb[0x1][_0x4e794d(0xfe)](/''/g,'\x27'):Number(_0x22e21d['text']);}case _0x4e794d(0xd2):switch(_0x22e21d[_0x4e794d(0xf3)][_0x4e794d(0x11a)]()){case _0x4e794d(0x138):{let _0x1169f8=_0x195bb6(),_0x1c2805=_0x195bb6(),_0x3c5cd1=_0x195bb6(),_0x6e2dff=_0x195bb6(),_0x54b828=_0x195bb6();return a70_0xaed186[_0x4e794d(0x107)](_0x54b828,[_0x6e2dff,_0x3c5cd1,_0x1c2805,_0x1169f8]);}case _0x4e794d(0xe6):_0x5529d6=_0x195bb6(),_0xe6d31=_0x195bb6();return a70_0xaed186[_0x4e794d(0x123)](_0xe6d31,_0x5529d6);case _0x4e794d(0x133):_0x5529d6=_0x195bb6(),_0xe6d31=_0x195bb6();return a70_0xaed186[_0x4e794d(0x13d)](_0xe6d31,_0x5529d6);case _0x4e794d(0xf5):_0x5529d6=_0x195bb6(),_0xe6d31=_0x195bb6();return a70_0xaed186[_0x4e794d(0xf1)](_0xe6d31,_0x5529d6);}break;case'GEOMETRY':return new WKT()['readGeometry'](_0x22e21d[_0x4e794d(0xf3)],{});default:return _0x22e21d['text'];}}let _0x8097d1=_0x195bb6();if(_0x551294['length']>0x0){let _0x5e6425=_0x33a667(0xde);for(let _0x1a4702=_0x551294[_0x33a667(0x115)]-0x1;_0x1a4702>=0x0;_0x1a4702--){_0x5e6425+=_0x551294[_0x1a4702][_0x33a667(0x106)]+':\x20'+_0x551294[_0x1a4702][_0x33a667(0xf3)]+'\x0a';}throw new Error(_0x5e6425);}return _0x8097d1;}['read'](_0x5263e3){const _0x75abd=a70_0x556e05;try{return this['buildAst'](this[_0x75abd(0xdb)](_0x5263e3));}catch(_0x48a716){console[_0x75abd(0x109)]('CQL解析失败:'+_0x5263e3),console[_0x75abd(0x109)](_0x48a716);}}['write'](_0xb2974a){const _0x256e55=a70_0x556e05;switch(_0xb2974a[_0x256e55(0xfc)]){case _0x256e55(0x138):return'BBOX('+_0xb2974a[_0x256e55(0x126)]+','+_0xb2974a[_0x256e55(0x119)]['join'](',')+','+_0xb2974a[_0x256e55(0x10f)]+')';case _0x256e55(0x130):return'WITHIN('+_0xb2974a[_0x256e55(0x126)]+',\x20'+this[_0x256e55(0x118)](_0xb2974a['geometry'])+')';case'Intersects':return'INTERSECTS('+_0xb2974a[_0x256e55(0x126)]+',\x20'+this[_0x256e55(0x118)](_0xb2974a[_0x256e55(0xd5)])+')';case _0x256e55(0x104):return'CONTAINS('+_0xb2974a[_0x256e55(0x126)]+',\x20'+this[_0x256e55(0x118)](_0xb2974a[_0x256e55(0xd5)])+')';case'Not':return _0x256e55(0x112)+this['write'](_0xb2974a[_0x256e55(0x11e)])+')';case'And':case'Or':{let _0x17addb='(',_0x512be0=!![];for(let _0x1f47c6=0x0;_0x1f47c6<_0xb2974a['conditions']['length'];_0x1f47c6++){_0x512be0?_0x512be0=![]:_0x17addb+=')\x20'+_0xb2974a[_0x256e55(0xfc)][_0x256e55(0x127)]()+'\x20(',_0x17addb+=this['write'](_0xb2974a[_0x256e55(0xf9)][_0x1f47c6]);}return _0x17addb+')';}case _0x256e55(0xf7):return _0xb2974a[_0x256e55(0xf6)]+'\x20BETWEEN\x20'+this[_0x256e55(0x12d)](_0xb2974a[_0x256e55(0x13b)])+_0x256e55(0xed)+this[_0x256e55(0x12d)](_0xb2974a[_0x256e55(0x105)]);case _0x256e55(0x121):case'PropertyIsNotEqualTo':case _0x256e55(0xea):case _0x256e55(0x13c):case _0x256e55(0xdc):case _0x256e55(0x117):case'PropertyIsLike':case'PropertyIsNull':{return _0xb2974a[_0x256e55(0xe4)]!==null?_0xb2974a['propertyName']+'\x20'+this['operatorReverse'][_0xb2974a['tagName_']]+'\x20'+this['write'](_0xb2974a[_0x256e55(0xe4)]):_0xb2974a[_0x256e55(0x101)]+'\x20'+this['operatorReverse'][_0xb2974a[_0x256e55(0xfc)]];}case undefined:if(typeof _0xb2974a===_0x256e55(0xf2))return'\x27'+_0xb2974a[_0x256e55(0xfe)](/'/g,'\x27\x27')+'\x27';else{if(typeof _0xb2974a==='number')return String(_0xb2974a);}break;default:throw new Error(_0x256e55(0x12f)+_0xb2974a[_0x256e55(0x108)]+'\x20'+_0xb2974a);}}[a70_0x556e05(0x118)](_0x550916){const _0x5e0057=a70_0x556e05;if(_0x550916 instanceof a70_0xb64116)return new WKT()[_0x5e0057(0xfd)](_0x550916);}}
|
|
1
|
+
const a70_0x357558=a70_0x35fb;(function(_0x4cc2a6,_0x198df8){const _0x4613b0=a70_0x35fb,_0x44aebb=_0x4cc2a6();while(!![]){try{const _0x37bbc5=-parseInt(_0x4613b0(0x177))/0x1+parseInt(_0x4613b0(0x16d))/0x2*(-parseInt(_0x4613b0(0x18e))/0x3)+-parseInt(_0x4613b0(0x198))/0x4*(-parseInt(_0x4613b0(0x188))/0x5)+-parseInt(_0x4613b0(0x1be))/0x6+-parseInt(_0x4613b0(0x1cd))/0x7+parseInt(_0x4613b0(0x1cc))/0x8*(parseInt(_0x4613b0(0x1a8))/0x9)+-parseInt(_0x4613b0(0x168))/0xa*(-parseInt(_0x4613b0(0x1af))/0xb);if(_0x37bbc5===_0x198df8)break;else _0x44aebb['push'](_0x44aebb['shift']());}catch(_0x4ee268){_0x44aebb['push'](_0x44aebb['shift']());}}}(a70_0x5a9e,0x2e9b9));function a70_0x35fb(_0x2bffaa,_0x43add2){const _0x5a9e65=a70_0x5a9e();return a70_0x35fb=function(_0x35fb2c,_0x378d2c){_0x35fb2c=_0x35fb2c-0x166;let _0x4e4658=_0x5a9e65[_0x35fb2c];return _0x4e4658;},a70_0x35fb(_0x2bffaa,_0x43add2);}import*as a70_0x2c2995 from'ol/format/filter';import{WKT}from'ol/format';import a70_0x4033fd from'ol/geom/Geometry';export default class CQL{constructor(){const _0x2a97f7=a70_0x35fb;this[_0x2a97f7(0x1c1)]=/ (IN) /i,this['tokens']=[_0x2a97f7(0x1b1),_0x2a97f7(0x173),'VALUE',_0x2a97f7(0x181)],this[_0x2a97f7(0x190)]={'PROPERTY':/^[_a-zA-Z]\w*/,'COMPARISON':/^(=|<>|<=|<|>=|>|LIKE)/i,'IS_NULL':/^IS NULL/i,'COMMA':/^,/,'LOGICAL':/^(AND|OR)/i,'VALUE':/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,'LPAREN':/^\(/,'RPAREN':/^\)/,'SPATIAL':/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,'NOT':/^NOT/i,'BETWEEN':/^BETWEEN/i,'GEOMETRY':function(_0x5cda1a){const _0x375e7f=_0x2a97f7;let _0x4a876a=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/[_0x375e7f(0x1c7)](_0x5cda1a);if(_0x4a876a){let _0x40fa73=_0x5cda1a[_0x375e7f(0x1c8)],_0x4230a7=_0x5cda1a[_0x375e7f(0x195)]('(',_0x4a876a[0x0][_0x375e7f(0x1c8)]);if(_0x4230a7>-0x1){let _0x106a19=0x1;while(_0x4230a7<_0x40fa73&&_0x106a19>0x0){_0x4230a7++;switch(_0x5cda1a[_0x375e7f(0x1a2)](_0x4230a7)){case'(':_0x106a19++;break;case')':_0x106a19--;break;default:}}}return[_0x5cda1a[_0x375e7f(0x1aa)](0x0,_0x4230a7+0x1)];}},'END':/^$/},this[_0x2a97f7(0x19f)]={'LPAREN':['GEOMETRY',_0x2a97f7(0x180),'PROPERTY','VALUE',_0x2a97f7(0x192)],'RPAREN':[_0x2a97f7(0x1b6),_0x2a97f7(0x181),'END',_0x2a97f7(0x178)],'PROPERTY':[_0x2a97f7(0x173),_0x2a97f7(0x16e),_0x2a97f7(0x1a7),'IS_NULL'],'BETWEEN':[_0x2a97f7(0x16f)],'IS_NULL':[_0x2a97f7(0x172)],'COMPARISON':[_0x2a97f7(0x16f)],'COMMA':[_0x2a97f7(0x17a),'VALUE',_0x2a97f7(0x1b1)],'VALUE':[_0x2a97f7(0x181),_0x2a97f7(0x1a7),_0x2a97f7(0x178),_0x2a97f7(0x172)],'SPATIAL':['LPAREN'],'LOGICAL':[_0x2a97f7(0x1b6),_0x2a97f7(0x16f),'SPATIAL',_0x2a97f7(0x1b1),_0x2a97f7(0x192)],'NOT':[_0x2a97f7(0x1b1),_0x2a97f7(0x192)],'GEOMETRY':[_0x2a97f7(0x1a7),'RPAREN']},this[_0x2a97f7(0x1c3)]={'=':a70_0x2c2995['equalTo'],'<>':a70_0x2c2995[_0x2a97f7(0x1b0)],'<':a70_0x2c2995[_0x2a97f7(0x1cb)],'<=':a70_0x2c2995[_0x2a97f7(0x186)],'>':a70_0x2c2995[_0x2a97f7(0x17f)],'>=':a70_0x2c2995['greaterThanOrEqualTo'],'LIKE':a70_0x2c2995[_0x2a97f7(0x1c4)],'BETWEEN':a70_0x2c2995[_0x2a97f7(0x191)],'IS\x20NULL':a70_0x2c2995[_0x2a97f7(0x1ac)]},this[_0x2a97f7(0x189)]={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':_0x2a97f7(0x18c),'PropertyIsNull':_0x2a97f7(0x1bb),'PropertyIsBetween':'BETWEEN'},this[_0x2a97f7(0x17d)]={'AND':a70_0x2c2995['and'],'OR':a70_0x2c2995['or']},this[_0x2a97f7(0x18a)]={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}['tryToken'](_0x2ad036,_0x18cf9c){const _0x5ef43d=a70_0x35fb;return _0x18cf9c instanceof RegExp?_0x18cf9c[_0x5ef43d(0x1c7)](_0x2ad036):_0x18cf9c(_0x2ad036);}[a70_0x357558(0x1b3)](_0x9bc39a,_0xda7d14){const _0x30e176=a70_0x357558;let _0x4ff0e1,_0x29a69e,_0xc8076b=_0xda7d14[_0x30e176(0x1c8)];for(_0x4ff0e1=0x0;_0x4ff0e1<_0xc8076b;_0x4ff0e1++){_0x29a69e=_0xda7d14[_0x4ff0e1];let _0xd50b1d=this[_0x30e176(0x190)][_0x29a69e],_0x8496c6=this['tryToken'](_0x9bc39a,_0xd50b1d);if(_0x8496c6){let _0x4f0554=_0x8496c6[0x0],_0x436183=_0x9bc39a[_0x30e176(0x1aa)](_0x4f0554[_0x30e176(0x1c8)])['replace'](/^\s*/,'');return{'type':_0x29a69e,'text':_0x4f0554,'remainder':_0x436183};}}let _0x176992=_0x30e176(0x1b2)+_0x9bc39a+'],\x20expected\x20one\x20of:\x20';for(_0x4ff0e1=0x0;_0x4ff0e1<_0xc8076b;_0x4ff0e1++){_0x29a69e=_0xda7d14[_0x4ff0e1],_0x176992+=_0x30e176(0x1c5)+_0x29a69e+':\x20'+this[_0x30e176(0x190)][_0x29a69e];}throw new Error(_0x176992);}[a70_0x357558(0x182)](_0x4553d7){const _0x17b44c=a70_0x357558;_0x4553d7=_0x4553d7[_0x17b44c(0x171)]('[','')['replaceAll'](']','');let _0xb49441=this[_0x17b44c(0x179)](_0x4553d7,this[_0x17b44c(0x1c1)]);_0xb49441&&(_0x4553d7=this['parseInToOr'](_0x4553d7,_0xb49441));let _0x52d7b1=[],_0x1d1be3,_0x5290da=[_0x17b44c(0x1b6),_0x17b44c(0x17a),_0x17b44c(0x180),_0x17b44c(0x1b1),_0x17b44c(0x192)];do{_0x1d1be3=this['nextToken'](_0x4553d7,_0x5290da),_0x4553d7=_0x1d1be3[_0x17b44c(0x1ab)],_0x5290da=this[_0x17b44c(0x19f)][_0x1d1be3[_0x17b44c(0x1ae)]];if(_0x1d1be3[_0x17b44c(0x1ae)]!=='END'&&!_0x5290da)throw new Error('No\x20follows\x20list\x20for\x20'+_0x1d1be3[_0x17b44c(0x1ae)]);_0x52d7b1[_0x17b44c(0x199)](_0x1d1be3);}while(_0x1d1be3[_0x17b44c(0x1ae)]!==_0x17b44c(0x172));return _0x52d7b1;}[a70_0x357558(0x1ba)](_0x273e2f,_0x4398f7){const _0x580501=a70_0x357558;let _0x23b1f3=this[_0x580501(0x179)](_0x273e2f,/\((.+?)\)/g);if(_0x23b1f3){let _0x219db0=_0x273e2f[_0x580501(0x1aa)](0x0,_0x4398f7[_0x580501(0x1a4)]),_0x1edcb2=_0x23b1f3[0x1],_0x3ed1a6=_0x1edcb2[_0x580501(0x171)]('\x20','')['split'](','),_0x3124cf='',_0x1ec686='';if(_0x219db0[_0x580501(0x195)]('\x20')>-0x1){let _0x407cfd=_0x219db0[_0x580501(0x1c9)]('\x20');_0x1ec686=_0x219db0[_0x580501(0x1aa)](0x0,_0x407cfd+0x1),_0x3124cf=_0x219db0[_0x580501(0x1aa)](_0x407cfd+0x1,_0x219db0[_0x580501(0x1c8)]);}else _0x3124cf=_0x219db0;let _0x5a018e=_0x1ec686;for(let _0x1c058d=0x0;_0x1c058d<_0x3ed1a6[_0x580501(0x1c8)];_0x1c058d++){let _0x1cf3b0=_0x3ed1a6[_0x1c058d];_0x5a018e+=_0x3124cf+'='+_0x1cf3b0,_0x1c058d<_0x3ed1a6[_0x580501(0x1c8)]-0x1&&(_0x5a018e+='\x20or\x20');}return _0x5a018e;}return _0x273e2f;}[a70_0x357558(0x1b4)](_0x189c23){const _0x5ca95a=a70_0x357558;let _0x510812=this,_0x4db2da=[],_0x2633e1=[];while(_0x189c23[_0x5ca95a(0x1c8)]){let _0x46e2e1=_0x189c23[_0x5ca95a(0x16c)]();switch(_0x46e2e1[_0x5ca95a(0x1ae)]){case'PROPERTY':case _0x5ca95a(0x17a):case'VALUE':_0x2633e1[_0x5ca95a(0x199)](_0x46e2e1);break;case'COMPARISON':case _0x5ca95a(0x16e):case _0x5ca95a(0x183):case _0x5ca95a(0x181):{let _0x2fc393=this[_0x5ca95a(0x18a)][_0x46e2e1[_0x5ca95a(0x1ae)]];while(_0x4db2da[_0x5ca95a(0x1c8)]>0x0&&this['precedence'][_0x4db2da[_0x4db2da['length']-0x1][_0x5ca95a(0x1ae)]]<=_0x2fc393){_0x2633e1[_0x5ca95a(0x199)](_0x4db2da[_0x5ca95a(0x1bf)]());}_0x4db2da[_0x5ca95a(0x199)](_0x46e2e1);break;}case _0x5ca95a(0x180):case'NOT':case _0x5ca95a(0x192):_0x4db2da['push'](_0x46e2e1);break;case _0x5ca95a(0x178):while(_0x4db2da[_0x5ca95a(0x1c8)]>0x0&&_0x4db2da[_0x4db2da[_0x5ca95a(0x1c8)]-0x1][_0x5ca95a(0x1ae)]!==_0x5ca95a(0x192)){_0x2633e1[_0x5ca95a(0x199)](_0x4db2da[_0x5ca95a(0x1bf)]());}_0x4db2da[_0x5ca95a(0x1bf)]();_0x4db2da[_0x5ca95a(0x1c8)]>0x0&&(_0x4db2da[_0x4db2da[_0x5ca95a(0x1c8)]-0x1][_0x5ca95a(0x1ae)]==='SPATIAL'||_0x4db2da[_0x4db2da[_0x5ca95a(0x1c8)]-0x1]['type']==='NOT')&&_0x2633e1[_0x5ca95a(0x199)](_0x4db2da[_0x5ca95a(0x1bf)]());break;case'COMMA':case _0x5ca95a(0x172):break;default:throw new Error(_0x5ca95a(0x1a1)+_0x46e2e1[_0x5ca95a(0x1ae)]);}}while(_0x4db2da[_0x5ca95a(0x1c8)]>0x0){_0x2633e1[_0x5ca95a(0x199)](_0x4db2da[_0x5ca95a(0x1bf)]());}function _0x214bcf(){const _0x38596b=_0x5ca95a;let _0x11e1c8,_0x435d44,_0x28cb67=_0x2633e1[_0x38596b(0x1bf)]();switch(_0x28cb67[_0x38596b(0x1ae)]){case _0x38596b(0x181):{let _0x324123=_0x214bcf(),_0x26de69=_0x214bcf();return new _0x510812['logicals'][(_0x28cb67[_0x38596b(0x18b)][_0x38596b(0x17c)]())](_0x26de69,_0x324123);}case _0x38596b(0x1b6):{let _0x489734=_0x214bcf();return a70_0x2c2995[_0x38596b(0x17e)](_0x489734);}case _0x38596b(0x16e):{let _0x436d03,_0x1c74bd;return _0x2633e1['pop'](),_0x1c74bd=_0x214bcf(),_0x436d03=_0x214bcf(),_0x435d44=_0x214bcf(),a70_0x2c2995[_0x38596b(0x191)](_0x435d44,_0x436d03,_0x1c74bd);}case _0x38596b(0x173):{return _0x11e1c8=_0x214bcf(),_0x435d44=_0x214bcf(),new _0x510812[(_0x38596b(0x1c3))][(_0x28cb67[_0x38596b(0x18b)][_0x38596b(0x17c)]())](_0x435d44,_0x11e1c8);}case _0x38596b(0x183):_0x435d44=_0x214bcf();return new _0x510812['operators'][(_0x28cb67['text'][_0x38596b(0x17c)]())](_0x435d44);case _0x38596b(0x16f):{let _0x210d46=_0x28cb67['text'][_0x38596b(0x19b)](/^'(.*)'$/);return _0x210d46?_0x210d46[0x1][_0x38596b(0x193)](/''/g,'\x27'):Number(_0x28cb67[_0x38596b(0x18b)]);}case _0x38596b(0x180):switch(_0x28cb67['text'][_0x38596b(0x17c)]()){case _0x38596b(0x185):{let _0x14ea37=_0x214bcf(),_0x387e58=_0x214bcf(),_0x5b294d=_0x214bcf(),_0x1468a1=_0x214bcf(),_0x105be0=_0x214bcf();return a70_0x2c2995[_0x38596b(0x1d2)](_0x105be0,[_0x1468a1,_0x5b294d,_0x387e58,_0x14ea37]);}case _0x38596b(0x170):_0x11e1c8=_0x214bcf(),_0x435d44=_0x214bcf();return a70_0x2c2995[_0x38596b(0x1ca)](_0x435d44,_0x11e1c8);case'WITHIN':_0x11e1c8=_0x214bcf(),_0x435d44=_0x214bcf();return a70_0x2c2995[_0x38596b(0x1a0)](_0x435d44,_0x11e1c8);case _0x38596b(0x167):_0x11e1c8=_0x214bcf(),_0x435d44=_0x214bcf();return a70_0x2c2995[_0x38596b(0x1d0)](_0x435d44,_0x11e1c8);}break;case _0x38596b(0x17a):return new WKT()['readGeometry'](_0x28cb67[_0x38596b(0x18b)],{});default:return _0x28cb67['text'];}}let _0x216ac0=_0x214bcf();if(_0x2633e1[_0x5ca95a(0x1c8)]>0x0){let _0x327db3='剩余的节点无法解析:\x20\x0a';for(let _0x8fd266=_0x2633e1[_0x5ca95a(0x1c8)]-0x1;_0x8fd266>=0x0;_0x8fd266--){_0x327db3+=_0x2633e1[_0x8fd266][_0x5ca95a(0x1ae)]+':\x20'+_0x2633e1[_0x8fd266]['text']+'\x0a';}throw new Error(_0x327db3);}return _0x216ac0;}[a70_0x357558(0x1c2)](_0x4a0b1f){const _0x54f596=a70_0x357558;try{return this['buildAst'](this[_0x54f596(0x182)](_0x4a0b1f));}catch(_0x4977e4){console[_0x54f596(0x1cf)](_0x54f596(0x197)+_0x4a0b1f),console[_0x54f596(0x1cf)](_0x4977e4);}}[a70_0x357558(0x196)](_0xdb3d21){const _0x38aa82=a70_0x357558;switch(_0xdb3d21[_0x38aa82(0x18f)]){case _0x38aa82(0x185):return _0x38aa82(0x1a3)+_0xdb3d21[_0x38aa82(0x187)]+','+_0xdb3d21['extent']['join'](',')+','+_0xdb3d21[_0x38aa82(0x1bc)]+')';case'Within':return _0x38aa82(0x1bd)+_0xdb3d21[_0x38aa82(0x187)]+',\x20'+this[_0x38aa82(0x176)](_0xdb3d21[_0x38aa82(0x1ce)])+')';case _0x38aa82(0x1a5):return _0x38aa82(0x175)+_0xdb3d21['geometryName']+',\x20'+this['readGeometry'](_0xdb3d21['geometry'])+')';case _0x38aa82(0x16b):return'CONTAINS('+_0xdb3d21['geometryName']+',\x20'+this[_0x38aa82(0x176)](_0xdb3d21[_0x38aa82(0x1ce)])+')';case _0x38aa82(0x1d1):return _0x38aa82(0x1b7)+this[_0x38aa82(0x196)](_0xdb3d21[_0x38aa82(0x194)])+')';case'And':case'Or':{let _0x29571e='(',_0xe14417=!![];for(let _0x3e99f7=0x0;_0x3e99f7<_0xdb3d21[_0x38aa82(0x174)][_0x38aa82(0x1c8)];_0x3e99f7++){_0xe14417?_0xe14417=![]:_0x29571e+=')\x20'+_0xdb3d21[_0x38aa82(0x18f)][_0x38aa82(0x19d)]()+'\x20(',_0x29571e+=this['write'](_0xdb3d21['conditions'][_0x3e99f7]);}return _0x29571e+')';}case _0x38aa82(0x1b8):return _0xdb3d21[_0x38aa82(0x19e)]+_0x38aa82(0x19c)+this[_0x38aa82(0x196)](_0xdb3d21[_0x38aa82(0x166)])+_0x38aa82(0x1b9)+this[_0x38aa82(0x196)](_0xdb3d21['upperBoundary']);case'PropertyIsEqualTo':case _0x38aa82(0x1c0):case _0x38aa82(0x169):case _0x38aa82(0x1b5):case'PropertyIsGreaterThan':case _0x38aa82(0x1c6):case _0x38aa82(0x19a):case _0x38aa82(0x1ad):{return _0xdb3d21[_0x38aa82(0x18d)]!==null?_0xdb3d21[_0x38aa82(0x16a)]+'\x20'+this['operatorReverse'][_0xdb3d21[_0x38aa82(0x18f)]]+'\x20'+this[_0x38aa82(0x196)](_0xdb3d21['expression']):_0xdb3d21['propertyName']+'\x20'+this[_0x38aa82(0x189)][_0xdb3d21['tagName_']];}case undefined:if(typeof _0xdb3d21==='string')return'\x27'+_0xdb3d21[_0x38aa82(0x193)](/'/g,'\x27\x27')+'\x27';else{if(typeof _0xdb3d21===_0x38aa82(0x1a9))return String(_0xdb3d21);}break;default:throw new Error(_0x38aa82(0x184)+_0xdb3d21[_0x38aa82(0x17b)]+'\x20'+_0xdb3d21);}}[a70_0x357558(0x176)](_0x30589f){const _0x2c7d02=a70_0x357558;if(_0x30589f instanceof a70_0x4033fd)return new WKT()[_0x2c7d02(0x1a6)](_0x30589f);}}function a70_0x5a9e(){const _0x2d068d=['1497609ccpNuK','number','substring','remainder','isNull','PropertyIsNull','type','154HxrXAq','notEqualTo','PROPERTY','ERROR:\x20In\x20parsing:\x20[','nextToken','buildAst','PropertyIsLessThanOrEqualTo','NOT','NOT\x20(','PropertyIsBetween','\x20AND\x20','parseInToOr','IS\x20NULL','srsName','WITHIN(','469890USNCdi','pop','PropertyIsNotEqualTo','inPatterns','read','operators','like','\x0a\x20\x20\x20\x20','PropertyIsGreaterThanOrEqualTo','exec','length','lastIndexOf','intersects','lessThan','8vOeRIM','735938wAVxUC','geometry','warn','contains','Not','bbox','lowerBoundary','CONTAINS','312990iQSkqh','PropertyIsLessThan','propertyName','Contains','shift','44qZLSny','BETWEEN','VALUE','INTERSECTS','replaceAll','END','COMPARISON','conditions','INTERSECTS(','readGeometry','236416USXbyT','RPAREN','tryToken','GEOMETRY','CLASS_NAME','toUpperCase','logicals','not','greaterThan','SPATIAL','LOGICAL','tokenize','IS_NULL','Can\x27t\x20encode:\x20','BBOX','lessThanOrEqualTo','geometryName','212345qVSwCU','operatorReverse','precedence','text','LIKE','expression','28113vfwYFZ','tagName_','patterns','between','LPAREN','replace','condition','indexOf','write','CQL解析失败:','20euEdbJ','push','PropertyIsLike','match','\x20BETWEEN\x20','toLowerCase','property','follows','within','Unknown\x20token\x20type\x20','charAt','BBOX(','index','Intersects','writeGeometry','COMMA'];a70_0x5a9e=function(){return _0x2d068d;};return a70_0x5a9e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2eabc1,_0x595c8f){const _0x32eca7=a71_0xbc12,_0x5f35b9=_0x2eabc1();while(!![]){try{const _0x20c803=parseInt(_0x32eca7(0x205))/0x1+parseInt(_0x32eca7(0x1f6))/0x2+parseInt(_0x32eca7(0x1f7))/0x3*(parseInt(_0x32eca7(0x1eb))/0x4)+parseInt(_0x32eca7(0x1f4))/0x5*(-parseInt(_0x32eca7(0x1fd))/0x6)+-parseInt(_0x32eca7(0x1ef))/0x7*(-parseInt(_0x32eca7(0x1f5))/0x8)+-parseInt(_0x32eca7(0x202))/0x9*(-parseInt(_0x32eca7(0x206))/0xa)+parseInt(_0x32eca7(0x20b))/0xb;if(_0x20c803===_0x595c8f)break;else _0x5f35b9['push'](_0x5f35b9['shift']());}catch(_0x4e47a6){_0x5f35b9['push'](_0x5f35b9['shift']());}}}(a71_0x550f,0xc0dd8));import a71_0x9f1243 from'./CQL';function a71_0x550f(){const _0x10f5c6=['push','3602137gjBxxE','And','property','PropertyIsEqualTo','27016XjgGXk','length','PropertyIsLessThanOrEqualTo','PropertyIsGreaterThanOrEqualTo','63518fOMNXH','lowerBoundary','template','tagName_','read','1825lKpfgC','8Wghenw','1238880mjKEog','330SaWjBa','join','idMapLength','expression','propertyName','PropertyIsLessThan','24756UTkrog','condition','idMap','PropertyIsGreaterThan','PropertyIsBetween','17082blnftM','Not','conditions','59911IhLJum','2830JmseHZ','PropertyIsLike','PropertyIsNotEqualTo','PropertyIsNull'];a71_0x550f=function(){return _0x10f5c6;};return a71_0x550f();}export function isMatchCql(_0x1dd117,_0x1fd36b){const _0x31f6c7=a71_0xbc12;let _0x10081e=new a71_0x9f1243()[_0x31f6c7(0x1f3)](_0x1fd36b);return isMatchFilter(_0x1dd117,_0x10081e);}export function isMatchFilter(_0x2abffe,_0x3653e4){const _0x5b4921=a71_0xbc12;switch(_0x3653e4[_0x5b4921(0x1f2)]){case'Not':return!isMatchFilter(_0x2abffe,_0x3653e4[_0x5b4921(0x1fe)]);case _0x5b4921(0x20c):{let _0x508d6a=!![];for(let _0x5b6520=0x0;_0x5b6520<_0x3653e4[_0x5b4921(0x204)][_0x5b4921(0x1ec)];_0x5b6520++){_0x508d6a=_0x508d6a&&isMatchFilter(_0x2abffe,_0x3653e4[_0x5b4921(0x204)][_0x5b6520]);}return _0x508d6a;}case'Or':{let _0x1eee71=![];for(let _0x47151a=0x0;_0x47151a<_0x3653e4[_0x5b4921(0x204)]['length'];_0x47151a++){_0x1eee71=_0x1eee71||isMatchFilter(_0x2abffe,_0x3653e4[_0x5b4921(0x204)][_0x47151a]);}return _0x1eee71;}case _0x5b4921(0x201):return _0x2abffe[_0x3653e4[_0x5b4921(0x20d)]]>_0x3653e4[_0x5b4921(0x1f0)]&&_0x2abffe[_0x3653e4[_0x5b4921(0x20d)]]<_0x3653e4['upperBoundary'];case _0x5b4921(0x1ea):return _0x2abffe[_0x3653e4[_0x5b4921(0x1fb)]]===_0x3653e4['expression'];case _0x5b4921(0x208):return _0x2abffe[_0x3653e4[_0x5b4921(0x1fb)]]!==_0x3653e4[_0x5b4921(0x1fa)];case _0x5b4921(0x1fc):return _0x2abffe[_0x3653e4['propertyName']]<_0x3653e4[_0x5b4921(0x1fa)];case _0x5b4921(0x1ed):return _0x2abffe[_0x3653e4[_0x5b4921(0x1fb)]]<=_0x3653e4['expression'];case _0x5b4921(0x200):return _0x2abffe[_0x3653e4[_0x5b4921(0x1fb)]]>_0x3653e4['expression'];case _0x5b4921(0x1ee):return _0x2abffe[_0x3653e4[_0x5b4921(0x1fb)]]>=_0x3653e4['expression'];case _0x5b4921(0x207):return _0x2abffe[_0x3653e4['propertyName']]['indexOf'](_0x3653e4[_0x5b4921(0x1fa)])>-0x1;case _0x5b4921(0x209):{return!_0x2abffe[_0x3653e4['propertyName']];}default:return![];}}export function isEqualFilter(_0x563aae,_0x240692){const _0x597793=a71_0xbc12;switch(_0x563aae[_0x597793(0x1f2)]){case _0x597793(0x203):return _0x563aae['tagName_']===_0x240692[_0x597793(0x1f2)]&&isEqualFilter(_0x563aae[_0x597793(0x1fe)],_0x240692[_0x597793(0x1fe)]);case'Or':case _0x597793(0x20c):{let _0x5b32c6=_0x563aae[_0x597793(0x1f2)]===_0x240692[_0x597793(0x1f2)]&&_0x563aae['conditions'][_0x597793(0x1ec)]===_0x240692[_0x597793(0x204)][_0x597793(0x1ec)];for(let _0x44146a=0x0;_0x44146a<_0x563aae['conditions'][_0x597793(0x1ec)];_0x44146a++){_0x5b32c6=_0x5b32c6&&isEqualFilter(_0x563aae[_0x597793(0x204)][_0x44146a],_0x240692[_0x597793(0x204)][_0x44146a]);}return _0x5b32c6;}case _0x597793(0x201):return _0x563aae[_0x597793(0x1f2)]===_0x240692['tagName_']&&_0x563aae[_0x597793(0x20d)]===_0x240692[_0x597793(0x20d)];case'PropertyIsEqualTo':case _0x597793(0x208):case _0x597793(0x1fc):case'PropertyIsLessThanOrEqualTo':case'PropertyIsGreaterThan':case _0x597793(0x1ee):case'PropertyIsLike':case _0x597793(0x209):return _0x563aae[_0x597793(0x1f2)]===_0x240692[_0x597793(0x1f2)]&&_0x563aae[_0x597793(0x1fb)]===_0x240692[_0x597793(0x1fb)];default:return![];}}export function indexOfFilter(_0x26c05a,_0x3c8a26){let _0x420231=-0x1;if((_0x26c05a===null||_0x26c05a===void 0x0?void 0x0:_0x26c05a['length'])>0x0)for(let _0x77e748 in _0x26c05a){if(isEqualFilter(_0x26c05a[_0x77e748]['template'],_0x3c8a26))return _0x77e748;}return _0x420231;}function a71_0xbc12(_0x2c22c9,_0x4709fe){const _0x550f3a=a71_0x550f();return a71_0xbc12=function(_0xbc1214,_0x392625){_0xbc1214=_0xbc1214-0x1ea;let _0x18842e=_0x550f3a[_0xbc1214];return _0x18842e;},a71_0xbc12(_0x2c22c9,_0x4709fe);}export function getIndexByTemplate(_0x1e9971,_0x14b043){const _0x1f4654=a71_0xbc12;let _0x42149d=_0x14b043[_0x1f4654(0x1f1)];if(_0x14b043[_0x1f4654(0x1f9)]>0x0){let _0x2eb7b9=getKeyByTemplate(_0x1e9971,_0x42149d);if(_0x2eb7b9 instanceof Array)for(let _0x45f142 in _0x2eb7b9){let _0x328e27=_0x14b043[_0x1f4654(0x1ff)][_0x2eb7b9[_0x45f142]+'_'+_0x45f142];if(_0x328e27)return _0x328e27;}else return _0x14b043[_0x1f4654(0x1ff)][_0x2eb7b9];}return null;}export function getKeyByTemplate(_0x2b93d9,_0x5d376b){const _0xfe0206=a71_0xbc12;switch(_0x5d376b[_0xfe0206(0x1f2)]){case _0xfe0206(0x1ea):{return _0x2b93d9[_0x5d376b[_0xfe0206(0x1fb)]];}case _0xfe0206(0x20c):{let _0x4aac81=[];for(let _0x318ecf=0x0;_0x318ecf<_0x5d376b['conditions']['length'];_0x318ecf++){let _0x389574=getKeyByTemplate(_0x2b93d9,_0x5d376b[_0xfe0206(0x204)][_0x318ecf]);_0x389574&&_0x4aac81['push'](_0x389574);}return _0x4aac81[_0xfe0206(0x1f8)](',');}case'Or':{let _0x11ba41=[];for(let _0x126aa5=0x0;_0x126aa5<_0x5d376b['conditions'][_0xfe0206(0x1ec)];_0x126aa5++){let _0x532e31=getKeyByTemplate(_0x2b93d9,_0x5d376b[_0xfe0206(0x204)][_0x126aa5]);_0x532e31&&_0x11ba41[_0xfe0206(0x20a)](_0x532e31);}return _0x11ba41;}default:return null;}}export function createKeyFromFilter(_0xfcebc5){const _0x30d6b7=a71_0xbc12;switch(_0xfcebc5[_0x30d6b7(0x1f2)]){case _0x30d6b7(0x1ea):return _0xfcebc5['expression'];case'And':{let _0x1a0d12=[];for(let _0x218273=0x0;_0x218273<_0xfcebc5[_0x30d6b7(0x204)][_0x30d6b7(0x1ec)];_0x218273++){let _0x39a0ce=createKeyFromFilter(_0xfcebc5[_0x30d6b7(0x204)][_0x218273]);if(_0x39a0ce)_0x1a0d12['push'](_0x39a0ce);else return null;}return _0x1a0d12[_0x30d6b7(0x1f8)](',');}case'Or':{let _0x15b4bb=[];for(let _0x4f44de=0x0;_0x4f44de<_0xfcebc5[_0x30d6b7(0x204)]['length'];_0x4f44de++){let _0x39e976=createKeyFromFilter(_0xfcebc5[_0x30d6b7(0x204)][_0x4f44de]);_0x39e976&&_0x15b4bb['push'](_0x39e976);}return _0x15b4bb;}default:return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0xfb4709=a74_0x14aa;(function(_0x28f4d1,_0x268a55){const _0xb9ba4b=a74_0x14aa,_0x4cca45=_0x28f4d1();while(!![]){try{const _0x267923=-parseInt(_0xb9ba4b(0x71))/0x1+parseInt(_0xb9ba4b(0x6b))/0x2*(parseInt(_0xb9ba4b(0x69))/0x3)+parseInt(_0xb9ba4b(0x72))/0x4+parseInt(_0xb9ba4b(0x77))/0x5+-parseInt(_0xb9ba4b(0x73))/0x6+parseInt(_0xb9ba4b(0x76))/0x7+-parseInt(_0xb9ba4b(0x75))/0x8;if(_0x267923===_0x268a55)break;else _0x4cca45['push'](_0x4cca45['shift']());}catch(_0x1c56c5){_0x4cca45['push'](_0x4cca45['shift']());}}}(a74_0x1bd9,0x1e937));function a74_0x1bd9(){const _0x25f17f=['markerLabel','463179KVbQPY','cacheSize_','2VSnEHQ','markerColor','null','set','clear','cache_','71455zCNhSD','88676PsDLpL','117588gQhsXs','image','1095368sNBamx','1220324OikEHI','11595UgiDbK','markerSize'];a74_0x1bd9=function(){return _0x25f17f;};return a74_0x1bd9();}import{asString}from'ol/color';class ImageCache{constructor(){const _0x2f6dff=a74_0x14aa;this[_0x2f6dff(0x70)]={},this[_0x2f6dff(0x6a)]=0x0;}[a74_0xfb4709(0x6f)](){const _0x4cee7e=a74_0xfb4709;this['cache_']={},this[_0x4cee7e(0x6a)]=0x0;}['get'](_0x4010e6){const _0x805f49=a74_0xfb4709,_0x34d109=getKey(_0x4010e6[_0x805f49(0x68)],_0x4010e6['markerSize'],_0x4010e6[_0x805f49(0x6c)],_0x4010e6['image']);return _0x34d109 in this[_0x805f49(0x70)]?this[_0x805f49(0x70)][_0x34d109]:null;}[a74_0xfb4709(0x6e)](_0x241d27,_0x263f05){const _0x5e2d6b=a74_0xfb4709,_0x54b360=getKey(_0x241d27[_0x5e2d6b(0x68)],_0x241d27[_0x5e2d6b(0x67)],_0x241d27[_0x5e2d6b(0x6c)],_0x241d27[_0x5e2d6b(0x74)]);this[_0x5e2d6b(0x70)][_0x54b360]=_0x263f05,++this[_0x5e2d6b(0x6a)];}}function getKey(_0x1e3444,_0xbef55d,_0x4e376c,_0x38a027){const _0x45a0c4=a74_0xfb4709,_0x17cb06=_0x4e376c?asString(_0x4e376c):_0x45a0c4(0x6d);return _0x1e3444+':'+_0x38a027+':'+_0x17cb06+':'+_0xbef55d;}export default ImageCache;function a74_0x14aa(_0x8d1baa,_0x467095){const _0x1bd99b=a74_0x1bd9();return a74_0x14aa=function(_0x14aa3c,_0x9180a){_0x14aa3c=_0x14aa3c-0x67;let _0x392c08=_0x1bd99b[_0x14aa3c];return _0x392c08;},a74_0x14aa(_0x8d1baa,_0x467095);}export const shared=new ImageCache();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a75_0x1502(_0x50ffec,_0x4e3693){const _0x2a908c=a75_0x2a90();return a75_0x1502=function(_0x1502cb,_0x428448){_0x1502cb=_0x1502cb-0x18a;let _0x185f80=_0x2a908c[_0x1502cb];return _0x185f80;},a75_0x1502(_0x50ffec,_0x4e3693);}const a75_0x403859=a75_0x1502;(function(_0x212f19,_0x98caaf){const _0xc848e8=a75_0x1502,_0x475764=_0x212f19();while(!![]){try{const _0x393545=-parseInt(_0xc848e8(0x191))/0x1+parseInt(_0xc848e8(0x1a2))/0x2*(-parseInt(_0xc848e8(0x1ad))/0x3)+-parseInt(_0xc848e8(0x1aa))/0x4+parseInt(_0xc848e8(0x1ab))/0x5+parseInt(_0xc848e8(0x197))/0x6*(-parseInt(_0xc848e8(0x1a1))/0x7)+-parseInt(_0xc848e8(0x1a9))/0x8+parseInt(_0xc848e8(0x1b8))/0x9;if(_0x393545===_0x98caaf)break;else _0x475764['push'](_0x475764['shift']());}catch(_0x138021){_0x475764['push'](_0x475764['shift']());}}}(a75_0x2a90,0x31188));import a75_0xb2a76b from'color';import a75_0x5ae5b6 from'./writeTextToCanvas';import{Icon}from'ol/style';import a75_0x18ecca from'ol/ImageState';import{parseImage}from'../../UrlUtil.js';class PinBuilder{constructor(){const _0x19e48e=a75_0x1502;this[_0x19e48e(0x1a3)]={};}[a75_0x403859(0x1b5)](_0x28d386,_0x3f2d26){const _0x4c013d=a75_0x403859;if(!_0x28d386)throw new Error(_0x4c013d(0x1a4));if(!_0x3f2d26)throw new Error('size\x20is\x20required');return createPin('','',_0x28d386,_0x3f2d26,this['_cache']);}[a75_0x403859(0x18e)](_0xb85e8e,_0x2e256c,_0x11ba79){const _0x19b848=a75_0x403859;if(!_0xb85e8e)throw new Error(_0x19b848(0x1a0));if(!_0x2e256c)throw new Error('color\x20is\x20required');if(!_0x11ba79)throw new Error('size\x20is\x20required');return createPin(_0xb85e8e,'',_0x2e256c,_0x11ba79,this[_0x19b848(0x1a3)]);}[a75_0x403859(0x1b9)](_0x3465a9,_0x240972,_0x176966){const _0x31cd2b=a75_0x403859;if(!_0x3465a9)throw new Error(_0x31cd2b(0x1a7));if(!_0x240972)throw new Error(_0x31cd2b(0x1a4));if(!_0x176966)throw new Error(_0x31cd2b(0x196));return createPin(parseImage(_0x3465a9),'',_0x240972,_0x176966,this[_0x31cd2b(0x1a3)]);}[a75_0x403859(0x193)](_0x3f9fa8,_0x7a7dcb,_0x3c6b43){const _0x3da284=a75_0x403859;if(!_0x3f9fa8)throw new Error('text\x20is\x20required');if(!_0x7a7dcb)throw new Error(_0x3da284(0x1a4));if(!_0x3c6b43)throw new Error(_0x3da284(0x196));return createPin('',_0x3f9fa8,_0x7a7dcb,_0x3c6b43,this[_0x3da284(0x1a3)]);}}function a75_0x2a90(){const _0x5324d0=['save','id\x20is\x20required','fill','1572960cYcuZI','1236132IFuTwo','596195EOcgHC','width','405wkSoEj','LOADED','getImageState','destination-out','drawImage','destination-over','globalCompositeOperation','closePath','fromColor','bezierCurveTo','ERROR','12369537cxfGXo','fromMakiIconId','stringify','IDLE','bold\x20','hexa','fromUrl','px\x20sans-serif','round','376790gnxBdu','getContext','fromText','target','height','size\x20is\x20required','2022QOITNI','stroke','fillStyle','lineTo','getImage','fillRect','#FFFFFF','toDataURL','beginPath','url\x20is\x20required','518cbrRnd','5706cvDbaV','_cache','color\x20is\x20required','lineWidth'];a75_0x2a90=function(){return _0x5324d0;};return a75_0x2a90();}function drawPin(_0x1e0106,_0x14d9f4,_0x41e532){const _0x5a227c=a75_0x403859;_0x1e0106[_0x5a227c(0x1a6)](),_0x1e0106['scale'](_0x41e532/0x18,_0x41e532/0x18),_0x1e0106[_0x5a227c(0x199)]=_0x14d9f4,_0x1e0106['strokeStyle']=a75_0xb2a76b(_0x14d9f4)['lighten'](0.6)[_0x5a227c(0x18d)](),_0x1e0106[_0x5a227c(0x1a5)]=0.846,_0x1e0106[_0x5a227c(0x19f)](),_0x1e0106['moveTo'](6.72,0.422),_0x1e0106[_0x5a227c(0x19a)](17.28,0.422),_0x1e0106[_0x5a227c(0x1b6)](18.553,0.422,19.577,1.758,19.577,3.415),_0x1e0106[_0x5a227c(0x19a)](19.577,10.973),_0x1e0106[_0x5a227c(0x1b6)](19.577,12.63,18.553,13.966,17.282,13.966),_0x1e0106[_0x5a227c(0x19a)](14.386,14.008),_0x1e0106[_0x5a227c(0x19a)](11.826,23.578),_0x1e0106[_0x5a227c(0x19a)](9.614,14.008),_0x1e0106[_0x5a227c(0x19a)](6.719,13.965),_0x1e0106['bezierCurveTo'](5.446,13.983,4.422,12.629,4.422,10.972),_0x1e0106[_0x5a227c(0x19a)](4.422,3.416),_0x1e0106[_0x5a227c(0x1b6)](4.423,1.76,5.447,0.423,6.718,0.423),_0x1e0106[_0x5a227c(0x1b4)](),_0x1e0106[_0x5a227c(0x1a8)](),_0x1e0106[_0x5a227c(0x198)](),_0x1e0106['restore']();}function drawIcon(_0x1968f3,_0x2dc52e,_0x540b28){const _0x2922bb=a75_0x403859,_0x1db56f=_0x540b28/2.5;let _0x14fbc4=_0x1db56f,_0x50c0bb=_0x1db56f;if(_0x2dc52e[_0x2922bb(0x1ac)]>_0x2dc52e[_0x2922bb(0x195)])_0x50c0bb=_0x1db56f*(_0x2dc52e[_0x2922bb(0x195)]/_0x2dc52e[_0x2922bb(0x1ac)]);else _0x2dc52e[_0x2922bb(0x1ac)]<_0x2dc52e[_0x2922bb(0x195)]&&(_0x14fbc4=_0x1db56f*(_0x2dc52e[_0x2922bb(0x1ac)]/_0x2dc52e[_0x2922bb(0x195)]));const _0x811684=Math[_0x2922bb(0x190)]((_0x540b28-_0x14fbc4)/0x2),_0x10184e=Math[_0x2922bb(0x190)](0x7/0x18*_0x540b28-_0x50c0bb/0x2);_0x1968f3['globalCompositeOperation']=_0x2922bb(0x1b0),_0x1968f3[_0x2922bb(0x1b1)](_0x2dc52e,_0x811684-0x1,_0x10184e,_0x14fbc4,_0x50c0bb),_0x1968f3['drawImage'](_0x2dc52e,_0x811684,_0x10184e-0x1,_0x14fbc4,_0x50c0bb),_0x1968f3['drawImage'](_0x2dc52e,_0x811684+0x1,_0x10184e,_0x14fbc4,_0x50c0bb),_0x1968f3[_0x2922bb(0x1b1)](_0x2dc52e,_0x811684,_0x10184e+0x1,_0x14fbc4,_0x50c0bb),_0x1968f3['globalCompositeOperation']=_0x2922bb(0x1b2),_0x1968f3[_0x2922bb(0x199)]='#000000',_0x1968f3[_0x2922bb(0x19c)](_0x811684-0x1,_0x10184e-0x1,_0x14fbc4+0x2,_0x50c0bb+0x2),_0x1968f3[_0x2922bb(0x1b3)]=_0x2922bb(0x1b0),_0x1968f3[_0x2922bb(0x1b1)](_0x2dc52e,_0x811684,_0x10184e,_0x14fbc4,_0x50c0bb),_0x1968f3[_0x2922bb(0x1b3)]='destination-over',_0x1968f3[_0x2922bb(0x199)]=_0x2922bb(0x19d),_0x1968f3[_0x2922bb(0x19c)](_0x811684-0x1,_0x10184e-0x2,_0x14fbc4+0x2,_0x50c0bb+0x2);}const stringifyScratch=new Array(0x4);function createPin(_0x5a3d0e,_0x4e6bc9,_0x346014,_0x492a29,_0x58ed36){const _0x47b941=a75_0x403859;stringifyScratch[0x0]=_0x5a3d0e,stringifyScratch[0x1]=_0x4e6bc9,stringifyScratch[0x2]=_0x346014,stringifyScratch[0x3]=_0x492a29;const _0xfee791=JSON[_0x47b941(0x18a)](stringifyScratch),_0x16d313=_0x58ed36[_0xfee791];if(_0x16d313)return _0x16d313;const _0x5d498a=document['createElement']('canvas');_0x5d498a[_0x47b941(0x1ac)]=_0x492a29,_0x5d498a[_0x47b941(0x195)]=_0x492a29;const _0x3e28b7=_0x5d498a[_0x47b941(0x192)]('2d');drawPin(_0x3e28b7,_0x346014,_0x492a29);if(_0x5a3d0e)return new Promise(_0x54b446=>{const _0xdce82=_0x47b941;let _0x5d97d5=new Icon({'src':_0x5a3d0e}),_0x40de6e=_0x5d97d5[_0xdce82(0x1af)]();_0x40de6e===a75_0x18ecca['LOADED']||_0x40de6e===a75_0x18ecca[_0xdce82(0x1b7)]?(drawIcon(_0x3e28b7,_0x5d97d5['getImage'](0x60),_0x492a29),_0x58ed36[_0xfee791]=_0x5d498a[_0xdce82(0x19e)](),_0x54b446(_0x5d498a['toDataURL']())):(_0x40de6e===a75_0x18ecca[_0xdce82(0x18b)]&&_0x5d97d5['load'](),_0x5d97d5['listenImageChange'](_0x24a748=>{const _0x50a264=_0xdce82;_0x40de6e=_0x24a748[_0x50a264(0x194)][_0x50a264(0x1af)](),(_0x40de6e===a75_0x18ecca[_0x50a264(0x1ae)]||_0x40de6e===a75_0x18ecca[_0x50a264(0x1b7)])&&(drawIcon(_0x3e28b7,_0x5d97d5[_0x50a264(0x19b)](0x60),_0x492a29),_0x58ed36[_0xfee791]=_0x5d498a[_0x50a264(0x19e)](),_0x54b446(_0x5d498a[_0x50a264(0x19e)]()));}));});else{if(_0x4e6bc9){const _0xbb4e83=a75_0x5ae5b6(_0x4e6bc9,{'font':_0x47b941(0x18c)+_0x492a29+_0x47b941(0x18f)});drawIcon(_0x3e28b7,_0xbb4e83,_0x492a29);}}return _0x58ed36[_0xfee791]=_0x5d498a[_0x47b941(0x19e)](),_0x5d498a[_0x47b941(0x19e)]();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a76_0x4b16(_0x496ab4,_0x21b75a){const _0x5e32ca=a76_0x5e32();return a76_0x4b16=function(_0x4b16fc,_0x453c6e){_0x4b16fc=_0x4b16fc-0x183;let _0x2190af=_0x5e32ca[_0x4b16fc];return _0x2190af;},a76_0x4b16(_0x496ab4,_0x21b75a);}const a76_0x5e084a=a76_0x4b16;(function(_0xfde40f,_0x150e7a){const _0x1ce62d=a76_0x4b16,_0x12b8e5=_0xfde40f();while(!![]){try{const _0x131d1e=parseInt(_0x1ce62d(0x197))/0x1*(-parseInt(_0x1ce62d(0x184))/0x2)+-parseInt(_0x1ce62d(0x187))/0x3+parseInt(_0x1ce62d(0x19b))/0x4*(parseInt(_0x1ce62d(0x19d))/0x5)+parseInt(_0x1ce62d(0x199))/0x6+parseInt(_0x1ce62d(0x18f))/0x7*(-parseInt(_0x1ce62d(0x195))/0x8)+-parseInt(_0x1ce62d(0x18b))/0x9*(parseInt(_0x1ce62d(0x196))/0xa)+parseInt(_0x1ce62d(0x1a4))/0xb*(parseInt(_0x1ce62d(0x192))/0xc);if(_0x131d1e===_0x150e7a)break;else _0x12b8e5['push'](_0x12b8e5['shift']());}catch(_0x5cd2ac){_0x12b8e5['push'](_0x12b8e5['shift']());}}}(a76_0x5e32,0xb4d31));import a76_0x1b232b from'./PinBuilder';import{Icon}from'ol/style';import a76_0xf28b76 from'ol/ImageState';import a76_0x425e71 from'ol/events/Event';import{shared as a76_0x82dec3}from'./ImageCache';function a76_0x5e32(){const _0x19cc73=['getImageState','1231866EdFhmh','load','_icon','markerColor','63RUxROp','markerSize','image','8149524sqOQQi','get','target','158024JJGfTW','50vTaMmD','162jfbmqK','getImage','5941134jmerlX','LOADED','1318924qXqCsA','error','15AOYmJT','loadIcon','_listener','dispatchEvent','fromText','_imageState','ERROR','11kBnIqa','warn','resolve','listenImageChange','11318vSRvWy','markerLabel','options','416841tRwGoV','fromUrl','IDLE'];a76_0x5e32=function(){return _0x19cc73;};return a76_0x5e32();}export default class PinIcon{constructor(_0x2228af){const _0x4eb9ed=a76_0x4b16;this[_0x4eb9ed(0x186)]=_0x2228af||{},this[_0x4eb9ed(0x1a2)]=a76_0xf28b76['IDLE'],this[_0x4eb9ed(0x18d)]=a76_0x82dec3[_0x4eb9ed(0x193)](this[_0x4eb9ed(0x186)]),this[_0x4eb9ed(0x18d)]&&(this[_0x4eb9ed(0x1a2)]=a76_0xf28b76['LOADED']);}['load'](){const _0x3666fe=a76_0x4b16;try{let _0x5eb5a6,_0x46a3f2=new a76_0x1b232b();if(this[_0x3666fe(0x186)][_0x3666fe(0x185)])_0x5eb5a6=_0x46a3f2[_0x3666fe(0x1a1)](this[_0x3666fe(0x186)][_0x3666fe(0x185)],this[_0x3666fe(0x186)][_0x3666fe(0x18e)],this[_0x3666fe(0x186)][_0x3666fe(0x190)]||0x30);else this[_0x3666fe(0x186)]['image']&&(_0x5eb5a6=_0x46a3f2[_0x3666fe(0x188)](this['options'][_0x3666fe(0x191)],this[_0x3666fe(0x186)][_0x3666fe(0x18e)],this[_0x3666fe(0x186)][_0x3666fe(0x190)]||0x30));Promise[_0x3666fe(0x1a6)](_0x5eb5a6)['then'](_0xe94a29=>{this['loadIcon'](_0xe94a29);})['catch'](_0x27b873=>{const _0x24d332=_0x3666fe;console[_0x24d332(0x1a5)](_0x27b873),this['_imageState']=a76_0xf28b76[_0x24d332(0x1a3)],this[_0x24d332(0x1a0)](_0x24d332(0x19c));});}catch(_0xa9ffaf){console[_0x3666fe(0x1a5)](_0xa9ffaf),this[_0x3666fe(0x1a2)]=a76_0xf28b76[_0x3666fe(0x1a3)],this[_0x3666fe(0x1a0)](_0x3666fe(0x19c));}}[a76_0x5e084a(0x19e)](_0x29e826){const _0x51832e=a76_0x5e084a;this['_icon']=new Icon({'src':_0x29e826}),a76_0x82dec3['set'](this[_0x51832e(0x186)],this[_0x51832e(0x18d)]);let _0x31d0d0=this[_0x51832e(0x18d)][_0x51832e(0x18a)]();_0x31d0d0===a76_0xf28b76[_0x51832e(0x19a)]||_0x31d0d0===a76_0xf28b76['ERROR']?(this[_0x51832e(0x1a2)]=this[_0x51832e(0x18d)]['getImageState'](),this[_0x51832e(0x1a0)](_0x51832e(0x18c))):(_0x31d0d0===a76_0xf28b76[_0x51832e(0x189)]&&this[_0x51832e(0x18d)][_0x51832e(0x18c)](),this['_icon']['listenImageChange'](_0x2bbdbb=>{const _0x3d2e1a=_0x51832e;_0x31d0d0=_0x2bbdbb[_0x3d2e1a(0x194)][_0x3d2e1a(0x18a)](),(_0x31d0d0===a76_0xf28b76[_0x3d2e1a(0x19a)]||_0x31d0d0===a76_0xf28b76[_0x3d2e1a(0x1a3)])&&(this[_0x3d2e1a(0x1a2)]=this[_0x3d2e1a(0x18d)]['getImageState'](),this[_0x3d2e1a(0x1a0)](_0x3d2e1a(0x18c)));}));}[a76_0x5e084a(0x18a)](){return this['_imageState'];}[a76_0x5e084a(0x198)](){const _0x25c171=a76_0x5e084a;var _0x46f7bf;return(_0x46f7bf=this[_0x25c171(0x18d)])===null||_0x46f7bf===void 0x0?void 0x0:_0x46f7bf[_0x25c171(0x198)]();}[a76_0x5e084a(0x183)](_0x3f0155){const _0x12a202=a76_0x5e084a;this[_0x12a202(0x19f)]=_0x3f0155;}[a76_0x5e084a(0x1a0)](_0x103f03){const _0x579511=a76_0x5e084a;if(this['_listener']){let _0x4f7a7e=new a76_0x425e71(_0x103f03);_0x4f7a7e['target']=this,this[_0x579511(0x19f)](_0x4f7a7e);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a77_0x3b3c(){const _0x4749f7=['getPropertyValue','26jjarVc','2092732oXjLtx','black','6564775vFRzKt','fillStyle','ceil','6234273dHrFto','font','width','test','22htSyjS','height','mozImageSmoothingEnabled','canvas','body','padding','measureText','getImageData','ascent','1911018cEfGvi','strokeStyle','length','getContext','data','strokeText','font-size','imageSmoothingEnabled','appendChild','createElement','fill','7hptdVx','replace','lineWidth','getComputedStyle','defaultView','strokeColor','fillText','#00000000','strokeWidth','#000000','4518980easeKl','msImageSmoothingEnabled','fillColor','83903BRLGpD','lineJoin','8756072duuFKY','round','hidden','fillRect','stroke','backgroundColor','minx','style','6liQXRh'];a77_0x3b3c=function(){return _0x4749f7;};return a77_0x3b3c();}(function(_0x486bef,_0x5e8d27){const _0x5b1cb1=a77_0x1ccf,_0x4ec2de=_0x486bef();while(!![]){try{const _0x2443d6=parseInt(_0x5b1cb1(0x8e))/0x1*(-parseInt(_0x5b1cb1(0x9a))/0x2)+parseInt(_0x5b1cb1(0x98))/0x3*(parseInt(_0x5b1cb1(0x9b))/0x4)+parseInt(_0x5b1cb1(0x9d))/0x5+parseInt(_0x5b1cb1(0xad))/0x6+parseInt(_0x5b1cb1(0xb8))/0x7*(-parseInt(_0x5b1cb1(0x90))/0x8)+-parseInt(_0x5b1cb1(0xa0))/0x9+-parseInt(_0x5b1cb1(0x8b))/0xa*(-parseInt(_0x5b1cb1(0xa4))/0xb);if(_0x2443d6===_0x5e8d27)break;else _0x4ec2de['push'](_0x4ec2de['shift']());}catch(_0x24760c){_0x4ec2de['push'](_0x4ec2de['shift']());}}}(a77_0x3b3c,0xabcbb));function measureText(_0x357338,_0x3c00c,_0x17d1c3,_0x57b590,_0x75c057){const _0x34938d=a77_0x1ccf,_0xa23ee0=_0x357338[_0x34938d(0xaa)](_0x3c00c),_0x301955=!/\S/[_0x34938d(0xa3)](_0x3c00c);if(!_0x301955&&document[_0x34938d(0xbc)]){const _0x2e7e6e=document[_0x34938d(0xbc)][_0x34938d(0xbb)](_0x357338[_0x34938d(0xa7)])[_0x34938d(0x99)](_0x34938d(0xb3))[_0x34938d(0xb9)]('px',''),_0x3d1080=document['createElement'](_0x34938d(0xa7)),_0x1fa047=0x64,_0x228fd0=_0xa23ee0[_0x34938d(0xa2)]+_0x1fa047|0x0,_0x31316c=0x3*(_0x2e7e6e-0x0),_0x1b9ec6=_0x31316c/0x2;_0x3d1080['width']=_0x228fd0,_0x3d1080[_0x34938d(0xa5)]=_0x31316c;const _0x1e9ad6=_0x3d1080[_0x34938d(0xb0)]('2d');if(!_0x1e9ad6)return{};_0x1e9ad6[_0x34938d(0xa1)]=_0x17d1c3,_0x1e9ad6['fillStyle']='white',_0x1e9ad6[_0x34938d(0x93)](0x0,0x0,_0x3d1080[_0x34938d(0xa2)]+0x1,_0x3d1080[_0x34938d(0xa5)]+0x1);_0x57b590&&(_0x1e9ad6[_0x34938d(0xae)]=_0x34938d(0x9c),_0x1e9ad6['lineWidth']=_0x357338[_0x34938d(0xba)],_0x1e9ad6['strokeText'](_0x3c00c,_0x1fa047/0x2,_0x1b9ec6));_0x75c057&&(_0x1e9ad6[_0x34938d(0x9e)]='black',_0x1e9ad6[_0x34938d(0xbe)](_0x3c00c,_0x1fa047/0x2,_0x1b9ec6));const _0x30263a=_0x1e9ad6[_0x34938d(0xab)](0x0,0x0,_0x228fd0,_0x31316c)[_0x34938d(0xb1)],_0x2b1a29=_0x30263a[_0x34938d(0xaf)],_0x4adf5e=_0x228fd0*0x4;let _0x4cae08,_0x25cf4f,_0x4e4d73=0x0,_0x33f71f=0x0;for(_0x4cae08=0x0;_0x4cae08<_0x2b1a29;++_0x4cae08){if(_0x30263a[_0x4cae08]!==0xff){_0x4e4d73=_0x4cae08/_0x4adf5e|0x0;break;}}for(_0x4cae08=_0x2b1a29-0x1;_0x4cae08>=0x0;--_0x4cae08){if(_0x30263a[_0x4cae08]!==0xff){_0x33f71f=_0x4cae08/_0x4adf5e|0x0;break;}}let _0x7f4927=-0x1;for(_0x4cae08=0x0;_0x4cae08<_0x228fd0&&_0x7f4927===-0x1;++_0x4cae08){for(_0x25cf4f=0x0;_0x25cf4f<_0x31316c;++_0x25cf4f){const _0x15f87a=_0x4cae08*0x4+_0x25cf4f*_0x4adf5e;if(_0x30263a[_0x15f87a]!==0xff||_0x30263a[_0x15f87a+0x1]!==0xff||_0x30263a[_0x15f87a+0x2]!==0xff||_0x30263a[_0x15f87a+0x3]!==0xff){_0x7f4927=_0x4cae08;break;}}}return{'width':_0xa23ee0[_0x34938d(0xa2)],'height':_0x33f71f-_0x4e4d73,'ascent':_0x1b9ec6-_0x4e4d73,'descent':_0x33f71f-_0x1b9ec6,'minx':_0x7f4927-_0x1fa047/0x2};}return{'width':_0xa23ee0[_0x34938d(0xa2)],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}let imageSmoothingEnabledName='';function writeTextToCanvas(_0x4955bf,_0xf0b06d){const _0x5a9832=a77_0x1ccf;if(!_0x4955bf)throw new Error('text\x20is\x20required.');if(_0x4955bf==='')return undefined;_0xf0b06d=defaultValue(_0xf0b06d,{});const _0xced1b=defaultValue(_0xf0b06d[_0x5a9832(0xa1)],'10px\x20sans-serif'),_0x476619=defaultValue(_0xf0b06d[_0x5a9832(0x94)],![]),_0x58c999=defaultValue(_0xf0b06d[_0x5a9832(0xb7)],!![]),_0x36d388=defaultValue(_0xf0b06d[_0x5a9832(0xc0)],0x1),_0x3cdee8=defaultValue(_0xf0b06d[_0x5a9832(0x95)],_0x5a9832(0xbf)),_0x4fab1b=defaultValue(_0xf0b06d[_0x5a9832(0xa9)],0x0),_0x365a31=_0x4fab1b*0x2,_0x4c8f88=document[_0x5a9832(0xb6)](_0x5a9832(0xa7));_0x4c8f88['width']=0x1,_0x4c8f88[_0x5a9832(0xa5)]=0x1,_0x4c8f88[_0x5a9832(0x97)][_0x5a9832(0xa1)]=_0xced1b;const _0x5d79ab=_0x4c8f88[_0x5a9832(0xb0)]('2d');if(!imageSmoothingEnabledName&&_0x5d79ab){if(_0x5d79ab[_0x5a9832(0xb4)])imageSmoothingEnabledName=_0x5a9832(0xb4);else{if(_0x5d79ab[_0x5a9832(0xa6)])imageSmoothingEnabledName='mozImageSmoothingEnabled';else{if(_0x5d79ab['webkitImageSmoothingEnabled'])imageSmoothingEnabledName='webkitImageSmoothingEnabled';else _0x5d79ab['msImageSmoothingEnabled']&&(imageSmoothingEnabledName=_0x5a9832(0x8c));}}}_0x5d79ab['font']=_0xced1b,_0x5d79ab[_0x5a9832(0x8f)]='round',_0x5d79ab[_0x5a9832(0xba)]=_0x36d388,_0x5d79ab[imageSmoothingEnabledName]=![],_0x4c8f88[_0x5a9832(0x97)]['visibility']=_0x5a9832(0x92),document[_0x5a9832(0xa8)][_0x5a9832(0xb5)](_0x4c8f88);const _0x19b3af=measureText(_0x5d79ab,_0x4955bf,_0xced1b,_0x476619,_0x58c999);if(!_0x19b3af)return;_0x4c8f88['dimensions']=_0x19b3af,document[_0x5a9832(0xa8)]['removeChild'](_0x4c8f88),_0x4c8f88[_0x5a9832(0x97)]['visibility']='';const _0x48dd2b=-(_0x19b3af[_0x5a9832(0x96)]?_0x19b3af[_0x5a9832(0x96)]:0x0),_0xa41632=Math[_0x5a9832(0x9f)](_0x19b3af[_0x5a9832(0xa2)])+_0x48dd2b+_0x365a31,_0x559224=(_0x19b3af[_0x5a9832(0xa5)]?_0x19b3af[_0x5a9832(0xa5)]:0x0)+_0x365a31,_0x2afe9d=_0x559224-(_0x19b3af['ascent']?_0x19b3af[_0x5a9832(0xac)]:0x0)+_0x4fab1b,_0x5a6008=_0x559224-_0x2afe9d+_0x365a31;return _0x4c8f88[_0x5a9832(0xa2)]=_0xa41632,_0x4c8f88['height']=_0x559224,_0x5d79ab[_0x5a9832(0xa1)]=_0xced1b,_0x5d79ab['lineJoin']=_0x5a9832(0x91),_0x5d79ab[_0x5a9832(0xba)]=_0x36d388,_0x5d79ab[imageSmoothingEnabledName]=![],_0x3cdee8!==_0x5a9832(0xbf)&&(_0x5d79ab['fillStyle']=_0x3cdee8,_0x5d79ab['fillRect'](0x0,0x0,_0x4c8f88[_0x5a9832(0xa2)],_0x4c8f88[_0x5a9832(0xa5)])),_0x476619&&(_0x5d79ab[_0x5a9832(0xae)]=defaultValue(_0xf0b06d[_0x5a9832(0xbd)],_0x5a9832(0xc1)),_0x5d79ab[_0x5a9832(0xb2)](_0x4955bf,_0x48dd2b+_0x4fab1b,_0x5a6008)),_0x58c999&&(_0x5d79ab['fillStyle']=defaultValue(_0xf0b06d[_0x5a9832(0x8d)],'#FFFFFF'),_0x5d79ab[_0x5a9832(0xbe)](_0x4955bf,_0x48dd2b+_0x4fab1b,_0x5a6008)),_0x4c8f88;}function a77_0x1ccf(_0xbf5382,_0x4ac0fb){const _0x3b3cf6=a77_0x3b3c();return a77_0x1ccf=function(_0x1ccfe8,_0xffc519){_0x1ccfe8=_0x1ccfe8-0x8b;let _0x2add57=_0x3b3cf6[_0x1ccfe8];return _0x2add57;},a77_0x1ccf(_0xbf5382,_0x4ac0fb);}function defaultValue(_0x34d9f8,_0x3ef684){if(_0x34d9f8!==undefined&&_0x34d9f8!==null)return _0x34d9f8;return _0x3ef684;}export default writeTextToCanvas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x5bb5a6=a82_0x105d;(function(_0x3cb3d9,_0x34819d){const _0x2e98ca=a82_0x105d,_0x465bb7=_0x3cb3d9();while(!![]){try{const _0x383277=-parseInt(_0x2e98ca(0x1e9))/0x1*(-parseInt(_0x2e98ca(0x1fa))/0x2)+parseInt(_0x2e98ca(0x20a))/0x3*(parseInt(_0x2e98ca(0x1ed))/0x4)+parseInt(_0x2e98ca(0x206))/0x5+parseInt(_0x2e98ca(0x1fc))/0x6*(-parseInt(_0x2e98ca(0x1f0))/0x7)+-parseInt(_0x2e98ca(0x203))/0x8*(-parseInt(_0x2e98ca(0x1f1))/0x9)+parseInt(_0x2e98ca(0x208))/0xa+-parseInt(_0x2e98ca(0x1ee))/0xb;if(_0x383277===_0x34819d)break;else _0x465bb7['push'](_0x465bb7['shift']());}catch(_0x5015ca){_0x465bb7['push'](_0x465bb7['shift']());}}}(a82_0x337f,0xe509c));import a82_0x5d6ed9 from'ol/format/EsriJSON';import a82_0x12ced5 from'ol/format/GeoJSON';import{getPointResolution}from'ol/proj';import a82_0x1afddc from'./Task';import{appendPath}from'../../UrlUtil';function a82_0x105d(_0x574b3d,_0x5b5425){const _0x337f47=a82_0x337f();return a82_0x105d=function(_0x105dbc,_0x4ab26a){_0x105dbc=_0x105dbc-0x1e9;let _0x4d39c0=_0x337f47[_0x105dbc];return _0x4d39c0;},a82_0x105d(_0x574b3d,_0x5b5425);}function a82_0x337f(){const _0x23b70e=['time','getSize','resolution','tolerance','valueOf','getResolution','128PUknXZ','identify','returnM','3458745dTgyvb','inSR','14605860naSmTZ','mapExtent','3OJRXGi','_setGeometryParams','writeGeometryObject','geometry','path','getProjection','456618Foxzcc','all','url','layers','1083480PhgufE','30065871eXYVSa','params','1603vUrtSH','455319vJlOwo','getCenter','imageDisplay','getView','returnGeometry','getType','between','layerDefs','returnZ','6YEwjsN','getCode','24396wWzLjX'];a82_0x337f=function(){return _0x23b70e;};return a82_0x337f();}import{getEsriSpatialReference}from'../../EsriUtil';export default class Identify extends a82_0x1afddc{constructor(_0x1ddf2d,_0x47ebac,_0x3a9f07){const _0x367387=a82_0x105d;super(_0x1ddf2d,_0x47ebac,_0x3a9f07),this[_0x367387(0x20e)]=_0x367387(0x204),this[_0x367387(0x1ef)]={'layers':_0x367387(0x1ea),'tolerance':0x0,'returnGeometry':!![]},this[_0x367387(0x200)]=0x3,this[_0x367387(0x1ff)]=0x0,this[_0x367387(0x1eb)]=appendPath(this['url'],this['path']),_0x47ebac&&((_0x47ebac['returnGeometry']===!![]||_0x47ebac[_0x367387(0x1f5)]===![])&&(this[_0x367387(0x1ef)][_0x367387(0x1f5)]=_0x47ebac[_0x367387(0x1f5)]),_0x47ebac[_0x367387(0x1ec)]&&(this[_0x367387(0x1ef)][_0x367387(0x1ec)]=_0x47ebac['layers']),_0x47ebac[_0x367387(0x1f8)]&&(this[_0x367387(0x1ef)][_0x367387(0x1f8)]=_0x47ebac[_0x367387(0x1f8)]),(_0x47ebac['returnZ']===!![]||_0x47ebac['returnZ']===![])&&(this[_0x367387(0x1ef)][_0x367387(0x1f9)]=_0x47ebac[_0x367387(0x1f9)]),(_0x47ebac[_0x367387(0x205)]===!![]||_0x47ebac['returnM']===![])&&(this[_0x367387(0x1ef)][_0x367387(0x205)]=_0x47ebac[_0x367387(0x205)]));}['at'](_0x543456,_0x2b0604){const _0x4b3713=a82_0x105d;let _0x14ef5a,_0x504ed7;const _0xe6756d=new a82_0x12ced5();_0x14ef5a=_0x543456,_0x504ed7=getEsriSpatialReference(_0x2b0604[_0x4b3713(0x1f4)]()['getProjection']()['getCode']());const _0x49b8be=_0x2b0604[_0x4b3713(0x1fe)]();_0x49b8be&&(this[_0x4b3713(0x1ef)][_0x4b3713(0x1f3)]=[_0x49b8be[0x0],_0x49b8be[0x1],0x60]);this[_0x4b3713(0x1ef)]['sr']=_0x504ed7;const _0x4b8ac0=_0x2b0604[_0x4b3713(0x1f4)]()['calculateExtent'](_0x2b0604[_0x4b3713(0x1fe)]());this[_0x4b3713(0x1ef)][_0x4b3713(0x209)]={'xmin':_0x4b8ac0[0x0],'ymin':_0x4b8ac0[0x1],'xmax':_0x4b8ac0[0x2],'ymax':_0x4b8ac0[0x3],'spatialReference':_0x504ed7};const _0x32680e=_0x2b0604[_0x4b3713(0x1f4)]()[_0x4b3713(0x202)](),_0x5b3fc9=_0x2b0604[_0x4b3713(0x1f4)]()[_0x4b3713(0x1f2)]();return _0x32680e&&_0x5b3fc9&&(this[_0x4b3713(0x1ff)]=getPointResolution(_0x2b0604[_0x4b3713(0x1f4)]()[_0x4b3713(0x20f)](),_0x32680e,_0x5b3fc9)),this[_0x4b3713(0x20b)](_0x14ef5a,_0x2b0604[_0x4b3713(0x1f4)]()[_0x4b3713(0x20f)]()[_0x4b3713(0x1fb)]()),this;}[a82_0x5bb5a6(0x1f7)](_0x4407f1,_0x454094){const _0x2271f3=a82_0x5bb5a6;return this['params'][_0x2271f3(0x1fd)]=[_0x4407f1[_0x2271f3(0x201)](),_0x454094[_0x2271f3(0x201)]()],this;}['run'](){this['request']();}[a82_0x5bb5a6(0x20b)](_0x9561d2,_0x32e623){const _0x570742=a82_0x5bb5a6;var _0x2926eb=new a82_0x5d6ed9();const _0x263f7e=_0x2926eb[_0x570742(0x20c)](_0x9561d2);this[_0x570742(0x1ef)][_0x570742(0x207)]=getEsriSpatialReference(_0x32e623),this[_0x570742(0x1ef)][_0x570742(0x20d)]=_0x263f7e,this[_0x570742(0x1ef)]['geometryType']=this['geojsonTypeToArcGIS'](_0x9561d2[_0x570742(0x1f6)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83_0x2f37f8=a83_0x1675;function a83_0x4bc1(){const _0x12d33a=['geometry','bboxIntersects','1183350ElMEwh','valueOf','status','request','_setGeometryParams','3511688AxqPQW','1=1','one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes','esriSpatialRelOverlaps','returnExtentOnly','layer','getType','intersects','_cleanParams','inSR','returnGeometry','getExtent','time','esriSpatialRelContains','returnZ','geojsonTypeToArcGIS','5734040MuNcSX','/query','params','distinct','push','esriSpatialRelCrosses','198KRPeXZ','returnDistinctValues','join','data','esriSpatialRelIndexIntersects','overlaps','readFeature','within','count','325121GGboIo','abs','125368BMXZss','forEach','112SZaJlQ','outSR','where','features','esriSRUnit_Meter','getTime','returnCountOnly','getSize','simplify','returnIdsOnly','writeGeometryObject','spatialRel','apply','206784TLkkpg','orderByFields','run','between','nearby','3102474komVlK','path','4SaeNDl','distance','length','400','contains','units','No\x20features\x20found','touches','warn','url','esriSpatialRelWithin','maxAllowableOffset','returnM','query','catch','orderBy'];a83_0x4bc1=function(){return _0x12d33a;};return a83_0x4bc1();}(function(_0x592450,_0x481961){const _0x349077=a83_0x1675,_0x3bb7fc=_0x592450();while(!![]){try{const _0x5cc0e7=-parseInt(_0x349077(0x10a))/0x1*(-parseInt(_0x349077(0x122))/0x2)+-parseInt(_0x349077(0x120))/0x3+parseInt(_0x349077(0x139))/0x4+-parseInt(_0x349077(0x134))/0x5+-parseInt(_0x349077(0x11b))/0x6*(parseInt(_0x349077(0x10e))/0x7)+-parseInt(_0x349077(0x10c))/0x8*(-parseInt(_0x349077(0x14f))/0x9)+parseInt(_0x349077(0x149))/0xa;if(_0x5cc0e7===_0x481961)break;else _0x3bb7fc['push'](_0x3bb7fc['shift']());}catch(_0x1c6407){_0x3bb7fc['push'](_0x3bb7fc['shift']());}}}(a83_0x4bc1,0x985ce));import a83_0x14007e from'ol/format/EsriJSON';import a83_0x17068b from'./Task';import{getEsriSpatialReference}from'../../EsriUtil';function a83_0x1675(_0x197e12,_0x5ae139){const _0x4bc159=a83_0x4bc1();return a83_0x1675=function(_0x167583,_0x2377ad){_0x167583=_0x167583-0x105;let _0x271bb8=_0x4bc159[_0x167583];return _0x271bb8;},a83_0x1675(_0x197e12,_0x5ae139);}import{appendPath}from'../../UrlUtil';export default class Query extends a83_0x17068b{constructor(_0x3dcae9,_0x13179c,_0x146293){const _0x339c0a=a83_0x1675;super(_0x3dcae9,_0x13179c,_0x146293),this[_0x339c0a(0x121)]=_0x339c0a(0x12f),this[_0x339c0a(0x14b)]={'returnGeometry':!![],'where':_0x339c0a(0x13a),'outFields':'*','returnZ':![],'returnM':![],'t':new Date()[_0x339c0a(0x113)]()},this[_0x339c0a(0x12b)]=appendPath(this[_0x339c0a(0x12b)],this[_0x339c0a(0x121)]),_0x13179c&&((_0x13179c[_0x339c0a(0x143)]===!![]||_0x13179c[_0x339c0a(0x143)]===![])&&(this[_0x339c0a(0x14b)]['returnGeometry']=_0x13179c[_0x339c0a(0x143)]),_0x13179c[_0x339c0a(0x110)]&&(this[_0x339c0a(0x14b)]['where']=_0x13179c[_0x339c0a(0x110)]),_0x13179c[_0x339c0a(0x10f)]&&(this['params'][_0x339c0a(0x10f)]=getEsriSpatialReference(_0x13179c['outSR'])),(_0x13179c['returnZ']===!![]||_0x13179c[_0x339c0a(0x147)]===![])&&(this[_0x339c0a(0x14b)][_0x339c0a(0x147)]=_0x13179c['returnZ']),(_0x13179c['returnM']===!![]||_0x13179c[_0x339c0a(0x12e)]===![])&&(this['params'][_0x339c0a(0x12e)]=_0x13179c[_0x339c0a(0x12e)]));}[a83_0x2f37f8(0x108)](_0x1b52e5,_0x223884){const _0x528d51=a83_0x2f37f8;return this['_setGeometryParams'](_0x1b52e5,_0x223884),this[_0x528d51(0x14b)][_0x528d51(0x119)]=_0x528d51(0x146),this;}[a83_0x2f37f8(0x140)](_0x3c8b5b,_0x5651c7){const _0x4b6fe4=a83_0x2f37f8;return this['_setGeometryParams'](_0x3c8b5b,_0x5651c7),this[_0x4b6fe4(0x14b)][_0x4b6fe4(0x119)]='esriSpatialRelIntersects',this;}[a83_0x2f37f8(0x126)](_0x617274,_0x288134){const _0x2d3cee=a83_0x2f37f8;return this[_0x2d3cee(0x138)](_0x617274,_0x288134),this['params'][_0x2d3cee(0x119)]=_0x2d3cee(0x12c),this;}['crosses'](_0xd84da2,_0x443580){const _0x53f590=a83_0x2f37f8;return this[_0x53f590(0x138)](_0xd84da2,_0x443580),this[_0x53f590(0x14b)][_0x53f590(0x119)]=_0x53f590(0x14e),this;}[a83_0x2f37f8(0x129)](_0x5c8a99,_0x220e38){const _0xd649f2=a83_0x2f37f8;return this[_0xd649f2(0x138)](_0x5c8a99,_0x220e38),this[_0xd649f2(0x14b)][_0xd649f2(0x119)]='esriSpatialRelTouches',this;}[a83_0x2f37f8(0x106)](_0x190b61,_0xd244a8){const _0x3811ed=a83_0x2f37f8;return this['_setGeometryParams'](_0x190b61,_0xd244a8),this[_0x3811ed(0x14b)]['spatialRel']=_0x3811ed(0x13c),this;}[a83_0x2f37f8(0x133)](_0x41fb6c,_0x56772c){const _0x561457=a83_0x2f37f8;return this[_0x561457(0x138)](_0x41fb6c,_0x56772c),this[_0x561457(0x14b)][_0x561457(0x119)]='esriSpatialRelEnvelopeIntersects',this;}['indexIntersects'](_0x553e53,_0x420328){const _0x3217f3=a83_0x2f37f8;return this[_0x3217f3(0x138)](_0x553e53,_0x420328),this[_0x3217f3(0x14b)][_0x3217f3(0x119)]=_0x3217f3(0x105),this;}[a83_0x2f37f8(0x11f)](_0x4b7737,_0x286dbc,_0x56cae6){const _0x3ead59=a83_0x2f37f8;return this['_setGeometryParams'](_0x4b7737,_0x286dbc),this[_0x3ead59(0x14b)]['spatialRel']='esriSpatialRelIntersects',this[_0x3ead59(0x14b)][_0x3ead59(0x127)]=_0x3ead59(0x112),this['params'][_0x3ead59(0x123)]=_0x56cae6,this;}[a83_0x2f37f8(0x110)](_0x1c85ff){const _0x519606=a83_0x2f37f8;return this[_0x519606(0x14b)]['where']=_0x1c85ff,this;}[a83_0x2f37f8(0x11e)](_0x2f2af4,_0x421f25){const _0x4dac81=a83_0x2f37f8;return this[_0x4dac81(0x14b)][_0x4dac81(0x145)]=[_0x2f2af4['valueOf'](),_0x421f25[_0x4dac81(0x135)]()],this;}[a83_0x2f37f8(0x116)](_0x5b260e,_0x59d51e){const _0x4f23c5=a83_0x2f37f8,_0x2e3dee=_0x5b260e[_0x4f23c5(0x144)]();var _0xf415b1=Math[_0x4f23c5(0x10b)](_0x2e3dee[0x2]-_0x2e3dee[0x0]);const _0xd74de5=_0x5b260e[_0x4f23c5(0x115)]();if(_0xd74de5)return this[_0x4f23c5(0x14b)][_0x4f23c5(0x12d)]=_0xf415b1/_0xd74de5[0x1]*_0x59d51e,this;}[a83_0x2f37f8(0x131)](_0x3d3b2e,_0x5e9ac1){const _0x7712f8=a83_0x2f37f8;return _0x5e9ac1=_0x5e9ac1||'ASC',this[_0x7712f8(0x14b)][_0x7712f8(0x11c)]=this['params']['orderByFields']?this[_0x7712f8(0x14b)][_0x7712f8(0x11c)]+',':'',this[_0x7712f8(0x14b)][_0x7712f8(0x11c)]+=[_0x3d3b2e,_0x5e9ac1][_0x7712f8(0x151)]('\x20'),this;}async[a83_0x2f37f8(0x11d)](){const _0x540eda=a83_0x2f37f8;this[_0x540eda(0x141)]();const _0x37a27e=await this['request']()[_0x540eda(0x130)](_0xa33c46=>{throw new Error(_0xa33c46);});if(_0x37a27e[_0x540eda(0x136)]!==0xc8)throw new Error(_0x540eda(0x128));if(_0x37a27e[_0x540eda(0x152)]&&_0x37a27e[_0x540eda(0x152)][_0x540eda(0x111)]&&_0x37a27e[_0x540eda(0x152)][_0x540eda(0x111)][_0x540eda(0x124)]>0x0){var _0x764b5a=new a83_0x14007e();let _0xdaa2c1=[];return _0x37a27e[_0x540eda(0x152)][_0x540eda(0x111)][_0x540eda(0x10d)](_0x22e9ff=>{const _0xd2e46f=_0x540eda,_0x38c57a=_0x764b5a[_0xd2e46f(0x107)](_0x22e9ff);_0xdaa2c1[_0xd2e46f(0x14d)](_0x38c57a);}),_0xdaa2c1;}return[];}[a83_0x2f37f8(0x109)](){const _0x30641b=a83_0x2f37f8;this[_0x30641b(0x141)](),this[_0x30641b(0x14b)][_0x30641b(0x114)]=!![],this[_0x30641b(0x137)]();}['ids'](){const _0x2f1a64=a83_0x2f37f8;this[_0x2f1a64(0x141)](),this['params'][_0x2f1a64(0x117)]=!![],this[_0x2f1a64(0x137)]();}[a83_0x2f37f8(0x14c)](){const _0x90b284=a83_0x2f37f8;return this['params'][_0x90b284(0x143)]=![],this['params'][_0x90b284(0x150)]=!![],this;}[a83_0x2f37f8(0x13e)](_0x383df5){const _0x26e777=a83_0x2f37f8;return this[_0x26e777(0x121)]=_0x383df5+_0x26e777(0x14a),this;}['_trapSQLerrors'](_0x2fb572){const _0x55bbc5=a83_0x2f37f8;_0x2fb572&&(_0x2fb572['code']===_0x55bbc5(0x125)&&console[_0x55bbc5(0x12a)][_0x55bbc5(0x11a)](_0x55bbc5(0x13b)));}[a83_0x2f37f8(0x141)](){const _0x422816=a83_0x2f37f8;delete this['params']['returnIdsOnly'],delete this['params'][_0x422816(0x13d)],delete this['params'][_0x422816(0x114)];}['_setGeometryParams'](_0x33885b,_0x4f475a){const _0x1b1e48=a83_0x2f37f8;var _0x5c4c57=new a83_0x14007e();const _0x356682=_0x5c4c57[_0x1b1e48(0x118)](_0x33885b);this[_0x1b1e48(0x14b)][_0x1b1e48(0x142)]=getEsriSpatialReference(_0x4f475a),this['params'][_0x1b1e48(0x132)]=_0x356682,this['params']['geometryType']=this[_0x1b1e48(0x148)](_0x33885b[_0x1b1e48(0x13f)]());}}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a84_0x5a2831=a84_0x22aa;function a84_0x22aa(_0x47b7b7,_0x2a4cab){var _0x5a36b2=a84_0x5a36();return a84_0x22aa=function(_0x22aa86,_0x5d2c58){_0x22aa86=_0x22aa86-0x1c1;var _0x3bf717=_0x5a36b2[_0x22aa86];return _0x3bf717;},a84_0x22aa(_0x47b7b7,_0x2a4cab);}(function(_0x34e914,_0x4fbbf3){var _0x1143e9=a84_0x22aa,_0x3202b8=_0x34e914();while(!![]){try{var _0x134237=parseInt(_0x1143e9(0x1ca))/0x1+parseInt(_0x1143e9(0x1de))/0x2+-parseInt(_0x1143e9(0x1c5))/0x3+-parseInt(_0x1143e9(0x1c7))/0x4*(-parseInt(_0x1143e9(0x1d5))/0x5)+parseInt(_0x1143e9(0x1d8))/0x6*(-parseInt(_0x1143e9(0x1dd))/0x7)+-parseInt(_0x1143e9(0x1d9))/0x8+parseInt(_0x1143e9(0x1e4))/0x9*(parseInt(_0x1143e9(0x1e5))/0xa);if(_0x134237===_0x4fbbf3)break;else _0x3202b8['push'](_0x3202b8['shift']());}catch(_0x3bfb52){_0x3202b8['push'](_0x3202b8['shift']());}}}(a84_0x5a36,0x90582));import a84_0x2bf05a from'../../AxiosUtil';import{jsonp,stringify}from'../../AxiosUtil';export default class Task{constructor(_0x3344a8,_0x4b72e1,_0x21bf0f){var _0x4409f9=a84_0x22aa;this[_0x4409f9(0x1cc)]=_0x3344a8,this[_0x4409f9(0x1d4)]=_0x4b72e1||{},this['method']=!_0x21bf0f?_0x4409f9(0x1dc):_0x21bf0f;}[a84_0x5a2831(0x1ce)](_0x48dbab){var _0x4aa34e=a84_0x5a2831,_0x430b61;switch(_0x48dbab){case _0x4aa34e(0x1df):_0x430b61=_0x4aa34e(0x1d7);break;case _0x4aa34e(0x1db):_0x430b61=_0x4aa34e(0x1e6);break;case _0x4aa34e(0x1da):_0x430b61=_0x4aa34e(0x1cb);break;case'MultiLineString':_0x430b61='esriGeometryPolyline';break;case _0x4aa34e(0x1d6):_0x430b61=_0x4aa34e(0x1d3);break;case _0x4aa34e(0x1c9):_0x430b61=_0x4aa34e(0x1d3);break;}return _0x430b61;}['isArcgisOnline'](_0x62411b){var _0x4c91c2=a84_0x5a2831;return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i[_0x4c91c2(0x1c3)](_0x62411b);}[a84_0x5a2831(0x1d0)](_0x20a066){var _0x5e1e7e=a84_0x5a2831,_0x4938fa='';_0x20a066['f']=_0x20a066['f']||_0x5e1e7e(0x1c6);for(var _0x3d9603 in _0x20a066){if(Object[_0x5e1e7e(0x1e8)][_0x5e1e7e(0x1c1)][_0x5e1e7e(0x1d1)](_0x20a066,_0x3d9603)){var _0x4937ac=_0x20a066[_0x3d9603],_0x1ecb2e=Object[_0x5e1e7e(0x1e8)][_0x5e1e7e(0x1cd)][_0x5e1e7e(0x1d1)](_0x4937ac),_0x9f355f;_0x4938fa[_0x5e1e7e(0x1e2)]&&(_0x4938fa+='&');if(_0x1ecb2e===_0x5e1e7e(0x1c2))_0x9f355f=Object[_0x5e1e7e(0x1e8)][_0x5e1e7e(0x1cd)][_0x5e1e7e(0x1d1)](_0x4937ac[0x0])===_0x5e1e7e(0x1e7)?JSON[_0x5e1e7e(0x1cf)](_0x4937ac):_0x4937ac[_0x5e1e7e(0x1e0)](',');else{if(_0x1ecb2e===_0x5e1e7e(0x1e7))_0x9f355f=JSON[_0x5e1e7e(0x1cf)](_0x4937ac);else _0x1ecb2e==='[object\x20Date]'?_0x9f355f=_0x4937ac['valueOf']():_0x9f355f=_0x4937ac;}_0x4938fa+=encodeURIComponent(_0x3d9603)+'='+encodeURIComponent(_0x9f355f);}}return _0x4938fa;}[a84_0x5a2831(0x1e3)](_0x1c809a){var _0x507a66=a84_0x5a2831;return this[_0x507a66(0x1d4)][_0x507a66(0x1c4)]=!_0x1c809a,this;}async['request'](){var _0x489193=a84_0x5a2831,_0x25c09f=this['serialize'](this[_0x489193(0x1d4)]);const _0x46c46f=this[_0x489193(0x1cc)][_0x489193(0x1c8)]('?')>-0x1?this['url']+'&'+_0x25c09f:this[_0x489193(0x1cc)]+'?'+_0x25c09f;if(this[_0x489193(0x1d2)]===_0x489193(0x1dc))return a84_0x2bf05a[_0x489193(0x1e1)](_0x46c46f);else{if(this[_0x489193(0x1d2)]==='JSONP')return jsonp(_0x46c46f);else{const _0x899e45=stringify(this[_0x489193(0x1d4)]);return a84_0x2bf05a['post'](this[_0x489193(0x1cc)],_0x899e45);}}}}function a84_0x5a36(){var _0x18beb6=['toString','geojsonTypeToArcGIS','stringify','serialize','call','method','esriGeometryPolygon','params','3115YyeVet','Polygon','esriGeometryPoint','384uqgYgs','1727560HSTSgv','LineString','MultiPoint','GET','49861LCTXWj','196370jiwsFq','Point','join','get','length','format','9oppYce','1707820aqgVGf','esriGeometryMultipoint','[object\x20Object]','prototype','hasOwnProperty','[object\x20Array]','test','returnUnformattedValues','1010325lcWjEr','json','4036SUgLvN','indexOf','MultiPolygon','702252quObMK','esriGeometryPolyline','url'];a84_0x5a36=function(){return _0x18beb6;};return a84_0x5a36();}
|