ym-gis-2d 1.0.11 → 1.0.12
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/main.css +12 -0
- 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/style.css +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +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/UrlUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2225a7,_0x1414cb){const _0x3a6665=a88_0x128e,_0x24d0aa=_0x2225a7();while(!![]){try{const _0x23d9d6=-parseInt(_0x3a6665(0x1f3))/0x1*(parseInt(_0x3a6665(0x1f9))/0x2)+-parseInt(_0x3a6665(0x1f4))/0x3+parseInt(_0x3a6665(0x1f1))/0x4*(parseInt(_0x3a6665(0x1e1))/0x5)+parseInt(_0x3a6665(0x1f5))/0x6*(parseInt(_0x3a6665(0x1de))/0x7)+-parseInt(_0x3a6665(0x1e7))/0x8+-parseInt(_0x3a6665(0x1e3))/0x9*(-parseInt(_0x3a6665(0x1f7))/0xa)+parseInt(_0x3a6665(0x1f6))/0xb*(-parseInt(_0x3a6665(0x1e0))/0xc);if(_0x23d9d6===_0x1414cb)break;else _0x24d0aa['push'](_0x24d0aa['shift']());}catch(_0x570ee8){_0x24d0aa['push'](_0x24d0aa['shift']());}}}(a88_0x5266,0x3669c));export function addArgument(_0x371101,_0xf91709,_0x146444){const _0x437268=a88_0x128e,_0x2413fb=new RegExp(_0x437268(0x1e2)+_0xf91709+'=)([^&]*)','gi');if(_0x371101[_0x437268(0x1e8)](_0x2413fb))_0x371101=_0x371101[_0x437268(0x1e6)](_0x2413fb,_0x527aa0=>_0x527aa0[0x0]+_0xf91709+'='+_0x146444);else{var _0x3f40e9=_0xf91709+'='+_0x146444,_0x567eea=_0x371101[_0x437268(0x1df)]('?');let _0x4b3868=_0x371101;_0x567eea>-0x1&&_0x371101[_0x437268(0x1df)](_0x437268(0x1ea))>-0x1&&(_0x4b3868=_0x371101['substring'](_0x567eea+0x1),_0x567eea=_0x4b3868[_0x437268(0x1df)]('?'));if(_0x567eea<0x0)_0x371101+='?';else _0x567eea>=0x0&&_0x567eea!==_0x4b3868[_0x437268(0x1e4)]-0x1&&(_0x371101+='&');_0x371101=_0x371101+_0x3f40e9;}return _0x371101;}export function appendParam(_0x229f55,_0x1729f7){const _0x9818f4=a88_0x128e;var _0x452c86=_0x229f55[_0x9818f4(0x1df)]('?');let _0x40fb35=_0x229f55;if(_0x452c86>-0x1&&_0x229f55['indexOf'](_0x9818f4(0x1ea))>-0x1){let _0x5d17be=_0x452c86+0x1;_0x40fb35=_0x229f55[_0x9818f4(0x1e5)](_0x452c86+0x1),_0x452c86=_0x40fb35[_0x9818f4(0x1df)]('?');}return _0x452c86>-0x1?_0x229f55+'&'+_0x1729f7:_0x229f55+'?'+_0x1729f7;}export function appendPath(_0x11e485,_0x1943a8){const _0xdaccba=a88_0x128e;var _0x92aaff=_0x11e485[_0xdaccba(0x1df)]('?');let _0x3b2bdb=_0x11e485;if(_0x92aaff>-0x1&&_0x11e485['indexOf'](_0xdaccba(0x1ea))>-0x1){let _0x1dfa94=_0x92aaff+0x1;_0x3b2bdb=_0x11e485['substring'](_0x92aaff+0x1),_0x92aaff=_0x3b2bdb[_0xdaccba(0x1df)]('?'),_0x92aaff>-0x1&&(_0x92aaff+=_0x1dfa94);}return _0x92aaff>-0x1?_0x11e485['substring'](0x0,_0x92aaff)+'/'+_0x1943a8+_0x11e485[_0xdaccba(0x1e5)](_0x92aaff):_0x11e485+'/'+_0x1943a8;}function a88_0x128e(_0x20a20d,_0x4e1519){const _0x5266c7=a88_0x5266();return a88_0x128e=function(_0x128e73,_0x2485f3){_0x128e73=_0x128e73-0x1de;let _0x49a48e=_0x5266c7[_0x128e73];return _0x49a48e;},a88_0x128e(_0x20a20d,_0x4e1519);}export function getUrlParams(_0xf4b89c){const _0x61d3d9=a88_0x128e;var _0x754daa,_0x5b4ccc;let _0x220855=_0xf4b89c[_0x61d3d9(0x1df)](_0x61d3d9(0x1ea)),_0x69ebef;_0x220855>-0x1?_0xf4b89c[_0x61d3d9(0x1df)]('?',_0x220855+0x3)>-0x1&&(_0x69ebef=(_0x754daa=_0xf4b89c[_0x61d3d9(0x1ed)]('?'))===null||_0x754daa===void 0x0?void 0x0:_0x754daa[0x2]):_0xf4b89c[_0x61d3d9(0x1df)]('?')>-0x1&&(_0x69ebef=(_0x5b4ccc=_0xf4b89c[_0x61d3d9(0x1ed)]('?'))===null||_0x5b4ccc===void 0x0?void 0x0:_0x5b4ccc[0x1]);if(_0x69ebef)return createParamByQuery(_0x69ebef);return[];}function createParamByQuery(_0x20b1a5){const _0x2c84f0=a88_0x128e;let _0x22344f=_0x20b1a5['split']('&');return _0x22344f[_0x2c84f0(0x1f8)](_0x3947fd=>{const _0x22d10a=_0x2c84f0;var _0x402dd7=_0x3947fd[_0x22d10a(0x1ed)]('=');return{'name':_0x402dd7[0x0],'value':_0x402dd7[0x1]};});}export function parseImage(_0xcae08,_0x1cc97f){let _0x48802f='';if(_0xcae08){if(_0xcae08['match'](/^(data|http|https)/))_0x48802f=_0xcae08;else{if(_0xcae08['match'](/Assets/))_0x48802f=_0xcae08;else{}}}return _0x48802f;}function a88_0x5266(){const _0x2cdf0d=['click','213140SNbncz','appendChild','1DkLXzK','224421azerZM','18lFsldo','429wdjseE','869620pLKdrN','map','492696uOBhXo','target','950719nYZbRL','indexOf','21132StqqOL','5YqYHdO','[\x5c?&](','27reUuCl','length','substring','replace','871296JuKMrU','match','revokeObjectURL','?http','_blank','createElement','split','body','setAttribute'];a88_0x5266=function(){return _0x2cdf0d;};return a88_0x5266();}export function downloadBlob(_0x50bddf,_0x3b4736){const _0x58db1d=a88_0x128e,_0x2973b2=URL['createObjectURL'](_0x50bddf);var _0x285422=document[_0x58db1d(0x1ec)]('a');_0x285422[_0x58db1d(0x1ef)]('href',_0x2973b2),_0x285422[_0x58db1d(0x1ef)](_0x58db1d(0x1fa),_0x58db1d(0x1eb)),_0x285422['setAttribute']('download',_0x3b4736),document[_0x58db1d(0x1ee)][_0x58db1d(0x1f2)](_0x285422),_0x285422[_0x58db1d(0x1f0)](),document[_0x58db1d(0x1ee)]['removeChild'](_0x285422),URL[_0x58db1d(0x1e9)](_0x2973b2);}
|
package/utils/XmlUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a89_0x4cfd(_0x21a534,_0x1214b4){const _0x276548=a89_0x2765();return a89_0x4cfd=function(_0x4cfdc0,_0x1aa7dc){_0x4cfdc0=_0x4cfdc0-0xe0;let _0x247c77=_0x276548[_0x4cfdc0];return _0x247c77;},a89_0x4cfd(_0x21a534,_0x1214b4);}(function(_0x344c11,_0x5472b0){const _0x38e203=a89_0x4cfd,_0x1c36b0=_0x344c11();while(!![]){try{const _0x46b89d=parseInt(_0x38e203(0xe5))/0x1*(parseInt(_0x38e203(0xe9))/0x2)+parseInt(_0x38e203(0xea))/0x3*(-parseInt(_0x38e203(0xef))/0x4)+parseInt(_0x38e203(0xe2))/0x5+parseInt(_0x38e203(0xe1))/0x6+parseInt(_0x38e203(0xe8))/0x7*(-parseInt(_0x38e203(0xeb))/0x8)+parseInt(_0x38e203(0xee))/0x9*(-parseInt(_0x38e203(0xf0))/0xa)+-parseInt(_0x38e203(0xed))/0xb;if(_0x46b89d===_0x5472b0)break;else _0x1c36b0['push'](_0x1c36b0['shift']());}catch(_0x3ab1e3){_0x1c36b0['push'](_0x1c36b0['shift']());}}}(a89_0x2765,0x5ea98));export function readXml(_0x178d0f){const _0x5af79a=a89_0x4cfd;let _0x246006;return window[_0x5af79a(0xe4)]?_0x246006=new DOMParser()[_0x5af79a(0xe6)](_0x178d0f,'text/xml'):(_0x246006=new ActiveXObject(_0x5af79a(0xec)),_0x246006[_0x5af79a(0xe0)]=_0x5af79a(0xe3),_0x246006[_0x5af79a(0xe7)](_0x178d0f)),_0x246006;}function a89_0x2765(){const _0x3135ca=['270044snCRlw','6UnYQdc','392JZGSjv','Microsoft.XMLDOM','227469HJSTWg','9awIJTH','252652ByzMkj','4831940MladWa','async','2147844TRurBc','2804635BCYxaA','false','DOMParser','2LxPNDu','parseFromString','loadXML','24430bzzfSx'];a89_0x2765=function(){return _0x3135ca;};return a89_0x2765();}
|
package/utils/format/CQL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a70_0x10524b=a70_0x1a4c;(function(_0x1380ba,_0x3d6b91){const _0x75991e=a70_0x1a4c,_0x9abcd3=_0x1380ba();while(!![]){try{const _0x46e88b=parseInt(_0x75991e(0x249))/0x1*(-parseInt(_0x75991e(0x240))/0x2)+-parseInt(_0x75991e(0x1fa))/0x3*(parseInt(_0x75991e(0x235))/0x4)+parseInt(_0x75991e(0x200))/0x5*(parseInt(_0x75991e(0x20d))/0x6)+-parseInt(_0x75991e(0x228))/0x7*(-parseInt(_0x75991e(0x234))/0x8)+parseInt(_0x75991e(0x232))/0x9+-parseInt(_0x75991e(0x239))/0xa+-parseInt(_0x75991e(0x251))/0xb;if(_0x46e88b===_0x3d6b91)break;else _0x9abcd3['push'](_0x9abcd3['shift']());}catch(_0x3809ed){_0x9abcd3['push'](_0x9abcd3['shift']());}}}(a70_0x3081,0x706d7));function a70_0x1a4c(_0x38358b,_0xfec062){const _0x3081aa=a70_0x3081();return a70_0x1a4c=function(_0x1a4c9b,_0x29f55c){_0x1a4c9b=_0x1a4c9b-0x1eb;let _0x46bbbe=_0x3081aa[_0x1a4c9b];return _0x46bbbe;},a70_0x1a4c(_0x38358b,_0xfec062);}import*as a70_0x4a2088 from'ol/format/filter';function a70_0x3081(){const _0x2f152b=['inPatterns','replaceAll','geometry','indexOf','between','extent','lessThan','readGeometry','warn','COMMA','PropertyIsNull','WITHIN(','Unknown\x20token\x20type\x20','within','substring','72492lDOJmC','greaterThan','precedence','LIKE','PROPERTY','ERROR:\x20In\x20parsing:\x20[','5ORrbZr','LPAREN','logicals','CONTAINS','PropertyIsLessThan','Contains','upperBoundary','replace','pop','parseInToOr','\x20AND\x20','PropertyIsEqualTo','RPAREN','1332246jyrKaf','tokens','string','operators','COMPARISON','VALUE','lessThanOrEqualTo','write','contains','nextToken','IS_NULL','PropertyIsGreaterThanOrEqualTo','operatorReverse','lastIndexOf','LOGICAL','propertyName','toUpperCase','Intersects','NOT\x20(','bbox','buildAst','type','tagName_','PropertyIsLike','text','patterns','And','49399QHjpdo','geometryName','BBOX','isNull','property','like','],\x20expected\x20one\x20of:\x20','GEOMETRY','\x20BETWEEN\x20','length','7591446DmIjiQ','Can\x27t\x20encode:\x20','944lNVNVc','144GNwHTH','follows','PropertyIsLessThanOrEqualTo','PropertyIsGreaterThan','4987620wbUJdC','tryToken','剩余的节点无法解析:\x20\x0a','PropertyIsBetween','BETWEEN','split','PropertyIsNotEqualTo','1576dvlGJI','END','exec','not','notEqualTo','WITHIN','match','\x0a\x20\x20\x20\x20','\x20or\x20','73UQdkTk','greaterThanOrEqualTo','writeGeometry','SPATIAL','push','conditions','No\x20follows\x20list\x20for\x20','equalTo','127248giaaqF','NOT','srsName','index','CONTAINS(','tokenize','lowerBoundary'];a70_0x3081=function(){return _0x2f152b;};return a70_0x3081();}import{WKT}from'ol/format';import a70_0x1d8bc9 from'ol/geom/Geometry';export default class CQL{constructor(){const _0xee6947=a70_0x1a4c;this[_0xee6947(0x1eb)]=/ (IN) /i,this[_0xee6947(0x20e)]=[_0xee6947(0x1fe),_0xee6947(0x211),_0xee6947(0x212),_0xee6947(0x21b)],this[_0xee6947(0x226)]={'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(_0xa930ff){const _0x479fc6=_0xee6947;let _0x5083c0=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/[_0x479fc6(0x242)](_0xa930ff);if(_0x5083c0){let _0x4befb0=_0xa930ff[_0x479fc6(0x231)],_0x3732d6=_0xa930ff[_0x479fc6(0x1ee)]('(',_0x5083c0[0x0][_0x479fc6(0x231)]);if(_0x3732d6>-0x1){let _0x2a31=0x1;while(_0x3732d6<_0x4befb0&&_0x2a31>0x0){_0x3732d6++;switch(_0xa930ff['charAt'](_0x3732d6)){case'(':_0x2a31++;break;case')':_0x2a31--;break;default:}}}return[_0xa930ff[_0x479fc6(0x1f9)](0x0,_0x3732d6+0x1)];}},'END':/^$/},this[_0xee6947(0x236)]={'LPAREN':[_0xee6947(0x22f),_0xee6947(0x24c),_0xee6947(0x1fe),_0xee6947(0x212),_0xee6947(0x201)],'RPAREN':[_0xee6947(0x252),_0xee6947(0x21b),_0xee6947(0x241),_0xee6947(0x20c)],'PROPERTY':[_0xee6947(0x211),_0xee6947(0x23d),_0xee6947(0x1f4),_0xee6947(0x217)],'BETWEEN':[_0xee6947(0x212)],'IS_NULL':[_0xee6947(0x241)],'COMPARISON':[_0xee6947(0x212)],'COMMA':[_0xee6947(0x22f),_0xee6947(0x212),_0xee6947(0x1fe)],'VALUE':[_0xee6947(0x21b),_0xee6947(0x1f4),_0xee6947(0x20c),_0xee6947(0x241)],'SPATIAL':['LPAREN'],'LOGICAL':['NOT',_0xee6947(0x212),'SPATIAL',_0xee6947(0x1fe),_0xee6947(0x201)],'NOT':[_0xee6947(0x1fe),_0xee6947(0x201)],'GEOMETRY':[_0xee6947(0x1f4),'RPAREN']},this[_0xee6947(0x210)]={'=':a70_0x4a2088[_0xee6947(0x250)],'<>':a70_0x4a2088[_0xee6947(0x244)],'<':a70_0x4a2088[_0xee6947(0x1f1)],'<=':a70_0x4a2088[_0xee6947(0x213)],'>':a70_0x4a2088[_0xee6947(0x1fb)],'>=':a70_0x4a2088[_0xee6947(0x24a)],'LIKE':a70_0x4a2088[_0xee6947(0x22d)],'BETWEEN':a70_0x4a2088[_0xee6947(0x1ef)],'IS\x20NULL':a70_0x4a2088[_0xee6947(0x22b)]},this[_0xee6947(0x219)]={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':_0xee6947(0x1fd),'PropertyIsNull':'IS\x20NULL','PropertyIsBetween':_0xee6947(0x23d)},this['logicals']={'AND':a70_0x4a2088['and'],'OR':a70_0x4a2088['or']},this[_0xee6947(0x1fc)]={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}[a70_0x10524b(0x23a)](_0x460e03,_0x191399){const _0x35bb06=a70_0x10524b;return _0x191399 instanceof RegExp?_0x191399[_0x35bb06(0x242)](_0x460e03):_0x191399(_0x460e03);}[a70_0x10524b(0x216)](_0x20bf6e,_0x22f905){const _0x5a8e32=a70_0x10524b;let _0x52b5e5,_0x2605d5,_0xed6087=_0x22f905[_0x5a8e32(0x231)];for(_0x52b5e5=0x0;_0x52b5e5<_0xed6087;_0x52b5e5++){_0x2605d5=_0x22f905[_0x52b5e5];let _0x45c869=this[_0x5a8e32(0x226)][_0x2605d5],_0x57431a=this[_0x5a8e32(0x23a)](_0x20bf6e,_0x45c869);if(_0x57431a){let _0x5911e3=_0x57431a[0x0],_0x386b69=_0x20bf6e[_0x5a8e32(0x1f9)](_0x5911e3[_0x5a8e32(0x231)])[_0x5a8e32(0x207)](/^\s*/,'');return{'type':_0x2605d5,'text':_0x5911e3,'remainder':_0x386b69};}}let _0x227f53=_0x5a8e32(0x1ff)+_0x20bf6e+_0x5a8e32(0x22e);for(_0x52b5e5=0x0;_0x52b5e5<_0xed6087;_0x52b5e5++){_0x2605d5=_0x22f905[_0x52b5e5],_0x227f53+=_0x5a8e32(0x247)+_0x2605d5+':\x20'+this[_0x5a8e32(0x226)][_0x2605d5];}throw new Error(_0x227f53);}[a70_0x10524b(0x256)](_0x510d4f){const _0x4181d3=a70_0x10524b;_0x510d4f=_0x510d4f['replaceAll']('[','')['replaceAll'](']','');let _0x551eca=this[_0x4181d3(0x23a)](_0x510d4f,this[_0x4181d3(0x1eb)]);_0x551eca&&(_0x510d4f=this[_0x4181d3(0x209)](_0x510d4f,_0x551eca));let _0xd29c2a=[],_0x1fcba6,_0x52abc5=[_0x4181d3(0x252),'GEOMETRY',_0x4181d3(0x24c),_0x4181d3(0x1fe),_0x4181d3(0x201)];do{_0x1fcba6=this['nextToken'](_0x510d4f,_0x52abc5),_0x510d4f=_0x1fcba6['remainder'],_0x52abc5=this['follows'][_0x1fcba6['type']];if(_0x1fcba6[_0x4181d3(0x222)]!==_0x4181d3(0x241)&&!_0x52abc5)throw new Error(_0x4181d3(0x24f)+_0x1fcba6['type']);_0xd29c2a['push'](_0x1fcba6);}while(_0x1fcba6[_0x4181d3(0x222)]!==_0x4181d3(0x241));return _0xd29c2a;}[a70_0x10524b(0x209)](_0x875e30,_0x2bd9b4){const _0x21565a=a70_0x10524b;let _0x13b90c=this[_0x21565a(0x23a)](_0x875e30,/\((.+?)\)/g);if(_0x13b90c){let _0x5c7348=_0x875e30[_0x21565a(0x1f9)](0x0,_0x2bd9b4[_0x21565a(0x254)]),_0x5f3e5e=_0x13b90c[0x1],_0x5e68d6=_0x5f3e5e[_0x21565a(0x1ec)]('\x20','')[_0x21565a(0x23e)](','),_0x1fd0c6='',_0x185a26='';if(_0x5c7348[_0x21565a(0x1ee)]('\x20')>-0x1){let _0x4974b4=_0x5c7348[_0x21565a(0x21a)]('\x20');_0x185a26=_0x5c7348[_0x21565a(0x1f9)](0x0,_0x4974b4+0x1),_0x1fd0c6=_0x5c7348[_0x21565a(0x1f9)](_0x4974b4+0x1,_0x5c7348[_0x21565a(0x231)]);}else _0x1fd0c6=_0x5c7348;let _0x2cf0c4=_0x185a26;for(let _0x3fbacd=0x0;_0x3fbacd<_0x5e68d6[_0x21565a(0x231)];_0x3fbacd++){let _0x3a5d14=_0x5e68d6[_0x3fbacd];_0x2cf0c4+=_0x1fd0c6+'='+_0x3a5d14,_0x3fbacd<_0x5e68d6['length']-0x1&&(_0x2cf0c4+=_0x21565a(0x248));}return _0x2cf0c4;}return _0x875e30;}[a70_0x10524b(0x221)](_0x3a6dbb){const _0x2a85e1=a70_0x10524b;let _0x174554=this,_0x24e6b3=[],_0x45c8a4=[];while(_0x3a6dbb['length']){let _0x165842=_0x3a6dbb['shift']();switch(_0x165842['type']){case'PROPERTY':case _0x2a85e1(0x22f):case _0x2a85e1(0x212):_0x45c8a4[_0x2a85e1(0x24d)](_0x165842);break;case'COMPARISON':case'BETWEEN':case _0x2a85e1(0x217):case _0x2a85e1(0x21b):{let _0x3c9021=this['precedence'][_0x165842[_0x2a85e1(0x222)]];while(_0x24e6b3['length']>0x0&&this['precedence'][_0x24e6b3[_0x24e6b3['length']-0x1][_0x2a85e1(0x222)]]<=_0x3c9021){_0x45c8a4['push'](_0x24e6b3[_0x2a85e1(0x208)]());}_0x24e6b3[_0x2a85e1(0x24d)](_0x165842);break;}case'SPATIAL':case _0x2a85e1(0x252):case _0x2a85e1(0x201):_0x24e6b3[_0x2a85e1(0x24d)](_0x165842);break;case _0x2a85e1(0x20c):while(_0x24e6b3[_0x2a85e1(0x231)]>0x0&&_0x24e6b3[_0x24e6b3[_0x2a85e1(0x231)]-0x1][_0x2a85e1(0x222)]!==_0x2a85e1(0x201)){_0x45c8a4['push'](_0x24e6b3[_0x2a85e1(0x208)]());}_0x24e6b3['pop']();_0x24e6b3['length']>0x0&&(_0x24e6b3[_0x24e6b3[_0x2a85e1(0x231)]-0x1][_0x2a85e1(0x222)]==='SPATIAL'||_0x24e6b3[_0x24e6b3['length']-0x1][_0x2a85e1(0x222)]===_0x2a85e1(0x252))&&_0x45c8a4[_0x2a85e1(0x24d)](_0x24e6b3['pop']());break;case _0x2a85e1(0x1f4):case'END':break;default:throw new Error(_0x2a85e1(0x1f7)+_0x165842[_0x2a85e1(0x222)]);}}while(_0x24e6b3[_0x2a85e1(0x231)]>0x0){_0x45c8a4[_0x2a85e1(0x24d)](_0x24e6b3[_0x2a85e1(0x208)]());}function _0x2b347a(){const _0x473839=_0x2a85e1;let _0x140b7c,_0x66dc90,_0x589f77=_0x45c8a4['pop']();switch(_0x589f77[_0x473839(0x222)]){case'LOGICAL':{let _0xcf1cf0=_0x2b347a(),_0x156d63=_0x2b347a();return new _0x174554[(_0x473839(0x202))][(_0x589f77[_0x473839(0x225)][_0x473839(0x21d)]())](_0x156d63,_0xcf1cf0);}case _0x473839(0x252):{let _0xf8e6e4=_0x2b347a();return a70_0x4a2088[_0x473839(0x243)](_0xf8e6e4);}case'BETWEEN':{let _0x5ba92c,_0x4adde2;return _0x45c8a4[_0x473839(0x208)](),_0x4adde2=_0x2b347a(),_0x5ba92c=_0x2b347a(),_0x66dc90=_0x2b347a(),a70_0x4a2088[_0x473839(0x1ef)](_0x66dc90,_0x5ba92c,_0x4adde2);}case _0x473839(0x211):{return _0x140b7c=_0x2b347a(),_0x66dc90=_0x2b347a(),new _0x174554[(_0x473839(0x210))][(_0x589f77[_0x473839(0x225)][_0x473839(0x21d)]())](_0x66dc90,_0x140b7c);}case _0x473839(0x217):_0x66dc90=_0x2b347a();return new _0x174554[(_0x473839(0x210))][(_0x589f77[_0x473839(0x225)][_0x473839(0x21d)]())](_0x66dc90);case _0x473839(0x212):{let _0x46417d=_0x589f77[_0x473839(0x225)][_0x473839(0x246)](/^'(.*)'$/);return _0x46417d?_0x46417d[0x1][_0x473839(0x207)](/''/g,'\x27'):Number(_0x589f77[_0x473839(0x225)]);}case _0x473839(0x24c):switch(_0x589f77[_0x473839(0x225)]['toUpperCase']()){case _0x473839(0x22a):{let _0xbce608=_0x2b347a(),_0x4edeea=_0x2b347a(),_0x5ee6d2=_0x2b347a(),_0x354e46=_0x2b347a(),_0x2ee310=_0x2b347a();return a70_0x4a2088[_0x473839(0x220)](_0x2ee310,[_0x354e46,_0x5ee6d2,_0x4edeea,_0xbce608]);}case'INTERSECTS':_0x140b7c=_0x2b347a(),_0x66dc90=_0x2b347a();return a70_0x4a2088['intersects'](_0x66dc90,_0x140b7c);case _0x473839(0x245):_0x140b7c=_0x2b347a(),_0x66dc90=_0x2b347a();return a70_0x4a2088[_0x473839(0x1f8)](_0x66dc90,_0x140b7c);case _0x473839(0x203):_0x140b7c=_0x2b347a(),_0x66dc90=_0x2b347a();return a70_0x4a2088[_0x473839(0x215)](_0x66dc90,_0x140b7c);}break;case _0x473839(0x22f):return new WKT()[_0x473839(0x1f2)](_0x589f77[_0x473839(0x225)],{});default:return _0x589f77[_0x473839(0x225)];}}let _0x1bfb05=_0x2b347a();if(_0x45c8a4[_0x2a85e1(0x231)]>0x0){let _0x5c0643=_0x2a85e1(0x23b);for(let _0x2ef937=_0x45c8a4['length']-0x1;_0x2ef937>=0x0;_0x2ef937--){_0x5c0643+=_0x45c8a4[_0x2ef937][_0x2a85e1(0x222)]+':\x20'+_0x45c8a4[_0x2ef937][_0x2a85e1(0x225)]+'\x0a';}throw new Error(_0x5c0643);}return _0x1bfb05;}['read'](_0x30f965){const _0x178460=a70_0x10524b;try{return this['buildAst'](this[_0x178460(0x256)](_0x30f965));}catch(_0x329417){console[_0x178460(0x1f3)]('CQL解析失败:'+_0x30f965),console[_0x178460(0x1f3)](_0x329417);}}[a70_0x10524b(0x214)](_0x202813){const _0xe8f20d=a70_0x10524b;switch(_0x202813['tagName_']){case _0xe8f20d(0x22a):return'BBOX('+_0x202813[_0xe8f20d(0x229)]+','+_0x202813[_0xe8f20d(0x1f0)]['join'](',')+','+_0x202813[_0xe8f20d(0x253)]+')';case'Within':return _0xe8f20d(0x1f6)+_0x202813[_0xe8f20d(0x229)]+',\x20'+this[_0xe8f20d(0x1f2)](_0x202813[_0xe8f20d(0x1ed)])+')';case _0xe8f20d(0x21e):return'INTERSECTS('+_0x202813[_0xe8f20d(0x229)]+',\x20'+this['readGeometry'](_0x202813[_0xe8f20d(0x1ed)])+')';case _0xe8f20d(0x205):return _0xe8f20d(0x255)+_0x202813[_0xe8f20d(0x229)]+',\x20'+this['readGeometry'](_0x202813['geometry'])+')';case'Not':return _0xe8f20d(0x21f)+this[_0xe8f20d(0x214)](_0x202813['condition'])+')';case _0xe8f20d(0x227):case'Or':{let _0x24a5a9='(',_0x2700bf=!![];for(let _0xc6fd1b=0x0;_0xc6fd1b<_0x202813['conditions'][_0xe8f20d(0x231)];_0xc6fd1b++){_0x2700bf?_0x2700bf=![]:_0x24a5a9+=')\x20'+_0x202813[_0xe8f20d(0x223)]['toLowerCase']()+'\x20(',_0x24a5a9+=this[_0xe8f20d(0x214)](_0x202813[_0xe8f20d(0x24e)][_0xc6fd1b]);}return _0x24a5a9+')';}case _0xe8f20d(0x23c):return _0x202813[_0xe8f20d(0x22c)]+_0xe8f20d(0x230)+this['write'](_0x202813[_0xe8f20d(0x257)])+_0xe8f20d(0x20a)+this[_0xe8f20d(0x214)](_0x202813[_0xe8f20d(0x206)]);case _0xe8f20d(0x20b):case _0xe8f20d(0x23f):case _0xe8f20d(0x204):case _0xe8f20d(0x237):case _0xe8f20d(0x238):case _0xe8f20d(0x218):case _0xe8f20d(0x224):case _0xe8f20d(0x1f5):{return _0x202813['expression']!==null?_0x202813[_0xe8f20d(0x21c)]+'\x20'+this[_0xe8f20d(0x219)][_0x202813[_0xe8f20d(0x223)]]+'\x20'+this[_0xe8f20d(0x214)](_0x202813['expression']):_0x202813[_0xe8f20d(0x21c)]+'\x20'+this['operatorReverse'][_0x202813['tagName_']];}case undefined:if(typeof _0x202813===_0xe8f20d(0x20f))return'\x27'+_0x202813[_0xe8f20d(0x207)](/'/g,'\x27\x27')+'\x27';else{if(typeof _0x202813==='number')return String(_0x202813);}break;default:throw new Error(_0xe8f20d(0x233)+_0x202813['CLASS_NAME']+'\x20'+_0x202813);}}[a70_0x10524b(0x1f2)](_0x10ae81){const _0x5a6d02=a70_0x10524b;if(_0x10ae81 instanceof a70_0x1d8bc9)return new WKT()[_0x5a6d02(0x24b)](_0x10ae81);}}
|
|
1
|
+
const a70_0x1048b6=a70_0x5594;(function(_0x59cbb6,_0x1dd3f1){const _0x48096b=a70_0x5594,_0x13a78a=_0x59cbb6();while(!![]){try{const _0x5155cf=-parseInt(_0x48096b(0x1e8))/0x1+parseInt(_0x48096b(0x1c5))/0x2+-parseInt(_0x48096b(0x1b6))/0x3*(-parseInt(_0x48096b(0x1b9))/0x4)+-parseInt(_0x48096b(0x1bb))/0x5*(-parseInt(_0x48096b(0x1e0))/0x6)+parseInt(_0x48096b(0x199))/0x7*(parseInt(_0x48096b(0x1d9))/0x8)+-parseInt(_0x48096b(0x1e4))/0x9*(parseInt(_0x48096b(0x1ba))/0xa)+parseInt(_0x48096b(0x1ee))/0xb*(-parseInt(_0x48096b(0x1e3))/0xc);if(_0x5155cf===_0x1dd3f1)break;else _0x13a78a['push'](_0x13a78a['shift']());}catch(_0x29b76b){_0x13a78a['push'](_0x13a78a['shift']());}}}(a70_0x2371,0xa1ed3));import*as a70_0x36d68f from'ol/format/filter';function a70_0x2371(){const _0x2d1b32=['13699oWMRIX','BBOX','NOT\x20(','geometry','tokenize','lessThanOrEqualTo','11HRZYKb','\x20AND\x20','replaceAll','Within','not','join','CLASS_NAME','VALUE','GEOMETRY','follows','RPAREN','LOGICAL','length','tagName_','substring','Contains','notEqualTo','PropertyIsNull','nextToken','replace','\x0a\x20\x20\x20\x20','END','\x20or\x20','contains','conditions','189ngqGbc','INTERSECTS(','tokens','pop','CONTAINS(','propertyName','tryToken','WITHIN(','writeGeometry','Intersects','remainder','write','expression','exec','buildAst','WITHIN','within','IS_NULL','inPatterns','bbox','condition','CQL解析失败:','IS\x20NULL','NOT','lastIndexOf','extent','warn','PropertyIsGreaterThanOrEqualTo','precedence','3RoWiBa','string','COMPARISON','868696XFxOjV','120RrObBb','6596495eCgMrW','PropertyIsEqualTo','like','read','toLowerCase','BBOX(','and','charAt','indexOf','between','123882vqJpku','logicals','LPAREN','greaterThanOrEqualTo','greaterThan','equalTo','No\x20follows\x20list\x20for\x20','srsName','patterns','PROPERTY','push','type','Not','COMMA','upperBoundary','PropertyIsLike','intersects','geometryName','SPATIAL','parseInToOr','302104HIDPKl','text','PropertyIsBetween','toUpperCase','],\x20expected\x20one\x20of:\x20','number','BETWEEN','6DVDmvo','Can\x27t\x20encode:\x20','readGeometry','8112444ZlxeRh','948771sKsedP','operators','operatorReverse','split'];a70_0x2371=function(){return _0x2d1b32;};return a70_0x2371();}import{WKT}from'ol/format';function a70_0x5594(_0xd20699,_0x414409){const _0x2371be=a70_0x2371();return a70_0x5594=function(_0x559414,_0x1ac484){_0x559414=_0x559414-0x18b;let _0xf98877=_0x2371be[_0x559414];return _0xf98877;},a70_0x5594(_0xd20699,_0x414409);}import a70_0x3624fe from'ol/geom/Geometry';export default class CQL{constructor(){const _0x23f887=a70_0x5594;this[_0x23f887(0x1ab)]=/ (IN) /i,this[_0x23f887(0x19b)]=[_0x23f887(0x1ce),'COMPARISON',_0x23f887(0x1f5),_0x23f887(0x18b)],this[_0x23f887(0x1cd)]={'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(_0x3e3373){const _0x2d047e=_0x23f887;let _0x1974da=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/[_0x2d047e(0x1a6)](_0x3e3373);if(_0x1974da){let _0x594a81=_0x3e3373[_0x2d047e(0x18c)],_0x5d3723=_0x3e3373[_0x2d047e(0x1c3)]('(',_0x1974da[0x0]['length']);if(_0x5d3723>-0x1){let _0x3f3091=0x1;while(_0x5d3723<_0x594a81&&_0x3f3091>0x0){_0x5d3723++;switch(_0x3e3373[_0x2d047e(0x1c2)](_0x5d3723)){case'(':_0x3f3091++;break;case')':_0x3f3091--;break;default:}}}return[_0x3e3373['substring'](0x0,_0x5d3723+0x1)];}},'END':/^$/},this[_0x23f887(0x1f7)]={'LPAREN':[_0x23f887(0x1f6),'SPATIAL',_0x23f887(0x1ce),'VALUE','LPAREN'],'RPAREN':[_0x23f887(0x1b0),_0x23f887(0x18b),_0x23f887(0x195),_0x23f887(0x1f8)],'PROPERTY':[_0x23f887(0x1b8),'BETWEEN',_0x23f887(0x1d2),_0x23f887(0x1aa)],'BETWEEN':[_0x23f887(0x1f5)],'IS_NULL':[_0x23f887(0x195)],'COMPARISON':['VALUE'],'COMMA':['GEOMETRY',_0x23f887(0x1f5),_0x23f887(0x1ce)],'VALUE':[_0x23f887(0x18b),'COMMA',_0x23f887(0x1f8),_0x23f887(0x195)],'SPATIAL':[_0x23f887(0x1c7)],'LOGICAL':[_0x23f887(0x1b0),_0x23f887(0x1f5),_0x23f887(0x1d7),_0x23f887(0x1ce),_0x23f887(0x1c7)],'NOT':['PROPERTY','LPAREN'],'GEOMETRY':[_0x23f887(0x1d2),'RPAREN']},this[_0x23f887(0x1e5)]={'=':a70_0x36d68f[_0x23f887(0x1ca)],'<>':a70_0x36d68f[_0x23f887(0x190)],'<':a70_0x36d68f['lessThan'],'<=':a70_0x36d68f[_0x23f887(0x1ed)],'>':a70_0x36d68f[_0x23f887(0x1c9)],'>=':a70_0x36d68f[_0x23f887(0x1c8)],'LIKE':a70_0x36d68f[_0x23f887(0x1bd)],'BETWEEN':a70_0x36d68f[_0x23f887(0x1c4)],'IS\x20NULL':a70_0x36d68f['isNull']},this[_0x23f887(0x1e6)]={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':'LIKE','PropertyIsNull':_0x23f887(0x1af),'PropertyIsBetween':_0x23f887(0x1df)},this[_0x23f887(0x1c6)]={'AND':a70_0x36d68f[_0x23f887(0x1c1)],'OR':a70_0x36d68f['or']},this[_0x23f887(0x1b5)]={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}[a70_0x1048b6(0x19f)](_0x599f6f,_0x43c726){const _0x2b1814=a70_0x1048b6;return _0x43c726 instanceof RegExp?_0x43c726[_0x2b1814(0x1a6)](_0x599f6f):_0x43c726(_0x599f6f);}[a70_0x1048b6(0x192)](_0x48f767,_0xe61c96){const _0x5e26e8=a70_0x1048b6;let _0x473425,_0x2cf6e6,_0xb28c04=_0xe61c96['length'];for(_0x473425=0x0;_0x473425<_0xb28c04;_0x473425++){_0x2cf6e6=_0xe61c96[_0x473425];let _0x484711=this[_0x5e26e8(0x1cd)][_0x2cf6e6],_0x1890f6=this['tryToken'](_0x48f767,_0x484711);if(_0x1890f6){let _0x3fcbf8=_0x1890f6[0x0],_0x13dcaf=_0x48f767[_0x5e26e8(0x18e)](_0x3fcbf8[_0x5e26e8(0x18c)])[_0x5e26e8(0x193)](/^\s*/,'');return{'type':_0x2cf6e6,'text':_0x3fcbf8,'remainder':_0x13dcaf};}}let _0x15baaa='ERROR:\x20In\x20parsing:\x20['+_0x48f767+_0x5e26e8(0x1dd);for(_0x473425=0x0;_0x473425<_0xb28c04;_0x473425++){_0x2cf6e6=_0xe61c96[_0x473425],_0x15baaa+=_0x5e26e8(0x194)+_0x2cf6e6+':\x20'+this[_0x5e26e8(0x1cd)][_0x2cf6e6];}throw new Error(_0x15baaa);}['tokenize'](_0x2b797d){const _0x381f45=a70_0x1048b6;_0x2b797d=_0x2b797d['replaceAll']('[','')['replaceAll'](']','');let _0x44b9e8=this[_0x381f45(0x19f)](_0x2b797d,this['inPatterns']);_0x44b9e8&&(_0x2b797d=this[_0x381f45(0x1d8)](_0x2b797d,_0x44b9e8));let _0x4bb17a=[],_0x3788b4,_0x2f3164=[_0x381f45(0x1b0),_0x381f45(0x1f6),_0x381f45(0x1d7),_0x381f45(0x1ce),'LPAREN'];do{_0x3788b4=this['nextToken'](_0x2b797d,_0x2f3164),_0x2b797d=_0x3788b4[_0x381f45(0x1a3)],_0x2f3164=this[_0x381f45(0x1f7)][_0x3788b4[_0x381f45(0x1d0)]];if(_0x3788b4['type']!==_0x381f45(0x195)&&!_0x2f3164)throw new Error(_0x381f45(0x1cb)+_0x3788b4['type']);_0x4bb17a[_0x381f45(0x1cf)](_0x3788b4);}while(_0x3788b4[_0x381f45(0x1d0)]!==_0x381f45(0x195));return _0x4bb17a;}[a70_0x1048b6(0x1d8)](_0x1dbc9d,_0x46d514){const _0x1c4659=a70_0x1048b6;let _0x341323=this[_0x1c4659(0x19f)](_0x1dbc9d,/\((.+?)\)/g);if(_0x341323){let _0x575b3e=_0x1dbc9d[_0x1c4659(0x18e)](0x0,_0x46d514['index']),_0x4cc5c6=_0x341323[0x1],_0x13dda0=_0x4cc5c6[_0x1c4659(0x1f0)]('\x20','')[_0x1c4659(0x1e7)](','),_0x2b6378='',_0x5dada0='';if(_0x575b3e[_0x1c4659(0x1c3)]('\x20')>-0x1){let _0x24923=_0x575b3e[_0x1c4659(0x1b1)]('\x20');_0x5dada0=_0x575b3e[_0x1c4659(0x18e)](0x0,_0x24923+0x1),_0x2b6378=_0x575b3e[_0x1c4659(0x18e)](_0x24923+0x1,_0x575b3e['length']);}else _0x2b6378=_0x575b3e;let _0x103b7e=_0x5dada0;for(let _0x1a7bae=0x0;_0x1a7bae<_0x13dda0['length'];_0x1a7bae++){let _0x251475=_0x13dda0[_0x1a7bae];_0x103b7e+=_0x2b6378+'='+_0x251475,_0x1a7bae<_0x13dda0[_0x1c4659(0x18c)]-0x1&&(_0x103b7e+=_0x1c4659(0x196));}return _0x103b7e;}return _0x1dbc9d;}[a70_0x1048b6(0x1a7)](_0x3a0f6d){const _0x15e9ec=a70_0x1048b6;let _0x3a974a=this,_0x2b1ae9=[],_0x330790=[];while(_0x3a0f6d['length']){let _0x56208f=_0x3a0f6d['shift']();switch(_0x56208f['type']){case _0x15e9ec(0x1ce):case _0x15e9ec(0x1f6):case _0x15e9ec(0x1f5):_0x330790[_0x15e9ec(0x1cf)](_0x56208f);break;case _0x15e9ec(0x1b8):case'BETWEEN':case _0x15e9ec(0x1aa):case _0x15e9ec(0x18b):{let _0x1a7103=this[_0x15e9ec(0x1b5)][_0x56208f[_0x15e9ec(0x1d0)]];while(_0x2b1ae9[_0x15e9ec(0x18c)]>0x0&&this[_0x15e9ec(0x1b5)][_0x2b1ae9[_0x2b1ae9[_0x15e9ec(0x18c)]-0x1][_0x15e9ec(0x1d0)]]<=_0x1a7103){_0x330790[_0x15e9ec(0x1cf)](_0x2b1ae9['pop']());}_0x2b1ae9['push'](_0x56208f);break;}case _0x15e9ec(0x1d7):case'NOT':case _0x15e9ec(0x1c7):_0x2b1ae9[_0x15e9ec(0x1cf)](_0x56208f);break;case _0x15e9ec(0x1f8):while(_0x2b1ae9['length']>0x0&&_0x2b1ae9[_0x2b1ae9['length']-0x1][_0x15e9ec(0x1d0)]!==_0x15e9ec(0x1c7)){_0x330790[_0x15e9ec(0x1cf)](_0x2b1ae9[_0x15e9ec(0x19c)]());}_0x2b1ae9[_0x15e9ec(0x19c)]();_0x2b1ae9['length']>0x0&&(_0x2b1ae9[_0x2b1ae9[_0x15e9ec(0x18c)]-0x1][_0x15e9ec(0x1d0)]===_0x15e9ec(0x1d7)||_0x2b1ae9[_0x2b1ae9[_0x15e9ec(0x18c)]-0x1][_0x15e9ec(0x1d0)]==='NOT')&&_0x330790[_0x15e9ec(0x1cf)](_0x2b1ae9['pop']());break;case _0x15e9ec(0x1d2):case _0x15e9ec(0x195):break;default:throw new Error('Unknown\x20token\x20type\x20'+_0x56208f[_0x15e9ec(0x1d0)]);}}while(_0x2b1ae9[_0x15e9ec(0x18c)]>0x0){_0x330790[_0x15e9ec(0x1cf)](_0x2b1ae9[_0x15e9ec(0x19c)]());}function _0x43e2d7(){const _0xf60c1a=_0x15e9ec;let _0x3a229e,_0x59815f,_0x181044=_0x330790[_0xf60c1a(0x19c)]();switch(_0x181044[_0xf60c1a(0x1d0)]){case _0xf60c1a(0x18b):{let _0x257045=_0x43e2d7(),_0x540b77=_0x43e2d7();return new _0x3a974a[(_0xf60c1a(0x1c6))][(_0x181044['text'][_0xf60c1a(0x1dc)]())](_0x540b77,_0x257045);}case _0xf60c1a(0x1b0):{let _0x3bdac4=_0x43e2d7();return a70_0x36d68f[_0xf60c1a(0x1f2)](_0x3bdac4);}case _0xf60c1a(0x1df):{let _0x1220f6,_0x5d492d;return _0x330790[_0xf60c1a(0x19c)](),_0x5d492d=_0x43e2d7(),_0x1220f6=_0x43e2d7(),_0x59815f=_0x43e2d7(),a70_0x36d68f['between'](_0x59815f,_0x1220f6,_0x5d492d);}case'COMPARISON':{return _0x3a229e=_0x43e2d7(),_0x59815f=_0x43e2d7(),new _0x3a974a['operators'][(_0x181044[_0xf60c1a(0x1da)][_0xf60c1a(0x1dc)]())](_0x59815f,_0x3a229e);}case _0xf60c1a(0x1aa):_0x59815f=_0x43e2d7();return new _0x3a974a[(_0xf60c1a(0x1e5))][(_0x181044[_0xf60c1a(0x1da)][_0xf60c1a(0x1dc)]())](_0x59815f);case'VALUE':{let _0x3753c6=_0x181044[_0xf60c1a(0x1da)]['match'](/^'(.*)'$/);return _0x3753c6?_0x3753c6[0x1][_0xf60c1a(0x193)](/''/g,'\x27'):Number(_0x181044[_0xf60c1a(0x1da)]);}case _0xf60c1a(0x1d7):switch(_0x181044[_0xf60c1a(0x1da)][_0xf60c1a(0x1dc)]()){case _0xf60c1a(0x1e9):{let _0x17d8f9=_0x43e2d7(),_0x9fc1cf=_0x43e2d7(),_0x5ed54c=_0x43e2d7(),_0x2c4717=_0x43e2d7(),_0x5c0eb4=_0x43e2d7();return a70_0x36d68f[_0xf60c1a(0x1ac)](_0x5c0eb4,[_0x2c4717,_0x5ed54c,_0x9fc1cf,_0x17d8f9]);}case'INTERSECTS':_0x3a229e=_0x43e2d7(),_0x59815f=_0x43e2d7();return a70_0x36d68f[_0xf60c1a(0x1d5)](_0x59815f,_0x3a229e);case _0xf60c1a(0x1a8):_0x3a229e=_0x43e2d7(),_0x59815f=_0x43e2d7();return a70_0x36d68f[_0xf60c1a(0x1a9)](_0x59815f,_0x3a229e);case'CONTAINS':_0x3a229e=_0x43e2d7(),_0x59815f=_0x43e2d7();return a70_0x36d68f[_0xf60c1a(0x197)](_0x59815f,_0x3a229e);}break;case _0xf60c1a(0x1f6):return new WKT()['readGeometry'](_0x181044[_0xf60c1a(0x1da)],{});default:return _0x181044['text'];}}let _0x30a25a=_0x43e2d7();if(_0x330790[_0x15e9ec(0x18c)]>0x0){let _0x16b44b='剩余的节点无法解析:\x20\x0a';for(let _0x379867=_0x330790[_0x15e9ec(0x18c)]-0x1;_0x379867>=0x0;_0x379867--){_0x16b44b+=_0x330790[_0x379867]['type']+':\x20'+_0x330790[_0x379867][_0x15e9ec(0x1da)]+'\x0a';}throw new Error(_0x16b44b);}return _0x30a25a;}[a70_0x1048b6(0x1be)](_0x25445d){const _0x4747e4=a70_0x1048b6;try{return this['buildAst'](this[_0x4747e4(0x1ec)](_0x25445d));}catch(_0xec9d7f){console[_0x4747e4(0x1b3)](_0x4747e4(0x1ae)+_0x25445d),console[_0x4747e4(0x1b3)](_0xec9d7f);}}[a70_0x1048b6(0x1a4)](_0x3674c3){const _0x84a719=a70_0x1048b6;switch(_0x3674c3[_0x84a719(0x18d)]){case _0x84a719(0x1e9):return _0x84a719(0x1c0)+_0x3674c3['geometryName']+','+_0x3674c3[_0x84a719(0x1b2)][_0x84a719(0x1f3)](',')+','+_0x3674c3[_0x84a719(0x1cc)]+')';case _0x84a719(0x1f1):return _0x84a719(0x1a0)+_0x3674c3[_0x84a719(0x1d6)]+',\x20'+this['readGeometry'](_0x3674c3[_0x84a719(0x1eb)])+')';case _0x84a719(0x1a2):return _0x84a719(0x19a)+_0x3674c3[_0x84a719(0x1d6)]+',\x20'+this['readGeometry'](_0x3674c3[_0x84a719(0x1eb)])+')';case _0x84a719(0x18f):return _0x84a719(0x19d)+_0x3674c3['geometryName']+',\x20'+this[_0x84a719(0x1e2)](_0x3674c3['geometry'])+')';case _0x84a719(0x1d1):return _0x84a719(0x1ea)+this[_0x84a719(0x1a4)](_0x3674c3[_0x84a719(0x1ad)])+')';case'And':case'Or':{let _0x37d311='(',_0x17c4af=!![];for(let _0x5a117b=0x0;_0x5a117b<_0x3674c3['conditions'][_0x84a719(0x18c)];_0x5a117b++){_0x17c4af?_0x17c4af=![]:_0x37d311+=')\x20'+_0x3674c3[_0x84a719(0x18d)][_0x84a719(0x1bf)]()+'\x20(',_0x37d311+=this[_0x84a719(0x1a4)](_0x3674c3[_0x84a719(0x198)][_0x5a117b]);}return _0x37d311+')';}case _0x84a719(0x1db):return _0x3674c3['property']+'\x20BETWEEN\x20'+this[_0x84a719(0x1a4)](_0x3674c3['lowerBoundary'])+_0x84a719(0x1ef)+this[_0x84a719(0x1a4)](_0x3674c3[_0x84a719(0x1d3)]);case _0x84a719(0x1bc):case'PropertyIsNotEqualTo':case'PropertyIsLessThan':case'PropertyIsLessThanOrEqualTo':case'PropertyIsGreaterThan':case _0x84a719(0x1b4):case _0x84a719(0x1d4):case _0x84a719(0x191):{return _0x3674c3[_0x84a719(0x1a5)]!==null?_0x3674c3[_0x84a719(0x19e)]+'\x20'+this[_0x84a719(0x1e6)][_0x3674c3[_0x84a719(0x18d)]]+'\x20'+this[_0x84a719(0x1a4)](_0x3674c3[_0x84a719(0x1a5)]):_0x3674c3[_0x84a719(0x19e)]+'\x20'+this[_0x84a719(0x1e6)][_0x3674c3['tagName_']];}case undefined:if(typeof _0x3674c3===_0x84a719(0x1b7))return'\x27'+_0x3674c3['replace'](/'/g,'\x27\x27')+'\x27';else{if(typeof _0x3674c3===_0x84a719(0x1de))return String(_0x3674c3);}break;default:throw new Error(_0x84a719(0x1e1)+_0x3674c3[_0x84a719(0x1f4)]+'\x20'+_0x3674c3);}}[a70_0x1048b6(0x1e2)](_0x4e4f59){const _0x45c52b=a70_0x1048b6;if(_0x4e4f59 instanceof a70_0x3624fe)return new WKT()[_0x45c52b(0x1a1)](_0x4e4f59);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x26e0a7,_0x484fee){const _0x156dc1=a71_0x1c76,_0x1cb65e=_0x26e0a7();while(!![]){try{const _0x4c5beb=parseInt(_0x156dc1(0x11b))/0x1*(parseInt(_0x156dc1(0x119))/0x2)+parseInt(_0x156dc1(0x111))/0x3*(-parseInt(_0x156dc1(0x12d))/0x4)+parseInt(_0x156dc1(0x10e))/0x5+parseInt(_0x156dc1(0x113))/0x6*(parseInt(_0x156dc1(0x116))/0x7)+-parseInt(_0x156dc1(0x127))/0x8+parseInt(_0x156dc1(0x10c))/0x9+-parseInt(_0x156dc1(0x128))/0xa;if(_0x4c5beb===_0x484fee)break;else _0x1cb65e['push'](_0x1cb65e['shift']());}catch(_0x274397){_0x1cb65e['push'](_0x1cb65e['shift']());}}}(a71_0x11ff,0xf06f6));import a71_0x388407 from'./CQL';export function isMatchCql(_0x246d65,_0x484994){const _0x7fe075=a71_0x1c76;let _0xf161ae=new a71_0x388407()[_0x7fe075(0x126)](_0x484994);return isMatchFilter(_0x246d65,_0xf161ae);}function a71_0x1c76(_0x3000af,_0xc9ac8){const _0x11ff74=a71_0x11ff();return a71_0x1c76=function(_0x1c76fa,_0x115326){_0x1c76fa=_0x1c76fa-0x10c;let _0x493b20=_0x11ff74[_0x1c76fa];return _0x493b20;},a71_0x1c76(_0x3000af,_0xc9ac8);}export function isMatchFilter(_0xfb741b,_0x10815c){const _0x3a0c3f=a71_0x1c76;switch(_0x10815c[_0x3a0c3f(0x124)]){case _0x3a0c3f(0x12c):return!isMatchFilter(_0xfb741b,_0x10815c[_0x3a0c3f(0x123)]);case'And':{let _0x5ce94e=!![];for(let _0x1980e2=0x0;_0x1980e2<_0x10815c[_0x3a0c3f(0x114)][_0x3a0c3f(0x12b)];_0x1980e2++){_0x5ce94e=_0x5ce94e&&isMatchFilter(_0xfb741b,_0x10815c[_0x3a0c3f(0x114)][_0x1980e2]);}return _0x5ce94e;}case'Or':{let _0x52d02c=![];for(let _0x1f0ec8=0x0;_0x1f0ec8<_0x10815c[_0x3a0c3f(0x114)][_0x3a0c3f(0x12b)];_0x1f0ec8++){_0x52d02c=_0x52d02c||isMatchFilter(_0xfb741b,_0x10815c[_0x3a0c3f(0x114)][_0x1f0ec8]);}return _0x52d02c;}case _0x3a0c3f(0x110):return _0xfb741b[_0x10815c[_0x3a0c3f(0x11c)]]>_0x10815c['lowerBoundary']&&_0xfb741b[_0x10815c[_0x3a0c3f(0x11c)]]<_0x10815c[_0x3a0c3f(0x121)];case'PropertyIsEqualTo':return _0xfb741b[_0x10815c[_0x3a0c3f(0x120)]]===_0x10815c['expression'];case _0x3a0c3f(0x10f):return _0xfb741b[_0x10815c['propertyName']]!==_0x10815c[_0x3a0c3f(0x117)];case _0x3a0c3f(0x112):return _0xfb741b[_0x10815c[_0x3a0c3f(0x120)]]<_0x10815c[_0x3a0c3f(0x117)];case'PropertyIsLessThanOrEqualTo':return _0xfb741b[_0x10815c['propertyName']]<=_0x10815c[_0x3a0c3f(0x117)];case _0x3a0c3f(0x129):return _0xfb741b[_0x10815c[_0x3a0c3f(0x120)]]>_0x10815c[_0x3a0c3f(0x117)];case _0x3a0c3f(0x11f):return _0xfb741b[_0x10815c['propertyName']]>=_0x10815c[_0x3a0c3f(0x117)];case _0x3a0c3f(0x11a):return _0xfb741b[_0x10815c['propertyName']][_0x3a0c3f(0x12a)](_0x10815c[_0x3a0c3f(0x117)])>-0x1;case _0x3a0c3f(0x11d):{return!_0xfb741b[_0x10815c[_0x3a0c3f(0x120)]];}default:return![];}}export function isEqualFilter(_0x1ab77d,_0x2f7675){const _0x3d79c7=a71_0x1c76;switch(_0x1ab77d[_0x3d79c7(0x124)]){case _0x3d79c7(0x12c):return _0x1ab77d[_0x3d79c7(0x124)]===_0x2f7675[_0x3d79c7(0x124)]&&isEqualFilter(_0x1ab77d['condition'],_0x2f7675[_0x3d79c7(0x123)]);case'Or':case _0x3d79c7(0x10d):{let _0x40c2a3=_0x1ab77d[_0x3d79c7(0x124)]===_0x2f7675[_0x3d79c7(0x124)]&&_0x1ab77d[_0x3d79c7(0x114)][_0x3d79c7(0x12b)]===_0x2f7675[_0x3d79c7(0x114)]['length'];for(let _0x36c8c3=0x0;_0x36c8c3<_0x1ab77d['conditions']['length'];_0x36c8c3++){_0x40c2a3=_0x40c2a3&&isEqualFilter(_0x1ab77d[_0x3d79c7(0x114)][_0x36c8c3],_0x2f7675[_0x3d79c7(0x114)][_0x36c8c3]);}return _0x40c2a3;}case _0x3d79c7(0x110):return _0x1ab77d[_0x3d79c7(0x124)]===_0x2f7675['tagName_']&&_0x1ab77d[_0x3d79c7(0x11c)]===_0x2f7675[_0x3d79c7(0x11c)];case _0x3d79c7(0x115):case'PropertyIsNotEqualTo':case _0x3d79c7(0x112):case'PropertyIsLessThanOrEqualTo':case _0x3d79c7(0x129):case'PropertyIsGreaterThanOrEqualTo':case _0x3d79c7(0x11a):case _0x3d79c7(0x11d):return _0x1ab77d[_0x3d79c7(0x124)]===_0x2f7675[_0x3d79c7(0x124)]&&_0x1ab77d[_0x3d79c7(0x120)]===_0x2f7675[_0x3d79c7(0x120)];default:return![];}}export function indexOfFilter(_0x1c0fbc,_0x3db0a8){let _0x3c0cfb=-0x1;if((_0x1c0fbc===null||_0x1c0fbc===void 0x0?void 0x0:_0x1c0fbc['length'])>0x0)for(let _0x461813 in _0x1c0fbc){if(isEqualFilter(_0x1c0fbc[_0x461813]['template'],_0x3db0a8))return _0x461813;}return _0x3c0cfb;}export function getIndexByTemplate(_0x589b83,_0x299d10){const _0x56e3e=a71_0x1c76;let _0x483150=_0x299d10[_0x56e3e(0x118)];if(_0x299d10['idMapLength']>0x0){let _0x347d65=getKeyByTemplate(_0x589b83,_0x483150);if(_0x347d65 instanceof Array)for(let _0x1aac12 in _0x347d65){let _0x98f146=_0x299d10[_0x56e3e(0x125)][_0x347d65[_0x1aac12]+'_'+_0x1aac12];if(_0x98f146)return _0x98f146;}else return _0x299d10[_0x56e3e(0x125)][_0x347d65];}return null;}export function getKeyByTemplate(_0x796535,_0x50564a){const _0x2fbb9d=a71_0x1c76;switch(_0x50564a[_0x2fbb9d(0x124)]){case _0x2fbb9d(0x115):{return _0x796535[_0x50564a[_0x2fbb9d(0x120)]];}case _0x2fbb9d(0x10d):{let _0x3e4ca9=[];for(let _0x1b8713=0x0;_0x1b8713<_0x50564a[_0x2fbb9d(0x114)][_0x2fbb9d(0x12b)];_0x1b8713++){let _0x5250a9=getKeyByTemplate(_0x796535,_0x50564a['conditions'][_0x1b8713]);_0x5250a9&&_0x3e4ca9[_0x2fbb9d(0x122)](_0x5250a9);}return _0x3e4ca9[_0x2fbb9d(0x11e)](',');}case'Or':{let _0x10c910=[];for(let _0xe1831d=0x0;_0xe1831d<_0x50564a[_0x2fbb9d(0x114)][_0x2fbb9d(0x12b)];_0xe1831d++){let _0x1fe4de=getKeyByTemplate(_0x796535,_0x50564a['conditions'][_0xe1831d]);_0x1fe4de&&_0x10c910[_0x2fbb9d(0x122)](_0x1fe4de);}return _0x10c910;}default:return null;}}export function createKeyFromFilter(_0x412a2d){const _0x1d5ebf=a71_0x1c76;switch(_0x412a2d[_0x1d5ebf(0x124)]){case _0x1d5ebf(0x115):return _0x412a2d[_0x1d5ebf(0x117)];case _0x1d5ebf(0x10d):{let _0x56b1f1=[];for(let _0xff1138=0x0;_0xff1138<_0x412a2d[_0x1d5ebf(0x114)]['length'];_0xff1138++){let _0xf14e2a=createKeyFromFilter(_0x412a2d['conditions'][_0xff1138]);if(_0xf14e2a)_0x56b1f1[_0x1d5ebf(0x122)](_0xf14e2a);else return null;}return _0x56b1f1[_0x1d5ebf(0x11e)](',');}case'Or':{let _0x1836d3=[];for(let _0x249ffb=0x0;_0x249ffb<_0x412a2d[_0x1d5ebf(0x114)][_0x1d5ebf(0x12b)];_0x249ffb++){let _0x429ebd=createKeyFromFilter(_0x412a2d[_0x1d5ebf(0x114)][_0x249ffb]);_0x429ebd&&_0x1836d3[_0x1d5ebf(0x122)](_0x429ebd);}return _0x1836d3;}default:return null;}}function a71_0x11ff(){const _0x4be3ee=['PropertyIsLessThan','6mOxAQP','conditions','PropertyIsEqualTo','13061454lebaQW','expression','template','81092tmkdnS','PropertyIsLike','47Ocznha','property','PropertyIsNull','join','PropertyIsGreaterThanOrEqualTo','propertyName','upperBoundary','push','condition','tagName_','idMap','read','8814584epRQKZ','29930070yRBBBW','PropertyIsGreaterThan','indexOf','length','Not','7653052jOWCUD','15404400hiqGKF','And','7548655sQUsVL','PropertyIsNotEqualTo','PropertyIsBetween','3mzuLnJ'];a71_0x11ff=function(){return _0x4be3ee;};return a71_0x11ff();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a74_0x31eb(_0x4a01b2,_0x3663ac){const _0x4fe121=a74_0x4fe1();return a74_0x31eb=function(_0x31eb45,_0x116d85){_0x31eb45=_0x31eb45-0xef;let _0x4a38c1=_0x4fe121[_0x31eb45];return _0x4a38c1;},a74_0x31eb(_0x4a01b2,_0x3663ac);}const a74_0x4cba58=a74_0x31eb;(function(_0x39ff13,_0x169317){const _0x576f21=a74_0x31eb,_0x4c84a1=_0x39ff13();while(!![]){try{const _0x669416=parseInt(_0x576f21(0xf9))/0x1*(-parseInt(_0x576f21(0xff))/0x2)+-parseInt(_0x576f21(0x102))/0x3+-parseInt(_0x576f21(0xfa))/0x4*(parseInt(_0x576f21(0xf1))/0x5)+parseInt(_0x576f21(0xf4))/0x6*(parseInt(_0x576f21(0x100))/0x7)+-parseInt(_0x576f21(0xf0))/0x8*(parseInt(_0x576f21(0xfe))/0x9)+-parseInt(_0x576f21(0xf8))/0xa*(parseInt(_0x576f21(0xfb))/0xb)+parseInt(_0x576f21(0xf2))/0xc;if(_0x669416===_0x169317)break;else _0x4c84a1['push'](_0x4c84a1['shift']());}catch(_0x6c939b){_0x4c84a1['push'](_0x4c84a1['shift']());}}}(a74_0x4fe1,0xb7b19));import{asString}from'ol/color';class ImageCache{constructor(){const _0x2f5729=a74_0x31eb;this[_0x2f5729(0xf3)]={},this[_0x2f5729(0x103)]=0x0;}[a74_0x4cba58(0xf5)](){const _0x2736e3=a74_0x4cba58;this[_0x2736e3(0xf3)]={},this['cacheSize_']=0x0;}['get'](_0x5843a5){const _0x5c0748=a74_0x4cba58,_0x3e8982=getKey(_0x5843a5[_0x5c0748(0xf6)],_0x5843a5[_0x5c0748(0xef)],_0x5843a5[_0x5c0748(0xfc)],_0x5843a5[_0x5c0748(0xfd)]);return _0x3e8982 in this[_0x5c0748(0xf3)]?this[_0x5c0748(0xf3)][_0x3e8982]:null;}[a74_0x4cba58(0xf7)](_0x17d3fb,_0x1d4c9d){const _0x316f3c=a74_0x4cba58,_0x17d936=getKey(_0x17d3fb[_0x316f3c(0xf6)],_0x17d3fb[_0x316f3c(0xef)],_0x17d3fb[_0x316f3c(0xfc)],_0x17d3fb[_0x316f3c(0xfd)]);this['cache_'][_0x17d936]=_0x1d4c9d,++this[_0x316f3c(0x103)];}}function getKey(_0xdffb7e,_0xe84f38,_0x10a49b,_0x2e72e5){const _0x2c754c=a74_0x4cba58,_0x555f11=_0x10a49b?asString(_0x10a49b):_0x2c754c(0x101);return _0xdffb7e+':'+_0x2e72e5+':'+_0x555f11+':'+_0xe84f38;}export default ImageCache;export const shared=new ImageCache();function a74_0x4fe1(){const _0x45bd6b=['markerSize','151176ZGJBeD','3865mEfTcj','53906232PCTlld','cache_','48JyGPFi','clear','markerLabel','set','120tDlgVb','57OqSMYu','5008pVgjjP','632907hmTdCu','markerColor','image','441pqsVhH','26734dfSBCm','173110TPbvIT','null','1774515JOiAnr','cacheSize_'];a74_0x4fe1=function(){return _0x45bd6b;};return a74_0x4fe1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75_0x33b696=a75_0x4537;(function(_0xd7ef64,_0x23e7fc){const _0x46b019=a75_0x4537,_0xddb8fd=_0xd7ef64();while(!![]){try{const _0x173525=parseInt(_0x46b019(0x209))/0x1*(-parseInt(_0x46b019(0x1f3))/0x2)+parseInt(_0x46b019(0x1f2))/0x3*(-parseInt(_0x46b019(0x211))/0x4)+parseInt(_0x46b019(0x1e9))/0x5+parseInt(_0x46b019(0x20e))/0x6*(parseInt(_0x46b019(0x1f5))/0x7)+parseInt(_0x46b019(0x206))/0x8*(parseInt(_0x46b019(0x216))/0x9)+parseInt(_0x46b019(0x207))/0xa*(parseInt(_0x46b019(0x1ff))/0xb)+-parseInt(_0x46b019(0x20b))/0xc*(parseInt(_0x46b019(0x1f6))/0xd);if(_0x173525===_0x23e7fc)break;else _0xddb8fd['push'](_0xddb8fd['shift']());}catch(_0x626cdd){_0xddb8fd['push'](_0xddb8fd['shift']());}}}(a75_0x31de,0xaa91c));function a75_0x31de(){const _0x11a0f4=['width','#000000','_cache','fromText','lineTo','destination-over','27ekgYaL','17914LAUGcU','bezierCurveTo','7ceFWYm','91ebDqFB','bold\x20','moveTo','px\x20sans-serif','ERROR','strokeStyle','id\x20is\x20required','stringify','lighten','5613476hyzqhi','fillStyle','save','destination-out','fromColor','closePath','IDLE','8sWyaku','10nOqwTx','color\x20is\x20required','24LejEtU','lineWidth','1333980eFhAZr','getImageState','#FFFFFF','3446382Uqilix','restore','getImage','484364gfyADE','height','fillRect','drawImage','size\x20is\x20required','4652919UkGWao','text\x20is\x20required','stroke','5899450qYlHfu','toDataURL','globalCompositeOperation'];a75_0x31de=function(){return _0x11a0f4;};return a75_0x31de();}import a75_0x38d772 from'color';import a75_0xb52510 from'./writeTextToCanvas';import{Icon}from'ol/style';import a75_0x1cad84 from'ol/ImageState';import{parseImage}from'../../UrlUtil.js';class PinBuilder{constructor(){const _0x485c23=a75_0x4537;this[_0x485c23(0x1ee)]={};}[a75_0x33b696(0x203)](_0x5c87e8,_0x1a4011){const _0x3c2fdf=a75_0x33b696;if(!_0x5c87e8)throw new Error(_0x3c2fdf(0x208));if(!_0x1a4011)throw new Error('size\x20is\x20required');return createPin('','',_0x5c87e8,_0x1a4011,this[_0x3c2fdf(0x1ee)]);}['fromUrl'](_0x714474,_0x3b4e78,_0x296df9){const _0x447fed=a75_0x33b696;if(!_0x714474)throw new Error('url\x20is\x20required');if(!_0x3b4e78)throw new Error(_0x447fed(0x208));if(!_0x296df9)throw new Error(_0x447fed(0x215));return createPin(_0x714474,'',_0x3b4e78,_0x296df9,this['_cache']);}['fromMakiIconId'](_0x5defe9,_0x500a99,_0x1636aa){const _0x4f9564=a75_0x33b696;if(!_0x5defe9)throw new Error(_0x4f9564(0x1fc));if(!_0x500a99)throw new Error(_0x4f9564(0x208));if(!_0x1636aa)throw new Error('size\x20is\x20required');return createPin(parseImage(_0x5defe9),'',_0x500a99,_0x1636aa,this[_0x4f9564(0x1ee)]);}[a75_0x33b696(0x1ef)](_0x26c2c0,_0x5a0539,_0x5db1dc){const _0xb64b57=a75_0x33b696;if(!_0x26c2c0)throw new Error(_0xb64b57(0x217));if(!_0x5a0539)throw new Error(_0xb64b57(0x208));if(!_0x5db1dc)throw new Error(_0xb64b57(0x215));return createPin('',_0x26c2c0,_0x5a0539,_0x5db1dc,this[_0xb64b57(0x1ee)]);}}function drawPin(_0x2c05dd,_0xba95e2,_0x20b002){const _0x3c89bb=a75_0x33b696;_0x2c05dd[_0x3c89bb(0x201)](),_0x2c05dd['scale'](_0x20b002/0x18,_0x20b002/0x18),_0x2c05dd['fillStyle']=_0xba95e2,_0x2c05dd[_0x3c89bb(0x1fb)]=a75_0x38d772(_0xba95e2)[_0x3c89bb(0x1fe)](0.6)['hexa'](),_0x2c05dd[_0x3c89bb(0x20a)]=0.846,_0x2c05dd['beginPath'](),_0x2c05dd[_0x3c89bb(0x1f8)](6.72,0.422),_0x2c05dd[_0x3c89bb(0x1f0)](17.28,0.422),_0x2c05dd[_0x3c89bb(0x1f4)](18.553,0.422,19.577,1.758,19.577,3.415),_0x2c05dd[_0x3c89bb(0x1f0)](19.577,10.973),_0x2c05dd[_0x3c89bb(0x1f4)](19.577,12.63,18.553,13.966,17.282,13.966),_0x2c05dd['lineTo'](14.386,14.008),_0x2c05dd[_0x3c89bb(0x1f0)](11.826,23.578),_0x2c05dd['lineTo'](9.614,14.008),_0x2c05dd['lineTo'](6.719,13.965),_0x2c05dd[_0x3c89bb(0x1f4)](5.446,13.983,4.422,12.629,4.422,10.972),_0x2c05dd['lineTo'](4.422,3.416),_0x2c05dd['bezierCurveTo'](4.423,1.76,5.447,0.423,6.718,0.423),_0x2c05dd[_0x3c89bb(0x204)](),_0x2c05dd['fill'](),_0x2c05dd[_0x3c89bb(0x218)](),_0x2c05dd[_0x3c89bb(0x20f)]();}function a75_0x4537(_0x3b192c,_0x2fcf37){const _0x31de71=a75_0x31de();return a75_0x4537=function(_0x45373d,_0x5425f3){_0x45373d=_0x45373d-0x1e9;let _0x3375cc=_0x31de71[_0x45373d];return _0x3375cc;},a75_0x4537(_0x3b192c,_0x2fcf37);}function drawIcon(_0x1dcc90,_0x4fc8bb,_0x217aea){const _0x54e09c=a75_0x33b696,_0x5ac1ed=_0x217aea/2.5;let _0x3f8e1e=_0x5ac1ed,_0x1241c7=_0x5ac1ed;if(_0x4fc8bb[_0x54e09c(0x1ec)]>_0x4fc8bb[_0x54e09c(0x212)])_0x1241c7=_0x5ac1ed*(_0x4fc8bb[_0x54e09c(0x212)]/_0x4fc8bb['width']);else _0x4fc8bb[_0x54e09c(0x1ec)]<_0x4fc8bb[_0x54e09c(0x212)]&&(_0x3f8e1e=_0x5ac1ed*(_0x4fc8bb['width']/_0x4fc8bb[_0x54e09c(0x212)]));const _0x439653=Math['round']((_0x217aea-_0x3f8e1e)/0x2),_0x186358=Math['round'](0x7/0x18*_0x217aea-_0x1241c7/0x2);_0x1dcc90['globalCompositeOperation']=_0x54e09c(0x202),_0x1dcc90[_0x54e09c(0x214)](_0x4fc8bb,_0x439653-0x1,_0x186358,_0x3f8e1e,_0x1241c7),_0x1dcc90[_0x54e09c(0x214)](_0x4fc8bb,_0x439653,_0x186358-0x1,_0x3f8e1e,_0x1241c7),_0x1dcc90['drawImage'](_0x4fc8bb,_0x439653+0x1,_0x186358,_0x3f8e1e,_0x1241c7),_0x1dcc90['drawImage'](_0x4fc8bb,_0x439653,_0x186358+0x1,_0x3f8e1e,_0x1241c7),_0x1dcc90['globalCompositeOperation']=_0x54e09c(0x1f1),_0x1dcc90['fillStyle']=_0x54e09c(0x1ed),_0x1dcc90[_0x54e09c(0x213)](_0x439653-0x1,_0x186358-0x1,_0x3f8e1e+0x2,_0x1241c7+0x2),_0x1dcc90[_0x54e09c(0x1eb)]=_0x54e09c(0x202),_0x1dcc90['drawImage'](_0x4fc8bb,_0x439653,_0x186358,_0x3f8e1e,_0x1241c7),_0x1dcc90[_0x54e09c(0x1eb)]=_0x54e09c(0x1f1),_0x1dcc90[_0x54e09c(0x200)]=_0x54e09c(0x20d),_0x1dcc90[_0x54e09c(0x213)](_0x439653-0x1,_0x186358-0x2,_0x3f8e1e+0x2,_0x1241c7+0x2);}const stringifyScratch=new Array(0x4);function createPin(_0x1899fd,_0x556689,_0x463e6b,_0x51a063,_0x5967ed){const _0x53c8fc=a75_0x33b696;stringifyScratch[0x0]=_0x1899fd,stringifyScratch[0x1]=_0x556689,stringifyScratch[0x2]=_0x463e6b,stringifyScratch[0x3]=_0x51a063;const _0x16aebd=JSON[_0x53c8fc(0x1fd)](stringifyScratch),_0x1cb8be=_0x5967ed[_0x16aebd];if(_0x1cb8be)return _0x1cb8be;const _0x1029aa=document['createElement']('canvas');_0x1029aa['width']=_0x51a063,_0x1029aa[_0x53c8fc(0x212)]=_0x51a063;const _0x38947a=_0x1029aa['getContext']('2d');drawPin(_0x38947a,_0x463e6b,_0x51a063);if(_0x1899fd)return new Promise(_0x5ccefe=>{const _0x19d1dc=_0x53c8fc;let _0x322076=new Icon({'src':_0x1899fd}),_0x17256f=_0x322076['getImageState']();_0x17256f===a75_0x1cad84['LOADED']||_0x17256f===a75_0x1cad84[_0x19d1dc(0x1fa)]?(drawIcon(_0x38947a,_0x322076[_0x19d1dc(0x210)](0x60),_0x51a063),_0x5967ed[_0x16aebd]=_0x1029aa[_0x19d1dc(0x1ea)](),_0x5ccefe(_0x1029aa[_0x19d1dc(0x1ea)]())):(_0x17256f===a75_0x1cad84[_0x19d1dc(0x205)]&&_0x322076['load'](),_0x322076['listenImageChange'](_0x1923a5=>{const _0x4fda11=_0x19d1dc;_0x17256f=_0x1923a5['target'][_0x4fda11(0x20c)](),(_0x17256f===a75_0x1cad84['LOADED']||_0x17256f===a75_0x1cad84['ERROR'])&&(drawIcon(_0x38947a,_0x322076[_0x4fda11(0x210)](0x60),_0x51a063),_0x5967ed[_0x16aebd]=_0x1029aa[_0x4fda11(0x1ea)](),_0x5ccefe(_0x1029aa[_0x4fda11(0x1ea)]()));}));});else{if(_0x556689){const _0xe6f844=a75_0xb52510(_0x556689,{'font':_0x53c8fc(0x1f7)+_0x51a063+_0x53c8fc(0x1f9)});drawIcon(_0x38947a,_0xe6f844,_0x51a063);}}return _0x5967ed[_0x16aebd]=_0x1029aa[_0x53c8fc(0x1ea)](),_0x1029aa[_0x53c8fc(0x1ea)]();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a76_0x3e4337=a76_0x1ebe;(function(_0x12c7a1,_0x2c652a){const _0x399f62=a76_0x1ebe,_0x4c5ab1=_0x12c7a1();while(!![]){try{const _0x3bc376=-parseInt(_0x399f62(0x104))/0x1+parseInt(_0x399f62(0x11b))/0x2*(parseInt(_0x399f62(0x11d))/0x3)+parseInt(_0x399f62(0xfe))/0x4+parseInt(_0x399f62(0x10f))/0x5*(parseInt(_0x399f62(0x108))/0x6)+-parseInt(_0x399f62(0x112))/0x7*(parseInt(_0x399f62(0x10a))/0x8)+-parseInt(_0x399f62(0x103))/0x9+parseInt(_0x399f62(0x100))/0xa;if(_0x3bc376===_0x2c652a)break;else _0x4c5ab1['push'](_0x4c5ab1['shift']());}catch(_0x520e40){_0x4c5ab1['push'](_0x4c5ab1['shift']());}}}(a76_0x3b65,0x45abb));import a76_0x5e8e43 from'./PinBuilder';function a76_0x1ebe(_0xbb8777,_0xb2e71f){const _0x3b659f=a76_0x3b65();return a76_0x1ebe=function(_0x1ebeef,_0x1845f5){_0x1ebeef=_0x1ebeef-0xfe;let _0xf53afc=_0x3b659f[_0x1ebeef];return _0xf53afc;},a76_0x1ebe(_0xbb8777,_0xb2e71f);}import{Icon}from'ol/style';import a76_0x29f073 from'ol/ImageState';function a76_0x3b65(){const _0x3e8ee6=['catch','getImage','5cSLLTZ','markerLabel','_listener','84rILyXV','loadIcon','resolve','_imageState','options','IDLE','image','markerSize','listenImageChange','46fVUCqf','load','30837HRSaNE','getImageState','set','error','1608532qYLgMV','then','2662190BTBoLS','target','dispatchEvent','902241lukfOQ','352750QmMuuH','fromText','markerColor','warn','1730334LbicSP','ERROR','303192zmzMFI','_icon','LOADED'];a76_0x3b65=function(){return _0x3e8ee6;};return a76_0x3b65();}import a76_0x51597d from'ol/events/Event';import{shared as a76_0x41a52d}from'./ImageCache';export default class PinIcon{constructor(_0x379e07){const _0x383268=a76_0x1ebe;this['options']=_0x379e07||{},this[_0x383268(0x115)]=a76_0x29f073['IDLE'],this['_icon']=a76_0x41a52d['get'](this[_0x383268(0x116)]),this['_icon']&&(this['_imageState']=a76_0x29f073['LOADED']);}['load'](){const _0x230e3a=a76_0x1ebe;try{let _0x565933,_0x12a1b0=new a76_0x5e8e43();if(this[_0x230e3a(0x116)][_0x230e3a(0x110)])_0x565933=_0x12a1b0[_0x230e3a(0x105)](this[_0x230e3a(0x116)][_0x230e3a(0x110)],this[_0x230e3a(0x116)][_0x230e3a(0x106)],this['options']['markerSize']||0x30);else this[_0x230e3a(0x116)][_0x230e3a(0x118)]&&(_0x565933=_0x12a1b0['fromUrl'](this[_0x230e3a(0x116)]['image'],this[_0x230e3a(0x116)][_0x230e3a(0x106)],this[_0x230e3a(0x116)][_0x230e3a(0x119)]||0x30));Promise[_0x230e3a(0x114)](_0x565933)[_0x230e3a(0xff)](_0x5caf28=>{const _0x1d23c0=_0x230e3a;this[_0x1d23c0(0x113)](_0x5caf28);})[_0x230e3a(0x10d)](_0xb1294a=>{const _0x5d2347=_0x230e3a;console['warn'](_0xb1294a),this[_0x5d2347(0x115)]=a76_0x29f073[_0x5d2347(0x109)],this[_0x5d2347(0x102)](_0x5d2347(0x120));});}catch(_0x59a244){console[_0x230e3a(0x107)](_0x59a244),this[_0x230e3a(0x115)]=a76_0x29f073[_0x230e3a(0x109)],this[_0x230e3a(0x102)](_0x230e3a(0x120));}}['loadIcon'](_0x373bcf){const _0x79ca23=a76_0x1ebe;this[_0x79ca23(0x10b)]=new Icon({'src':_0x373bcf}),a76_0x41a52d[_0x79ca23(0x11f)](this['options'],this[_0x79ca23(0x10b)]);let _0x1f9a8d=this[_0x79ca23(0x10b)]['getImageState']();_0x1f9a8d===a76_0x29f073[_0x79ca23(0x10c)]||_0x1f9a8d===a76_0x29f073[_0x79ca23(0x109)]?(this[_0x79ca23(0x115)]=this['_icon']['getImageState'](),this[_0x79ca23(0x102)](_0x79ca23(0x11c))):(_0x1f9a8d===a76_0x29f073[_0x79ca23(0x117)]&&this[_0x79ca23(0x10b)]['load'](),this[_0x79ca23(0x10b)]['listenImageChange'](_0x2defb6=>{const _0x38d381=_0x79ca23;_0x1f9a8d=_0x2defb6[_0x38d381(0x101)][_0x38d381(0x11e)](),(_0x1f9a8d===a76_0x29f073[_0x38d381(0x10c)]||_0x1f9a8d===a76_0x29f073[_0x38d381(0x109)])&&(this[_0x38d381(0x115)]=this['_icon'][_0x38d381(0x11e)](),this[_0x38d381(0x102)]('load'));}));}[a76_0x3e4337(0x11e)](){const _0x58bcd6=a76_0x3e4337;return this[_0x58bcd6(0x115)];}[a76_0x3e4337(0x10e)](){const _0x18ef5e=a76_0x3e4337;var _0x3ac69a;return(_0x3ac69a=this[_0x18ef5e(0x10b)])===null||_0x3ac69a===void 0x0?void 0x0:_0x3ac69a[_0x18ef5e(0x10e)]();}[a76_0x3e4337(0x11a)](_0x525df7){const _0x576a00=a76_0x3e4337;this[_0x576a00(0x111)]=_0x525df7;}[a76_0x3e4337(0x102)](_0x16f54c){const _0x259bbc=a76_0x3e4337;if(this[_0x259bbc(0x111)]){let _0x5329b9=new a76_0x51597d(_0x16f54c);_0x5329b9[_0x259bbc(0x101)]=this,this[_0x259bbc(0x111)](_0x5329b9);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b8dff,_0x2bfa0d){const _0x105ab9=a77_0x4796,_0x45dc0d=_0x2b8dff();while(!![]){try{const _0x116560=-parseInt(_0x105ab9(0x202))/0x1+parseInt(_0x105ab9(0x1fc))/0x2*(-parseInt(_0x105ab9(0x222))/0x3)+-parseInt(_0x105ab9(0x203))/0x4*(-parseInt(_0x105ab9(0x1f6))/0x5)+parseInt(_0x105ab9(0x21c))/0x6*(parseInt(_0x105ab9(0x214))/0x7)+parseInt(_0x105ab9(0x206))/0x8*(parseInt(_0x105ab9(0x1f0))/0x9)+parseInt(_0x105ab9(0x220))/0xa+parseInt(_0x105ab9(0x1fe))/0xb;if(_0x116560===_0x2bfa0d)break;else _0x45dc0d['push'](_0x45dc0d['shift']());}catch(_0x4a1938){_0x45dc0d['push'](_0x45dc0d['shift']());}}}(a77_0x1063,0x9e1f5));function measureText(_0x21b97d,_0x56c22a,_0x1b5fc5,_0x348eb7,_0x977177){const _0x481335=a77_0x4796,_0xb004ee=_0x21b97d[_0x481335(0x212)](_0x56c22a),_0x1513b9=!/\S/[_0x481335(0x217)](_0x56c22a);if(!_0x1513b9&&document[_0x481335(0x211)]){const _0x473c8f=document[_0x481335(0x211)]['getComputedStyle'](_0x21b97d[_0x481335(0x1ff)])['getPropertyValue'](_0x481335(0x213))[_0x481335(0x208)]('px',''),_0x393ae6=document[_0x481335(0x21b)](_0x481335(0x1ff)),_0x1633c0=0x64,_0x289b36=_0xb004ee['width']+_0x1633c0|0x0,_0x41932f=0x3*(_0x473c8f-0x0),_0x1ea48b=_0x41932f/0x2;_0x393ae6[_0x481335(0x1f7)]=_0x289b36,_0x393ae6['height']=_0x41932f;const _0x3ef773=_0x393ae6[_0x481335(0x223)]('2d');if(!_0x3ef773)return{};_0x3ef773[_0x481335(0x21e)]=_0x1b5fc5,_0x3ef773['fillStyle']='white',_0x3ef773[_0x481335(0x224)](0x0,0x0,_0x393ae6[_0x481335(0x1f7)]+0x1,_0x393ae6[_0x481335(0x21d)]+0x1);_0x348eb7&&(_0x3ef773[_0x481335(0x216)]='black',_0x3ef773[_0x481335(0x218)]=_0x21b97d[_0x481335(0x218)],_0x3ef773[_0x481335(0x20e)](_0x56c22a,_0x1633c0/0x2,_0x1ea48b));_0x977177&&(_0x3ef773['fillStyle']='black',_0x3ef773['fillText'](_0x56c22a,_0x1633c0/0x2,_0x1ea48b));const _0x358b4c=_0x3ef773['getImageData'](0x0,0x0,_0x289b36,_0x41932f)[_0x481335(0x21f)],_0xb1632d=_0x358b4c['length'],_0x24fc4f=_0x289b36*0x4;let _0x15e307,_0x844071,_0x25d1a3=0x0,_0x1d1112=0x0;for(_0x15e307=0x0;_0x15e307<_0xb1632d;++_0x15e307){if(_0x358b4c[_0x15e307]!==0xff){_0x25d1a3=_0x15e307/_0x24fc4f|0x0;break;}}for(_0x15e307=_0xb1632d-0x1;_0x15e307>=0x0;--_0x15e307){if(_0x358b4c[_0x15e307]!==0xff){_0x1d1112=_0x15e307/_0x24fc4f|0x0;break;}}let _0x1bdaed=-0x1;for(_0x15e307=0x0;_0x15e307<_0x289b36&&_0x1bdaed===-0x1;++_0x15e307){for(_0x844071=0x0;_0x844071<_0x41932f;++_0x844071){const _0x276dbd=_0x15e307*0x4+_0x844071*_0x24fc4f;if(_0x358b4c[_0x276dbd]!==0xff||_0x358b4c[_0x276dbd+0x1]!==0xff||_0x358b4c[_0x276dbd+0x2]!==0xff||_0x358b4c[_0x276dbd+0x3]!==0xff){_0x1bdaed=_0x15e307;break;}}}return{'width':_0xb004ee[_0x481335(0x1f7)],'height':_0x1d1112-_0x25d1a3,'ascent':_0x1ea48b-_0x25d1a3,'descent':_0x1d1112-_0x1ea48b,'minx':_0x1bdaed-_0x1633c0/0x2};}return{'width':_0xb004ee[_0x481335(0x1f7)],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}let imageSmoothingEnabledName='';function a77_0x4796(_0x20b673,_0x277070){const _0x10639f=a77_0x1063();return a77_0x4796=function(_0x4796c6,_0x4ad3de){_0x4796c6=_0x4796c6-0x1f0;let _0xf031b5=_0x10639f[_0x4796c6];return _0xf031b5;},a77_0x4796(_0x20b673,_0x277070);}function writeTextToCanvas(_0x52d22e,_0x1a9a05){const _0x664c8a=a77_0x4796;if(!_0x52d22e)throw new Error(_0x664c8a(0x207));if(_0x52d22e==='')return undefined;_0x1a9a05=defaultValue(_0x1a9a05,{});const _0x11ca78=defaultValue(_0x1a9a05[_0x664c8a(0x21e)],_0x664c8a(0x221)),_0x1610bc=defaultValue(_0x1a9a05[_0x664c8a(0x20a)],![]),_0x1f821d=defaultValue(_0x1a9a05['fill'],!![]),_0x160a89=defaultValue(_0x1a9a05[_0x664c8a(0x1f2)],0x1),_0x25e7ff=defaultValue(_0x1a9a05['backgroundColor'],_0x664c8a(0x20d)),_0x47544a=defaultValue(_0x1a9a05[_0x664c8a(0x1f1)],0x0),_0x1fc3be=_0x47544a*0x2,_0x2fd50d=document['createElement'](_0x664c8a(0x1ff));_0x2fd50d[_0x664c8a(0x1f7)]=0x1,_0x2fd50d['height']=0x1,_0x2fd50d['style'][_0x664c8a(0x21e)]=_0x11ca78;const _0x47a735=_0x2fd50d[_0x664c8a(0x223)]('2d');if(!imageSmoothingEnabledName&&_0x47a735){if(_0x47a735[_0x664c8a(0x1f5)])imageSmoothingEnabledName=_0x664c8a(0x1f5);else{if(_0x47a735['mozImageSmoothingEnabled'])imageSmoothingEnabledName=_0x664c8a(0x205);else{if(_0x47a735['webkitImageSmoothingEnabled'])imageSmoothingEnabledName='webkitImageSmoothingEnabled';else _0x47a735[_0x664c8a(0x1fb)]&&(imageSmoothingEnabledName='msImageSmoothingEnabled');}}}_0x47a735['font']=_0x11ca78,_0x47a735[_0x664c8a(0x21a)]=_0x664c8a(0x219),_0x47a735['lineWidth']=_0x160a89,_0x47a735[imageSmoothingEnabledName]=![],_0x2fd50d['style']['visibility']=_0x664c8a(0x1f8),document[_0x664c8a(0x1fd)][_0x664c8a(0x215)](_0x2fd50d);const _0x2c15f4=measureText(_0x47a735,_0x52d22e,_0x11ca78,_0x1610bc,_0x1f821d);if(!_0x2c15f4)return;_0x2fd50d[_0x664c8a(0x1f9)]=_0x2c15f4,document[_0x664c8a(0x1fd)][_0x664c8a(0x209)](_0x2fd50d),_0x2fd50d[_0x664c8a(0x20c)][_0x664c8a(0x210)]='';const _0x522ece=-(_0x2c15f4[_0x664c8a(0x1fa)]?_0x2c15f4['minx']:0x0),_0x3030f1=Math[_0x664c8a(0x201)](_0x2c15f4[_0x664c8a(0x1f7)])+_0x522ece+_0x1fc3be,_0x1604af=(_0x2c15f4[_0x664c8a(0x21d)]?_0x2c15f4[_0x664c8a(0x21d)]:0x0)+_0x1fc3be,_0x1c1bf3=_0x1604af-(_0x2c15f4[_0x664c8a(0x20f)]?_0x2c15f4['ascent']:0x0)+_0x47544a,_0x2333b8=_0x1604af-_0x1c1bf3+_0x1fc3be;return _0x2fd50d[_0x664c8a(0x1f7)]=_0x3030f1,_0x2fd50d['height']=_0x1604af,_0x47a735[_0x664c8a(0x21e)]=_0x11ca78,_0x47a735['lineJoin']=_0x664c8a(0x219),_0x47a735[_0x664c8a(0x218)]=_0x160a89,_0x47a735[imageSmoothingEnabledName]=![],_0x25e7ff!==_0x664c8a(0x20d)&&(_0x47a735[_0x664c8a(0x1f3)]=_0x25e7ff,_0x47a735['fillRect'](0x0,0x0,_0x2fd50d['width'],_0x2fd50d[_0x664c8a(0x21d)])),_0x1610bc&&(_0x47a735[_0x664c8a(0x216)]=defaultValue(_0x1a9a05[_0x664c8a(0x204)],_0x664c8a(0x20b)),_0x47a735[_0x664c8a(0x20e)](_0x52d22e,_0x522ece+_0x47544a,_0x2333b8)),_0x1f821d&&(_0x47a735[_0x664c8a(0x1f3)]=defaultValue(_0x1a9a05[_0x664c8a(0x1f4)],'#FFFFFF'),_0x47a735[_0x664c8a(0x200)](_0x52d22e,_0x522ece+_0x47544a,_0x2333b8)),_0x2fd50d;}function defaultValue(_0x31e17f,_0x3408c0){if(_0x31e17f!==undefined&&_0x31e17f!==null)return _0x31e17f;return _0x3408c0;}export default writeTextToCanvas;function a77_0x1063(){const _0x772c10=['test','lineWidth','round','lineJoin','createElement','6kQQVxC','height','font','data','9698550porPBm','10px\x20sans-serif','33kxkabW','getContext','fillRect','41967cohxjj','padding','strokeWidth','fillStyle','fillColor','imageSmoothingEnabled','35khJlhP','width','hidden','dimensions','minx','msImageSmoothingEnabled','151666njMGaF','body','3352844bnoXOu','canvas','fillText','ceil','967751SnLPge','399332KznJXT','strokeColor','mozImageSmoothingEnabled','488cJBpmh','text\x20is\x20required.','replace','removeChild','stroke','#000000','style','#00000000','strokeText','ascent','visibility','defaultView','measureText','font-size','1341550urSOvx','appendChild','strokeStyle'];a77_0x1063=function(){return _0x772c10;};return a77_0x1063();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a82_0x337a5c=a82_0x2401;(function(_0x3d6003,_0x343de6){const _0x448da6=a82_0x2401,_0xe15f9b=_0x3d6003();while(!![]){try{const _0x36c1c7=-parseInt(_0x448da6(0xd4))/0x1*(-parseInt(_0x448da6(0xe2))/0x2)+parseInt(_0x448da6(0xe1))/0x3+parseInt(_0x448da6(0xd5))/0x4+-parseInt(_0x448da6(0xf4))/0x5*(parseInt(_0x448da6(0xe0))/0x6)+-parseInt(_0x448da6(0xf2))/0x7+-parseInt(_0x448da6(0xf3))/0x8*(-parseInt(_0x448da6(0xeb))/0x9)+parseInt(_0x448da6(0xdf))/0xa*(-parseInt(_0x448da6(0xd6))/0xb);if(_0x36c1c7===_0x343de6)break;else _0xe15f9b['push'](_0xe15f9b['shift']());}catch(_0x33e63a){_0xe15f9b['push'](_0xe15f9b['shift']());}}}(a82_0x6c8b,0x317ff));import a82_0x44882b from'ol/format/EsriJSON';import a82_0xcae5bc from'ol/format/GeoJSON';function a82_0x6c8b(){const _0x48debf=['identify','geometry','getSize','181113XQtsIN','1382556Eidigb','169565hTjWmO','getType','mapExtent','returnZ','inSR','valueOf','params','calculateExtent','getView','190dlcwrA','222yezlFP','620247aDNGZI','2DInObF','tolerance','run','getResolution','getProjection','path','_setGeometryParams','returnGeometry','resolution','9csHhsx','layerDefs','layers','between','geojsonTypeToArcGIS','returnM','getCode','1454040TkQTFO','2711144HDScPo','49870onrgBJ','url'];a82_0x6c8b=function(){return _0x48debf;};return a82_0x6c8b();}function a82_0x2401(_0x42ebb,_0x558b9d){const _0x6c8b5a=a82_0x6c8b();return a82_0x2401=function(_0x24010c,_0x542d76){_0x24010c=_0x24010c-0xd4;let _0x5a5ad8=_0x6c8b5a[_0x24010c];return _0x5a5ad8;},a82_0x2401(_0x42ebb,_0x558b9d);}import{getPointResolution}from'ol/proj';import a82_0x1bfd1c from'./Task';import{appendPath}from'../../UrlUtil';import{getEsriSpatialReference}from'../../EsriUtil';export default class Identify extends a82_0x1bfd1c{constructor(_0x1549ba,_0x1f73d4,_0x4d52ee){const _0x574787=a82_0x2401;super(_0x1549ba,_0x1f73d4,_0x4d52ee),this[_0x574787(0xe7)]=_0x574787(0xf6),this['params']={'layers':'all','tolerance':0x0,'returnGeometry':!![]},this[_0x574787(0xe3)]=0x3,this['resolution']=0x0,this[_0x574787(0xf5)]=appendPath(this[_0x574787(0xf5)],this[_0x574787(0xe7)]),_0x1f73d4&&((_0x1f73d4[_0x574787(0xe9)]===!![]||_0x1f73d4[_0x574787(0xe9)]===![])&&(this[_0x574787(0xdc)]['returnGeometry']=_0x1f73d4[_0x574787(0xe9)]),_0x1f73d4[_0x574787(0xed)]&&(this[_0x574787(0xdc)][_0x574787(0xed)]=_0x1f73d4[_0x574787(0xed)]),_0x1f73d4[_0x574787(0xec)]&&(this[_0x574787(0xdc)][_0x574787(0xec)]=_0x1f73d4[_0x574787(0xec)]),(_0x1f73d4[_0x574787(0xd9)]===!![]||_0x1f73d4[_0x574787(0xd9)]===![])&&(this[_0x574787(0xdc)][_0x574787(0xd9)]=_0x1f73d4[_0x574787(0xd9)]),(_0x1f73d4[_0x574787(0xf0)]===!![]||_0x1f73d4[_0x574787(0xf0)]===![])&&(this['params'][_0x574787(0xf0)]=_0x1f73d4[_0x574787(0xf0)]));}['at'](_0x35daee,_0x285c96){const _0x15fa6d=a82_0x2401;let _0x386d91,_0x38779a;const _0x51eb37=new a82_0xcae5bc();_0x386d91=_0x35daee,_0x38779a=getEsriSpatialReference(_0x285c96[_0x15fa6d(0xde)]()['getProjection']()[_0x15fa6d(0xf1)]());const _0x3fccc1=_0x285c96['getSize']();_0x3fccc1&&(this[_0x15fa6d(0xdc)]['imageDisplay']=[_0x3fccc1[0x0],_0x3fccc1[0x1],0x60]);this[_0x15fa6d(0xdc)]['sr']=_0x38779a;const _0x35e996=_0x285c96[_0x15fa6d(0xde)]()[_0x15fa6d(0xdd)](_0x285c96[_0x15fa6d(0xf8)]());this[_0x15fa6d(0xdc)][_0x15fa6d(0xd8)]={'xmin':_0x35e996[0x0],'ymin':_0x35e996[0x1],'xmax':_0x35e996[0x2],'ymax':_0x35e996[0x3],'spatialReference':_0x38779a};const _0x4a29d3=_0x285c96['getView']()[_0x15fa6d(0xe5)](),_0x206c43=_0x285c96['getView']()['getCenter']();return _0x4a29d3&&_0x206c43&&(this[_0x15fa6d(0xea)]=getPointResolution(_0x285c96[_0x15fa6d(0xde)]()['getProjection'](),_0x4a29d3,_0x206c43)),this['_setGeometryParams'](_0x386d91,_0x285c96[_0x15fa6d(0xde)]()[_0x15fa6d(0xe6)]()[_0x15fa6d(0xf1)]()),this;}[a82_0x337a5c(0xee)](_0x39dce4,_0x89f628){const _0xa3bce4=a82_0x337a5c;return this[_0xa3bce4(0xdc)]['time']=[_0x39dce4['valueOf'](),_0x89f628[_0xa3bce4(0xdb)]()],this;}[a82_0x337a5c(0xe4)](){this['request']();}[a82_0x337a5c(0xe8)](_0x187111,_0x9e8931){const _0x150f67=a82_0x337a5c;var _0x463dbf=new a82_0x44882b();const _0x1c5d2c=_0x463dbf['writeGeometryObject'](_0x187111);this[_0x150f67(0xdc)][_0x150f67(0xda)]=getEsriSpatialReference(_0x9e8931),this[_0x150f67(0xdc)][_0x150f67(0xf7)]=_0x1c5d2c,this[_0x150f67(0xdc)]['geometryType']=this[_0x150f67(0xef)](_0x187111[_0x150f67(0xd7)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83_0x4a6e16=a83_0x5705;(function(_0x494129,_0x1ef4e1){const _0xc6752c=a83_0x5705,_0xceacec=_0x494129();while(!![]){try{const _0x1fdbdb=parseInt(_0xc6752c(0x7d))/0x1+parseInt(_0xc6752c(0xa7))/0x2+parseInt(_0xc6752c(0xbb))/0x3+-parseInt(_0xc6752c(0xa3))/0x4*(parseInt(_0xc6752c(0x9a))/0x5)+parseInt(_0xc6752c(0x7b))/0x6*(parseInt(_0xc6752c(0x8a))/0x7)+-parseInt(_0xc6752c(0xa6))/0x8+-parseInt(_0xc6752c(0x9c))/0x9;if(_0x1fdbdb===_0x1ef4e1)break;else _0xceacec['push'](_0xceacec['shift']());}catch(_0x24beb7){_0xceacec['push'](_0xceacec['shift']());}}}(a83_0x2277,0x2c943));import a83_0x1af8bc from'ol/format/EsriJSON';import a83_0x1da4dd from'./Task';import{getEsriSpatialReference}from'../../EsriUtil';function a83_0x5705(_0x52ab91,_0x2763bf){const _0x2277a9=a83_0x2277();return a83_0x5705=function(_0x57051f,_0x45d112){_0x57051f=_0x57051f-0x75;let _0x10ee4e=_0x2277a9[_0x57051f];return _0x10ee4e;},a83_0x5705(_0x52ab91,_0x2763bf);}function a83_0x2277(){const _0x44f12d=['nearby','layer','one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes','returnZ','run','intersects','indexIntersects','code','esriSpatialRelTouches','abs','_trapSQLerrors','within','where','url','returnM','features','path','distance','317988dGUNWq','esriSpatialRelIndexIntersects','ASC','_cleanParams','returnIdsOnly','units','returnExtentOnly','status','21702lGkGFu','No\x20features\x20found','291047LlPsFN','count','outSR','esriSRUnit_Meter','geojsonTypeToArcGIS','contains','catch','esriSpatialRelEnvelopeIntersects','apply','bboxIntersects','ids','push','request','294vZYvsB','returnCountOnly','400','overlaps','simplify','esriSpatialRelCrosses','_setGeometryParams','returnDistinctValues','query','esriSpatialRelWithin','spatialRel','orderByFields','/query','esriSpatialRelContains','valueOf','writeGeometryObject','55iZbsep','inSR','2052855uAXGzA','returnGeometry','params','esriSpatialRelOverlaps','data','distinct','getExtent','6364QqnQii','getTime','forEach','1958896ZiRiKT','248192fmznBl','getType'];a83_0x2277=function(){return _0x44f12d;};return a83_0x2277();}import{appendPath}from'../../UrlUtil';export default class Query extends a83_0x1da4dd{constructor(_0x3224bf,_0x2c764d,_0x3105eb){const _0x5f3015=a83_0x5705;super(_0x3224bf,_0x2c764d,_0x3105eb),this['path']=_0x5f3015(0x92),this[_0x5f3015(0x9e)]={'returnGeometry':!![],'where':'1=1','outFields':'*','returnZ':![],'returnM':![],'t':new Date()[_0x5f3015(0xa4)]()},this['url']=appendPath(this[_0x5f3015(0xb6)],this[_0x5f3015(0xb9)]),_0x2c764d&&((_0x2c764d[_0x5f3015(0x9d)]===!![]||_0x2c764d[_0x5f3015(0x9d)]===![])&&(this[_0x5f3015(0x9e)][_0x5f3015(0x9d)]=_0x2c764d[_0x5f3015(0x9d)]),_0x2c764d['where']&&(this[_0x5f3015(0x9e)][_0x5f3015(0xb5)]=_0x2c764d[_0x5f3015(0xb5)]),_0x2c764d[_0x5f3015(0x7f)]&&(this['params'][_0x5f3015(0x7f)]=getEsriSpatialReference(_0x2c764d[_0x5f3015(0x7f)])),(_0x2c764d[_0x5f3015(0xac)]===!![]||_0x2c764d[_0x5f3015(0xac)]===![])&&(this[_0x5f3015(0x9e)][_0x5f3015(0xac)]=_0x2c764d[_0x5f3015(0xac)]),(_0x2c764d[_0x5f3015(0xb7)]===!![]||_0x2c764d[_0x5f3015(0xb7)]===![])&&(this[_0x5f3015(0x9e)][_0x5f3015(0xb7)]=_0x2c764d[_0x5f3015(0xb7)]));}[a83_0x4a6e16(0xb4)](_0x27125d,_0xb08f62){const _0x5967db=a83_0x4a6e16;return this[_0x5967db(0x90)](_0x27125d,_0xb08f62),this[_0x5967db(0x9e)][_0x5967db(0x94)]=_0x5967db(0x97),this;}[a83_0x4a6e16(0xae)](_0x2fca25,_0x454186){const _0x167538=a83_0x4a6e16;return this[_0x167538(0x90)](_0x2fca25,_0x454186),this[_0x167538(0x9e)][_0x167538(0x94)]='esriSpatialRelIntersects',this;}[a83_0x4a6e16(0x82)](_0x4bcc54,_0x5026c3){const _0x56f1b5=a83_0x4a6e16;return this['_setGeometryParams'](_0x4bcc54,_0x5026c3),this[_0x56f1b5(0x9e)][_0x56f1b5(0x94)]=_0x56f1b5(0x93),this;}['crosses'](_0xbd21d5,_0xa2cd48){const _0x434deb=a83_0x4a6e16;return this[_0x434deb(0x90)](_0xbd21d5,_0xa2cd48),this[_0x434deb(0x9e)][_0x434deb(0x94)]=_0x434deb(0x8f),this;}['touches'](_0x115b6d,_0x3ce0ff){const _0x41588d=a83_0x4a6e16;return this[_0x41588d(0x90)](_0x115b6d,_0x3ce0ff),this[_0x41588d(0x9e)][_0x41588d(0x94)]=_0x41588d(0xb1),this;}[a83_0x4a6e16(0x8d)](_0x23c312,_0x3ca251){const _0x145fd4=a83_0x4a6e16;return this[_0x145fd4(0x90)](_0x23c312,_0x3ca251),this[_0x145fd4(0x9e)]['spatialRel']=_0x145fd4(0x9f),this;}[a83_0x4a6e16(0x86)](_0x59b404,_0x440809){const _0x26e33a=a83_0x4a6e16;return this[_0x26e33a(0x90)](_0x59b404,_0x440809),this[_0x26e33a(0x9e)]['spatialRel']=_0x26e33a(0x84),this;}[a83_0x4a6e16(0xaf)](_0x27aead,_0x3e1c27){const _0x3940e3=a83_0x4a6e16;return this[_0x3940e3(0x90)](_0x27aead,_0x3e1c27),this[_0x3940e3(0x9e)][_0x3940e3(0x94)]=_0x3940e3(0xbc),this;}[a83_0x4a6e16(0xa9)](_0x3ba75c,_0x2b64a6,_0x5c16b7){const _0x38cfb8=a83_0x4a6e16;return this[_0x38cfb8(0x90)](_0x3ba75c,_0x2b64a6),this['params'][_0x38cfb8(0x94)]='esriSpatialRelIntersects',this[_0x38cfb8(0x9e)][_0x38cfb8(0x78)]=_0x38cfb8(0x80),this['params'][_0x38cfb8(0xba)]=_0x5c16b7,this;}['where'](_0x13962b){const _0x13244b=a83_0x4a6e16;return this[_0x13244b(0x9e)][_0x13244b(0xb5)]=_0x13962b,this;}['between'](_0x3686af,_0x4ac5f3){const _0x2d1592=a83_0x4a6e16;return this[_0x2d1592(0x9e)]['time']=[_0x3686af[_0x2d1592(0x98)](),_0x4ac5f3[_0x2d1592(0x98)]()],this;}[a83_0x4a6e16(0x8e)](_0x81b82,_0x45e477){const _0x2987ba=a83_0x4a6e16,_0x19da5a=_0x81b82[_0x2987ba(0xa2)]();var _0x1ae4c5=Math[_0x2987ba(0xb2)](_0x19da5a[0x2]-_0x19da5a[0x0]);const _0x17d889=_0x81b82['getSize']();if(_0x17d889)return this[_0x2987ba(0x9e)]['maxAllowableOffset']=_0x1ae4c5/_0x17d889[0x1]*_0x45e477,this;}['orderBy'](_0x45cc52,_0x1f6a6c){const _0x1f06d4=a83_0x4a6e16;return _0x1f6a6c=_0x1f6a6c||_0x1f06d4(0x75),this['params'][_0x1f06d4(0x95)]=this['params']['orderByFields']?this[_0x1f06d4(0x9e)][_0x1f06d4(0x95)]+',':'',this['params'][_0x1f06d4(0x95)]+=[_0x45cc52,_0x1f6a6c]['join']('\x20'),this;}async[a83_0x4a6e16(0xad)](){const _0x4619a0=a83_0x4a6e16;this[_0x4619a0(0x76)]();const _0x6e1bf=await this[_0x4619a0(0x89)]()[_0x4619a0(0x83)](_0x2dc791=>{throw new Error(_0x2dc791);});if(_0x6e1bf[_0x4619a0(0x7a)]!==0xc8)throw new Error(_0x4619a0(0x7c));if(_0x6e1bf['data']&&_0x6e1bf[_0x4619a0(0xa0)]['features']&&_0x6e1bf[_0x4619a0(0xa0)][_0x4619a0(0xb8)]['length']>0x0){var _0x25117d=new a83_0x1af8bc();let _0x265755=[];return _0x6e1bf[_0x4619a0(0xa0)][_0x4619a0(0xb8)][_0x4619a0(0xa5)](_0x3419c7=>{const _0x511741=_0x4619a0,_0x412def=_0x25117d['readFeature'](_0x3419c7);_0x265755[_0x511741(0x88)](_0x412def);}),_0x265755;}return[];}[a83_0x4a6e16(0x7e)](){const _0x25e308=a83_0x4a6e16;this[_0x25e308(0x76)](),this['params'][_0x25e308(0x8b)]=!![],this['request']();}[a83_0x4a6e16(0x87)](){const _0x43fe3c=a83_0x4a6e16;this[_0x43fe3c(0x76)](),this[_0x43fe3c(0x9e)][_0x43fe3c(0x77)]=!![],this[_0x43fe3c(0x89)]();}[a83_0x4a6e16(0xa1)](){const _0x5ad296=a83_0x4a6e16;return this[_0x5ad296(0x9e)][_0x5ad296(0x9d)]=![],this['params'][_0x5ad296(0x91)]=!![],this;}[a83_0x4a6e16(0xaa)](_0xb1158b){const _0x5c2a48=a83_0x4a6e16;return this[_0x5c2a48(0xb9)]=_0xb1158b+_0x5c2a48(0x96),this;}[a83_0x4a6e16(0xb3)](_0x1ca388){const _0x4469cc=a83_0x4a6e16;_0x1ca388&&(_0x1ca388[_0x4469cc(0xb0)]===_0x4469cc(0x8c)&&console['warn'][_0x4469cc(0x85)](_0x4469cc(0xab)));}[a83_0x4a6e16(0x76)](){const _0x3f285a=a83_0x4a6e16;delete this[_0x3f285a(0x9e)][_0x3f285a(0x77)],delete this[_0x3f285a(0x9e)][_0x3f285a(0x79)],delete this[_0x3f285a(0x9e)][_0x3f285a(0x8b)];}[a83_0x4a6e16(0x90)](_0x68681d,_0x465886){const _0x3840d7=a83_0x4a6e16;var _0x57aa0b=new a83_0x1af8bc();const _0x3f3cc4=_0x57aa0b[_0x3840d7(0x99)](_0x68681d);this[_0x3840d7(0x9e)][_0x3840d7(0x9b)]=getEsriSpatialReference(_0x465886),this['params']['geometry']=_0x3f3cc4,this[_0x3840d7(0x9e)]['geometryType']=this[_0x3840d7(0x81)](_0x68681d[_0x3840d7(0xa8)]());}}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a84_0x1a55a4=a84_0x42d7;(function(_0x2bb2b4,_0x4e938e){var _0x23be9a=a84_0x42d7,_0x231c84=_0x2bb2b4();while(!![]){try{var _0x517f42=parseInt(_0x23be9a(0x1ba))/0x1+parseInt(_0x23be9a(0x1c0))/0x2*(-parseInt(_0x23be9a(0x1b7))/0x3)+parseInt(_0x23be9a(0x1d0))/0x4+parseInt(_0x23be9a(0x1ca))/0x5*(-parseInt(_0x23be9a(0x1d2))/0x6)+parseInt(_0x23be9a(0x1ae))/0x7+parseInt(_0x23be9a(0x1c3))/0x8*(-parseInt(_0x23be9a(0x1b3))/0x9)+-parseInt(_0x23be9a(0x1bd))/0xa*(-parseInt(_0x23be9a(0x1cd))/0xb);if(_0x517f42===_0x4e938e)break;else _0x231c84['push'](_0x231c84['shift']());}catch(_0x2d11d3){_0x231c84['push'](_0x231c84['shift']());}}}(a84_0x13e7,0x8af72));import a84_0x51c411 from'../../AxiosUtil';function a84_0x42d7(_0x4a0e73,_0x13e884){var _0x13e7dd=a84_0x13e7();return a84_0x42d7=function(_0x42d7a5,_0x517710){_0x42d7a5=_0x42d7a5-0x1ae;var _0x5789e3=_0x13e7dd[_0x42d7a5];return _0x5789e3;},a84_0x42d7(_0x4a0e73,_0x13e884);}function a84_0x13e7(){var _0x4c0d52=['395643LdczmZ','returnUnformattedValues','esriGeometryMultipoint','94438fxyLJs','toString','MultiPoint','21380aNMmDj','call','MultiPolygon','6IHyeFh','GET','prototype','8RrgvQP','MultiLineString','method','JSONP','Point','request','isArcgisOnline','15815uBgrfD','esriGeometryPoint','params','4906knFrlj','[object\x20Object]','stringify','2941992Wyuser','test','1002wmCtRg','3021935RTgkrE','serialize','[object\x20Array]','[object\x20Date]','LineString','6499107ccLUcU','url','get','esriGeometryPolygon'];a84_0x13e7=function(){return _0x4c0d52;};return a84_0x13e7();}import{jsonp,stringify}from'../../AxiosUtil';export default class Task{constructor(_0x5a7fc8,_0x59f8cf,_0x17a229){var _0x4c6731=a84_0x42d7;this['url']=_0x5a7fc8,this[_0x4c6731(0x1cc)]=_0x59f8cf||{},this['method']=!_0x17a229?_0x4c6731(0x1c1):_0x17a229;}['geojsonTypeToArcGIS'](_0x1e7cb3){var _0x1d1845=a84_0x42d7,_0x4e83d8;switch(_0x1e7cb3){case _0x1d1845(0x1c7):_0x4e83d8=_0x1d1845(0x1cb);break;case _0x1d1845(0x1bc):_0x4e83d8=_0x1d1845(0x1b9);break;case _0x1d1845(0x1b2):_0x4e83d8='esriGeometryPolyline';break;case _0x1d1845(0x1c4):_0x4e83d8='esriGeometryPolyline';break;case'Polygon':_0x4e83d8=_0x1d1845(0x1b6);break;case _0x1d1845(0x1bf):_0x4e83d8='esriGeometryPolygon';break;}return _0x4e83d8;}[a84_0x1a55a4(0x1c9)](_0x562953){var _0xebc2ba=a84_0x1a55a4;return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i[_0xebc2ba(0x1d1)](_0x562953);}['serialize'](_0x22025c){var _0x37ae18=a84_0x1a55a4,_0x22793a='';_0x22025c['f']=_0x22025c['f']||'json';for(var _0x33a3c6 in _0x22025c){if(Object[_0x37ae18(0x1c2)]['hasOwnProperty'][_0x37ae18(0x1be)](_0x22025c,_0x33a3c6)){var _0x550dc2=_0x22025c[_0x33a3c6],_0xdfd343=Object['prototype'][_0x37ae18(0x1bb)][_0x37ae18(0x1be)](_0x550dc2),_0x1b24ab;_0x22793a['length']&&(_0x22793a+='&');if(_0xdfd343===_0x37ae18(0x1b0))_0x1b24ab=Object[_0x37ae18(0x1c2)][_0x37ae18(0x1bb)][_0x37ae18(0x1be)](_0x550dc2[0x0])===_0x37ae18(0x1ce)?JSON[_0x37ae18(0x1cf)](_0x550dc2):_0x550dc2['join'](',');else{if(_0xdfd343==='[object\x20Object]')_0x1b24ab=JSON[_0x37ae18(0x1cf)](_0x550dc2);else _0xdfd343===_0x37ae18(0x1b1)?_0x1b24ab=_0x550dc2['valueOf']():_0x1b24ab=_0x550dc2;}_0x22793a+=encodeURIComponent(_0x33a3c6)+'='+encodeURIComponent(_0x1b24ab);}}return _0x22793a;}['format'](_0x37de0c){var _0x3a4f5e=a84_0x1a55a4;return this[_0x3a4f5e(0x1cc)][_0x3a4f5e(0x1b8)]=!_0x37de0c,this;}async[a84_0x1a55a4(0x1c8)](){var _0xc9b666=a84_0x1a55a4,_0x1d37d1=this[_0xc9b666(0x1af)](this[_0xc9b666(0x1cc)]);const _0xd905fa=this['url']['indexOf']('?')>-0x1?this[_0xc9b666(0x1b4)]+'&'+_0x1d37d1:this[_0xc9b666(0x1b4)]+'?'+_0x1d37d1;if(this[_0xc9b666(0x1c5)]==='GET')return a84_0x51c411[_0xc9b666(0x1b5)](_0xd905fa);else{if(this[_0xc9b666(0x1c5)]===_0xc9b666(0x1c6))return jsonp(_0xd905fa);else{const _0x2ad9b0=stringify(this[_0xc9b666(0x1cc)]);return a84_0x51c411['post'](this[_0xc9b666(0x1b4)],_0x2ad9b0);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a86_0x1e29(_0x3a08de,_0x440c4f){const _0xd4ded6=a86_0xd4de();return a86_0x1e29=function(_0x1e29a6,_0x3a75ef){_0x1e29a6=_0x1e29a6-0x19f;let _0x83da2a=_0xd4ded6[_0x1e29a6];return _0x83da2a;},a86_0x1e29(_0x3a08de,_0x440c4f);}const a86_0x140407=a86_0x1e29;(function(_0x2e5a55,_0x310649){const _0x293a10=a86_0x1e29,_0x42634a=_0x2e5a55();while(!![]){try{const _0x1fda08=parseInt(_0x293a10(0x1be))/0x1*(parseInt(_0x293a10(0x1a2))/0x2)+-parseInt(_0x293a10(0x1a1))/0x3*(-parseInt(_0x293a10(0x1bf))/0x4)+-parseInt(_0x293a10(0x1b3))/0x5*(parseInt(_0x293a10(0x1aa))/0x6)+-parseInt(_0x293a10(0x1b0))/0x7*(parseInt(_0x293a10(0x1b5))/0x8)+parseInt(_0x293a10(0x1a9))/0x9+parseInt(_0x293a10(0x1a6))/0xa+parseInt(_0x293a10(0x1b9))/0xb*(-parseInt(_0x293a10(0x1b6))/0xc);if(_0x1fda08===_0x310649)break;else _0x42634a['push'](_0x42634a['shift']());}catch(_0x1bb0b8){_0x42634a['push'](_0x42634a['shift']());}}}(a86_0xd4de,0x4a4b3));import{and,intersects}from'ol/format/filter';import a86_0xf4d762 from'../../format/CQL';import a86_0x509712 from'ol/format/WFS';import a86_0x2a40b6 from'ol/format/GeoJSON';function a86_0xd4de(){const _0x55352c=['_geoserverQuery','url','38829ldptmN','2wMBbgC','the_geom','POST','writeGetFeature','889850qJTIlR','error','tableName','3952008wyDQhz','30hASeqD','where','catch','srsName','srsName\x20is\x20required','features','1241653rnastJ','json','read','135635xEUhRD','readFeature','24uQbnzx','12pxqbYS','stringify','geometryName','4792348STCyco','serializeToString','application/json','geometry','queryParameters','452531vlOfcH','132jjhIro','map'];a86_0xd4de=function(){return _0x55352c;};return a86_0xd4de();}export default class QueryTask{constructor(_0x5afadd){const _0x3b71e8=a86_0x1e29;this[_0x3b71e8(0x1bd)]={},this[_0x3b71e8(0x1a0)]=_0x5afadd;}async['execute'](_0x43af81){const _0x5374c1=a86_0x1e29;this[_0x5374c1(0x1bd)]=_0x43af81||{};const _0x5d3359=this[_0x5374c1(0x1bd)][_0x5374c1(0x1b8)]||_0x5374c1(0x1a3);let _0x2bd191=this[_0x5374c1(0x1bd)][_0x5374c1(0x1ab)],_0x5e879e;_0x2bd191&&(_0x5e879e=new a86_0xf4d762()[_0x5374c1(0x1b2)](_0x2bd191));let _0x39a296=_0x5e879e;if(this['queryParameters'][_0x5374c1(0x1bc)]){if(!this[_0x5374c1(0x1bd)]['srsName'])throw new Error(_0x5374c1(0x1ae));const _0x45921e=intersects(_0x5d3359,this[_0x5374c1(0x1bd)][_0x5374c1(0x1bc)]);_0x39a296=_0x5e879e?and(_0x5e879e,_0x45921e):_0x45921e;}let _0x116910=new a86_0x509712()[_0x5374c1(0x1a5)]({'srsName':this[_0x5374c1(0x1bd)][_0x5374c1(0x1ad)],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x5374c1(0x1bd)][_0x5374c1(0x1a8)]],'outputFormat':'application/json','geometryName':_0x5d3359,'filter':_0x39a296});const _0x3e468e=await fetch(this[_0x5374c1(0x1a0)],{'method':'POST','body':new XMLSerializer()[_0x5374c1(0x1ba)](_0x116910)}),_0x277d4b=await _0x3e468e[_0x5374c1(0x1b1)]();let _0x573653=[];const _0x48f984=new a86_0x2a40b6();return _0x573653=_0x277d4b[_0x5374c1(0x1af)][_0x5374c1(0x1c0)](_0x40292c=>{const _0x428ab6=_0x5374c1;return _0x48f984[_0x428ab6(0x1b4)](JSON[_0x428ab6(0x1b7)](_0x40292c));}),_0x573653;}[a86_0x140407(0x19f)](){const _0xb4a812=a86_0x140407,_0x53e39a=this[_0xb4a812(0x1bd)][_0xb4a812(0x1b8)]||_0xb4a812(0x1a3);let _0x5a8ac1=this['queryParameters'][_0xb4a812(0x1ab)],_0x4237d9;_0x5a8ac1&&(_0x4237d9=new a86_0xf4d762()[_0xb4a812(0x1b2)](_0x5a8ac1));let _0x2e92ea=_0x4237d9;if(this[_0xb4a812(0x1bd)][_0xb4a812(0x1bc)]){const _0x2f5e72=intersects(_0x53e39a,this['queryParameters'][_0xb4a812(0x1bc)]);_0x2e92ea=_0x4237d9?and(_0x4237d9,_0x2f5e72):_0x2f5e72;}let _0x1dcae5=new a86_0x509712()['writeGetFeature']({'srsName':this[_0xb4a812(0x1bd)]['srsName'],'featureNS':'','featurePrefix':'','featureTypes':[this[_0xb4a812(0x1bd)][_0xb4a812(0x1a8)]],'outputFormat':_0xb4a812(0x1bb),'geometryName':_0x53e39a,'filter':_0x2e92ea});return new Promise(_0x39ef32=>{const _0x11555b=_0xb4a812;fetch(this[_0x11555b(0x1a0)],{'method':_0x11555b(0x1a4),'body':new XMLSerializer()[_0x11555b(0x1ba)](_0x1dcae5)})['then'](_0x1e2ecc=>{const _0x4ffe2e=_0x11555b;return _0x1e2ecc[_0x4ffe2e(0x1b1)]();})['then'](_0x32a55c=>{const _0x5aec68=_0x11555b;let _0x3b2ba9=[];const _0x5650aa=new a86_0x2a40b6();_0x3b2ba9=_0x32a55c[_0x5aec68(0x1af)][_0x5aec68(0x1c0)](_0x3deda=>{const _0x463197=_0x5aec68;return _0x5650aa['readFeature'](JSON[_0x463197(0x1b7)](_0x3deda));}),_0x39ef32(_0x3b2ba9);})[_0x11555b(0x1ac)](_0x8f2732=>{const _0x5df242=_0x11555b;_0x39ef32([]),console[_0x5df242(0x1a7)](_0x8f2732);});});}}
|