@loaders.gl/wms 3.4.0-alpha.3 → 3.4.0-alpha.5
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/dist/dist.min.js +90 -14
- package/dist/es5/csw-capabilities-loader.js +1 -1
- package/dist/es5/csw-capabilities-loader.js.map +1 -1
- package/dist/es5/csw-domain-loader.js +1 -1
- package/dist/es5/csw-domain-loader.js.map +1 -1
- package/dist/es5/csw-records-loader.js +1 -1
- package/dist/es5/csw-records-loader.js.map +1 -1
- package/dist/es5/gml-loader.js +1 -1
- package/dist/es5/gml-loader.js.map +1 -1
- package/dist/es5/index.js.map +1 -1
- package/dist/es5/lerc-loader.js +1 -1
- package/dist/es5/lerc-loader.js.map +1 -1
- package/dist/es5/lib/create-image-source.js.map +1 -1
- package/dist/es5/lib/parsers/csw/parse-csw-capabilities.js.map +1 -1
- package/dist/es5/lib/parsers/csw/parse-csw-domain.js.map +1 -1
- package/dist/es5/lib/parsers/csw/parse-csw-records.js.map +1 -1
- package/dist/es5/lib/parsers/csw/parse-exception-report.js.map +1 -1
- package/dist/es5/lib/parsers/gml/deep-strict-equal.js.map +1 -1
- package/dist/es5/lib/parsers/gml/parse-gml.js.map +1 -1
- package/dist/es5/lib/parsers/wms/parse-wms-capabilities.js +33 -0
- package/dist/es5/lib/parsers/wms/parse-wms-capabilities.js.map +1 -1
- package/dist/es5/lib/parsers/xml/parse-xml-helpers.js.map +1 -1
- package/dist/es5/lib/services/arcgis/arcgis-image-service.js +1 -6
- package/dist/es5/lib/services/arcgis/arcgis-image-service.js.map +1 -1
- package/dist/es5/lib/services/arcgis/arcgis-server.js.map +1 -1
- package/dist/es5/lib/services/generic/image-service.js +1 -6
- package/dist/es5/lib/services/generic/image-service.js.map +1 -1
- package/dist/es5/lib/services/ogc/csw-service.js +0 -2
- package/dist/es5/lib/services/ogc/csw-service.js.map +1 -1
- package/dist/es5/lib/services/ogc/wms-service.js +62 -20
- package/dist/es5/lib/services/ogc/wms-service.js.map +1 -1
- package/dist/es5/lib/sources/data-source.js +36 -8
- package/dist/es5/lib/sources/data-source.js.map +1 -1
- package/dist/es5/lib/sources/image-source.js.map +1 -1
- package/dist/es5/lib/sources/tile-source.js.map +1 -1
- package/dist/es5/wip/arcgis-feature-service.js.map +1 -1
- package/dist/es5/wip/lib/wcs/parse-wcs-capabilities.js.map +1 -1
- package/dist/es5/wip/lib/wfs/parse-wfs-capabilities.js.map +1 -1
- package/dist/es5/wip/lib/wmts/parse-wmts-capabilities.js.map +1 -1
- package/dist/es5/wip/wcs-capabilities-loader.js +1 -1
- package/dist/es5/wip/wcs-capabilities-loader.js.map +1 -1
- package/dist/es5/wip/wfs-capabilities-loader.js +1 -1
- package/dist/es5/wip/wfs-capabilities-loader.js.map +1 -1
- package/dist/es5/wip/wms-feature-info-loader.js.map +1 -1
- package/dist/es5/wip/wms-layer-description-loader.js.map +1 -1
- package/dist/es5/wip/wmts-capabilities-loader.js +1 -1
- package/dist/es5/wip/wmts-capabilities-loader.js.map +1 -1
- package/dist/es5/wms-capabilities-loader.js +1 -1
- package/dist/es5/wms-capabilities-loader.js.map +1 -1
- package/dist/es5/wms-error-loader.js +1 -1
- package/dist/es5/wms-error-loader.js.map +1 -1
- package/dist/esm/csw-capabilities-loader.js +1 -1
- package/dist/esm/csw-capabilities-loader.js.map +1 -1
- package/dist/esm/csw-domain-loader.js +1 -1
- package/dist/esm/csw-domain-loader.js.map +1 -1
- package/dist/esm/csw-records-loader.js +1 -1
- package/dist/esm/csw-records-loader.js.map +1 -1
- package/dist/esm/gml-loader.js +1 -1
- package/dist/esm/gml-loader.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lerc-loader.js +1 -1
- package/dist/esm/lerc-loader.js.map +1 -1
- package/dist/esm/lib/create-image-source.js.map +1 -1
- package/dist/esm/lib/parsers/csw/parse-exception-report.js.map +1 -1
- package/dist/esm/lib/parsers/gml/deep-strict-equal.js.map +1 -1
- package/dist/esm/lib/parsers/gml/parse-gml.js.map +1 -1
- package/dist/esm/lib/parsers/wms/parse-wms-capabilities.js +33 -0
- package/dist/esm/lib/parsers/wms/parse-wms-capabilities.js.map +1 -1
- package/dist/esm/lib/parsers/xml/parse-xml-helpers.js.map +1 -1
- package/dist/esm/lib/services/arcgis/arcgis-image-service.js +0 -2
- package/dist/esm/lib/services/arcgis/arcgis-image-service.js.map +1 -1
- package/dist/esm/lib/services/arcgis/arcgis-server.js.map +1 -1
- package/dist/esm/lib/services/generic/image-service.js +0 -2
- package/dist/esm/lib/services/generic/image-service.js.map +1 -1
- package/dist/esm/lib/services/ogc/csw-service.js +0 -2
- package/dist/esm/lib/services/ogc/csw-service.js.map +1 -1
- package/dist/esm/lib/services/ogc/wms-service.js +54 -14
- package/dist/esm/lib/services/ogc/wms-service.js.map +1 -1
- package/dist/esm/lib/sources/data-source.js +20 -0
- package/dist/esm/lib/sources/data-source.js.map +1 -1
- package/dist/esm/lib/sources/image-source.js.map +1 -1
- package/dist/esm/lib/sources/tile-source.js.map +1 -1
- package/dist/esm/wip/wcs-capabilities-loader.js +1 -1
- package/dist/esm/wip/wcs-capabilities-loader.js.map +1 -1
- package/dist/esm/wip/wfs-capabilities-loader.js +1 -1
- package/dist/esm/wip/wfs-capabilities-loader.js.map +1 -1
- package/dist/esm/wip/wms-feature-info-loader.js.map +1 -1
- package/dist/esm/wip/wms-layer-description-loader.js.map +1 -1
- package/dist/esm/wip/wmts-capabilities-loader.js +1 -1
- package/dist/esm/wip/wmts-capabilities-loader.js.map +1 -1
- package/dist/esm/wms-capabilities-loader.js +1 -1
- package/dist/esm/wms-capabilities-loader.js.map +1 -1
- package/dist/esm/wms-error-loader.js +1 -1
- package/dist/esm/wms-error-loader.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/create-image-source.d.ts +1 -1
- package/dist/lib/create-image-source.d.ts.map +1 -1
- package/dist/lib/parsers/wms/parse-wms-capabilities.d.ts +24 -0
- package/dist/lib/parsers/wms/parse-wms-capabilities.d.ts.map +1 -1
- package/dist/lib/parsers/wms/parse-wms-capabilities.js +33 -0
- package/dist/lib/services/arcgis/arcgis-image-service.d.ts +1 -2
- package/dist/lib/services/arcgis/arcgis-image-service.d.ts.map +1 -1
- package/dist/lib/services/arcgis/arcgis-image-service.js +0 -1
- package/dist/lib/services/generic/image-service.d.ts +2 -3
- package/dist/lib/services/generic/image-service.d.ts.map +1 -1
- package/dist/lib/services/generic/image-service.js +0 -1
- package/dist/lib/services/ogc/csw-service.d.ts +1 -2
- package/dist/lib/services/ogc/csw-service.d.ts.map +1 -1
- package/dist/lib/services/ogc/csw-service.js +0 -1
- package/dist/lib/services/ogc/wms-service.d.ts +83 -32
- package/dist/lib/services/ogc/wms-service.d.ts.map +1 -1
- package/dist/lib/services/ogc/wms-service.js +73 -27
- package/dist/lib/sources/data-source.d.ts +12 -2
- package/dist/lib/sources/data-source.d.ts.map +1 -1
- package/dist/lib/sources/data-source.js +22 -0
- package/dist/lib/sources/image-source.d.ts +6 -6
- package/dist/lib/sources/image-source.d.ts.map +1 -1
- package/dist/lib/sources/tile-source.d.ts +4 -2
- package/dist/lib/sources/tile-source.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/index.ts +1 -1
- package/src/lib/create-image-source.ts +1 -1
- package/src/lib/parsers/wms/parse-wms-capabilities.ts +65 -0
- package/src/lib/services/arcgis/arcgis-image-service.ts +1 -4
- package/src/lib/services/generic/image-service.ts +2 -5
- package/src/lib/services/ogc/csw-service.ts +1 -3
- package/src/lib/services/ogc/wms-service.ts +165 -60
- package/src/lib/sources/data-source.ts +29 -2
- package/src/lib/sources/image-source.ts +8 -6
- package/src/lib/sources/tile-source.ts +4 -2
- package/dist/es5/lib/services/generic/tile-service.js +0 -2
- package/dist/es5/lib/services/generic/tile-service.js.map +0 -1
- package/dist/esm/lib/services/generic/tile-service.js +0 -2
- package/dist/esm/lib/services/generic/tile-service.js.map +0 -1
- package/dist/lib/services/generic/tile-service.d.ts +0 -1
- package/dist/lib/services/generic/tile-service.d.ts.map +0 -1
- package/dist/lib/services/generic/tile-service.js +0 -1
- package/src/lib/services/generic/tile-service.ts +0 -0
package/dist/dist.min.js
CHANGED
|
@@ -2224,6 +2224,11 @@
|
|
|
2224
2224
|
if (boundingBoxes && boundingBoxes.length > 0) {
|
|
2225
2225
|
layer.boundingBoxes = boundingBoxes;
|
|
2226
2226
|
}
|
|
2227
|
+
const xmlDimensions = getXMLArray(xmlLayer?.Dimension);
|
|
2228
|
+
const dimensions = xmlDimensions.map((xml) => extractDimension(xml));
|
|
2229
|
+
if (dimensions.length) {
|
|
2230
|
+
layer.dimensions = dimensions;
|
|
2231
|
+
}
|
|
2227
2232
|
if (xmlLayer?.opaque) {
|
|
2228
2233
|
layer.opaque = getXMLBoolean(xmlLayer?.opaque);
|
|
2229
2234
|
}
|
|
@@ -2288,6 +2293,26 @@
|
|
|
2288
2293
|
}
|
|
2289
2294
|
return boundingBox;
|
|
2290
2295
|
}
|
|
2296
|
+
function extractDimension(xmlDimension) {
|
|
2297
|
+
const { name, units, value: extent } = xmlDimension;
|
|
2298
|
+
const dimension = { name, units, extent };
|
|
2299
|
+
if (xmlDimension.unitSymbol) {
|
|
2300
|
+
dimension.unitSymbol = xmlDimension.unitSymbol;
|
|
2301
|
+
}
|
|
2302
|
+
if (xmlDimension.default) {
|
|
2303
|
+
dimension.defaultValue = xmlDimension.default;
|
|
2304
|
+
}
|
|
2305
|
+
if (xmlDimension.multipleValues) {
|
|
2306
|
+
dimension.multipleValues = getXMLBoolean(xmlDimension.multipleValues);
|
|
2307
|
+
}
|
|
2308
|
+
if (xmlDimension.nearestValue) {
|
|
2309
|
+
dimension.nearestValue = getXMLBoolean(xmlDimension.nearestValue);
|
|
2310
|
+
}
|
|
2311
|
+
if (xmlDimension.current) {
|
|
2312
|
+
dimension.current = getXMLBoolean(xmlDimension.current);
|
|
2313
|
+
}
|
|
2314
|
+
return dimension;
|
|
2315
|
+
}
|
|
2291
2316
|
function addInheritedLayerProps(layer, parent) {
|
|
2292
2317
|
if (parent && parent.geographicBoundingBox && !layer.geographicBoundingBox) {
|
|
2293
2318
|
layer.geographicBoundingBox = [...parent.geographicBoundingBox];
|
|
@@ -3256,9 +3281,25 @@
|
|
|
3256
3281
|
"src/lib/sources/data-source.ts"() {
|
|
3257
3282
|
DataSource = class {
|
|
3258
3283
|
constructor(props) {
|
|
3284
|
+
this._needsRefresh = true;
|
|
3285
|
+
this.props = { ...props };
|
|
3259
3286
|
this.loadOptions = { ...props.loadOptions };
|
|
3260
3287
|
this.fetch = getFetchFunction(this.loadOptions);
|
|
3261
3288
|
}
|
|
3289
|
+
setProps(props) {
|
|
3290
|
+
this.props = Object.assign(this.props, props);
|
|
3291
|
+
this.setNeedsRefresh();
|
|
3292
|
+
}
|
|
3293
|
+
setNeedsRefresh() {
|
|
3294
|
+
this._needsRefresh = true;
|
|
3295
|
+
}
|
|
3296
|
+
getNeedsRefresh(clear = true) {
|
|
3297
|
+
const needsRefresh = this._needsRefresh;
|
|
3298
|
+
if (clear) {
|
|
3299
|
+
this._needsRefresh = false;
|
|
3300
|
+
}
|
|
3301
|
+
return needsRefresh;
|
|
3302
|
+
}
|
|
3262
3303
|
};
|
|
3263
3304
|
}
|
|
3264
3305
|
});
|
|
@@ -3752,7 +3793,6 @@
|
|
|
3752
3793
|
ImageService = class extends ImageSource {
|
|
3753
3794
|
constructor(props) {
|
|
3754
3795
|
super(props);
|
|
3755
|
-
this.props = props;
|
|
3756
3796
|
}
|
|
3757
3797
|
async getMetadata() {
|
|
3758
3798
|
throw new Error("ImageSource.getMetadata not implemented");
|
|
@@ -3805,8 +3845,11 @@
|
|
|
3805
3845
|
WMSLayerDescriptionLoader
|
|
3806
3846
|
];
|
|
3807
3847
|
this.url = props.url;
|
|
3848
|
+
this.substituteCRS84 = props.substituteCRS84 ?? false;
|
|
3849
|
+
this.flipCRS = ["EPSG:4326"];
|
|
3808
3850
|
this.wmsParameters = {
|
|
3809
3851
|
layers: void 0,
|
|
3852
|
+
query_layers: void 0,
|
|
3810
3853
|
styles: void 0,
|
|
3811
3854
|
version: "1.3.0",
|
|
3812
3855
|
crs: "EPSG:4326",
|
|
@@ -3822,9 +3865,7 @@
|
|
|
3822
3865
|
return this.normalizeMetadata(capabilities);
|
|
3823
3866
|
}
|
|
3824
3867
|
async getImage(parameters) {
|
|
3825
|
-
|
|
3826
|
-
delete wmsParameters.srs;
|
|
3827
|
-
return await this.getMap(wmsParameters);
|
|
3868
|
+
return await this.getMap(parameters);
|
|
3828
3869
|
}
|
|
3829
3870
|
normalizeMetadata(capabilities) {
|
|
3830
3871
|
return capabilities;
|
|
@@ -3889,12 +3930,14 @@
|
|
|
3889
3930
|
return this._getWMSUrl("GetCapabilities", options, vendorParameters);
|
|
3890
3931
|
}
|
|
3891
3932
|
getMapURL(wmsParameters, vendorParameters) {
|
|
3933
|
+
wmsParameters = this._getWMS130Parameters(wmsParameters);
|
|
3892
3934
|
const options = {
|
|
3893
3935
|
version: this.wmsParameters.version,
|
|
3894
|
-
styles: this.wmsParameters.styles,
|
|
3895
|
-
crs: this.wmsParameters.crs,
|
|
3896
3936
|
format: this.wmsParameters.format,
|
|
3897
3937
|
transparent: this.wmsParameters.transparent,
|
|
3938
|
+
layers: this.wmsParameters.layers,
|
|
3939
|
+
styles: this.wmsParameters.styles,
|
|
3940
|
+
crs: this.wmsParameters.crs,
|
|
3898
3941
|
...wmsParameters
|
|
3899
3942
|
};
|
|
3900
3943
|
return this._getWMSUrl("GetMap", options, vendorParameters);
|
|
@@ -3902,10 +3945,11 @@
|
|
|
3902
3945
|
getFeatureInfoURL(wmsParameters, vendorParameters) {
|
|
3903
3946
|
const options = {
|
|
3904
3947
|
version: this.wmsParameters.version,
|
|
3905
|
-
srs: this.wmsParameters.crs,
|
|
3906
|
-
format: this.wmsParameters.format,
|
|
3907
3948
|
info_format: this.wmsParameters.info_format,
|
|
3949
|
+
layers: this.wmsParameters.layers,
|
|
3950
|
+
query_layers: this.wmsParameters.query_layers,
|
|
3908
3951
|
styles: this.wmsParameters.styles,
|
|
3952
|
+
crs: this.wmsParameters.crs,
|
|
3909
3953
|
...wmsParameters
|
|
3910
3954
|
};
|
|
3911
3955
|
return this._getWMSUrl("GetFeatureInfo", options, vendorParameters);
|
|
@@ -3949,18 +3993,52 @@
|
|
|
3949
3993
|
if (key !== "transparent" || value) {
|
|
3950
3994
|
url += first ? "?" : "&";
|
|
3951
3995
|
first = false;
|
|
3952
|
-
url += this.
|
|
3996
|
+
url += this._getURLParameter(key, value, wmsParameters);
|
|
3953
3997
|
}
|
|
3954
3998
|
}
|
|
3955
3999
|
return encodeURI(url);
|
|
3956
4000
|
}
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
4001
|
+
_getWMS130Parameters(wmsParameters) {
|
|
4002
|
+
const newParameters = { ...wmsParameters };
|
|
4003
|
+
if (newParameters.srs) {
|
|
4004
|
+
newParameters.crs = newParameters.crs || newParameters.srs;
|
|
4005
|
+
delete newParameters.srs;
|
|
4006
|
+
}
|
|
4007
|
+
return newParameters;
|
|
4008
|
+
}
|
|
4009
|
+
_getURLParameter(key, value, wmsParameters) {
|
|
4010
|
+
switch (key) {
|
|
4011
|
+
case "crs":
|
|
4012
|
+
if (wmsParameters.version !== "1.3.0") {
|
|
4013
|
+
key = "srs";
|
|
4014
|
+
} else if (this.substituteCRS84 && value === "EPSG:4326") {
|
|
4015
|
+
value = "CRS:84";
|
|
4016
|
+
}
|
|
4017
|
+
break;
|
|
4018
|
+
case "srs":
|
|
4019
|
+
if (wmsParameters.version === "1.3.0") {
|
|
4020
|
+
key = "crs";
|
|
4021
|
+
}
|
|
4022
|
+
break;
|
|
4023
|
+
case "bbox":
|
|
4024
|
+
const bbox = this._flipBoundingBox(value, wmsParameters);
|
|
4025
|
+
if (bbox) {
|
|
4026
|
+
value = bbox;
|
|
4027
|
+
}
|
|
4028
|
+
break;
|
|
4029
|
+
default:
|
|
3960
4030
|
}
|
|
3961
4031
|
key = key.toUpperCase();
|
|
3962
4032
|
return Array.isArray(value) ? `${key}=${value.join(",")}` : `${key}=${value ? String(value) : ""}`;
|
|
3963
4033
|
}
|
|
4034
|
+
_flipBoundingBox(bboxValue, wmsParameters) {
|
|
4035
|
+
if (!Array.isArray(bboxValue) || bboxValue.length !== 4) {
|
|
4036
|
+
return null;
|
|
4037
|
+
}
|
|
4038
|
+
const flipCoordinates = wmsParameters.version === "1.3.0" && this.flipCRS.includes(wmsParameters.crs || "") && !(this.substituteCRS84 && wmsParameters.crs === "EPSG:4326");
|
|
4039
|
+
const bbox = bboxValue;
|
|
4040
|
+
return flipCoordinates ? [bbox[1], bbox[0], bbox[3], bbox[2]] : bbox;
|
|
4041
|
+
}
|
|
3964
4042
|
async _fetchArrayBuffer(url) {
|
|
3965
4043
|
const response = await this.fetch(url);
|
|
3966
4044
|
const arrayBuffer = await response.arrayBuffer();
|
|
@@ -3995,7 +4073,6 @@
|
|
|
3995
4073
|
ArcGISImageServer = class extends ImageSource {
|
|
3996
4074
|
constructor(props) {
|
|
3997
4075
|
super(props);
|
|
3998
|
-
this.props = props;
|
|
3999
4076
|
}
|
|
4000
4077
|
async getMetadata() {
|
|
4001
4078
|
return await this.metadata();
|
|
@@ -4090,7 +4167,6 @@
|
|
|
4090
4167
|
super(props);
|
|
4091
4168
|
this.capabilities = null;
|
|
4092
4169
|
this.loaders = [WMSErrorLoader, CSWCapabilitiesLoader];
|
|
4093
|
-
this.props = props;
|
|
4094
4170
|
}
|
|
4095
4171
|
async getMetadata() {
|
|
4096
4172
|
const capabilities = await this.getCapabilities();
|
|
@@ -8,7 +8,7 @@ exports._typecheckCSWCapabilitiesLoader = exports.CSWCapabilitiesLoader = void 0
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _parseCswCapabilities = require("./lib/parsers/csw/parse-csw-capabilities");
|
|
11
|
-
var VERSION = typeof "3.4.0-alpha.
|
|
11
|
+
var VERSION = typeof "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : 'latest';
|
|
12
12
|
var CSWCapabilitiesLoader = {
|
|
13
13
|
id: 'csw-capabilities',
|
|
14
14
|
name: 'CSW Capabilities',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csw-capabilities-loader.js","names":["_parseCswCapabilities","require","VERSION","CSWCapabilitiesLoader","id","name","module","version","worker","extensions","mimeTypes","testText","testXMLFile","options","csw","parse","_parse","_asyncToGenerator2","default","_regenerator","mark","_callee","arrayBuffer","wrap","_callee$","_context","prev","next","abrupt","parseCSWCapabilities","TextDecoder","decode","stop","_x","_x2","apply","arguments","parseTextSync","text","exports","startsWith","_typecheckCSWCapabilitiesLoader"],"sources":["../../src/csw-capabilities-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {LoaderWithParser} from '@loaders.gl/loader-utils';\nimport type {XMLLoaderOptions} from '@loaders.gl/xml';\nimport type {CSWCapabilities} from './lib/parsers/csw/parse-csw-capabilities';\nimport {parseCSWCapabilities} from './lib/parsers/csw/parse-csw-capabilities';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\n// parsed data type\nexport type {CSWCapabilities};\n\n/** CSW loader options */\nexport type CSWLoaderOptions = XMLLoaderOptions & {\n csw?: {};\n};\n\n/**\n * Loader for the response to the CSW GetCapability request\n */\nexport const CSWCapabilitiesLoader = {\n id: 'csw-capabilities',\n name: 'CSW Capabilities',\n\n module: 'wms',\n version: VERSION,\n worker: false,\n extensions: ['xml'],\n mimeTypes: ['application/vnd.ogc.csw_xml', 'application/xml', 'text/xml'],\n testText: testXMLFile,\n options: {\n csw: {}\n },\n parse: async (arrayBuffer: ArrayBuffer, options?: CSWLoaderOptions) =>\n parseCSWCapabilities(new TextDecoder().decode(arrayBuffer), options),\n parseTextSync: (text: string, options?: CSWLoaderOptions) => parseCSWCapabilities(text, options)\n};\n\nfunction testXMLFile(text: string): boolean {\n // TODO - There could be space first.\n return text.startsWith('<?xml');\n}\n\nexport const _typecheckCSWCapabilitiesLoader: LoaderWithParser = CSWCapabilitiesLoader;\n"],"mappings":";;;;;;;;;AAKA,IAAAA,qBAAA,GAAAC,OAAA;AAIA,IAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AAapE,IAAMC,qBAAqB,GAAG;EACnCC,EAAE,EAAE,kBAAkB;EACtBC,IAAI,EAAE,kBAAkB;EAExBC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEL,OAAO;EAChBM,MAAM,EAAE,KAAK;EACbC,UAAU,EAAE,CAAC,KAAK,CAAC;EACnBC,SAAS,EAAE,CAAC,6BAA6B,EAAE,iBAAiB,EAAE,UAAU,CAAC;EACzEC,QAAQ,EAAEC,WAAW;EACrBC,OAAO,EAAE;IACPC,GAAG,EAAE,CAAC;EACR,CAAC;EACDC,KAAK;IAAA,IAAAC,MAAA,OAAAC,kBAAA,CAAAC,OAAA,EAAAC,YAAA,CAAAD,OAAA,CAAAE,IAAA,CAAE,SAAAC,QAAOC,WAAwB,EAAET,OAA0B;MAAA,OAAAM,YAAA,CAAAD,OAAA,CAAAK,IAAA,UAAAC,SAAAC,QAAA;QAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;UAAA;YAAA,OAAAF,QAAA,CAAAG,MAAA,WAChE,IAAAC,0CAAoB,EAAC,IAAIC,WAAW,
|
|
1
|
+
{"version":3,"file":"csw-capabilities-loader.js","names":["_parseCswCapabilities","require","VERSION","CSWCapabilitiesLoader","id","name","module","version","worker","extensions","mimeTypes","testText","testXMLFile","options","csw","parse","_parse","_asyncToGenerator2","default","_regenerator","mark","_callee","arrayBuffer","wrap","_callee$","_context","prev","next","abrupt","parseCSWCapabilities","TextDecoder","decode","stop","_x","_x2","apply","arguments","parseTextSync","text","exports","startsWith","_typecheckCSWCapabilitiesLoader"],"sources":["../../src/csw-capabilities-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {LoaderWithParser} from '@loaders.gl/loader-utils';\nimport type {XMLLoaderOptions} from '@loaders.gl/xml';\nimport type {CSWCapabilities} from './lib/parsers/csw/parse-csw-capabilities';\nimport {parseCSWCapabilities} from './lib/parsers/csw/parse-csw-capabilities';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\n// parsed data type\nexport type {CSWCapabilities};\n\n/** CSW loader options */\nexport type CSWLoaderOptions = XMLLoaderOptions & {\n csw?: {};\n};\n\n/**\n * Loader for the response to the CSW GetCapability request\n */\nexport const CSWCapabilitiesLoader = {\n id: 'csw-capabilities',\n name: 'CSW Capabilities',\n\n module: 'wms',\n version: VERSION,\n worker: false,\n extensions: ['xml'],\n mimeTypes: ['application/vnd.ogc.csw_xml', 'application/xml', 'text/xml'],\n testText: testXMLFile,\n options: {\n csw: {}\n },\n parse: async (arrayBuffer: ArrayBuffer, options?: CSWLoaderOptions) =>\n parseCSWCapabilities(new TextDecoder().decode(arrayBuffer), options),\n parseTextSync: (text: string, options?: CSWLoaderOptions) => parseCSWCapabilities(text, options)\n};\n\nfunction testXMLFile(text: string): boolean {\n // TODO - There could be space first.\n return text.startsWith('<?xml');\n}\n\nexport const _typecheckCSWCapabilitiesLoader: LoaderWithParser = CSWCapabilitiesLoader;\n"],"mappings":";;;;;;;;;AAKA,IAAAA,qBAAA,GAAAC,OAAA;AAIA,IAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AAapE,IAAMC,qBAAqB,GAAG;EACnCC,EAAE,EAAE,kBAAkB;EACtBC,IAAI,EAAE,kBAAkB;EAExBC,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@@ exports._typecheckCSWDomainLoader = exports.CSWDomainLoader = void 0;
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _parseCswDomain = require("./lib/parsers/csw/parse-csw-domain");
|
|
11
|
-
var VERSION = typeof "3.4.0-alpha.
|
|
11
|
+
var VERSION = typeof "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : 'latest';
|
|
12
12
|
var CSWDomainLoader = {
|
|
13
13
|
id: 'csw-domain',
|
|
14
14
|
name: 'CSW Domain',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csw-domain-loader.js","names":["_parseCswDomain","require","VERSION","CSWDomainLoader","id","name","module","version","worker","extensions","mimeTypes","testText","testXMLFile","options","csw","parse","_parse","_asyncToGenerator2","default","_regenerator","mark","_callee","arrayBuffer","wrap","_callee$","_context","prev","next","abrupt","parseCSWDomain","TextDecoder","decode","stop","_x","_x2","apply","arguments","parseTextSync","text","exports","startsWith","_typecheckCSWDomainLoader"],"sources":["../../src/csw-domain-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {LoaderWithParser} from '@loaders.gl/loader-utils';\nimport type {XMLLoaderOptions} from '@loaders.gl/xml';\nimport type {CSWDomain} from './lib/parsers/csw/parse-csw-domain';\nimport {parseCSWDomain} from './lib/parsers/csw/parse-csw-domain';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type {CSWDomain};\n\nexport type CSWLoaderOptions = XMLLoaderOptions & {\n csw?: {};\n};\n\n/**\n * Loader for the response to the CSW GetCapability request\n */\nexport const CSWDomainLoader = {\n id: 'csw-domain',\n name: 'CSW Domain',\n\n module: 'wms',\n version: VERSION,\n worker: false,\n extensions: ['xml'],\n mimeTypes: ['application/vnd.ogc.csw_xml', 'application/xml', 'text/xml'],\n testText: testXMLFile,\n options: {\n csw: {}\n },\n parse: async (arrayBuffer: ArrayBuffer, options?: CSWLoaderOptions) =>\n parseCSWDomain(new TextDecoder().decode(arrayBuffer), options),\n parseTextSync: (text: string, options?: CSWLoaderOptions) => parseCSWDomain(text, options)\n};\n\nfunction testXMLFile(text: string): boolean {\n // TODO - There could be space first.\n return text.startsWith('<?xml');\n}\n\nexport const _typecheckCSWDomainLoader: LoaderWithParser = CSWDomainLoader;\n"],"mappings":";;;;;;;;;AAKA,IAAAA,eAAA,GAAAC,OAAA;AAIA,IAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AAWpE,IAAMC,eAAe,GAAG;EAC7BC,EAAE,EAAE,YAAY;EAChBC,IAAI,EAAE,YAAY;EAElBC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEL,OAAO;EAChBM,MAAM,EAAE,KAAK;EACbC,UAAU,EAAE,CAAC,KAAK,CAAC;EACnBC,SAAS,EAAE,CAAC,6BAA6B,EAAE,iBAAiB,EAAE,UAAU,CAAC;EACzEC,QAAQ,EAAEC,WAAW;EACrBC,OAAO,EAAE;IACPC,GAAG,EAAE,CAAC;EACR,CAAC;EACDC,KAAK;IAAA,IAAAC,MAAA,OAAAC,kBAAA,CAAAC,OAAA,EAAAC,YAAA,CAAAD,OAAA,CAAAE,IAAA,CAAE,SAAAC,QAAOC,WAAwB,EAAET,OAA0B;MAAA,OAAAM,YAAA,CAAAD,OAAA,CAAAK,IAAA,UAAAC,SAAAC,QAAA;QAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;UAAA;YAAA,OAAAF,QAAA,CAAAG,MAAA,WAChE,IAAAC,8BAAc,EAAC,IAAIC,WAAW,
|
|
1
|
+
{"version":3,"file":"csw-domain-loader.js","names":["_parseCswDomain","require","VERSION","CSWDomainLoader","id","name","module","version","worker","extensions","mimeTypes","testText","testXMLFile","options","csw","parse","_parse","_asyncToGenerator2","default","_regenerator","mark","_callee","arrayBuffer","wrap","_callee$","_context","prev","next","abrupt","parseCSWDomain","TextDecoder","decode","stop","_x","_x2","apply","arguments","parseTextSync","text","exports","startsWith","_typecheckCSWDomainLoader"],"sources":["../../src/csw-domain-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {LoaderWithParser} from '@loaders.gl/loader-utils';\nimport type {XMLLoaderOptions} from '@loaders.gl/xml';\nimport type {CSWDomain} from './lib/parsers/csw/parse-csw-domain';\nimport {parseCSWDomain} from './lib/parsers/csw/parse-csw-domain';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type {CSWDomain};\n\nexport type CSWLoaderOptions = XMLLoaderOptions & {\n csw?: {};\n};\n\n/**\n * Loader for the response to the CSW GetCapability request\n */\nexport const CSWDomainLoader = {\n id: 'csw-domain',\n name: 'CSW Domain',\n\n module: 'wms',\n version: VERSION,\n worker: false,\n extensions: ['xml'],\n mimeTypes: ['application/vnd.ogc.csw_xml', 'application/xml', 'text/xml'],\n testText: testXMLFile,\n options: {\n csw: {}\n },\n parse: async (arrayBuffer: ArrayBuffer, options?: CSWLoaderOptions) =>\n parseCSWDomain(new TextDecoder().decode(arrayBuffer), options),\n parseTextSync: (text: string, options?: CSWLoaderOptions) => parseCSWDomain(text, options)\n};\n\nfunction testXMLFile(text: string): boolean {\n // TODO - There could be space first.\n return text.startsWith('<?xml');\n}\n\nexport const _typecheckCSWDomainLoader: LoaderWithParser = CSWDomainLoader;\n"],"mappings":";;;;;;;;;AAKA,IAAAA,eAAA,GAAAC,OAAA;AAIA,IAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AAWpE,IAAMC,eAAe,GAAG;EAC7BC,EAAE,EAAE,YAAY;EAChBC,IAAI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@ -8,7 +8,7 @@ exports.CSWRecordsLoader = void 0;
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _parseCswRecords = require("./lib/parsers/csw/parse-csw-records");
|
|
11
|
-
var VERSION = typeof "3.4.0-alpha.
|
|
11
|
+
var VERSION = typeof "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : 'latest';
|
|
12
12
|
var CSWRecordsLoader = {
|
|
13
13
|
id: 'csw-records',
|
|
14
14
|
name: 'CSW Domain',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csw-records-loader.js","names":["_parseCswRecords","require","VERSION","CSWRecordsLoader","id","name","module","version","worker","extensions","mimeTypes","testText","testXMLFile","options","csw","parse","_parse","_asyncToGenerator2","default","_regenerator","mark","_callee","arrayBuffer","wrap","_callee$","_context","prev","next","abrupt","parseCSWRecords","TextDecoder","decode","stop","_x","_x2","apply","arguments","parseTextSync","text","exports","startsWith"],"sources":["../../src/csw-records-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {LoaderWithParser} from '@loaders.gl/loader-utils';\nimport type {XMLLoaderOptions} from '@loaders.gl/xml';\nimport type {CSWRecords} from './lib/parsers/csw/parse-csw-records';\nimport {parseCSWRecords} from './lib/parsers/csw/parse-csw-records';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport {CSWRecords};\n\nexport type CSWLoaderOptions = XMLLoaderOptions & {\n csw?: {};\n};\n\n/**\n * Loader for the response to the CSW GetCapability request\n */\nexport const CSWRecordsLoader: LoaderWithParser = {\n id: 'csw-records',\n name: 'CSW Domain',\n\n module: 'wms',\n version: VERSION,\n worker: false,\n extensions: ['xml'],\n mimeTypes: ['application/vnd.ogc.csw_xml', 'application/xml', 'text/xml'],\n testText: testXMLFile,\n options: {\n csw: {}\n },\n parse: async (arrayBuffer: ArrayBuffer, options?: CSWLoaderOptions) =>\n parseCSWRecords(new TextDecoder().decode(arrayBuffer), options),\n parseTextSync: (text: string, options?: CSWLoaderOptions) => parseCSWRecords(text, options)\n};\n\nfunction testXMLFile(text: string): boolean {\n // TODO - There could be space first.\n return text.startsWith('<?xml');\n}\n"],"mappings":";;;;;;;;;AAKA,IAAAA,gBAAA,GAAAC,OAAA;AAIA,IAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AAWpE,IAAMC,gBAAkC,GAAG;EAChDC,EAAE,EAAE,aAAa;EACjBC,IAAI,EAAE,YAAY;EAElBC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEL,OAAO;EAChBM,MAAM,EAAE,KAAK;EACbC,UAAU,EAAE,CAAC,KAAK,CAAC;EACnBC,SAAS,EAAE,CAAC,6BAA6B,EAAE,iBAAiB,EAAE,UAAU,CAAC;EACzEC,QAAQ,EAAEC,WAAW;EACrBC,OAAO,EAAE;IACPC,GAAG,EAAE,CAAC;EACR,CAAC;EACDC,KAAK;IAAA,IAAAC,MAAA,OAAAC,kBAAA,CAAAC,OAAA,EAAAC,YAAA,CAAAD,OAAA,CAAAE,IAAA,CAAE,SAAAC,QAAOC,WAAwB,EAAET,OAA0B;MAAA,OAAAM,YAAA,CAAAD,OAAA,CAAAK,IAAA,UAAAC,SAAAC,QAAA;QAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;UAAA;YAAA,OAAAF,QAAA,CAAAG,MAAA,WAChE,IAAAC,gCAAe,EAAC,IAAIC,WAAW,
|
|
1
|
+
{"version":3,"file":"csw-records-loader.js","names":["_parseCswRecords","require","VERSION","CSWRecordsLoader","id","name","module","version","worker","extensions","mimeTypes","testText","testXMLFile","options","csw","parse","_parse","_asyncToGenerator2","default","_regenerator","mark","_callee","arrayBuffer","wrap","_callee$","_context","prev","next","abrupt","parseCSWRecords","TextDecoder","decode","stop","_x","_x2","apply","arguments","parseTextSync","text","exports","startsWith"],"sources":["../../src/csw-records-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {LoaderWithParser} from '@loaders.gl/loader-utils';\nimport type {XMLLoaderOptions} from '@loaders.gl/xml';\nimport type {CSWRecords} from './lib/parsers/csw/parse-csw-records';\nimport {parseCSWRecords} from './lib/parsers/csw/parse-csw-records';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport {CSWRecords};\n\nexport type CSWLoaderOptions = XMLLoaderOptions & {\n csw?: {};\n};\n\n/**\n * Loader for the response to the CSW GetCapability request\n */\nexport const CSWRecordsLoader: LoaderWithParser = {\n id: 'csw-records',\n name: 'CSW Domain',\n\n module: 'wms',\n version: VERSION,\n worker: false,\n extensions: ['xml'],\n mimeTypes: ['application/vnd.ogc.csw_xml', 'application/xml', 'text/xml'],\n testText: testXMLFile,\n options: {\n csw: {}\n },\n parse: async (arrayBuffer: ArrayBuffer, options?: CSWLoaderOptions) =>\n parseCSWRecords(new TextDecoder().decode(arrayBuffer), options),\n parseTextSync: (text: string, options?: CSWLoaderOptions) => parseCSWRecords(text, options)\n};\n\nfunction testXMLFile(text: string): boolean {\n // TODO - There could be space first.\n return text.startsWith('<?xml');\n}\n"],"mappings":";;;;;;;;;AAKA,IAAAA,gBAAA,GAAAC,OAAA;AAIA,IAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AAWpE,IAAMC,gBAAkC,GAAG;EAChDC,EAAE,EAAE,aAAa;EACjBC,IAAI,EAAE,YAAY;EAElBC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEL,OAAO;EAChBM,MAAM,EAAE,KAAK;EACbC,UAAU,EAAE,CAAC,KAAK,CAAC;EACnBC,SAAS,EAAE,CAAC,6BAA6B,EAAE,iBAAiB,EAAE,UAAU,CAAC;EACzEC,QAAQ,EAAEC,WAAW;EACrBC,OAAO,EAAE;IACPC,GAAG,EAAE,CAAC;EACR,CAAC;EACDC,KAAK;IAAA,IAAAC,MAAA,OAAAC,kBAAA,CAAAC,OAAA,EAAAC,YAAA,CAAAD,OAAA,CAAAE,IAAA,CAAE,SAAAC,QAAOC,WAAwB,EAAET,OAA0B;MAAA,OAAAM,YAAA,CAAAD,OAAA,CAAAK,IAAA,UAAAC,SAAAC,QAAA;QAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;UAAA;YAAA,OAAAF,QAAA,CAAAG,MAAA,WAChE,IAAAC,gCAAe,EAAC,IAAIC,WAAW,CAAC,CAAC,CAACC,MAAM,CAACT,WAAW,CAAC,EAAET,OAAO,CAAC;UAAA;UAAA;YAAA,OAAAY,QAAA,CAAAO,IAAA;QAAA;MAAA,GAAAX,OAAA;IAAA;IAAA,SAAAN,MAAAkB,EAAA,EAAAC,GAAA;MAAA,OAAAlB,MAAA,CAAAmB,KAAA,OAAAC,SAAA;IAAA;IAAA,OAAArB,KAAA;EAAA;EACjEsB,aAAa,EAAE,SAAAA,cAACC,IAAY,EAAEzB,OAA0B;IAAA,OAAK,IAAAgB,gCAAe,EAACS,IAAI,EAAEzB,OAAO,CAAC;EAAA;AAC7F,CAAC;AAAC0B,OAAA,CAAApC,gBAAA,GAAAA,gBAAA;AAEF,SAASS,WAAWA,CAAC0B,IAAY,EAAW;EAE1C,OAAOA,IAAI,CAACE,UAAU,CAAC,OAAO,CAAC;AACjC"}
|
package/dist/es5/gml-loader.js
CHANGED
|
@@ -8,7 +8,7 @@ exports._typecheckGMLLoader = exports.GMLLoader = void 0;
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _parseGml = require("./lib/parsers/gml/parse-gml");
|
|
11
|
-
var VERSION = typeof "3.4.0-alpha.
|
|
11
|
+
var VERSION = typeof "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : 'latest';
|
|
12
12
|
var GMLLoader = {
|
|
13
13
|
name: 'GML',
|
|
14
14
|
id: 'gml',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gml-loader.js","names":["_parseGml","require","VERSION","GMLLoader","name","id","module","version","worker","extensions","mimeTypes","testText","testXMLFile","options","gml","parse","_parse","_asyncToGenerator2","default","_regenerator","mark","_callee","arrayBuffer","wrap","_callee$","_context","prev","next","abrupt","parseGML","TextDecoder","decode","stop","_x","_x2","apply","arguments","parseTextSync","text","exports","startsWith","_typecheckGMLLoader"],"sources":["../../src/gml-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport {parseGML} from './lib/parsers/gml/parse-gml';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type GMLLoaderOptions = LoaderOptions & {\n gml?: {};\n};\n\n/**\n * Loader for the response to the GML GetCapability request\n */\nexport const GMLLoader = {\n name: 'GML',\n id: 'gml',\n\n module: 'wms',\n version: VERSION,\n worker: false,\n extensions: ['xml'],\n mimeTypes: ['application/vnd.ogc.gml', 'application/xml', 'text/xml'],\n testText: testXMLFile,\n options: {\n gml: {}\n },\n parse: async (arrayBuffer: ArrayBuffer, options?: GMLLoaderOptions) =>\n parseGML(new TextDecoder().decode(arrayBuffer), options),\n parseTextSync: (text: string, options?: GMLLoaderOptions) => parseGML(text, options)\n};\n\nfunction testXMLFile(text: string): boolean {\n // TODO - There could be space first.\n return text.startsWith('<?xml');\n}\n\nexport const _typecheckGMLLoader: LoaderWithParser = GMLLoader;\n"],"mappings":";;;;;;;;;AAGA,IAAAA,SAAA,GAAAC,OAAA;AAIA,IAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AASpE,IAAMC,SAAS,GAAG;EACvBC,IAAI,EAAE,KAAK;EACXC,EAAE,EAAE,KAAK;EAETC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEL,OAAO;EAChBM,MAAM,EAAE,KAAK;EACbC,UAAU,EAAE,CAAC,KAAK,CAAC;EACnBC,SAAS,EAAE,CAAC,yBAAyB,EAAE,iBAAiB,EAAE,UAAU,CAAC;EACrEC,QAAQ,EAAEC,WAAW;EACrBC,OAAO,EAAE;IACPC,GAAG,EAAE,CAAC;EACR,CAAC;EACDC,KAAK;IAAA,IAAAC,MAAA,OAAAC,kBAAA,CAAAC,OAAA,EAAAC,YAAA,CAAAD,OAAA,CAAAE,IAAA,CAAE,SAAAC,QAAOC,WAAwB,EAAET,OAA0B;MAAA,OAAAM,YAAA,CAAAD,OAAA,CAAAK,IAAA,UAAAC,SAAAC,QAAA;QAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;UAAA;YAAA,OAAAF,QAAA,CAAAG,MAAA,WAChE,IAAAC,kBAAQ,EAAC,IAAIC,WAAW,
|
|
1
|
+
{"version":3,"file":"gml-loader.js","names":["_parseGml","require","VERSION","GMLLoader","name","id","module","version","worker","extensions","mimeTypes","testText","testXMLFile","options","gml","parse","_parse","_asyncToGenerator2","default","_regenerator","mark","_callee","arrayBuffer","wrap","_callee$","_context","prev","next","abrupt","parseGML","TextDecoder","decode","stop","_x","_x2","apply","arguments","parseTextSync","text","exports","startsWith","_typecheckGMLLoader"],"sources":["../../src/gml-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport {parseGML} from './lib/parsers/gml/parse-gml';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type GMLLoaderOptions = LoaderOptions & {\n gml?: {};\n};\n\n/**\n * Loader for the response to the GML GetCapability request\n */\nexport const GMLLoader = {\n name: 'GML',\n id: 'gml',\n\n module: 'wms',\n version: VERSION,\n worker: false,\n extensions: ['xml'],\n mimeTypes: ['application/vnd.ogc.gml', 'application/xml', 'text/xml'],\n testText: testXMLFile,\n options: {\n gml: {}\n },\n parse: async (arrayBuffer: ArrayBuffer, options?: GMLLoaderOptions) =>\n parseGML(new TextDecoder().decode(arrayBuffer), options),\n parseTextSync: (text: string, options?: GMLLoaderOptions) => parseGML(text, options)\n};\n\nfunction testXMLFile(text: string): boolean {\n // TODO - There could be space first.\n return text.startsWith('<?xml');\n}\n\nexport const _typecheckGMLLoader: LoaderWithParser = GMLLoader;\n"],"mappings":";;;;;;;;;AAGA,IAAAA,SAAA,GAAAC,OAAA;AAIA,IAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AASpE,IAAMC,SAAS,GAAG;EACvBC,IAAI,EAAE,KAAK;EACXC,EAAE,EAAE,KAAK;EAETC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEL,OAAO;EAChBM,MAAM,EAAE,KAAK;EACbC,UAAU,EAAE,CAAC,KAAK,CAAC;EACnBC,SAAS,EAAE,CAAC,yBAAyB,EAAE,iBAAiB,EAAE,UAAU,CAAC;EACrEC,QAAQ,EAAEC,WAAW;EACrBC,OAAO,EAAE;IACPC,GAAG,EAAE,CAAC;EACR,CAAC;EACDC,KAAK;IAAA,IAAAC,MAAA,OAAAC,kBAAA,CAAAC,OAAA,EAAAC,YAAA,CAAAD,OAAA,CAAAE,IAAA,CAAE,SAAAC,QAAOC,WAAwB,EAAET,OAA0B;MAAA,OAAAM,YAAA,CAAAD,OAAA,CAAAK,IAAA,UAAAC,SAAAC,QAAA;QAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;UAAA;YAAA,OAAAF,QAAA,CAAAG,MAAA,WAChE,IAAAC,kBAAQ,EAAC,IAAIC,WAAW,CAAC,CAAC,CAACC,MAAM,CAACT,WAAW,CAAC,EAAET,OAAO,CAAC;UAAA;UAAA;YAAA,OAAAY,QAAA,CAAAO,IAAA;QAAA;MAAA,GAAAX,OAAA;IAAA;IAAA,SAAAN,MAAAkB,EAAA,EAAAC,GAAA;MAAA,OAAAlB,MAAA,CAAAmB,KAAA,OAAAC,SAAA;IAAA;IAAA,OAAArB,KAAA;EAAA;EAC1DsB,aAAa,EAAE,SAAAA,cAACC,IAAY,EAAEzB,OAA0B;IAAA,OAAK,IAAAgB,kBAAQ,EAACS,IAAI,EAAEzB,OAAO,CAAC;EAAA;AACtF,CAAC;AAAC0B,OAAA,CAAApC,SAAA,GAAAA,SAAA;AAEF,SAASS,WAAWA,CAAC0B,IAAY,EAAW;EAE1C,OAAOA,IAAI,CAACE,UAAU,CAAC,OAAO,CAAC;AACjC;AAEO,IAAMC,mBAAqC,GAAGtC,SAAS;AAACoC,OAAA,CAAAE,mBAAA,GAAAA,mBAAA"}
|
package/dist/es5/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_cswCapabilitiesLoader","require","_cswDomainLoader","_cswRecordsLoader","_wmsErrorLoader","_wmsCapabilitiesLoader","_wmsFeatureInfoLoader","_wmsLayerDescriptionLoader","_wfsCapabilitiesLoader","_gmlLoader","_imageSource","_createImageSource","_imageService","_cswService","_wmsService","_arcgisServer","_arcgisImageService"],"sources":["../../src/index.ts"],"sourcesContent":["// loaders.gl, MIT license\n\n// CSW - Catalog Service for the Web\n\nexport type {CSWLoaderOptions} from './csw-capabilities-loader';\n\nexport type {CSWCapabilities} from './csw-capabilities-loader';\nexport {CSWCapabilitiesLoader} from './csw-capabilities-loader';\n\nexport type {CSWDomain} from './csw-domain-loader';\nexport {CSWDomainLoader} from './csw-domain-loader';\n\nexport type {CSWRecords} from './csw-records-loader';\nexport {CSWRecordsLoader} from './csw-records-loader';\n\n// WMS - Web Map Service\n\nexport {WMSErrorLoader} from './wms-error-loader';\n\nexport type {WMSLoaderOptions} from './wms-capabilities-loader';\n\nexport type {WMSCapabilities} from './wms-capabilities-loader';\nexport {WMSCapabilitiesLoader} from './wms-capabilities-loader';\n\nexport type {WMSFeatureInfo as _WMSFeatureInfo} from './wip/wms-feature-info-loader';\nexport {WMSFeatureInfoLoader as _WMSFeatureInfoLoader} from './wip/wms-feature-info-loader';\n\nexport type {WMSLayerDescription as _WMSLayerDescription} from './wip/wms-layer-description-loader';\nexport {WMSLayerDescriptionLoader as _WMSLayerDescriptionLoader} from './wip/wms-layer-description-loader';\n\n// WMTS - Web Map Tile Service\n\n// export type {WMTSLoaderOptions as _WMTSLoaderOptions} from './wip/wmts-capabilities-loader';\n// export type {WMTSCapabilities as _WMTSCapabilities} from './wip/wmts-capabilities-loader';\n// export {WMTSCapabilitiesLoader as _WMTSCapabilitiesLoader} from './wip/wmts-capabilities-loader';\n\n// WFS - Web Feature Service\n\nexport type {WFSLoaderOptions as _WFSLoaderOptions} from './wip/wfs-capabilities-loader';\n\nexport type {WFSCapabilities as _WFSCapabilities} from './wip/wfs-capabilities-loader';\nexport {WFSCapabilitiesLoader as _WFSCapabilitiesLoader} from './wip/wfs-capabilities-loader';\n\n// GML - Geographic Markup Language\n\nexport type {GeoJSON as _GeoJSON} from '@loaders.gl/schema';\nexport type {GMLLoaderOptions as _GMLLoaderOptions} from './gml-loader';\nexport {GMLLoader as _GMLLoader} from './gml-loader';\n\n// EXPERIMENTAL: DATA SOURCES\n\nexport type {
|
|
1
|
+
{"version":3,"file":"index.js","names":["_cswCapabilitiesLoader","require","_cswDomainLoader","_cswRecordsLoader","_wmsErrorLoader","_wmsCapabilitiesLoader","_wmsFeatureInfoLoader","_wmsLayerDescriptionLoader","_wfsCapabilitiesLoader","_gmlLoader","_imageSource","_createImageSource","_imageService","_cswService","_wmsService","_arcgisServer","_arcgisImageService"],"sources":["../../src/index.ts"],"sourcesContent":["// loaders.gl, MIT license\n\n// CSW - Catalog Service for the Web\n\nexport type {CSWLoaderOptions} from './csw-capabilities-loader';\n\nexport type {CSWCapabilities} from './csw-capabilities-loader';\nexport {CSWCapabilitiesLoader} from './csw-capabilities-loader';\n\nexport type {CSWDomain} from './csw-domain-loader';\nexport {CSWDomainLoader} from './csw-domain-loader';\n\nexport type {CSWRecords} from './csw-records-loader';\nexport {CSWRecordsLoader} from './csw-records-loader';\n\n// WMS - Web Map Service\n\nexport {WMSErrorLoader} from './wms-error-loader';\n\nexport type {WMSLoaderOptions} from './wms-capabilities-loader';\n\nexport type {WMSCapabilities} from './wms-capabilities-loader';\nexport {WMSCapabilitiesLoader} from './wms-capabilities-loader';\n\nexport type {WMSFeatureInfo as _WMSFeatureInfo} from './wip/wms-feature-info-loader';\nexport {WMSFeatureInfoLoader as _WMSFeatureInfoLoader} from './wip/wms-feature-info-loader';\n\nexport type {WMSLayerDescription as _WMSLayerDescription} from './wip/wms-layer-description-loader';\nexport {WMSLayerDescriptionLoader as _WMSLayerDescriptionLoader} from './wip/wms-layer-description-loader';\n\n// WMTS - Web Map Tile Service\n\n// export type {WMTSLoaderOptions as _WMTSLoaderOptions} from './wip/wmts-capabilities-loader';\n// export type {WMTSCapabilities as _WMTSCapabilities} from './wip/wmts-capabilities-loader';\n// export {WMTSCapabilitiesLoader as _WMTSCapabilitiesLoader} from './wip/wmts-capabilities-loader';\n\n// WFS - Web Feature Service\n\nexport type {WFSLoaderOptions as _WFSLoaderOptions} from './wip/wfs-capabilities-loader';\n\nexport type {WFSCapabilities as _WFSCapabilities} from './wip/wfs-capabilities-loader';\nexport {WFSCapabilitiesLoader as _WFSCapabilitiesLoader} from './wip/wfs-capabilities-loader';\n\n// GML - Geographic Markup Language\n\nexport type {GeoJSON as _GeoJSON} from '@loaders.gl/schema';\nexport type {GMLLoaderOptions as _GMLLoaderOptions} from './gml-loader';\nexport {GMLLoader as _GMLLoader} from './gml-loader';\n\n// EXPERIMENTAL: DATA SOURCES\n\nexport type {ImageType} from '@loaders.gl/images';\nexport type {ImageSourceProps, ImageSourceMetadata} from './lib/sources/image-source';\nexport {ImageSource} from './lib/sources/image-source';\n\nexport type {ImageServiceType} from './lib/create-image-source';\nexport {createImageSource} from './lib/create-image-source';\n\n// Generic (Template URL) Services\n\nexport type {ImageServiceProps} from './lib/services/generic/image-service';\nexport {ImageService} from './lib/services/generic/image-service';\n\n// OGC Services\n\nexport {CSWService} from './lib/services/ogc/csw-service';\nexport {WMSService} from './lib/services/ogc/wms-service';\n\n// ArcGIS Services\n\nexport {getArcGISServices as _getArcGISServices} from './lib/services/arcgis/arcgis-server';\nexport {ArcGISImageServer as _ArcGISImageServer} from './lib/services/arcgis/arcgis-image-service';\n\n// LERC - Limited Error Raster Compression\n// TODO - restore once esbuild bundling issues have been resolved\n// export type {LERCData} from './lib/lerc/lerc-types';\n// export {LERCLoader} from './lerc-loader';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAAA,sBAAA,GAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AAGA,IAAAE,iBAAA,GAAAF,OAAA;AAIA,IAAAG,eAAA,GAAAH,OAAA;AAKA,IAAAI,sBAAA,GAAAJ,OAAA;AAGA,IAAAK,qBAAA,GAAAL,OAAA;AAGA,IAAAM,0BAAA,GAAAN,OAAA;AAaA,IAAAO,sBAAA,GAAAP,OAAA;AAMA,IAAAQ,UAAA,GAAAR,OAAA;AAMA,IAAAS,YAAA,GAAAT,OAAA;AAGA,IAAAU,kBAAA,GAAAV,OAAA;AAKA,IAAAW,aAAA,GAAAX,OAAA;AAIA,IAAAY,WAAA,GAAAZ,OAAA;AACA,IAAAa,WAAA,GAAAb,OAAA;AAIA,IAAAc,aAAA,GAAAd,OAAA;AACA,IAAAe,mBAAA,GAAAf,OAAA"}
|
package/dist/es5/lerc-loader.js
CHANGED
|
@@ -11,7 +11,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
var Lerc = _interopRequireWildcard(require("lerc"));
|
|
12
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
var VERSION = typeof "3.4.0-alpha.
|
|
14
|
+
var VERSION = typeof "3.4.0-alpha.5" !== 'undefined' ? "3.4.0-alpha.5" : 'latest';
|
|
15
15
|
var LERCLoader = {
|
|
16
16
|
id: 'lerc',
|
|
17
17
|
name: 'LERC',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lerc-loader.js","names":["Lerc","_interopRequireWildcard","require","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","VERSION","LERCLoader","id","name","module","version","worker","extensions","mimeTypes","options","wms","parse","_parse","_asyncToGenerator2","_regenerator","mark","_callee","arrayBuffer","wrap","_callee$","_context","prev","next","abrupt","parseLERC","stop","_x","_x2","apply","arguments","exports","_x3","_x4","_parseLERC","_callee2","pixelBlock","_callee2$","_context2","load","decode","lerc","_typecheckLERCLoader"],"sources":["../../src/lerc-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport type {LERCData} from './lib/parsers/lerc/lerc-types';\nimport * as Lerc from 'lerc';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type LERCLoaderOptions = LoaderOptions & {\n lerc?: {\n /**\tThe number of bytes to skip in the input byte stream. A valid Lerc file is expected at that position. */\n inputOffset?: number;\n /**\tIt is recommended to use the returned mask instead of setting this value. */\n noDataValue?: number;\n /**\t(ndepth LERC2 only) If true, returned depth values are pixel-interleaved. */\n returnInterleaved?: boolean;\n };\n};\n\n/**\n * Loader for the LERC raster format\n */\nexport const LERCLoader = {\n id: 'lerc',\n name: 'LERC',\n\n module: 'wms',\n version: VERSION,\n worker: false,\n extensions: ['lrc', 'lerc', 'lerc2', 'lerc1'],\n mimeTypes: ['application/octet-stream'],\n // test: ?,\n options: {\n wms: {}\n },\n parse: async (arrayBuffer: ArrayBuffer, options?: LERCLoaderOptions) =>\n parseLERC(arrayBuffer, options)\n};\n\nasync function parseLERC(arrayBuffer: ArrayBuffer, options?: LERCLoaderOptions): Promise<LERCData> {\n // Load the WASM library\n await Lerc.load();\n // Perform the decode\n const pixelBlock = Lerc.decode(arrayBuffer, options?.lerc);\n return pixelBlock;\n}\n\nexport const _typecheckLERCLoader: LoaderWithParser = LERCLoader;\n"],"mappings":";;;;;;;;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AkB,UAAAC,SAAA;MAAA,kBAAAA,SAAA,CAAAhB,IAAA,GAAAgB,SAAA,CAAAf,IAAA;QAAA;UAAAe,SAAA,CAAAf,IAAA;UAAA,OAEtEhD,IAAI,CAACgE,IAAI,
|
|
1
|
+
{"version":3,"file":"lerc-loader.js","names":["Lerc","_interopRequireWildcard","require","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","VERSION","LERCLoader","id","name","module","version","worker","extensions","mimeTypes","options","wms","parse","_parse","_asyncToGenerator2","_regenerator","mark","_callee","arrayBuffer","wrap","_callee$","_context","prev","next","abrupt","parseLERC","stop","_x","_x2","apply","arguments","exports","_x3","_x4","_parseLERC","_callee2","pixelBlock","_callee2$","_context2","load","decode","lerc","_typecheckLERCLoader"],"sources":["../../src/lerc-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport type {LERCData} from './lib/parsers/lerc/lerc-types';\nimport * as Lerc from 'lerc';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type LERCLoaderOptions = LoaderOptions & {\n lerc?: {\n /**\tThe number of bytes to skip in the input byte stream. A valid Lerc file is expected at that position. */\n inputOffset?: number;\n /**\tIt is recommended to use the returned mask instead of setting this value. */\n noDataValue?: number;\n /**\t(ndepth LERC2 only) If true, returned depth values are pixel-interleaved. */\n returnInterleaved?: boolean;\n };\n};\n\n/**\n * Loader for the LERC raster format\n */\nexport const LERCLoader = {\n id: 'lerc',\n name: 'LERC',\n\n module: 'wms',\n version: VERSION,\n worker: false,\n extensions: ['lrc', 'lerc', 'lerc2', 'lerc1'],\n mimeTypes: ['application/octet-stream'],\n // test: ?,\n options: {\n wms: {}\n },\n parse: async (arrayBuffer: ArrayBuffer, options?: LERCLoaderOptions) =>\n parseLERC(arrayBuffer, options)\n};\n\nasync function parseLERC(arrayBuffer: ArrayBuffer, options?: LERCLoaderOptions): Promise<LERCData> {\n // Load the WASM library\n await Lerc.load();\n // Perform the decode\n const pixelBlock = Lerc.decode(arrayBuffer, options?.lerc);\n return pixelBlock;\n}\n\nexport const _typecheckLERCLoader: LoaderWithParser = LERCLoader;\n"],"mappings":";;;;;;;;;;AAIA,IAAAA,IAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA6B,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,4BAAAG,OAAA,EAAAH,GAAA,UAAAI,KAAA,GAAAT,wBAAA,CAAAC,WAAA,OAAAQ,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAL,GAAA,YAAAI,KAAA,CAAAE,GAAA,CAAAN,GAAA,SAAAO,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAZ,GAAA,QAAAY,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAf,GAAA,EAAAY,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAX,GAAA,EAAAY,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA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AAA,UAAA;AAAA,SAEauB,SAASA,CAAAO,GAAA,EAAAC,GAAA;EAAA,OAAAC,UAAA,CAAAL,KAAA,OAAAC,SAAA;AAAA;AAAA,SAAAI,WAAA;EAAAA,UAAA,OAAApB,kBAAA,CAAA5B,OAAA,EAAA6B,YAAA,CAAA7B,OAAA,CAAA8B,IAAA,CAAxB,SAAAmB,SAAyBjB,WAAwB,EAAER,OAA2B;IAAA,IAAA0B,UAAA;IAAA,OAAArB,YAAA,CAAA7B,OAAA,CAAAiC,IAAA,UAAAkB,UAAAC,SAAA;MAAA,kBAAAA,SAAA,CAAAhB,IAAA,GAAAgB,SAAA,CAAAf,IAAA;QAAA;UAAAe,SAAA,CAAAf,IAAA;UAAA,OAEtEhD,IAAI,CAACgE,IAAI,CAAC,CAAC;QAAA;UAEXH,UAAU,GAAG7D,IAAI,CAACiE,MAAM,CAACtB,WAAW,EAAER,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE+B,IAAI,CAAC;UAAA,OAAAH,SAAA,CAAAd,MAAA,WACnDY,UAAU;QAAA;QAAA;UAAA,OAAAE,SAAA,CAAAZ,IAAA;MAAA;IAAA,GAAAS,QAAA;EAAA,CAClB;EAAA,OAAAD,UAAA,CAAAL,KAAA,OAAAC,SAAA;AAAA;AAEM,IAAMY,oBAAsC,GAAGxC,UAAU;AAAC6B,OAAA,CAAAW,oBAAA,GAAAA,oBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-image-source.js","names":["_imageService","require","_wmsService","_arcgisImageService","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","call","step","next","_e2","return","minLen","_arrayLikeToArray","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","SERVICES","WMSService","ArcGISImageServer","ImageService","createImageSource","props","_props$type","type","serviceType","guessServiceType","url","Error","_iterator","_step","Service","testURL"],"sources":["../../../src/lib/create-image-source.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport {ImageSource} from './sources/image-source';\nimport {ImageService, ImageServiceProps} from './services/generic/image-service';\nimport type {WMSServiceProps} from './services/ogc/wms-service';\nimport {WMSService} from './services/ogc/wms-service';\nimport {ArcGISImageServer} from './services/arcgis/arcgis-image-service';\n\nexport type ImageServiceType = 'wms' | 'arcgis-image-server' | 'template';\n\nconst SERVICES = [WMSService, ArcGISImageServer, ImageService];\n\ntype ImageSourceProps = ImageServiceProps &\n WMSServiceProps & {\n type?: ImageServiceType | 'auto';\n };\n\n/**\n * Creates an image source\n * If type is not supplied, will try to automatically detect the the\n * @param url URL to the image source\n * @param type type of source. if not known, set to 'auto'\n * @returns an ImageSource instance\n */\nexport function createImageSource(props: ImageSourceProps): ImageSource {\n const {type = 'auto'} = props;\n const serviceType = type === 'auto' ? guessServiceType(props.url) : type;\n switch (serviceType) {\n case 'template':\n return new ImageService(props);\n case 'wms':\n return new WMSService(props);\n default:\n // currently only wms service supported\n throw new Error('Not a valid image source type');\n }\n}\n\n/** Guess service type from URL */\nfunction guessServiceType(url: string): ImageServiceType {\n for (const Service of SERVICES) {\n if (Service.testURL && Service.testURL(url)) {\n return Service.type;\n }\n }\n // If all else fails, guess that this is MS service\n return 'wms';\n}\n"],"mappings":";;;;;;AAGA,IAAAA,aAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAAyE,SAAAG,2BAAAC,CAAA,EAAAC,cAAA,QAAAC,EAAA,UAAAC,MAAA,oBAAAH,CAAA,CAAAG,MAAA,CAAAC,QAAA,KAAAJ,CAAA,qBAAAE,EAAA,QAAAG,KAAA,CAAAC,OAAA,CAAAN,CAAA,MAAAE,EAAA,GAAAK,2BAAA,CAAAP,CAAA,MAAAC,cAAA,IAAAD,CAAA,WAAAA,CAAA,CAAAQ,MAAA,qBAAAN,EAAA,EAAAF,CAAA,GAAAE,EA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AAA,EAAAC,GAAA,QAAAA,GAAA,YAAAA,GAAA,GAAAD,GAAA,CAAA7B,MAAA,EAAA8B,GAAA,GAAAD,GAAA,CAAA7B,MAAA,WAAAC,CAAA,MAAA8B,IAAA,OAAAlC,KAAA,CAAAiC,GAAA,GAAA7B,CAAA,GAAA6B,GAAA,EAAA7B,CAAA,IAAA8B,IAAA,CAAA9B,CAAA,IAAA4B,GAAA,CAAA5B,CAAA,UAAA8B,IAAA;AAIzE,IAAMC,QAAQ,GAAG,CAACC,sBAAU,EAAEC,qCAAiB,EAAEC,0BAAY,CAAC;AAcvD,SAASC,iBAAiBA,CAACC,KAAuB,
|
|
1
|
+
{"version":3,"file":"create-image-source.js","names":["_imageService","require","_wmsService","_arcgisImageService","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","call","step","next","_e2","return","minLen","_arrayLikeToArray","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","SERVICES","WMSService","ArcGISImageServer","ImageService","createImageSource","props","_props$type","type","serviceType","guessServiceType","url","Error","_iterator","_step","Service","testURL"],"sources":["../../../src/lib/create-image-source.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport {ImageSource} from './sources/image-source';\nimport {ImageService, ImageServiceProps} from './services/generic/image-service';\nimport type {WMSServiceProps} from './services/ogc/wms-service';\nimport {WMSService} from './services/ogc/wms-service';\nimport {ArcGISImageServer} from './services/arcgis/arcgis-image-service';\n\nexport type ImageServiceType = 'wms' | 'arcgis-image-server' | 'template';\n\nconst SERVICES = [WMSService, ArcGISImageServer, ImageService];\n\ntype ImageSourceProps = ImageServiceProps &\n WMSServiceProps & {\n type?: ImageServiceType | 'auto';\n };\n\n/**\n * Creates an image source\n * If type is not supplied, will try to automatically detect the the\n * @param url URL to the image source\n * @param type type of source. if not known, set to 'auto'\n * @returns an ImageSource instance\n */\nexport function createImageSource(props: ImageSourceProps): ImageSource<ImageSourceProps> {\n const {type = 'auto'} = props;\n const serviceType = type === 'auto' ? guessServiceType(props.url) : type;\n switch (serviceType) {\n case 'template':\n return new ImageService(props);\n case 'wms':\n return new WMSService(props);\n default:\n // currently only wms service supported\n throw new Error('Not a valid image source type');\n }\n}\n\n/** Guess service type from URL */\nfunction guessServiceType(url: string): ImageServiceType {\n for (const Service of SERVICES) {\n if (Service.testURL && Service.testURL(url)) {\n return Service.type;\n }\n }\n // If all else fails, guess that this is MS service\n return 'wms';\n}\n"],"mappings":";;;;;;AAGA,IAAAA,aAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAAyE,SAAAG,2BAAAC,CAAA,EAAAC,cAAA,QAAAC,EAAA,UAAAC,MAAA,oBAAAH,CAAA,CAAAG,MAAA,CAAAC,QAAA,KAAAJ,CAAA,qBAAAE,EAAA,QAAAG,KAAA,CAAAC,OAAA,CAAAN,CAAA,MAAAE,EAAA,GAAAK,2BAAA,CAAAP,CAAA,MAAAC,cAAA,IAAAD,CAAA,WAAAA,CAAA,CAAAQ,MAAA,qBAAAN,EAAA,EAAAF,CAAA,GAAAE,EAAA,MAAAO,CAAA,UAAAC,CAAA,YAAAA,EAAA,eAAAC,CAAA,EAAAD,CAAA,EAAAE,CAAA,WAAAA,EAAA,QAAAH,CAAA,IAAAT,CAAA,CAAAQ,MAAA,WAAAK,IAAA,mBAAAA,IAAA,SAAAC,KAAA,EAAAd,CAAA,CAAAS,CAAA,UAAAM,CAAA,WAAAA,EAAAC,EAAA,UAAAA,EAAA,KAAAC,CAAA,EAAAP,CAAA,gBAAAQ,SAAA,iJAAAC,gBAAA,SAAAC,MAAA,UAAAC,GAAA,WAAAV,CAAA,WAAAA,EAAA,IAAAT,EAAA,GAAAA,EAAA,CAAAoB,IAAA,CAAAtB,CAAA,MAAAY,CAAA,WAAAA,EAAA,QAAAW,IAAA,GAAArB,EAAA,CAAAsB,IAA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AAG,MAAM,GAAAA,WAAA;EACpB,IAAME,WAAW,GAAGD,IAAI,KAAK,MAAM,GAAGE,gBAAgB,CAACJ,KAAK,CAACK,GAAG,CAAC,GAAGH,IAAI;EACxE,QAAQC,WAAW;IACjB,KAAK,UAAU;MACb,OAAO,IAAIL,0BAAY,CAACE,KAAK,CAAC;IAChC,KAAK,KAAK;MACR,OAAO,IAAIJ,sBAAU,CAACI,KAAK,CAAC;IAC9B;MAEE,MAAM,IAAIM,KAAK,CAAC,+BAA+B,CAAC;EACpD;AACF;AAGA,SAASF,gBAAgBA,CAACC,GAAW,EAAoB;EAAA,IAAAE,SAAA,GAAArD,0BAAA,CACjCyC,QAAQ;IAAAa,KAAA;EAAA;IAA9B,KAAAD,SAAA,CAAAzC,CAAA,MAAA0C,KAAA,GAAAD,SAAA,CAAAxC,CAAA,IAAAC,IAAA,GAAgC;MAAA,IAArByC,OAAO,GAAAD,KAAA,CAAAvC,KAAA;MAChB,IAAIwC,OAAO,CAACC,OAAO,IAAID,OAAO,CAACC,OAAO,CAACL,GAAG,CAAC,EAAE;QAC3C,OAAOI,OAAO,CAACP,IAAI;MACrB;IACF;EAAC,SAAA1B,GAAA;IAAA+B,SAAA,CAAArC,CAAA,CAAAM,GAAA;EAAA;IAAA+B,SAAA,CAAAnC,CAAA;EAAA;EAED,OAAO,KAAK;AACd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-csw-capabilities.js","names":["_xml","require","_parseExceptionReport","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","default","getOwnPropertyDescriptors","defineProperties","defineProperty","parseCSWCapabilities","text","options","parsedXML","XMLLoader","parseTextSync","xml","removeNSPrefix","uncapitalizeKeys","parseExceptionReport","xmlCapabilities","capabilities"],"sources":["../../../../../src/lib/parsers/csw/parse-csw-capabilities.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {XMLLoaderOptions} from '@loaders.gl/xml';\nimport {XMLLoader} from '@loaders.gl/xml';\nimport {parseExceptionReport} from './parse-exception-report';\n\n// CSW:GetCapabilitiesResponse\n\n/** All capabilities of a CSW service - response to a CSW `GetCapabilities` data structure extracted from XML */\nexport type CSWCapabilities = {\n serviceIdentification: {\n title: string;\n serviceTypeVersion: string;\n serviceType: string;\n };\n\n serviceProvider: {\n providerName: string;\n providerSite: string;\n serviceContact: {\n individualName: string;\n positionName: string;\n contactInfo: {\n address: {\n administrativeArea: string;\n city: string;\n country: string;\n deliveryPoint: string;\n electronicMailAddress: string;\n postalCode: string;\n };\n phone: {\n voice: string;\n };\n };\n };\n };\n\n operationsMetadata: {\n GetCapabilities: any;\n GetFeatureInfo: any;\n GetTile: any;\n };\n\n contents: {\n layers: {\n abstract: string;\n identifier: string;\n title: string;\n formats: string[];\n styles: {\n identifier: string;\n isDefault: string;\n title: string;\n abstract?: string;\n }[];\n bounds: {\n left: number;\n right: number;\n bottom: number;\n top: number;\n };\n tileMatrixSetLinks: {\n tileMatrixSet: string;\n }[];\n tileMatrixSets: {\n identifier: string;\n matrixIds: {\n identifier: string;\n matrixHeight: number;\n matrixWidth: number;\n scaleDenominator: number;\n tileWidth: number;\n tileHeight: number;\n topLeftCorner: {\n lon: number;\n lat: number;\n };\n }[];\n };\n }[];\n };\n};\n\n/**\n * Parses a typed data structure from raw XML for `GetCapabilities` response\n * @note Error handlings is fairly weak\n */\nexport function parseCSWCapabilities(text: string, options?: XMLLoaderOptions): CSWCapabilities {\n const parsedXML = XMLLoader.parseTextSync(text, {\n ...options,\n xml: {\n ...options?.xml,\n removeNSPrefix: true,\n uncapitalizeKeys: true\n }\n });\n\n parseExceptionReport(parsedXML);\n\n const xmlCapabilities: any = parsedXML.capabilities || parsedXML;\n return xmlCapabilities;\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,O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aAAPA,OAAO,uBAAPA,OAAO,CAAEI,GAAG;MACfC,cAAc,EAAE,IAAI;MACpBC,gBAAgB,EAAE;IAAI;EACvB,
|
|
1
|
+
{"version":3,"file":"parse-csw-capabilities.js","names":["_xml","require","_parseExceptionReport","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","default","getOwnPropertyDescriptors","defineProperties","defineProperty","parseCSWCapabilities","text","options","parsedXML","XMLLoader","parseTextSync","xml","removeNSPrefix","uncapitalizeKeys","parseExceptionReport","xmlCapabilities","capabilities"],"sources":["../../../../../src/lib/parsers/csw/parse-csw-capabilities.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {XMLLoaderOptions} from '@loaders.gl/xml';\nimport {XMLLoader} from '@loaders.gl/xml';\nimport {parseExceptionReport} from './parse-exception-report';\n\n// CSW:GetCapabilitiesResponse\n\n/** All capabilities of a CSW service - response to a CSW `GetCapabilities` data structure extracted from XML */\nexport type CSWCapabilities = {\n serviceIdentification: {\n title: string;\n serviceTypeVersion: string;\n serviceType: string;\n };\n\n serviceProvider: {\n providerName: string;\n providerSite: string;\n serviceContact: {\n individualName: string;\n positionName: string;\n contactInfo: {\n address: {\n administrativeArea: string;\n city: string;\n country: string;\n deliveryPoint: string;\n electronicMailAddress: string;\n postalCode: string;\n };\n phone: {\n voice: string;\n };\n };\n };\n };\n\n operationsMetadata: {\n GetCapabilities: any;\n GetFeatureInfo: any;\n GetTile: any;\n };\n\n contents: {\n layers: {\n abstract: string;\n identifier: string;\n title: string;\n formats: string[];\n styles: {\n identifier: string;\n isDefault: string;\n title: string;\n abstract?: string;\n }[];\n bounds: {\n left: number;\n right: number;\n bottom: number;\n top: number;\n };\n tileMatrixSetLinks: {\n tileMatrixSet: string;\n }[];\n tileMatrixSets: {\n identifier: string;\n matrixIds: {\n identifier: string;\n matrixHeight: number;\n matrixWidth: number;\n scaleDenominator: number;\n tileWidth: number;\n tileHeight: number;\n topLeftCorner: {\n lon: number;\n lat: number;\n };\n }[];\n };\n }[];\n };\n};\n\n/**\n * Parses a typed data structure from raw XML for `GetCapabilities` response\n * @note Error handlings is fairly weak\n */\nexport function parseCSWCapabilities(text: string, options?: XMLLoaderOptions): CSWCapabilities {\n const parsedXML = XMLLoader.parseTextSync(text, {\n ...options,\n xml: {\n ...options?.xml,\n removeNSPrefix: true,\n uncapitalizeKeys: true\n }\n });\n\n parseExceptionReport(parsedXML);\n\n const xmlCapabilities: any = parsedXML.capabilities || parsedXML;\n return xmlCapabilities;\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AAA8D,SAAAE,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAAAI,MAAA,CAAAc,MAAA,OAAAC,OAAA,WAAAC,GAAA,QAAAC,gBAAA,CAAAC,OAAA,EAAAR,MAAA,EAAAM,GAAA,EAAAF,MAAA,CAAAE,GAAA,SAAAhB,MAAA,CAAAmB,yBAAA,GAAAnB,MAAA,CAAAoB,gBAAA,CAAAV,MAAA,EAAAV,MAAA,CAAAmB,yBAAA,CAAAL,MAAA,KAAAlB,OAAA,CAAAI,MAAA,CAAAc,MAAA,GAAAC,OAAA,WAAAC,GAAA,IAAAhB,MAAA,CAAAqB,cAAA,CAAAX,MAAA,EAAAM,GAAA,EAAAhB,MAAA,CAAAK,wBAAA,CAAAS,MAAA,EAAAE,GAAA,iBAAAN,MAAA;AAoFvD,SAASY,oBAAoBA,CAACC,IAAY,EAAEC,OAA0B,EAAmB;EAC9F,IAAMC,SAAS,GAAGC,cAAS,CAACC,aAAa,CAACJ,IAAI,EAAAd,aAAA,CAAAA,aAAA,KACzCe,OAAO;IACVI,GAAG,EAAAnB,aAAA,CAAAA,aAAA,KACEe,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEI,GAAG;MACfC,cAAc,EAAE,IAAI;MACpBC,gBAAgB,EAAE;IAAI;EACvB,EACF,CAAC;EAEF,IAAAC,0CAAoB,EAACN,SAAS,CAAC;EAE/B,IAAMO,eAAoB,GAAGP,SAAS,CAACQ,YAAY,IAAIR,SAAS;EAChE,OAAOO,eAAe;AACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-csw-domain.js","names":["_xml","require","_parseExceptionReport","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","call","step","next","_e2","return","minLen","_arrayLikeToArray","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","arguments","source","forEach","key","_defineProperty2","default","getOwnPropertyDescriptors","defineProperties","defineProperty","parseCSWDomain","text","options","parsedXML","XMLLoader","parseTextSync","xml","removeNSPrefix","uncapitalizeKeys","arrayPaths","parseExceptionReport","xmlDomain","getDomainResponse","_iterator","domainValues","_step","_domainValue$listOfVa","domainValue","values","listOfValues"],"sources":["../../../../../src/lib/parsers/csw/parse-csw-domain.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {XMLLoaderOptions} from '@loaders.gl/xml';\nimport {XMLLoader} from '@loaders.gl/xml';\nimport {parseExceptionReport} from './parse-exception-report';\n\n/** Describes the values of resource */\nexport type CSWDomain = {\n domainValues: {\n type: string;\n propertyName: string;\n values: {\n [key: string]: unknown;\n }[];\n }[];\n};\n\n/**\n * Parses a typed data structure from raw XML for `GetDomain` response\n * @note Error handlings is fairly weak\n */\nexport function parseCSWDomain(text: string, options?: XMLLoaderOptions): CSWDomain {\n const parsedXML = XMLLoader.parseTextSync(text, {\n ...options,\n xml: {\n ...options?.xml,\n removeNSPrefix: true,\n uncapitalizeKeys: true,\n arrayPaths: [\n 'GetDomainResponse.DomainValues',\n 'GetDomainResponse.DomainValues.ListOfValues.value'\n ]\n }\n });\n\n parseExceptionReport(parsedXML);\n\n const xmlDomain: any = parsedXML.getDomainResponse;\n for (const domainValue of xmlDomain.domainValues) {\n // Drop the nested <listOfValues><value><value><listOfValues> => values[]\n domainValue.values = domainValue.listOfValues?.value;\n delete domainValue.listOfValues;\n }\n return xmlDomain as CSWDomain;\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AAA8D,SAAAE,2BAAAC,CAAA,EAAAC,cAAA,QAAAC,EAAA,UAAAC,MAAA,oBAAAH,CAAA,CAAAG,MAAA,CAAAC,QAAA,KAAAJ,CAAA,qBAAAE,EAAA,QAAAG,KAAA,CAAAC,OAAA,CAAAN,CAAA,MAAAE,EAAA,GAAAK,2BAAA,CAAAP,CAAA,MAAAC,cAAA,IAAAD,CAAA,WAAAA,CAAA,CAAAQ,MAAA,qBAAAN,EAAA,EAAAF,CAAA,GAAAE,EAAA,MAAAO,CAAA,UAAAC,CAAA,YAAAA,EAAA,eAAAC,CAAA,EA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EAAAE,GAAA,iBAAAJ,MAAA;AAiBvD,SAASU,cAAcA,CAACC,IAAY,EAAEC,OAA0B,EAAa;EAClF,IAAMC,SAAS,GAAGC,cAAS,CAACC,aAAa,CAACJ,IAAI,EAAAZ,aAAA,CAAAA,aAAA,KACzCa,OAAO;IACVI,GAAG,EAAAjB,aAAA,CAAAA,aAAA,KACEa,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEI,GAAG;MACfC,cAAc,EAAE,IAAI;MACpBC,gBAAgB,EAAE,IAAI;MACtBC,UAAU,EAAE,CACV,gCAAgC,EAChC,mDAAmD;IACpD;EACF,
|
|
1
|
+
{"version":3,"file":"parse-csw-domain.js","names":["_xml","require","_parseExceptionReport","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","call","step","next","_e2","return","minLen","_arrayLikeToArray","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","arguments","source","forEach","key","_defineProperty2","default","getOwnPropertyDescriptors","defineProperties","defineProperty","parseCSWDomain","text","options","parsedXML","XMLLoader","parseTextSync","xml","removeNSPrefix","uncapitalizeKeys","arrayPaths","parseExceptionReport","xmlDomain","getDomainResponse","_iterator","domainValues","_step","_domainValue$listOfVa","domainValue","values","listOfValues"],"sources":["../../../../../src/lib/parsers/csw/parse-csw-domain.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {XMLLoaderOptions} from '@loaders.gl/xml';\nimport {XMLLoader} from '@loaders.gl/xml';\nimport {parseExceptionReport} from './parse-exception-report';\n\n/** Describes the values of resource */\nexport type CSWDomain = {\n domainValues: {\n type: string;\n propertyName: string;\n values: {\n [key: string]: unknown;\n }[];\n }[];\n};\n\n/**\n * Parses a typed data structure from raw XML for `GetDomain` response\n * @note Error handlings is fairly weak\n */\nexport function parseCSWDomain(text: string, options?: XMLLoaderOptions): CSWDomain {\n const parsedXML = XMLLoader.parseTextSync(text, {\n ...options,\n xml: {\n ...options?.xml,\n removeNSPrefix: true,\n uncapitalizeKeys: true,\n arrayPaths: [\n 'GetDomainResponse.DomainValues',\n 'GetDomainResponse.DomainValues.ListOfValues.value'\n ]\n }\n });\n\n parseExceptionReport(parsedXML);\n\n const xmlDomain: any = parsedXML.getDomainResponse;\n for (const domainValue of xmlDomain.domainValues) {\n // Drop the nested <listOfValues><value><value><listOfValues> => values[]\n domainValue.values = domainValue.listOfValues?.value;\n delete domainValue.listOfValues;\n }\n return xmlDomain as CSWDomain;\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AAA8D,SAAAE,2BAAAC,CAAA,EAAAC,cAAA,QAAAC,EAAA,UAAAC,MAAA,oBAAAH,CAAA,CAAAG,MAAA,CAAAC,QAAA,KAAAJ,CAAA,qBAAAE,EAAA,QAAAG,KAAA,CAAAC,OAAA,CAAAN,CAAA,MAAAE,EAAA,GAAAK,2BAAA,CAAAP,CAAA,MAAAC,cAAA,IAAAD,CAAA,WAAAA,CAAA,CAAAQ,MAAA,qBAAAN,EAAA,EAAAF,CAAA,GAAAE,EAAA,MAAAO,CAAA,UAAAC,CAAA,YAAAA,EAAA,eAAAC,CAAA,EAAAD,CAAA,EAAAE,CAAA,WAAAA,EAAA,QAAAH,CAAA,IAAAT,CAAA,CAAAQ,MAAA,WAAAK,IAAA,mBAAAA,IAAA,SAAAC,KAAA,EAAAd,CAAA,CAAAS,CAAA,UAAAM,CAAA,WAAAA,EAAAC,EAAA,UAAAA,EAAA,KAAAC,CAAA,EAAAP,CAAA,gBAAAQ,SAAA,iJAAAC,gBAAA,SAAAC,MAAA,UAAAC,GAAA,WAAAV,CAAA,WAAAA,EAAA,IAAAT,EAAA,GAAAA,EAAA,CAAAoB,IAAA,CA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ACV,gCAAgC,EAChC,mDAAmD;IACpD;EACF,EACF,CAAC;EAEF,IAAAC,0CAAoB,EAACP,SAAS,CAAC;EAE/B,IAAMQ,SAAc,GAAGR,SAAS,CAACS,iBAAiB;EAAC,IAAAC,SAAA,GAAA7E,0BAAA,CACzB2E,SAAS,CAACG,YAAY;IAAAC,KAAA;EAAA;IAAhD,KAAAF,SAAA,CAAAjE,CAAA,MAAAmE,KAAA,GAAAF,SAAA,CAAAhE,CAAA,IAAAC,IAAA,GAAkD;MAAA,IAAAkE,qBAAA;MAAA,IAAvCC,WAAW,GAAAF,KAAA,CAAAhE,KAAA;MAEpBkE,WAAW,CAACC,MAAM,IAAAF,qBAAA,GAAGC,WAAW,CAACE,YAAY,cAAAH,qBAAA,uBAAxBA,qBAAA,CAA0BjE,KAAK;MACpD,OAAOkE,WAAW,CAACE,YAAY;IACjC;EAAC,SAAA7D,GAAA;IAAAuD,SAAA,CAAA7D,CAAA,CAAAM,GAAA;EAAA;IAAAuD,SAAA,CAAA3D,CAAA;EAAA;EACD,OAAOyD,SAAS;AAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-csw-records.js","names":["_xml","require","_parseExceptionReport","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","call","step","next","_e2","return","minLen","_arrayLikeToArray","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","arguments","source","forEach","key","_defineProperty2","default","getOwnPropertyDescriptors","defineProperties","defineProperty","parseCSWRecords","text","options","parsedXML","XMLLoader","parseTextSync","xml","removeNSPrefix","uncapitalizeKeys","arrayPaths","_fastXML","parseAttributeValue","parseExceptionReport","xmlRecords","getRecordsResponse","elementSet","searchResults","recordsFieldName","concat","records","convertXMLFieldToArrayInPlace","_iterator","_step","record","boundingBoxes","boundingBox","_iterator2","_step2","upperCorner","lowerCorner","renameXMLTags","renameKeys","_i","_Object$entries","entries","_Object$entries$_i","_slicedToArray2","oldKey","newKey"],"sources":["../../../../../src/lib/parsers/csw/parse-csw-records.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport {XMLLoaderOptions, convertXMLFieldToArrayInPlace} from '@loaders.gl/xml';\nimport {XMLLoader} from '@loaders.gl/xml';\nimport {parseExceptionReport} from './parse-exception-report';\n\nexport type CSWRecords = {\n searchStatus: {\n timestamp?: string;\n };\n searchResults: {\n numberOfRecordsMatched: number;\n numberOfRecordsReturned: number;\n elementSet: string;\n nextRecord: number;\n };\n records: {\n type: string;\n title: string;\n abstract: string;\n subject: string[];\n boundingBoxes: {\n crs: string;\n value: [number, number, number, number];\n }[];\n references: {\n value: string;\n scheme: string;\n }[];\n }[];\n};\n\n/**\n * Parses a typed data structure from raw XML for `GetRecords` response\n * @note Error handlings is fairly weak\n */\nexport function parseCSWRecords(text: string, options?: XMLLoaderOptions): CSWRecords {\n const parsedXML = XMLLoader.parseTextSync(text, {\n ...options,\n xml: {\n ...options?.xml,\n removeNSPrefix: true,\n uncapitalizeKeys: true,\n arrayPaths: []\n },\n _fastXML: {\n ...options?._fastXML,\n parseAttributeValue: true\n }\n });\n\n parseExceptionReport(parsedXML);\n\n const xmlRecords: any = parsedXML.getRecordsResponse;\n\n // Move results to top\n const elementSet = xmlRecords.searchResults.elementSet;\n const recordsFieldName = `${elementSet}Record`;\n xmlRecords.records = xmlRecords.searchResults[recordsFieldName];\n delete xmlRecords.searchResults[recordsFieldName];\n\n convertXMLFieldToArrayInPlace(xmlRecords, 'records');\n\n for (const record of xmlRecords.records) {\n record.boundingBoxes = record.boundingBox;\n delete record.boundingBox;\n\n convertXMLFieldToArrayInPlace(record, 'boundingBoxes');\n\n for (const boundingBox of record.boundingBoxes) {\n boundingBox.value = [\n boundingBox.upperCorner[0],\n boundingBox.upperCorner[1],\n boundingBox.lowerCorner[0],\n boundingBox.lowerCorner[1]\n ];\n delete boundingBox.upperCorner;\n delete boundingBox.lowerCorner;\n }\n }\n\n return xmlRecords as CSWRecords;\n}\n\nexport function renameXMLTags(xml: any, renameKeys: Record<string, string>): void {\n for (const [oldKey, newKey] of Object.entries(renameKeys)) {\n xml[newKey] = xml[oldKey];\n delete xml[oldKey];\n }\n}\n"],"mappings":";;;;;;;;;;AAEA,IAAAA,IAAA,GAAAC,OAAA;AAEA,IAAAC,qBAAA,GAAAD,OAAA;AAA8D,SAAAE,2BAAAC,CAAA,EAAAC,cAAA,QAAAC,EAAA,UAAAC,MAAA,oBAAAH,CAAA,CAAAG,MAAA,CAAAC,QAAA,KAAAJ,CAAA,qBAAAE,EAAA,QAAAG,KAAA,CAAAC,OAAA,CAAAN,CAAA,MAAAE,EAAA,GAAAK,2BAAA,CAAAP,CAAA,MAAAC,cAAA,IAAAD,CAAA,WAAAA,CAAA,CAAAQ,MAAA,qBAAAN,EAAA,EAAAF,CAAA,GAAAE,EAAA,MAAAO,CAAA,UAAAC,CAAA,YAAAA,EAAA,eAAAC,CAAA,EAAAD,CAAA,EAAAE,CAAA,WAAAA,EAAA,QAAAH,CAAA,IAAAT,CAAA,CAAAQ,MAAA,WAAAK,IAAA,mBAAAA,IAAA,SAAAC,KAAA,EAAAd,CAAA,CAAAS,CAAA,UAAAM,CAAA,WAAAA,EAAAC,EAAA,UAAAA,EAAA,KAAAC,CAAA,EAAAP,CAAA,gBAAAQ,SAAA,iJAAAC,gBAAA,SAAAC,MAAA,UAAAC,GAAA,WAAAV,CAAA,WAAAA,EAAA,IAAAT,EAAA,GAAAA,EAAA,CAAAoB,IAAA,CAAAtB,CAAA,MAAAY,CAAA,WAAAA,EAAA,QAAAW,IAAA,GAAArB,EAAA,CAAAsB,IAAA,IAAAL,gBAAA,GAAAI,IAAA,CAAAV,IAAA,SAAAU,IAAA,KAAAR,CAAA,WAAAA,EAAAU,GAAA,IAAAL,M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","names":["_xml","require","_parseExceptionReport","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","call","step","next","_e2","return","minLen","_arrayLikeToArray","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","arguments","source","forEach","key","_defineProperty2","default","getOwnPropertyDescriptors","defineProperties","defineProperty","parseCSWRecords","text","options","parsedXML","XMLLoader","parseTextSync","xml","removeNSPrefix","uncapitalizeKeys","arrayPaths","_fastXML","parseAttributeValue","parseExceptionReport","xmlRecords","getRecordsResponse","elementSet","searchResults","recordsFieldName","concat","records","convertXMLFieldToArrayInPlace","_iterator","_step","record","boundingBoxes","boundingBox","_iterator2","_step2","upperCorner","lowerCorner","renameXMLTags","renameKeys","_i","_Object$entries","entries","_Object$entries$_i","_slicedToArray2","oldKey","newKey"],"sources":["../../../../../src/lib/parsers/csw/parse-csw-records.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport {XMLLoaderOptions, convertXMLFieldToArrayInPlace} from '@loaders.gl/xml';\nimport {XMLLoader} from '@loaders.gl/xml';\nimport {parseExceptionReport} from './parse-exception-report';\n\nexport type CSWRecords = {\n searchStatus: {\n timestamp?: string;\n };\n searchResults: {\n numberOfRecordsMatched: number;\n numberOfRecordsReturned: number;\n elementSet: string;\n nextRecord: number;\n };\n records: {\n type: string;\n title: string;\n abstract: string;\n subject: string[];\n boundingBoxes: {\n crs: string;\n value: [number, number, number, number];\n }[];\n references: {\n value: string;\n scheme: string;\n }[];\n }[];\n};\n\n/**\n * Parses a typed data structure from raw XML for `GetRecords` response\n * @note Error handlings is fairly weak\n */\nexport function parseCSWRecords(text: string, options?: XMLLoaderOptions): CSWRecords {\n const parsedXML = XMLLoader.parseTextSync(text, {\n ...options,\n xml: {\n ...options?.xml,\n removeNSPrefix: true,\n uncapitalizeKeys: true,\n arrayPaths: []\n },\n _fastXML: {\n ...options?._fastXML,\n parseAttributeValue: true\n }\n });\n\n parseExceptionReport(parsedXML);\n\n const xmlRecords: any = parsedXML.getRecordsResponse;\n\n // Move results to top\n const elementSet = xmlRecords.searchResults.elementSet;\n const recordsFieldName = `${elementSet}Record`;\n xmlRecords.records = xmlRecords.searchResults[recordsFieldName];\n delete xmlRecords.searchResults[recordsFieldName];\n\n convertXMLFieldToArrayInPlace(xmlRecords, 'records');\n\n for (const record of xmlRecords.records) {\n record.boundingBoxes = record.boundingBox;\n delete record.boundingBox;\n\n convertXMLFieldToArrayInPlace(record, 'boundingBoxes');\n\n for (const boundingBox of record.boundingBoxes) {\n boundingBox.value = [\n boundingBox.upperCorner[0],\n boundingBox.upperCorner[1],\n boundingBox.lowerCorner[0],\n boundingBox.lowerCorner[1]\n ];\n delete boundingBox.upperCorner;\n delete boundingBox.lowerCorner;\n }\n }\n\n return xmlRecords as CSWRecords;\n}\n\nexport function renameXMLTags(xml: any, renameKeys: Record<string, string>): void {\n for (const [oldKey, newKey] of Object.entries(renameKeys)) {\n xml[newKey] = xml[oldKey];\n delete xml[oldKey];\n }\n}\n"],"mappings":";;;;;;;;;;AAEA,IAAAA,IAAA,GAAAC,OAAA;AAEA,IAAAC,qBAAA,GAAAD,OAAA;AAA8D,SAAAE,2BAAAC,CAAA,EAAAC,cAAA,QAAAC,EAAA,UAAAC,MAAA,oBAAAH,CAAA,CAAAG,MAAA,CAAAC,QAAA,KAAAJ,CAAA,qBAAAE,EAAA,QAAAG,KAAA,CAAAC,OAAA,CAAAN,CAAA,MAAAE,EAAA,GAAAK,2BAAA,CAAAP,CAAA,MAAAC,cAAA,IAAAD,CAAA,WAAAA,CAAA,CAAAQ,MAAA,qBAAAN,EAAA,EAAAF,CAAA,GAAAE,EAAA,MAAAO,CAAA,UAAAC,CAAA,YAAAA,EAAA,eAAAC,CAAA,EAAAD,CAAA,EAAA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{"version":3,"file":"parse-exception-report.js","names":["parseExceptionReport","parsedXML","_exceptionReport$exce","_exceptionReport$exce2","_exceptionReport$exce3","exceptionReport","errorMessage","exception","exceptionText","exceptionCode","locator","Error","concat"],"sources":["../../../../../src/lib/parsers/csw/parse-exception-report.ts"],"sourcesContent":["// loaders.gl, MIT license\n\n// import type {XMLLoaderOptions} from '@loaders.gl/xml';\n// import {XMLLoader} from '@loaders.gl/xml';\n\n/**\n * Parses a typed data structure from raw XML for `GetDomain` response\n * @note Error handlings is fairly weak\n */\nexport function parseExceptionReport(parsedXML: any): void {\n // const parsedXML = XMLLoader.parseTextSync(text, {\n // ...options,\n // xml: {\n // ...options?.xml,\n // removeNSPrefix: true,\n // uncapitalizeKeys: true\n // }\n // });\n\n const exceptionReport: any = parsedXML.exceptionReport;\n if (!exceptionReport) {\n return;\n }\n const errorMessage =\n exceptionReport.exception?.exceptionText ||\n exceptionReport.exception?.exceptionCode ||\n exceptionReport.exception?.locator ||\n 'server error';\n\n throw new Error(`Catalog Server: ${errorMessage}`);\n}\n"],"mappings":";;;;;;AASO,SAASA,oBAAoBA,CAACC,SAAc,EAAQ;EAAA,IAAAC,qBAAA,EAAAC,sBAAA,EAAAC,sBAAA;EAUzD,IAAMC,eAAoB,GAAGJ,SAAS,CAACI,eAAe;EACtD,IAAI,CAACA,eAAe,EAAE;IACpB;EACF;EACA,IAAMC,YAAY,GAChB,EAAAJ,qBAAA,GAAAG,eAAe,CAACE,SAAS,cAAAL,qBAAA,uBAAzBA,qBAAA,CAA2BM,aAAa,OAAAL,sBAAA,GACxCE,eAAe,CAACE,SAAS,cAAAJ,sBAAA,uBAAzBA,sBAAA,CAA2BM,aAAa,OAAAL,sBAAA,GACxCC,eAAe,CAACE,SAAS,cAAAH,sBAAA,uBAAzBA,sBAAA,CAA2BM,OAAO,KAClC,cAAc;EAEhB,MAAM,IAAIC,KAAK,oBAAAC,MAAA,CAAoBN,YAAY,
|
|
1
|
+
{"version":3,"file":"parse-exception-report.js","names":["parseExceptionReport","parsedXML","_exceptionReport$exce","_exceptionReport$exce2","_exceptionReport$exce3","exceptionReport","errorMessage","exception","exceptionText","exceptionCode","locator","Error","concat"],"sources":["../../../../../src/lib/parsers/csw/parse-exception-report.ts"],"sourcesContent":["// loaders.gl, MIT license\n\n// import type {XMLLoaderOptions} from '@loaders.gl/xml';\n// import {XMLLoader} from '@loaders.gl/xml';\n\n/**\n * Parses a typed data structure from raw XML for `GetDomain` response\n * @note Error handlings is fairly weak\n */\nexport function parseExceptionReport(parsedXML: any): void {\n // const parsedXML = XMLLoader.parseTextSync(text, {\n // ...options,\n // xml: {\n // ...options?.xml,\n // removeNSPrefix: true,\n // uncapitalizeKeys: true\n // }\n // });\n\n const exceptionReport: any = parsedXML.exceptionReport;\n if (!exceptionReport) {\n return;\n }\n const errorMessage =\n exceptionReport.exception?.exceptionText ||\n exceptionReport.exception?.exceptionCode ||\n exceptionReport.exception?.locator ||\n 'server error';\n\n throw new Error(`Catalog Server: ${errorMessage}`);\n}\n"],"mappings":";;;;;;AASO,SAASA,oBAAoBA,CAACC,SAAc,EAAQ;EAAA,IAAAC,qBAAA,EAAAC,sBAAA,EAAAC,sBAAA;EAUzD,IAAMC,eAAoB,GAAGJ,SAAS,CAACI,eAAe;EACtD,IAAI,CAACA,eAAe,EAAE;IACpB;EACF;EACA,IAAMC,YAAY,GAChB,EAAAJ,qBAAA,GAAAG,eAAe,CAACE,SAAS,cAAAL,qBAAA,uBAAzBA,qBAAA,CAA2BM,aAAa,OAAAL,sBAAA,GACxCE,eAAe,CAACE,SAAS,cAAAJ,sBAAA,uBAAzBA,sBAAA,CAA2BM,aAAa,OAAAL,sBAAA,GACxCC,eAAe,CAACE,SAAS,cAAAH,sBAAA,uBAAzBA,sBAAA,CAA2BM,OAAO,KAClC,cAAc;EAEhB,MAAM,IAAIC,KAAK,oBAAAC,MAAA,CAAoBN,YAAY,CAAE,CAAC;AACpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deep-strict-equal.js","names":["deepStrictEqual","actual","expected","strict","Date","getTime","RegExp","source","global","multiline","lastIndex","ignoreCase","_typeof2","default","objEquiv","pSlice","Array","prototype","slice","isPrimitive","arg","isArguments","object","Object","toString","call","a","b","undefined","getPrototypeOf","aIsArgs","bIsArgs","ka","keys","kb","key","i","length","sort"],"sources":["../../../../../src/lib/parsers/gml/deep-strict-equal.ts"],"sourcesContent":["// https://github.com/nodejs/node/commit/c1d82ac2ff15594840e2a1b9531b506ae067ed27;\n\n// http://wiki.commonjs.org/wiki/Unit_Testing/1.0\n//\n// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!\n//\n// Originally from narwhal.js (http://narwhaljs.org)\n// Copyright (c) 2009 Thomas Robinson <280north.com>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the 'Software'), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n/** @todo replace this ridiculous choice of deepStrictEqual */\n// eslint-disable-next-line complexity\nexport function deepStrictEqual(actual: unknown, expected: unknown, strict?: boolean) {\n // 7.1. All identical values are equivalent, as determined by ===.\n if (actual === expected) {\n return true;\n // } else if (actual instanceof Buffer && expected instanceof Buffer) {\n // return compare(actual, expected) === 0;\n\n // // 7.2. If the expected value is a Date object, the actual value is\n // // equivalent if it is also a Date object that refers to the same time.\n } else if (actual instanceof Date && expected instanceof Date) {\n return actual.getTime() === expected.getTime();\n\n // 7.3 If the expected value is a RegExp object, the actual value is\n // equivalent if it is also a RegExp object with the same source and\n // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).\n } else if (actual instanceof RegExp && expected instanceof RegExp) {\n return (\n actual.source === expected.source &&\n actual.global === expected.global &&\n actual.multiline === expected.multiline &&\n actual.lastIndex === expected.lastIndex &&\n actual.ignoreCase === expected.ignoreCase\n );\n\n // 7.4. Other pairs that do not both pass typeof value == 'object',\n // equivalence is determined by ==.\n } else if (\n (actual === null || typeof actual !== 'object') &&\n (expected === null || typeof expected !== 'object')\n ) {\n // eslint-disable-next-line eqeqeq\n return strict ? actual === expected : actual == expected;\n\n // 7.5 For all other Object pairs, including Array objects, equivalence is\n // determined by having the same number of owned properties (as verified\n // with Object.prototype.hasOwnProperty.call), the same set of keys\n // (although not necessarily the same order), equivalent values for every\n // corresponding key, and an identical 'prototype' property. Note: this\n // accounts for both named and indexed properties on Arrays.\n }\n return objEquiv(actual, expected, strict);\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst pSlice = Array.prototype.slice;\n\nfunction isPrimitive(arg) {\n return arg === null || (typeof arg !== 'object' && typeof arg !== 'function');\n}\n\nfunction isArguments(object) {\n // eslint-disable-next-line eqeqeq\n return Object.prototype.toString.call(object) == '[object Arguments]';\n}\n\n// eslint-disable-next-line complexity\nfunction objEquiv(a: unknown, b: unknown, strict) {\n if (a === null || a === undefined || b === null || b === undefined) return false;\n // if one is a primitive, the other must be same\n if (isPrimitive(a) || isPrimitive(b)) return a === b;\n if (strict && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b)) return false;\n const aIsArgs = isArguments(a);\n const bIsArgs = isArguments(b);\n if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs)) return false;\n if (aIsArgs) {\n a = pSlice.call(a);\n b = pSlice.call(b);\n return deepStrictEqual(a, b, strict);\n }\n const ka = Object.keys(a);\n const kb = Object.keys(b);\n let key;\n let i;\n // having the same number of owned properties (keys incorporates\n // hasOwnProperty)\n if (ka.length !== kb.length) return false;\n // the same set of keys (although not necessarily the same order),\n ka.sort();\n kb.sort();\n // ~~~cheap key test\n for (i = ka.length - 1; i >= 0; i--) {\n if (ka[i] !== kb[i]) return false;\n }\n // equivalent values for every corresponding key, and\n // ~~~possibly expensive deep test\n for (i = ka.length - 1; i >= 0; i--) {\n key = ka[i];\n if (!deepStrictEqual(a[key], b[key], strict)) return false;\n }\n return true;\n}\n"],"mappings":";;;;;;;;AA4BO,SAASA,eAAeA,CAACC,MAAe,EAAEC,QAAiB,EAAEC,MAAgB,EAAE;EAEpF,IAAIF,MAAM,KAAKC,QAAQ,EAAE;IACvB,OAAO,IAAI;EAMb,CAAC,MAAM,IAAID,MAAM,YAAYG,IAAI,IAAIF,QAAQ,YAAYE,IAAI,EAAE;IAC7D,OAAOH,MAAM,CAACI,OAAO,
|
|
1
|
+
{"version":3,"file":"deep-strict-equal.js","names":["deepStrictEqual","actual","expected","strict","Date","getTime","RegExp","source","global","multiline","lastIndex","ignoreCase","_typeof2","default","objEquiv","pSlice","Array","prototype","slice","isPrimitive","arg","isArguments","object","Object","toString","call","a","b","undefined","getPrototypeOf","aIsArgs","bIsArgs","ka","keys","kb","key","i","length","sort"],"sources":["../../../../../src/lib/parsers/gml/deep-strict-equal.ts"],"sourcesContent":["// https://github.com/nodejs/node/commit/c1d82ac2ff15594840e2a1b9531b506ae067ed27;\n\n// http://wiki.commonjs.org/wiki/Unit_Testing/1.0\n//\n// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!\n//\n// Originally from narwhal.js (http://narwhaljs.org)\n// Copyright (c) 2009 Thomas Robinson <280north.com>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the 'Software'), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n/** @todo replace this ridiculous choice of deepStrictEqual */\n// eslint-disable-next-line complexity\nexport function deepStrictEqual(actual: unknown, expected: unknown, strict?: boolean) {\n // 7.1. All identical values are equivalent, as determined by ===.\n if (actual === expected) {\n return true;\n // } else if (actual instanceof Buffer && expected instanceof Buffer) {\n // return compare(actual, expected) === 0;\n\n // // 7.2. If the expected value is a Date object, the actual value is\n // // equivalent if it is also a Date object that refers to the same time.\n } else if (actual instanceof Date && expected instanceof Date) {\n return actual.getTime() === expected.getTime();\n\n // 7.3 If the expected value is a RegExp object, the actual value is\n // equivalent if it is also a RegExp object with the same source and\n // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).\n } else if (actual instanceof RegExp && expected instanceof RegExp) {\n return (\n actual.source === expected.source &&\n actual.global === expected.global &&\n actual.multiline === expected.multiline &&\n actual.lastIndex === expected.lastIndex &&\n actual.ignoreCase === expected.ignoreCase\n );\n\n // 7.4. Other pairs that do not both pass typeof value == 'object',\n // equivalence is determined by ==.\n } else if (\n (actual === null || typeof actual !== 'object') &&\n (expected === null || typeof expected !== 'object')\n ) {\n // eslint-disable-next-line eqeqeq\n return strict ? actual === expected : actual == expected;\n\n // 7.5 For all other Object pairs, including Array objects, equivalence is\n // determined by having the same number of owned properties (as verified\n // with Object.prototype.hasOwnProperty.call), the same set of keys\n // (although not necessarily the same order), equivalent values for every\n // corresponding key, and an identical 'prototype' property. Note: this\n // accounts for both named and indexed properties on Arrays.\n }\n return objEquiv(actual, expected, strict);\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst pSlice = Array.prototype.slice;\n\nfunction isPrimitive(arg) {\n return arg === null || (typeof arg !== 'object' && typeof arg !== 'function');\n}\n\nfunction isArguments(object) {\n // eslint-disable-next-line eqeqeq\n return Object.prototype.toString.call(object) == '[object Arguments]';\n}\n\n// eslint-disable-next-line complexity\nfunction objEquiv(a: unknown, b: unknown, strict) {\n if (a === null || a === undefined || b === null || b === undefined) return false;\n // if one is a primitive, the other must be same\n if (isPrimitive(a) || isPrimitive(b)) return a === b;\n if (strict && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b)) return false;\n const aIsArgs = isArguments(a);\n const bIsArgs = isArguments(b);\n if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs)) return false;\n if (aIsArgs) {\n a = pSlice.call(a);\n b = pSlice.call(b);\n return deepStrictEqual(a, b, strict);\n }\n const ka = Object.keys(a);\n const kb = Object.keys(b);\n let key;\n let i;\n // having the same number of owned properties (keys incorporates\n // hasOwnProperty)\n if (ka.length !== kb.length) return false;\n // the same set of keys (although not necessarily the same order),\n ka.sort();\n kb.sort();\n // ~~~cheap key test\n for (i = ka.length - 1; i >= 0; i--) {\n if (ka[i] !== kb[i]) return false;\n }\n // equivalent values for every corresponding key, and\n // ~~~possibly expensive deep test\n for (i = ka.length - 1; i >= 0; i--) {\n key = ka[i];\n if (!deepStrictEqual(a[key], b[key], strict)) return false;\n }\n return true;\n}\n"],"mappings":";;;;;;;;AA4BO,SAASA,eAAeA,CAACC,MAAe,EAAEC,QAAiB,EAAEC,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