You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
35 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[171],{423:function(e,t,r){"use strict";r.r(t);var o=r(3),n=r(10),i=r(2),a=r(27),p=r(138),s=r(39),c=r(23),u=r(36),l=r(72),b=r(87),g=r(32),y=r(0),m=r(12),O=r(1),h=r(17),w=r(4),f=r(6),j=r(41),d=s.a+" http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd",v={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},S=function(e){function t(t){var r=t||{};e.call(this,r),this.surface_=void 0!==r.surface&&r.surface,this.curve_=void 0!==r.curve&&r.curve,this.multiCurve_=void 0===r.multiCurve||r.multiCurve,this.multiSurface_=void 0===r.multiSurface||r.multiSurface,this.schemaLocation=r.schemaLocation?r.schemaLocation:d,this.hasZ=void 0!==r.hasZ&&r.hasZ}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.readMultiCurve=function(e,t){var r=Object(y.u)([],this.MULTICURVE_PARSERS,e,t,this);return r?new l.a(r):void 0},t.prototype.readMultiSurface=function(e,t){var r=Object(y.u)([],this.MULTISURFACE_PARSERS,e,t,this);if(r)return new b.a(r)},t.prototype.curveMemberParser=function(e,t){Object(y.t)(this.CURVEMEMBER_PARSERS,e,t,this)},t.prototype.surfaceMemberParser=function(e,t){Object(y.t)(this.SURFACEMEMBER_PARSERS,e,t,this)},t.prototype.readPatch=function(e,t){return Object(y.u)([null],this.PATCHES_PARSERS,e,t,this)},t.prototype.readSegment=function(e,t){return Object(y.u)([null],this.SEGMENTS_PARSERS,e,t,this)},t.prototype.readPolygonPatch=function(e,t){return Object(y.u)([null],this.FLAT_LINEAR_RINGS_PARSERS,e,t,this)},t.prototype.readLineStringSegment=function(e,t){return Object(y.u)([null],this.GEOMETRY_FLAT_COORDINATES_PARSERS,e,t,this)},t.prototype.interiorParser=function(e,t){var r=Object(y.u)(void 0,this.RING_PARSERS,e,t,this);r&&t[t.length-1].push(r)},t.prototype.exteriorParser=function(e,t){var r=Object(y.u)(void 0,this.RING_PARSERS,e,t,this);r&&(t[t.length-1][0]=r)},t.prototype.readSurface=function(e,t){var r=Object(y.u)([null],this.SURFACE_PARSERS,e,t,this);if(r&&r[0]){var o,n,i=r[0],a=[i.length];for(o=1,n=r.length;o<n;++o)Object(h.c)(i,r[o]),a.push(i.length);return new g.b(i,c.a.XYZ,a)}},t.prototype.readCurve=function(e,t){var r=Object(y.u)([null],this.CURVE_PARSERS,e,t,this);return r?new u.a(r,c.a.XYZ):void 0},t.prototype.readEnvelope=function(e,t){var r=Object(y.u)([null],this.ENVELOPE_PARSERS,e,t,this);return Object(O.l)(r[1][0],r[1][1],r[2][0],r[2][1])},t.prototype.readFlatPos=function(e,t){for(var r,o=Object(y.d)(e,!1),n=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/,i=[];r=n.exec(o);)i.push(parseFloat(r[1])),o=o.substr(r[0].length);if(""===o){var a,p,s=t[0].srsName,c="enu";if(s)c=Object(w.j)(s).getAxisOrientation();if("neu"===c)for(a=0,p=i.length;a<p;a+=3){var u=i[a],l=i[a+1];i[a]=l,i[a+1]=u}var b=i.length;if(2==b&&i.push(0),0!==b)return i}},t.prototype.readFlatPosList=function(e,t){var r=Object(y.d)(e,!1).replace(/^\s*|\s*$/g,""),o=t[0],n=o.srsName,i=o.srsDimension,a="enu";n&&(a=Object(w.j)(n).getAxisOrientation());var p,s,c,u=r.split(/\s+/),l=2;e.getAttribute("srsDimension")?l=Object(f.g)(e.getAttribute("srsDimension")):e.getAttribute("dimension")?l=Object(f.g)(e.getAttribute("dimension")):e.parentNode.getAttribute("srsDimension")?l=Object(f.g)(e.parentNode.getAttribute("srsDimension")):i&&(l=Object(f.g)(i));for(var b=[],g=0,m=u.length;g<m;g+=l)p=parseFloat(u[g]),s=parseFloat(u[g+1]),c=3===l?parseFloat(u[g+2]):0,"en"===a.substr(0,2)?b.push(p,s,c):b.push(s,p,c);return b},t.prototype.writePos_=function(e,t,r){var o=r[r.length-1],n=o.hasZ,i=n?"3":"2";e.setAttribute("srsDimension",i);var a=o.srsName,p="enu";a&&(p=Object(w.j)(a).getAxisOrientation());var s,c=t.getCoordinates();(s="en"===p.substr(0,2)?c[0]+" "+c[1]:c[1]+" "+c[0],n)&&(s+=" "+(c[2]||0));Object(f.n)(e,s)},t.prototype.getCoords_=function(e,t,r){var o="enu";t&&(o=Object(w.j)(t).getAxisOrientation());var n="en"===o.substr(0,2)?e[0]+" "+e[1]:e[1]+" "+e[0];r&&(n+=" "+(e[2]||0));return n},t.prototype.writePosList_=function(e,t,r){var o=r[r.length-1],n=o.hasZ,i=n?"3":"2";e.setAttribute("srsDimension",i);for(var a,p=o.srsName,s=t.getCoordinates(),c=s.length,u=new Array(c),l=0;l<c;++l)a=s[l],u[l]=this.getCoords_(a,p,n);Object(f.n)(e,u.join(" "))},t.prototype.writePoint=function(e,t,r){var o=r[r.length-1].srsName;o&&e.setAttribute("srsName",o);var n=Object(y.c)(e.namespaceURI,"pos");e.appendChild(n),this.writePos_(n,t,r)},t.prototype.writeEnvelope=function(e,t,r){var o=r[r.length-1].srsName;o&&e.setAttribute("srsName",o);var n=[t[0]+" "+t[1],t[2]+" "+t[3]];Object(y.v)({node:e},this.ENVELOPE_SERIALIZERS,y.a,n,r,["lowerCorner","upperCorner"],this)},t.prototype.writeLinearRing=function(e,t,r){var o=r[r.length-1].srsName;o&&e.setAttribute("srsName",o);var n=Object(y.c)(e.namespaceURI,"posList");e.appendChild(n),this.writePosList_(n,t,r)},t.prototype.RING_NODE_FACTORY_=function(e,t,r){var o=t[t.length-1],n=o.node,i=o.exteriorWritten;return void 0===i&&(o.exteriorWritten=!0),Object(y.c)(n.namespaceURI,void 0!==i?"interior":"exterior")},t.prototype.writeSurfaceOrPolygon=function(e,t,r){var o=r[r.length-1],n=o.hasZ,i=o.srsName;if("PolygonPatch"!==e.nodeName&&i&&e.setAttribute("srsName",i),"Polygon"===e.nodeName||"PolygonPatch"===e.nodeName){var a=t.getLinearRings();Object(y.v)({node:e,hasZ:n,srsName:i},this.RING_SERIALIZERS,this.RING_NODE_FACTORY_,a,r,void 0,this)}else if("Surface"===e.nodeName){var p=Object(y.c)(e.namespaceURI,"patches");e.appendChild(p),this.writeSurfacePatches_(p,t,r)}},t.prototype.writeCurveOrLineString=function(e,t,r){var o=r[r.length-1].srsName;if("LineStringSegment"!==e.nodeName&&o&&e.setAttribute("srsName",o),"LineString"===e.nodeName||"LineStringSegment"===e.nodeName){var n=Object(y.c)(e.namespaceURI,"posList");e.appendChild(n),this.writePosList_(n,t,r)}else if("Curve"===e.nodeName){var i=Object(y.c)(e.namespaceURI,"segments");e.appendChild(i),this.writeCurveSegments_(i,t,r)}},t.prototype.writeMultiSurfaceOrPolygon=function(e,t,r){var o=r[r.length-1],n=o.hasZ,i=o.srsName,a=o.surface;i&&e.setAttribute("srsName",i);var p=t.getPolygons();Object(y.v)({node:e,hasZ:n,srsName:i,surface:a},this.SURFACEORPOLYGONMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,p,r,void 0,this)},t.prototype.writeMultiPoint=function(e,t,r){var o=r[r.length-1],n=o.srsName,i=o.hasZ;n&&e.setAttribute("srsName",n);var a=t.getPoints();Object(y.v)({node:e,hasZ:i,srsName:n},this.POINTMEMBER_SERIALIZERS,Object(y.q)("pointMember"),a,r,void 0,this)},t.prototype.writeMultiCurveOrLineString=function(e,t,r){var o=r[r.length-1],n=o.hasZ,i=o.srsName,a=o.curve;i&&e.setAttribute("srsName",i);var p=t.getLineStrings();Object(y.v)({node:e,hasZ:n,srsName:i,curve:a},this.LINESTRINGORCURVEMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,p,r,void 0,this)},t.prototype.writeRing=function(e,t,r){var o=Object(y.c)(e.namespaceURI,"LinearRing");e.appendChild(o),this.writeLinearRing(o,t,r)},t.prototype.writeSurfaceOrPolygonMember=function(e,t,r){var o=this.GEOMETRY_NODE_FACTORY_(t,r);o&&(e.appendChild(o),this.writeSurfaceOrPolygon(o,t,r))},t.prototype.writePointMember=function(e,t,r){var o=Object(y.c)(e.namespaceURI,"Point");e.appendChild(o),this.writePoint(o,t,r)},t.prototype.writeLineStringOrCurveMember=function(e,t,r){var o=this.GEOMETRY_NODE_FACTORY_(t,r);o&&(e.appendChild(o),this.writeCurveOrLineString(o,t,r))},t.prototype.writeSurfacePatches_=function(e,t,r){var o=Object(y.c)(e.namespaceURI,"PolygonPatch");e.appendChild(o),this.writeSurfaceOrPolygon(o,t,r)},t.prototype.writeCurveSegments_=function(e,t,r){var o=Object(y.c)(e.namespaceURI,"LineStringSegment");e.appendChild(o),this.writeCurveOrLineString(o,t,r)},t.prototype.writeGeometryElement=function(e,t,r){var o,n=r[r.length-1],i=Object(m.a)({},n);i.node=e,o=Array.isArray(t)?Object(j.b)(t,n):Object(j.c)(t,!0,n),Object(y.v)(i,this.GEOMETRY_SERIALIZERS,this.GEOMETRY_NODE_FACTORY_,[o],r,void 0,this)},t.prototype.writeFeatureElement=function(e,t,r){var o=t.getId();o&&e.setAttribute("fid",o);var n=r[r.length-1],i=n.featureNS,a=t.getGeometryName();n.serializers||(n.serializers={},n.serializers[i]={});var p=[],s=[];if(t.hasProperties()){var c=t.getProperties();for(var u in c){var l=c[u];null!==l&&(p.push(u),s.push(l),u==a||"function"==typeof l.getSimplifiedGeometry?u in n.serializers[i]||(n.serializers[i][u]=Object(y.l)(this.writeGeometryElement,this)):u in n.serializers[i]||(n.serializers[i][u]=Object(y.l)(f.n)))}}var b=Object(m.a)({},n);b.node=e,Object(y.v)(b,n.serializers,Object(y.q)(void 0,i),s,r,p)},t.prototype.writeFeatureMembers_=function(e,t,r){var o=r[r.length-1],n=o.featureType,i=o.featureNS,a={};a[i]={},a[i][n]=Object(y.l)(this.writeFeatureElement,this);var p=Object(m.a)({},o);p.node=e,Object(y.v)(p,a,Object(y.q)(n,i),t,r)},t.prototype.MULTIGEOMETRY_MEMBER_NODE_FACTORY_=function(e,t,r){var o=t[t.length-1].node;return Object(y.c)(this.namespace,v[o.nodeName])},t.prototype.GEOMETRY_NODE_FACTORY_=function(e,t,r){var o,n=t[t.length-1],i=n.multiSurface,a=n.surface,p=n.curve,s=n.multiCurve;return Array.isArray(e)?o="Envelope":"MultiPolygon"===(o=e.getType())&&!0===i?o="MultiSurface":"Polygon"===o&&!0===a?o="Surface":"LineString"===o&&!0===p?o="Curve":"MultiLineString"===o&&!0===s&&(o="MultiCurve"),Object(y.c)(this.namespace,o)},t.prototype.writeGeometryNode=function(e,t){t=this.adaptOptions(t);var r=Object(y.c)(this.namespace,"geom"),o={node:r,hasZ:this.hasZ,srsName:this.srsName,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_};return t&&Object(m.a)(o,t),this.writeGeometryElement(r,e,[o]),r},t.prototype.writeFeaturesNode=function(e,t){t=this.adaptOptions(t);var r=Object(y.c)(this.namespace,"featureMembers");r.setAttributeNS(y.b,"xsi:schemaLocation",this.schemaLocation);var o={srsName:this.srsName,hasZ:this.hasZ,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_,featureNS:this.featureNS,featureType:this.featureType};return t&&Object(m.a)(o,t),this.writeFeatureMembers_(r,e,[o]),r},t}(s.b);S.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{pos:Object(y.o)(S.prototype.readFlatPos),posList:Object(y.o)(S.prototype.readFlatPosList),coordinates:Object(y.o)(p.a.prototype.readFlatCoordinates)}},S.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{interior:S.prototype.interiorParser,exterior:S.prototype.exteriorParser}},S.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:Object(y.o)(s.b.prototype.readPoint),MultiPoint:Object(y.o)(s.b.prototype.readMultiPoint),LineString:Object(y.o)(s.b.prototype.readLineString),MultiLineString:Object(y.o)(s.b.prototype.readMultiLineString),LinearRing:Object(y.o)(s.b.prototype.readLinearRing),Polygon:Object(y.o)(s.b.prototype.readPolygon),MultiPolygon:Object(y.o)(s.b.prototype.readMultiPolygon),Surface:Object(y.o)(S.prototype.readSurface),MultiSurface:Object(y.o)(S.prototype.readMultiSurface),Curve:Object(y.o)(S.prototype.readCurve),MultiCurve:Object(y.o)(S.prototype.readMultiCurve),Envelope:Object(y.o)(S.prototype.readEnvelope)}},S.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml":{curveMember:Object(y.j)(S.prototype.curveMemberParser),curveMembers:Object(y.j)(S.prototype.curveMemberParser)}},S.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml":{surfaceMember:Object(y.j)(S.prototype.surfaceMemberParser),surfaceMembers:Object(y.j)(S.prototype.surfaceMemberParser)}},S.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml":{LineString:Object(y.j)(s.b.prototype.readLineString),Curve:Object(y.j)(S.prototype.readCurve)}},S.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml":{Polygon:Object(y.j)(s.b.prototype.readPolygon),Surface:Object(y.j)(S.prototype.readSurface)}},S.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml":{patches:Object(y.o)(S.prototype.readPatch)}},S.prototype.CURVE_PARSERS={"http://www.opengis.net/gml":{segments:Object(y.o)(S.prototype.readSegment)}},S.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml":{lowerCorner:Object(y.j)(S.prototype.readFlatPosList),upperCorner:Object(y.j)(S.prototype.readFlatPosList)}},S.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml":{PolygonPatch:Object(y.o)(S.prototype.readPolygonPatch)}},S.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml":{LineStringSegment:Object(y.o)(S.prototype.readLineStringSegment)}},S.prototype.writeFeatures,S.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml":{exterior:Object(y.l)(S.prototype.writeRing),interior:Object(y.l)(S.prototype.writeRing)}},S.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml":{lowerCorner:Object(y.l)(f.n),upperCorner:Object(y.l)(f.n)}},S.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{surfaceMember:Object(y.l)(S.prototype.writeSurfaceOrPolygonMember),polygonMember:Object(y.l)(S.prototype.writeSurfaceOrPolygonMember)}},S.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{pointMember:Object(y.l)(S.prototype.writePointMember)}},S.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{lineStringMember:Object(y.l)(S.prototype.writeLineStringOrCurveMember),curveMember:Object(y.l)(S.prototype.writeLineStringOrCurveMember)}},S.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml":{Curve:Object(y.l)(S.prototype.writeCurveOrLineString),MultiCurve:Object(y.l)(S.prototype.writeMultiCurveOrLineString),Point:Object(y.l)(S.prototype.writePoint),MultiPoint:Object(y.l)(S.prototype.writeMultiPoint),LineString:Object(y.l)(S.prototype.writeCurveOrLineString),MultiLineString:Object(y.l)(S.prototype.writeMultiCurveOrLineString),LinearRing:Object(y.l)(S.prototype.writeLinearRing),Polygon:Object(y.l)(S.prototype.writeSurfaceOrPolygon),MultiPolygon:Object(y.l)(S.prototype.writeMultiSurfaceOrPolygon),Surface:Object(y.l)(S.prototype.writeSurfaceOrPolygon),MultiSurface:Object(y.l)(S.prototype.writeMultiSurfaceOrPolygon),Envelope:Object(y.l)(S.prototype.writeEnvelope)}};var E=S,R=function(e){function t(t){var r=t||{};e.call(this,r),this.schemaLocation=r.schemaLocation?r.schemaLocation:this.namespace+" http://schemas.opengis.net/gml/3.2.1/gml.xsd"}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(E);R.prototype.namespace="http://www.opengis.net/gml/3.2",R.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml/3.2":{pos:Object(y.o)(E.prototype.readFlatPos),posList:Object(y.o)(E.prototype.readFlatPosList),coordinates:Object(y.o)(p.a.prototype.readFlatCoordinates)}},R.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml/3.2":{interior:E.prototype.interiorParser,exterior:E.prototype.exteriorParser}},R.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml/3.2":{Point:Object(y.o)(s.b.prototype.readPoint),MultiPoint:Object(y.o)(s.b.prototype.readMultiPoint),LineString:Object(y.o)(s.b.prototype.readLineString),MultiLineString:Object(y.o)(s.b.prototype.readMultiLineString),LinearRing:Object(y.o)(s.b.prototype.readLinearRing),Polygon:Object(y.o)(s.b.prototype.readPolygon),MultiPolygon:Object(y.o)(s.b.prototype.readMultiPolygon),Surface:Object(y.o)(R.prototype.readSurface),MultiSurface:Object(y.o)(E.prototype.readMultiSurface),Curve:Object(y.o)(R.prototype.readCurve),MultiCurve:Object(y.o)(E.prototype.readMultiCurve),Envelope:Object(y.o)(R.prototype.readEnvelope)}},R.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml/3.2":{curveMember:Object(y.j)(E.prototype.curveMemberParser),curveMembers:Object(y.j)(E.prototype.curveMemberParser)}},R.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{surfaceMember:Object(y.j)(E.prototype.surfaceMemberParser),surfaceMembers:Object(y.j)(E.prototype.surfaceMemberParser)}},R.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:Object(y.j)(s.b.prototype.readLineString),Curve:Object(y.j)(E.prototype.readCurve)}},R.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:Object(y.j)(s.b.prototype.readPolygon),Surface:Object(y.j)(E.prototype.readSurface)}},R.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{patches:Object(y.o)(E.prototype.readPatch)}},R.prototype.CURVE_PARSERS={"http://www.opengis.net/gml/3.2":{segments:Object(y.o)(E.prototype.readSegment)}},R.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml/3.2":{lowerCorner:Object(y.j)(E.prototype.readFlatPosList),upperCorner:Object(y.j)(E.prototype.readFlatPosList)}},R.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml/3.2":{PolygonPatch:Object(y.o)(E.prototype.readPolygonPatch)}},R.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml/3.2":{LineStringSegment:Object(y.o)(E.prototype.readLineStringSegment)}},R.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml/3.2":{pointMember:Object(y.j)(s.b.prototype.pointMemberParser),pointMembers:Object(y.j)(s.b.prototype.pointMemberParser)}},R.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml/3.2":{lineStringMember:Object(y.j)(s.b.prototype.lineStringMemberParser),lineStringMembers:Object(y.j)(s.b.prototype.lineStringMemberParser)}},R.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml/3.2":{polygonMember:Object(y.j)(s.b.prototype.polygonMemberParser),polygonMembers:Object(y.j)(s.b.prototype.polygonMemberParser)}},R.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Point:Object(y.j)(s.b.prototype.readFlatCoordinatesFromNode)}},R.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:Object(y.j)(s.b.prototype.readLineString)}},R.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:Object(y.j)(s.b.prototype.readPolygon)}},R.prototype.RING_PARSERS={"http://www.opengis.net/gml/3.2":{LinearRing:Object(y.o)(s.b.prototype.readFlatLinearRing)}},R.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml/3.2":{exterior:Object(y.l)(E.prototype.writeRing),interior:Object(y.l)(E.prototype.writeRing)}},R.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lowerCorner:Object(y.l)(f.n),upperCorner:Object(y.l)(f.n)}},R.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{surfaceMember:Object(y.l)(E.prototype.writeSurfaceOrPolygonMember),polygonMember:Object(y.l)(E.prototype.writeSurfaceOrPolygonMember)}},R.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{pointMember:Object(y.l)(E.prototype.writePointMember)}},R.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lineStringMember:Object(y.l)(E.prototype.writeLineStringOrCurveMember),curveMember:Object(y.l)(E.prototype.writeLineStringOrCurveMember)}},R.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml/3.2":{Curve:Object(y.l)(E.prototype.writeCurveOrLineString),MultiCurve:Object(y.l)(E.prototype.writeMultiCurveOrLineString),Point:Object(y.l)(R.prototype.writePoint),MultiPoint:Object(y.l)(E.prototype.writeMultiPoint),LineString:Object(y.l)(E.prototype.writeCurveOrLineString),MultiLineString:Object(y.l)(E.prototype.writeMultiCurveOrLineString),LinearRing:Object(y.l)(E.prototype.writeLinearRing),Polygon:Object(y.l)(E.prototype.writeSurfaceOrPolygon),MultiPolygon:Object(y.l)(E.prototype.writeMultiSurfaceOrPolygon),Surface:Object(y.l)(E.prototype.writeSurfaceOrPolygon),MultiSurface:Object(y.l)(E.prototype.writeMultiSurfaceOrPolygon),Envelope:Object(y.l)(E.prototype.writeEnvelope)}};var P=R,N=r(122),_=function(e){this.tagName_=e};_.prototype.getTagName=function(){return this.tagName_};var M=_,A=r(22),C=function(e){function t(t,r){e.call(this,t),this.conditions=r,Object(A.a)(this.conditions.length>=2,57)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(M),L=function(e){function t(t){e.call(this,"And",Array.prototype.slice.call(arguments))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(C),I=function(e){function t(t,r,o){if(e.call(this,"BBOX"),this.geometryName=t,this.extent=r,4!==r.length)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");this.srsName=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(M),T=function(e){function t(t,r){e.call(this,t),this.propertyName=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(M),F=function(e){function t(t,r,o,n){e.call(this,t,r),this.expression=o,this.matchCase=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(T),x=function(e){function t(t,r,o){e.call(this,"PropertyIsEqualTo",t,r,o)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(F),G=function(e){function t(t,r,o,n,i,a){e.call(this,"PropertyIsLike",t),this.pattern=r,this.wildCard=void 0!==o?o:"*",this.singleChar=void 0!==n?n:".",this.escapeChar=void 0!==i?i:"!",this.matchCase=a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(T);function U(e){var t=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(L,t))}var Z={"http://www.opengis.net/gml":{boundedBy:Object(y.n)(s.b.prototype.readGeometryElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:Object(y.j)(s.b.prototype.readFeaturesInternal)}},D={"http://www.opengis.net/wfs":{totalInserted:Object(y.n)(f.f),totalUpdated:Object(y.n)(f.f),totalDeleted:Object(y.n)(f.f)},"http://www.opengis.net/wfs/2.0":{totalInserted:Object(y.n)(f.f),totalUpdated:Object(y.n)(f.f),totalDeleted:Object(y.n)(f.f)}},B={"http://www.opengis.net/wfs":{TransactionSummary:Object(y.n)($,"transactionSummary"),InsertResults:Object(y.n)(oe,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:Object(y.n)($,"transactionSummary"),InsertResults:Object(y.n)(oe,"insertIds")}},Y={"http://www.opengis.net/wfs":{PropertyName:Object(y.l)(f.n)},"http://www.opengis.net/wfs/2.0":{PropertyName:Object(y.l)(f.n)}},V={"http://www.opengis.net/wfs":{Insert:Object(y.l)(ne),Update:Object(y.l)(se),Delete:Object(y.l)(pe),Property:Object(y.l)(ce),Native:Object(y.l)(ue)},"http://www.opengis.net/wfs/2.0":{Insert:Object(y.l)(ne),Update:Object(y.l)(se),Delete:Object(y.l)(pe),Property:Object(y.l)(ce),Native:Object(y.l)(ue)}},q="feature",z="http://www.w3.org/2000/xmlns/",k={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},X={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},W={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},H={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},K={"2.0.0":P,"1.1.0":E,"1.0.0":p.a},Q=function(e){function t(t){e.call(this);var r=t||{};this.version_=r.version?r.version:"1.1.0",this.featureType_=r.featureType,this.featureNS_=r.featureNS,this.gmlFormat_=r.gmlFormat?r.gmlFormat:new K[this.version_],this.schemaLocation_=r.schemaLocation?r.schemaLocation:H[this.version_]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getFeatureType=function(){return this.featureType_},t.prototype.setFeatureType=function(e){this.featureType_=e},t.prototype.readFeaturesFromNode=function(e,t){var r={node:e};Object(m.a)(r,{featureType:this.featureType_,featureNS:this.featureNS_}),Object(m.a)(r,this.getReadOptions(e,t||{}));var o,n=[r];o="2.0.0"===this.version_?Z:this.gmlFormat_.FEATURE_COLLECTION_PARSERS;var i=Object(y.u)([],o,e,n,this.gmlFormat_);return i||(i=[]),i},t.prototype.readTransactionResponse=function(e){if(e){if("string"==typeof e){var t=Object(y.s)(e);return this.readTransactionResponseFromDocument(t)}return Object(y.h)(e)?this.readTransactionResponseFromDocument(e):this.readTransactionResponseFromNode(e)}},t.prototype.readFeatureCollectionMetadata=function(e){if(e){if("string"==typeof e){var t=Object(y.s)(e);return this.readFeatureCollectionMetadataFromDocument(t)}return Object(y.h)(e)?this.readFeatureCollectionMetadataFromDocument(e):this.readFeatureCollectionMetadataFromNode(e)}},t.prototype.readFeatureCollectionMetadataFromDocument=function(e){for(var t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(t)},t.prototype.readFeatureCollectionMetadataFromNode=function(e){var t={},r=Object(f.g)(e.getAttribute("numberOfFeatures"));return t.numberOfFeatures=r,Object(y.u)(t,Z,e,[],this.gmlFormat_)},t.prototype.readTransactionResponseFromDocument=function(e){for(var t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(t)},t.prototype.readTransactionResponseFromNode=function(e){return Object(y.u)({},B,e,[])},t.prototype.writeGetFeature=function(e){var t=this,r=Object(y.c)(X[this.version_],"GetFeature");r.setAttribute("service","WFS"),r.setAttribute("version",this.version_),e.handle&&r.setAttribute("handle",e.handle),e.outputFormat&&r.setAttribute("outputFormat",e.outputFormat),void 0!==e.maxFeatures&&r.setAttribute("maxFeatures",String(e.maxFeatures)),e.resultType&&r.setAttribute("resultType",e.resultType),void 0!==e.startIndex&&r.setAttribute("startIndex",String(e.startIndex)),void 0!==e.count&&r.setAttribute("count",String(e.count)),void 0!==e.viewParams&&r.setAttribute("viewParams",e.viewParams),r.setAttributeNS(y.b,"xsi:schemaLocation",this.schemaLocation_);var o={node:r};if(Object(m.a)(o,{version:this.version_,srsName:e.srsName,featureNS:e.featureNS?e.featureNS:this.featureNS_,featurePrefix:e.featurePrefix,propertyNames:e.propertyNames?e.propertyNames:[]}),Object(A.a)(Array.isArray(e.featureTypes),11),"string"==typeof e.featureTypes[0]){var n=e.filter;e.bbox&&(Object(A.a)(e.geometryName,12),n=this.combineBboxAndFilter(e.geometryName,e.bbox,e.srsName,n)),Object(m.a)(o,{geometryName:e.geometryName,filter:n}),_e(r,e.featureTypes,[o])}else e.featureTypes.forEach((function(n){var i=t.combineBboxAndFilter(n.geometryName,n.bbox,e.srsName,e.filter);Object(m.a)(o,{geometryName:n.geometryName,filter:i}),_e(r,[n.name],[o])}));return r},t.prototype.combineBboxAndFilter=function(e,t,r,o){var n=function(e,t,r){return new I(e,t,r)}(e,t,r);return o?U(o,n):n},t.prototype.writeTransaction=function(e,t,r,o){var n,i=[],a=o.version?o.version:this.version_,p=Object(y.c)(X[a],"Transaction");p.setAttribute("service","WFS"),p.setAttribute("version",a),o&&(n=o.gmlOptions?o.gmlOptions:{},o.handle&&p.setAttribute("handle",o.handle)),p.setAttributeNS(y.b,"xsi:schemaLocation",H[a]);var s=function(e,t,r,o){var n,i=o.featurePrefix?o.featurePrefix:q;"1.0.0"===r?n=2:"1.1.0"===r?n=3:"2.0.0"===r&&(n=3.2);return Object(m.a)({node:e},{version:r,featureNS:o.featureNS,featureType:o.featureType,featurePrefix:i,gmlVersion:n,hasZ:o.hasZ,srsName:o.srsName},t)}(p,n,a,o);return e&&J("Insert",e,i,s),t&&J("Update",t,i,s),r&&J("Delete",r,i,s),o.nativeElements&&J("Native",o.nativeElements,i,s),p},t.prototype.readProjectionFromDocument=function(e){for(var t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(t);return null},t.prototype.readProjectionFromNode=function(e){if(e.firstElementChild&&e.firstElementChild.firstElementChild)for(var t=(e=e.firstElementChild.firstElementChild).firstElementChild;t;t=t.nextElementSibling)if(0!==t.childNodes.length&&(1!==t.childNodes.length||3!==t.firstChild.nodeType)){var r=[{}];return this.gmlFormat_.readGeometryElement(t,r),Object(w.j)(r.pop().srsName)}return null},t}(N.a);function J(e,t,r,o){Object(y.v)(o,V,Object(y.q)(e),t,r)}function $(e,t){return Object(y.u)({},D,e,t)}var ee={"http://www.opengis.net/ogc":{FeatureId:Object(y.j)((function(e,t){return e.getAttribute("fid")}))},"http://www.opengis.net/ogc/1.1":{FeatureId:Object(y.j)((function(e,t){return e.getAttribute("fid")}))}};function te(e,t){Object(y.t)(ee,e,t)}var re={"http://www.opengis.net/wfs":{Feature:te},"http://www.opengis.net/wfs/2.0":{Feature:te}};function oe(e,t){return Object(y.u)([],re,e,t)}function ne(e,t,r){var o=r[r.length-1],n=o.featureType,i=o.featureNS,a=o.gmlVersion,s=Object(y.c)(i,n);e.appendChild(s),2===a?p.a.prototype.writeFeatureElement(s,t,r):3===a?E.prototype.writeFeatureElement(s,t,r):P.prototype.writeFeatureElement(s,t,r)}function ie(e,t,r){var o=r[r.length-1].version,n=k[o],i=Object(y.c)(n,"Filter"),a=Object(y.c)(n,"FeatureId");i.appendChild(a),a.setAttribute("fid",t),e.appendChild(i)}function ae(e,t){var r=(e=e||q)+":";return 0===t.indexOf(r)?t:r+t}function pe(e,t,r){var o=r[r.length-1];Object(A.a)(void 0!==t.getId(),26);var n=o.featureType,i=o.featurePrefix,a=o.featureNS,p=ae(i,n);e.setAttribute("typeName",p),e.setAttributeNS(z,"xmlns:"+i,a);var s=t.getId();void 0!==s&&ie(e,s,r)}function se(e,t,r){var o=r[r.length-1];Object(A.a)(void 0!==t.getId(),27);var n=o.version,i=o.featureType,a=o.featurePrefix,p=o.featureNS,s=ae(a,i),c=t.getGeometryName();e.setAttribute("typeName",s),e.setAttributeNS(z,"xmlns:"+a,p);var u=t.getId();if(void 0!==u){for(var l=t.getKeys(),b=[],g=0,m=l.length;g<m;g++){var O=t.get(l[g]);if(void 0!==O){var h=l[g];O&&"function"==typeof O.getSimplifiedGeometry&&(h=c),b.push({name:h,value:O})}}Object(y.v)({version:n,gmlVersion:o.gmlVersion,node:e,hasZ:o.hasZ,srsName:o.srsName},V,Object(y.q)("Property"),b,r),ie(e,u,r)}}function ce(e,t,r){var o=r[r.length-1],n=o.version,i=X[n],a=Object(y.c)(i,"Name"),s=o.gmlVersion;if(e.appendChild(a),Object(f.n)(a,t.name),void 0!==t.value&&null!==t.value){var c=Object(y.c)(i,"Value");e.appendChild(c),t.value&&"function"==typeof t.value.getSimplifiedGeometry?2===s?p.a.prototype.writeGeometryElement(c,t.value,r):3===s?E.prototype.writeGeometryElement(c,t.value,r):P.prototype.writeGeometryElement(c,t.value,r):Object(f.n)(c,t.value)}}function ue(e,t,r){t.vendorId&&e.setAttribute("vendorId",t.vendorId),void 0!==t.safeToIgnore&&e.setAttribute("safeToIgnore",String(t.safeToIgnore)),void 0!==t.value&&Object(f.n)(e,t.value)}var le={"http://www.opengis.net/wfs":{Query:Object(y.l)(be)},"http://www.opengis.net/wfs/2.0":{Query:Object(y.l)(be)},"http://www.opengis.net/ogc":{During:Object(y.l)(he),And:Object(y.l)(we),Or:Object(y.l)(we),Not:Object(y.l)(fe),BBOX:Object(y.l)(ye),Contains:Object(y.l)(me),Intersects:Object(y.l)(me),Within:Object(y.l)(me),DWithin:Object(y.l)(Oe),PropertyIsEqualTo:Object(y.l)(je),PropertyIsNotEqualTo:Object(y.l)(je),PropertyIsLessThan:Object(y.l)(je),PropertyIsLessThanOrEqualTo:Object(y.l)(je),PropertyIsGreaterThan:Object(y.l)(je),PropertyIsGreaterThanOrEqualTo:Object(y.l)(je),PropertyIsNull:Object(y.l)(de),PropertyIsBetween:Object(y.l)(ve),PropertyIsLike:Object(y.l)(Se)},"http://www.opengis.net/fes/2.0":{During:Object(y.l)(he),And:Object(y.l)(we),Or:Object(y.l)(we),Not:Object(y.l)(fe),BBOX:Object(y.l)(ye),Contains:Object(y.l)(me),Disjoint:Object(y.l)(me),Intersects:Object(y.l)(me),ResourceId:Object(y.l)((function(e,t,r){e.setAttribute("rid",t.rid)})),Within:Object(y.l)(me),DWithin:Object(y.l)(Oe),PropertyIsEqualTo:Object(y.l)(je),PropertyIsNotEqualTo:Object(y.l)(je),PropertyIsLessThan:Object(y.l)(je),PropertyIsLessThanOrEqualTo:Object(y.l)(je),PropertyIsGreaterThan:Object(y.l)(je),PropertyIsGreaterThanOrEqualTo:Object(y.l)(je),PropertyIsNull:Object(y.l)(de),PropertyIsBetween:Object(y.l)(ve),PropertyIsLike:Object(y.l)(Se)}};function be(e,t,r){var o,n,i=r[r.length-1],a=i.version,p=i.featurePrefix,s=i.featureNS,c=i.propertyNames,u=i.srsName;o=p?ae(p,t):t,n="2.0.0"===a?"typeNames":"typeName",e.setAttribute(n,o),u&&e.setAttribute("srsName",u),s&&e.setAttributeNS(z,"xmlns:"+p,s);var l=Object(m.a)({},i);l.node=e,Object(y.v)(l,Y,Object(y.q)("PropertyName"),c,r);var b=i.filter;if(b){var g=Object(y.c)(Me(a),"Filter");e.appendChild(g),ge(g,b,r)}}function ge(e,t,r){var o=r[r.length-1],n={node:e};Object(m.a)(n,{context:o}),Object(y.v)(n,le,Object(y.q)(t.getTagName()),[t],r)}function ye(e,t,r){var o=r[r.length-1],n=o.context.version;o.srsName=t.srsName;var i=K[n];Pe(n,e,t.geometryName),i.prototype.writeGeometryElement(e,t.extent,r)}function me(e,t,r){var o=r[r.length-1],n=o.context.version;o.srsName=t.srsName;var i=K[n];Pe(n,e,t.geometryName),i.prototype.writeGeometryElement(e,t.geometry,r)}function Oe(e,t,r){var o=r[r.length-1].context.version;me(e,t,r);var n=Object(y.c)(Me(o),"Distance");Object(f.n)(n,t.distance.toString()),"2.0.0"===o?n.setAttribute("uom",t.unit):n.setAttribute("units",t.unit),e.appendChild(n)}function he(e,t,r){var o=r[r.length-1].context.version;Ee(W[o],"ValueReference",e,t.propertyName);var n=Object(y.c)(s.a,"TimePeriod");e.appendChild(n);var i=Object(y.c)(s.a,"begin");n.appendChild(i),Ne(i,t.begin);var a=Object(y.c)(s.a,"end");n.appendChild(a),Ne(a,t.end)}function we(e,t,r){var o=r[r.length-1].context,n={node:e};Object(m.a)(n,{context:o});for(var i=t.conditions,a=0,p=i.length;a<p;++a){var s=i[a];Object(y.v)(n,le,Object(y.q)(s.getTagName()),[s],r)}}function fe(e,t,r){var o=r[r.length-1].context,n={node:e};Object(m.a)(n,{context:o});var i=t.condition;Object(y.v)(n,le,Object(y.q)(i.getTagName()),[i],r)}function je(e,t,r){var o=r[r.length-1].context.version;void 0!==t.matchCase&&e.setAttribute("matchCase",t.matchCase.toString()),Pe(o,e,t.propertyName),Re(o,e,""+t.expression)}function de(e,t,r){Pe(r[r.length-1].context.version,e,t.propertyName)}function ve(e,t,r){var o=r[r.length-1].context.version,n=Me(o);Pe(o,e,t.propertyName);var i=Object(y.c)(n,"LowerBoundary");e.appendChild(i),Re(o,i,""+t.lowerBoundary);var a=Object(y.c)(n,"UpperBoundary");e.appendChild(a),Re(o,a,""+t.upperBoundary)}function Se(e,t,r){var o=r[r.length-1].context.version;e.setAttribute("wildCard",t.wildCard),e.setAttribute("singleChar",t.singleChar),e.setAttribute("escapeChar",t.escapeChar),void 0!==t.matchCase&&e.setAttribute("matchCase",t.matchCase.toString()),Pe(o,e,t.propertyName),Re(o,e,""+t.pattern)}function Ee(e,t,r,o){var n=Object(y.c)(e,t);Object(f.n)(n,o),r.appendChild(n)}function Re(e,t,r){Ee(Me(e),"Literal",t,r)}function Pe(e,t,r){"2.0.0"===e?Ee(W[e],"ValueReference",t,r):Ee(k[e],"PropertyName",t,r)}function Ne(e,t){var r=Object(y.c)(s.a,"TimeInstant");e.appendChild(r);var o=Object(y.c)(s.a,"timePosition");r.appendChild(o),Object(f.n)(o,t)}function _e(e,t,r){var o=r[r.length-1],n=Object(m.a)({},o);n.node=e,Object(y.v)(n,le,Object(y.q)("Query"),t,r)}function Me(e){return"2.0.0"===e?W[e]:k[e]}var Ae,Ce,Le,Ie,Te,Fe,xe=Q,Ge=r(30),Ue=r(11),Ze=r(15),De=r(19),Be=r(5),Ye=new n.a,Ve=new De.a({source:Ye,style:new Ue.c({stroke:new Ze.a({color:"rgba(0, 0, 255, 1.0)",width:2})})}),qe=new Be.a({source:new a.a({attributions:'<a href="https://www.maptiler.com/copyright/" target="_blank">&copy; MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap contributors</a>',url:"https://api.maptiler.com/tiles/satellite/{z}/{x}/{y}.jpg?key=get_your_own_D6rA4zTHduk6KOKTXzGB",maxZoom:20})}),ze=new o.a({layers:[qe,Ve],target:document.getElementById("map"),view:new i.a({center:[-8908887.277395891,5381918.072437216],maxZoom:19,zoom:12})}),ke=(new xe).writeGetFeature({srsName:"EPSG:3857",featureNS:"http://openstreemap.org",featurePrefix:"osm",featureTypes:["water_areas"],outputFormat:"application/json",filter:U((Ae="name",Ce="Mississippi*",new G(Ae,Ce,Le,Ie,Te,Fe)),function(e,t,r){return new x(e,t,r)}("waterway","riverbank"))});fetch("https://ahocevar.com/geoserver/wfs",{method:"POST",body:(new XMLSerializer).serializeToString(ke)}).then((function(e){return e.json()})).then((function(e){var t=(new Ge.a).readFeatures(e);Ye.addFeatures(t),ze.getView().fit(Ye.getExtent())}))}},[[423,0]]]);
//# sourceMappingURL=vector-wfs-getfeature.js.map